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
| Field | Type | Default | Description |
|---|---|---|---|
points | Integer or Expression | optional | If set, this is the amount experience points that will be given to the player. Can not be negative. |
levels | Integer or Expression | optional | If 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.