FANDOM


NPCs stay seated while talking Edit

This can be handled several ways. But the simplest is to use a version of the above function in the Root text (first line) of the NPC.

Place this script in the "Actions Taken" script handle on the first line of the NPCs conversation. Note: you must remove the nw_walk_wp script from the "End Conversation Normally" script handle found in the "Current File" Tab or the NPC will stand up at the end of the conversation.

/////////////////////////////////////////////////////////
//Place in "Actions Taken" of the NPCs first convo node
//Make sure tag is correct and remove the nw_walk_wp
//script from the End Conversation Normally handle.
/////////////////////////////////////////////////////////
void main()
{
   object oChair = GetNearestObjectByTag("Chair");
   //Make sure no one is in chair, if not sit-down.
   if(!GetIsObjectValid(GetSittingCreature(oChair)))
     {
     ClearAllActions(); //This is so he don't spin in his chair, following you.
     ActionSit(oChair);
     }
}
//End

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.