Skip to content

AddPlayerSkillXP

Gives a skill XP the game’s own way.

The same as AddPlayerStatXP for a skill: the bar fills, a level reached shows the level-up notice and brings its perk points, xp is above 0 and at most 100000, the XP rate and OnPlayerGainXP are not asked, and the record follows with the player’s next report. fencing (Warfare) is refused: the game works its level out from the weapon skills, so give XP to those.

AddPlayerSkillXP(pid, skill, xp)
Parameter Type
pid number the player
skill string the skill’s name
xp number above 0, at most 100000

boolean - false for a name that is no skill (a stat’s too, and fencing), an amount outside that, or a player not connected

-- a day's work at the forge
AddPlayerSkillXP(pid, "craftsmanship", 40)

AddPlayerStatXP · SetPlayerSkill · GetPlayerSkillXP · OnPlayerLevelUp · the Stats, skills, XP and perks group of the index