per-world script preferences

Posted by Victorious on Wed 18 Dec 2013 04:50 PM — 5 posts, 21,289 views.

#0
Currently, the preferences in the scripting tab like external script file etc are global across all worlds. Can this be changed so that it works on a per-world basis?

I've been writing triggers/aliases and such from the main mcl world file, referencing functions in a script file and creating a different world with the aliases and such transfered to a plugin for testing. However, there are 2 copies of code that would run (i.e a OnPluginSaveState from the external script file runs on world save and the plugin's own OnPluginSaveState - this causes some conflicts. Right now, I need to remove the function references from script preferences when making sure the plugin works properly then putting them back when I switch back to the development world.
Australia Forum Administrator #1
What external script file are you referring to?
#2
The external script file is a .lua file in the mushclient/scripts folder.
Australia Forum Administrator #3
Quote:

Currently, the preferences in the scripting tab like external script file etc are global across all worlds.


I mean, which preference?

The one in global preferences is designed for every world, in case you want to do something across all worlds. If you want one script file per world, that is in the scripting configuration for that world.
#4
Oops, feel really silly now lol. Sorry for not seeing the super obvious.