I want to do something slightly different with the values that have conventionally been used to abstract a character's well-being, but as a relative newbie to VXA's conventions (though OK with ruby) I'd appreciate knowing beforehand whether what I'd like to do is plausible and where I'd need to look while making edits to prevent terrible horrible no good very bad bugs.
I'd like HP and MP to be instead used as Physical Exertion and Mental Exertion, PE and ME. A perfectly healthy character will start with 0 in both of these values, and as they take physical and mental damage and use taxing skills these values will approach the character's soft-cap.
Upon reaching this soft-cap, the character initiates a "Death Counter" (DC) checked against a custom stat associated with PE and ME; Grit. Grit is small, usually between 2 and 5. Every turn the character receives with PE or ME at or above the soft-cap increments the counter (twice if both PE and ME are at or above cap), and once it reaches the same value as the character's Grit, that character dies. The DC only resets once battle is complete or a dead character is revived, so being taken into the soft cap multiple times in the same fight is very dangerous unless a very rare item that refreshes the DC is used, but to an extent players will be able to keep characters "in the red" for a series of battles as long as they finish off the enemies fast enough each time.
These rules also apply to enemies, but with the exception of bosses and a few special encounters no enemies have a Grit stat and will die as soon as their PE or ME caps are reached.
In case this is confusing, I'll take you through an example fight. There are stats other than PE/ME/Grit/DC, but for this example they'll be conflated into damage dealt and received.
My psionic class character Angus just engaged a fight with a Dire Butt. Angus starts with 0/50 PE, 0/32 ME, and 3 Grit, while the Dire Butt starts with 0/36 PE and 0/72 ME. To open the fight, Angus uses his special ability Mind Wrack, which costs him 6 ME to deal 32 ME in damage to the Dire Butt. Angus now has 0/50 PE and 6/32 ME, while the Dire Butt has 0/50 PE and 32/72 ME. The Dire Butt uses Butt Bounce, a devastating physical move that costs 30 PE but deals 70 PE of damage when it connects, which it unfortunately has. After that blow, Angus is left with 70/50 PE and 6/32 ME, and is already over his physical cap. The Death Counter activates, incrementing to 1/3(DC/Grit). The Dire Butt has 30/50 PE and 32/72 ME, and is not far from dying from physical causes, but because Angus is over PE cap he is locked out of his hard-hitting physical skills that cost PE, and his basic attack deals ME damage. Fortunately, Angus has a unique skill called "Telekinesis" that costs 12 ME but will deal 25 PE damage. He uses the skill to mentally strike the Dire Butt with a frying pan, putting the Dire Butt at 55/50 PE and 32/72 ME, killing it. Angus ends the fight with 70/50 PE and 18/32 ME, his PE healed somewhat to the cap of 50/50 post-battle.
Some things I'm concerned with while figuring out how I'll implement this:
I'd like HP and MP to be instead used as Physical Exertion and Mental Exertion, PE and ME. A perfectly healthy character will start with 0 in both of these values, and as they take physical and mental damage and use taxing skills these values will approach the character's soft-cap.
Upon reaching this soft-cap, the character initiates a "Death Counter" (DC) checked against a custom stat associated with PE and ME; Grit. Grit is small, usually between 2 and 5. Every turn the character receives with PE or ME at or above the soft-cap increments the counter (twice if both PE and ME are at or above cap), and once it reaches the same value as the character's Grit, that character dies. The DC only resets once battle is complete or a dead character is revived, so being taken into the soft cap multiple times in the same fight is very dangerous unless a very rare item that refreshes the DC is used, but to an extent players will be able to keep characters "in the red" for a series of battles as long as they finish off the enemies fast enough each time.
These rules also apply to enemies, but with the exception of bosses and a few special encounters no enemies have a Grit stat and will die as soon as their PE or ME caps are reached.
In case this is confusing, I'll take you through an example fight. There are stats other than PE/ME/Grit/DC, but for this example they'll be conflated into damage dealt and received.
My psionic class character Angus just engaged a fight with a Dire Butt. Angus starts with 0/50 PE, 0/32 ME, and 3 Grit, while the Dire Butt starts with 0/36 PE and 0/72 ME. To open the fight, Angus uses his special ability Mind Wrack, which costs him 6 ME to deal 32 ME in damage to the Dire Butt. Angus now has 0/50 PE and 6/32 ME, while the Dire Butt has 0/50 PE and 32/72 ME. The Dire Butt uses Butt Bounce, a devastating physical move that costs 30 PE but deals 70 PE of damage when it connects, which it unfortunately has. After that blow, Angus is left with 70/50 PE and 6/32 ME, and is already over his physical cap. The Death Counter activates, incrementing to 1/3(DC/Grit). The Dire Butt has 30/50 PE and 32/72 ME, and is not far from dying from physical causes, but because Angus is over PE cap he is locked out of his hard-hitting physical skills that cost PE, and his basic attack deals ME damage. Fortunately, Angus has a unique skill called "Telekinesis" that costs 12 ME but will deal 25 PE damage. He uses the skill to mentally strike the Dire Butt with a frying pan, putting the Dire Butt at 55/50 PE and 32/72 ME, killing it. Angus ends the fight with 70/50 PE and 18/32 ME, his PE healed somewhat to the cap of 50/50 post-battle.
Some things I'm concerned with while figuring out how I'll implement this:
- Initializing and "full-heal"ing values to 0/Max instead of Max/Max
- Preventing automatic death state when HP->PE is 0 (semi-permanent immortality might be the answer, but I think that defaults at keeping the HP value at 1?)
- Substituting the TP/Max TP bar for a Death Counter/Grit one in battle
- Allowing HP->PE and MP->ME to go over max during a battle
- Reversing color coding for healthy/dying/dead (think I found where I do this one)
- Negating/reversing damage application to add Formula value rather than subtract for harm, and subtract rather than add for healing
- Subjecting enemies to the same player rules, but, with exceptions who have a Death Counter and Grit stat, they immediately die at PE or ME cap. Initializing enemies with 0 PE/ME and prevening them from dying instantly from that somehow.
- Gauges underneath enemies for PE/ME[/DC] that resemble the player characters' (easy)
- Death state retains HP->PE value when applied