Jump to content

Script For Adding Item To NPC


jamied

Recommended Posts

The scenario is I'm in a room with five enemy NPCs and a locked door. The key will only spawn on the last NPC I kill so I have to kill everyone in the room to be able to leave. How do I script that in the quest script? I can make the door unlock automatically after all five are killed by using GetDead and Unlock but would prefer the player finds a key instead but it only spawns on the last NPC to be killed. I'm stumped on how to do this so grateful for any help.

 

Edit: I never thought to add a script to each NPC with the begin ondeath command and a condition the other NPCs are dead. Just tested it and it works perfectly. 

 

 

Edited by jamied
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...