Jump to content

[LE] Should i use DispelSpell or RemoveSpell function?


Recommended Posts

My mod has some spells added to the player in the beginning of the function. Some of these spells are Ability-type (Constant Effect cast type) while some of them are Spell-type (Fire and Forget cast type, has duration). In the end of the function, i'd like to stop and remove them from affecting the player. Should i use DispelSpell or RemoveSpell?

 

For the time being, i'm using RemoveSpell to remove the Ability-type spells while using DispelSpell to stop the Spell-type spells. Does this enough to clean the player from these spells?

Link to comment
Share on other sites

Yes, that's the way it should be done.

 

Using AddSpell with abilities makes the spell affect the player.

Using AddSpell with normal spells, means the spell is added to the players spell list, and they can use the spell by casting it themselves.

 

Using RemoveSpell on abilities means the spell no longer affects the player.

Using RemoveSpell on normal spells, means the spell is removed from the players spell list.

Link to comment
Share on other sites

Yes, that's the way it should be done.

 

Using AddSpell with abilities makes the spell affect the player.

Using AddSpell with normal spells, means the spell is added to the players spell list, and they can use the spell by casting it themselves.

 

Using RemoveSpell on abilities means the spell no longer affects the player.

Using RemoveSpell on normal spells, means the spell is removed from the players spell list.

Thanks for the answer :)

Link to comment
Share on other sites

  • Recently Browsing   0 members

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