[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]  Lua
. . -> [Subject]  Add triggers/aliases/timers from Lua on startup?
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Add triggers/aliases/timers from Lua on startup?

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Zolomon   (8 posts)  [Biography] bio
Date Tue 09 Jun 2015 10:47 AM (UTC)

Amended on Tue 09 Jun 2015 10:56 AM (UTC) by Zolomon

Message
Hi!

I play from many different computers/platforms, and would like to have a single Lua file stored in Dropbox between computers, that will programmatically setup my world on startup.

So I wonder if there are any nice hooks I can use to add triggers/aliases/timers manually?

For example, on one computer I don't have any speakers and wish to control whether sounds triggers should be enabled and so on.

Also, it is much easier to have a single place to edit instead of modifying duplicated code in different places.

My initial solution would be to have an alias that will install/uninstall itself, but would prefer a solution where I didn't have to do that.
[Go to top] top

Posted by Nick Gammon   Australia  (21,321 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Tue 09 Jun 2015 08:24 PM (UTC)
Message
One approach is to use Git (git pull) to update your local files before a session, play, then push your changes back to a central spot (git push). See: http://www.gammon.com.au/forum/?id=12432

The central spot doesn't have to be GitHub - any local or remote directory can be used.

You can import stuff (http://www.gammon.com.au/scripts/doc.php?function=ImportXML). However that tends to stay there afterwards.

You could use plugins - but you still need a mechanism for exchanging changes.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[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.


1,783 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]