Final Fantasy IV Research & Development / Re: Spare NPC's
« on: December 19, 2014, 05:40:47 PM »Random events should be completely doable, too.
The problem with AI is that I know very little about how the game interprets the AI data and decides what code to run as a result. I've seen where the AI scripts are loaded into RAM, though, so "watching" it happen shouldn't be too difficult. But the AI system is so convoluted, actually making sense of it all would likely take a while.
I tried to follow a monster's counter attack script in action once to see if PC counter attacks would be possible and it was kind of a nightmare.
Random Events could be rather interesting, it is one of the main things Ancient Cave is lacking, and this seems like the most ideal way to set up a random party that you could build as you go on (and this is where the Shadow Party Hack could really come in handy).
I am still amazed that PinkPuff managed to make a readable format for the AI scripts, they are parsed and pieced into so many different forms (Index, Script, Conditionals, etc) it's ridiculous.
Before I set up my battle against the PCs (Cecil, Kain, Rosa) I spent a lot of time studying the monster AI and comparing the game at play to the code and trying to just get a better handle on it. "Nightmare" was a nice way to put it chillyfeez.I ended up settling on some simple routines that I stole from other enemies and then repurposed. Like getting around the jump problem by having Kain jump only if he was the only one alive. Rosa I had cast Life 2 if someone went down - stuff like that. I can't even remember if Rosa actually worked or not, maybe just via "if solo" - but I'll have a look. I found (I think) the folder with the file in it - but naturally I was too excited that day to label anything properly...oops...
How you did any of that in basic hex is far too much for me to consider. It's such a mess in plain hex. Thankfully when everything is parsed it's not too difficult to do what you will with it if you have the AI Index Reference chart in front of you, of course.
I ended up settling on some simple routines that I stole from other enemies and then repurposed. Like getting around the jump problem by having Kain jump only if he was the only one alive. Rosa I had cast Life 2 if someone went down - stuff like that. I can't even remember if Rosa actually worked or not, maybe just via "if solo" - but I'll have a look. I found (I think) the folder with the file in it - but naturally I was too excited that day to label anything properly...oops... 

- I just noticed I didn't even upload the right pic! It was one line too late 
