Jump to content

Scripted spell not firing


Skipper2100

Recommended Posts

So I have a script that hits a point where it's supposed to disintegrate a bloke for reasons. It basically goes like this:

If IsKillAllowed

Disintegrate.Cast(Target)

Else

Other stuff

 

I've made a "Disintegrate" spell, which is a duplicate of the spell used for the Disintegration perk, except Self targeted. Now upon testing it, reaching that point in the script, nothing happens. The spell works fine when I cast it myself, and I have other spells triggered at different points in the script that go off, but this one in particular never fires. I also made a test spell which does nothing except that function, and all that would happen upon casting it is the target actor would go down as if essential for a couple seconds, and then get back up as if nothing had happened.

 

EDIT: Managed to pull up a save from a while back and try the same thing, and it worked as intended. I would assume this means something has corrupted my current save and made everyone immortal for some reason, even though the actors aren't marked as essential and can be killed through the normal stab-related means, and through Drain Life spells...

 

MORE EDITS: Okay, so it turns out that the script is what's making everyone immortal. Running the script once, and the disintegration works. After that, everyone becomes unkillable. However, using the testing spell, running the same function, doesn't cause the break, and having the script run a simple Target.Kill() instead doesn't either...

 

IGNORE EVERYTHING MORE EDITS: NOW it turns out that some people are just immune to disintegration. I made a custom script that removed all of the immunity lists and whatnot... and still no luck. A random assortment of NPCs, essential or not, somehow are just 'reset', i.e. their health goes back to full, and their AI glitches out for a small bit.

 

Does anyone know why this is, and how to fix it?

Edited by Skipper2100
Link to comment
Share on other sites

  • Recently Browsing   0 members

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