Subcategories

Recent Posts

  • B

    @victoryfirst

    Hi Victory

    If what the Dog suggested doesn't work try adding "UnitAttachmentName" to the trigger. Idk if it's needed but that's always the way I have done it.

    Screenshot from 2026-03-16 06-53-36.png

    So the above takes a defend zero Transport and makes it defend at 1. Should just be able to swap in the max built unitAttachment. And have a condition for whatever rd you want it to fire.

    You might want to set it to rd 2 for testing 🙂

    read more
  • @victoryfirst
    Maybe, try the following in a trigger with a condition

    <option name="unitType" value="axis-truck"/> <option name="unitProperty" value="maxBuiltPerPlayer" count="2"/> <option name="uses" value="1"/>

    read more
  • At the start of the game, the Axis powers have only one truck available to them (reflected by <option name="maxBuiltPerPlayer" value="1"/>)

    <attachment name="unitAttachment" attachTo="axis-truck" javaClass="games.strategy.triplea.attachments.UnitAttachment" type="unitType"> <option name="movement" value="2"/> <option name="attack" value="0"/> <option name="defense" value="0"/> <!-- <option name="canBeDamaged" value="true"/> --> <!-- <option name="maxDamage" value="1"/> --> <!-- <option name="canDieFromReachingMaxDamage" value="true"/> --> <option name="isLandTransport" value="true"/> <option name="transportCapacity" value="6"/> <option name="isLandTransportable" value="false"/> <option name="isInfrastructure" value="true"/> <option name="isAAmovement" value="true"/> <option name="destroyedWhenCapturedBy" value="British:Americans"/> <option name="isConstruction" value="true"/> <option name="constructionsPerTerrPerTypePerTurn" value="1"/> <option name="maxConstructionsPerTypePerTerr" value="1"/> <option name="maxBuiltPerPlayer" value="1"/> <option name="constructionType" value="axis-truck"/> </attachment>

    At the start of round 7, the axis power should have an extra truck available. So the value needs to change to 2. Is it possible to do so via a trigger?

    read more
  • B

    @rogercooper said in Problem with foreach:

    The variable system was well coded..

    yea redrum did that. He was working on TWW and realized he needed about 1500 triggers so said F it and wrote the code.

    But you probably already knew that 🙂

    read more