Jump to content


Immunity to Kill() action?

2 replies to this topic

#1 argent77

  • Members
  • 254 posts
  • Gender:Male

Posted 10 February 2012 - 03:18 PM

I'm using a modified MinHP1 item in combination with a scripted death for my creature. But now I've encountered a situation which uses the Kill("creature") action and I have no idea how to handle it (it's the demogorgon sacrifice in the underdark). The only way to prevent it for now is to modify the demogorgon trigger script and exclude my creature, but I'd like to avoid hacks like that.

Is there a way to make a creature immune to this script action?

#2 devSin

  • Fixpackers
  • 3017 posts
  • Gender:Male

Posted 11 February 2012 - 07:34 AM

I don't think so. You could try immunity to effect: death, since death code often goes through there IIRC, but Kill() may ignore it too (it actually used to not work through minimum HP effects, but they changed it in ToB to kill you anyway).

#3 argent77

  • Members
  • 254 posts
  • Gender:Male

Posted 11 February 2012 - 08:03 AM

I've tested protection from every possible death opcode I could find, but unfortunately, Kill() isn't covered by any of them.

As some kind of work-around I'm now using the Die() trigger to resurrect my creature immediately after his death. This doesn't prevent his death animation to play, but it will not break my scripts. A quick search in NI listed only three potential Kill() actions which could affect my creature, so this will do at the moment.

Edited by argent77, 11 February 2012 - 08:04 AM.

Reply to this topic


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users