RiotMan117 Posted February 24 Share Posted February 24 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 More sharing options...
sullyvanj93 Posted February 25 Share Posted February 25 What is stage 20 of your quest? If you GetStage in the console, what does it return? Link to comment Share on other sites More sharing options...
RiotMan117 Posted February 25 Author Share Posted February 25 2 hours ago, sullyvanj93 said: What is stage 20 of your quest? If you GetStage in the console, what does it return? I will check tomorrow and let you know the results. Link to comment Share on other sites More sharing options...
RiotMan117 Posted February 27 Author Share Posted February 27 Stage 20 is going to speak to an npc about killing the other npc. I typed "player.getstage thinningtheherd" and it returned with "GetStage >> 0.00" Link to comment Share on other sites More sharing options...
madmongo Posted February 27 Share Posted February 27 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 More sharing options...
RiotMan117 Posted February 28 Author Share Posted February 28 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 More sharing options...
madmongo Posted Friday at 02:12 PM Share Posted Friday at 02:12 PM Remove the condition for the quest to be at stage 10. scn MarcusHuntedDown Begin OnDeath SetStage ThinningTheHerd 20 END 1 Link to comment Share on other sites More sharing options...
RiotMan117 Posted Saturday at 05:36 AM Author Share Posted Saturday at 05:36 AM 15 hours ago, madmongo said: Remove the condition for the quest to be at stage 10. scn MarcusHuntedDown Begin OnDeath SetStage ThinningTheHerd 20 END Thank you for the help. This seems to have solved my issue. Much appreciated!!! Link to comment Share on other sites More sharing options...
Recommended Posts