Cite as
aus101/OgreBattle
Original
https://github.com/aus101/OgreBattle
Pinned
aus101/OgreBattle @ 15d8857a9d2f1d93f1fbc9b9ede7effe3c0513d4
Accessed
2026-11-14
Licence
none stated
Credit
Tarot card generator and Lord-type odds by aus101.
Notes
Java code that enumerates the opening tarot hands. TarotQuestionsSFC.java and TarotQuestions.java hold the per-answer point values for the four Lord types (original Super Famicom values differ from the later releases), and TarotBonusCardStats.java the bonus card's stat ranges. Cites gcgx.games/ogrebattle/making.html for matching values. A secondary source for the tarot tables; the ROM is where they are read.

Cited on

Claims (3)

The 22 tarot cards of the opening questions, from MAGICIAN to WORLD: for each, the points its three answers give the four Lord types (Ianuki, Phantom, Ice Cloud and Thunder), packed a half-byte each, and the largest change it can make to the starting HP, Strength, Agility, Intelligence, Charisma, Alignment and Luck when it is the seventh, bonus card.ogrebattle/tarot/pojo/TarotQuestions.java L3–13ogrebattle/tarot/pojo/TarotQuestionsSFC.java L3–13ogrebattle/tarot/pojo/TarotBonusCardStats.java L9–23Code notes
The opening answers add their four points to four tallies, in the order Ianuki, Phantom, Ice Cloud and Thunder, and the bonus card raises or lowers each of the Lord's seven stats by a random amount from 0 to the card's value. The tallies then rank three Lord types: the winner of the pair Ianuki-Phantom and of the pair Ice Cloud-Thunder, a tie going to the earlier, and a third candidate, ordered by tally with a tie keeping the earlier. For the third candidate the game compares the Ice Cloud-Thunder loser's tally with a byte of scratch memory at the address equal to that tally (for a tally of 10, the byte at $000A), not with the other loser's tally: when the tally is at least that byte it takes that loser, else the Ianuki-Phantom loser. So first is always the type with the most points (on a tie, the earliest), but second can pass over the type with the second most: in a call with tallies 11, 11, 10 and 10 and the scratch bytes set to 0, the ranking was Ianuki, Ice Cloud, Thunder. With a mode byte at 0, as the probe set it, the three types pick the starting rosters: the first type's Lord unit and three units, two of the second type's and one of the third's.ogrebattle/tarot/exact/LordOdds.java L101–148Verified
A routine gives the army an item by chance, with odds set by a unit leader's Luck: 1 in 10 below Luck 11, 2 below 26, 3 below 41, 4 below 51, 5 below 61, 6 below 76, 7 below 91, and 8 from 91. The item is one of the 92 pieces of equipment numbered 8 to 99 (ogre-battle-snes-tables/items), drawn as 8 + (r x 92) / 256 for a byte r of the random pool, so 72 of them come from 3 values of r in 256 and 20 from 2.ogrebattle/tarot/exact/RNGBias.java L12–18Verified