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

Thanks, I appreciate it!
Update: The demo has been released!

Plugin has been updated to Version 0.9.3. Here's what's changed.
  • Added random Health damage in formulas.
    • You can now specify a comma-delimited list of abbreviations and the formula will randomly pick one each attack. This will be useful for systems that have different body parts as separate HP like Head, Body, Arms and Legs. You can make an attack that does random damage to one of these. You can list an abbreviation more than once to increase the odds that it'll be chosen.
  • Added a way to make all enemies immune to individual Health HP.
    • In the Battle Config -> Enemy Gauge List, you specify which Health stats all enemies use. If you don't want enemies to have Health stats, you can just clear this list out and you're done. It was way too tedious to enter every enemy in as Adjustments to make them immune to each Health stat.
  • Added alert messages for when actors gain States due to Health levels.
    • Now when your, let's say Rest, falls down low enough that you gain the Tired State, a message box will appear to let you know that your character just acquired it and probably needs to get some sleep.
  • Added Custom HP, MP, TP terms by class and enemies.
    • I had this for actors already. Not sure why I didn't have it for classes and enemies. Now the Fighter's and Archer's MP can be called SP or Skill. Maybe your Psionic can show PP (Power Points) in place of MP. Every actor, class and enemy can have their own unique HP, MP and TP names and abbreviations now.
  • Fixed bug where items weren't usable.
  • Fixed bug with Drain Health feature.
    • This is when a Health value drops below zero and you use the Drain Health Abbr. to damage a different Health stat in its place. It worked for actors but not for enemies.
Getting this error whenever I have FROG_Health enabled. As soon as I turn that plugin off, everything works fine.
N7yKaRL.png
@GameFire
What version of this plugin are you running? Line 3490 doesn't seem to match up with the error that you are receiving.
I just updated to the new version. Version 0.9.3
I see. I must have added a line of code since I updated it. This error would seem to indicate that you deleted all of your Health Config parameter. Is this the case?
Nope. I have the default Food, and a slightly altered version for Sleep.
Maybe you are updating from an early version of this plugin? Try opening up the Health Config parameter and resetting your modifications again. I think I changed the name from Health to Health Config at some point and hopefully that's why this is crashing. I still need to catch this error in the next update, though. Let me know if this fixes your issue.

Edit: I have a feeling that I need to update my default parameters in this plugin. I'll do that tomorrow and push a new version.
I copied over the Health Config settings from the demo, now it's not throwing an error
I issued a couple of minor updates today.
  • Updated the default plugin parameters as they got out of date and caused issues.
  • Added a configurable draw rate to the actor battle status window. If you draw too many gauges and numbers every frame, performance might take a hit.
thank you frog : D
Does this system allow you to use these alternate health systems like you would MP or TP? So I could rename hunger to Soul and have an alternate energy source for my characters to draw from, which kills them if they run out of it?
@MMMm
No, not yet. It's been on my mind and I was actually thinking about adding that recently. Then I realized that it was going to take more planning than I originally thought. It's not enough to just attach a cost to a Skill use. I also have to first verify that enough of the alternate MP is available and gray out the Skill if not. Additional MP costs need to be displayed to the player. Probably some other things I haven't thought yet that I'll run into. It shouldn't be too difficult and I will almost certainly add it at some point but I haven't gotten around to it yet. I worked on this one for so long that I kind of burned out on it and needed something new but I will still come back to it and add stuff like this. Just need a little break right now.
i udnerstand ^^
@Nightshade
I'm still going to fix the bugs you find. Getting the HP functionality working properly is higher priority than adding new functionality like MP or TP.
alright FB 🙂 while your at i'll figure out what in the world broke my intro event T_T
Updated to Version 0.9.33. Just bug fixes.
Capture.PNG
Hi buddy after your awesome work on the last one I thought I'd give you more. got this error.

This comes after using an item to restore a new health type I created.
@padr81
Thanks for reporting the issue. I can't see what line number its crashing on, though. The image got a little too compressed.
@Frogboy - Line 3074 buddy.

I also ran it on my 1.6.1 project (same game just updated build) and I got an error on the same line 3074 but the variable type it was trying to read was different.

1.5.2 - The error says "float parameter 3 in non-finite"
1.6.1 - The error says "the provided double value is non-finite".

Not sure if thats any help but thought I'd throw it up here. Everything else works perfect so I can starve my player but can't feed him.

Quick edit. If I use a plugin command to try and add HP instead of an item, I get an error that says "Cannot read property 'gain health' of null" and the error is in line 3854

Original thread: https://forums.rpgmakerweb.com/threads/frog-health-additional-custom-hp-hunger-thirst-and-more.92623/