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
Belmyrddyn
Magician


Joined: 17 Oct 2001
Posts: 371
Location: USA

PostPosted: Thu Dec 13, 2001 12:46 am   

Variables in Trigger Patterns
 
Is there a way to make a trigger fire when it recieves the contents of a string variable? I don't want to have to create a seperate trigger to highlight the names of all my friends, so I was hoping I could create a @Friends variable, and then a trigger to fire when it recieves one of the contents of that variable, something like,
#VAR Friends "Britanny"|"Atyr"|"Abethany"
Then
#Trigger {@Friends} {#CW blue}

This doesn't seem to work. Is it possible, or do I have to create a seperate trigger for each name?

Belmyrddyn
Reply with quote
Troubadour
GURU


Joined: 14 Oct 2000
Posts: 556
Location: USA

PostPosted: Thu Dec 13, 2001 1:16 am   
 
Don't put quotes around the names in the string list.
Do place the variable's name in braces {}.

#VAR Friends {Britanny|Atyr|Abethany}
#Trigger {{@Friends}} {#CW blue}

Troubadour
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