a.greene Posted October 26 Posted October 26 I'm trying to edit RACETHAC.2DA to give dwarves a +1 bonus to axes and war hammers. I'm trying to edit column 3 of row 7 and 12... COPY_EXISTING ~RACETHAC.2DA~ ~override~ SET_2DA_ENTRY 7 3 9 ~1~ SET_2DA_ENTRY 12 3 9 ~1~ The above code doesn't work but the below works, and I don't understand why? The row counts seem strange? COPY_EXISTING ~RACETHAC.2DA~ ~override~ SET_2DA_ENTRY 3 3 9 ~1~ SET_2DA_ENTRY 8 3 9 ~1~ Any assistance would be appreciated... Cheers, a. Quote
argent77 Posted October 26 Posted October 26 The required column count parameter defines which rows are effectively visible to SET_2DA_ENTRY. Setting it to 9 removes the signature, default value and table header rows, which means row 0 points to the first effective table row (BASTARDSWORD in the vanilla game table). That's why rows 3 and 8 point to AXE and WARHAMMER definitions respectively. If you had specified a required column count of 1 then SET_2DA_ENTRY would have considered every row in the file. AXE and WARHAMMER would then be found in rows 6 and 11 respectively. Quote
a.greene Posted October 27 Author Posted October 27 @argent77 Thank you, would there be a better or cleaner way to write this? Quote
argent77 Posted October 27 Posted October 27 To be on the safe side I'd suggest to check the stat value in the first column (column 0) and update the bonus only if it matches any of the requested proficiencies. Quote
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.