LuaGameplay.wiki
changeset 1918 6ba186f18a73
parent 1917 962f362690be
child 1919 d9cd57b53b6e
equal deleted inserted replaced
1917:962f362690be 1918:6ba186f18a73
   426 
   426 
   427 === <tt>!GetClanColor(clan)</tt> ===
   427 === <tt>!GetClanColor(clan)</tt> ===
   428 Returns the RGBA color of the chosen clan by its number. The color data type is described in [LuaOverview#Color].
   428 Returns the RGBA color of the chosen clan by its number. The color data type is described in [LuaOverview#Color].
   429 
   429 
   430 === <tt>!SetClanColor(clan, color)</tt> ===
   430 === <tt>!SetClanColor(clan, color)</tt> ===
   431 Sets the RGBA color of the chosen clan by its number. The color data type is described in [LuaOverview#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).
   431 Sets the RGBA color of the chosen clan by its number. The color argument works the same as in `AddTeam`. 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).
   432 
   432 
   433 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`).
   433 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`).
   434 
   434 
   435 == Campaign management ==
   435 == Campaign management ==
   436 === <tt>!SaveCampaignVar(varname, value)</tt> ===
   436 === <tt>!SaveCampaignVar(varname, value)</tt> ===