MZ Script for Plugin Command

Hello,
Can anyone provide the script for a plugin command?

For example:
1630944723241.png


I would like to put in a SCRIPT the plugin commands.
then you should give a link to the plugin as well...
Here is the plugin I am using:

For reference:
JavaScript:
PluginManager.callCommand(self, pluginName, commandName, args);
  • self is a Game_Interpreter reference;
  • pluginName is the name of the plugin (string) without the ".js" extension;
  • commandName is the name of the command (string);
  • args is an object in the form {paramName1: value, paramName2: value, ...}.

So in your case, try something like this:
JavaScript:
const self = $gameParty.inBattle() ? $gameTroop._interpreter : $gameMap._interpreter;
const pluginName = 'SRD_HUDMakerUltra';
const commandName = 'Set HUD Visibility';
const args = { "Visible?": "true" };
PluginManager.callCommand(self, pluginName, commandName, args);
If you're using this in a Game_Interpreter context, e.g. a Script command in an event, then the first line can be much simpler:
JavaScript:
const self = this;
Many plugin commands will not require a valid interpreter reference, but it's good practice to stick one in there regardless.
Thanks!

Very helpful.

Original thread: https://forums.rpgmakerweb.com/threads/script-for-plugin-command.140212/