1. Jscript automatically converts between types.
2. Stuff:
code:
if(counting)
{
return "";
}
That returns nothing making your script not work. Return msg.
code:
MsgPlus.AddTimer("commandCountDown", 1000);
One second timer.
code:
else
{
Debug.trace("Else");
sendMessage(counter);
Add
code:
MsgPlus.AddTimer("commandCountDown", 1000);
Timers run once then go away, you need to make it run each time you need it to.
And yes it could be greatly simplified.
1278 / 479