- Out-of-battle effects of items and spells: There was some discussion in the thread for the editor that mentioned that these kinds of effects appear to be triggering map events of some kind. It would be great to know what spells are triggering what events, and even better would if it would be possible to edit which spells and items trigger which events.
Finally found this! I've been looking for several weeks off and on but it seems my work has paid off. You should now be able to change what each out-of-battle Spell and Item does!
This one was quite tricky to find. I started with a breakpoint on the secondary item pointer as I had with the Summon Items on the Magazine and sure enough I came across another SBC command. Ordinarily when subtraction are used in FFIV it's used to put things in an index. The first SBC I found was at 0x1A702 - Sure enough when I changed it the Event of the Magazine would change, but the changes were sporadic and there was no rhyme or reason. I couldn't fathom why this was. I put another breakpoint, I believe on the SBC at 0x1A702 to see where this was taking us to, and found another SBC down the line. This time it was an E1 at 0x01A854. This had rhyme and reason. I changed that to E2 and suddenly the Exit Item was now a Warp Item. This is because Because E5-E2=3 E5-E1=04. So I wrote down a list and came across a strange truth.
The game looks at an index from 00-07 in order to activate specific events. I quickly recorded the eight events, then looked closer in the data and saw what I was subtracting was actually being stored somewhere and with that information I came across a "Secondary Event Identifier" at 7E1A03 - This is where the subtracted item was being stored and sure enough it matched up with my list.
I set a breakpoint of Write on that, expecting to finally find the answer, but each attempt ended up in disappointment and loops. Then absent-mindedly today when I was tracing its data I accidentally set the breakpoint to Read or Execute and I found all of the information I need and where this sequence of 00-07 grabs its information. Here are the RAM values...
8260 - 03
8264 - 87 (Event Number corrsponding to Warp)
8269 - 04
826D - 86 (Event Number corresponding to Exit)
8272 - 05
8276 - FB (Event Number corresponding to Sight)
827B - 06
827F - 01 (?? Siren ??)
8286 - DB (Event Number corresponding to Magazine)
Here are the ROM values. (Still missing the Tent/Cabin oddly enough, even though they should have been included with the numbers, Siren might be something completely different.)
0x464 - Warp
0x46D - Exit (Includes Item and Spell)
0x476 - Sight (Includes Item and Spell)
0x486 - Magazine
0x1B97 - Tent?
It's not perfect and it's still a bit messy (I have no idea where Cabins and Sirens are, for instance) nor does it allow you to choose which items can use which event or spell for that matter. But it's a start, I guess)
I'm honestly not sure what the point of this immediate information is as, if you really wanted to, you could just modify their base event to what you wanted, but hopefully this information will serve purpose down the line.