 |
Maximus Wanderer
Joined: 21 May 2001 Posts: 59 Location: USA
|
Posted: 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 |
|
|
|
 |
Vijilante SubAdmin

Joined: 18 Nov 2001 Posts: 5187
|
Posted: Thu Jul 25, 2002 11:19 pm |
#VAR Variable Value
#ALIAS Whatever {#EXEC %concat("#TEMP {",@Variable,"} {#SAY Triggered}")} |
|
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Fri Jul 26, 2002 4:01 pm |
Using the settings editor, put this value in the alias.
#TEMP {<@Variable>} {#SAY Triggered}
LightBulb
Senior Member |
|
|
|
 |
Maximus Wanderer
Joined: 21 May 2001 Posts: 59 Location: USA
|
Posted: 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 |
|
|
|
 |
|
|
|