|
patton Newbie
Joined: 27 Oct 2003 Posts: 4
|
Posted: Sat Nov 15, 2003 9:17 pm
Complicated Multiline trigger issue |
Example of the data I'm trying to process:
----------------------------------------------------------------
Attacker1 finishes chanting and the ground beneath Target1 riding a horse begins to stir.
The earth rumbles a call of darkness and a rift opens up underneath Target1 riding a horse. Pillars of nether energy
roar upwards, ripping Target1 riding a horse to shreds!
Target1 riding a horse's Shield of Faith absorbs some of the damage.
Attacker1 chills Target1 riding a horse right down to the bones.
Target1 riding a horse's Shield of Faith absorbs some of the damage.
Attacker1 chills Target1 riding a horse right down to the bones.
Target1 riding a horse's Shield of Faith absorbs some of the damage.
Target1 riding a horse staggers backwards under Attacker1's arcane assault.
Target1 riding a horse's Shield of Faith absorbs some of the damage.
Attacker1 deep freezes Target1 riding a horse.
Target1 riding a horse's Shield of Faith absorbs some of the damage.
Target1 riding a horse staggers backwards under Attacker1's arcane assault.
Target1 riding a horse's Shield of Faith absorbs some of the damage.
Attacker1 blasts Target1 riding a horse with a burst of pure energy.
Target1 riding a horse's Shield of Faith absorbs some of the damage.
Attacker1 deep freezes Target1 riding a horse.
Target1 riding a horse's Shield of Faith absorbs some of the damage.
Attacker1 hits Target1 riding a horse with a blast of pure energy.
----------------------------------------------------------------
What I'm trying to do is have a trigger activate off the very first line, then compile up all the following lines so the final output looks like:
-------------------------
Attacker1 finishes chanting and the ground beneath Target1 riding a horse begins to stir.
The earth rumbles a call of darkness and a rift opens up underneath
Target1 chilled and frozen 4 times.
Target1 staggered by magic and hit by magic 4 times.
Target1 shield activated 8 times.
--------------------------
There are a variety of other text messages but I can work out where the effect ends typically but I need it to keep in that trigger long enough for all the text to scroll by for counting. |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sun Nov 16, 2003 6:27 pm |
You (probably) won't be able to do this with a single trigger. Use a class of triggers instead. Something similar to this.
#TR {The earth rumbles a call of darkness} {#GAGON;#VAR Freezes 0;#VAR Magic 0;#VAR Shield 0;#T+ Rumbles}
#CLASS Rumbles
#TR {Attacker1 chills Target1} {#ADD Freezes 1}
#TR {Attacker1 blasts Target1} {#ADD Magic 1}
#TR {Shield of Faith absorbs} {#ADD Shield 1}
#TR {unknown pattern where the effect ends} {#T- Rumbles;#SAY Target1 chilled and frozen @Freezes times.;#SAY Target1 staggered by magic and hit by magic @Magic times.;#SAY Target1 shield activated @Shield times.;#GAGOFF}
#CLASS 0 |
|
|
|
patton Newbie
Joined: 27 Oct 2003 Posts: 4
|
Posted: Sun Nov 16, 2003 8:36 pm |
Ok I'll give that a try, thank you.
|
|
|
|
|
|