eventOnStoryRemoveFromPlayer(ObjectReferenceakOwner, ObjectReferenceakItem, LocationakLocation, FormakItemBase, intaiRemoveType)
Description
Wiki Description
Event called when this quest is started via a remove from player story manager event.
Caveats
CK Wiki - Notes
The above example may be misleading as item consumption does not seem to send events to the Story Manager. A condition-less stacked branch sends events every time an item is dropped, but did not send events when drinking a potion.
Parameters
ObjectReferenceakOwner
CK Wiki Description
The ObjectReference that owns the item.
ObjectReferenceakItem
CK Wiki Description
The ObjectReference that was removed.
LocationakLocation
CK Wiki Description
The Location where the remove happened.
FormakItemBase
CK Wiki Description
The base object of the removed item.
intaiRemoveType
CK Wiki Description
The type of remove performed. Will be one of the following:* 0:None
- 1:Stolen
- 2:Consumed
- 3:Script
- 4:Dropped
- 5:Given
- 6:Put in container
Examples
Event OnStoryRemoveFromPlayer(ObjectReference akOwner, ObjectReference akItem, Location akLocation, \
Form akItemBase, int aiRemoveType)
if aiRemoveType == 2
Debug.Trace("The player just consumed " + akItemBase)
endIf
endEventAuto-Generated Example
Scriptname MyCoolScript extends Quest
event OnStoryRemoveFromPlayer(ObjectReference akOwner, ObjectReference akItem, Location akLocation, Form akItemBase, int aiRemoveType)
Debug.trace("Event received - OnStoryRemoveFromPlayer: akOwner = " + akOwner + " akItem = " + akItem + " akLocation = " + akLocation + " akItemBase = " + akItemBase + " aiRemoveType = " + aiRemoveType)
endEventRelated Pages
- Quest
- Quest.OnStoryAddToPlayer(...)
