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
Einder
Novice


Joined: 03 Jan 2008
Posts: 48

PostPosted: Thu Nov 20, 2014 4:19 am   

is not in a variable trigger
 
I've tried searching the forums for this, but haven't seen anything on it. As well the help files don't say anything at all about it. What I'm tringing to do is use a trigger with a variable, only instead of checking against the variable and coming back true, I only want it to comeback when it's false.

For example:

Code:
#TRIGGER {^({@GroupMembers|Einder}) %s - *} {ZoneEmpty=0} "" {within|param=10}


This will currently fire when it's true. When I try to set it to fire when it's false..

Code:
#TRIGGER {^({^@GroupMembers|Einder}) %s - *} {ZoneEmpty=0} "" {within|param=10}


the trigger never fires. How would I adjust this so that when it's false it fires properly?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sat Nov 22, 2014 6:52 am   
 
You may need to convert to regex for this, but really why go to all that trouble (assuming you don't already know regex) when a simple #IF command in the trigger code will work?
_________________
EDIT: I didn't like my old signature
Reply with quote
Einder
Novice


Joined: 03 Jan 2008
Posts: 48

PostPosted: Sun Nov 23, 2014 11:15 am   
 
I don't know regex, but guess I will need to learn it :S

As far as the if command, I'm not quite sure how I would write it. I keep thinking I would have to use several of them instead of one.

That and to be honest, the only reason the trigger keeps breaking is because of the | separator. Using it in string list variable it breaks and using it in the trigger itself it breaks. Haven't quite been able to figure out why or how to fix it yet.
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