Jump to content

Carsomyr - Cumulative Magic Resistance


Guest Symm

Recommended Posts

Yep.

 

If anyone wants to change Carsomyr to add 50% MR without overwriting other stuff, add this somewhere to the tp2 in the core fixes section (this won't interfere with other Carsomyr fixes):

 

// change carsomyr to add 50 MR instead of setting
COPY_EXISTING ~sw2h10.itm~  ~override~ // carsomyr +5
		  ~sw2h19.itm~  ~override~ // carsomyr +6
 READ_LONG   0x6a "fx_off"
 READ_SHORT  0x70 "fx_num"
 FOR (index = 0; index < fx_num; index = index + 1) BEGIN
READ_SHORT ("%fx_off%" +		("%index%" * 0x30)) "opcode"
PATCH_IF ("%opcode%" = 166) BEGIN
  WRITE_LONG  ("%fx_off%" + 0x08 + ("%index%" * 0x30)) 0 // increase/decrease
END
 END
 BUT_ONLY_IF_IT_CHANGES

 

If you want Sim's idea of having Carsomyr add 15% MR, use this:

 

// change carsomyr to add 15 MR instead of setting 50
COPY_EXISTING ~sw2h10.itm~  ~override~ // carsomyr +5
		  ~sw2h19.itm~  ~override~ // carsomyr +6
 READ_LONG   0x6a "fx_off"
 READ_SHORT  0x70 "fx_num"
 FOR (index = 0; index < fx_num; index = index + 1) BEGIN
READ_SHORT ("%fx_off%" +		("%index%" * 0x30)) "opcode"
PATCH_IF ("%opcode%" = 166) BEGIN
  WRITE_LONG  ("%fx_off%" + 0x04 + ("%index%" * 0x30)) 15 // 15% MR
  WRITE_LONG  ("%fx_off%" + 0x08 + ("%index%" * 0x30))  0 // increase/decrease
END
 END
 BUT_ONLY_IF_IT_CHANGES

 

Can someone please tell me what it means to add this to the "tp2 core fixes section"? I want to make Corsomyr add ~25% MR. Thanks.

Link to comment
Can someone please tell me what it means to add this to the "tp2 core fixes section"? I want to make Corsomyr add ~25% MR. Thanks.

If you've extracted the Fixpack, go into the folder "bg2fixpack" and open the file "setup-bg2fixpack.tp2" in a text editor. At roughly line 26940 you'll find a big heading that looks like this:

/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
/////												  \\\\\
///// BETA Core Fixes								  \\\\\
/////												  \\\\\
/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\

Just above that heading, you can paste the Carsomyr code, and when you install the core component of Fixpack, that code will be run. Alternatively, if you've already installed Fixpack (or don't want to install it), there's always this silly thing that I hacked together. Just jump through the hoops to download it, and run it like you do any other mod.

Link to comment

Archived

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

×
×
  • Create New...