About Us
Products
Purchase
Downloads
Support
Forums
Contact Us
Site
 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
donki1
Beginner


Joined: 02 Oct 2004
Posts: 12

PostPosted: Sat Oct 02, 2004 9:38 am   

pattern match variable
 
My trigger's pattern: ({@grouplist})%s
It works well if the variable isnt empty.
If the @grouplist variable is empty then the trigger works on everything.
What to do? Do i need to delete the variable/ disable trigger when i am not in group?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Oct 02, 2004 10:30 am   
 
Just leave your name in the variable when you delete everyone else's and the variable will never be empty.
_________________
LightBulb
Senior member

Most scripts in this forum are written for Command Line entry.
Don't even open the Settings Editor unless its use is specified or obvious.
Reply with quote
donki1
Beginner


Joined: 02 Oct 2004
Posts: 12

PostPosted: Sat Oct 02, 2004 11:42 am   
 
Errm, any other solution?
I assigned a macro to every name in the grouplist except myself, also i use this var in a lots of triggers. All in all, i would like to put all names to the var, except myself.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Oct 02, 2004 4:41 pm   
 
Another solution is to disable the trigger when you don't have a group. Give the trigger an ID (Advanced tab in settings editor), then use #T+ and #T- to control it.
_________________
LightBulb
Senior member

Most scripts in this forum are written for Command Line entry.
Don't even open the Settings Editor unless its use is specified or obvious.
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