Multiple Quest Objectives to complete

Post » Sat Nov 17, 2012 1:40 pm

Hey guys. I've set up a quest to kill 4 mudcrabs and I need some help. What I've done so far is:

Set Stage 10 as Kill the Mudcrabs
Set Stage 11 as Kill Mudcrab 1
Set Stage 12 as Kill Mudcrab 2
Set Stage 13 as Kill Mudcrab 3
Set Stage 14 as Kill Mudcrab 4
Set Stage 20 as Quest Complete

I only want one objective to be displayed, number 10 (Kill the Mudcrabs).

I have this script in the fragment on each of the stages for Mudcrab 1, 2 etc.

Spoiler

(Stage 11 Script); set when player kills Mudcrab1if getStageDone(12) == TRUE && getStageDone(13) == TRUE && getStageDone(14) == TRUEsetStage(20)endif(Stage 12 Script); set when player kills Mudcrab2if getStageDone(11) == TRUE && getStageDone(13) == TRUE && getStageDone(14) == TRUEsetStage(20)endif(Stage 13 Script); set when player kills Mudcrab3if getStageDone(11) == TRUE && getStageDone(12) == TRUE && getStageDone(14) == TRUEsetStage(20)endif(Stage 14 Script); set when player kills Mudcrab 4if getStageDone(11) == TRUE && getStageDone(12) == TRUE && getStageDone(13) == TRUEsetStage(20)endif

Now I'm attaching the script to each actor to complete the stage when it's dead. I've done this loads before, but because I don't want objective 11, 12, 13, and 14 displayed, only 10, I don't know how to simply "SetStageComplete". Is there a way to do this? Or do I have to have each objective actually displayed in the quest journal, in order to complete the stage?

Usually my script is this to set an objective as complete when an actor is dead:

(Example)Scriptname HISGQ2Crab1 extends ObjectReference  Quest Property HISGuildQuest2Crabs  Auto  Event OnDeath(Actor killer)           HISGuildQuest2Crabs.SetObjectiveComplete(11)EndEvent

Thanks for your help guys :)
User avatar
SEXY QUEEN
 
Posts: 3417
Joined: Mon Aug 13, 2007 7:54 pm

Post » Sat Nov 17, 2012 12:15 pm

Ok so I figured it out (always do straight after posting!)

I added this script to each crab (while still having the above scripts in the stage fragments):

Event OnDeath(Actor killer)		   HISGuildQuest2Crabs.SetObjectiveCompleted(11)		   HISGuildQuest2Crabs.SetStage(11)EndEvent

Obviously the stage changed to 12 for crab 2 etc etc. This works a treat! Stage 11, 12, 13, and 14 have an EMPTY log entry, and the Objective Display Text for each of those is also blank.

Atleast the solution is here for similar quests others may be working on :smile:
User avatar
Mrs Pooh
 
Posts: 3340
Joined: Wed Oct 24, 2007 7:30 pm


Return to V - Skyrim