IPB

Welcome Guest ( Log In | Register )

> 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

Posts in this topic
- Blum   Triggers   Nov 2 2004, 02:00 PM
- - Guest   Sorry I can't help you, but I have seen errati...   May 4 2005, 12:10 AM


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

 



Lo-Fi Version Time is now: 27th November 2024 - 01:41 PM