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
Clevix
Newbie


Joined: 27 Feb 2002
Posts: 9
Location: USA

PostPosted: Tue Jul 22, 2003 4:10 pm   

Specifing Type of Trigger when Creating.
 
I have an atconnect alias that populates triggers into a subwindow. When the alias runs, the triggers are created but they are the wrong type. They are created as Expression not Pattern. Manually changing this each time I log in defeats the purpose.... Is there a means to inject the 'Type' as Pattern?

For ease, here is the atconnect:

#WIN tell
:tell:#TR (*) (#SUB (%time(hh:nn:ss)%trigger))

Props to Krohnu for assistance in this venture.
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Tue Jul 22, 2003 4:22 pm   
 
quote:

Trigger Command Options
..
Type Category for detailed descriptions see: Trigger Types
exp expression trigger (expression is tested whenever a variable is changed)



So try perhaps:
#WIN tell
:tell:#TR (*) (#SUB (%time(hh:nn:ss)%trigger)) {exp}
Reply with quote
Clevix
Newbie


Joined: 27 Feb 2002
Posts: 9
Location: USA

PostPosted: Tue Jul 22, 2003 4:32 pm   
 
Right thought, wrong direction I think.
Bad news - it passes everything, '#SUB' included to the sub-window.
Good News - it does so without requiring me to change the nature of the trigger following login.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue Jul 22, 2003 7:37 pm   
 
If you want the triggers to be Pattern type, rather than Expression type, use {} around the pattern instead of () around the expression.
#WIN tell
:tell:#TR {*} {#SUB (%time(hh:nn:ss)%trigger)}
Reply with quote
Clevix
Newbie


Joined: 27 Feb 2002
Posts: 9
Location: USA

PostPosted: Tue Jul 22, 2003 8:37 pm   
 
Nice! Actually just need {} around the first section (the pattern)... final alias looked like this:

#WIN tell
:tell:#TR {*} (#SUB (%time(hh:nn:ss)") ("%trigger))

Thanks for your help.
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