adamwalker Apprentice
Joined: 12 Mar 2005 Posts: 195
|
Posted: Wed Nov 22, 2006 9:47 pm
Using @variables inside a trigger pattern. *SOLVED BY SELF* |
Hey, anyone know how i can do this...
variable...
@enemies = paul|peter|edward
trigger...
(*)John(*)has killed(*){@enemies}(*)
sample trigger...
The master John has killed the feeble paul.
if the sample trigger fires i want to be able to use %4 to see what the @enemies result was...
eg
The master John has killed the feeble paul.
which will fire... adding 1 to the database record matching the name
#DBLOAD allkills
#if (%find( "%4", died)) {
key=%find( "%4", died)
killstome=%db( @key, tome)
#add killstome 1
#dbput @key tome @killstome
}
*******edit*******
I found that enclosing the @enemies in ( ) allowed me to assign a % to it!
all fixed, thanks |
|