beancounter
07-28-2004, 10:24 PM
I believe I have found a much better way to debug scripts in KOTOR. I was using the command AdjustAlignment() to signal certain events in my scripts, but I have found a function that will write out to the Feedback Screen.
The command "SendMessageToPC()" will write out your message or variable to the Feedback log.
An example would be:
SendMessageToPC(GetFirstPC(), "This is a test");
This script will print out "This is a test" in the Feedback screen. You can also print out variables, as long as you convert them to a string. While it is not as good as SpeakString(which is broke for KOTOR), it works a whole lot better then other methods I have read about. I hope this helps some of you scriptors out.
The command "SendMessageToPC()" will write out your message or variable to the Feedback log.
An example would be:
SendMessageToPC(GetFirstPC(), "This is a test");
This script will print out "This is a test" in the Feedback screen. You can also print out variables, as long as you convert them to a string. While it is not as good as SpeakString(which is broke for KOTOR), it works a whole lot better then other methods I have read about. I hope this helps some of you scriptors out.