AdvanceSkill - Game

From the CreationKit Wiki
Revision as of 09:03, 22 April 2012 by imported>Fg109
Jump to navigation Jump to search

Member of: Game Script

Advances the progress of the provided Skill by the given amount (for the player only).

Syntax

Function AdvanceSkill(string asSkillName, float afMagnitude) native global

Parameters

  • asSkillName: The Skill to progress.
  • afMagnitude: The amount by which the skill progress will be advanced. This is in Skill Usage amounts, so it will count towards skill progression but won't necessarily change the Skill itself. The amount must be positive. If the new amount exceeds the skill's level threshold, the skill will advance, and possibly level up.

Return Value

None.

Examples

; Advance the given skill progress (Skill XP) on the player by the provided amount
Game.AdvanceSkill("Marksman", 50.0)

Notes

  • The amount of Skill XP needed to level up the skill varies depending on the skill, and by the current level of that skill.

See Also