LuaAPI.wiki
changeset 1706 5acc46053f37
parent 1704 09694f0d4e90
child 1707 b11070b109aa
equal deleted inserted replaced
1705:39af8c72daef 1706:5acc46053f37
  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].
  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 other clans, otherwise things will break.
  1451 
  1451 
  1452 === Campaign management ===
  1452 === Campaign management ===
  1453 ==== <tt>!SaveCampaignVar(varname, value)</tt> ====
  1453 ==== <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]).
  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]).
  1455 
  1455