Sending something immediately after a trigger match

Posted by Faedara on Mon 06 Dec 2010 04:44 PM — 3 posts, 18,919 views.

#0
I have a script that fires off the prompt:



<triggers>
  <trigger
   enabled="y"
   group="AutoSipperAlpha"
   keep_evaluating="y"
   match="^(\d*?)h\, (\d*?)m\, (\d*?)e\, (\d*?)w (.*?)\-$"
   name="get_cur_hp"
   regexp="y"
   script="curing"
   send_to="12"
   sequence="100"
  >
  <send>cur_hp = %1</send>
  </trigger>
</triggers>


However, this script needs to send certain things immediately after receiving the prompt. With SendImmediate and Send, MUSH still waits until the next line of text is entered or received to the output before sending anything.

In normal triggers this is no problem only because the prompt is the next text and is sent immediately, however with the prompt as the match this doesn't work.
Netherlands #1
Template:faq=11
Please read the MUSHclient FAQ - point 11.
#2
I jumped a little when that worked, thank you!
*happy bunny dance*