Hi, I'm using yanfly's battle engine core, action sequence 1, and battle system STB
Basically what I want to do is recreate Seele's passive ability from honkai star rail: when she defeats an enemy she immediately acts again, but this only happens once per turn.
What i've been doing is, using actseqpack1, use the eval: code thing in a skill's note section, but my coding experience is 0 so I'm pretty limited in what I can do alone.
The code in question would add a state to the user with only a "Action times + 100%" trait, and lasts until they act again.
-----
Examples of what I've tried:
<finish action>
eval: if (target.hp < 0)
ADD STATE 17: target, (show)
end
</finish action>
<finish action>
eval: if (target.isDead()) {
user.addState(17);
user.refresh();
}
</finish action>
<finish action>
eval: if (target.isDead()) { action.user().increaseActions(); }
}
</finish action>
-----
in either of these cases what ends up happening is: instead of giving state 17 to the user if the enemy dies after the attack, it removes the knockout state from the enemy (i think) and it stays alive
I'm lost, any help?
Basically what I want to do is recreate Seele's passive ability from honkai star rail: when she defeats an enemy she immediately acts again, but this only happens once per turn.
What i've been doing is, using actseqpack1, use the eval: code thing in a skill's note section, but my coding experience is 0 so I'm pretty limited in what I can do alone.
The code in question would add a state to the user with only a "Action times + 100%" trait, and lasts until they act again.
-----
Examples of what I've tried:
<finish action>
eval: if (target.hp < 0)
ADD STATE 17: target, (show)
end
</finish action>
<finish action>
eval: if (target.isDead()) {
user.addState(17);
user.refresh();
}
</finish action>
<finish action>
eval: if (target.isDead()) { action.user().increaseActions(); }
}
</finish action>
-----
in either of these cases what ends up happening is: instead of giving state 17 to the user if the enemy dies after the attack, it removes the knockout state from the enemy (i think) and it stays alive
I'm lost, any help?