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 ➜ General ➜ Achaean Monk Needs Scripting Help

Achaean Monk Needs Scripting Help

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


Posted by Babochka   USA  (21 posts)  Bio
Date Mon 13 Jun 2005 04:00 PM (UTC)
Message
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
Top

Posted by Flannel   USA  (1,230 posts)  Bio
Date Reply #1 on Mon 13 Jun 2005 05:50 PM (UTC)
Message
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).

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
Top

Posted by Babochka   USA  (21 posts)  Bio
Date Reply #2 on Tue 14 Jun 2005 01:59 AM (UTC)
Message
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
Top

Posted by Flannel   USA  (1,230 posts)  Bio
Date Reply #3 on Tue 14 Jun 2005 02:35 AM (UTC)
Message
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.

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
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.


15,875 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.