Hello,
I am using RPG Maker MV.
I am trying to make a state that causes the battler to do 50% of their normal damage and to gain MP based on say 10% of the damage they deal each round they have the state.
I figure that Yanfly's BuffStatesCore is the best way to do this.
http://yanfly.moe/2015/12/25/yep-50-buffs-states-core/
I think the damage portion should work similar to a crtical hit, but check for the state instead of critical. applyStateId(x)
Game_Action.prototype.applyCritical = function(damage) {
return damage * 3;
};
I think using the following lunatic mode
<Custom Initiate Effect>
And then something along the lines of changing the above applyCritical to check for a state?
applyStateId(x)
isStateAffected(stateId: number) // I am not sure what 'number' here is supposed to represent
and then changing the 3 to a 0.5 or whatever I want to change it to.
<Custom Initiate Effect>
Any help here would be appreciated.
I think that the mana gain porion will work with one of the follow lunatic mode choices (I'm sure I can figure out which one if I have a working code)
<Custom Action End Effect>
<Custom Turn End Effect>
<Custom Establish Effect>
But my problem lies in what code goes between. I do not know how to call upon the damage done by the battler in that round.
it would be something along of the lines of
user.gainMp(user.thisDamageValue*0.1)
or maybe user.evalDamageValue
Game_ActionResult_this.hpDamage()*0.1
Game_Battler_this._result.hpDamage
I am using RPG Maker MV.
I am trying to make a state that causes the battler to do 50% of their normal damage and to gain MP based on say 10% of the damage they deal each round they have the state.
I figure that Yanfly's BuffStatesCore is the best way to do this.
http://yanfly.moe/2015/12/25/yep-50-buffs-states-core/
I think the damage portion should work similar to a crtical hit, but check for the state instead of critical. applyStateId(x)
Game_Action.prototype.applyCritical = function(damage) {
return damage * 3;
};
I think using the following lunatic mode
<Custom Initiate Effect>
And then something along the lines of changing the above applyCritical to check for a state?
applyStateId(x)
isStateAffected(stateId: number) // I am not sure what 'number' here is supposed to represent
and then changing the 3 to a 0.5 or whatever I want to change it to.
<Custom Initiate Effect>
Any help here would be appreciated.
I think that the mana gain porion will work with one of the follow lunatic mode choices (I'm sure I can figure out which one if I have a working code)
<Custom Action End Effect>
<Custom Turn End Effect>
<Custom Establish Effect>
But my problem lies in what code goes between. I do not know how to call upon the damage done by the battler in that round.
it would be something along of the lines of
user.gainMp(user.thisDamageValue*0.1)
or maybe user.evalDamageValue
Game_ActionResult_this.hpDamage()*0.1
Game_Battler_this._result.hpDamage