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.
Entire forum
➜ MUSHclient
➜ Tips and tricks
➜ Multiple variables in one line.
Multiple variables in one line.
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Dustin
(4 posts) Bio
|
Date
| Thu 11 Jan 2007 08:03 PM (UTC) Amended on Thu 11 Jan 2007 08:18 PM (UTC) by Dustin
|
Message
| //NOTE: I just noticed a solution in a past post that I am going to try after I get out of this meeting - Don't feel obligated to respond quite yet.
Greetings. I'm having some trouble getting multiple variables in the send line of an Alias to work properly.
I wont assume you know much about Achaean Monk fighting, but here's where my issue stands.
If I wish to attack the legs of my unlucky victem, I need to:
"hfp target leg".
HFP being the attack command, target being my targetted person, and leg being the leg I wish to attack. For example, if I were to attack your left leg, it would be...
HFP Gammon Left.
So I set up an alias "atll" for attacking the right leg of my target.
I made it send "HFP @target right". It does the proper attack to my target, but it does not send the "right" command - so the attack goes to a random limb instead of the right, and also sends the command "right" to world, which makes my character say "Right!" (which is a predefined alias, in game, unchangeable).
So I made it send "HFP @target @right" where variable "target"is the name of my target, and variable "right" is "right". However, it does nearly the same thing. I attack, but it does not send "right", so it attacks a random limb. Of course, since it is relating to a variable, it does not send the "right" command to world, as it did with the previous setup.
I'm sure there is a simple solution, but I'm having trouble figuring it out! Any help would be much appreciated.
Thanks!
| Top |
|
Posted by
| Nick Gammon
Australia (23,121 posts) Bio
Forum Administrator |
Date
| Reply #1 on Thu 11 Jan 2007 11:10 PM (UTC) |
Message
| It sounds like you have a newline in your target variable. If you did it would insert a line break. Make sure your "target" variable is just the name without a newline after it. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Dustin
(4 posts) Bio
|
Date
| Reply #2 on Thu 11 Jan 2007 11:59 PM (UTC) |
Message
| I wuv you Nick Gammon! | 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.
10,303 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top