Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / number decline

Author
Message
DaedalusX
21
Years of Service
User Offline
Joined: 10th Mar 2004
Location:
Posted: 6th Jun 2004 02:00
im trying to make a foundation for a text based rpg: i am trying to make a enemies hit points to decrease when i press the spacebar. i have set equations for how much damage is made and i need the monsters hp to decline by the damage made. all that happens is the number is decreased once. any help will be appreciated
Lost in Thought
21
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 6th Jun 2004 05:58
I don't know about DBC but that works here in DBP. DBC may not allow you to specify how much to dec. You could do


"People don't fail ..... they stop trying." Specs. P4 2.8GHz 800 FSB | 512MB DDR333
GeForce FX 5200 AGP 256MB | Windows XP Pro Full
DaedalusX
21
Years of Service
User Offline
Joined: 10th Mar 2004
Location:
Posted: 6th Jun 2004 14:33
hasnt made any difference. thanx anyway, my program may just need tweaked for it to work *hopes* thanx
Mentor
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 6th Jun 2004 19:59
just one thing, make the if-then structures into if-endif structures, DB sometimes makes a mess of parsing if-then and gives the wrong result even though the code is right, it seems to like being led by the hand and told specificaly when the decision has ended, just something I noticed that has given me some greif before, now I make even one liners into if-endifs just to ensure code runs as expected EG



is safer as




Mentor.

PC1: P4 hyperthreading 3ghz, 1gig mem, 2x160gig hd`s, Nvidia FX5900 gfx, 6 way surround sound, PC2: AMD 1.2ghz, 512mb ram, FX5200 ultra gfx, stereo 16 bit soundblaster, ups.

Login to post a reply

Server time is: 2025-05-23 22:07:00
Your offset time is: 2025-05-23 22:07:00