Author Topic: Recurring Mystery Ninja Encounter  (Read 2899 times)

Sega Chief

  • *
  • Posts: 4116
  • These guys is sick
    • View Profile
Recurring Mystery Ninja Encounter
« on: 2015-12-06 01:49:25 »
So after testing, I've confirmed something that was worrying me for a while; the Mystery Ninja encounter in NT still loads even after a) Yuffie is recruited into the party, and b) a new 'mini-boss' encounter is used to replace it.

Just to clarify, in NT Yuffie is recruited from Kalm to prevent a soft-lock when fighting a forced three-party Bizarro. But this caused a problem earlier on where the Mystery Ninja battle would still load in forests so I set up a replacement for it where a mini-boss replaces these formations, with field script on the yougan2 field organised to give the player a one-off Materia and some text before pitching them back to the World Map. Problem solved, or so I thought.

I made sure to check anything in battle AI and the field script, but it still loads those encounters afterwards. I would have said it's something to do with the world map script, but that should be doing whatever it's doing as normal; only the enemy IDs used in the battle were changed. I looked over the field scripts again as well; not really turning up anything that could be considered a suspect.

I've also checked through a few different tables where vars and their functions are listed but I've not turned up anything that wouldn't (or rather shouldn't) have been handled by what I've put in. I hate to say it, but I'm at a loss with this one.

Any ideas? Info on all the known conditions and/or when and where these get flipped for the mystery ninja battle would be helpful, including anything about the increasing chance for those battles to be loaded so I can at least start planning out some kind of work-around if I can't sort this out.

Edit: I think I figured it out. Mythril Mines turns on the bit for [3][133] which is turned off when Yuffie is recruited. Seeing as the event was moved to before the Mines for NT, I'm hoping this is the cause. It's tough to confirm it because the battle can be quite rare, but if anyone could let me know if [3][133] is the mystery ninja battle trigger then I'd appreciate it. I'll kick myself if it is, but at least it'll be sorted.
« Last Edit: 2015-12-06 03:23:43 by Sega Chief »