OnStoryAddToPlayer - Quest
Member of: Quest Script
Event called when this quest is started via an add to player story manager event.
SyntaxEdit
Event OnStoryAddToPlayer(ObjectReference akOwner, ObjectReference akContainer, Location akLocation, Form akItemBase, \
int aiAcquireType)
ParametersEdit
- akOwner: The ObjectReference that owned the object.
- akContainer: The ObjectReference that contained the object.
- akLocation: The Location where it happened.
- akItemBase: The base object of the item that was added to the player's inventory.
- aiAcquireType: The type of acquire that was performed. Will be one of the following:
- 0: None
- 1: Steal
- 2: Buy
- 3: Pick-pocket
- 4: Pick up
- 5: Container
- 6: Dead body
ExamplesEdit
Event OnStoryAddToPlayer(ObjectReference akOwner, ObjectReference akContainer, Location akLocation, Form akItemBase, \
int aiAcquireType)
if aiAcquireType == 6 ; Dead body
Debug.Trace("The player just looted a " + akItemBase + " from a dead body")
endIf
endEvent