Difference between revisions of "AddPerk"
Jump to navigation
Jump to search
imported>DewiMorgan m (→Notes: +note it's not in the TES4 wiki; debolding titles) |
imported>DewiMorgan (→Notes: copying warning note from category perk) |
||
Line 13: | Line 13: | ||
==Notes== | ==Notes== | ||
*Note that games saved with mods installed (and given to the Player) that add new Perks may crash the game when those save games are loaded without the necessary mod(s) installed. If you know the FormId of the Perk, you can remove it from yourself using the console. Modders are strongly recommended to implement some in-game means for players to remove perks from their character should they wish to uninstall, as finding the FormIDs may be too complex a task for some. | |||
*This function is new in the GECK, and was not available in the TES4 Construction Set. | *This function is new in the GECK, and was not available in the TES4 Construction Set. | ||
Revision as of 17:17, 15 April 2009
< [[::Category:Functions|Category:Functions]]
A function included in the GECK version 1.1.0.36.
Description
Increments the rank of the specified perk on an Actor. If the specified Actor doesn't already have the perk, then it will be added with rank 1.
Syntax
Actor.AddPerk PerkID:ref
Example
BuddyRef.AddPerk LittleSlugger
Buddy now has the benefits of the little slugger perk.
Notes
- Note that games saved with mods installed (and given to the Player) that add new Perks may crash the game when those save games are loaded without the necessary mod(s) installed. If you know the FormId of the Perk, you can remove it from yourself using the console. Modders are strongly recommended to implement some in-game means for players to remove perks from their character should they wish to uninstall, as finding the FormIDs may be too complex a task for some.
- This function is new in the GECK, and was not available in the TES4 Construction Set.