enable/disable triggers

Posted by Avariel on Sun 06 Oct 2002 07:21 PM — 2 posts, 14,797 views.

Portugal #0
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.
Australia Forum Administrator #1
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.