@ted-self Hi, how are you? I was wondering how you made those wooly mammoths able to be captured? I am trying to do a war of the roses scenario and I have some royal units who need to be captured.
Rounds 1-24, no TT owned, no units on the map.
Then round 25, place them on the map.
To me it does not sound a good idea, as players will avoid the new nations territory, knowing they will appear. The AI will not have a clue. But ...
@wc_sumpton I'm confused about what you mean by players only being allowed "one" player attachment. You have two in your code example, yet it worked at the time.
@wc_sumpton said in Change Unit Ownership? [Resolved]:
@slendymctendies
The following seems to work:
<!-- Remove Capital Requirement -->
<attachment foreach="$AllPlayers$" name="playerAttachment" attachTo="@AllPlayers@" javaClass="games.strategy.triplea.attachments.PlayerAttachment" type="player">
<option name="retainCapitalNumber" value="0"/>
<option name="retainCapitalProduceNumber" value="0"/>
<option name="giveUnitControl" value="$AllPlayers$"/>
<option name="giveUnitControlInAllTerritories" value="false"/>
</attachment>
<attachment foreach="$Territory$" name="triggerAttachment_Germans_SurrenderTo_Russians_@Territory@_ChangeOwnership" attachTo="Germans" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player">
<option name="trigger" value="conditionAttachment_Germans_SurrenderTo_Russians"/>
<option name="when" value="before:germansEndTurn"/>
<option name="changeOwnership" value="@Territory@:Germans:Russians:false"/>
<option name="uses" value="1"/>
</attachment>
<!-- change military units canBeGivenByTerritoryTo -->
<attachment name="triggerAttachment_canBeGivenByTerritoryTo_GermansToRussians" attachTo="Germans" javaClass="TriggerAttachment" type="player">
<option name="conditions" value="conditionAttachment_Germans_SurrenderTo_Russians"/>
<option name="unitAttachmentName" value="UnitAttachment" count="unitAttachment"/>
<option name="unitType" value="$AllUnits$"/>
<option name="unitProperty" value="canBeGivenByTerritoryTo" count="-reset-Russians"/>
<option name="when" value="after:germansPolitics"/>
<option name="uses" value="1"/>
</attachment>
<!-- Give unit control Germans to Russians -->
<attachment name="triggerAttachment_GiveUnitControl_GermansToRussians" attachTo="Germans" javaClass="TriggerAttachment" type="player">
<option name="conditions" value="conditionAttachment_Germans_SurrenderTo_Russians"/>
<option name="playerAttachmentName" value="PlayerAttachment" count="playerAttachment"/>
<option name="playerProperty" value="giveUnitControl" count="-reset-Russians"/>
<option name="when" value="after:germansPolitics"/>
<option name="uses" value="1"/>
</attachment>
<!-- Give give captured units Germans to Russians -->
<attachment name="triggerAttachment_GiveUnitControlInAllTerritories_GermansToRussians" attachTo="Germans" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player">
<option name="trigger" value="conditionAttachment_Germans_SurrenderTo_Russians"/>
<option name="when" value="after:germansPolitics"/>
<option name="playerAttachmentName" value="PlayerAttachment" count="playerAttachment"/>
<option name="playerProperty" value="giveUnitControlInAllTerritories" count="true"/>
<option name="uses" value="1"/>
</attachment>
Cheers...
So what do you mean by players only having one player attachment?
@poptech
Once a map has been updated on the server, you usually will notice it by the "Updates Available" register to be found when you hit "Download Maps". You can then start the update from there.
This applies to current pre-release versions of TripleA.
I haven't used the old stable for a while, but here IIRC the updated maps are represented by the map name showing in italics. Hit that name and a button to start the update will appear.
Note that savegames always run with the map-status at the time the game has been started. In other words: Updates of maps do not affect existent games.
@ted-self that's great. I don't mind. Today I noticed a missing connection between South China Sea and Arafura Sea.
Modern canals (Egypt, Panama) were removed from 350BC, fyi.
@mrquadratic Checkout "New World Order Variants", which has neutrality as an option.
You could also place a bunch of bunkers on the frontier, and then remove them when you are ready to fight.
@wc_sumpton Yeah, I initially wanted to figure out how to remove AA when disabled, but then I figured removing the AA capabilities of buildings would incentivize purchasing AA guns to protect them.
I initially tried using "isAA" = "false", but this has the side-effect of making the game think it was an actual combat unit and therefore players could use them as sacrificial pawns and immediately deny the enemy their spoils if facing an overwhelming force, which was something I definitely didn't want either.
You understood the original post correctly. I just decided to take a different route a day or two after posting.
@thedog I made a new map, thanks for the encouragement. It's called Alexander350 (world conquest set in 350BC). .zip in Maps & Mods, tell me what you think.
It does use modern region names (Oil Wars map), and units from Middle Earth with only minor tweaks.
The PoliticalStateOverview.java file has the color coding for the three relationship archeTypes, meaning this functionality could be added but of course its not accessible from the mapmaking point of view.
As there is no Devs working on TripleA at the moment this will not change any time soon.
@thedog tooltips.properties is what I was missing.
I'll have to review that map further. Looking right off, arena has a very accessible xml file.
Thanks for the welcome and help!
@beornthebold-0 This is the whole logic of being unable to move to someone's territories. It means that you can't move to someone's territories. You are not going to be able to get TripleA to move in some directions and not others.
You could use triggered events to simulate the evacuation of a specific base, but it would be difficult to do this on a large scale.
@cernel Was there ever a way? Anyway then I guess a second version of at least the two most common maps would be hugely appreciated for us who like tech (2nd Version and 3rd Balanced)