I have a script that fires off the prompt:
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.
<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.