Saving/setting a variable

Posted by Denniscjr on Wed 06 Apr 2016 02:26 PM — 2 posts, 11,742 views.

#0
Hello,

I'm not very good at scripting so I need some n00b help on this. I just switched from CMUD to mushclient because its free.
I would like to be able to type mob ant and it save a variable called mob as ant then I can use triggers and aliases that use the word mob in it to attack the monster.
Australia Forum Administrator #1
See this tutorial:

http://www.gammon.com.au/forum/?id=10863

There is quite a lot of discussion about variables, and at about 3:20 shows how to make an alias that sets a variable.

You will probably find the other stuff helpful too.