Prevent Item Pickup (Power Type)

Prevents the entity that has the power from picking up an item.

Prevents the entity that has the power from picking up an item.

Type ID: apoli:prevent_item_pickup

!!! note

The actor and target context of certain fields of this power type are as follows:

FieldActorTarget
bientity_action_throwerThe entity that threw the item.The entity about to pick up the item.
bientity_action_itemThe entity about to pick up the item.The item entity to be picked up.
bientity_conditionThe entity that threw the item.The entity about to pick up the item.

Fields

FieldTypeDefaultDescription
bientity_action_throwerBi-entity Action TypeoptionalIf specified, this bi-entity action will be executed on either or both the actor and target entities (See to the table above to determine which actor/target entity is being referred to.)
bientity_action_itemBi-entity Action TypeoptionalIf specified, this bi-entity action will be executed on either or both the actor and target entities (See to the table above to determine which actor/target entity is being referred to.)
item_actionItem Action TypeoptionalIf specified,this item action will be executed on the item that was attempted to be picked up.
bientity_conditionBi-entity Condition TypeoptionalIf specified, the restriction will only happen if this bi-entity condition is fulfilled by either or both the actor and target entities (See the table above to determine which actor/target entity is being referred to.)
item_conditionItem Condition TypeoptionalIf specified, the restriction will only happen if this item condition is fulfilled by the item about to be picked up.
priorityInteger0Determines the execution priority of the powers that use this power type (in a low-to-high priority order.)

Examples

{
	"type": "apoli:prevent_item_pickup",
	"item_condition": {
		"type": "apoli:meat"
	}
}

This example will prevent the entity that has the power from picking up food items that are considered meat.