Difference between revisions of "Category:Quest Objectives"
imported>Kkuhlmann |
imported>Entom (→Description: info about CompleteAllObjectives) |
||
Line 8: | Line 8: | ||
*[[GetObjectiveDisplayed]] QUEST_NAME, INDEX | *[[GetObjectiveDisplayed]] QUEST_NAME, INDEX | ||
*[[GetObjectiveCompleted]] QUEST_NAME, INDEX | *[[GetObjectiveCompleted]] QUEST_NAME, INDEX | ||
There is also a function to mark all already displayed objectives as completed: | |||
*[[CompleteAllObjectives]] QUEST_NAME | |||
=='''Examples'''== | =='''Examples'''== |
Latest revision as of 07:28, 1 January 2009
Description[edit | edit source]
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:
- SetObjectiveDisplayed QUEST_NAME, INDEX, 1/0
- SetObjectiveCompleted QUEST_NAME, INDEX, 1/0
- GetObjectiveDisplayed QUEST_NAME, INDEX
- GetObjectiveCompleted QUEST_NAME, INDEX
There is also a function to mark all already displayed objectives as completed:
- CompleteAllObjectives QUEST_NAME
Examples[edit | edit source]
Single, linear objectives[edit | edit source]
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[edit | edit source]
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[edit | edit source]
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[edit | edit source]
Pages in category "Quest Objectives"
This category contains only the following page.