News: 11 March 2016 - Forum Rules
Current Moderators - DarkSol, KingMike, MathOnNapkins, Azkadellia, Danke

Author Topic: Changing the chance to run away in Final Fantasy 1  (Read 2343 times)

RobertAugustdeMeijer

  • Jr. Member
  • **
  • Posts: 34
    • View Profile
Changing the chance to run away in Final Fantasy 1
« on: June 10, 2015, 06:16:24 am »
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

  • Sr. Member
  • ****
  • Posts: 449
    • View Profile
Re: Changing the chance to run away in Final Fantasy 1
« Reply #1 on: June 10, 2015, 01:22:17 pm »
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

  • Jr. Member
  • **
  • Posts: 34
    • View Profile
Re: Changing the chance to run away in Final Fantasy 1
« Reply #2 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.

Disch

  • Hero Member
  • *****
  • Posts: 2717
  • NES Junkie
    • View Profile
Re: Changing the chance to run away in Final Fantasy 1
« Reply #3 on: June 10, 2015, 09:30:39 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

  • Forum Moderator
  • Hero Member
  • *****
  • Posts: 6892
  • *sigh* A changed avatar. Big deal.
    • View Profile
Re: Changing the chance to run away in Final Fantasy 1
« Reply #4 on: June 11, 2015, 02:24:50 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

  • Jr. Member
  • **
  • Posts: 34
    • View Profile
Re: Changing the chance to run away in Final Fantasy 1
« Reply #5 on: June 13, 2015, 08:43:58 am »
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

  • Sr. Member
  • ****
  • Posts: 449
    • View Profile
Re: Changing the chance to run away in Final Fantasy 1
« Reply #6 on: June 13, 2015, 08:58:39 am »
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

  • Hero Member
  • *****
  • Posts: 2717
  • NES Junkie
    • View Profile
Re: Changing the chance to run away in Final Fantasy 1
« Reply #7 on: June 13, 2015, 11:57:57 pm »
FWIW, fixing the run bug is literally a 1-byte change:

Change offset 0x323FF from 80 to 82

RobertAugustdeMeijer

  • Jr. Member
  • **
  • Posts: 34
    • View Profile
Re: Changing the chance to run away in Final Fantasy 1
« Reply #8 on: June 14, 2015, 10:36:46 am »
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  :woot!: