grodrigues Posted December 23, 2019 Share Posted December 23, 2019 (edited) The following code: COPY - ~spell_tweaks/components/desc_fixes/2da/spelldesc.2da~ ~override~ READ_2DA_ENTRIES_NOW rows 3 PATCH_PRINT "Number of rows: %rows%." READ_2DA_ENTRY_FORMER rows 1 1 spellname PATCH_PRINT "Spell name: %spellname%." READ_2DA_ENTRY_FORMER rows 1 2 spelldesc PATCH_PRINT "Description: %spelldesc%." READ_2DA_ENTRY_FORMER rows 1 3 modify PATCH_PRINT "Modify? %modify%." Prints correctly that the number of rows is 1 but then barfs on the first READ_2DA_ENTRY_FORMER. Why oh why? Test 2da file attached. spelldesc.2da Edited December 23, 2019 by grodrigues Typos Quote Link to comment
kjeron Posted December 23, 2019 Share Posted December 23, 2019 First row/column starts at '0', not '1'. Quote Link to comment
grodrigues Posted December 23, 2019 Author Share Posted December 23, 2019 22 minutes ago, kjeron said: First row/column starts at '0', not '1'. Thanks. I was either misled, or misread, the docs because I got the impression that the array was 1-indexed. Quote Link to comment
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.