Hello, everyone! I'm trying to create a State system that works similarly to Black Mage from Final Fantasy XIV.
In FFXIV, Black Mage has two "modes": Astral Fire, which increases their attack power but also increases MP cost, and Umbral Ice, which decreases MP cost and allows them to regenerate MP over time. The idea for this mechanic is that you want to stay in Astral Fire mode as long as possible to maximize damage while switching over to Umbral Ice when you run out of MP.
I've gotten the main mechanics for it working pretty easily. In FFXIV, casting Fire spells while you have no mode on adds the Astral Fire state, and doing so while you're in Umbral Ice removes Umbral Ice, requiring you to cast again in order to add Astral Fire. The same works in reverse, however you can also use a skill called Transpose which automatically adds the opposite state without needing a second cast.
To do this, I simply created the two states, and made two moves that add the state in the damage formula, which looks something like this:
Then, in the states section, I used Yanfly's Buffs and States Core to add a Custom Apply effect that says "once you add this state, remove the other". This is one of the cases where my system differs from the system that inspired it, since the character in question is always in either one state or the other (with every battle beginning by adding Umbral Ice to the character). For the Transpose Skill, I once again used the damage formula to apply a very simple script:
So, this all works perfectly on its own, however there's one last aspect of this mechanic that I'm struggling to make work. Basically, I want the two states to be able to build up stacks with the maximum stack count equal to their Luk (which is reworked as a special "gimmick" stat in my game), and I want to make it so that when the Transpose skill is used, the stacks on one state are removed and one stack is added to the other, and add in skills that are able to add more than one Stack in one turn.
Does anyone know how I would go about setting up something like this?
In FFXIV, Black Mage has two "modes": Astral Fire, which increases their attack power but also increases MP cost, and Umbral Ice, which decreases MP cost and allows them to regenerate MP over time. The idea for this mechanic is that you want to stay in Astral Fire mode as long as possible to maximize damage while switching over to Umbral Ice when you run out of MP.
I've gotten the main mechanics for it working pretty easily. In FFXIV, casting Fire spells while you have no mode on adds the Astral Fire state, and doing so while you're in Umbral Ice removes Umbral Ice, requiring you to cast again in order to add Astral Fire. The same works in reverse, however you can also use a skill called Transpose which automatically adds the opposite state without needing a second cast.
To do this, I simply created the two states, and made two moves that add the state in the damage formula, which looks something like this:
Code:
a.addState(114); a.atk*1.0 - b.def*1
Then, in the states section, I used Yanfly's Buffs and States Core to add a Custom Apply effect that says "once you add this state, remove the other". This is one of the cases where my system differs from the system that inspired it, since the character in question is always in either one state or the other (with every battle beginning by adding Umbral Ice to the character). For the Transpose Skill, I once again used the damage formula to apply a very simple script:
Code:
a.isStateAffected(115) ? a.removeState(115) : a.addState(115) ;
So, this all works perfectly on its own, however there's one last aspect of this mechanic that I'm struggling to make work. Basically, I want the two states to be able to build up stacks with the maximum stack count equal to their Luk (which is reworked as a special "gimmick" stat in my game), and I want to make it so that when the Transpose skill is used, the stacks on one state are removed and one stack is added to the other, and add in skills that are able to add more than one Stack in one turn.
Does anyone know how I would go about setting up something like this?