Sorry to be a bother again...
What I want to accomplish:
a) triggering a list of commands upon an attack message
b) setting up variations for the list of commands
E.g. Upon the message that I hit my opponent, I want to execute a list of special attacks, depending on a variable I set before.
When doing normal combat I want to use the specials impale, elbow, knee, headbutt and kick. This sequence of specials I would call "simpale".
When doing combat in heavy armour, e.g. I don't want to do leg attacks, as I may fail, fall to the ground and be a tempting target. Therefore my list of specials would only be impale, elbow and headbutt. This different sequence of specials I would call "snlimpale"
These sequences shall be triggered by "You smash*", "You thrust*" and "You swing*".
And I am getting the following error message:
What I want to accomplish:
a) triggering a list of commands upon an attack message
b) setting up variations for the list of commands
E.g. Upon the message that I hit my opponent, I want to execute a list of special attacks, depending on a variable I set before.
When doing normal combat I want to use the specials impale, elbow, knee, headbutt and kick. This sequence of specials I would call "simpale".
When doing combat in heavy armour, e.g. I don't want to do leg attacks, as I may fail, fall to the ground and be a tempting target. Therefore my list of specials would only be impale, elbow and headbutt. This different sequence of specials I would call "snlimpale"
These sequences shall be triggered by "You smash*", "You thrust*" and "You swing*".
<alias
match="simpale"
enabled="y"
expand_variables="y"
group="specials"
send_to="12"
sequence="100"
>
<send>SetVariable("myspecialname" , "v_simpale")
</send>
</alias>
<alias
match="simpale"
enabled="y"
expand_variables="y"
group="specials"
send_to="12"
sequence="100"
>
<send>SetVariable("myspecialname" , "v_snlimpale")
</send>
</alias>
<alias
match="callSpecial"
enabled="y"
expand_variables="y"
group="specials"
send_to="12"
sequence="100"
>
<send>temp = GetVariable("@myspecialname")
if (temp = "v_simpale") then
Send("impale")
Send("elbow")
Send("knee")
Send("headbutt")
Send("kick")
end if
if (temp = "v_snlimpale") then
Send("impale")
Send("elbow")
Send("headbutt")
end if
</send>
</alias>
<trigger
enabled="y"
group="Specials"
match="You thrust*"
send_to="12"
sequence="100"
>
<send>callSpecial</send>
</trigger>
<trigger
enabled="y"
group="Specials"
match="You smash*"
send_to="12"
sequence="100"
>
<send>callSpecial</send>
</trigger>
<trigger
enabled="y"
group="Specials"
match="You swing*"
send_to="12"
sequence="100"
>
<send>callSpecial</send>
</trigger>
And I am getting the following error message:
[string "Trigger: "]:1: '=' expected near '<eof>'