Difference between revisions of "ModPlayerSkillExp"
Jump to navigation
Jump to search
imported>CSbot (Automated import of articles) |
imported>Low Post |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| origin = OBSE | | origin = OBSE | ||
Line 24: | Line 23: | ||
}} | }} | ||
}} | }} | ||
Modifies the current SkillUse by ''amount''. | |||
If the new value is | |||
*greater than the one returned by [[GetRequiredSkillExp]] increments the Skill by 1. | |||
*less than 0 decrements the Skill by 1. | |||
== Notes == | |||
During Skill increment/decrement SkillAdvances, MajorSkillUps & SkillUse is handled correctly. | |||
AttributeBonus isn't affected, though. You have to adjust it manually using [[GetPCAttributeBonus] & [[SetPCAttributeBonus]]. | |||
==See Also== | |||
*[[GetPlayerSkillUse]] | |||
*[[GetSkillUseIncrement]] | |||
*[[SetSkillUseIncrement]] | |||
*[[IncrementPlayerSkillUse]] | |||
*[[TriggerPlayerSkillUse]] | |||
*[[GetRequiredSkillExp]] | |||
[[Category:Functions]] | [[Category:Functions]] |
Revision as of 09:18, 23 March 2011
< [[::Category:Functions|Category:Functions]]
A function added by the Oblivion Script Extender.
Syntax:
(nuSkillExperience:float) ModPlayerSkillExp skill:actorValueCode amount:float
(nuSkillExperience:float) ModPlayerSkillExpC skill:short amount:float
Modifies the current SkillUse by amount. If the new value is
- greater than the one returned by GetRequiredSkillExp increments the Skill by 1.
- less than 0 decrements the Skill by 1.
Notes
During Skill increment/decrement SkillAdvances, MajorSkillUps & SkillUse is handled correctly. AttributeBonus isn't affected, though. You have to adjust it manually using [[GetPCAttributeBonus] & SetPCAttributeBonus.