Drop Inventory
Drops the item(s) from either the entity's inventory or a power that uses the Inventory (Power Type) (or Origins/Apoli's Inventory (Power Type)).
Type ID: eggolib:drop_inventory
Fields
Field | Type | Default | Description |
---|---|---|---|
inventory_type |
Inventory Type | "inventory" |
Determines whether to drop the items from the inventory of the entity or the inventory of a power present in the entity. |
entity_action |
Entity Action Type | optional | If specified, this action will be executed on the entity before the items are dropped. |
item_action |
Item Action Type | optional | If specified, this action will be executed on the affected items before the said items are dropped |
item_condition |
Item Condition Type | optional | If specified, only items which fulfill this condition will be dropped. |
slot |
Identifier | optional | If specified, only items in the designated slot will be dropped. See Positioned Item Stack Slots for possible values. |
slots |
Array of Identifiers | optional | If specified, only items in the designated slots will be dropped. See Positioned Item Stack Slots for possible values. |
power |
Identifier | optional | If specified and if inventory_type is set to "power" , the items in the inventory of this power will be dropped instead of the items in the entity's inventory. |
Examples
This example will drop the entire inventory of the entity.