-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2688 from NickAragua/objective_modifier_update
contract objective update
- Loading branch information
Showing
11 changed files
with
136 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
The following is an example contract definition file: | ||
|
||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<ScenarioTemplate> | ||
<alliedFacilityCount>-0.3</alliedFacilityCount> | ||
<briefing>Protect attached trainees.</briefing> | ||
<contractTypeName>Cadre Duty</contractTypeName> | ||
<hostileFacilityCount>0</hostileFacilityCount> | ||
<scenarioOdds> | ||
<scenarioOdds>10</scenarioOdds> | ||
<scenarioOdds>10</scenarioOdds> | ||
<scenarioOdds>10</scenarioOdds> | ||
<scenarioOdds>10</scenarioOdds> | ||
</scenarioOdds> | ||
<deploymentTimes> | ||
<deploymentTimes>0</deploymentTimes> | ||
<deploymentTimes>1</deploymentTimes> | ||
<deploymentTimes>2</deploymentTimes> | ||
<deploymentTimes>3</deploymentTimes> | ||
</deploymentTimes> | ||
<objectiveParameters> | ||
<objectiveParameter> | ||
<objectiveType>AlliedFacilityControl</objectiveType> | ||
<objectiveCount>-0.25</objectiveCount> | ||
</objectiveParameter> | ||
<objectiveParameter> | ||
<objectiveCount>-0.25</objectiveCount> | ||
<objectiveType>SpecificScenarioVictory</objectiveType> | ||
<objectiveScenarios> | ||
<objectiveScenario>Irregular Forces.xml</objectiveScenario> | ||
</objectiveScenarios> | ||
</objectiveParameter> | ||
<objectiveParameter> | ||
<objectiveType>FacilityDestruction</objectiveType> | ||
<objectiveCount>-0.25</objectiveCount> | ||
</objectiveParameter> | ||
<objectiveParameter> | ||
<objectiveCount>-0.25</objectiveCount> | ||
<objectiveType>AnyScenarioVictory</objectiveType> | ||
<objectiveScenarioModifiers> | ||
<objectiveScenarioModifier>AlliedTraineesGround.xml</objectiveScenarioModifier> | ||
<objectiveScenarioModifier>AlliedTraineesAir.xml</objectiveScenarioModifier> | ||
</objectiveScenarioModifiers> | ||
</objectiveParameter> | ||
</objectiveParameters> | ||
</ScenarioTemplate> | ||
|
||
Let's break it down. | ||
|
||
alliedFacilityCount - Decimal. The number of allied facilities to seed for the entire contract, split somewhat evenly among the tracks. Numbers less than zero indicate that the number of allied facilities should be scaled to the number of contract required lances. Avoid setting this too high, as the player will be swamped with allied reinforcements. | ||
|
||
briefing - a (preferably brief) text description of the contract. | ||
|
||
contractTypeName - the name of the contract | ||
|
||
hostileFacilityCount - Decimal. Exactly like alliedFacilityCount, except for hostile facilities. Avoid setting this too high, as the player will be swamped with hostile reinforcements. | ||
|
||
scenarioOdds - a list of base odds that a scenario will occur a) for a require lance on monday, b) when a lance is deployed to a hex on a track that does not have an allied facility. Picked randomly from the list for each track. | ||
|
||
deploymentTimes - a list of deployment times, in days, for when a force gets assigned to a scenario. Once assigned, a force (and any reinforcements, and, theoretically, in the future, any salvage) will not return for the specified number of days. Picked randomly from the list for each track. | ||
|
||
globalScenarioModifiers/globalScenarioModifier - a list of all scenario modifier file names to apply to any scenario in this contract. Use sparingly. | ||
|
||
objectiveParameters - a list of objectives for the contract. Its child elements follow: | ||
|
||
objectiveCount - Decimal. How much of this particular objective to generate. A number less than zero indicates that it's a scaling multiplier to the number of contract required lances. Avoid setting this too low or too high, as it will lead to boredom or craziness due to either nothing to do or way too much to do. | ||
|
||
objectiveScenarios/objectiveScenario - a list of possible scenario file names pre-seeded for this particular objective, that need to be completed in order too meet this objective. Ignored AnyScenarioVictory objective type. | ||
|
||
objectivescenarioModifiers/objectiveScenarioModifier - a list of scenario modifiers file names to be applied to objective scenarios. Note that for AnyScenarioVictory, these modifiers will be applied to *all* scenarios, and thus this should be used sparingly. | ||
|
||
|
||
objectiveType - the class of objective. There are four types: | ||
AnyScenarioVictory - victory in any scenario. | ||
SpecificScenarioVictory - victory in specific pre-seeded scenarios, from the list in objectiveScenarios. | ||
FacilityDestruction - drops some hostile facilities on the map, which the player must seize control over/destroy. | ||
AlliedFacilityControl - drops some allied facilities on the map, which the player must retain control over (it is possible to retake if they were captured). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters