FrogboyMV-Health

Health

Introduction

RPG Maker MV gives you a lot of fine-grained control over your game, but it’s primarily geared towards the creation of the JRPGs. This means that certain aspects of some of the classic WRPGs that I grew up with, like Ultima and Dungeons & Dragons, aren’t supported by default. Well, I’d like to fix that!

Adventuring is dangerous business. Imagine your party climbing the tallest mountain in the world. The icy wind howls as you all attempt to stave off the cold. Nights are treacherous and not just because monsters are about. The temperature drops to an unmanageable degree. You must find shelter and build a fire in order to avoid freezing to death. You packed as much food and water as you could but reaching the top of the mountain is taking a lot longer than anyone expected. The monsters roaming this rarely travelled location are fierce and relentless. Exhaustion is setting in as sleep is hard to come by. Will you live to reach the peak? Will you have enough strength left to fight the White Dragon who lives at the top and guards an ancient artifact that you desperately need to fulfill your quest?

This plugin requires FROG Core to be installed.

Cold

Or, you know, there’s always this.

One element that used to be very common in classic WRPGs is extra parameters for health beyond the physical which is typically designated as HP or Life. These extra parameters are typically things that a real, living human being, or whatever race they may be, couldn’t survive or function without: Food, Water, Oxygen, Normal Body Temperature, their Mind/Psyche/Sanity and so on. Some games even divided a character’s overall HP into different body parts with varying side-effects attributed to low health in each. A busted leg would slow you down. A mangled arm would make it impossible to carry a shield. A serious head wound might knock you out for while.

That’s where FROG_Health comes into play. Instead of taking the easy route and just making some extra variables that you can manipulate, I’ve gone and done something a little crazy. I’ve added full-blown extra HP stats to RPG Maker MV that are completely customizable. Better yet, I’ve provided a way to set environmental conditions that change the way your custom Health HP operates. For instance, you can define an Oxygen HP stat for your actors which normally would rise every few steps and be full most of the time. Go underwater, though, and the plugin can set a Condition which will start depleting your Oxygen HP. You also have the ability to tie States to different levels of HP (normal or Health HP) so that if your character’s Oxygen completely runs out, they die. Even better, you can create Skills and Items that apply to your new Health HP stats the same exact way they would apply to normal HP. Want to give an enemy a Choke attack or have your Wizard casting a suffocation spell? No problem. I’ve got you covered.

Features

How to Use

This plugin has a crap-ton of parameters so that you can configure this system work however you need for your game. Ready to get crunchy?

Settings

Health Config - Add various aspects of health to your game. This is the meat and potatoes of this plugin. This parameter allows you to add additional HP stats to your game. Maybe you want to make Food, Water and Rest. A horror game could utilize Sanity or Fear. Maybe you want to have a system where Head, Body, Arms and Legs each have their own HP bars. It’s completely customizable so whatever you want to do will probably work.

status

Basic State Management - Wouldn’t it be nice if have low HP, MP or TP could also apply States like Health HP does? Wouldn’t it be nice we even went a step farther and granted a nice little bonus when these attributes are nearly full? Of course it would so that why you can now extend this kind of functionality to your normal HP stats.

Conditions - Add conditions that alter the way specific Health aspects function for all party members. Many different environments can change the way Health HP work. Going underwater will deplete your Oxygen. An icy tundra could freeze an unprepared adventurer to death. Travelling through a desert can give you heat stroke and drain your Water HP quicker. A stale bog might have a chance to infect you with a rare disease. No longer can your adventurers brave harsh conditions without feeling it’s effects. Some Conditions may not affect Health at all but are just used to turn day into night or make ranged attacks less effective if it happens to be especially windy outside.

Formula Config - By now, you might be wondering how these Health attributes work in battle. For the most part, they work just like normal HP. This changes some dynamics, though. If you have Rest HP, why have a Sleep spell that succeeds or fails based on random chance? You could make Sleep do Rest damage now. Charm and Fascination could attack the mind. You could even have a suffocation spell suck the air out your enemy’s lungs (assuming they have lungs). Your Skill list is about to get a lot more interesting.

Formula

Actor Config - Configure actor specific properties.

Class Config - You said that these were just like real HP. That means that my characters can gain Health HP as they level up, right? Yep, of course they can.

Enemy Config - Configure enemy specific properties.

Use Health Battle Status - The actor battle status window has been reimagined to display all of your Health HP gauges. If you don’t want to use this, set this to false.

Use Custom Actor Terms - Custom Actor Terms for HP, MP and TP require overwriting core code so this option must be explicitly enabled to use. Overwriting core code can cause incompatibilities with other plugins so I’m giving you way to shut this off if you need to.

Add to Formulas - If you want to use any of the actor’s Health HP in a formula, turn this option on. If not, you can leave it off.

Save Health Object - Setting this to true allows you to modify the $dataHealth object, which contains all of the information within the plugin parameters, when the player saves the game. By default, this object is built from the plugin parameters when a new game is started or a saved game is loaded. This is usually what you’ll want. If, for some reason, you need to alter this data in-game and have those changes persist until the end of the game, you’ll need to turn this option on.

Limit Party Size - Health effects will only be applied to the first X members of the party. This option is mainly used for games that only want the lead actor to have to manage their health while other actors are temporary characters that are assumed to be managing their own health. It can also be used if you have reserve actors and you don’t want their health levels falling.

Style

Show Max Health - The default Status screen now shows the different levels of health alongside the actor’s attributes and equipment. The Health HP is shown as Current HP/Max HP. If you only want to show the current HP, turn this off.

Alert Config - Configure alert message window properties. When an actor is affected by State due to health level

Color Config - The default Status screen’s attributes and Health HP now display with color gauges. You can configure those gauges here.

status

Battle Config - Health HP has been integrated with the battle system. Because actors and enemies can now have many different HPs to take into consideration, I implemented visual gauges to more easily present this information to your players.

status

Status Window - The default RPG Maker MV status window can be configured to show the Health information.

Text Manager - Configure how some of the text is displayed, mostly related to the battle log.

Plugin Commands

These commands will give you more control over your character’s health scores. Any [value] parameter can take a number such as 20 or a percentage like 20%.

Get the current health or max health value for this aspect

HEALTH GETHP [actorId] [abbreviation] [variableId]
HEALTH GETMHP [actorId] [abbreviation] [variableId]

Set the exact value for a specific aspect of health

HEALTH SETHP [actorId] [abbreviation] [value]

Adds to the value for a specific aspect of health

HEALTH ADDHP [actorId] [abbreviation] [value]

Subtracts from the value for a specific aspect of health

HEALTH REMHP [actorId] [abbreviation] [value]

Sets health of all party members

HEALTH SETHPALL [abbreviation] [value]

Adds health to all party members

HEALTH ADDHPALL [abbreviation] [value]

Subtracts health to all party members

HEALTH REMHPALL [abbreviation] [value]

Test to see if a Condition is active

HEALTH ISCONDACTIVE [condition name] [switch]

Sets a Condition as active

HEALTH SETCOND [condition name]

Removes an active Condition

HEALTH REMCOND [condition name]

Terms of Use

This plugin can be used in commercial or non-commercial projects. You also have my permission to write and share plugins that add to or extend the functionality of this plugin. While not required, if you use this in a commercial game, a free copy of the game would be nice as I put a lot of work into this and would love to see how you used it in your game.

Credit Frogboy in your work.

Changelog