Generating Arena Enemies (GBA)
This content was originally provided by Nitrodon.
Note: These notes are from The Blazing Blade, but presumably apply in a similar manner to Binding Blade and The Sacred Stones.
Step 1: Determine your best weapon type (the one with the most weapon exp), ignoring staves. If there is a tie, the priority order is Sword, Lance, Axe, Bow, Staff, Anima, Light, Dark. This is the weapon you will be using in the arena.
Step 2: Determine the challenger's class. The lists are as follows, based on your weapon type. If you are promoted, select randomly from the subset of promoted classes, otherwise select randomly from the subset of unpromoted classes.
Melee: 0A 0C 0E 10 12 13 14 16 1E 20 22 24 26 28 2A 2D 32 33 34 36 38 39 3A 3B 0A 0E 12 14 20 24 28 32 34 39 3A 38 38 Magic: the next list in the ROM (null-terminated) Bow: the list after the magic list (also null-terminated)
Translation of melee list:
Unpromoted melee: Mercenary, Myrmidon, Fighter, Knight, Mage, Shaman, Cavalier, Pegasus Knight, Wyvern Rider, Soldier, Brigand, Pirate, Mercenary, Myrmidon, Fighter, Knight, Mage, Shaman, Cavalier, Pegasus Knight, Wyvern Rider, Brigand, Pirate, Soldier, Soldier Promoted melee: Hero, Swordmaster, Warrior, General, Bishop, Sage, Druid, Paladin, Valkyrie, Falcoknight, Wyvern Lord, Berserker
Step 3: Determine the challenger's Level. This will range from your Level - 4 to Level + 4.
Step 4: The challenger's stats are determined as though his Level was actually his Level*1.2 (Normal Mode) or Level*2.4 (Hard Mode) rounded down, but otherwise like any other generic enemy.
Step 5: The Value of both combatants is calculated as (HP + Str + Skl + Spd)*2 + Lck + Con + (either Def or Res, depending on the weapon type faced)*2
Step 6: If your Value is less than 80% of the challenger's, then the challenger loses 1 HP + Str + Skl + Spd + Def + Res + Lck. If the challenger's Value is less than 80% of yours, then the challenger gains 2 HP and 1 Str + Skl + Spd + Def + Res + Lck. Repeat this step up to 9 times or until the Values are close enough. This step is not affected by caps.
Step 7: Determine the challenger's weapon.
The wager is 800 + 10*(challenger's Value - your character's Value).