equal
deleted
inserted
replaced
925 |
925 |
926 === Campaign management === |
926 === Campaign management === |
927 ==== <tt>!SaveCampaignVar(varname, value)</tt> ==== |
927 ==== <tt>!SaveCampaignVar(varname, value)</tt> ==== |
928 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]). |
928 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]). |
929 |
929 |
|
930 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]. |
|
931 |
930 ==== <tt>!GetCampaignVar(varname)</tt> ==== |
932 ==== <tt>!GetCampaignVar(varname)</tt> ==== |
931 Returns the value of the campaign variable `varname` as a string. |
933 Returns the value of the campaign variable `varname` as a string. See also `SaveCampaignVar`. |
932 |
934 |
933 == Functions affecting the GUI == |
935 == Functions affecting the GUI == |
934 |
936 |
935 === <tt>!AddCaption(text)</tt> === |
937 === <tt>!AddCaption(text)</tt> === |
936 Display an event text in the upper part of the screen. The text will be white and the caption group will be `capgrpMessage`. |
938 Display an event text in the upper part of the screen. The text will be white and the caption group will be `capgrpMessage`. |