Hi!
I would like some help from experienced modder. I want to fix some mods and to learn to code in the process, so I can make some of my own.
And I stumbled on iiKeynames mod that makes 2da file from door names, keys and areas. Code looks like this:
INNER_ACTION BEGIN COPY_EXISTING ~iiKeyDoors.2da~ ~override~ APPEND ~iiKeyDoors.2da~ ~%door_name% ii_%key_item% %area_resref%~ // door, item, area END
But problem is that 2 areas in BG2 have space in door name (Door Room, Door Dragons Lair), so later when mod tries to append script to areas:
COPY_EXISTING ~iiKeyDoors.2da~ ~override~ COUNT_2DA_ROWS ~1~ "Tokenrows" FOR (Tokenindex = 1; Tokenindex < Tokenrows; Tokenindex = Tokenindex + 1) BEGIN READ_2DA_ENTRY "%Tokenindex%" 0 3 "door" READ_2DA_ENTRY "%Tokenindex%" 1 3 "variable" READ_2DA_ENTRY "%Tokenindex%" 2 3 "area"
it wrongly detect space in door name as next column.
What to change in this code?
Thanks in advance!
Edited by Mad Mate, 21 September 2014 - 11:23 AM.