VencGanence Posted March 22, 2020 Share Posted March 22, 2020 Is it possible to dynamically add script effects to enchantments like regular effects can? As in after RemoveAllEffectItems EnchI 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 More sharing options...
VencGanence Posted March 23, 2020 Author Share Posted March 23, 2020 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 EnchCreate EnchBaseRemoveAllEffectItems EnchCopyAllEffectItems EnchBase Ench The other is to make my own RemoveAllEffectItems function that ignores scripted effects. Link to comment Share on other sites More sharing options...
Recommended Posts