Jump to content

Cursed Scroll of Ailment


Recommended Posts

Could be used to target others.

 

// Cursed Scroll Of Ailment could be targeted at other folks
COPY_EXISTING ~scrl17.itm~ ~override~
 READ_LONG  0x64 "abil_off"
 READ_SHORT 0x68 "abil_num"
 READ_LONG  0x6a "fx_off"
 READ_SHORT 0x70 "fx_num"
 PATCH_IF ("%abil_num%" > 0) BEGIN // if abilities present, grabs last effect from last ability
   READ_SHORT ("%abil_off%" + 0x1e + ("%abil_num%" * 0x38)) "last_fx_num"
   READ_SHORT ("%abil_off%" + 0x20 + ("%abil_num%" * 0x38)) "last_fx_idx"
   SET "fx_num" = ("%last_fx_num%" + %"last_fx_idx%")
 END
 WHILE ("%abil_num%" > 0) BEGIN // all abilities set to target caster
   SET "abil_num" = ("%abil_num%" - 1)
   WRITE_BYTE ("%abil_off%" + 0x0c + ("%abil_num%" * 0x38)) 5 // target caster
 END
 WHILE ("%fx_num%" > 0) BEGIN
   SET "fx_num" = ("%fx_num%" - 1)
   WRITE_BYTE ("%fx_off%" + 0x02 + ("%fx_num%" * 0x30)) 1 // target caster
 END
 BUT_ONLY_IF_IT_CHANGES

Link to comment

Ah, tracked this down--this is a BG item that's sold at Lucky Aello's (he sells a fine array of cursed scrolls). Looking closer at the item, I think the targeting is correct. Three effects are targeted at Preset Target--Kill, Play Sound, and a Display String effect with the string "Your friend has been cursed with death.", all of which are set with a Delay/Permanent timing mode on a 4 second delay. All of the other effects are instantaneous and targeted at the caster, including a "You have been cursed with Poison." string (which matches the poison effects you get).

 

I'm taking this off the fix list as this behavior appears intended.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...