ConfigurationFiles.wiki
changeset 2077 514babfbad9e
parent 2074 de9ad743666e
child 2094 255295dfbd3d
equal deleted inserted replaced
2076:0b6e80767d96 2077:514babfbad9e
   371 === {{{[Campaign%20<CAMPAIGN_NAME>]}}} ===
   371 === {{{[Campaign%20<CAMPAIGN_NAME>]}}} ===
   372 This section stores campaign variables which are stored and read by Lua scripts. Replace “`<CAMPAIGN_NAME>` with the folder name of the campaign. Example: The section for “A Classic Fairytale” would be “`[Campaign%20A_Classic_Fairytale]`”.
   372 This section stores campaign variables which are stored and read by Lua scripts. Replace “`<CAMPAIGN_NAME>` with the folder name of the campaign. Example: The section for “A Classic Fairytale” would be “`[Campaign%20A_Classic_Fairytale]`”.
   373 
   373 
   374 Campaign variables are stored on a key-value basis, where the key is the name of the campaign variable and the value is the value of the campaign variable.
   374 Campaign variables are stored on a key-value basis, where the key is the name of the campaign variable and the value is the value of the campaign variable.
   375 
   375 
   376 Campaign variable names and their values can are chosen by the Lua script authors, but there are some special variables which are used to determine which missions are available in the main menu, and since 0.9.23, also to determine which missions and campaigns have been completed.
   376 Campaign variable names and their values can are chosen by the Lua script authors, but there are some special variables which are used to determine which missions are available in the main menu and to determine which missions and campaigns have been completed.
   377 
   377 
   378 For linear campaigns, the variables `Progress` and `Won` are used.
   378 For linear campaigns, the variables `Progress` and `Won` are used.
   379 For non-linear campaigns, the variables `UnlockedMissions`, `MissionX`, `MissionXWon` and `Won` are used.
   379 For non-linear campaigns, the variables `UnlockedMissions`, `MissionX`, `MissionXWon` and `Won` are used.
   380 The variables should not be mixed up.
   380 The variables should not be mixed up.
   381 
   381 
   396 {{{
   396 {{{
   397 [Campaign%20Simple_Campaign]
   397 [Campaign%20Simple_Campaign]
   398 Progress=4
   398 Progress=4
   399 }}}
   399 }}}
   400 
   400 
   401 Simple 0.9.23 campaign with 6 missions. This campaign and all its missions have been unlocked and completed:
   401 Simple campaign with 6 missions. This campaign and all its missions have been unlocked and completed:
   402 
   402 
   403 {{{
   403 {{{
   404 [Campaign%20Simple_Campaign_2]
   404 [Campaign%20Simple_Campaign_2]
   405 Progress=6
   405 Progress=6
   406 Won=true
   406 Won=true