player.set_objective_text

a.k.a. player.set_round_card_title

Typically, at the start of a round in most game modes, the player sees a small informational popup with a brief blurb describing their objective; this is unofficially called the "round card." This function sets the body text for the round card.

If the text passed in differs from that used in the previous frame, then this function will also trigger display of the round card.

Arguments

text

The description text to display. This is a persistent format string.

Example

--
-- Slayer TU round card description code:
--
for each player do -- round card
   if game.score_to_win != 0 and game.teams_enabled == 1 then 
      current_player.set_round_card_title("Kill players on the enemy team.\r\n%n points to win.", game.score_to_win)
   end
   if game.score_to_win != 0 and game.teams_enabled == 0 then 
      current_player.set_round_card_title("Score points by killing other players.\r\n%n points to win.", game.score_to_win)
   end
   if game.score_to_win == 0 and game.teams_enabled == 1 then 
      current_player.set_round_card_title("Kill players on the enemy team.")
   end
   if game.score_to_win == 0 and game.teams_enabled == 0 then 
      current_player.set_round_card_title("Score points by killing other players.")
   end
end

Notes

See also