Category:Quest Objectives

From GECK

Description

Quests have a list of Quest Objectives. Each objective can have 0 or more quest targets. Objectives have the states of On/Off (On = displayed in Pip-Boy, Off = not displayed), and Complete/Not Complete (Complete = display as complete in Pip-Boy).

The following script functions turn objectives on and off, mark them complete or not, and access their current state:


There is also a function to mark all already displayed objectives as completed:

Examples

Single, linear objectives

To turn on an objective:

SetObjectiveDisplayed TestQuest 10 1 : "Retrieve the widget" is displayed

To complete one objective and then display another one:

SetObjectiveCompleted TestQuest 10 1 : "Retrieve the widget" is marked completed
SetObjectiveDisplayed TestQuest 20 1 : "Deliver the widget to Joe" is displayed

To replace one objective with another (without completing the first):

SetObjectiveDisplayed TestQuest 10 0 : "Retrieve the widget" is removed from the objective list
SetObjectiveDisplayed TestQuest 25 1 : "Tell Joe that the widget has been destroyed" is displayed

Multiple ANDed objectives

When you have multiple objectives that you can complete in any order, but must complete them all:

SetObjectiveDisplayed TestQuest 30 1 : "Disable the security system" is displayed
SetObjectiveDisplayed TestQuest 31 1 : "Retrieve the password from the office" is displayed
SetObjectiveDisplayed TestQuest 32 1 : "Plant explosives beneath the fuel tanks" is displayed

As each is completed:

SetObjectiveCompleted TestQuest 31 1 : "Retrieve the password from the office" is marked completed

Multiple ORed objectives

When you have multiple objectives which are mutually exclusive -- you can complete one or the other, but not both:

SetObjectiveDisplayed TestQuest 40 1 : "Free Ben from jail, or kill Ben" is displayed

After one of these is completed:

SetObjectiveCompleted TestQuest 40 1 : "Free Ben from jail, or kill Ben" is marked completed.


See Also

Quest Stages Tab
Quest Objectives Tab

Pages in category "Quest Objectives"

This category contains only the following page.

Personal tools