Difference between revisions of "IncrementPlayerSkillUse"
no edit summary
imported>Haama (Corrected syntax, added example) |
imported>Low Post |
||
(6 intermediate revisions by 3 users not shown) | |||
Line 2: | Line 2: | ||
'''Syntax:''' | '''Syntax:''' | ||
(nuSkillExperience:float) IncrementPlayerSkillUse skill: | (nuSkillExperience:float) IncrementPlayerSkillUse skill:name ''whichAction:short'' ''howManyTimes:float'' | ||
Records some additional uses of one of the skill actions. | 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''' | '''Example''' | ||
float Exp | float Exp | ||
set Exp to (IncrementPlayerSkillUse Alchemy 1) | 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. | 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. | ||
Line 15: | Line 19: | ||
*[[GetSkillUseIncrement]] | *[[GetSkillUseIncrement]] | ||
*[[SetSkillUseIncrement]] | *[[SetSkillUseIncrement]] | ||
*[[TriggerPlayerSkillUse]] | |||
*[[ModPlayerSkillExp]] | |||
*[[GetRequiredSkillExp]] | |||
[[Category: Functions]] | [[Category: Functions]] | ||
Line 20: | Line 27: | ||
[[Category: Player Functions]] | [[Category: Player Functions]] | ||
[[Category: Player Functions (OBSE)]] | [[Category: Player Functions (OBSE)]] | ||