AI editing is currently a pain. I'm working on an AI editor, but I need to finish some changes with my
AI code. I know there's a bug with confuse, but that may be the only one at the moment.
AI documentationAll conditions are 4 bytes in length, but some are just padded to that length. Actions within a condition can cycle, or be randomized.
Sample AI:
Default: (00 00 00 00)
SwitchStates (FE)
Attack Random PC with Attack 1 (01 00 05 00)
Tech Fire on farthest PC (02 ?? 07 00 00 00) (Too lazy to look up an actual fire index)
SwitchStates (FE)
SectionEnd (FF)
Default: (00 00 00 00)
SwitchStates (FE)
Wander (00 00 06 04) (Not very clear on this one, but it's a common enemy reaction pattern).
SwitchStates (FE)
SectionEnd (FF)
Without the AI patch, AI must be in the 0x0C0000-0x0CFFFF range. My AI patch will allow data to be placed anywhere in the ROM.