Difference between revisions of "ModArmorRating - Armor"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Fg109
(Created page for ModArmorRating)
 
imported>Fg109
m
Line 4: Line 4:
'''SKSE Member of:''' [[Armor Script]]
'''SKSE Member of:''' [[Armor Script]]


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


== Syntax ==
== Syntax ==

Revision as of 11:15, 10 May 2012

SKSE Member of: Armor Script

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

Syntax

Function ModArmorRating(int modBy) native
Function ModAR(int modBy)

Parameters

  • modBy: 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.

Return Value

None.

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)

See Also