Difference between revisions of "GetEffectAreas- Potion"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Notanon
(Created page with "Category:Scripting Category:Papyrus Category:SKSE '''SKSE Member of:''' Potion Script Returns the effects in order of area effected attached to a potion. (Thi...")
 
imported>Palingard
Line 8: Line 8:
== Syntax ==
== Syntax ==
<source lang="papyrus">
<source lang="papyrus">
int Function GetEffectAreas(int n) native
int Function GetEffectAreas() native
</source>
</source>
== Parameters ==
*n: The number of effect areas in order that will be returned.


== Return Value ==
== Return Value ==
Line 19: Line 16:
== Examples ==
== Examples ==
<source lang="papyrus">
<source lang="papyrus">
int duration = potion.GetEffectAreas(1)
int duration = potion.GetEffectAreas()
Debug.Trace("Potion has effect areas in order of " + magnitude)
Debug.Trace("Potion has effect areas in order of " + magnitude)
</source>
</source>

Revision as of 08:39, 23 September 2016

SKSE Member of: Potion Script

Returns the effects in order of area effected attached to a potion. (This function requires SKSE)

Syntax

int Function GetEffectAreas() native

Return Value

Returns the effect areas of the effects attached to this potion in order.

Examples

int duration = potion.GetEffectAreas()
Debug.Trace("Potion has effect areas in order of " + magnitude)

See Also