Difference between revisions of "SetObjectiveDisplayed"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Tox2ik
(targets not refreshing on subsequent calls)
imported>Terra Nova2
(→‎Notes: Last note was added to the wrong version of this function.)
 
Line 18: Line 18:


*Always remember that SetObjectiveDisplayed only accepts indices that are defined in the quest's "Quest Objectives" tab. When you try to display a quest objective that isn't defined, nothing will happen.
*Always remember that SetObjectiveDisplayed only accepts indices that are defined in the quest's "Quest Objectives" tab. When you try to display a quest objective that isn't defined, nothing will happen.
* Targets under Quest Objective Data must be filled at the time of calling setObjectiveDisplayed() or they will remain empty on subsequent calls to the function (they are not "refreshed" by this function even if filled by papurys between calls).


==See Also==
==See Also==

Latest revision as of 06:39, 20 March 2015

Description[edit | edit source]

SetObjectiveDisplayed turns a quest objective on or off.

Syntax[edit | edit source]

SetObjectiveDisplayed QuestName, Index, DisplayFlag (0/1)

Examples[edit | edit source]

SetObjectiveDisplayed MyQuest 10 1

Turns on objective 10.

Notes[edit | edit source]

  • If this is the first objective of the quest to be displayed, the player will receive a "Quest Added" message on screen.
  • If the quest is not currently running, SetObjectiveDisplayed ... 1 will automatically start it.
  • Always remember that SetObjectiveDisplayed only accepts indices that are defined in the quest's "Quest Objectives" tab. When you try to display a quest objective that isn't defined, nothing will happen.

See Also[edit | edit source]

Reference[edit | edit source]

None provided.

Papyrus Version[edit | edit source]

Quest.SetObjectiveDisplayed (Papyrus)