3 Mar 2024, 20:19

@thedog said in 💥 1941 Global Command Decision - Official Thread:

An xml property would be good to choose between the two, but i'm conscious of Myrds time

You misunderstood. "requiresUnits" can be changed the same way "createsResourcesList" is done for upkeep.

Try this: Roll back TripleA to 2.6.14656, then add the following to you xml (after "Always_True" condition):

<!-- Remove requriements for sea units -->
<attachment name="triggerAttachment_Remove_requiresUnits_All_Seas" attachTo="Germany" javaClass="TriggerAttachment" type="player">
	<option name="conditions" value="conditionAttachment_Always_True"/>
	<option name="unitAttachmentName" value="UnitAttachment" count="unitAttachment"/>
	<option name="unitType" value="$All-Sea$"/>
	<option name="unitProperty" value="requiresUnits" count="-reset-"/>
	<option name="when" value="before:GermanyTechActivation"/>
</attachment>

<!-- Add Industry-Hvy to all sea units -->
<attachment name="triggerAttachment_Restore_Industry-Hvy_All_Seas" attachTo="Germany" javaClass="TriggerAttachment" type="player">
	<option name="conditions" value="conditionAttachment_Always_True"/>
	<option name="unitAttachmentName" value="UnitAttachment" count="unitAttachment"/>
	<option name="unitType" value="$All-Sea$"/>
	<option name="unitProperty" value="requiresUnits" count="-reset-Industry-Hvy"/>
	<option name="uses" value="1"/>
	<option name="when" value="before:GermanyCombatMove"/>
</attachment>

<!-- Add Industry Med to Convoy and Destroyer -->
<attachment name="triggerAttachment_Restore_Industry-Med_2_Units" attachTo="Germany" javaClass="TriggerAttachment" type="player">
	<option name="conditions" value="conditionAttachment_Always_True"/>
	<option name="unitAttachmentName" value="UnitAttachment" count="unitAttachment"/>
	<option name="unitType" value="Convoy:Destroyer"/>
	<!-- Adding so don't use reset -->
	<option name="unitProperty" value="requiresUnits" count="Industry-Med"/>
	<option name="uses" value="1"/>
	<option name="when" value="after:GermanyCombatMove"/>
</attachment>

Don't change anything for air or land units. This works!!

Cheers...