These are the things that involve setting "cansiphealthmana"
<triggers>
<trigger
custom_colour="17"
enabled="y"
group="Healing"
match="Your mind feels stronger and more alert."
send_to="12"
sequence="100"
other_text_colour="red"
other_back_colour="lime"
>
<send>SetVariable ("cansiphealthmana", "0")</send>
</trigger>
<trigger
custom_colour="17"
enabled="y"
group="Healing"
match="You may drink another health or mana elixir."
send_to="12"
sequence="100"
other_text_colour="red"
other_back_colour="lime"
>
<send>SetVariable ("cansiphealthmana", "1")</send>
</trigger>
<trigger
enabled="y"
group="Healing"
match="The elixir heals and soothes you."
send_to="12"
sequence="100"
>
<send>SetVariable ("cansiphealthmana", "0")</send>
</trigger>
</triggers>
With trace on it seems to work heres is a bit of output:
This output I thought would show problems with my trigger or script because it is actually sending "sip health" too late:
1657h, 2600m, 9646e, 11900w ex- <-- Should have fired
You choke as you inhale water.
980h, 2600m, 9646e, 11900w ex- <-- Could have fired here
You may drink another health or mana elixir.
980h, 2600m, 9650e, 11900w ex- <-- Or here
<-- I sent the "up" command to the MUD
sip health <-- Now it sends "sip health"
up <-- And "up"
You take a drink from an ebony vial.
The elixir heals and soothes you.
1434h, 2600m, 9650e, 11900w ex-A deep pond. <-- Line in wrong place.
But this I can't figure out what is wrong:
1871h, 2600m, 9648e, 11900w ex-
TRACE: Matched trigger "*h, *m, *e, *w *"
You choke as you inhale water.
1194h, 2600m, 9648e, 11900w ex- <-- Trigger should have sent "sip health"
TRACE: Matched trigger "*h, *m, *e, *w *"
<-- There is a little wait here untill somthing happens
<-- POINT A
sip health <-- "sip health" is sent although it is before the "you choke as you inhale water" it seems as though it is sent because of it.
You choke as you inhale water. <--This is that somthing
624h, 2600m, 9650e, 11900w ex-You take a drink from an ebony vial. <-- Line in wrong place
TRACE: Matched trigger "*h, *m, *e, *w *"
sip health <-- "sip health" is sent again
The elixir heals and soothes you.
TRACE: Matched trigger "The elixir heals and soothes you."
978h, 2600m, 9650e, 11900w ex-You take a drink from an ebony vial.
TRACE: Matched trigger "*h, *m, *e, *w *"
The elixir flows down your throat without effect.
<-- POINT B
978h, 2600m, 9650e, 11900w ex-
TRACE: Matched trigger "*h, *m, *e, *w *"
Evrything between POINT A and POINT B happens very fast.
Sorry about the mess Again |