NiGHTMARE Posted September 5, 2005 Share Posted September 5, 2005 I'm trying to create three versions of original files in the override, one set with the normal file name, one set with NM appended to the beginning, and another with NM appended to the end. Obviously I could just do COPY_EXISTING for each of the files I want (all bastard swords), but I'm hoping there's a more efficient, other-mod-compatible method. I've come up with the following (based on G3 Tweaks code), but I'm unable to test it right now, so I'd appreciate input from a WeiDu guru . Will it work, and/or is there a more efficient method? COPY_EXISTING_REGEXP GLOB ~.+\.itm$~ ~override~ // PATCH_IF (SOURCE_SIZE > 0x71) THEN BEGIN // protects against invalid files READ_ASCII 0x22 "anim" (2) READ_BYTE 0x31 "prof" PATCH_IF ("%prof%" = 89 AND (("%anim%" STRING_COMPARE_CASE "s1" = 0))) BEGIN // If item is a bastard sword COPY_EXISTING ~%SOURCE_FILE%~ ~NM%SOURE_FILE%/OVERRIDE~ COPY_EXISTING ~%SOURCE_FILE%~ ~%SOURE_FILE%NM/OVERRIDE~ // Insert more code here END END BUT_ONLY_IF_IT_CHANGES Link to comment
This topic is now archived and is closed to further replies.