Add GetCampaignVar and SaveCampaignVar
authoralmikes@aol.com
Thu, 30 Jul 2015 22:40:11 +0000
changeset 577 6e77c79a8457
parent 576 dff03a98693a
child 578 b362aae4143f
Add GetCampaignVar and SaveCampaignVar
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 @@
 ==== <tt>!SetClanColor(clan, color)</tt> ====
 Sets the color of the chosen clan by its number. The color data type is described in [LuaAPI#Color].
 
-
+=== Campaign management ===
+==== <tt>!SaveCampaignVar(varname, value)</tt> ====
+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]).
 
-
+==== <tt>!GetCampaignVar(varname)</tt> ====
+Returns the value of the campaign variable `varname` as a string.
 
 == Functions affecting the GUI ==