- Joined
- Oct 13, 2014
- Messages
- 300
- Reaction score
- 89
- First Language
- Enlish
Hello,
I'm using Yanfly's lunatic code to simulate the Power Charge and Mind Charge skills from the SMT series.
The video can be found here:
http://yanfly.moe/2016/09/29/tips-tricks-power-charge-mind-charge-shin-megami-tensei-rpg-maker-mv/
For those of you not familiar, power charge is a move that gives the next physical skill you use a damage multiplier.
However, my issue with the code is that the power charge or physical attack boost, only applies for the basic attack skill. I want this buff to apply to physical skills, as well as the basic attack.
Currently, the physical attack skills aren't getting buffed.
Here's the code, I'm using:
I'm using Yanfly's lunatic code to simulate the Power Charge and Mind Charge skills from the SMT series.
The video can be found here:
http://yanfly.moe/2016/09/29/tips-tricks-power-charge-mind-charge-shin-megami-tensei-rpg-maker-mv/
For those of you not familiar, power charge is a move that gives the next physical skill you use a damage multiplier.
However, my issue with the code is that the power charge or physical attack boost, only applies for the basic attack skill. I want this buff to apply to physical skills, as well as the basic attack.
Currently, the physical attack skills aren't getting buffed.
Here's the code, I'm using:
Can anyone help me apply this code to both physical skills and the basic attack?<Custom Action Start Effect>
// Get the current action.
var action = user.currentAction();
// Check if the action is physical, is a basic attack, and deals HP damage.
if (action.isPhysical() && action.isAttack() && action.isHpEffect()) {
// Play an animation to indicate the effect is taking off.
user.startAnimation(2);
}
</Custom Action Start Effect>
<Custom Confirm Effect>
// Check if the action is physical, is a basic attack, and deals HP damage.
if (this.isPhysical() && this.isAttack() && this.isHpEffect() && value > 0) {
// Increase the damage by a multiplier.
value *= 3.0;
// Round up the damage.
value = Math.ceil(value);
// Remove the state.
user.removeState(stateId);
}
</Custom Confirm Effect>

