Qhimm.com Forums
Miscellaneous Forums => Scripting and Reverse Engineering => Topic started by: antd on 2009-06-30 14:41:07
-
What is the process that governs when Cloud can escape from a battle?
Let's take an easy example of Cloud alone and one lone enemy.
Sometimes Cloud can run away from the battle immediately, sometimes he cannot.
It seems whether you can run immediately or not is predetermined at the very beginning of the battle. Dexterity stat also seems to play an important roll here...
I wonder if anyone knows what causes this?
-
In the battle setup (http://wiki.qhimm.com/FF7/Battle/Battle_Scenes#Battle_Setup_1_format) for each formation in the scene.bin, there is a flag at 0x0010 that determines whether the fight is escapable or not (it also does some other things, but no-one is quite sure what).
There is also an escape counter at 0x0004. AFAIK no-one knows exactly how this works, but the higher the number, the longer it takes to run away from the battle.
-
In the battle setup (http://wiki.qhimm.com/FF7/Battle/Battle_Scenes#Battle_Setup_1_format) for each formation in the scene.bin, there is a flag at 0x0010 that determines whether the fight is escapable or not (it also does some other things, but no-one is quite sure what).
There is also an escape counter at 0x0004. AFAIK no-one knows exactly how this works, but the higher the number, the longer it takes to run away from the battle.
Wow, quick post. Thanks
Does anyone know where the escape counter is in PSX memory? Or by how much it increases/decreases each frame?
-
well all time bars have to be full, unless its a pre emptive attack then usually the enemies get at least 1 turn in before you escape so there seems to be a added time penalty when escaping.
-
There's a random factor somewhere that determines how quickly one can escape.