MesaSolar Posted December 28, 2021 Share Posted December 28, 2021 I have an object fetch quest involving a unique NPC that has stolen an item from another. The thief is located in an interior cell that has two factions in it. I was going to simply put an objective to kill the thief, then retrieve the object, but now I'd like to set an optional objective to recruit the competing faction to aid the player. Thinking it would look something like this: Stage 40:SetObjectiveDisplayed(40) SetObjectiveDisplayed(41) With 40 being kill the thief and 41 being recruit the competing faction as the optional objective. Then I'd like to set objective say 42 to kill the thief's faction and a defaultaliasondeath script to retrieve the object once the thief dies. But that's where I'm unsure of how to handle this. I'm thinking I would set up multiple objective targets under the Quest Objectives:Target Ref for stage 42. But what would happen if the thief gets killed before his faction is taken out completely? How would I set Stage 42 and when should I introduce stage 50(retrieve the object) Sorry if that was confusing, and thanks in advance for the help. Link to comment Share on other sites More sharing options...
MesaSolar Posted December 29, 2021 Author Share Posted December 29, 2021 So here's what I've got so far: Stage 50: Kill the thief or recruit Clubs factionSetObjectiveCompleted(40)SetObjectiveDisplayed(50)SetObjectiveDisplayed(55) Where 50 is kill the thief and 55 is recruit Clubs faction. I have no idea where to go from here though. Link to comment Share on other sites More sharing options...
MesaSolar Posted December 29, 2021 Author Share Posted December 29, 2021 So I have some progress but still need help with one more thing. When the player takes the optional objective of recruiting help from the Clubs faction everything runs smoothly. I have the player faction and Clubs faction fighting together against the Spades faction with a kill counter in effect. But if the player doesn't get their help and just kills the thief outright, the optional objective still displays. How do I clear that objective without marking it as complete? I can't use SetObjectiveCompleted because the option wasn't taken in the 1st place. Link to comment Share on other sites More sharing options...
MesaSolar Posted December 30, 2021 Author Share Posted December 30, 2021 Stage 50: Kill the thiefSetObjectiveDisplayed(50)SetObjectiveDisplayed(55) {where 55 is the optional objective of getting help from the clubs faction} Stage 60: Kill the Spades Faction and their leader.SetObjectiveCompleted(55)SetObjectiveDisplayed(60)APW_Spades_Faction.SetEnemy(APW_Clubs_Faction)APW_Clubs_Faction.SetAlly(PlayerFaction) Stage 70: Collect the object (this stage sets after killing the spades faction AND/OR if you just kill the leader/thief)SetObjectiveCompleted(50)SetObjectiveCompleted(60)SetObjectiveDisplayed(70) So how do I clear objective 55 (optional get help) from stage 70 if and only if stage 60 is done? Can I use IsStageDone along with SetObjectiveFailed? How would I do that at stage 70? Some kind of "IF" statement in the script? Link to comment Share on other sites More sharing options...
Recommended Posts