Equipment Check Event Command ----------------------------- author: madsiur version: 1.1 released: 04/28/2016 Apply to FF3us 1.0 Files ----- equipcheckC0.asm: For implementation in bank $C0 equipcheckEE.asm: For implementation in bank $EE (or the bank of your choice) Apply with xkas 0.06 Command example: xkas equipcheckEE.asm romname.smc Space used ---------- Bank $C0 implementation: 193 bytes (bank $C0) Bank $EE implementation: 7 bytes (bank $C0), 189 bytes (bank $EE) Bank $C2 and $EE implementations use by default respectively C2/6469 and $EE/AF01 as free space. Change the org offset (line 12) in the ASM file to move the code. Note that the 7 bytes of $EE implementation in bank $C0 should only be moved within bank $C0. Description ----------- This is a hack aimed for those who do event scripting. This event command ($66) allows to check equipment on party members. There are 5 parameters to the command: Param A: 0x00-0x0F: Check specific character (must be in party otherwise condition fail). 0x10: Check if at least 1 character meet the condition (has the equipment). 0x20: Check if party leader meet the condition (has the equipment). 0x40: Check if all party members meet the condition (have the equipment). anything else: condition may fail or succeed. Use at your own risk. Param B: Equipment piece to check (0x00 to 0xFF) Param C, D, E: Offset XXXXXX where (CA/0000 + XXXXXX) is offset to jump to if condition is met. Examples -------- 66 0C C9 10 EF 02: If gogo has one hero ring (or more) equipped, jump to CC/EF10 otherwise continue. 66 40 C9 B8 48 00: If all party members have 1 hero ring (or more) equipped, jump to CA/48B8 otherwise continue. If you got question, you can send me a email to themadsiur@gmail.com