DOS Games Message Board
DOS Games Discussion
A message board to talk about DOS games, get help, and find old games.
Do NOT post warez or abandonware requests please
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
NEW! has been massively upgraded to v2.0 with TONS of new features!
Check out the new design and dozens of new features including online play!

VB help please

Post new topic   Reply to topic    DOS Games Discussion Forum Index -> Game Creation
Author Message

PostPosted: Wed Oct 13, 2004 1:25 am     Post subject: VB help please Reply with quote

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.
Back to top

PostPosted: Sun Oct 17, 2004 4:31 pm     Post subject: Reply with quote

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.
Back to top
aung zaw min

PostPosted: Mon Oct 25, 2004 3:04 am     Post subject: Reply with quote

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
Back to top

Joined: 15 May 2004
Posts: 30
Location: bushlands of saskatchewan

PostPosted: Wed Oct 27, 2004 11:25 pm     Post subject: Reply with quote

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.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    DOS Games Discussion Forum Index -> Game Creation All times are GMT - 5 Hours
Page 1 of 1


Powered by phpBB © 2001, 2005 phpBB Group and Ask an Expert
Also powered by Darren and the other admin and mods' hard work! ;)