Create a temporary trigger to fire when the first blank line after the text block is received. Make the temp trigger check the flags modified by the text received from the MUD.
#TR {(%w) has {a few scratches|some cuts|horrible lacerations|whatever}} {
#VAR hasBarkskin 0
#VAR hasStoneskin 0
#VAR isBlurred 0
#VAR player %1
#TEMP {$} {
#IF !@hasBarkskin {cast barkskin @player}
#IF !@hasStoneskin {cast stoneskin @player}
#IF !@isBlurred {cast blur @player}
}
}
#TR {^{his|her} skin has a barklike texture..} {#VAR hasBarkskin 1}
#TR {^{his|her} form is blurred and difficult to make out!} {#VAR isBlurred 1}
#TR {^{his|her} body seems to be made of stone!} {#VAR hasStoneskin 1}
You can put this in a class and turn it on and off with an alias if you like.
Troubadour