Background for Skyrim SE
Member of the Quest script
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

  1. ObjectReferenceakOwner

    CK Wiki Description

    The ObjectReference that owns the item.

  2. ObjectReferenceakItem

    CK Wiki Description

    The ObjectReference that was removed.

  3. LocationakLocation

    CK Wiki Description

    The Location where the remove happened.

  4. FormakItemBase

    CK Wiki Description

    The base object of the removed item.

  5. 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
endEvent

Auto-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)
endEvent

Related Pages


Additional References

View this event’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.