I'm struggling with grasping LUA's language, I'm trying to set up some direction aliases and cannot for the life of me get it to work.
<aliases>
<alias
match="ne"
enabled="y"
send_to="10"
keep_evaluating="y"
sequence="100"
>
<send>if fighting = 1 then
send "flee northeast"
else
send "northeast"
end</send>
</alias>
</aliases>
I've scripted extensively in zmud and I want a more powerful {and free} Client. However I can not figure out what I'm doing wrong. This is the error I get:
Compile error
World: Moongate
Immediate execution
[string "Immediate"]:1: 'then' expected near '='
<aliases>
<alias
match="ne"
enabled="y"
send_to="10"
keep_evaluating="y"
sequence="100"
>
<send>if fighting = 1 then
send "flee northeast"
else
send "northeast"
end</send>
</alias>
</aliases>
I've scripted extensively in zmud and I want a more powerful {and free} Client. However I can not figure out what I'm doing wrong. This is the error I get:
Compile error
World: Moongate
Immediate execution
[string "Immediate"]:1: 'then' expected near '='