I've hit a snag trying to send a command to the TextPicture Plugin via a Script Call in a Common Event. While I've consulted the Google Doc to figure out that the script equivalent to a Plugin Command is
I can't seem to translate it into a functional script. When I try to turn the event data,
Into a script, like so
The end result is that the command doesn't seem to work out correctly and, when I use an empty Show Picture command after, nothing comes up. I've swapped the script out for the standard plugin command quoted above and had it work, so I'm confident that it's my script that has to be wrong, but at my current skill level I have no idea how to troubleshoot or debug it.
Can anyone see what I'm doing wrong? My current theory is it's the interpreter or the args, but again I'm too much of a fledging coder to know what the correct answer is if either of these are wrong.
JavaScript:
PluginManager.callCommand(
interpreter,
pluginName,
command,
args
);
I can't seem to translate it into a functional script. When I try to turn the event data,
Into a script, like so
JavaScript:
PluginManager.callCommand(
this,
'TextPicture',
'Set Text Picture',
{'\v[12]'}
);
The end result is that the command doesn't seem to work out correctly and, when I use an empty Show Picture command after, nothing comes up. I've swapped the script out for the standard plugin command quoted above and had it work, so I'm confident that it's my script that has to be wrong, but at my current skill level I have no idea how to troubleshoot or debug it.
Can anyone see what I'm doing wrong? My current theory is it's the interpreter or the args, but again I'm too much of a fledging coder to know what the correct answer is if either of these are wrong.