F l o r a ' s   B a t M U D   t r i g g e r s   f o r   z M U D

#ECHO Spellround report triggers.
#ECHO These spam a lot, but could be useful if used only for some spells or if
#ECHO rounds <= 3 etc (wink). Must be used with a prompt with lf (see Prompts).
#ECHO Turning command echoing off from zMUD also reduces spam.
#ECHO Round reporting can be turned on/off with F5.
#ECHO TODO: ql boon hastes.
#VAR rounds_report {false} {false}
#VAR rounds_spell {} {""}
#VAR rounds {} {""}
#KEY F5 {#if @rounds_report {#t- rounds;#var rounds_report false false;p~' Spellround reporting: ~[off~].;} {#t+ rounds;#var rounds_report true false;p~' Spellround reporting: ~[on~].;}}
#TRIGGER {^You start chanting.$} {#var rounds_spell "" "";#var rounds "" ""} {rounds} 676
#TRIGGER {You skillfully cast the spell with greater haste.$} {#if (%len(@rounds) > 2) { #var rounds %delete(@rounds,%len(@rounds)-2,2);p~' @rounds_spell: %len(@rounds) }} {rounds} 676
#TRIGGER {You skillfully cast the spell with haste.$} {#if (%len(@rounds) > 1) { #var rounds %delete(@rounds,%len(@rounds)-1,1);p~' @rounds_spell: %len(@rounds) }} {rounds} 676
#TRIGGER {^(*): ([#])$} {#var rounds_spell "%1" "";#var rounds %2;p~' %1: %len(%2)} {rounds} 676