Difference between revisions of "OnStoryScript - Quest"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Henning
m
 
imported>Fg109
(added note)
 
Line 28: Line 28:
endEvent
endEvent
</source>
</source>
== Notes ==
*aiValue1 and aiValue2 cannot be negative.  Even if the event was sent with negative parameters, they are received as 0.


== See Also ==
== See Also ==
*[[Quest Script]]
*[[Quest Script]]
*[[SendStoryEvent - Keyword]]
*[[SendStoryEvent - Keyword]]

Latest revision as of 12:21, 1 April 2012

Member of: Quest Script

Event called when this quest is started via a script story manager event.

Syntax[edit | edit source]

Event OnStoryScript(Keyword akKeyword, Location akLocation, ObjectReference akRef1, ObjectReference akRef2, \
  int aiValue1, int aiValue2)

Parameters[edit | edit source]

  • akKeyword: The Keyword sent by the script
  • akLocation: The Location sent by the script
  • akRef1: The first ObjectReference sent by the script
  • akRef2: The second ObjectReference sent by the script
  • aiValue1: The first value sent by the script
  • aiValue2: The second value sent by the script

Examples[edit | edit source]

Event OnStoryScript(Keyword akKeyword, Location akLocation, ObjectReference akRef1, ObjectReference akRef2, \
  int aiValue1, int aiValue2)
  Debug.Trace("This quest was started by a script story event")
endEvent

Notes[edit | edit source]

  • aiValue1 and aiValue2 cannot be negative. Even if the event was sent with negative parameters, they are received as 0.

See Also[edit | edit source]