Difference between revisions of "GetNthEffectTraitNumeric"
Jump to navigation
Jump to search
imported>Jazzisparis |
imported>Jazzisparis |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
|origin = JIP | |origin = JIP | ||
|summary = Returns the value of a numeric trait (determined by <i>traitID</i>) of the Nth effect of | |summary = Returns 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 = GetNthEffectTraitNumeric | |name = GetNthEffectTraitNumeric | ||
|returnType = traitValue:int | |returnType = traitValue:int | ||
Line 22: | Line 22: | ||
3	Range (0 - Self, 1 - Touch, 2 - Target)</pre> | 3	Range (0 - Self, 1 - Touch, 2 - Target)</pre> | ||
|example = GetNthEffectTraitNumeric Stimpak 0 2 | |example = GetNthEffectTraitNumeric Stimpak 0 2 | ||
Will return the <i>Duration</i> of the effect at index 0 of <i>Stimpak</i>. | Will return the <i>Duration</i> of the effect-entry at index 0 of <i>Stimpak</i>. | ||
}} | }} | ||
==See Also== | ==See Also== |
Latest revision as of 17:14, 30 September 2015
< [[::Category:Functions|Category:Functions]]
A function added by the JIP NVSE Plugin.
Description
Returns the value of a numeric trait (determined by traitID) of the Nth effect-entry of the specified ingestible/object effect/actor effect.
Syntax
(traitValue:int) GetNthEffectTraitNumeric effectForm:ref effectIndex:int traitID:int{0-3}
Effect Numeric Trait IDs
0 Magnitude 1 Area 2 Duration (Seconds) 3 Range (0 - Self, 1 - Touch, 2 - Target)
Example
GetNthEffectTraitNumeric Stimpak 0 2
Will return the Duration of the effect-entry at index 0 of Stimpak.