[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Suggestions
. . -> [Subject]  per-world script preferences
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

per-world script preferences

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Victorious   (85 posts)  [Biography] 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.
[Go to top] top

Posted by Nick Gammon   Australia  (21,321 posts)  [Biography] 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
[Go to top] top

Posted by Victorious   (85 posts)  [Biography] 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.
[Go to top] top

Posted by Nick Gammon   Australia  (21,321 posts)  [Biography] 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
[Go to top] top

Posted by Victorious   (85 posts)  [Biography] 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.
[Go to top] 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.


3,756 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]