|
Omron Newbie
Joined: 16 Jan 2004 Posts: 3 Location: USA
|
Posted: Fri Jan 16, 2004 10:49 am
Variables in speedwalk? |
okies, this may be something simple i am missing. i want to use a variable in a speedwalk string. .. i can get the trigger to fire, i can even get the script to execute, but it just shows up the words in the speedwalk string, not actually executing the speedwalk command.
Goto (%w) is my trigger script is simply .@variable to %1. it fires and i got the Variable word and word that i captured but not th espeedwalk string associated with the combination.
Any help? |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Fri Jan 16, 2004 12:29 pm |
I don't understand your problem. What is @variable suppose to contain? From where does it get it's value? Is the trigger's command ".@variable to %1" or am I reading that wrong? What should the script do that it doesn't? Could you provide some examples?
|
|
|
|
Omron Newbie
Joined: 16 Jan 2004 Posts: 3 Location: USA
|
Posted: Fri Jan 16, 2004 4:53 pm |
pattern is goto (%w),value is .@curorb 2%1. this is a simple movement trigger, as an alias was being evil to me for some reason.
@curorb is the planet i am currently orbiting. so if i type goto blah it should fire off the .@curorb 2 blah speedwalk, but it is as if it's ignoring the . before. i will get in response to goto blah Earth to Blah instead of .Earth 2 blah which should move me. |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Fri Jan 16, 2004 9:40 pm |
. is a special character. Use your Quote character in front of it.
Quote Char
Used to escape other special characters. To send any special character to the MUD without parsing it or match it in a trigger, precede it with this character. Default is ~ |
|
|
|
Omron Newbie
Joined: 16 Jan 2004 Posts: 3 Location: USA
|
Posted: Fri Jan 16, 2004 11:01 pm |
no i want it to recognize it. i want the .speedwalkname to activate and it's not. it's acting as if it is not a special character already thats the problem..
|
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sat Jan 17, 2004 12:27 am |
Ah. Well, a path is a series of set commands, and it doesn't allow anything after them. This will work but it's probably not what you want.
#TR {goto (%w)} {#EXEC .@curorb;2%1}
I suspect you misunderstand how Paths work. They are simply the fixed list of movement commands needed to move from one FIXED point to another FIXED point. There is no way to alter the start or end points. If you start from somewhere other than the original start-point, you will still follow exactly the same set of commands which means you will almost certainly end up somewhere other than the intended end-point.
ADDED: On the other hand, if you have a path named Earth2blah which you are trying to use, this will work.
#AL goto {#EXEC .@{curorb}2%1} |
|
|
|
|
|