News:

11 March 2016 - Forum Rules

Changing the chance to run away in Final Fantasy 1

Started by RobertAugustdeMeijer, June 10, 2015, 06:16:24 AM

RobertAugustdeMeijer

According to the GameFaqs board, the formula for running away is this:

Luck > 0...[Level + 15]

Is there a way to change that number 15 into, let's say, 20 or 25? Currently, it's too easy to run away in Final Fantasy Ultra.
(A workaround would be to lower all character's Luck, but I'd rather not).

STARWIN

For details, check Disch's disassembly (http://www.romhacking.net/documents/401/) (bank_0C.asm Battle_PlayerTryRun).

He mentions that the level read is bugged.

Finding the value 15 is easy with this, it is the 0x0F in 0x32402. (or search the image for 18 69 0F AA)

RobertAugustdeMeijer

Hey thanks! I've toyed around a bit with the amount, and 38 seems to be close to what I'm looking for.

I wonder if the '...' in the formula is a number between 0 and 255, and that the number is determined at the start of a fight. I have battles that are really hard to escape and ones that are very easy.

Disch

Quote from: RobertAugustdeMeijer on June 10, 2015, 06:25:42 PM
I wonder if the '...' in the formula is a number between 0 and 255

The ellipsis there is used to indicate a random number between the two values surrounding it.

So  'Luck > 0...[Level + 15]' means "Luck > random number between [0, Level+15]"

The number is not determined at the start of a fight, but rather is randomly generated each time you attempt to run.

KingMike

Quote from: RobertAugustdeMeijer on June 10, 2015, 06:25:42 PM
Hey thanks! I've toyed around a bit with the amount, and 38 seems to be close to what I'm looking for.

I wonder if the '...' in the formula is a number between 0 and 255, and that the number is determined at the start of a fight. I have battles that are really hard to escape and ones that are very easy.
There are some battles formations that are programmed to never let you run.
"My watch says 30 chickens" Google, 2018

RobertAugustdeMeijer

Yups. In my hack there are very few that are 'unfleeable'. That's why I have to get the running away balance just right!

STARWIN

Well, if the level read is bugged in your mod too, then there is quite a lot of randomness involved here. Maybe you just can't get the balance "just right" without changing the whole formula.

Disch

FWIW, fixing the run bug is literally a 1-byte change:

Change offset 0x323FF from 80 to 82

RobertAugustdeMeijer

Thanks, but the level read change (80 to 82) has already been done. I'm happy with the results I have now... the game is close to being released