» Mon Sep 21, 2009 3:43 am
A slight problem!
I use: NPCREF.AddSpell NPCCollapseSpell to make the NPC hit the floor and it works wonderfully, however, to remove this from the NPC I use: NPCREF.RemoveSpell NPCCollapseSpell, but the NPC stays on the floor.
Worse is the fact that even when he's on the floor and supposedly out cold, the player can still talk to him. This is the same when the removespell is called.
Note: The spell is added at the goodbye of a conversation and works very well. The player then trots off and does a part of the quest before returning to the unconscious NPC again. The remove spell is done in the result script of a topic, which also advances the quest to send the player back to the unconscious NPC. Of course, he's not meant to be unconscious when the player gets back!
Any ideas? I need to stop the player from being able to communicate with the NPC once he's on the floor, but even more, I need the NPC to get back up and carry on with his current package when I remove the spell. Have I got something mixed up here or is there something missing?
Cheers
MVK