I noticed that my state conditional damage formula won't work with yanfly's action sequence.
if (b.isStateAffected(39)) {a.mat * 7} else {0}
How can I make it work while using yanfly action sequence in my note tab?
Without looking too closely at the actual plugin, I'd suspect the reason has something to do with nested if statements in the action sequence causing an issue.
To get around this, you could try changing your formula to a ternary operator instead of using an if statement.
if (b.isStateAffected(39)) {a.mat * 7} else {0} would become var dmg = (b.isStateAffected(39)) ? a.mat * 7 : 0; return dmg
Thanks for the reply. I can't believe I didn't realize I had an typo in the action sequence this whole time. The action effect was really my mistake. I rechecked a couple times and still didn't realized it ^^"
I am new to the damage formula thing, are there any instructions for the coding that I can learn?