TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Thu Feb 06, 2003 6:53 am |
quote:
Darkness of the esoteric contains:
a pinch of sanative herb (20) <endofline
(Glowing) a deep red vial (7) <endofline
a dark, crimson flask (66) <endofline
#TRIGGER "DarknessEsotericItems" {^Darkness of the esoteric contains~:} {#COLOR 71;#TEMP {^$} {#STATE DarknessEsotericItems 0}}
#COND "DarknessEsotericItems" {^(*) ~((%d)~)} {#COLOR 71;#VARIABLE DarknessEsotericItems.[%replace(%replace(%replace( "%1", "(Glowing) ", ""), " ", "_"),",","_")] %2} {looppat|param=99}
That should capture all your items. Then you can put it into your
status line with:
#ST %expanddb(@DarknessEsotericItems," ")
Then for the usage of it:
#TRIGGER {^You quaff (*) from darkness of the esoteric.} {#COLOR 71;#ADD DarknessEsotericItems.[%replace(%replace(%replace( "%1", "(Glowing) ", ""), " ", "_"),",","_")] -1}
#TRIGGER {^Oops... (*) is knocked from your hand and shatters!} {#COLOr 71;#ADD DarknessEsotericItems.[%replace( %replace( "%1", "(Glowing) ", ""), " ", "_"),",","_")] -1}
I thikn that should work. I left the #CO 71's in there so you could see if it is triggering
properly or not. Seems to be some interesting spaces in the output supplied.
Ton Diening |
|