Subcategories

  • 3
  • 4
  • 20
  • 8
  • 1
  • 1
  • 2
  • 15
  • 118
  • 87
  • 43
  • 1
  • 7
  • 6
  • 19
  • 5
  • 17
  • 14
  • 8
  • 3

Recent Posts

  • 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
  • @wc_sumpton There is no Non_Aligned turn step. Non_Aligned is a nominal player that is collection of territories and units that don't anything except defend. They have no steps. This is probably why your suggestions were not working.

    I can't leave them as neutral because

    You can only change control of territory if it has actual player assigned to it. I needed to allow the Soviet_Union to attack Non_Aligned territories but not the others

    I was surprised that foreach="$MajorPower$^$NeutralArea$:$NeutralSetup$" worked. The variable system was well coded..

    read more
  • W

    @rogercooper

    First off, I applauded the fantastic skill demonstrated. Next, I would like to humbly apologize.

    During the discussion under topic Transferring Unit Control when asked "Ireland changes ownership, but the unit remains Non_Aligned" the proper reply should have been "The units in Ireland will only change at Non_Aligned endTurn step. Using 'changeUnitOwners' with a value 'Soviet_Union' for Ireland means that any Non_Aligned infantry unit in Ireland will change to Soviet_Union control during Non_Aligned endTurn step, irregardless of territory ownership."
    I did not understand then the difference between 'changeUnitOwners' and 'captureUnitOnEnteringBy'.

    What happens if one of Non_Aligned units change either by setup or combat. IMHO 'captureUnitOnEnteringBy' would work much better.

    Again, I am sorry for any confusion or problems I may have caused. And again, the coding presented shows great skill.

    Cheers...

    read more