|
Rexxon Beginner
Joined: 28 Oct 2000 Posts: 24 Location: USA
|
Posted: 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. |
|
|
|
fattony Apprentice
Joined: 27 Dec 2001 Posts: 105 Location: USA
|
Posted: 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 |
|
|
|
Rexxon Beginner
Joined: 28 Oct 2000 Posts: 24 Location: USA
|
Posted: Fri Aug 16, 2002 7:35 pm |
Thank you, They work. :)
When the world needs a hero...
Rexxon the Mighty. |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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 |
|
|
|
|
|