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
Kronus
Wanderer


Joined: 13 Jan 2002
Posts: 76
Location: USA

PostPosted: Mon May 06, 2002 7:23 am   

phrase counter
 
I am trying to make a script that will count how many times a certain message is displayed on screen and then return that number to me. I have tried making it into a trigger but it isn't working. Any help would be appreiated.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Mon May 06, 2002 9:54 am   
 
#TR {a certain message} {#ADD message 1;#SHOW {The message has now been displayed @message times.}}

LightBulb
Vague questions get vague answers
Reply with quote
Kronus
Wanderer


Joined: 13 Jan 2002
Posts: 76
Location: USA

PostPosted: Mon May 06, 2002 5:06 pm   
 
Thanks, That worked. But it didn't work fully. Here is how. When hits a certain # of messages it pops up "Trigger loop" diolouge box and then it doesn't show how many times it comes up. So, it doesn't work completely if that makes any sense. Thanks for the help!
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Mon May 06, 2002 5:28 pm   
 
Make sure that the text you output from the trigger doesn't contain the trigger phrase. You'll notice the trigger phrase I used is "a certain message" and that the output phrase "The message has now been displayed @message times." doesn't contain the word "certain". So the trigger I gave won't loop.

LightBulb
Vague questions get vague answers
Reply with quote
Sildaren
Wanderer


Joined: 19 Jul 2001
Posts: 59
Location: Germany

PostPosted: Mon May 06, 2002 5:33 pm   
 
You could try just to use
#TR {a certain message} {#ADD message 1}
without the #SHOW command, and add the
'displayed @message times' part to the status window, or status line.
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