Jump to content
Sign in to follow this  
CamDawg

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

Share this post


Link to post

I don't know if you can get this item in-game; if so, there's a really funky text string that "your friend has been cursed with blah" that should be changed (or just deleted).

Share this post


Link to post

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.

Share this post


Link to post
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.

Sign in to follow this  

×
×
  • Create New...