Hello everyone,
I've made a skill with the intention that it gets 2 hits against targets that are not affected by a particular state, and 4 hits against targets that are affected by it. For the sake of completion, it's also restricted to the user being affected by a particular state as well, in addition to an HP% cost (just in case there's some disagreements.) Here is what I have in the notebox:
<Custom Requirement>
if (user.isStateAffected(11) || user.isStateAffected(12) || user.isStateAffected(13)) {
value = true;
} else {
value = false;
}
</Custom Requirement>
<HP Cost: 15%>
<Pre-Damage Eval>
if (target.isStateAffected(14)) {
<repeat: 4> }
else {
<repeat: 2> }
</Pre-Damage Eval>
The issue I'm having is that the "else" part of the Pre-Damage Eval is the only part that works. It appears to be that the state-detecting part of the code is incorrect. In place of "target" I've also tried "b" and "enemy", but it doesn't change the outcome. I suspect that the issue is the way I've asked the game to check for the state. Any help would be appreciated!
I've made a skill with the intention that it gets 2 hits against targets that are not affected by a particular state, and 4 hits against targets that are affected by it. For the sake of completion, it's also restricted to the user being affected by a particular state as well, in addition to an HP% cost (just in case there's some disagreements.) Here is what I have in the notebox:
<Custom Requirement>
if (user.isStateAffected(11) || user.isStateAffected(12) || user.isStateAffected(13)) {
value = true;
} else {
value = false;
}
</Custom Requirement>
<HP Cost: 15%>
<Pre-Damage Eval>
if (target.isStateAffected(14)) {
<repeat: 4> }
else {
<repeat: 2> }
</Pre-Damage Eval>
The issue I'm having is that the "else" part of the Pre-Damage Eval is the only part that works. It appears to be that the state-detecting part of the code is incorrect. In place of "target" I've also tried "b" and "enemy", but it doesn't change the outcome. I suspect that the issue is the way I've asked the game to check for the state. Any help would be appreciated!