Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
patton
Newbie


Joined: 27 Oct 2003
Posts: 4

PostPosted: 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.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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
Reply with quote
patton
Newbie


Joined: 27 Oct 2003
Posts: 4

PostPosted: Sun Nov 16, 2003 8:36 pm   
 
Ok I'll give that a try, thank you.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net