Hi,
I've only just started using Mush again after a long time, so chances are my problems are comming from not knowing how things work exactly, but here it is.
I have two triggers (below). One is just a simple single line trigger which I use to capture the prompt, and redraw it with some extra info. The other is a multiline trigger I am using to track where my weapons hit.
The aim of the multiline trigger is only to fire if the attack isn't parried/dodged (meaning that the line following it is either another attack line, or the prompt)
Whats happening is that the multiline trigger while fire on the prompt if the first trigger is not active, but doesn't fire (but fires on two attacks) if the prompt is being redrawn. - which is what needs to happen
Here is a couple of examples of what comes from the Mud
Lightning-quick, you jab Uli's left arm with a gleaming scimitar.
Uli parries the attack with a deft manoeuvre.
You slash into Uli's left arm with a gleaming scimitar.
Uli parries the attack with a deft manoeuvre.
4740h, 4745m, 19490e, 18340w, 67% cekdb-
and
You swing a gleaming scimitar at Uli's left arm with all your might.
Lightning-quick, you jab Uli's left arm with a gleaming scimitar.
4740h, 4727m, 19490e, 18340w, 67% cekdb-
And the triggers:
<triggers>
<trigger
enabled="y"
group="Prompt"
keep_evaluating="y"
match="^(\d+)h\, (\d+)m\, (\d+)e\, (\d+)w, (\d+)% ([cexkdb@]*)\-"
omit_from_output="y"
regexp="y"
repeat="y"
send_to="14"
sequence="100"
>
<send>
stats.health = %1
stats.mana = %2
stats.endurance = %3
stats.willpower = %4
stats.xp = %5
stats.flags = "%6"
drawprompt ()</send>
</trigger>
</triggers>
and
<triggers>
<trigger
enabled="y"
expand_variables="y"
lines_to_match="2"
keep_evaluating="y"
match="^(Lightning-quick, you jab \w+'s \w+ \w+ with a .*\.|You swing a .* at \w+'s \w+ \w+ with all your might\.|You slash into \w+'s \w+ \w+ with a .*\.)$\n^(Lightning-quick, you jab \w+'s \w+ \w+ with a .*\.|You swing a .* at \w+'s \w+ \w+ with all your might\.|You slash into \w+'s \w+ \w+ with a .*\.|\d+h, \d+m.*$)"
multi_line="y"
regexp="y"
send_to="12"
>
<send></send>
</trigger>
</triggers>
I've pulled out some of the scripting itself, to make things clearer.
I've tried playing around with the regex for the prompt capturing in the multi-line trigger and changing it to match the new trigger...but that didn't do anything either - and I was under the impression that shouldn't matter, because its got a lower sequence then the single-line trigger.
I hope that makes sense!
I've only just started using Mush again after a long time, so chances are my problems are comming from not knowing how things work exactly, but here it is.
I have two triggers (below). One is just a simple single line trigger which I use to capture the prompt, and redraw it with some extra info. The other is a multiline trigger I am using to track where my weapons hit.
The aim of the multiline trigger is only to fire if the attack isn't parried/dodged (meaning that the line following it is either another attack line, or the prompt)
Whats happening is that the multiline trigger while fire on the prompt if the first trigger is not active, but doesn't fire (but fires on two attacks) if the prompt is being redrawn. - which is what needs to happen
Here is a couple of examples of what comes from the Mud
Lightning-quick, you jab Uli's left arm with a gleaming scimitar.
Uli parries the attack with a deft manoeuvre.
You slash into Uli's left arm with a gleaming scimitar.
Uli parries the attack with a deft manoeuvre.
4740h, 4745m, 19490e, 18340w, 67% cekdb-
and
You swing a gleaming scimitar at Uli's left arm with all your might.
Lightning-quick, you jab Uli's left arm with a gleaming scimitar.
4740h, 4727m, 19490e, 18340w, 67% cekdb-
And the triggers:
<triggers>
<trigger
enabled="y"
group="Prompt"
keep_evaluating="y"
match="^(\d+)h\, (\d+)m\, (\d+)e\, (\d+)w, (\d+)% ([cexkdb@]*)\-"
omit_from_output="y"
regexp="y"
repeat="y"
send_to="14"
sequence="100"
>
<send>
stats.health = %1
stats.mana = %2
stats.endurance = %3
stats.willpower = %4
stats.xp = %5
stats.flags = "%6"
drawprompt ()</send>
</trigger>
</triggers>
and
<triggers>
<trigger
enabled="y"
expand_variables="y"
lines_to_match="2"
keep_evaluating="y"
match="^(Lightning-quick, you jab \w+'s \w+ \w+ with a .*\.|You swing a .* at \w+'s \w+ \w+ with all your might\.|You slash into \w+'s \w+ \w+ with a .*\.)$\n^(Lightning-quick, you jab \w+'s \w+ \w+ with a .*\.|You swing a .* at \w+'s \w+ \w+ with all your might\.|You slash into \w+'s \w+ \w+ with a .*\.|\d+h, \d+m.*$)"
multi_line="y"
regexp="y"
send_to="12"
>
<send></send>
</trigger>
</triggers>
I've pulled out some of the scripting itself, to make things clearer.
I've tried playing around with the regex for the prompt capturing in the multi-line trigger and changing it to match the new trigger...but that didn't do anything either - and I was under the impression that shouldn't matter, because its got a lower sequence then the single-line trigger.
I hope that makes sense!