Jump to content

Home

Script request


Seamhainn

Recommended Posts

Hello!

 

I have a door which is locked. It shall only be possible to open the door if a certain quest status is reached. I assume that is possible with the OnClick entry in the door .utd.

 

The name of the quest is tar_vulkarbase and the entry is 15 (or higher I think).

 

How must a script look like to accomplish that?

 

Thanks for any help!

Link to comment
Share on other sites

Try this one,

 

void main() {

if ((GetJournalEntry("tar_vulkarbase") >== 15))

   {
object oDoor = GetObjectByTag("DOOR_TAG");

ActionOpenDoor(oDoor);  
   }
else {

}
}

As usual I haven't got anything here to check that with so it may need tweaking a little but that's the basis of it.

 

--Stream

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...