Jump to content

Applying spell or effect on miss or target death


Caedwyr

Recommended Posts

Is it possible to apply a spell or effect on a melee or ranged miss, in a similar manner to how opcode #248 (0xF8) Item: Set Melee Effect is used for applying a spell or effect on hit?  I found something for critical misses (#361 (0x169) Cast spell on critical miss), but couldn't find anything for a regular miss.

Similarly, is there any way to automatically cast a spell or effect when a character kills a target (an "on-kill") effect?

Link to comment
6 hours ago, Caedwyr said:

Similarly, is there any way to automatically cast a spell or effect when a character kills a target (an "on-kill") effect?

As lynx says, this can be scripted.

On EEs the conditions for op 232 have been expanded so you can do it directly. Dorn's sword Rancor (sw2hd1) gives him a THAC0 bonus when he kills someone.

Link to comment

I will add this: in theory, it may be possible to simulate on-miss effects by adding Self-targeted spells and Original caster-targeted spells to all attacks. This second spell would only trigger on hit and block the first spell. The trick would be to get durations right. The Self spell would need to be made Delayed/Permanent at 0, which is always slower than Instant/Permanent, but this may still not be enough to get the second sell in ahead of the first, especially with ranged attacks. There it would really be a headache, if doable at all.

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...