- Joined
- Jun 18, 2016
- Messages
- 8
- Reaction score
- 0
- First Language
- korean
- Primarily Uses
In Yanlfy Action Sequence,
I set the note like that below.
<target action>
action list ....
and
if (target.result().isHit() === true)
add state 23: target
end
</target action>
In this case, 'add state 23: target' is add state 23 unconditionally.
That is, this add state command ignores the target's state rate!
How can I add state considering target's state rate?
For reference, I can't use original add state in skill effect because the state's trait changed by conditions in state note box.
And that state is below.
State 23 : use Yanlfy Buff & state core
<Custom Apply Effect>
var x = target.def;
if ($gameVariables.value(86) === 1 || $gameVariables.value(86) === 2 || $gameVariables.value(86) === 3 || $gameVariables.value(86) === 4) {
x *= 0.15;
} else if ($gameVariables.value(86) === 5) {
x *= 0.20;
}
target.minusDef(x);
</Custom Apply Effect>
<Custom Remove Effect>
target.addDef(x);
</Custom Remove Effect>
Please help me. Thank you.
I set the note like that below.
<target action>
action list ....
and
if (target.result().isHit() === true)
add state 23: target
end
</target action>
In this case, 'add state 23: target' is add state 23 unconditionally.
That is, this add state command ignores the target's state rate!
How can I add state considering target's state rate?
For reference, I can't use original add state in skill effect because the state's trait changed by conditions in state note box.
And that state is below.
State 23 : use Yanlfy Buff & state core
<Custom Apply Effect>
var x = target.def;
if ($gameVariables.value(86) === 1 || $gameVariables.value(86) === 2 || $gameVariables.value(86) === 3 || $gameVariables.value(86) === 4) {
x *= 0.15;
} else if ($gameVariables.value(86) === 5) {
x *= 0.20;
}
target.minusDef(x);
</Custom Apply Effect>
<Custom Remove Effect>
target.addDef(x);
</Custom Remove Effect>
Please help me. Thank you.