Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Omron
Newbie


Joined: 16 Jan 2004
Posts: 3
Location: USA

PostPosted: 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?
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: 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?
Reply with quote
Omron
Newbie


Joined: 16 Jan 2004
Posts: 3
Location: USA

PostPosted: 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.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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 ~
Reply with quote
Omron
Newbie


Joined: 16 Jan 2004
Posts: 3
Location: USA

PostPosted: 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..
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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}
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net