IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Triggers, triggers
Guest_Blum_*
post Nov 2 2004, 02:00 PM
Post #1





Guests






I need some help with a trigger.
What I am trying to do is to write a trigger that takes a tell and sends it to another windows.
On the mud I am playing a tell looks like this:
QUOTE
The town crier tells you, "... if you ask me about the latest news."

I've tried using ^.* tells you, ".*" as the regular expression and ##send window "Tells" %%0 as the reply.
It works some times, but in some cases I get very strange results. Here is an example of me entering a room where a mob tells me stuff when I enter:
QUOTE
H:427 P:100.0 V:103 T:49792 E:459,151,139 N:11,120,409 > You ride south.
Center Square    [PEACEFUL] [NOHEAL]
  You are in the center of a large city.  An east-west road meets with a
north-south road here.  The plaza is wide and commotion surrounds you.  An open
doorway to the southwest seems to lead to a Tavern.
Dark clouds cover the sky.
This area is brightly lit.
You can see exits to the north, east, south, west, and southwest.
An elite cityguard is here, riding a stubborn packmule.
An emissary from the hobbit kingdom walks purposefully through town. [2]
An obedient zombie collects corpses for his master.
A member of the Golden Treasure Boys squatters gang wanders aimlessly.
The Grimhaven-Brightmoon trolley is here.
An old, broken down horse stands here.
A Grimhaven town crier stands here spreading the latest news.
A large, marble fountain sits here bubbling water.
A large statue stands here.
A lamppost is here. (lit)
A apple tree is here.
A town crier notices your arrival.
A town crier says, "Welcome to SneezyMUD v5.2!"
A town crier says, "Have you heard the news?"
T[Triggered reply:"##send window "Tells" %%0"]
he town crier tells you, "... if you ask me about the latest news."
The town crier tells you, "I can tell you more..."

H:427 P:100.0 V:103 T:49792 E:459,151,139 N:11,120,409 >
An obedient zombie strides east.

H:427 P:100.0 V:103 T:49792 E:459,151,139 N:11,120,409 > A hobbit emissary leaves north.
Incorrect command. Please see help files if you need assistance!


This is what gets send to the "Tells window":
QUOTE
A large statue stands here.
The town crier tells you, "I can tell you more..."

What am I doing wrong?
Go to the top of the page
 
+Quote Post
Guest_Guest_*
post May 4 2005, 12:10 AM
Post #2





Guests






Sorry I can't help you, but I have seen erratic behavior like this.

I used to report to my group spells that were about to fall, by writing a trigger like this:
Output, line starts with:
CODE
Spell: '$$spell' 0 minutes remaining.

triggers
CODE
gt %%spell falls after this tic.

When I have more than 1 spell that will be expiring that tic, logically it would fire the trigger twice, but since the sc(ore) response comes in 'all at once' it doesn't have time to
CODE
You tell the group, 'spell 1 falls after this tic'
You tell the group, 'spell 2 falls after this tic'


It simply group tells the same spell falling twice, i.e.
CODE
You tell the group, 'spell1 falls after this tic'
You tell the group, 'spell1 falls after this tic'


Is there any way to fix this?
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 11th November 2024 - 06:37 PM