Difference between revisions of "SetNthEffectTraitNumeric"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Jazzisparis
imported>Jazzisparis
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Function
{{Function
  |origin = JIP
  |origin = JIP
  |summary = Sets the value of a numeric trait (determined by <i>traitID</i>) of the Nth effect of an ingestible/object effect/actor effect.
  |summary = Sets the value of a numeric trait (determined by <i>traitID</i>) of the Nth effect-entry of the specified ingestible/object effect/actor effect.
  |name = SetNthEffectTraitNumeric
  |name = SetNthEffectTraitNumeric
  |returnType = traitValue:int
  |returnType = traitValue:int
Line 14: Line 14:
   |Name = traitID
   |Name = traitID
   |Type = int
   |Type = int
   |Value = 0-3
   |Value = 0-2
   }}{{FunctionArgument
   }}{{FunctionArgument
   |Name = newValue
   |Name = newValue
Line 22: Line 22:
<pre>0&#09;Magnitude
<pre>0&#09;Magnitude
1&#09;Area
1&#09;Area
2&#09;Duration (Seconds)
2&#09;Duration (Seconds)</pre>
3&#09;Range (0 - Self, 1 - Touch, 2 - Target)</pre>
  |example = SetNthEffectTraitNumeric Stimpak 0 2 45
  |example = SetNthEffectTraitNumeric Stimpak 0 2 45
Will set the <i>Duration</i> of the effect at index 0 of <i>Stimpak</i> to 45.
Will set the <i>Duration</i> of the effect-entry at index 0 of <i>Stimpak</i> to 45.
}}
}}
==See Also==
==See Also==
Line 31: Line 30:
*[[GetNumEffects]]
*[[GetNumEffects]]
*[[GetNthEffectBase]]
*[[GetNthEffectBase]]
*[[SetNthEffectBase]]
[[Category:Functions_(JIP)]]
[[Category:Functions_(JIP)]]
[[Category:Effect Functions (JIP)]]
[[Category:Effect Functions (JIP)]]

Latest revision as of 17:15, 30 September 2015

< [[::Category:Functions|Category:Functions]]

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