Issues with YEP Extra Parameter plugin

Hi everyone,


Having a play with a state that increases the critical attack chance each time the state is applied.


The code is as follows:

<Custom Apply Effect>
target._stackingPoison = target._stackingPoison || 0;
target._stackingPoison += 1;
</Custom Apply Effect>


<Custom Confirm Effect>
target._stackingPoison = target._stackingPoison || 1;
var stacks = target._stackingPoison;
var critchan= 1 * stacks;
actor.addCri(critchan);
</Custom Confirm Effect>


<Custom Conclude Effect>
actor.clearXParamPlus();
</Custom Conclude Effect>



The issue I'm getting is when the state is applied I'm getting an error saying "ReferenceError: actor is not defined".


What do I need to add to let the code know what "actor" is (actor being the one affected with the state". Also, using "user" and "target", which I would normally use results in a similar error.


Thankyou in advance!
I've moved this thread to Javascript Support. Please be sure to post your threads in the correct forum next time. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/issues-with-yep-extra-parameter-plugin.71675/