BEGIN ~Extract File Names of Learn Spell items~ COPY_EXISTING_REGEXP GLOB ~^.+\.itm$~ ~override~ PATCH_IF ("%SOURCE_SIZE%" > "0x0") BEGIN READ_LONG 0x64 "abil_off" READ_SHORT 0x68 "abil_num" READ_SHORT 0x1C "type" SET "stack" = 0 FOR (index = 0; index < abil_num ; index = index + 1) BEGIN READ_BYTE ("%abil_off%" + 0x00 + ("%index%" * 0x36)) "effect_type" PATCH_IF ("%effect_type%" == 147) BEGIN PATCH_PRINT ~%SOURCE_FILE%~ END END END BUT_ONLY_IF_IT_CHANGES
I want to extract all spell scroll item names that have learn spell (147),is my method wrong?
Edited by Nirran, 06 April 2018 - 03:47 PM.