Importing triggers, et al

Posted by Kadath on Wed 20 Feb 2002 08:19 PM — 4 posts, 17,430 views.

#0
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
Australia Forum Administrator #1
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).
#2
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.
Australia Forum Administrator #3

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.