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
Maximus
Wanderer


Joined: 21 May 2001
Posts: 59
Location: USA

PostPosted: Thu Jul 25, 2002 10:18 pm   

#TEMP using variable patterns
 
Okay, sample scenario...
#VAR Variable Value
#ALIAS Whatever {#TEMP {@Variable} {#SAY Triggered}}

I would expect this to make a temporary variable with the pattern "Value", but it is instead created as "@Variable". This is all fine and dandy, but if @Variable changes, the temporary trigger changes. The variable is actually a message I am trying to catch, and if the ariable changes before the message is displayed, the trigger never goes off. How can I get #TEMP to parse the pattern first?

-Maximus
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5187

PostPosted: Thu Jul 25, 2002 11:19 pm   
 
#VAR Variable Value
#ALIAS Whatever {#EXEC %concat("#TEMP {",@Variable,"} {#SAY Triggered}")}
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Jul 26, 2002 4:01 pm   
 
Using the settings editor, put this value in the alias.
#TEMP {<@Variable>} {#SAY Triggered}

LightBulb
Senior Member
Reply with quote
Maximus
Wanderer


Joined: 21 May 2001
Posts: 59
Location: USA

PostPosted: Fri Jul 26, 2002 6:22 pm   
 
That's odd, I thought I had tried that approach. Oh well, works now, and not quite so crude as Vijilante's approach (though that works as well). Thanks to both of you!

-Maximus
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