Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
New Plugin Command Proposal
I'm going to make this proposal over at the forums on rmweb but I figured I would also create a feature issue here and see what developers think about it. Maybe you have other ideas for a way to handle everything, either way, we can brainstorm together. Maybe it's just not possible on the editor side of things but it's worth the proposal either way.
The Plugin Command Parameter Tags
New Plugin Command Selection Window
PluginManager Handling
All pseudo code, was kind of rushed but general idea is here.
We will need a few extra methods in the
PluginManagerto register, retrieve and check existenceAll commands are registered by the plugin developer, and it's simply an object with functions. They're always a function which has the arguments passed into them.
Game Interpreter Handling
When calling a plugin command from an event, clicking okay will simply add the plugin command to the event list just like a plugin parameter.
layers add {"type":"static","mapId":"1","x":"0","y":"0","z":"1","opacity":"255","blend":"1"}Rather than the developer alias
Game_Interpreter.prototype.pluginCommandmethod, RMMV would simply handle the command. But, for backward compatibility aliasing is still possible.For further backward compatibility, we still use the pluginCommand()
argsargument to determine which action should be applied.For a plugin developer to use the information passed in you'd simply tap into the data object passed in from
Game_Interpreterwhich also contains an args property. This args property is in JSON format just like plugin parameters and can be parsed usingJSON.parse(data.args)