can someone tell me why this trigger wont run?

Posted by Jordan on Fri 14 Sep 2007 06:19 AM — 3 posts, 13,854 views.

#0
heres the line it runs off of and that i made my trig from

STR: 14 INT: 17 WIS: 12 DEX: 17 CON: 19 CHA: 15

heres my trig

<triggers>
<trigger
custom_colour="2"
enabled="y"
match="STR: * INT: * WIS: * DEX: * CON: * CHA: *"
send_to="12"
sequence="100"
>
<send>if (%1 + %2 + %3 + %4 + %5 + %6) &lt; 102 then
Send "Y"
else
Send "N"
end if</send>
</trigger>
</triggers>

and i keep gettin some wierd error i dont understand
EDIT : [string "Trigger: "]:5: unexpected symbol near '<eof>'... thats the error if ya needed it :

thx
Amended on Fri 14 Sep 2007 06:20 AM by Jordan
#1
not sure if this is the correct fix... but by removin the if in the end if it ran like it should at last it looked like it did.... any thoughts?
Australia Forum Administrator #2
In Lua, you end an "if" with just "end".

You may be used to VBscript where you have endif, or you may have seen some of the examples where I put "end -- if". The "--" is a comment, designed to let you know what you are ending. For example:


if (%1 + %2 + %3 + %4 + %5 + %6) < 102 then
  Send "Y"
else
  Send "N"
end  -- if