IncrementPlayerSkillUse

From the Oblivion ConstructionSet Wiki
Revision as of 09:20, 23 March 2011 by imported>Low Post
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

A command for Oblivion Script Extender

Syntax:

(nuSkillExperience:float) IncrementPlayerSkillUse skill:name whichAction:short howManyTimes:float

Records some additional uses of one of the skill actions. Increments Skill Level by using the internal formula used for normal SkillUps if necessary.

whichAction defaults to 0, howManytimes defaults to 1 if omitted.

howManyTimes should always be positive. Use TriggerPlayerSkillUse or ModPlayerSkillExp if you want to decrease SkillUse.

Example

float Exp
set Exp to (IncrementPlayerSkillUse Alchemy 1 1)

Increases the player's alchemy skill as if the player had just made a potion. Sets Exp to the player's new amount of experience for alchemy.

See Also