Hi.
I'm fiddling with the default kits and I've run into a wall trying to apply a stat penalty by patching the abclsmod.2da. When I want to apply a bonus (positive value) it works fine, but I put a "-" in there and weidu throws a tantrum. Here's what I have:
ACTION_IF (FILE_EXISTS_IN_GAME ~ABCLSMOD.2DA~) BEGIN
COPY_EXISTING ~ABCLSMOD.2DA~ ~override~
COUNT_2DA_COLS cols
READ_2DA_ENTRIES_NOW rows cols
FOR (row = 1; row < rows; ++row) BEGIN
READ_2DA_ENTRY_FORMER rows row 0 ~kit_name~
PATCH_IF ~%kit_name%~ STRING_EQUAL_CASE ~LATHANDER~ BEGIN
SET patch_row = %row%
END
END
SET_2DA_ENTRY %patch_row% 5 cols -2
BUT_ONLY
END
How can I make this work?