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
➜ Can I import a group of trigger/alias to a plugin
Can I import a group of trigger/alias to a plugin
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Wanghom8228
(19 posts) Bio
|
Date
| Sun 26 Sep 2010 01:00 PM (UTC) |
Message
| 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? | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #1 on Sun 26 Sep 2010 10:14 PM (UTC) |
Message
| Somewhere in the plugin file (ie. not in the middle of something else) you can include another file, eg.
<include name="Shared_Triggers.xml" />
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Wanghom8228
(19 posts) Bio
|
Date
| Reply #2 on Mon 27 Sep 2010 02:12 AM (UTC) |
Message
| Cool, thanks a lot.
BTW: what is the root path of the included file? | Top |
|
Posted by
| Worstje
Netherlands (899 posts) Bio
|
Date
| Reply #3 on Mon 27 Sep 2010 02:16 AM (UTC) |
Message
| 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. | 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.
15,805 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top