VE- Replace Actions cannot get it to work

https://forums.rpgmakerweb.com/index.php?threads/ve-replace-actions.58561/

Im trying to have conditions set so it uses a different skill if the enemy has a specific state inflicted.
So far the only time this plugin works is if I put <action replace: attack, 9, 100%> into the weapons note box.

Any help would be appreciated
You'll need to use the custom condition with JavaScript code that checks if the target has the state inflicted.
Sorry, I can't give you the code myself, but that is the only way were it is even theoretically possible, none of the default triggers will work here.
Here is an excerpt from the help file.
* ------------------------------------------------------------------------------
* Actors, Classes, Weapons, Armors and States Notetags:
* ------------------------------------------------------------------------------
*
* <action replace: trigger, X, Y%[, priority]>
* Replace the action with a new skill.
* trigger : action that will trigger the replace skill. (see bellow)
* X : id of the skill used. Numeric.
* Y : chance of replacing the skill. 0-100%.
* priority : priority of the skill. Numeric. Optional.

You say that you have tried putting this in the Weapon notetag.
<action replace: attack, 9, 100%>

1.) Have you tried putting it into the State notetag?
2.) Have you tried adjusting the priority on the State notetag?
Here is an excerpt from the help file.


You say that you have tried putting this in the Weapon notetag.
<action replace: attack, 9, 100%>

1.) Have you tried putting it into the State notetag?
2.) Have you tried adjusting the priority on the State notetag?

1) Yes I have tried it in the skill and the State notetag
I put<action replace: skill 16, 9, 100%> and even tried <action replace: attack, 9, 100%>, since i know <action replace: attack, 9, 100%> works on basic attack if I use it in the weapon notetag. Neither trigger skill 9 to activate.
2) Just tried nothing there too, the help said it was optional.

You'll need to use the custom condition with JavaScript code that checks if the target has the state inflicted.
Sorry, I can't give you the code myself, but that is the only way were it is even theoretically possible, none of the default triggers will work here.

I don't really know what im doing so I tried something like this:

<custom action replace: skill 16>

if (b.isStateAffected(11)) {

result = 17;

} else {

result = 16;

}

</custom action replace>

My skill 16 inflicts State 11, then im hoping that if the target has State 11 previously, skill 16 will become 17 instead which is an aoe version of the skill. No go. Is the good okay?

Edit: I wish this had a demo, I can't get it to work 🙁 Does it matter im using MV 1.5.1?
Edit2: I just realised it won't work in the skill tab, in the help it does say it will work with actor, equipment and states. But I have a feeling that you need the State to apply to you in order to change skill. This plugin is not one that will help me... Definitely need a custom one.

Original thread: https://forums.rpgmakerweb.com/threads/ve-replace-actions-cannot-get-it-to-work.96463/