AddNewEffect
From GECK
A function added by the JIP NVSE Plugin.
Description
Adds a new effect-entry to the effect list of the specified ingestible/Object Effect/Actor Effect, with the specified parameters.
Syntax
(effectCount:int) AddNewEffect effectForm:ref baseEffect:ref duration:int magnitude:int range:int area:int append:0/1
Effect Range Types
0 Self 1 Touch 2 Target
Example
AddNewEffect EnchReconArmor IncreaseCharisma 0 3 0 0
AddNewEffect RadAway IncreaseRadiationResistance 240 25 0 0
Notes
- range and area are optional, and are defaulted to 0.
- append (7th argument) is optional. If non-zero, the new effect will be appended at the end of the effects list. Otherwise, it will be inserted at the top of the list.
- If the effect-entry was successfully added, the function will return the new effect-count, and -1 otherwise.