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
Ins0mniak
Apprentice


Joined: 27 Apr 2001
Posts: 110

PostPosted: Sat Feb 23, 2002 12:16 am   

Trigger multiple times on one line?
 
Ok.. for instance here is a string:
You also see a black rat, a black rat, and a black rat.

Trigger: ({rat}){.|,}
Value: #ADD Rats 1

This will only fire once on that line producing a 1 instead of a 3. Any help?
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Sat Feb 23, 2002 12:37 am   
 
With 6.16 I've found a good way is
to grab the line, then parse.

Trigger:
You also see (%*).
Script:
#VAR rats %numwords("%1","a black rat")

Or something to that effect.



TonDiening
Beta Upgrading to 6.26
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