RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Hunger System??

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 89
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??
"Sure we were created equal... but I've been levelling up." - Me

**
Rep: +0/-0Level 89
hi i carnt script but ill try and find somethink for you and when i do ill post it or pm you ok

~live4eva~

******
Rep:
Level 91
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
holy shit my sig was big!

******
Rep:
Level 92
Welcome Poster of Year 2006 Award
Quote from: live4eva
hi 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:
Do you want to be part of a growing Gaming Community, with many galleries, comics, active community, and gfx artists? Also known to be friendly. Also want some free anime music just for signing up? Play in the arcade?



Click Community Forums to join!

< Zelda Fan Club

*
Resident Cloud
Rep:
Level 91
blue you beat me to it

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