win_condition_texts.lua

This script contains tables of localized text that are shared by different win conditions.

To make these tables available include this file at the beginning of a script via:

include "scripting/win_conditions/win_condition_texts.lua"

All tables provide two values title and body. Refer to those values like this:

send_to_inbox(plr, won_game.title, won_game.body, {popup=true})
won_game
Values
  • title=_("Congratulations!")

  • body=p(_("You have won this game!"))

lost_game
Values
  • title=_("You are defeated!")

  • body=p(_("You lost your last warehouse and are therefore defeated. You may continue as spectator if you want."))

won_game_over
Values
  • title=_("You won")

  • body=h2(_("You are the winner!"))

lost_game_over
Values
  • title=_("You lost")

  • body=h2(_("You’ve lost this game!"))

game_status
Values
  • title=_("Status")

  • body=h2(_("Player overview:"))