Register forum user name Search FAQ

Gammon Forum

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 ➜ Suggestions ➜ Importing triggers, et al

Importing triggers, et al

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


Posted by Kadath   (2 posts)  Bio
Date Wed 20 Feb 2002 08:19 PM (UTC)
Message
I used Wintin before finding this cool program. I have a rather large tintinrc file and was wondering if there was a way to import all my "actions" and "aliases"? This would save me hours of work not too mention a headache.

Thanks,

Kadath
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Wed 20 Feb 2002 09:04 PM (UTC)
Message
Can you post a few examples of each? It might be possible, depending on how similar they are to the way MUSHclient does things (eg. wildcards).

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Kadath   (2 posts)  Bio
Date Reply #2 on Thu 21 Feb 2002 05:36 AM (UTC)
Message
Here is an example of an alias for wintin:
#alias {cres} {c 'resistance'}

Here is an example of a trigger (action):
#action {You are thirsty} {drink water}

You can also do complex things with the aliasses and actions.
#alias {eat_on} {#action {You are hungry} {eat $food}}
#alias {eat_off} {#unaction} {You are hungry}}

And you can define variables:
#alias {foodtype %1} {#variable food $1}

This is by no means all the things that can be done.

As far as I know, there are no wildcards that I have seen.

You can go to: http://www.dragonstone.org/winhlp.htm for more information on this subject.
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #3 on Thu 21 Feb 2002 11:06 PM (UTC)
Message

To get you started I have done some scripts that simulate the TinTin way (roughly). See the post Adding, deleting, listing aliases from the command window.

I haven't done triggers (actions) yet, however if you want them in a hurry, it would be similar to the alias scripts.

MUSHclient supports variables in aliases (use the @ symbol), eg @food.

This should help you (and others) to generate aliases quickly.


- Nick Gammon

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


17,120 views.

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

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.