I've been looking all over for a way to make it so if a skill critical hits, it has an additional effect. The closest I found was Victor Sant's "Critical Effects" plugin, but for some reason this does not appear to be compatible with what I have, or it just outright does not work at the time of this posting.
Either way, I figured I could probably make use of Yanfly's Action Sequence plugins to achieve this effect and to my surprise, it's not really a thing there either... or is it?
So, I googled around and I found one topic. The answer suggested trying "if target.result().critical". Fair enough, so I tried that and it doesn't do anything. This is what I have:
Pretty cut and dry. Simple. Not complicated. But, it doesn't work. I tried changing the whole action into a target action - nothing. I moved the code into the <finish action> section instead, still nothing.
There's gotta be a way for this to detect a critical hit, right?
EDIT: Out of pure happenstance, I actually got it to work a few minutes after making this post. I want to keep this post around none-the-less because this information seems to be so hard to find.
<target action>
action effect
if target.result().critical
ADD STATE 48: all friends
end
</target action>
This works. I didn't realize that Action Sequences do not appreciate curly brackets. You have to use if and end instead and it works. It also does not work with whole action and must be done inside target action immediately after action effect.
Sorry!
Either way, I figured I could probably make use of Yanfly's Action Sequence plugins to achieve this effect and to my surprise, it's not really a thing there either... or is it?
So, I googled around and I found one topic. The answer suggested trying "if target.result().critical". Fair enough, so I tried that and it doesn't do anything. This is what I have:
Code:
<setup action>
display action
</setup action>
<whole action>
if target.result().critical {
ADD STATE 48: all friends
}
</whole action>
<finish action>
enemy effect: targets, blink
clear battle log
move user: HOME
face user: FORWARD
</finish action>
Pretty cut and dry. Simple. Not complicated. But, it doesn't work. I tried changing the whole action into a target action - nothing. I moved the code into the <finish action> section instead, still nothing.
There's gotta be a way for this to detect a critical hit, right?
EDIT: Out of pure happenstance, I actually got it to work a few minutes after making this post. I want to keep this post around none-the-less because this information seems to be so hard to find.
<target action>
action effect
if target.result().critical
ADD STATE 48: all friends
end
</target action>
This works. I didn't realize that Action Sequences do not appreciate curly brackets. You have to use if and end instead and it works. It also does not work with whole action and must be done inside target action immediately after action effect.
Sorry!