Can I import a group of trigger/alias to a plugin

Posted by Wanghom8228 on Sun 26 Sep 2010 01:00 PM — 4 posts, 20,308 views.

#0
I want to share some trigger group with different plugin.
Can I put the trigger group in a individual file, then import them to a plugin?
Australia Forum Administrator #1
Somewhere in the plugin file (ie. not in the middle of something else) you can include another file, eg.


<include name="Shared_Triggers.xml"  />


#2
Cool, thanks a lot.
BTW: what is the root path of the included file?
Netherlands #3
The global plugins directory. However, there is a special variable you can put in that expands to the location of your plugin. Example:

<include name="$PLUGINDIR\Shared_Triggers.xml" />


Also.. do note that triggers loaded into different plugins, and the world, are completely seperate things even if they are 'created' from the exact same file - thus they might conflict when used at the same time. Do keep that in mind.