Difference between revisions of "SetObjectiveDisplayed - Quest"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Tox2ik
(targets not refreshing on subsequent calls)
imported>Geekofalltrades
m (fixed spelling error)
Line 32: Line 32:


== Notes ==
== Notes ==
* 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).
* 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 papyrus between calls).


== See Also ==
== See Also ==
*[[Quest Script]]
*[[Quest Script]]
*[[IsObjectiveDisplayed - Quest]]
*[[IsObjectiveDisplayed - Quest]]

Revision as of 19:11, 23 December 2013

Member of: Quest Script

Sets whether the specified quest objective is displayed or not.

Syntax

Function SetObjectiveDisplayed(int aiObjective, bool abDisplayed = true, bool abForce = false) native

Parameters

  • aiObjective: The objective to set as displayed or hidden.
  • abDisplayed: Whether the objective is displayed or not.
    • Default: true
  • abForce: If this is true, the objective will be displayed, even if it was displayed before
    • Default: false

Return Value

None.

Examples

; Display objective 10
MyQuest.SetObjectiveDisplayed(10)


; Display objective 15, even if it was displayed before
MyQuest.SetObjectiveDisplayed(15, abForce = true)

Notes

  • 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 papyrus between calls).

See Also