Background for Skyrim SE
Member of the Armor script
voidfunctionModArmorRating(intmodBy)Native

Description

Wiki Description

Modifies the armor rating for this armor by the specified amount. (This function requires SKSE)


Caveats


Parameters

intmodBy

CK Wiki Description

The value to add to the armor's current armor rating. If the resulting value is negative, leads to semi-random and large values for armor rating.


Examples

; Increase the armor rating of the ArmorIronCuirass by 10
(Game.GetForm(0x00012E49) as Armor).ModArmorRating(10)
; Decrease the armor rating of Bob's shield by 100
Bob.GetEquippedShield().ModAR(-100)

Auto-Generated Example

int myInt__modBy

myArmor__toCallFunctionOn.ModArmorRating(myInt__modBy)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.