Difference between revisions of "SetNthEffectMagnitude - Potion"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Notanon
imported>Notanon
Line 15: Line 15:


== Set Value ==
== Set Value ==
Sets the magnitude of the Nth effect attached to this enchantment, ingredient, potion, or spell.
Sets the magnitude of the Nth effect attached to this potion.


== Examples ==
== Examples ==
<source lang="papyrus">
<source lang="papyrus">
float magnitude = enchantment.SetNthEffectMagnitude(0)
float magnitude = potion.SetNthEffectMagnitude(0)
Debug.Trace("Enchantments first effect has been set to a magnitude of " + magnitude)
Debug.Trace("Potions first effect has been set to a magnitude of " + magnitude)
</source>
</source>


== See Also ==
== See Also ==
*[[Potion Script]]
*[[Potion Script]]

Revision as of 01:15, 9 June 2015

SKSE Member of: Potion Script

Sets the magnitude of the Nth effect attached to this potion. (This function requires SKSE)

Syntax

float Function GetNthEffectMagnitude(int n) native

Parameters

  • n: The index of which effect magnitude will be set.

Set Value

Sets the magnitude of the Nth effect attached to this potion.

Examples

float magnitude = potion.SetNthEffectMagnitude(0)
Debug.Trace("Potions first effect has been set to a magnitude of " + magnitude)

See Also