Changing CAPs and Cards (Full Version)

All Forums >> [New Releases from Matrix Games] >> Conflict of Heroes Series >> Mods and Scenarios



Message


cbelva -> Changing CAPs and Cards (6/5/2012 5:09:40 PM)

In creating new scenarios, is it possible to change the number of command action points and the number of cards a side receives? Thanks




ericbabe -> RE: Changing CAPs and Cards (6/5/2012 5:46:33 PM)

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.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
2.734375E-02