Jump to content

Preventing a hostile reaction


temnix

Recommended Posts

I'm looking for a way to prevent NPC from turning hostile when damaged by a friendly. Looking for suggestions. I've used Feeblemind before to temporarily block scripts, but it isn't working with the NPC I'm testing with (Tenya). She turns red as soon as Feeblemind wears off. I need to be able to do a point of damage to people without turning them into enemies. It's possible to use invisible minions for this, because they can be neutral and damage from them doesn't provoke hostility, but it's problematic.

Link to comment

The AttackedBy()/HitBy() positives get stored by the recipients, so you'll probably have no choice but to update their scripts with something like this to dismiss a positive

IF
  AttackedBy() // attacked by friendly
  Global("dont_red","locals",1) // set by your effect
THEN
  RESPONSE #100
    SetGlobal("dont_red","locals",0)
END

Getting a list of scripts might be tedious, though.

Link to comment

I don't think this is practical. I ended up making the creature hurt itself instead - put a bouncing spell chain on it, with the final spell to cast back Self targeted with damage.

Link to comment

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...