Random Map Maker Assistance

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Random Map Maker Assistance

RODTHEGOD
I'm having difficulty transferring units to another players control like in the map Total World War with the major and minor belligerents. I went through it's xml and the pact of steel 2 xml and found this stuff which I transferred to the scenario I'm making

               
(in Total World War territory attachments)
                        <option name="changeUnitOwners" value="Britain"/>
                        <option name="changeUnitOwners" value="Canada"/>

(how pos2 states territory attachments)                  
                <option name="changeUnitOwners" value="Canadians:British"/>


(player attachments as from tww)
<attatchment name="playerAttatchment" attatchTo="British" javaClass="games.strategy.triplea.attatchments.PlayerAttachment" type="player">
                              <option name="retainCapitalNumber" value="1"/>
                              <option name="giveUnitControl" value="Canadians"/>
                              <option name="destroysPUs" value="true"/>
                         </attatchment>


                         <attatchment name="playerAttatchment" attatchTo="Canadians" javaClass="games.strategy.triplea.attatchments.PlayerAttachment" type="player">
                              <option name="giveUnitControl" value="British"/>
                              <option name="retainCapitalNumber" value="1"/>
                              <option name="destroysPUs" value="true"/>
                         </attatchment>
Reply | Threaded
Open this post in threaded view
|

Re: Random Map Maker Assistance

Peuri
Could this property have something to do with it?

                                <property name="Give Units By Territory" value ="true" editable="false">
                                                <boolean/>
                                </property>

"allows a player to give units to another player if true. units must have canBeGivenByTerritory and territories must have changeUnitOwners and the players must have the player attachment giveUnitControl"