Force Action Code

I'm using Yanfly's Buff & States Core plugin and I'm trying to get my actors to do motions(like swinging their weapon) through JavaScript in the <Custom React Effect> Notetags. I've tried putting target.forceAction(1130); in the notetag but it doesn't seem to work. Can anyone help me with this?

Link to the plugin
http://yanfly.moe/2016/06/04/tips-tricks-cagnazzos-tsunami-final-fantasy-4-rpg-maker-mv/#more-3039 May help you, particularly the following code.
HTML:
<Custom Leave Effect>
// Get the skill ID of the skill that will launch once the charging is complete.
var skill = 194;
// The target's index. -1 for random. -2 for last target.
var target = -2;
// Set the forced action for the user.
// Queue the forced action.
BattleManager.queueForceAction(user, skill, target);
</Custom Leave Effect>
Not quite sure if that'll help, but try it anyway.
It doesn't seem to work but thanks for the response.
Did you copy paste it exactly? The issue might be that it is a custom leave effect that only triggers when the state is removed. If so, sorry.
Try replacing it with respond instead, that might work.
I've tried everything. It doesn't work.
@alcreator440 Not sure if you're still around, but to get a battler to do a battle motion, you call it from the battler. During a custom react effect, the battler being hit is 'target', so you'd call target.requestMotion('attack') to make an attack motion.
Thanks for the response. I tried your suggestion but it's not working for me. Perhaps I'm doing something wrong but here is what my state's notetag looks like:

<Custom Passive Condition>
condition = false;
if (user.isStateAffected(120)) {
if (user.isStateAffected(19)) {
if (user.notState(10)) {
if (user.notState(11)) {
if (user.notState(33)) {
if (user.notState(34)) {
if (user.notState(35)) {
condition = true;
}
}
}
}
}
}
}
</Custom Passive Condition>
<Custom React Effect>
target.requestMotion('attack')
target.startAnimation(601);
target.startAnimation(600);
value = 0;
</Custom React Effect>

Original thread: https://forums.rpgmakerweb.com/threads/force-action-code.83127/