Eschaton GamesRPG Tsukuru GB an English guide

How battles work#

RPG Tsukuru GB's battles have a little chance in every step. Every stat is varied by about a sixteenth each round, so the turn order and the damage shift; a blow can miss, and one in sixteen is a critical; spells do their power give or take 5 %; and the monsters follow one of four ways of fighting, each a list of priorities with dice in it. This chapter gives every rule and formula, for a player who wants the odds and for an author setting the numbers in the database. How a battle looks from the pad is in Playing a game.

The rules were read from the program and then checked against the game: battles recorded in an emulator, 39 battles, 215 rounds and 743 turns, were replayed through a model of these rules that makes every random draw itself, 11,238 draws without one coming out differently; nine of them were run again in a second emulator, with the same result. A few paths never came up in those recordings: the surprise rounds, a confused hero's command at the menu, instant death, self-destruct, a monster running away, a hero's item. What is said of those is read from the program, and the text says so.

Spells, items and monsters are numbered as the editor numbers them, from 1.

A round#

A battle is a series of rounds. In each, the party gives its commands, everyone's stats are varied, and then everyone acts once, fastest first:

The battle starts A random battle: 1–3 monsters from the area's troop; an event's: its own three The surprise roll 1 in 32: a round for the monsters first · 1 in 32: one for the heroes 1 The menu Auto · Fight: a command for each hero · Run Run A roll on the heroes' share of all the speed Won: away, no rewards Lost: the monsters' round 2 The stats varied, then the order Attack, defence, speed ± about 1/16 · the fastest first 3 Each in turn The choice A hero: its command, or Auto's · A monster: by its type Its status Asleep, paralysed: the turn is lost · Confused: at random The action Attack · Magic · Defend · Item · an ability · perhaps again Is a side left with no one standing? yes No monsters: victory Experience shared, gold, treasure, then level-ups No heroes: defeat The Game Over no Anyone else to act this round? yes: the next in the order no 4 The round's end Poison bites · sleep, confusion count down · paralysis ends 1 in 8 Hidden monsters return 1 in 4 · dead revivers rise 1 in 2 a new round (on Auto, straight to 2)
A round. Each actor chooses at its own turn, after those before it have acted; the battle ends the moment a side has no one standing, defeat tested first, so if both sides fall at once it is a defeat.
CommandOn screenWhat it does
AutoEvery hero chooses for itself, round after round, with no menu, until START stops it after the current round. Auto can't run away
FightEach hero in turn: Attack (and a monster, if more than one stands), Magic , Defend or Item . B at the first hero goes back to the menu
RunThe escape roll (below). Failed: 「しかし にげられなかった!!」 ("but couldn't get away!!"), and the monsters get a round to themselves

An item is taken from the bag when it is chosen, and given back at the round's end if it wasn't used (its hero fell or couldn't act). A hero who is asleep or paralysed when the commands are given does nothing that round; a confused one is given a random action, which is decided again at its turn.

Every stat, every round#

At the start of each round every combatant's attack, defence and speed are varied: a stat v becomes v − v ÷ 16 + a number from 0 to v ÷ 8 (in whole numbers), at most 999. About a sixteenth either way:

A stat ofComes out this round as
55 (no change)
1010–11
2019–21
5047–53
10094–106
300282–319
500469–531
999937–999

Stats under 8 never vary, and those from 8 to 15 can only gain 1. The turn order and the damage use the varied stats; the dodge and the escape use the stats as they stand.

The turn order#

Fastest varied speed first, heroes and monsters in one order. Since speed is varied each round, two combatants within a sixteenth of each other may swap from round to round, and equals go in no fixed order. NOBLE CAT's ロコ at level 1 (speed 5) always acts before a slime (speed 1): stats that small don't vary.

Each actor chooses at its own turn, after those before it have acted, so a monster's choice sees the damage done earlier in the round. A speed up or down cast in the round re-sorts those still to act. After a surprise roll the round isn't sorted at all (Surprise attacks).

Attack#

A monster attacks: うんたマザーの こうげき! ("うんたマザー attacks!").
A monster attacks: うんたマザーの こうげき! ("うんたマザー attacks!").

A blow is three rolls and a sum:

1 The dodge Misses about: target's speed ÷ twice the two speeds' sum Never if asleep or paralysed 2 The critical 1 in 16; 1 in 4 with More criticals A critical overrules a miss 3 The damage attack − defence ÷ 2 a critical: defence ÷ 8 both as varied this round 4 Then The target defended first: ÷ 2 A charge: × 2 0 or less: 0 or 1 at random A miss No damage 「…は こうげきを かわした!!」 The defence counted loses an eighth if the target is asleep, a sixteenth if it is confused or paralysed
A blow: the dodge, the critical (which overrules a miss), the damage, and what changes it. There is no cap and no variance beyond the stats' own.

The dodge#

A blow can miss. The chance is about the target's speed ÷ (2 × (the attacker's speed + the target's)), from the speeds as they stand: one in four between equals, close to one in two against a much faster target, and never below about 3 %. A target that is asleep or paralysed can't dodge. The game says 「…は こうげきを かわした!!」, "… dodged the attack!!".

The target's speed against the attacker'sThe blow missesWith the critical that cancels it
a tenth4.5 %4.3 %
a quarter10 %9.4 %
half16.7 %15.6 %
the same25 %23.4 %
twice33.3 %31.2 %
four times40 %37.5 %
ten times47.1 %44.1 %

The last column is what a player sees: the critical roll comes after the dodge and a critical always lands, so one miss in sixteen is turned back into a hit.

Critical hits#

One blow in sixteen is a critical, for heroes and monsters alike: it counts only an eighth of the target's defence, where a blow counts half, and it can't be dodged. A monster with More criticals lands one in four, and once it has attacked, every monster's blows are critical one in four for the rest of the round. The game has two lines for it, 「かいしんの いちげき!!」 and 「つうこんの いちげき!!」.

A critical against one's own side (a confused hero striking a friend) counts half the defence, as a plain blow.

Damage#

damage = attack − defence ÷ 2, from the attacker's and the target's stats as varied this round. Defence counts half: a monster with defence 40 takes 20 off every blow. Then:

There is no cap and no variance beyond the stats' own. A blow that lands on a hero shakes the screen. A hero's attack is its strength plus its weapon's value, its defence its stamina plus its armour's and shield's (How stats grow).

Worked example: NOBLE CAT's ロコ at level 1 has strength 7, stamina 5 and speed 5, and the slime has attack 6, defence 20, speed 1 and 8 HP.

Defend#

Defend takes effect at the defender's own turn and halves the blows of those who act after it in that round, criticals and charges too. It does nothing against spells, and nothing against a faster attacker who has already struck. A slow hero gains little by defending.

Magic#

ロコ casts メルド at a group.
ロコ casts メルド at a group.
「うんたは 19の ダメージをうけた!」: the first monster's damage.
「うんたは 19の ダメージをうけた!」: the first monster's damage.

A hero casts a spell it knows; a monster one of those ticked in its options (Options). The MP is paid once the spell has been cast, if the caster has enough, even if the spell did nothing because the target is immune. A caster short of MP when its turn comes does nothing. A silenced caster can't cast: a hero's Magic is refused at the menu, and a monster's spell does nothing, though it still costs the MP.

A spell works on a monster only if it is ticked in the monster's spells that work (Spells that work on it); for a spell aimed at everyone, each monster is tested in turn. Every spell works on the heroes, and the heals, cures, revive and buffs (1–15) work on everyone.

The power varies by about 5 % at each cast: a power P does P − P ÷ 20 + a number from 0 to P ÷ 10, and then 1 more, 1 less or the same:

A power ofDoes
109–12
2018–22
3028–33
5047–54
110104–117
150142–159
500474–526
999949–1050
SpellsIn battle
1–3 heal one, 4–5 heal allRestore the power, varied, at least 1, up to the HP missing. Nothing for a fainted hero
6 teleport, 7 exitNot on the battle list. Nothing in battle
8 cure poison, 9 cure paralysisEnd that status
10 cure allEnds poison, paralysis, sleep and confusion; not silence
11 wakeEnds sleep and confusion
12 reviveA fainted hero, or a dead monster that didn't run or hide, back at full HP
13–15 attack, defence, speed upAdds the power, varied, to the stat, at most 999. Each further cast on the same target adds half the last: 20, then 10, then 5. Lasts the battle
23–25 attack, defence, speed downTakes it off the same way
16 silence, 17 poison, 18 paralyse, 19 sleep, 20 confuseWork 1 time in 2
21 curseFails 1 time in 10; otherwise nine separate chances, set by the caster (The curse)
22 instant deathWorks 1 time in 2 (from the code; never seen in a recorded battle)
26–40 damageTakes the power, varied, at least 1, off the HP. Defence plays no part

Damage spells ignore defence. Their power, varied, comes straight off the HP, so they are the answer to a monster in thick armour. A monster with Double magic does twice the amount (a heal or damage up to the target's HP, a buff up to 999); its status spells aren't doubled.

The curse#

Curse (slot 21, ) fails one time in ten; otherwise it makes nine separate rolls on its target, one for each effect, each with its own chance in percent. Speed, defence and attack set the stat to a thirty-second of what it was; death kills outright. The row is the caster's: a hero's level ÷ 5, a monster's max HP ÷ 50 (at most row 19). These are the odds, from the program's own table:

RowA hero at levelA monster with max HPSleepSilencePoisonParalysisConfusionSpeed ÷ 32Defence ÷ 32Attack ÷ 32Death
01–40–4920––––5–––
15–950–9930––––5–––
210–14100–1493010–––5–––
315–19150–1993515–––5–––
420–24200–249352010––55––
525–29250–299402215––55––
630–34300–34945242010–105––
735–39350–39950262210–105––
840–44400–4495028241010105––
945–49450–4994530261010105––
1050–54500–54945302820101010–5
1155–59550–59940303020101010–5
1260–64600–64940303020101010–6
1365–69650–69935303020101010–6
1470–74700–7493530301515151057
1575–79750–7993030301515201057
1680–84800–84930303015152515108
1785–89850–89930303015153020108
1890–94900–949303030251530251510
1995–99950 or more505050302030302020

So NOBLE CAT's ニーナ, who learns カーシア at level 15, puts a monster to sleep about a third of the time and silences it one time in seven; its のろいガニ (70 HP) curses at row 1, sleep 30 % and speed 5 %. Only the monsters a curse works on are open to it, so a boss deaf to the status spells usually ignores it too.

Items#

Item offers the bag's items 71–115, but the teleport and exit items (81, 82), with their counts:

The item is used up. A hero's item in battle was never met in the recordings; these rules are read from the program.

Status effects#

A hero who falls is fainted (, as the revive spell's description puts it): 0 HP, no turns, until revived.

StatusIn battleEnds
PoisonAt each round's end it loses a sixteenth of its max HP (at least 1), and can die of itCure poison or cure all, an antidote item, an inn. Stays after the battle
ParalysisLoses its turns; can't dodge; blows count a sixteenth less of its defence1 in 8 at each round's end; cure paralysis, cure all. Stays after the battle
SleepLoses its turns; can't dodge; blows count an eighth less of its defenceAt the end of the third round, counting the round it began; wake, cure all. Ends with the battle
ConfusionOn its turn: attacks a random hero, attacks a random monster, or does nothing, 1 in 3 each; blows count a sixteenth less of its defenceAs sleep
SilenceCan't cast: a hero's Magic is refused, a monster's spell does nothing. Items still workNever during the battle: no spell ends it. Ends with the battle
FaintedAt 0 HP: no turns; healing spells don't reach itRevive, at full HP. After a won or fled battle it is back with 1 HP

Sleep and confusion are set to last three round-ends, counting the round they were cast in: cast early in round 1, they end as round 3 does, so a sleeper misses rounds 2 and 3 at least. Paralysis has no count: one chance in eight at each round's end, so it lasts eight rounds on average, and it stays after the battle, as poison does. Silence never ends in battle: no spell clears it, not even cure all.

Monster abilities#

The ten options of the monster page, as they act in battle (Options):

OptionIn battle
Self-destructTaken first by an attack or support monster below half its HP: its HP as damage to every hero, then it dies (so the more it was hurt, the smaller the blast). Its experience, gold and treasure still count (from the code; never seen)
RunA defence monster in danger runs 3 times in 4. It is gone, and gives nothing
HideA defence monster in danger hides 3 times in 4. At each round's end it comes back 1 time in 4, with the HP it had. Still hidden when the battle ends, it gives nothing
Drain MPA support monster takes it 7 times in 8 when it gets that far: an eighth of a hero's MP (rounded up) moves to the monster
ChargeAn attack monster charges 1 time in 2 when it gets that far: a blow at double damage, with no dodge and no critical, at the hero with the lowest defence
ReviveDead, at each round's end it comes back 1 time in 2, with 1 HP. A battle ends as soon as the last monster falls, so kill it last
Double magicIts spells' amounts doubled: heals and damage up to the target's HP, ups up to 999. The status spells aren't doubled
Attack twiceAfter its action, 3 times in 4 it takes a second, chosen afresh; never a third
More criticalsIts blows are critical 1 time in 4, and once it has attacked, so are every monster's for the rest of the round
Half its attacks missWhen it comes to its plain attack, 1 time in 2 the blow is a miss

A monster that runs or hides counts as gone: if the last monsters standing run or hide, the battle is won, with 「いなくなった」 ("gone") in place of the victory line, but only those killed give anything.

How monsters choose#

On its turn a monster goes down the list of its type, attack, defence, support or clever, and does the first thing that applies and passes its roll (Types). The tests:

Most steps roll before they commit:

StepTaken
A damage spell4 times in 5, if it has one worth casting
Charge1 time in 2
Attack up on itself, poison3 times in 4, when it is weak
Defence up on itself1 time in 2, in danger
A buff or a debuff3 times in 4 each
A status spell1 time in 2; death first, then curse, silence, poison, confusion, paralysis, sleep
Drain MP7 times in 8
Run, hide3 times in 4, in danger
DefendIn danger: 3 times in 4 (a support monster 1 in 2)
The plain attackAlways, but 1 turn in 16 it does nothing instead (a support monster 1 in 4)
Heal, revive, cureAlways, when someone needs it

So an attack monster with no spells and no options attacks fifteen turns in sixteen, and a support monster with nothing to cast attacks three in four. A clever monster first looks at its own side: if it can heal someone below half, revive a fallen ally or cure an ailing one, it takes the defence list; otherwise the attack list if it has a damage spell or isn't weak, the support list if it has buffs or status spells, and the defence list when in danger.

The targets aren't drawn at random: each step aims by a rule. As the battle model has them:

WhoAims at
An attack monster's blowThe hero with the most HP
A defence monster's blowThe hero with the highest attack
A support monster's blow, its poisonThe hero with the least HP
A chargeThe hero with the lowest defence
A monster's single damage spellThe hero with the most HP
An Auto hero's blowThe monster with the least HP (in the defence list: with the highest attack)
An Auto hero's single damage spellThe last living monster it works on
A hero's chosen target, if it fell firstThe first living monster

Choosing a damage spell: a monster estimates each spell it can afford at its power × the heroes standing, keeps those worth at least half its attack, and casts the one whose estimate comes closest to the heroes' total HP. A single-target spell goes to the hero with the most HP.

Auto#

Auto plays every hero, round after round, by the clever monsters' list with the hero's own spells and items:

  1. Heal when a hero is below half HP, revive a fainted one, cure one who ails, with a spell or, failing that, an item from the bag.
  2. Otherwise attack: a damage spell four times in five, if it knows one worth at least half its attack; else a blow at the monster with the least HP.
  3. Buffs, debuffs and status spells when the attack list doesn't apply.

Auto never runs away. START stops it after the current round (「スタートで オートをかいじょ」, "START cancels Auto").

Running away#

Run succeeds about as often as the heroes' share of all the speed: H ÷ (H + M), where H adds up the speeds of the heroes who can act (not asleep, paralysed or fainted), and M of the monsters who can act (not confused either). From the stats as they stand, not varied:

The heroes' speeds (H)The monsters' speeds (M)H ÷ (H + M)The roll succeeds
602075 %76.9 %
404050 %50 %
306033.3 %33.3 %
208020 %20 %
151509.1 %9.1 %
5183.3 %83.3 %
5362.5 %62.5 %

Surprise attacks#

Every battle starts with a roll: one in 32 it opens with 「ふいを つかれてしまった!」 ("caught off guard!") and a round in which only the monsters act, in their order; one in 32 with 「せんせい こうげきの チャンス!」 ("a chance to strike first!"): the menu comes up as usual, and the next round only the heroes act, in party order, and Run always works. Neither came up in the 35 surprise rolls recorded; these are read from the program.

After the battle#

Victory.
Victory.
WonRan awayLost
ExperienceShared: the total of the monsters killed, divided among the heroes still standingNoneNone
GoldThe total, not divided (at most 999,999 carried)NoneNone
TreasureEach monster killed may leave its ownNoneNone
Fainted heroesBack with 1 HPBack with 1 HP—
StatusesPoison and paralysis stay; the rest endThe same—
What followsLevel-ups, then the fieldThe fieldThe Game Over; in test play the party is restored instead

Experience, gold and treasure#

When the last monster falls, 「モンスターを やっつけた」 ("the monsters are beaten"). The experience is shared: the total of the monsters killed is divided among the heroes still standing, rounded down, and each gets that share; a fainted hero gets nothing. Three slimes (2 EXP each) give 6: 3 each to two heroes standing, 6 to one. A monster that ran or is still hidden gives nothing; one that revived and was killed again gives its experience once. A hero's experience stops at 9,999,999.

The gold is the total, not divided: it goes to the party's purse, which stops at 999,999.

Treasure: each monster killed rolls for its own item, at its odds: always, 1 in 2, 1 in 10 or 1 in 50 (Treasure). So a battle against three can give three items, and a monster with "always" is a sure drop.

The battle's close plays three jingles: , by the order of the program the victory's, the levels' and the treasure's (Music and sound).

Levels#

A level-up.
A level-up.

A hero rises a level each time its experience reaches the total for the next. The table is the same for every hero:

LevelTotal EXPLevelTotal EXPLevelTotal EXP
210185,50034148,000
325197,40035170,000
445209,80036192,000
5702112,50037215,000
61102216,50038240,000
71702321,00039270,000
82502426,00040300,000
93702532,00041335,000
105302639,00042370,000
117402747,00043410,000
121,0002857,00044450,000
131,3502968,00045490,000
141,8503080,00046530,000
152,5003194,00047575,000
163,20032110,00048620,000
174,10033128,00049665,000

From level 50 on, every level costs exactly 50,000 more: level L needs 715,000 + (L − 50) × 50,000, and level 99 needs 3,165,000, the last. Several levels at once are taken one by one.

Each level gained adds to each stat whose gain isn't 0:

gain − a ÷ 2 + a number from 0 to a, then 1 more, 1 less or the same, where a = gain ÷ 2 − gain ÷ 10,

in whole numbers. For a gain of 5 that is 3 to 7; How stats grow has the table for every gain. The stats rise in the order strength, stamina, wisdom, speed, the heroes in party order. HP and MP aren't refilled; their maxima follow stamina and wisdom on the field. Then the hero learns every spell whose level it has now reached (Magic level).

The limit of 999 is tested against each level's rise, not against the stat, so a stat can pass 999 (Limits, bugs and messages); in battle no attack, defence or speed counts for more than 999, as the variation cuts it there.

Back on the field, or not#

After a battle won or fled, a fainted hero is back with 1 HP, every status but poison and paralysis is gone, and the buffs and debuffs end with the battle.

If the whole party falls, 「…たちは ぜんめつした…」 ("…'s party was wiped out…"), and the Game Over follows: nothing is saved, and play goes on only from a save (Game Over). In test play, a lost battle restores the party instead. A battle in which both sides fall at once is a defeat.

Encounters#

On the world map, each step has a chance of 17 in 256 (about one in fifteen) of a battle, and never more than 15 steps pass without one: on average a battle comes about every ten steps. There is no rate to set. The Enemy Map decides only which monsters appear: an area marked monsters don't appear has no battles at all, and every floor of a map has a troop of its own (The enemy map). The ship meets monsters; the airship never does.

A random battle takes one to three monsters, each drawn at random from the troop of six where the party is, so the same monster can come twice. The party's size counts: a lone hero meets at most two. The battle plays the BGM Settings' battle song (How a new game starts), NOBLE CAT's song 4:

Song 4, NOBLE CAT's battle song.

An event's battle (the event command Battle ) names up to three monsters, the same one more than once if you like, and its own song; it can't be fled (Events). NOBLE CAT's bosses are all event battles.

Test play can turn battles off, or win each at once for nothing (Test play). The Enemy Map's troop page has a Test entry that fights the troop on the spot with a test party at levels you choose: the quickest way to try a monster.

A troop on the Enemy Map, with Test and Clear.
A troop on the Enemy Map, with Test and Clear.

The random numbers#

Every roll on this page comes from one generator, the Super Famicom titles' own, kept across a change of processor: s = s × 5 + 14,097 (3711 in hexadecimal), kept to 16 bits, the top 8 bits being the number. "One in n" takes that number's remainder by n, so where n doesn't divide 256 the low results come up very slightly more often.

The generator also steps while the program waits for the next frame, many times a frame. So the numbers a battle gets depend on exactly when each button was pressed, and two emulators whose timing differs slightly fight different battles from the same presses; with that wait's steps taken out, both fight the same battle. The generator starts from 0 at power-on. Its code is in How it works.

Bugs#

The battle's own bugs, each in the model of the battle that the recordings were checked against unless it says otherwise:

BugWhat happensWorkaround
The dodge uses the wrong speedA blow at a hero is dodged on the first hero's speed, whichever hero it hits; a poisoned or silenced target's roll reads some other number entirelyPut a fast hero first with Order : the whole party dodges at its speed
More criticals spreadsOnce a monster with More criticals has attacked, every monster's blow is critical 1 in 4 for the rest of the roundGive the option to a monster that fights alone, or expect it
A cure rewrites an actionCuring paralysis, sleep or confusion rewrites the cured one's action for the round (or another's) as an attack, aimed by a scan that reads the wrong statusesHarmless for a monster, which chooses again at its turn
Auto's damage spellsAuto casts the first spell of its sorted list whatever target it found, and once the first monster of the group is dead it stops casting single-target damage spells at allChoose by hand against groups
The monsters' tests misreadThe checks behind the clever and support types read the wrong data: some options make a monster believe it has damage spells; the buff test misreads which spells it has; a reviver always tries the second monster first; drain MP and silence can go to the wrong hero; a heal-all test reads the wrong monsterNone needed; it only makes them less clever
Escape past 25 to 1When the monsters' speeds add up to about 25 times the heroes' or more, the escape sum wraps, and the chance comes out wrong: higher than it should, up to certain (worked out from the formula; never seen in play)—

The bugs that touch the rest of the game are in Limits, bugs and messages.

Fan-made reference material, one of the Eschaton Games Tsukuru guides. Not affiliated with the publishers of the titles it covers. Corrections and questions: contact@eschaton.games.