Difference between revisions of "ModPCSkill"
Jump to navigation
Jump to search
reworked description of the "issues"
imported>ShadowDancer m (formatting) |
imported>White-Gandalf (reworked description of the "issues") |
||
|
To lower skills, or to raise skills without having them affect leveling, use Player.[[SetActorValue]] instead.
==Issues==
'''Note:''' In the Beta Patch 1.1, this call is fixed by incrementing the level and setting your uses value to 0.0. This avoids the negative value, but if it is used when you are already very close to a level, it will just increase by the amount needed to level.▼
This function is meant to be used internally for skill leveling control. It is designed to operate on the "usage count" for the skill in the following manner:
On reaching the current usage limit for a skill level up it executes:
skill_level ++
skill_usage -= old_skill_usage_limit
skill_usage_limit = new_skill_usage_limit
'''Note:'''
While this leads to correct behavior in normal gameplay, it leads to confusion in fan made made scripts, when they just want to give an additional '''bonus''' level-up.
They usually don't expect third variables and processes to be affected (and especially not '''negatively''').
▲
'''Workaround:'''
Only minimal distraction occurs when you use [[SetBaseActorValue]] instead. It will lead to a slightly lower "skill_usage_limit" for the newly gained skill level (thus acting as the same as an additional little usage point bonus), but not to the waste of averagely 100% (unpatched) versus 50% (patched) of the "usage points", which makes such a bonus level-up useless.
==See also==
| |||