Skip to main content

Add XP (Entity Action Type)

Gives the player experience points or levels. A negative number of levels takes levels away.

Type ID: apoli:add_xp

Fields

FieldTypeDefaultDescription
pointsInteger or ExpressionoptionalExperience points to give. It can't be negative.
levelsInteger or ExpressionoptionalExperience levels to give. A negative number takes levels away.

Examples

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

This gives the player 2 levels.