This is a trigger I found in another post on this forum. After I imported it using the clipboard, mushclient gives me an error saying:
Compile error
World: aardwolf
Immediate execution
[string "Trigger: "]:4: unexpected symbol near ','
Am I doing something wrong? Any ideas??
<triggers>
<!--
zMUD trigger:
#TRIGGER {(%d)/%dhp}
{#IF (%1 < 1000) {cast 'heal';#T- autohealspell}}
{autohealspell}
-->
<trigger
enabled="y"
group="autohealspell"
match="(\d+)/(\d+)hp"
regexp="y"
send_to="12"
sequence="100"
>
<send>
if %1 < 1000 then
Send "cast 'heal'"
EnableTriggerGroup "autohealspell", vbFalse
end if
</send>
</trigger>
<!--
zMUD trigger:
#TRIGGER {A warm feeling fills your body.} {#T+ autohealspell}
-->
<trigger
enabled="y"
keep_evaluating="y"
match="A warm feeling fills your body\."
regexp="y"
send_to="12"
sequence="100"
>
<send>
EnableTriggerGroup "autohealspell", vbTrue
</send>
</trigger>
</triggers>
Compile error
World: aardwolf
Immediate execution
[string "Trigger: "]:4: unexpected symbol near ','
Am I doing something wrong? Any ideas??
<triggers>
<!--
zMUD trigger:
#TRIGGER {(%d)/%dhp}
{#IF (%1 < 1000) {cast 'heal';#T- autohealspell}}
{autohealspell}
-->
<trigger
enabled="y"
group="autohealspell"
match="(\d+)/(\d+)hp"
regexp="y"
send_to="12"
sequence="100"
>
<send>
if %1 < 1000 then
Send "cast 'heal'"
EnableTriggerGroup "autohealspell", vbFalse
end if
</send>
</trigger>
<!--
zMUD trigger:
#TRIGGER {A warm feeling fills your body.} {#T+ autohealspell}
-->
<trigger
enabled="y"
keep_evaluating="y"
match="A warm feeling fills your body\."
regexp="y"
send_to="12"
sequence="100"
>
<send>
EnableTriggerGroup "autohealspell", vbTrue
</send>
</trigger>
</triggers>