Page 1 of 1

Trigger highlighting and echoing

Posted: Thu Feb 03, 2011 6:46 pm
by ceff
okay, so in Achaea, im a blademaster, so i want to see how much my target is bleeding. i have all of the lines ready, but when i put in the script, it does nothing, for example, the line "You see * is not bleeding at all." i make a substring with "is not bleeding at all" with a script that kind of rund like this
deleteline()
bg ("white")
echo ("\n" ..target.."is not bleeding at all ----None----\n")
echo ("\n" ..target.."is not bleeding at all ----None----\n")
echo ("\n" ..target.."is not bleeding at all ----None----\n")
i have all of the other lines set up like this, but with different colors, i know the trigger is working, because i put in a
Send "say testing" script in it, it was working before, and i have checked to see if all of my boxes are checked, and everything is.

Re: Trigger highlighting and echoing

Posted: Thu Feb 03, 2011 11:43 pm
by Heiko
Check the compiler error messages that you get when saving the script (In your case it's a simple spelling error (deleteLine() Lua is case sensitive).
The other place to always check is the runtime errors that usually are caused by badly initialized variables. -> red ! button in the trigger editor