I'm trying to figure out exactly how the game picks the order of different battle formations. I know some about it atm but not enough yet to figure it out.
If anyone happens to know all this already feel free to enlighten me
What I know (in short)
I know that from a hard reset the order of the enemy formations you encounter (in random field battles) will always be the same.
E.g. if you encounter EnemyA, EnemyB, EnemyC, in that order (in three separate battles) you will again if you hard reset the system (turn the PSX power off/on) then load a file and fight in the same area.
If you from a hard reset fight only one battle (against EnemyA), then soft reset and load a file and fight another battle in the same area this battle will be against EnemyB, and if you soft reset again and fight another battle yet again this one will be against EnemyC. In other words, the order is kept/remembered as long as the system isn't powered off.
I know that the RNG-list that is used for deciding when to give you an encounter is also the RNG-list that is used to decide what encounter (battle formation) that will be (and I have a somewhat good idea of how the actuall values in the RING-list are used to decide the formation).
I have located a counter that keeps track of how many battles you have fought since latest hard reset, however its behaviour is somewhat random (it's increased by 1-3 per battle) but if it is reset back to 0 (by unnatural means) you will reset the order (i.e. the next Fight will be against EnemyA, then B then C). What decides how this counter behaves is still unknown to me though.
I'm currently not at my work station so I don't have the memory addresses for all the values involved, as soon as I get back I'll add them to this thread, but until then the above information will have to do.