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.

Code Snippets / Basic RPG Hunger Counter

Author
Message
Blinn
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: Behind a keyboard... pffft Duhh!
Posted: 27th Jan 2004 22:56
Ehh, hello. Im blinn, iv had darkbasic software for 2 days and my freeware is running out , im saving up for proffessional

well this is basically my first little snipit enjoy

Good night, good morning, good day? whats so good about it?!?!?
Blinn
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: Behind a keyboard... pffft Duhh!
Posted: 27th Jan 2004 22:57
rem Hunger is the countdown until you will start loosing HP.
Hunger=100
rem HP is your life, when it reaches zero you die.
HP=100

rem Main loop for loosing hunger.
do
Hunger=hunger-1
wait 50
Print "hunger ";hunger
If hunger=0 then goto dying
wait 10
cls
---MADE BY BLINN, you have to remove this line to run it ---
loop
---MADE BY BLINN, you have to remove this line to run it ---

dying:
rem Main loop for loosing HP.
do
Hp=hp-5
wait 50
Print "HP ";hp
If hp=0 then goto dead
wait 10
Cls
loop

dead:
cls
Print "You die"
Print "Made by Blinn"
Print "Press any key to continue"
suspend for key

this is for those of you who dont know that the code is under the source button

Good night, good morning, good day? whats so good about it?!?!?
John H
Retired Moderator
22
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 27th Jan 2004 23:14
Good, now enhance it into a full blown battle system


We need help! Email us! join@eternaldestinyonline.com
slurch901
20
Years of Service
User Offline
Joined: 20th Jan 2004
Location: ESPAÑA
Posted: 28th Jan 2004 00:04
not bad code, basic but not bad for a begginer
UnderLord
21
Years of Service
User Offline
Joined: 2nd Aug 2003
Location:
Posted: 28th Jan 2004 07:06
indeed...i wanna see a full blown battle system with lasers and fireworks and the head of....well...ok maybe thats a bit much heh

Soon to have a Asus motherboard with 64 bit CPU and the works weeeee!

Login to post a reply

Server time is: 2024-11-24 00:33:03
Your offset time is: 2024-11-24 00:33:03