To Life Immortal
hello I am new to scripting and I need help.
I have a character on Achaea who is a new Sentaari monk. Monks kill by using martial arts moves. What I wish to do is write a script which will allow an alias to change the variable.
I also need to know how to write a script which will allow me to sidekick and uppercut twice. We hunt many rats. In Achaea, it would be like:
sdk rat;
ucp rat;
ucp rat
How could I make a script for that and is there a scripting for dumb newbies site I could read? Thanks.
Peace and Long Life
Babochka
You don't need much scripting help (only to set a variable), the rest is just aliases.
You can send multiple commands in an alias, just type the different lines into the send box.
To change a variable, you can use the mushclient script command "setvariable", however you can also change the alias 'send to' field to 'variable' (and specify a variable name) and then do it without scripting at all.
You can find help in the help file (there's an updated version at the top of the mushclient forum, both to download, and to browse online).
to Life immortal
OK I am having problems with this
I clicked on variables, add then in name box put t, contents rat
then I created an alias called ddd
in send box I put:
jab @t
slash @t
punch @t
kick @t
send to variable and I put t in the variable box.
why isnt this working? can someone help me with aliases and variables?
Babochka
Two problems, first is (since you want the variables to expand) that you didn't check the 'expand variables' checkbox.
The second one is that you would be setting the variable to that (jab, slash, etc) and never sending it to the server.
What you'll want to do is fix that alias (ddd) to JUST send the attack commands and then make another one to set the variable.
To set the variable, you'll do what you did before (with the send to variables, and the t in the variables box), except you'll need to specify WHAT to send (in the send box). You'll need to add a wildcard (an asterisk) to your alias, and then you'll send that wildcard to the variable (using %1, provided it's your only wildcard).
And, for the future (so we can figure out exactly what you're doing, as well as being less explaining for you) you can copy and paste aliases/triggers/etc things right into the forum. Just click copy in the dialog box (aliases dialog, for instance) and then you can paste into the forum (you might want to put it in [code] blocks to preserve spacing, and you'll also need to then escape some characters).
It makes debugging (and sharing) things a lot easier, especially as things get more complicated.