- Joined
- Oct 29, 2016
- Messages
- 87
- Reaction score
- 18
- Primarily Uses
Having an issue where adding a state or buff through a script does not have it appear in the battle log or a pop up on the character, though the state/ buff is applied properly. I tried turning off all extra plugins but that didn't appear to work. I also checked battle engine core to check that buffs and states are being shown. I updated nw.js recently but don't think that would cause this issue. My next guess is to try to go to an older version I have via source tree. If not I can just add a sfx when a state/ buff goes off through a script to confirm that you got it but that doesn't seem consistent with skills that apply the text and popup through the skill events. Unless there is a way to show the state/ buff via after eval.








Code:
<type: altered>
<element: 11>
<change: 103>
<setup action>
clear battle log
display action
immortal: targets, true
perform start
wait for movement
cast animation
wait for animation
</setup action>
<whole action>
</whole action>
<target action>
wait: 6
motion attack: user
wait: 6
action animation: target
animation wait: 6
wait for animation
action effect
wait for effect
</target action>
<follow action>
</follow action>
<finish action>
// testing in action sequence.
add mat buff: user, 3, show
wait: 18
immortal: targets, false
wait for new line
clear battle log
perform finish
wait for movement
wait for effect
</finish action>
<After Eval>
// Get the hit results of the target.
var result = target.result();
if (result.isHit() && Math.random() < .6) {
user.addBuff(6, 4);
}
<After Eval>