ff3:ff3us:doc:asm:algo:basic

This is an old revision of the document!


Basic Algorithms

All text algorithms were taken from Terii senshi's Final Fantasy III Algorithms FAQ V 2.3.

All disassemblies code snippets credit goes to assassin, Terii senshi, Lenophis, Imzogelmo, Novalia Spirit and anyone else who has participated in commenting the disassemblies.

This algorithm has its own page.

This algorithm has its own page.

counter is a value from 0 to 65535 :?: radom is a random value from 0 to 255

Each step:
  if on overwolrd map: counter = counter + 192;
  if on dugeon map: counter = counter + 112;
  get new random;
  
  if random < (counter / 256)
    fight occurs;
    counter = 0;

Note: The moogle charm makes counter not increasing.

  • ff3/ff3us/doc/asm/algo/basic.1457410206.txt.gz
  • Last modified: 5 years ago
  • (external edit)