- Joined
- Sep 10, 2017
- Messages
- 50
- Reaction score
- 3
- First Language
- English
- Primarily Uses
- RMMV
I am trying to create a skill resembling the pokemon Bide skill, in which the user takes damage for 3 turns before doing the damage they took times three to their target.
The skill applies a special state to the user in which they cannot move/attack/do anything. After three turns they´re supposed to automatically activate the second hidden "bide 2" skill that then causes the damage to the enemies. This is the code I have in the states notetag
<Custom Apply Effect>
// Upon applying Bide, set the Bide damage to 0.
user._bide = 0;
</Custom Apply Effect>
<Custom Respond Effect>
// Check if the target took any HP damage.
if (target.result().hpDamage > 0) {
// If the target did, raise the Bide damage by the HP damage taken.
target._bide += target.result().hpDamage;
}
</Custom Respond Effect>
<Custom Remove Effect>
if ($gameParty.inBattle()) {
// ID of skill to use
var skill = 71;
// Queue skill for use
BattleManager.queueForceAction(user, skill, -2);
}
</Custom Remove Effect>
The state is supposed to last for 3 turns in which the user cannot act, which works fine for the first 2 turns, however in the third one the user will for some reason use "Bide 2" despite still having the state applied to them, so they should be incapable of actually doing anything. In addition the animation for "Bide 2" does not play properly.
This is the "Bide 1" notetag
<setup action>
display action
</setup action>
<target action>
motion chant: user
animation 84: user
wait for animation
add state 35: user
</target action>
This is the "Bide 2" notetag
<setup action>
display action
immortal: targets, true
</setup action>
<target action>
</target action>
<whole action>
motion chant: user
wait: 10
animation 80: user
wait for animation
animation 81: user
wait for animation
wait: 10
move user: point, 250, 450
float user: 250, 30
wait for float
motion swing: user
float user: 0, 20
animation 82: target
animation 83: user
action effect
wait for animation
wait for movement
wait for float
wait for animation
</whole action>
however the Bide 2 that plays a turn early does not move the actor in any way from their normal position, simply playing the animations.
It should be noted that the "Bide 2" skill stil activates as intended once the state runs out. Is there any way to stop it from weirdly activating a turn early?
If this is the wrong subforum I apologize and will move it to the right subforum if you tell me which one that is.
The skill applies a special state to the user in which they cannot move/attack/do anything. After three turns they´re supposed to automatically activate the second hidden "bide 2" skill that then causes the damage to the enemies. This is the code I have in the states notetag
<Custom Apply Effect>
// Upon applying Bide, set the Bide damage to 0.
user._bide = 0;
</Custom Apply Effect>
<Custom Respond Effect>
// Check if the target took any HP damage.
if (target.result().hpDamage > 0) {
// If the target did, raise the Bide damage by the HP damage taken.
target._bide += target.result().hpDamage;
}
</Custom Respond Effect>
<Custom Remove Effect>
if ($gameParty.inBattle()) {
// ID of skill to use
var skill = 71;
// Queue skill for use
BattleManager.queueForceAction(user, skill, -2);
}
</Custom Remove Effect>
The state is supposed to last for 3 turns in which the user cannot act, which works fine for the first 2 turns, however in the third one the user will for some reason use "Bide 2" despite still having the state applied to them, so they should be incapable of actually doing anything. In addition the animation for "Bide 2" does not play properly.
This is the "Bide 1" notetag
<setup action>
display action
</setup action>
<target action>
motion chant: user
animation 84: user
wait for animation
add state 35: user
</target action>
This is the "Bide 2" notetag
<setup action>
display action
immortal: targets, true
</setup action>
<target action>
</target action>
<whole action>
motion chant: user
wait: 10
animation 80: user
wait for animation
animation 81: user
wait for animation
wait: 10
move user: point, 250, 450
float user: 250, 30
wait for float
motion swing: user
float user: 0, 20
animation 82: target
animation 83: user
action effect
wait for animation
wait for movement
wait for float
wait for animation
</whole action>
however the Bide 2 that plays a turn early does not move the actor in any way from their normal position, simply playing the animations.
It should be noted that the "Bide 2" skill stil activates as intended once the state runs out. Is there any way to stop it from weirdly activating a turn early?
If this is the wrong subforum I apologize and will move it to the right subforum if you tell me which one that is.
