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
dracx
Beginner


Joined: 14 Oct 2000
Posts: 26
Location: USA

PostPosted: Tue Mar 12, 2002 3:03 am   

Trigger on expressions?
 
I saw a setting in the settings editor for triggers that were set as expressions instead of patterns.

Does this mean I can do this?:


#TR {@a=@b} {#say @c}

Dracx
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Tue Mar 12, 2002 4:08 am   
 
Yes you can. You can use any expression hence something like:
((@a+23)*5<@b)&(@b<200)
(@test="testing")|(@test="still testing")

However these triggers are only checked when a variables value changes, so you sort of have to avoid expresions like:
%ctime=100
%trigger(AutoLog)=0

Do check out the Support library Advanced Triggers document to see the future of triggers.
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