Actions

Context actions appear when a player right-clicks an item from their inventory menu. Some items may have set a of automatically-generated context actions, but additional context actions can be added to any item. The system currently supports adding additional blueprint actions.

Depending on an item’s configuration, the game may automatically add context actions for various actions.

Game Data File

Properties

Property Name

Type

Default Value

Action_#_Blueprint_#_Index

uint8

0

Action_#_Blueprint_#_Link

flag

Action_#_Blueprints

uint8

0

Action_#_Key

string

Action_#_Source

uint8

uint16

Action_#_Text

string

Action_#_Tooltip

string

Action_#_Type

EActionType

Actions

uint8

0

EActionType Enumeration

Named Value

Description

Blueprint

Action is linked a crafting blueprint.

Property Descriptions

Action_#_Blueprint_#_Index uint8 0

Index of the blueprint that action should perform.


Action_#_Blueprints uint8 0

Total number of blueprint indices.


Action_#_Key string

Translation key that should be used instead of a custom button name and tooltip. Valid translation keys and their localization can be found in the PlayerDashboardInventory.dat localization file.

Valid keys include: Attachments, Craft_Bandage, Craft_Dressing, Craft_Rag, Craft_Seed, Dequip, Drop, Equip, Pickup, Refill, Repair, Salvage, Store, and Take.

This property cannot be used in combination with Action_#_Text or Action_#_Tooltip. If set, the value of this property will always override any custom button name or tooltip that has been set.


Action_#_Source uint16 0

ID of the item to source actions from. Default source is the current item.


Action_#_Text string

Context button name. This property is usually used in combination with Action_#_Tooltip.


Action_#_Tooltip string

Context button tooltip. This property is usually used in combination with Action_#_Text.


Action_#_Type EActionType

Type of action to perform. Currently, only the Blueprint action type exists.


Actions int 0

Total number of context actions.

Default Actions

Depending on the blueprints an item has, some blueprint actions may be automatically added to the item as well. These actions will be linked to the blueprint they were automatically generated from.

  • When a blueprint only has one supply, with a supply ID of the item itself, an action using the Salvage localization key is generated.

  • When a blueprint uses the Repair type, an action using the Repair localization key is generated.

  • When a blueprint uses the Refill type, an action using the Refill localization key is generated.