0, 1 and 2 are not defined in the HKN script you posted. To be honest, your script contains a lot of stuff that doesn't seem to do anything. You defined a ton of commands, but I see no FTL template in there. As I stated earlier, it looks like you only posted half a script. The FTL templates discussed in the post here doesn't make use of the dozen or so "mainx" "assistx" commands you have listed and as I don't see anyplace where those commands are ever called, I can't even begin to guess what you've got going on.


When you manually click your macro, your main window should have no target as it's the main window and as such has no toon to follow because it is the leader. You should be able to just add the stopmacro command to the top of the macro to prevent it from trying to issue the follow if no mod is being used. With FTL, the main window should never recieve a modified key with follow anyway.

Code:
/stopmacro [nomod]
/click JambaFTLTarget
/follow