This is a hack aimed for those who do event scripting. This new event command ($66) allows to check equipment on party members.
The archive consist of two ASM files, one being the current bank ($C0) implementation and the other one the "external" bank implementation (by default $EE). Choose the implementation that you prefer depending of your free space.
The ASM file should be applied with
http://www.romhacking.net/utilities/269/. Refer to the readme for more details.
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
[email protected]
Final Fantasy III (U) 1.0
Either HEADERED or UNHEADERED
CRC32: A27F1C7A
MD5: E986575B98300F721CE27C180264D890
SHA-1: 4f37e4274ac3b2ea1bedb08aa149d8fc5bb676e7
SHA-256: 0f51b4fca41b7fd509e4b8f9d543151f68efa5e97b08493e4b2a0c06f5d8d5e2