SetNthEffectTraitNumeric

From GECK
Jump to: navigation, search


A function added by the JIP NVSE Plugin.

Description

Sets the value of a numeric trait (determined by traitID) of the Nth effect-entry of the specified ingestible/Object Effect/Actor Effect.

Syntax

[help]
(traitValue:int) SetNthEffectTraitNumeric effectForm:ref effectIndex:int traitID:int{0-2} newValue:int

Effect Numeric Trait IDs

0	Magnitude
1	Area
2	Duration (Seconds)

Example

SetNthEffectTraitNumeric Stimpak 0 2 45

Will set the Duration of the effect-entry at index 0 of Stimpak to 45.

See Also