Hi, I'm currently making a TAS (tool assisted speedrun) of FFVII on the playstation.
I'm trying to make a forumla so I can predict on what frame I will get a critical hit in battle. (imagine going frame by frame in a battle, and you know if you attack on frame 120 it will result in a critical. Well, I need a formula which, when I get to frame 120, will tell me that it will result in a critical hit - and should also alert me of ALL 'critical hit frames' as I come to them)
Can you guys help me with this?
So far I've found the RNG which governs if an attack will go critical or not. Freezing the value makes all attacks critical. You CANNOT tell by looking at the RNG... this is because the RNG is a big number and does NOT stay the same for each critical attack. So, in a battle, the RNG may be 12345 for a critical hit on frame 100... and then it may be 60000 for the next critical hit on frame 200... I hope you can see what I mean here. Basically, the RNG isn't enough to tell you if you will get a critical hit or not. It just ALWAYS looks like a big random number, changing every frame... (that's what it's supposed to look like)...
Well, now I obviously want to make a formula so that I can -predict- on what frame an attack will go critical. This is to help me in the TAS, so I do not have to try and manually attack on every frame, then load the savestate, and try on the next frame etc.
You can see this would take up a ton of time...
Any ideas on how to get this formula? I'm thinking of debugging using breakpoints or something? But I've never dealt with debugging before.
I'd like for your advice on this^^
I'm trying to make a forumla so I can predict on what frame I will get a critical hit in battle. (imagine going frame by frame in a battle, and you know if you attack on frame 120 it will result in a critical. Well, I need a formula which, when I get to frame 120, will tell me that it will result in a critical hit - and should also alert me of ALL 'critical hit frames' as I come to them)
Can you guys help me with this?
So far I've found the RNG which governs if an attack will go critical or not. Freezing the value makes all attacks critical. You CANNOT tell by looking at the RNG... this is because the RNG is a big number and does NOT stay the same for each critical attack. So, in a battle, the RNG may be 12345 for a critical hit on frame 100... and then it may be 60000 for the next critical hit on frame 200... I hope you can see what I mean here. Basically, the RNG isn't enough to tell you if you will get a critical hit or not. It just ALWAYS looks like a big random number, changing every frame... (that's what it's supposed to look like)...
Well, now I obviously want to make a formula so that I can -predict- on what frame an attack will go critical. This is to help me in the TAS, so I do not have to try and manually attack on every frame, then load the savestate, and try on the next frame etc.
You can see this would take up a ton of time...
Any ideas on how to get this formula? I'm thinking of debugging using breakpoints or something? But I've never dealt with debugging before.
I'd like for your advice on this^^