[TF] multiline triggering
Brought to you by:
kenkeys
|
From: vallimar at sexorcisto.n. (Vallimar) - 2003-05-12 21:38:41
|
On Mon, 12 May 2003, 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. > TF cannot do multi-line matching. If you are really concerned about the extra cast, then use alarms. At the 'warm' trigger, do a repeat call with a 2 second time or something, storing the pid. When the 'healed' message pops up, kill the alarm. You'll have to play with the delays to fine tune them for best results, but it shouldn't be too much slower. It will save you mana if nothing else. |