Multiple variables in one line.

Posted by Dustin on Thu 11 Jan 2007 08:03 PM — 3 posts, 13,715 views.

#0
//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!
Amended on Thu 11 Jan 2007 08:18 PM by Dustin
Australia Forum Administrator #1
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.
#2
I wuv you Nick Gammon!