ScriptEvent:getXP

From Mod Wiki

Parameters

integer index -- Index of the proficiencyType, or -1.
boolean fromBase -- If set, only the XP from this map will be returned.

Result

float

Supported By

idPlayer

Comments

  • If the index is -1, the overall total XP will be returned.
  • If the index is otherwise out of range, the game will likely crash or return garbage data.
  • The fromBase setting only matters in campaign mode, and does not apply when the index is -1.

Functionality

Returns the amount of XP the player has been awarded in the specified proficiencyType.