Jump to content

[QUESTION] Editing 2DA files


Recommended Posts

Posted

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.

Posted

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.

Posted

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.

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...