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


Joined: 31 May 2003
Posts: 49

PostPosted: Tue Sep 16, 2003 12:05 am   

question about triggers on same line
 
i want a trigger that fires on same line example
pattern: hello
value: #show eco
if i put in the same line :
hello and hello i want to see
eco
eco
does the people understand?
Reply with quote
megamog75
Enchanter


Joined: 20 Nov 2002
Posts: 627
Location: USA

PostPosted: Tue Sep 16, 2003 6:17 am   
 
have you tried #if ? this would take some setting up something like this:

#TRIGGER {hello(*)} {#var new %replace( "%1", " ", "|");#var new %replace( @new, ".", "");#forall @new {#if %i=hello {eco}}}

just an example
Reply with quote
jolopez
Novice


Joined: 31 May 2003
Posts: 49

PostPosted: Tue Sep 16, 2003 11:13 am   
 
i have do with forall and if asking for patterns
but i want know why if i put the
pattern hello
value #cw blue
#show eco
and if i put hello and hello
both hellos becomes blue but only appears one eco
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue Sep 16, 2003 6:25 pm   
 
There are a few special-purpose trigger types, such as #CW, which check for every occurence of the pattern. Most triggers don't. It's too slow.
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