player.set_round_card_text

This function sets the text of the caption below the round card's icon. 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

A string literal or an integer constant denoting a string index, optionally followed by up to two variables passed as additional arguments, which will be substituted into the string when it is displayed.

Example

--
-- Relevant code from Invasion:
--
for each player do
   if current_player.team == team[1] then 
      current_player.set_round_card_icon(covenant)
      current_player.set_round_card_text("Elite")
   end
end
for each player do
   if current_player.team == team[0] then 
      current_player.set_round_card_icon(noble)
      current_player.set_round_card_text("Spartan")
   end
end

See also