[FROG] Health - Additional Custom HP, Hunger, Thirst and more!
JS Plugin Releases (RMMV)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!
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.?
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.?
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.
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.
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.
@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.
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
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.
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.
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! 😀
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! 😀
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?
I know you can use plugin commands to get the actors hp, but not the enemy. What do?
How do I make a canteen type of thing?
Does this work for MZ too? Or just MV?
Was having issues with getting the enemy bars to show up. After playing around with it for a while, it looks like the plugin does not play nicely with Yanfly's YEP_X_SelectionControl. Once I turned that plugin off, all the enemy bars came back on and the plugin started working again.
I was using SelectionControl to prevent certain moves from being available until after the custom bar was full and a state had been inflicted. Any thoughts on how to get these working together would be greatly appreciated!
Thank you in advanced! :eswt:
I was using SelectionControl to prevent certain moves from being available until after the custom bar was full and a state had been inflicted. Any thoughts on how to get these working together would be greatly appreciated!
Thank you in advanced! :eswt:
Hi guys,
I am trying to get Yanfly's Menu/Status Core to display the extra stats in this plugin but so far i can't find out how...
Has anyone done this ?
EDIT: Also i can't seem to be able to hide the stats on a class by class basis.
EDIT 2: Renaming HP/MP/TP by class don't work for me (and it does not work in the demo map either)
I am trying to get Yanfly's Menu/Status Core to display the extra stats in this plugin but so far i can't find out how...
Has anyone done this ?
EDIT: Also i can't seem to be able to hide the stats on a class by class basis.
EDIT 2: Renaming HP/MP/TP by class don't work for me (and it does not work in the demo map either)
Hi Frogboy! I love your plugins!
This might be a very obvious problem but it's been giving me difficulty for weeks, so here goes. I'm having some difficulty with getting Health to work when I test play. More specifically I get an error as soon as i attempt to move the PC after a new game starts. It says something about not being able to read the property of 'immune', and player's movements I guess not synced up with the Health plugin.
Here's the actual error report... if that helps.
TypeError: Cannot read property 'immune' of undefined
at Game_Actor.Game_Battler.healthStates (FROG_Health.js:2143)
at Game_Party.increaseSteps (FROG_Health.js:2099)
at Game_Player.increaseSteps (rpg_objects.js:7563)
at Game_Player.Game_CharacterBase.moveStraight (rpg_objects.js:6700)
at Game_Player.moveStraight (rpg_objects.js:7975)
at Game_Player.executeMove (rpg_objects.js:7661)
at Game_Player.moveByInput (rpg_objects.js:7635)
at Game_Player.update (rpg_objects.js:7670)
at Scene_Map.updateMain (rpg_scenes.js:609)
at Scene_Map.updateMainMultiply (rpg_scenes.js:600)
It seems I need to define 'immune', but I have no idea how to do that. I'm using the most recent versions of everything.
It'd be great if you could help. Again, it seems to me like I'm missing something very obvious, but idk what it is!
thanks!
This might be a very obvious problem but it's been giving me difficulty for weeks, so here goes. I'm having some difficulty with getting Health to work when I test play. More specifically I get an error as soon as i attempt to move the PC after a new game starts. It says something about not being able to read the property of 'immune', and player's movements I guess not synced up with the Health plugin.
Here's the actual error report... if that helps.
TypeError: Cannot read property 'immune' of undefined
at Game_Actor.Game_Battler.healthStates (FROG_Health.js:2143)
at Game_Party.increaseSteps (FROG_Health.js:2099)
at Game_Player.increaseSteps (rpg_objects.js:7563)
at Game_Player.Game_CharacterBase.moveStraight (rpg_objects.js:6700)
at Game_Player.moveStraight (rpg_objects.js:7975)
at Game_Player.executeMove (rpg_objects.js:7661)
at Game_Player.moveByInput (rpg_objects.js:7635)
at Game_Player.update (rpg_objects.js:7670)
at Scene_Map.updateMain (rpg_scenes.js:609)
at Scene_Map.updateMainMultiply (rpg_scenes.js:600)
It seems I need to define 'immune', but I have no idea how to do that. I'm using the most recent versions of everything.
It'd be great if you could help. Again, it seems to me like I'm missing something very obvious, but idk what it is!
thanks!
I want to make a second mp bar for spells and a bar for the horror factor I'm a newb so any help is grateful. I want to change the names of the bars and have the unused bar not show.
Thanks in advance,
Crassus668
Thanks in advance,
Crassus668
this is just too funny
I'm a newbie, sorry. I noticed that the files are just the code. How do i add that to my project?
(Looks so amazing! Frogboy these are so creative and useful!)
Sorry for the dumb question but we all have to start somewhere. Lol
(Looks so amazing! Frogboy these are so creative and useful!)
Sorry for the dumb question but we all have to start somewhere. Lol
Click on the Raw button then right click and Save As... to your plugins folder.
You'll need FROG_Core.js and FROG_Health.js
Hello - RPGMaker MV newb here. I've been having the same issue as a lot of other people in this thread where attacks won't land on either the enemy or the party, and party members's HP reads as 'NaN'. I'm assuming this has something to do with the plugin's damage formula being different than the core programs's, but I'm not experienced enough with RPGMaker to know what I'm doing when messing with those.
I've tried using older versions of this plugin - everything before 0.9.3 will instantly make the game error-screen, and 0.9.3+ has the problem I'm talking about. The only plugins I'm using aside from Community_Basic are FROG_Core and FROG_Health.
Any help would be appreciated.
I've tried using older versions of this plugin - everything before 0.9.3 will instantly make the game error-screen, and 0.9.3+ has the problem I'm talking about. The only plugins I'm using aside from Community_Basic are FROG_Core and FROG_Health.
Any help would be appreciated.
Original thread: https://forums.rpgmakerweb.com/threads/frog-health-additional-custom-hp-hunger-thirst-and-more.92623/