Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.
 Entire forum ➜ MUSHclient ➜ Suggestions ➜ per-world script preferences

per-world script preferences

Posting of new messages is disabled at present.

Refresh page


Posted by Victorious   (89 posts)  Bio
Date Wed 18 Dec 2013 04:50 PM (UTC)
Message
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.
Top

Posted by Nick Gammon   Australia  (23,122 posts)  Bio   Forum Administrator
Date Reply #1 on Wed 18 Dec 2013 07:59 PM (UTC)
Message
What external script file are you referring to?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Victorious   (89 posts)  Bio
Date Reply #2 on Fri 20 Dec 2013 11:05 PM (UTC)
Message
The external script file is a .lua file in the mushclient/scripts folder.
Top

Posted by Nick Gammon   Australia  (23,122 posts)  Bio   Forum Administrator
Date Reply #3 on Sat 21 Dec 2013 11:41 AM (UTC)
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Victorious   (89 posts)  Bio
Date Reply #4 on Sat 21 Dec 2013 06:52 PM (UTC)
Message
Oops, feel really silly now lol. Sorry for not seeing the super obvious.
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


16,249 views.

Posting of new messages is disabled at present.

Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.