AddNewEffect

From the Fallout3 GECK Wiki
Revision as of 06:10, 14 June 2015 by imported>Jazzisparis (Created page with "{{Function |origin = JIP |summary = Adds a new effect to the effect list of the specified ingestible/object effect/actor effect, with the specified parameters. |name = AddN...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

A function added by the JIP NVSE Plugin.

Description

Adds a new effect to the effect list of the specified ingestible/object effect/actor effect, with the specified parameters.

Syntax

[help]
(effectCount:int) AddNewEffect effectForm:ref baseEffect:ref duration:int magnitude:int range:int area:int

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.
  • If the effect was successfully added, the function will return the new effect-count, and -1 otherwise.
  • When adding an effect to an armor effect or an actor ability, the armor must be re-equipped/the ability must be re-added for the effect to apply.

See Also