Thanks Achilles that was perfect :) I had no idea that would work on dlg's but it worked like a charm.
On another note I have a different problem maybe you can help me with. I noticed a thread of yours a while back which had a fix for a problem with a couple NPC's getting their unarmed feats reset.
http://www.lucasforums.com/showthread.php?t=149222&highlight=k_inc_debug.nss)
Stoffe helped you out and you got it to work. But I'm still having trouble compiling it. It gives me a total execution time and no errors.
I used KOTOR tool to extract all the necessary files and got the following files in my directory:
nwnnsscomp.exe
nwscript.nss
k_inc_debug.nss
k_inc_drop.nss
k_inc_generic.nss
k_inc_gensupport.nss
k_inc_utility.nss
k_inc_walkways.nss
k_oei_hench_inc.nss
compile.bat <- nwnnsscomp.exe -c -g 2 k_oei_hench_inc.nss
I had copied and pasted the code in the 4 places just like stoffe said. I'm not certain what's wrong even after looking back through all the compiling tutorials I could find.
As for where I pasted the lines, the big function I put right after the void Do711UserDef(object oPartyMember,int pUserEvent); function.
The next piece of code for handmaiden was pasted right after int In711KOR = (sModuleName == "711KOR");.
The repeated code for baodur was pasted right after int In711KOR = (sModuleName == "711KOR");
The last code for baodur was pasted right after int In711KOR = (sModuleName == "711KOR");
I'm pretty sure that all looks right. If you don't know where the problem might lie is there any way you can make the ncs available for me to download?