SetNthEffectMagnitude - Spell
Revision as of 01:11, 7 January 2015 by imported>DavidJCobb (→Notes: Clarified last edit. Hopefully.)
SKSE Member of: Ingredient Script, Potion Script, Scroll Script, Spell Script
Sets the magnitude of the specified effect.
Syntax
Function SetNthEffectMagnitude(int index, float value) native
Parameters
- index: The index of the Magic Effect to change.
- value: The Magnitude to set the Magic Effect to.
Notes
- Changes made by this function will not persist across game reloads. Using a maintenance function is one way to maintain them.
- If you use SetNthEffectMagnitude to change the magnitude(s) of an ability spell that has already been added to an actor, the actor will not receive those changes. This is because of how magic effects work: when the actor first received the ability, new ActiveMagicEffect instances were created on that actor based on data copied from the spell's defined magic effects. To update those ActiveMagicEffects, you have to replace them: you must remove and re-add the ability spell to the actor.