Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Route and unlock files (TOML)

Data-driven replacement for the Lua arcade paths and unlock conditions of Ikemen GO. See Lua scripts for the reasoning. There is no scripting runtime: a route is a TOML file, and conditions use a small expression language checked when the file loads.

Where the files live

FileUsed forSource
route_<fighter id>.tomlArcade route of that fighterData folder (next to the executable, app storage on Android, browser storage on the web)
unlocks.tomlUnlock and hide rules for fighters and stagesSame place; when absent the bundled assets/routes/unlocks.toml is used

A file with an error is reported on the console with the step or rule number and then ignored, so the game keeps its built-in behaviour.

Arcade route

[route]
id = "kfm-arcade"

[[step]]
storyboard = "chars/kfm/intro.def"

[[step]]
repeat = 6
fight = { order = 1, stage = "dojo" }

[[step]]
when = "consecutive_wins == 6"
fight = { p2 = ["SuaveDude"] }
else = { fight = { order = 3, winscreen = true } }

[[step]]
action = "clear"

Each [[step]] has exactly one of fight, storyboard or action.

KeyMeaning
fightorder (1 picks the next regular opponent, 2 or more picks the boss), p2 (fighter ids or names, first match wins), stage, winscreen
stageStage id or name; random chooses a random stage. The first fight skips stage select when its route names a stage. An unknown stage keeps the normal automatic choice.
storyboardPlays a .def storyboard from an imported MUGEN pack, including its .sff image layers and .air animations; referenced files resolve relative to the storyboard
actionclear ends the route
repeat1 to 99 times; when is checked on every repetition
whenCondition; the step runs only when true
elseSame keys as a step body (fight, storyboard, action); runs when when is false

Storyboards between fights play before the next fight. A storyboard before the first fight replaces the built-in arcade opening; a final storyboard plays before the ending or the final results screen. Press confirm or tap anywhere to advance a scene, or Back/Start or tap Skip to skip the current storyboard. If a storyboard file or its required sprite file cannot be loaded, the engine reports the path and continues the route.

The route is planned when arcade starts, assuming the player wins every fight, which is the only path a run can take. A lost fight ends the run as usual.

Conditions

Numbers, quoted text, true, false, variables, == != < <= > >=, &&, ||, ! and parentheses.

VariableValue
stats.arcade.clearArcade clears saved so far
consecutive_wins, match_noFights already planned in this run
modearcade, story, survival, cpu, versus, training, watch or team
netplay1 in an online match, else 0
team_size1 or 2 (routes only)
playerId of the fighter the player chose

An unknown variable is a load error that lists the known ones.

Unlocks

[[unlock]]
target = "char:oboro"
when = "stats.arcade.clear >= 1"

[[hide]]
target = "char:oboro"
when = "mode == \"bossrush\""

A target is char:<id> or stage:<id>. A target with unlock rules is available only while all of them are true; a target with hide rules is hidden while any is true. Targets without rules stay open. Fighter rules apply to the select screen; stage rules are parsed but not applied yet.

Not covered

Arbitrary logic, per-round results (perfect_rounds), labels and goto, and story mode arcs are not part of this version.