Author Topic: Newbie door question  (Read 401 times)

Legacy_crystalwizard

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
Newbie door question
« on: December 01, 2014, 07:21:32 pm »


               

I have a door that starts out closed and locked. It's going to be an area transition, but not when it starts.


 


At the beginning, theh player speaks to a certain NPC and is given a quest.


After the player has completed a quest, and spoken to the NPC again, I want several things to happen.


 


1. I want the NPC to step aside


2. I want the door to change from shut to standing open


3. I want the lock to go away


4. I want the area transition to enable.


 


Does anyone have a tutorial online or can someone please give me instructions and perhaps the names of any existing scripts that I can call to accomplish this stuff?



               
               

               
            

Legacy_Kato -

  • Hero Member
  • *****
  • Posts: 747
  • Karma: +0/-0
Newbie door question
« Reply #1 on: December 02, 2014, 05:56:35 pm »


               

Well, assuming you're using a standard conversation(instead of a dynamic one) the concept is always the same: You put the appropriate scripts in "text appears when..." and "actions taken". The functions you want to use for your door would be ActionOpenDoor() and SetLocked(FALSE). The area transition can always be enabled since the door is initially locked. Take a look at the Lexicon 1.69 for examples using the above functions.


 


Kato