|
Kronus Wanderer
Joined: 13 Jan 2002 Posts: 76 Location: USA
|
Posted: 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.
|
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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 |
|
|
|
Kronus Wanderer
Joined: 13 Jan 2002 Posts: 76 Location: USA
|
Posted: 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!
|
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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 |
|
|
|
Sildaren Wanderer
Joined: 19 Jul 2001 Posts: 59 Location: Germany
|
Posted: 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. |
|
|
|
|
|