Jump to content

Kill npc quest script not working


RiotMan117

Recommended Posts

I'm going to make this nice and simple. I write a script for an npc:

scn MarcusHuntedDown

Begin OnDeath

If Getstage ThinningTheHerd ==10
   SetStage ThinningTheHerd 20 
Endif

END
 

and it does nothing. When the NPC is killed the marker goes away but the quest does not advance to the next stage. The quest still tells you to kill this npc. Thanks.

Link to comment
Share on other sites

Your script is a bit dangerous in that if the quest isn't at stage 10 when the NPC is killed, the script won't advance the quest stage, and once the NPC is dead you potentially end up with the quest unable to advance. If you use a script like this, you need to 100 percent guarantee that the quest is at stage 10 when the player encounters the NPC so that the death script will work properly.

If your quest is at stage 0 when the NPC is killed, the script will never execute the SetStage command.

Link to comment
Share on other sites

On 2/27/2025 at 3:32 AM, madmongo said:

Your script is a bit dangerous in that if the quest isn't at stage 10 when the NPC is killed, the script won't advance the quest stage, and once the NPC is dead you potentially end up with the quest unable to advance. If you use a script like this, you need to 100 percent guarantee that the quest is at stage 10 when the player encounters the NPC so that the death script will work properly.

If your quest is at stage 0 when the NPC is killed, the script will never execute the SetStage command.

If you were to rephrase the script for it to only advance the quest to stage 20 when that npc is killed, how would you write it?

Link to comment
Share on other sites

  • Recently Browsing   0 members

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