|
Articnal Apprentice
Joined: 19 Jan 2002 Posts: 107
|
Posted: Sun Oct 19, 2003 12:31 pm
Complex trigger |
Hi.
Im afraid this must be answered anywhere,but i have being searching on the database for 1 hour and didnt get it...
Ill put the example of what i need with a simple triggeR:
#trigger {(%w) (%w) (%w) is here.} {#if ({%1|%2|%3}=(corpse|fountain|blood)) {} {#echo atack}}
Id like this trigger to #echo atack whenever any of the 3 words is corpse,fountain,or blood,but this trigger i did doesnt work.
Any idea? |
|
|
|
Articnal Apprentice
Joined: 19 Jan 2002 Posts: 107
|
Posted: Sun Oct 19, 2003 12:45 pm |
Ok i found out the way:
#trigger {(%w) (%w) (%w) is here.} {#if ({"%1"|"%2"|"%3"}=~ {"corpse"|"fountain"|"blood"}) {} {#echo atack}}
the only problem is that now it will fire when similar words are there too,for example, bloodlust or things like that will fire it,how to prevent them from doing so? |
|
|
|
Arcane_of_Discworld Wanderer
Joined: 29 Jan 2002 Posts: 99 Location: UK
|
Posted: Sun Oct 19, 2003 1:44 pm |
Add a space before and after the trigger words, eg: " blood "
Arcane |
|
|
|
Articnal Apprentice
Joined: 19 Jan 2002 Posts: 107
|
Posted: Sun Oct 19, 2003 2:13 pm |
=) tnx
|
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sun Oct 19, 2003 4:42 pm |
#TR {( %w %w %w )is here.} {#IF ("%1" =~ { corpse | fountain | blood }) {#ECHO attack}}
|
|
|
|
|
|