Sorry but that script want work either. (It compiled fine as you said but in game didnt work. Here is as much info as i could think of: the script is for kotor 1. I made sure I deleated all saves so it wasnt loading a save. I am including both the .nss and the .ncs files when I build the mod. Other script within the module work fine.
Here are two pics one of the actual script maybe i am doing somethin wrong with it? And this one is of the dialouge the script is called from.