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
kdberg
Beginner


Joined: 06 Jan 2003
Posts: 18
Location: USA

PostPosted: Sun Jan 19, 2003 11:16 pm   

Expanding Variables
 
According to the 6.40 documentation on the #TAG command:

"Normally, these parameters are not evaluated or expanded since they represent literal text from the MUD. However, if an argument is a single variable reference, then the variable will be expanded."

I have a tag trigger that successfully matches the room name and stores it in the variable RoomName. I then issue the command:

#TAG name {@RoomName} which is the syntax I copied right out of the documentation example.

The result is that the automapper assigns the the room name the string {@RoomName) verbatim.

If I change the tag command to

#TAG name @RoomName

everything works as it should.

Is the documentation incorrect, or is there something else going on that is changing normal expansion behavior?
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Sun Jan 19, 2003 11:32 pm   
 
Try reporting it to Zugg. He recently worked with the parser so that it handled better values passed to commands that accept literal arguments.

Kjata
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