Jump to content

Illithid control circlets

Recommended Posts

Quoth the Baldurdash:


Illithid Control Circlets Fix shortens the duration of the Charm effect of these circlets from tens of thousands of game hours to six, enough time to complete the quests they are required for, but not enough to cause the bugs where regaining control of a party member with them would cause them to never be able to rejoin the party again if they left without having died and been raised, which caused insoluble problems in rescuing vampirized romances, for example.


// duration for illithid control circlet charm effect
COPY_EXISTING ~misc9x.itm~ ~override~
 READ_LONG   0x64 "abil_off"
 READ_SHORT  0x68 "abil_num"
 READ_LONG   0x6a "fx_off"
 WHILE ("%abil_num%" > 0) BEGIN // looks for magical ability header
   SET "abil_num" = ("%abil_num%" - 1)
   READ_BYTE   ("%abil_off%" +        ("%abil_num%" * 0x38)) "type"
   PATCH_IF ("%type%" = 3) BEGIN // magical ability check
     READ_SHORT  ("%abil_off%" + 0x1e + ("%abil_num%" * 0x38)) "abil_fx_num"
     READ_SHORT  ("%abil_off%" + 0x20 + ("%abil_num%" * 0x38)) "abil_fx_idx"
     WHILE ("%abil_fx_num%" > 0) BEGIN // searches through fx for THAC0 bonus
       SET "abil_fx_num" = ("%abil_fx_num%" - 1)
       READ_SHORT ("%fx_off%" +        (("%abil_fx_idx%" + "%abil_fx_num%") * 0x30)) "type1"
       PATCH_IF ("%type1%" = 5) BEGIN // charm
         WRITE_LONG ("%fx_off%" + 0x0e + (("%abil_fx_idx%" + "%abil_fx_num%") * 0x30)) 1800

Link to comment


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

  • Create New...