I've been looking into some of the Yanfly tips & trick videos and one of the skills I'm trying to implement is the 'Convert' skill. Which swaps an actors HP & MP.
Info found here - http://yanfly.moe/2017/01/05/tips-tricks-convert-final-fantasy-11-rpg-maker-mv/#more-4603
Skill note tag
Code:
<Before Eval>
// Get the target's current HP value
var hp = target.hp;
// Get the target's current MP value
var mp = target.mp;
// Set the target's current HP to the stored MP value
target.setHp(mp);
// Set the target's current MP to the stored HP value
target.setMp(hp);
</Before Eval>I've set this up so it works.. but the problem I'm having is that it only sets the current HP & MP not the MaxHP & MaxMP.
So for example if an actor had these values
Before skill is used:
Actor Hp = 100/100
Actor Mp = 200/200
---------------------
After skill is used:
Actor Hp = 100/100
Actor Mp = 100/200
---------------------
The problem here is that it doesn't raise the Max parameter values so it doesn't end up being very useful in my case because it cant increase the values past the 'Max' values.
I think i want something like this
Code:
<Before Eval>
var hp = target.hp;
var mp = target.mp;
target.setMhp(mp);
target.setMmp(hp);
</Before Eval>But this doesn't work :p Does anyone have any other ideas how i could essentially swap two parameters for actors in battle?
Hopefully this is clear :kaoswt:
Thanks! :D