Caedwyr Posted August 8, 2020 Posted August 8, 2020 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? Quote
lynx Posted August 8, 2020 Posted August 8, 2020 The first one, I doubt it. The other one can be done with scripting via Killed. Quote
CamDawg Posted August 8, 2020 Posted August 8, 2020 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. Quote
temnix Posted August 9, 2020 Posted August 9, 2020 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. Quote
Recommended Posts
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.