Sorry about your other issue today truly. Going to answer this anyway...
There are two ways. The "win game" message can be defined in the theme
start_theme = my_theme themes {
my_theme : theme {
extends = two
system_messages {
all_treasures_found_win_game = Congratulations, you found all the treasures. You have won!
}
}
}
Way 2
Remove the default win-game logic, by creating a bespoke treasure hunt mode. If you don't choose "bespoke" here, then Adventuron will add code like this automatically to your on_tick {} handler, and reference the system_messages field to obtain the win game text. If you specify bespoke here, it stops Adventuron from administrating the win game logic, and you can do what you like in the win game sequence.
game_settings {
treasure_hunt_mode = bespoke
} on_tick {
: if (treasure_deposited() == treasure_total()) {
: print "WIN GAME MESSAGE !" ;
: success ;
: win_game ;
}
}