Final Fantasy IV Research & Development / Re: Chillyfeez's Mods, hacks, research notes, etc.
« on: May 02, 2015, 07:54:51 AM »Why do we have all of these AI scripts wasted on what a monster should do if it's confused? Why not just have them do what player characters do - pick an action and a target at random?
Shouldn't be too hard to do... I've seen where enemy battle scripts are loaded into RAM. It would take a bit of a routine to make the game find the right set of possible commands, but it certainly wouldn't be impossible. From there, do an RNG to pick a byte within the monster's designated script area. Make sure it's less than E8 (otherwise generate a new random number), make sure it's preceded by a byte FB or higher (to be sure it's not the parameter to a targeting byte, or whatever - otherwise, as before, generate a new RN), "flip a coin" to determine ally target or enemy target, RNG to determine target(s) within that group, and... GO!
As far as game mechanics hacks I've done, the difficulty level is mid-range at worst, and the benefits to AI editing and gameplay experience would be fantastic!
I'm back to work today after my week off, but this'll be my next little distraction...
I'll do my best to assure it plays nice with my other hacks (because, you know... me).

