BioWare Forums: View Post For Code Display


You are viewing a single post. Please do not take this post out of context.
Read the full topic: exiting after conversation

Author exiting after conversation
Windhawk Posted: Monday, 11 November 03:41PM
For a less magical approach , here's one I often use. It will make the NPC go to the nearest door, open it and leave (of course, this is most appropriate indoors).

NWScript:
void main()
{
object oDoor = GetNearestObject(OBJECT_TYPE_DOOR);
ActionMoveToObject(oDoor, TRUE);
ActionOpenDoor(oDoor);
ActionDoCommand(DestroyObject(OBJECT_SELF));
SetCommandable(FALSE);
}

Put it in the Actions Taken if you only want the NPC to flee at certain dialogue choices, or under Current File if you want him/her to flee after the conversation in any case.

_________________
If nothing else, you can consider this a *BUMP*

This post taken from the BioWare Forums
Powered by BioBoards Version 2.1.20
Please read our Copyright and Trademark Information