Difference between revisions of "ModPCSkill"

Jump to navigation Jump to search
289 bytes added ,  12:26, 3 May 2006
Note to explain effect of Beta Patch on this command.
imported>Tegid
(Corrected the clarification after running on the console with relevant debug data running to confirm results.)
imported>Tegid
(Note to explain effect of Beta Patch on this command.)
To lower skills, or to raise skills without having them affect leveling, use Player.[[SetActorValue]] instead.
 
'''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.
'''Note: ModPCSkill will Increment your skill level by one and decrement your Uses value by the required amount to gain the level. If you had 2.56/7.68 before calling ModPCSkill, it would become -5.12/(New Level Max). Repeated calls will continue to decrement your Uses value by each (New Level Max). If you are close to a new level already, the negative value will be small and quickly overcome, but if you add more than one level of skill, or you repeatedly call ModPCSkill (or [[AdvancePCSkill]]) your deficit will take a lot of time to overcome making your skill appear to be stuck'''▼
 
▲'''Note:''' In an unpatched game, ModPCSkill will Increment your skill level by one and decrement your Uses value by the required amount to gain the level. If you had 2.56/7.68 before calling ModPCSkill, it would become -5.12/(New Level Max). Repeated calls will continue to decrement your Uses value by each (New Level Max). If you are close to a new level already, the negative value will be small and quickly overcome, but if you add more than one level of skill, or you repeatedly call ModPCSkill (or [[AdvancePCSkill]]) your deficit will take a lot of time to overcome making your skill appear to be stuck'''
 
==See also==
Anonymous user

Navigation menu