Falsebound Archive
5 Bugs & quirks 5.11

A lost mission keeps what it earned

When a mission ends, won or lost, the map scene leaves through the same code. That code writes the map’s gold into the game’s state (what a save to the memory card writes) in both cases. Only a win also moves the story on: it clears the mission’s progress flags, advances to the next mission and shifts the characters’ affinities.

Where
main.dol, map scene update map_update; base set-up map_build_bases; base capture map_base_event
Gold kept after a loss
Yes; written to the game’s state the same way as after a win
Cards, experience, levels
Kept; written to the game’s state when they are won
Capture prizes on the retry
Paid again, gold and card
Visible
Yes, in the gold and cards after any lost mission

Everything else a mission gives is not held back until the end at all. Prize cards, the experience and levels from each battle’s results windows, and monsters given by the script go into the game’s state the moment they are won; prize gold goes into the map’s gold, which is written on leaving whatever the result. A loss leaves them all there.

The retry then starts the map from scratch. Setting up the bases clears the record of which bases the player has already taken, so the first time a player unit takes a prize base again, the game pays its prize again, gold and card. Taking prize bases and then losing on purpose, by letting the clock run out, losing a base the mission must not lose or letting the hero’s unit be beaten, turns a mission into a loop for gold and cards. In Yugi’s y02, for example, bases 4 and 5 give Blue Medicine and Legendary Sword; Y17 has four prize cards, among them Final Flame and Mirror Force.

The progress flag that marks the story hub’s introduction as seen also survives the loss, so the retry skips the hub’s introduction.

Evidence

The map scene’s update (map_update) handles its “leave the map” flag in one branch for both results: it calls the gold setter with the map’s gold, then returns to the hub; the win flag only adds the flag clearing, the mission step and the affinity drift. The capture handler (map_base_event) adds a base’s gold to the map’s gold and its card to the card list the first time a player unit takes it, testing a mask of bases already taken, and the base set-up at map entry (map_build_bases) clears that mask (bases the player holds at the start count as taken). All three match the original machine code exactly. The prize cards were read from the mission scripts.