diff -r dff03a98693a -r 6e77c79a8457 LuaAPI.wiki --- a/LuaAPI.wiki Thu Jul 30 22:19:01 2015 +0000 +++ b/LuaAPI.wiki Thu Jul 30 22:40:11 2015 +0000 @@ -923,9 +923,12 @@ ==== !SetClanColor(clan, color) ==== Sets the color of the chosen clan by its number. The color data type is described in [LuaAPI#Color]. - +=== Campaign management === +==== !SaveCampaignVar(varname, value) ==== +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]). - +==== !GetCampaignVar(varname) ==== +Returns the value of the campaign variable `varname` as a string. == Functions affecting the GUI ==