# HG changeset patch # User almikes@aol.com # Date 1438297046 0 # Node ID 9895045e9963fac94bd14af88ed02eb801349101 # Parent b362aae4143faa5c4691b14ac18788ed557462eb Updated SaveCampaignVar / GetCampaignVar links diff -r b362aae4143f -r 9895045e9963 LuaAPI.wiki --- a/LuaAPI.wiki Thu Jul 30 22:51:31 2015 +0000 +++ b/LuaAPI.wiki Thu Jul 30 22:57:26 2015 +0000 @@ -927,8 +927,10 @@ ==== !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]). +There are some special campaign variables which are used by Hedgewars to determine which missions to display in the campaign menu. This is described [ConfigurationFiles#%5BCampaign%20%3CCAMPAIGN_NAME%3E%5D here]. + ==== !GetCampaignVar(varname) ==== -Returns the value of the campaign variable `varname` as a string. +Returns the value of the campaign variable `varname` as a string. See also `SaveCampaignVar`. == Functions affecting the GUI ==