Hello,
A while ago, someone on the forum explained to me how to get a status when successfully hitting an enemy with an attack.
The formula is:
<Custom Establish Effect>
// Check if the attack is a physical attack that dealt HP damage from a critical hit.
if (this.isPhysical() && target.result().hpDamage > 0) {
user.addState(x);
}
</Custom Establish Effect>
x corresponding to the state.
Today, I need to raise a variable based on the number of enemies hit by an ability. Let me explain.
One of my characters has a powerful attack that needs to be charged before it can be used. I found several interesting ways to do it (effect passives, abilities).
I would like my character to have an area spell that adds a "charge" for each enemy hit. For that, I would like to use the formula I quoted, not to add a state, but to increase a game variable (not a variable created just for the spell).
I will then take over with a common event to use this variable more easily.
Is it possible ?
(Translation made by google, please ask me to rephrase if necessary).
A while ago, someone on the forum explained to me how to get a status when successfully hitting an enemy with an attack.
The formula is:
<Custom Establish Effect>
// Check if the attack is a physical attack that dealt HP damage from a critical hit.
if (this.isPhysical() && target.result().hpDamage > 0) {
user.addState(x);
}
</Custom Establish Effect>
x corresponding to the state.
Today, I need to raise a variable based on the number of enemies hit by an ability. Let me explain.
One of my characters has a powerful attack that needs to be charged before it can be used. I found several interesting ways to do it (effect passives, abilities).
I would like my character to have an area spell that adds a "charge" for each enemy hit. For that, I would like to use the formula I quoted, not to add a state, but to increase a game variable (not a variable created just for the spell).
I will then take over with a common event to use this variable more easily.
Is it possible ?
(Translation made by google, please ask me to rephrase if necessary).