DamageActorValueAlt

From GECK
(Redirected from DamageAVAlt)
Jump to: navigation, search


Function Deprecated
This function should no longer be used. This page has been left for historical documentation purposes only.

xNVSE allows using Actor Value codes without the need for alternative functions.
See Actor Value Functions



A function added by the JohnnyGuitar NVSE Plugin.

Description

DamageActorValueAlt alters the damage modifier of a given actor value using a numeric Actor Value code instead of a stat name. The damage modifier is always a negative number, or zero if there is no damage to the actor value. DamageActorValueAlt will decrease the modifier by the given amount.

Syntax

[help]
[ActorRefID].DamageActorValueAlt ActorValueCode:int Value:int|float 

Or:

[ActorRefID].DamageAVAlt ActorValueCode:int Value:int|float

Example

BuddyRef.DamageActorValueAlt 16 5

For example, suppose you have an NPC with 10 points of health as the current reference. If Buddy has 10 points of health, then this would subtract 5 from the damage modifier and now GetActorValue health returns 5.

See Also