Door script question

Post » Tue Dec 22, 2009 9:38 pm

I want to make a door that can't be opened. Basically, when the player clicks the door, I want the opening animation not to play, and the NPC standing in front of the door to initiate dialog with the player saying that he's not allowed through. How would I do this?
User avatar
daniel royle
 
Posts: 3439
Joined: Thu May 17, 2007 8:44 am

Post » Tue Dec 22, 2009 6:48 am

I want to make a door that can't be opened. Basically, when the player clicks the door, I want the opening animation not to play, and the NPC standing in front of the door to initiate dialog with the player saying that he's not allowed through. How would I do this?

You want to initiate Dialog? Or just use a MessagBox?

MessageBox script:
Beginif (OnActivate == 1)	Messagebox "This door will not for you."endifEnd

And to initiate dialog, just use:
"NPCs ID"-> ForceGreeting
Instead of the MessageBox line. Then create the Dialog as normal, under the Greeting tab.
User avatar
Soku Nyorah
 
Posts: 3413
Joined: Tue Oct 17, 2006 1:25 pm

Post » Tue Dec 22, 2009 12:46 pm

I went with the message box instead of the guard. It was easier, due to the guard already having a regular greeting, and I figured if the player is sick and kills the guard they still won't be able to get past the door.
User avatar
Sudah mati ini Keparat
 
Posts: 3605
Joined: Mon Jul 23, 2007 6:14 pm


Return to III - Morrowind