Jump to content

[LE] How do I create a fetch quest objective with more than one item?


Goatdog420

Recommended Posts

I have a quest objective where the player needs to acquire 4 different items to advance to the next stage, but I can only find a script you would use on a single item. Are there any default scripts for a multi-item fetch quest? For reference, here is the original code I am referring to:

ScriptName SetStageOnPlayerPickUp Extends ObjectReference
 
Actor Property PlayerREF Auto
Quest property QuestToSet Auto
Int Property iStageToSet Auto
 
Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)
	If akNewContainer == PlayerREF
		QuestToSet.SetStage(iStageToSet)
		GoToState("Taken")
	EndIf
EndEvent
 
State Taken
	; Do nothing
EndState

 

 

Link to comment
Share on other sites

Either look at how the bear pelt collection quest was done for Temba and use that method. I believe there is a form list and a script attached to a player alias that checks when those items are added / removed from the player and adjusts the count accordingly.

 

Otherwise, you'll need to use the posted script as a base and add conditions that the player has all four items before advancing the stage. However, you may want some sort of on-screen notification that tells the player how many more items they need to obtain. You might be able to have multiple objectives (one for each item and thus potentially a marker for each one) and use IsObjectiveCompleted in a set of conditions prior to setting the stage.

Guardians of the Divine is a quest in Legacy of the Dragonborn (LE version linked) that uses multiple objectives to point out different items that need to be collected. The stage does not advance until they are all picked up. Might be worth taking a look at it.

 

All that said, I do not know of a script designed exactly the way you want that can be inserted without some sort of modification.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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