Skip to main content

Overview

The ActionKind enum represents the different types of actions available in FFXIV. This enum is used to categorize various player abilities, items, commands, and other executable actions within the game. Namespace: Dalamud.Game

Enum Values

Trait

A Trait. Value: 0
ActionKind.Trait

Action

An Action. Value: 1
ActionKind.Action

Item

A usable Item. Value: 2
This action kind may not work in all contexts.
ActionKind.Item

EventItem

A usable EventItem. Value: 3
This action kind may not work in all contexts.
ActionKind.EventItem

EventAction

An EventAction. Value: 4
ActionKind.EventAction

GeneralAction

A GeneralAction. Value: 5
ActionKind.GeneralAction

BuddyAction

A BuddyAction. Value: 6
ActionKind.BuddyAction

MainCommand

A MainCommand. Value: 7
ActionKind.MainCommand

Companion

A Companion. Value: 8
This action kind status is unresolved.
ActionKind.Companion

CraftAction

A CraftAction. Value: 9
ActionKind.CraftAction

Action2

An Action (again). Value: 10
The difference between this and the standard Action (value 1) is unclear.
ActionKind.Action2

PetAction

A PetAction. Value: 11
ActionKind.PetAction

CompanyAction

A CompanyAction. Value: 12
ActionKind.CompanyAction

Mount

A Mount. Value: 13
ActionKind.Mount

BgcArmyAction

A BgcArmyAction. Value: 19
Values 14-18 are unused in the enum definition.
ActionKind.BgcArmyAction

Ornament

An Ornament. Value: 20
ActionKind.Ornament

Usage Example

using Dalamud.Game;

// Use action kind to categorize actions
public void ExecuteAction(uint actionId, ActionKind kind)
{
    switch (kind)
    {
        case ActionKind.Action:
            // Execute a standard action
            break;
        case ActionKind.Item:
            // Use an item
            break;
        case ActionKind.Mount:
            // Mount up
            break;
        case ActionKind.CraftAction:
            // Perform crafting action
            break;
        default:
            // Handle other action types
            break;
    }
}

// Check if an action is a specific kind
if (actionKind == ActionKind.GeneralAction)
{
    // Handle general actions
}

Notes

  • Some action kinds (Item, EventItem) have noted compatibility issues and may not work in all contexts
  • Values 14-18 are not defined in the enum and are unused
  • The difference between Action (1) and Action2 (10) is not well documented
  • The Companion action kind (8) has unresolved functionality
  • Action sheets in the game data that use these kind identifiers
  • Action execution systems that require kind classification

Build docs developers (and LLMs) love