Jump to content


Photo

My code does nothing: patching bows in BGT


  • Please log in to reply
1 reply to this topic

#1 Andrea C.

Andrea C.
  • Modder
  • 458 posts

Posted 24 April 2021 - 01:03 AM

Hello.

 

I made a mod component to change bows and arrows in BGT to match their stats from BG1.

 

However, my code appears to be doing nothing at all.


What am I doing wrong?

 

Examples:

 

Acid Arrows

 

ACTION_IF FILE_EXISTS_IN_GAME ~arrow04.itm~ BEGIN
    COPY_EXISTING ~arrow04.itm~ ~override~
      SET EFF2_dice_thrown = 2
      SET EFF2_dice_sides = 6
  END

 

Composite Longbow +1

 

ACTION_IF FILE_EXISTS_IN_GAME ~bow02.itm~ BEGIN
    COPY_EXISTING ~bow02.itm~ ~override~
      SET damage_bonus = 3
      SET ITM_HEAD_thac0_bonus = 2
  END


 



#2 Andrea C.

Andrea C.
  • Modder
  • 458 posts

Posted 24 April 2021 - 02:03 AM

I figured this out.

 

In case anybody looking for help stumbles upon this thread, this is what the code for the above should be:

 

Acid Arrows

 

COPY_EXISTING ~arow04.itm~ ~override~
      LPF ALTER_EFFECT INT_VAR dicenumber = 2 dicesize = 6 END
    BUT_ONLY


Composite Longbow +1

 

COPY_EXISTING ~bow02.itm~ ~override~
      LPF ALTER_ITEM_HEADER INT_VAR thac0_bonus = 2 damage_bonus = 3 END
    BUT_ONLY