Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(+1)

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 ;
   }
}

Oh, the second way is exactly what I want. Another question referencing to this: is this a way to clear screen to show text only like startup message - without header etc?

There are two ways ....

The first is per-theme config (applies to all clear_screen commands) :

   my_theme : theme {
      extends = two
      theme_settings {
         hide_status_bar_on_clearscreen = true
      }
   }

The second is per clear-screen setting (overrides the theme default):

: clear_screen hide_status_bar = "true" ;

In beta 20, I changed the theme default for the TWO theme to hide the status bar on clear screen by default.

The status bar still returns when the location is re-described, and it seems like this is the most sensible default, hence the change.

Amazing, thanks a lot.