Skip to content

Making a spell that exclusively heals undead

I'm trying to make a spell that harms living creatures and heals the undead, but I have not found any opcode that lets me heal a certain creature type - is there a way to do this?

Comments

  • jmerryjmerry Member Posts: 3,881
    edited August 2021
    Doing it in a single action? Probably not. You need to chain things, like raise/resurrection spells do in 2.6. Opcode 326 to target only undead, then a sub-spell with the actual payload.

    For the living-only half of the spell you want, I'd recommend another sub-spell, with an effect to make undead immune to it.
  • kjeronkjeron Member Posts: 2,368
    You can also do it with two EFF files, if the damage/heal is the only thing you want separated (all audio/visual effects are the same for both).
    EFF 1 applies heal
    EFF 2 applies damage.
    Use op177 to apply the first to only Undead. Use op318 to block the second EFF from affecting Undead.
  • jmerryjmerry Member Posts: 3,881
    Or immunity effects could be used on both sides. False Dawn, for example, uses an op324 to block it from affecting non-undead.

    On closer examination, there are really quite a lot of ways to make this work.
Sign In or Register to comment.