I'm using a lot of Yanfly's scripts, in this case the command equip script. I'm trying to make it so that when the command equip window closes, it calls a common event that adjusts the actor's HP and MP if they equipped something that changed certain 'crystal stats' from another script.
How it works right now is-
*Player opens equip in battle to change equip
*Equips or unequips vit/spr gear.
*Closes window, a common event is called in the commandequip script, but no change in HP or MP.
*Inputs command, resolves. (RogueDeus AP script for initiative based battle, long story.)
*HP/MP changes take effect.
I'm trying to make it so that once the window closes, the HP/MP changes take effect immediately. Ultimately it's just so much QOL for the player, but it'd be a nice thing to accomplish.
Failing that, is there a way to alter how HP is calculated via script so that xstat.vit*level is added to the base HP?
How it works right now is-
*Player opens equip in battle to change equip
*Equips or unequips vit/spr gear.
*Closes window, a common event is called in the commandequip script, but no change in HP or MP.
*Inputs command, resolves. (RogueDeus AP script for initiative based battle, long story.)
*HP/MP changes take effect.
I'm trying to make it so that once the window closes, the HP/MP changes take effect immediately. Ultimately it's just so much QOL for the player, but it'd be a nice thing to accomplish.
Failing that, is there a way to alter how HP is calculated via script so that xstat.vit*level is added to the base HP?