Aller au contenu

Photo

Newbie door question


  • Veuillez vous connecter pour répondre
1 réponse à ce sujet

#1
crystalwizard

crystalwizard
  • Members
  • 2 messages

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?



#2
Kato -

Kato -
  • Members
  • 392 messages

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 


  • crystalwizard aime ceci