Jump to content

[LE] Problem with magic effects and perks


SkebMick

Recommended Posts

I have a bit of a problem with a mod I am currently making. Basically, it adds the Silence spell from Morrowind and Oblivion, which prevents the target from spellcasting. It is part of the Illusion school, and therefore I want it to be affected by the Master of the Mind perk.

 

I have the spell set up EXACTLY like how the Fear spell is set up. 2 magic effects with different conditions - one is applied if the target isn't an undead, daedra or Dwemer, and the other is applied if the player has the Master of the Mind perk and the target is an undead, daedra or Dwemer.

 

The problem lies in a damn debug notification. If I don't have the Master of the Mind perk and cast Silence on a skeleton, they will successfully resist the spell. But if I do have the Master of the Mind perk and cast Silence on a skeleton, the magic effect that requires the perk will successfully apply, but "Skeleton resisted Silence" will still appear on the top left because the non-perk magic effect isn't being dispelled or overridden. What's really annoying me is that this doesn't happen with the Fear spell and I have copied it exactly.

 

The only thing I can think of is making a script that basically does this:

 

"If X debug notification tries to appear, hide it"

 

But there doesn't seem to be any function or syntax to allow that. I'm stuck. Any ideas?

 

 

 

EDIT : Fixed. Turns out it was to do with the ordering of the spell's magic effect list. The spell has 4 magic effects in total and the perk magic effect was the last one on the list. Making it the 2nd somehow fixed the issue. Strange.

Edited by SkebMick
Link to comment
Share on other sites

  • Recently Browsing   0 members

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