Description
Wiki Description
Modifies the specified misc stat by the given amount.
Documentation Comment
Modifies the specified MiscStat by the given amount.
Caveats
CK Wiki - Notes
IncrementStat can be used to modify any misc stat that the game tracks. However, its main use is to increment stats that only the designers have knowledge of, i.e. that have no clear representation in the codebase. Those stats are listed below and calls to IncrementStat need to be included in any scripts would alter them:
- Standing Stones Found
- Horses Owned
- Houses Owned
- Stores Invested In
- Persuasions
- Bribes
- Intimidations
- Necks Bitten
- Vampirism Cures
- Werewolf Transformations
- Questlines Completed
- Brawls Won
- Wings Plucked
- Nirnroots Found
- Side Quests Completed
Parameters
stringasStatName
CK Wiki Description
The name of the MiscStat
intaiModAmount=1
CK Wiki Description
How much to alter the stat by
- Default:1
Examples
; Increment the "Houses Owned" stat by 1
Game.IncrementStat("Houses Owned"); Increment the "Standing Stones Found" stat by 3
Game.IncrementStat("Standing Stones Found", 3)Auto-Generated Example
string myString__asStatName
int myInt__aiModAmount
Game.IncrementStat(myString__asStatName, myInt__aiModAmount)