[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]  Plugins
. . -> [Subject]  Can I import a group of trigger/alias to a plugin
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

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] Refresh page


Posted by Wanghom8228   (19 posts)  [Biography] 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?
[Go to top] top

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

Posted by Wanghom8228   (19 posts)  [Biography] 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?
[Go to top] top

Posted by Worstje   Netherlands  (899 posts)  [Biography] 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.
[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.


4,030 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]