- Joined
- Jul 7, 2018
- Messages
- 33
- Reaction score
- 9
- First Language
- German
- Primarily Uses
- RMMV
I like to have a state that, for increased MP-cost, raises the damage output for any direct dealt magical damage by 50%, but removing itself after a successful use of a fitting skill. The increased MP-cost part is trivial, so that is not the problem.
Now, I have put these two custom effects one after another into the notebox of the state (credit for these to YanFly):
My problem is:
The Custom Initiate Effect always works, no matter if I put it first or second into the state's notebox. The Custom Confirm Effect, however, does not increase the magical damage by 50% as it is meant to. Please note that it works when it is put alone.
So my question is:
How do I make a state with the effects of above mentioned custom effects work?
Now, I have put these two custom effects one after another into the notebox of the state (credit for these to YanFly):
Code:
<Custom Initiate Effect>
// Check if the action is a skill and uses MP
if (this.isSkill() && user.skillMpCost(this.item()) > 0) {
// Then remove the state.
user.removeState(stateId);
}
</Custom Initiate Effect>
Code:
<Custom Confirm Effect>
if (this.isMagical() && value !== 0) {
value = Math.ceil(value * 1.50);
}
</Custom Confirm Effect>
My problem is:
The Custom Initiate Effect always works, no matter if I put it first or second into the state's notebox. The Custom Confirm Effect, however, does not increase the magical damage by 50% as it is meant to. Please note that it works when it is put alone.
So my question is:
How do I make a state with the effects of above mentioned custom effects work?