Jump to content

Attaching a Script to a Magic Effect Item via Scripts


Recommended Posts

Is it possible to dynamically add script effects to enchantments like regular effects can?

 

As in after RemoveAllEffectItems Ench

I can do some wizardry to re-add the script effect

 

A Ctrl+F through the list of functions showed a lot of stuff for setting and getting script effect items, but none for adding.

GetNthEffectItemScript	
GetNthEffectItemScriptName	
GetNthEffectItemScriptSchool	
GetNthEffectItemScriptVisualEffect
GetSpellScriptEffectAlwaysApplies
IsNthEffectItemScripted	
IsNthEffectItemScriptHostile
MagicItemHasEffectItemScript
ModNthEffectItemScriptName
ScriptEffectElapsedSeconds
SetNthEffectItemScript
SetNthEffectItemScriptHostile	
SetNthEffectItemScriptName	
SetNthEffectItemScriptNameEX	
SetNthEffectItemScriptSchool	
SetNthEffectItemScriptVisualEffect	
SetNthEffectItemScriptVisualEffectC
SetSpellScriptEffectAlwaysApplies

is what turned up.

Link to comment
Share on other sites

I ended up making 2 methods to accomplish what I wanted, leaving only scripted effects on a dynamically generated enchantment.

 

One is very simple:

 

Create Ench

Create EnchBase

RemoveAllEffectItems Ench

CopyAllEffectItems EnchBase Ench

 

The other is to make my own RemoveAllEffectItems function that ignores scripted effects.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...