# HG changeset patch
# User almikes@aol.com
# Date 1438296011 0
# Node ID 6e77c79a845718d8c3be635f677b04ba2dd44b58
# Parent dff03a98693aeb394444df8f13c52ef979f91c3b
Add GetCampaignVar and SaveCampaignVar
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 ==