I'm making a sword for my mod, that uses an enchantment. The purpose of this enchantment is to remove the god-like abilites of a certain enemy, so that you can kill him. So far I have created a script (very much like the Maiden's Tears script used against the SI Gatekeeper) that does these things, but I don't seem to be able to add this effect to the enchantment that I have created.
So here's the summary of what I have created so far:
An enemy
A godlike regeneration ability for the enemy
A weapon
An Enchantment (which does not work, cause I cannot apply the script effect on it)
A Script that remove the enemy's godlike ability.
So my first and foremost question would be: Is it even possible to add custom effect scripts to enchantments/spells/potions? And if it is, how do I do it, because at the moment I must be missing something.
Here's script btw:
Spoiler
scn DiNOrichalcEffectScript
;This is the script that is used by DiNOrichalcEnch with the Orichalc Blade
;It's purpose is to take off the special "invincibility" spell abilities of Kathulos
begin ScriptEffectStart
if GetIsID DiNKathulosLich == 1
removeSpell DiNKathMagicResistance
removeSpell DinKathRegenerate
endif
end ;ScriptEffectStart
scn DiNOrichalcEffectScript
;This is the script that is used by DiNOrichalcEnch with the Orichalc Blade
;It's purpose is to take off the special "invincibility" spell abilities of Kathulos
begin ScriptEffectStart
if GetIsID DiNKathulosLich == 1
removeSpell DiNKathMagicResistance
removeSpell DinKathRegenerate
endif
end ;ScriptEffectStart