[FROG] Health - Additional Custom HP, Hunger, Thirst and more!

Frogboy

I'm not weak to fire
Veteran
Joined
Apr 19, 2016
Messages
1,834
Reaction score
2,343
First Language
English
Primarily Uses
RMMZ
@Aditya_Himarwan
Would this feature work for what you're trying to do?
Drain Health Abbr - Normally, when a Health HP bar runs out, that’s it. Most of the time, something really bad happens like they die, fall asleep, go insane or whatever. But maybe you don’t want it to be so drastic. Maybe running out food or water doesn’t kill you but starts draining your normal HP. In systems where normal HP is split into different Health HP stats like (Head, Body, Arms and Legs), you probably want negative health in those areas to start damaging the character’s normal HP. By specifying an abbreviation, when this Health is at critical levels as defined by the Control parameter, excess is applied to the other Health stat. You can also use HP or MP here. This only works for Incremental and Decremental control types at this time.
 

Aditya_Himarwan

Villager
Member
Joined
Sep 19, 2019
Messages
16
Reaction score
3
First Language
Indonesia
Primarily Uses
RMMV
@Aditya_Himarwan
Would this feature work for what you're trying to do?
Dude why didn't i read this beforehand.\? I guess my english and/or reading capabilities is that bad.

Buuut, the problem is that i want to decrease my HP(bodyweight) by 1 value for every 5 value for HP(energy). I think i just stick to modifying variables for now. Thank you, though!
 

KawaiiKid

Veteran
Veteran
Joined
Oct 13, 2015
Messages
188
Reaction score
45
First Language
English
Primarily Uses
Hey, just found this plugin. I've been just doing a really simplified version of what you are doing here by just using common events and stuff found here: https://forums.rpgmakerweb.com/index.php?threads/hunger-thirst-sleepsystem-without-scripting.11073/ But it looks like this is 1000x better. I have 2 questions though after going over the plugin. Is there any way to add the status of your needs onto the hud of the regular map? It gets a bit tiring having to always go into the status screen to check. My other question is how I could get around doing something with this.

Currently I have a food system in my game that gives you a buff when you eat it, this buff will increase your hp by [x] for 15 minutes. I did this by using the Set Timer function upon casting said buff (aka eating the food) , as well as turning on a switch to run a common event that checks to see if the Timer is at 1 second or below, at which point it cures you of the buff and removes the timer.

So my question is, is there a way to do this as an example:
Small bread: Recovers 40% of your "food hp" and gives you a buff for [x]amount of time (or steps)
Large bread: Recovers 100% of your "food hp" and gives you a buff for [x]amount of time (or steps)
Small drink: Recovers 40% of your "water hp" and gives you a buff for [x]amount of time
etc.?
 

Frogboy

I'm not weak to fire
Veteran
Joined
Apr 19, 2016
Messages
1,834
Reaction score
2,343
First Language
English
Primarily Uses
RMMZ
Is there any way to add the status of your needs onto the hud of the regular map?
If you have a HUD plugin, you should be able to configure it to display these Health HP just the same as regular HP, MP and TP. I'm almost positive that SRD's HUD Maker would allow you to do what you're looking for here. There are probably other HUD plugins out there that would work as well. RPG Maker itself doesn't have a way to create a HUD and it was a bit out of scope for this plugin.

Recovers 40% of your "food hp" and gives you a buff for [x]amount of time (or steps)
There's nothing built into this plugin itself that can do this. I implemented something similar in that, you could base your buffs not on the recent consumption of items but on the current level of Health HP that an actor has. If they eat some food and go up to full Hunger HP then they get a buff until it falls down to a certain percentage again where the buff goes away. Likewise, if it falls down too far, they acquire debuffs or some other negative effects. What you're describing is different, though, and you'll have to figure out a way to implement it if you need it to work exactly as you describe. You could keep the system that you implemented already. It should work just the same with or without the Health plugin.
 

SailorXXIV

Soul
Veteran
Joined
Aug 19, 2020
Messages
30
Reaction score
3
First Language
English
Primarily Uses
RMMV
how do i add food cause I'm super confused on how to use the id and note tags like how do i make a certain item give you certain thing.
 
Last edited:

Frogboy

I'm not weak to fire
Veteran
Joined
Apr 19, 2016
Messages
1,834
Reaction score
2,343
First Language
English
Primarily Uses
RMMZ
@SailorXXIV
Because you can't choose Rest, Hunger or whatever your custom health attributes are, you can't select them in the editor. There's also the need to perform damage or recovery to multiple health attributes with one skill.

So how it works is that you create formulas in the Formulas section of the plugin parameters. Each formula is given a unique name by you. You could call it "Apple". Fill out the other parameters. Enter in the health abbreviation, a damage damage formula and make sure the other options are what you need them to be.

In the editor's damage formula box for an item or skill, write the formula name that you defined in the plugin parameters surrounded by quotes. You can use single or double quotes. What this does is ensure that your the game engine evaluates the formula as a string of text. Since this is an invalid formula anyway, I programmed the plugin to specifically look for a plain old string of text and assume that it is a name of a formula that you have defined in the plugin parameters. If you enter in "Apple" or 'Apple' (with the quotes) as a damage formula in the editor associated with an item, it'll look up the formula and execute it when the Apple item is used.
 

SailorXXIV

Soul
Veteran
Joined
Aug 19, 2020
Messages
30
Reaction score
3
First Language
English
Primarily Uses
RMMV
@SailorXXIV
Because you can't choose Rest, Hunger or whatever your custom health attributes are, you can't select them in the editor. There's also the need to perform damage or recovery to multiple health attributes with one skill.

So how it works is that you create formulas in the Formulas section of the plugin parameters. Each formula is given a unique name by you. You could call it "Apple". Fill out the other parameters. Enter in the health abbreviation, a damage damage formula and make sure the other options are what you need them to be.

In the editor's damage formula box for an item or skill, write the formula name that you defined in the plugin parameters surrounded by quotes. You can use single or double quotes. What this does is ensure that your the game engine evaluates the formula as a string of text. Since this is an invalid formula anyway, I programmed the plugin to specifically look for a plain old string of text and assume that it is a name of a formula that you have defined in the plugin parameters. If you enter in "Apple" or 'Apple' (with the quotes) as a damage formula in the editor associated with an item, it'll look up the formula and execute it when the Apple item is used.
thanks man I kinda get it now
 

tomexplodes

Veteran
Veteran
Joined
Oct 15, 2012
Messages
32
Reaction score
6
First Language
English
Primarily Uses
Okay, I've been slowly figuring out how to use this, I'm working on an Ultima fan-game so this is great. I've got a Food bar set up and figured out how to restore it, I'm making it so once your hunger runs out, you start taking damage. The problem I have with that is that there is no visual indicator, like a screen flash or character animation, to indicate that you're now taking damage. Is there any way to make that happen? Thanks very much!

EDIT New problem. Somehow this has broken combat. Enemies don't die when they hit 0 HP, and sometimes I'm not even sure I'm hitting them.

EDIT AGAIN: Nope, I've determined that enemies simply aren't being hit in combat. I'm not sure what I did wrong here.
 
Last edited:

vongrimmsy0

Old-School Enthusiast
Member
Joined
Apr 20, 2021
Messages
8
Reaction score
0
First Language
English
Primarily Uses
RMMV
Haven't had a chance to play with this plugin yet, but if it's anything like your Talents plugin, I'm sure it'll be a treat to use. (It's a ton of fun having characters be able to climb walls/jump over chasms and such, fwiw~)

Just curious, would a 'Stamina' system by viable using this..? As in, set up a Stamina HP value and have skills cost a certain amount of stamina, or attach similar costs to whatever commands are chosen, etc...?

Thanks in advance, and thanks for your other plugins as well! :D
 

Behastie

Warper
Member
Joined
Sep 21, 2019
Messages
3
Reaction score
1
First Language
English
Primarily Uses
RMVXA
Hey guys, I've got a problem I can't find in the documentation. I'm trying to access the values for enemy health bars in the plugin through javascript - the way I would be able to do $gameTroop._enemies._hp or grab the enemy index through eventing.

I know you can use plugin commands to get the actors hp, but not the enemy. What do?
 

SailorXXIV

Soul
Veteran
Joined
Aug 19, 2020
Messages
30
Reaction score
3
First Language
English
Primarily Uses
RMMV
How do I make a canteen type of thing?
 

Latest Threads

Latest Posts

Latest Profile Posts

i only have one decent song and i dont even think it fits for a video game
Update: I finished the combat arena! My goodness, it took a while! There were numerous little bugs to squash.
Maldra wrote on stramin's profile.
Hi regarding the 32 bit -> 64 bit
I am running on a 64 bit windows OS and tried doing this conversion. I converted all of the .exe files that I could find in the KADOKAWA\RPGMV folder using the 4gbpatch.exe file. However, after trying to access RPG Maker MV after this conversion, it simply will not load. Do you have any advice or any ideas?
****ing muscle memory: does anyone else habitually quit out of test play when they notice something they """HAVE""" to fix, in spite of the fact that you can now edit DURING test play?

...thousands of times...

...every day?
Does anyone recognize him? :kaocry:
pwkyiDa.jpg

And hi.

Forum statistics

Threads
115,928
Messages
1,094,140
Members
151,188
Latest member
yuangou
Top