VB help please

Discuss popular GCS tools like ZZT, Megazeux and Adventure Game Studio, as well as programming and other topics related to game design.
Post Reply
MathChallenged

VB help please

Post by MathChallenged »

I'm stuck doing a battlemode. The characters attack monsters and the monsters fight back. I want the monster to miss sometimes, so I have it pick a random number 1 or 2 - if 1 it attacks, if 2 it misses.

The problem is it misses alot more often then it attacks, any ideas how I could make it miss less often? Like only 1 out of four times or something?
I'm stumped. Thanks for any input you may have.
me_guest

Post by me_guest »

try something like pick a random number between 1 and 5
myvalue = Int((5 * Rnd) + 1)
if myvalue < 5 then he attacks

if 1,2,3 or 4 is picked he attacks
he will only miss if 5 is picked.
aung zaw min

Post by aung zaw min »

Hi I have a little problem.
no i am writting to the htmlhelp api
i connect to index and context
but i can't connect to the serch and form leve
aungzawmin@walla.com
User avatar
barok
Member
Member
Posts: 30
Joined: Sat May 15, 2004 7:13 pm
Location: bushlands of saskatchewan

Post by barok »

I made a little vb game that could help you. i'll email it to you if i find it. nothing fancy, just a text rpg.
Qbasic can do much more than you think!
Post Reply