Jump to content

Ice Trolls are losing their coloring upon death


Recommended Posts

A player recently reported this minor cosmetic issue to me thinking it was related to aTweaks. In fact, the Bioware developers themselves tinted the Ice Trolls blue, but they used timing mode 1 instead of 9 which means that the coloring disappears after the creatures are slain. The opcode is mistargeted as well so let's fix that too while we're at it:

 

 

// Prevent Ice Trolls from losing their coloring upon death

COPY_EXISTING ~TROLIC01.CRE~  ~override~ // Ice Troll
		  ~TROLIC02.CRE~  ~override~ // Ice Troll
READ_LONG 0x2c4 "fx_off"
READ_LONG 0x2c8 "fx_num"
FOR (index = 0; index < fx_num; index = index + 1) BEGIN
  READ_LONG  ("%fx_off%" + 0x08 + ("%index%" * 0x108)) "opcode"
  READ_LONG  ("%fx_off%" + 0x0c + ("%index%" * 0x108)) "target"
  READ_LONG  ("%fx_off%" + 0x1c + ("%index%" * 0x108)) "timing"
   PATCH_IF (("%opcode%" = "51") AND ("%target%" = "0")) BEGIN // effect #51: color strong/dark by rgb
	 WRITE_LONG ("%fx_off%" + 0x0c + ("%index%" * 0x108)) "1" // change the target to 1 (target: self)
   END
   PATCH_IF (("%opcode%" = "51") AND ("%timing%" = "1")) BEGIN // effect #51: color strong/dark by rgb
	 WRITE_LONG ("%fx_off%" + 0x1c + ("%index%" * 0x108)) "9" // change the timing mode to 9: permanent after death
   END
END	
BUT_ONLY_IF_IT_CHANGES

Link to comment

Archived

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

×
×
  • Create New...