Use DEBUG ON to debug your script. This is documented in the KiXtart Manual. There are also a lot of example code snippets posted throughout the various forums.

Without you posting your code we won't be able to assist you.
_________________________
There are two types of vessels, submarines and targets.