LuaAPI.wiki
changeset 1711 d2397947f3d7
parent 1708 cf8731763e9f
child 1715 5cac9aadcc27
equal deleted inserted replaced
1710:f99ab21a3e34 1711:d2397947f3d7
  1445 
  1445 
  1446 ==== <tt>!GetClanColor(clan)</tt> ====
  1446 ==== <tt>!GetClanColor(clan)</tt> ====
  1447 Returns the RGBA color of the chosen clan by its number. The color data type is described in [LuaAPI#Color].
  1447 Returns the RGBA color of the chosen clan by its number. The color data type is described in [LuaAPI#Color].
  1448 
  1448 
  1449 ==== <tt>!SetClanColor(clan, color)</tt> ====
  1449 ==== <tt>!SetClanColor(clan, color)</tt> ====
  1450 Sets the RGBA color of the chosen clan by its number. The color data type is described in [LuaAPI#Color]. The new clan color *must* be different from the color of all clans.
  1450 Sets the RGBA color of the chosen clan by its number. The color data type is described in [LuaAPI#Color]. The new clan color *must* be different from the color of all clans (you can't use this function to change clan memberships of teams).
       
  1451 
       
  1452 Note: The stats graph does not support changing clan colors. If the clan colors change in mid-game, the graph might get confused and shows weird stuff. You may want to turn off the graph with if this is the case (see `SendHealthStatsOff`).
  1451 
  1453 
  1452 === Campaign management ===
  1454 === Campaign management ===
  1453 ==== <tt>!SaveCampaignVar(varname, value)</tt> ====
  1455 ==== <tt>!SaveCampaignVar(varname, value)</tt> ====
  1454 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]).
  1456 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]).
  1455 
  1457