Difference between revisions of "ModPCSkill"
imported>Ashileedo (further clarification on issues with function) |
imported>Tegid (Corrected the clarification after running on the console with relevant debug data running to confirm results.) |
||
| Line 8: | Line 8: | ||
To lower skills, or to raise skills without having them affect leveling, use Player.[[SetActorValue]] instead. |
To lower skills, or to raise skills without having them affect leveling, use Player.[[SetActorValue]] instead. |
||
'''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: Under some circumstances, using ModPCSkill will cause skill advancement to take a very long time, if you were close to a skill raise when the function was called.''' |
|||
==See also== |
==See also== |
||
Revision as of 17:45, 3 April 2006
Syntax:
ModPCSkill SkillName amount
Example:
ModPCSkill Block 1
ModPCSkill increases SkillName by amount. Make sure the number you use is a positive number. The increase counts toward leveling just like normal "earned" skill increases.
To lower skills, or to raise skills without having them affect leveling, use Player.SetActorValue instead.
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