Thread: Door Scripts
View Single Post
  #15  
Old 07-13-2004, 09:26 PM
Silver Knight Silver Knight is offline
The Ice Cream Social
Silver Knight's Avatar
Join Date: Jun 2001
Location: SoCal
Posts: 541
Silver Knight is on a distinguished road
Send a message via AIM to Silver Knight
Well, I'll give you the some commands you need to do the script.
It's up to you to find out how to use them.
Comments behind a // are not read by the script, so you can put info in there.
NPC Code:

if (created) //When the NPC is first made.

if (playertouchsme) //When the player touches the NPC

if (playerchats) { //The Player Says Something
if (strequals(#c,TheWordToOpenTheDoor) //The player says a specific thing/
if (strequals(#c,TheWordToCloseTheDoor) //Ditto
}

__________________