Currently, there is no way to check/change the Xp of a hero.
*
GetHeroXp(hero)
hero: the hero you want to check (see, for example, GetHero).
Returns the quantity of Xp the hero has.
*
SetHeroXp(hero, quantity, levelup)
hero: the hero to which you want to set the Xp (see, for example, GetHero).
quantity: the quantity of Xp you want to set for the hero.
levelup: can be set to "0" or "1".
- "0" the hero don't get primary skill(s) and secondary skill(s).
- "1" the hero "level up" and he gets primary skill(s) and the user can choose the secondary skill(s) the hero gets (as usual).
Sets the specified quantity of Xp for the specified hero. The hero can "level up" or not.
*
AddHeroXp(hero, quantity, levelup)
hero: the hero to which you want to add Xp (see, for example, GetHero).
quantity: the quantity of Xp you want to add to the hero.
levelup: can be set to "0" or "1".
- "0" the hero don't get primary skill(s) and secondary skill(s).
- "1" the hero "level up" and he gets primary skill(s) and the user can choose the secondary skill(s) the hero gets (as usual).
Adds the specified quantity of Xp to the specified hero. The hero can "level up" or not.