Notice: fwrite(): Write of 483 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96

Notice: fwrite(): Write of 59 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96

Notice: fwrite(): Write of 1714 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96

Notice: fwrite(): Write of 44 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96

Notice: fwrite(): Write of 8192 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96
Print Page - Hunger System??

The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Tutorials and Eventing => Topic started by: Daelin on February 02, 2006, 09:22:09 PM

Title: Hunger System??
Post by: Daelin on February 02, 2006, 09:22:09 PM
I am currently using RPGM2K, and I want to know how to make a hunger system.

By this, I mean after a certain amount of steps, your character's status changes to "Hungry", and HP is deducted during battles, and while walking.

The status would be curable with items like "Meat" or "Apple".

I also wanted to make another system similar, only make it for Thirst.

Can anyone help??
Title: Ill try and find somethink
Post by: live4eva on February 05, 2006, 09:15:59 PM
hi i carnt script but ill try and find somethink for you and when i do ill post it or pm you ok

~live4eva~
Title: Hunger System??
Post by: blueXx on February 05, 2006, 09:23:25 PM
that's easy lol
scripting my ass...

here is what you do, make a variable named hunger and make a common parallel process going:

wait 5 frames
hunger: +1

if hunger = 800 then
-message: you should find something to eat asap
if hunger >= 1000 then
-switch (hungry) = on
else
-switch (hungry) = off

if switch(hungry) is on then
-change hp: entire party : -10 (ouch 10 hp damage per 5 frames, feel free to change it though)

and in battles, trigger it so that in every turn the battle event will work, and the battle event looks like:

if switch(hungry) = on then
-change hp:entire party: - 100

now make food items, link them to common events
say you make an apple, it's common event will be:
variable (hungry) : -500

and meat will reduce 1k or something and so on
Title: Re: Ill try and find somethink
Post by: King Anesis on February 06, 2006, 12:54:55 AM
Quote from: live4evahi i carnt script but ill try and find somethink for you and when i do ill post it or pm you ok

~live4eva~

Did you miss the RPGM2k of the post? :whoa:  :O_o:
Title: Hunger System??
Post by: ahref on February 06, 2006, 05:11:48 PM
blue you beat me to it

you could also use the poisned status for if the food was poisened