Use a plugin call within a script call.

So, I've heard of how to make a plugin call for a plugin, but what if I want to use a plugin call within a script call without editing the plugin.


For instance, let's say for testing purposes I want to run this plugin command.


Daynight color x #222222


But, let's say I want to run it 24 times, substituting 'x' with numbers 0-23. It would be much easier to use a script call and have it automate the process rather than edit the plugin to support scripts or do each plugin call manually.
$gameMap._interpreter.pluginCommand("Daynight", [ "color", "x", "#222222" ]);


This should work...

Original thread: https://forums.rpgmakerweb.com/threads/use-a-plugin-call-within-a-script-call.66326/