[TF] multiline triggering
Brought to you by:
kenkeys
|
From: tinyfugue at attbi.c. (Galvin) - 2003-05-15 08:40:08
|
jobs wrote:
> I thought I saw this on here before but can't find it in my log.
> But I was just curious, is there a way to catch multiple lines for a
> trigger?
> Like taking this:
>
> A warm feeling fills your body.
> You are now fully healed.
>
> and turning it into:
> /def -t'You are now fully healed. & A warm feeling fills your body.'
> healcast =\
> /if (acc = 1) c heal%;/endif
>
> right now i have:
> /def -t'A warm feeling fills your body.' healcast = /if (acc = 1) c
> heal%;/endif
> /def -t'You are now fully healed.' autocurechecker=/set acc=0
>
> which basically means that it casts one time more than it needs to
> because of the "warm" msg.
>
/def -t'A warm feeling fills your body.' healcast = \
/test healcast_flag := 1
/def -t'You are now fully healed.' autocurechecker = \
/if (healcast_flag = 1) \
c heal %;
/test healcast_flag := 0 %;\
/endif
Now when you type c heal, another c heal will get casted when those two
lines get seen, and only if two.
if may need more work, but you should get the idea.
|