LuaAPI.wiki
changeset 577 6e77c79a8457
parent 576 dff03a98693a
child 579 9895045e9963
equal deleted inserted replaced
576:dff03a98693a 577:6e77c79a8457
   921 Returns the color of the chosen clan by its number. The color data type is described in [LuaAPI#Color].
   921 Returns the color of the chosen clan by its number. The color data type is described in [LuaAPI#Color].
   922 
   922 
   923 ==== <tt>!SetClanColor(clan, color)</tt> ====
   923 ==== <tt>!SetClanColor(clan, color)</tt> ====
   924 Sets the color of the chosen clan by its number. The color data type is described in [LuaAPI#Color].
   924 Sets the color of the chosen clan by its number. The color data type is described in [LuaAPI#Color].
   925 
   925 
   926 
   926 === Campaign management ===
   927 
   927 ==== <tt>!SaveCampaignVar(varname, value)</tt> ====
   928 
   928 Stores the value `value` (a string) into the campaign variable `varname` (also a string). Campaign variables allow you to save progress of a team in a certain campaign. Campaign variables are saved on a per-team per-campaign basis. They are written into the team file (see [ConfigurationFiles#TeamName.hwt]).
       
   929 
       
   930 ==== <tt>!GetCampaignVar(varname)</tt> ====
       
   931 Returns the value of the campaign variable `varname` as a string.
   929 
   932 
   930 == Functions affecting the GUI ==
   933 == Functions affecting the GUI ==
   931 
   934 
   932 === <tt>!AddCaption(text)</tt> ===
   935 === <tt>!AddCaption(text)</tt> ===
   933 Display an event text in the upper part of the screen. The text will be white and the caption group will be `capgrpMessage`.
   936 Display an event text in the upper part of the screen. The text will be white and the caption group will be `capgrpMessage`.