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.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ Plugins
➜ enable/disable triggers
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Avariel
Portugal (55 posts) Bio
|
Date
| Sun 06 Oct 2002 07:21 PM (UTC) |
Message
| i have a few triggers in a plugin that i enable/disable in some special situations... the problem is that next time i log they are all as if i just installed the plugin and havent changed their enable status...
my question is... the plugin save state dont save this changes? or should i do more then world.enabletrigger { "name" , true } ?
thx. |
The Avariel Wind Lord | Top |
|
Posted by
| Nick Gammon
Australia (23,165 posts) Bio
Forum Administrator |
Date
| Reply #1 on Sun 06 Oct 2002 09:23 PM (UTC) |
Message
| Saving state, strictly speaking, saves the variables, not the rest of the plugin. If you need to "remember" things like enabled/disabled triggers you could remember their state (into variables) in OnPluginClose and reset them to the saved values in OnPluginInstall. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | 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.
13,242 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top