So I'm trying to write some autotrain triggers for "Realms of Despair."
I would like to keep trying a command I have entered until success is achieved.
For example:
I enter "cast 'black hand' naga" but the spell fails and I recieve the response from RoD is "You lost your concentration."
I wrote a simple trigger to retry the last command:
<trigger
bold="y"
enabled="y"
keep_evaluating="y"
match="^You lost your concentration\.$"
match_bold="y"
regexp="y"
repeat="y"
send_to="12"
sequence="100"
>
<send>Send(GetCommand())</send>
</trigger>
The problem is it only triggers once. If the mud then responds to the input from the trigger with "You lost your concentration." the trigger will not fire again.
This should keep trying until the message "You lost your concentration." is NOT received as a response, but it only happens once.
I must be missing something. Any ideas?
Thanks.
I would like to keep trying a command I have entered until success is achieved.
For example:
I enter "cast 'black hand' naga" but the spell fails and I recieve the response from RoD is "You lost your concentration."
I wrote a simple trigger to retry the last command:
<trigger
bold="y"
enabled="y"
keep_evaluating="y"
match="^You lost your concentration\.$"
match_bold="y"
regexp="y"
repeat="y"
send_to="12"
sequence="100"
>
<send>Send(GetCommand())</send>
</trigger>
The problem is it only triggers once. If the mud then responds to the input from the trigger with "You lost your concentration." the trigger will not fire again.
This should keep trying until the message "You lost your concentration." is NOT received as a response, but it only happens once.
I must be missing something. Any ideas?
Thanks.