Author Sticky: Post Working Scripts Here
Slabar Posted: Wednesday, 26 June 01:38AM
Script Name: Locked Door Conversation

What it Does: Have a locked Door Begin a Dialog Conversation with a player

NOTES:
1. Create your conversation.
2. Create your script


NWScript:
// Begin a Locked Door Conversation (OnFailToOpen)

void main()

{

    object oObjectToDialog = GetClickingObject();

    string sResRef=" your_conversation ";

    BeginConversation(sResRef, oObjectToDialog);

}





3. Right click your door on the map.
4. Set you properties for the door.
A) Lock your door and set your OLDC and CLDC
B) Under Scripts - Place the name of your script [selectable via drop down list]
C) Under Advanced - change belongs to faction to commoner
D) Under Advanced - change conversation to your particular conversation
E) Press OK

4. Additional options that I am using is Auto Opening the door on successful yes to open door. Auto Close the door after the door opens with a loud click.

If anyone has any questions please feel free to ask.

_________________
Stephen M. LaBar, Jr.

Visit me on my personal site at:
http://www.labar.com/nwn