Changing CAPs and Cards

Post new mods and scenarios here.
Post Reply
User avatar
cbelva
Posts: 2188
Joined: Sat Mar 26, 2005 8:11 pm
Location: Nevada USA

Changing CAPs and Cards

Post by cbelva »

In creating new scenarios, is it possible to change the number of command action points and the number of cards a side receives? Thanks
Charles Belva
On Target Simulations LLC
User avatar
ericbabe
Posts: 11848
Joined: Wed Mar 23, 2005 3:57 am
Contact:

RE: Changing CAPs and Cards

Post by ericbabe »

Yes. After you save the scenario, edit the scenario XML file in an XML editor and you should find entries for CAPs and cards. It should look something like this:

<PlayerCapsForTurnList>
<PlayerCapsForTurn>
<PlayerName>Germans</PlayerName>
<CAPS>15</CAPS>
<Turn>0</Turn>
<AllTurns>true</AllTurns>
</PlayerCapsForTurn>
<PlayerCapsForTurn>
<PlayerName>Russians</PlayerName>
<CAPS>8</CAPS>
<Turn>0</Turn>
<AllTurns>true</AllTurns>
</PlayerCapsForTurn>
</PlayerCapsForTurnList>
<PlayerCardsForTurnList>
<PlayerCardsForTurn>
<PlayerName>Germans</PlayerName>
<CardsToDraw>2</CardsToDraw>
<Turn>1</Turn>
<AllTurns>false</AllTurns>
</PlayerCardsForTurn>
<PlayerCardsForTurn>
<PlayerName>Russians</PlayerName>
<CardsToDraw>2</CardsToDraw>
<Turn>1</Turn>
<AllTurns>false</AllTurns>
</PlayerCardsForTurn>
<PlayerCardsForTurn>
<PlayerName>Germans</PlayerName>
<CardsToDraw>1</CardsToDraw>
<Turn>0</Turn>
<AllTurns>true</AllTurns>
</PlayerCardsForTurn>
<PlayerCardsForTurn>
<PlayerName>Russians</PlayerName>
<CardsToDraw>1</CardsToDraw>
<Turn>0</Turn>
<AllTurns>true</AllTurns>
</PlayerCardsForTurn>
</PlayerCardsForTurnList>

You can edit these values or add tags to modify CAP and card numbers. If the <AllTurns> tag is "true" then the card or CAP attribute will be the default value for any turn in the game that is not specified explicitly in your list. (If there are multiple attributes with <AllTurns> true, then the behavior may be unpredictable.)

Hope this helps. Please feel free to ask any further questions. You can use free programs like Notepad++ or XML Notepad from Microsoft to edit XML files, or you can edit the raw XML in any vanilla text editor.
Image
Post Reply

Return to “Mods and Scenarios”