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
Rexxon
Beginner


Joined: 28 Oct 2000
Posts: 24
Location: USA

PostPosted: Fri Aug 16, 2002 7:02 pm   

Trying to get my triggers to work.
 
I'm trying to create a trigger to notify my clan when I entangle/curse something. However, I'm having problems.

The Trigger's are:
Roots grow up from the ground and entangle a Brave Knight!

A Brave Knight looks very uncomfortable.

The name, In this case A Brave Knight, Can vary from anywhere from 1-4 words.

How Can I capture the name from those triggers, And say:

clooc {W Note: A Brave Knight is entangled.
clooc {W Note: A Brave Knight is cursed.

Thank you for your help. :)



When the world needs a hero...

Rexxon the Mighty.
Reply with quote
fattony
Apprentice


Joined: 27 Dec 2001
Posts: 105
Location: USA

PostPosted: Fri Aug 16, 2002 7:10 pm   
 
You can use a wildcard to capture it.

Ex-
#TRIGGER {^Roots grow up from the ground and entangle (%*)!$} {clooc {W Note: %proper(%1) is entangled.}
#TRIGGER {^(%*)looks very uncomfortable.$} {clooc {W Note: %proper(%1) is cursed.}

Should work.

Fat Tony
Reply with quote
Rexxon
Beginner


Joined: 28 Oct 2000
Posts: 24
Location: USA

PostPosted: Fri Aug 16, 2002 7:35 pm   
 
Thank you, They work. :)


When the world needs a hero...

Rexxon the Mighty.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Aug 17, 2002 9:10 am   
 
There should be no need to use the %* wildcard in this case. Because it's a wildcard for everything, including special characters such as ";", it makes your triggers subject to abuse by others. In almost all cases, the * wildcard, which doesn't accept special characters, is preferable.

#TRIGGER {^Roots grow up from the ground and entangle (*)!$} {clooc {W Note: %proper(%1) is entangled.}
#TRIGGER {^(*)looks very uncomfortable.$} {clooc {W Note: %proper(%1) is cursed.}

LightBulb
Senior Member
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