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 / Health Points

Author
Message
Lavitz
20
Years of Service
User Offline
Joined: 16th Jan 2005
Location: Raddix Studio
Posted: 2nd Apr 2006 06:10
Say I have an RPG game with a guy with 2000 HP and an enemy with 5000. How would I go about making it to where once my enemy\'s HP reaches 0, I win?

Doom, Destruction, and Chaos! Mwahahahahahahahahaha!
Crazy Ninja
19
Years of Service
User Offline
Joined: 27th Aug 2005
Location: Awesometon
Posted: 2nd Apr 2006 08:35 Edited at: 2nd Apr 2006 08:36
maybe try

sry if it didn't help but i'm a noob
Lavitz
20
Years of Service
User Offline
Joined: 16th Jan 2005
Location: Raddix Studio
Posted: 2nd Apr 2006 13:19
Sorry, but what you were typing wasn't real code....but the basic concept works....in fact, helps. Thanks.

Doom, Destruction, and Chaos! Mwahahahahahahahahaha!
Saikoro
21
Years of Service
User Offline
Joined: 6th Oct 2003
Location: California
Posted: 2nd Apr 2006 17:14
Probably because the real code depends on what variables you're using. Just in case, say you were using variable enemyHealth as his health, and battleWin for when the battle is over, you would use:



Hope this helps.

And the meek shall inherit the Earth...
BENOJ
19
Years of Service
User Offline
Joined: 17th Mar 2006
Location: UK
Posted: 2nd Apr 2006 18:05
how about this




abit fatal1ty an8 sli mobo, ati radeon 1800 XT, 1.5GB RAM
250GB SATA HDD, AMD Athlon 64 x2 4200 (overclocked further)
Lavitz
20
Years of Service
User Offline
Joined: 16th Jan 2005
Location: Raddix Studio
Posted: 3rd Apr 2006 06:39
Hmmm.......anybody else? Not saying that your guys's ideas aren't good, I just would like a wider variety of ideas.

Doom, Destruction, and Chaos! Mwahahahahahahahahaha!
Pincho Paxton
22
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 3rd Apr 2006 09:25
Programming is about learning. You have a working example, if you can't make something from that you are doomed.

Baggers
20
Years of Service
User Offline
Joined: 31st May 2004
Location: Yonder over dem dere hills
Posted: 3rd Apr 2006 10:43
Indeed, seriously Lavitz you have here all you could need. Now you have to apply it to your game.

M.I.A is pending
Bona
20
Years of Service
User Offline
Joined: 22nd Oct 2004
Location:
Posted: 4th Apr 2006 00:12 Edited at: 4th Apr 2006 00:13
u maybe said that u needed a greater varity, but you have alredy got simplest solution, and promise me, it is working just fine, as i always use. simply use


You see? it cant be easier

The only way to get an intellegent conversasion is to have a monolog.
x1b
20
Years of Service
User Offline
Joined: 19th Sep 2004
Location:
Posted: 4th Apr 2006 02:28 Edited at: 4th Apr 2006 02:31
take what you want from this. check the CodeBase for more scraps of code dealing with basic RPG stuff from LiT and I




Lavitz
20
Years of Service
User Offline
Joined: 16th Jan 2005
Location: Raddix Studio
Posted: 4th Apr 2006 05:55
I told you all I wasn't insulting..........so don't flip me crap....and thanks....I believe I'm finished here.

Doom, Destruction, and Chaos! Mwahahahahahahahahaha!

Login to post a reply

Server time is: 2025-05-23 19:00:35
Your offset time is: 2025-05-23 19:00:35