Version 3.25 of MUSHclient - which is now released, offers a 'plugin wizard' to simplify writing plugins.
By invoking it you can quickly and easily generate a plugin based on existing triggers, aliases, timers, variables, and the current script, from your world file.
You merely have to enter a name for it, its purpose, and an optional description (which becomes the plugin help). The wizard will move some or all of your triggers etc. from the world file into the plugin file, generating all the correct XML syntax for you 'on the fly'.
Here is a sample of the first tab of the plugin wizard:
I suggest that, to develop plugins, you start with a 'clean' world file (ie. no triggers, aliases etc. that are not required in the plugin), and then develop and test your plugin in the main world file. Then when it is working to your satisfaction, invoke the plugin wizard, which will move the lot into your plugin file.
However, if that is not practical, you can click on the tabs in the plugin wizard, and select/deselect those items which are not relevant, before generating the plugin.
Any comments for useful additions are welcome. |