cjm81499 Posted September 14, 2013 Share Posted September 14, 2013 Hello, I am attempting to create a New Vegas quest mod. I want an objective to end when an NPC dies, and a new on begin. This is the script I have right now. "scn JWD Begin GameMode If 0JohnWarren.GetDead == 1 SetStage 0VaT 10 EndifEnd" JWD = Script Name 0JohnWarren = ID of NPC I want dead for the objective to end 0VaT = Quest name 10 = Quest stage I want to end when he dies When I save and exit it says "Do you want to save the current script? current=" which means it's wrong. I've been trying for awhile to get it right, but I just can't figure out what's wrong with it. Thanks! Link to comment Share on other sites More sharing options...
jazzisparis Posted September 14, 2013 Share Posted September 14, 2013 (edited) Never use numbers at the beginning of a reference ID (use JohnWarren, instead of 0JohnWarren).Moreover, in this case, using an object script attached to the NPC would be more suitable: scn JohnWarrenScript Begin OnDeath SetStage 0VaT 10 End If the NPC already has a script attached to it, simply append the OnDeath block (as seen in the above example) to the script. Edited September 14, 2013 by jazzisparis Link to comment Share on other sites More sharing options...
cjm81499 Posted September 14, 2013 Author Share Posted September 14, 2013 Okay, so I put that exact script on John Warren. Under ID and Name. IT didn't work though, when he dies, the objective doesn't end, and the arrow just points at his corpse. Should I put it on the actual quest too, or... Link to comment Share on other sites More sharing options...
jazzisparis Posted September 15, 2013 Share Posted September 15, 2013 What is the result script of stage 10 in your quest? Link to comment Share on other sites More sharing options...
cjm81499 Posted September 15, 2013 Author Share Posted September 15, 2013 SetObjectiveDisplayed 0VaT 10 1 Link to comment Share on other sites More sharing options...
jazzisparis Posted September 15, 2013 Share Posted September 15, 2013 You must mark an active objective as completed (by calling SetObjectiveCompleted). Otherwise, it will still be active (including its associated map markers), even if it is not displayed. Link to comment Share on other sites More sharing options...
cjm81499 Posted September 15, 2013 Author Share Posted September 15, 2013 I put SetObjectiveCompleted as the result script, but the objective does not end when John Warren dies. Link to comment Share on other sites More sharing options...
cjm81499 Posted September 15, 2013 Author Share Posted September 15, 2013 Wait, it did not save. When I put in the result script, and close it, it does not change. It stays "SetObjectiveDisplayed 0VaT 10 1" Link to comment Share on other sites More sharing options...
cjm81499 Posted September 15, 2013 Author Share Posted September 15, 2013 Alright. The quest stage 10, the log entry is empty, and the result script is "SetObjectiveCompleted 0VaT 10 1" But it does not seem to be working. Link to comment Share on other sites More sharing options...
Recommended Posts