Add XP (Entity Action Type)

Adds experience points and levels to the player, or subtracts levels.

Adds experience points and levels to the player, or subtracts levels.

Type ID: apoli:add_xp

Fields

FieldTypeDefaultDescription
pointsInteger or ExpressionoptionalIf set, this is the amount experience points that will be given to the player. Can not be negative.
levelsInteger or ExpressionoptionalIf set, this is the amount experience levels that will be given to the player. Can be negative and thus used to subtract levels.

Examples

"entity_action": {
    "type": "apoli:add_xp",
    "levels": 2
}

This example will add 2 levels to the player.