To be honest, it would be easier for you to look up the corresponding script call to the plugin command and just use that, because you can pass arguments as normal.
The behavior you are seeing is caused by a fairly sneaky bug in the SRD plugin.
In Javascript, primitive variables (such as strings and integers) are passed by value to functions, meaning that a function from the "inside"
cannot change the value on the "outside". However, object variables (such as objects and arrays) are passed by reference to the function, meaning that a function from the "inside"
can change the value on the "outside".
You can see this by stepping through the code line-by-line. I didn't test this on the MOG plugin because you didn't give a link to it and I didn't feel like looking it up.
Here's an example.
In my example, the plugin command is:
Code:
SomeCommand ${$gameVariables.value(2)}
The first event on my map sets variable #2 to a value of 4, and then executes that "plugin command".
The second event on my map sets variables #2 to a value of 99999999. As you can see, the parameters that the event is executing is in fact:
instead of
Code:
SomeCommand ${$gameVariables.value(2)}
This is because the actual Game_Interpreter parameters have been changed by the SRD plugin (because the parameters are an array and are being passed by reference).