Subcategories

  • 1
  • 1
  • 1
  • 1
  • 24
  • 114
  • 51
  • 17
  • 2
  • 11
  • 19
  • 9
  • 6
  • 1
  • 4
  • 3
  • 3
  • 9
  • 19
  • 36

Recent Posts

  • @beelee I think it is only supported on a 1:* basis. I don't think anyone has ever suggested doing it the other way.

    read more
  • B

    Does anybody know of a way to have 2 units of the same type required to give support to 1 unit ? So basically the opposite of "number".

    <option name="number" value="2"/>

    I kinda doubt it can be done but though I'd ask anyway

    read more
  • B

    @rogercooper
    As a alternative to the Feudal Japan approach a custom game property RUS AI can be set manually if Russians are to be played by the AI.

    <property name="RUS AI" value="true" editable="true"/>

    "movementRestrictionTerritories" is a player "RulesAttachment", a trigger can overwrite the value.

    <attachment name="rulesAttachment" attachTo="Russians" javaClass="RulesAttachment" type="player"> </attachment> <attachment name="conditionAttachmentRus1" attachTo="Russians" javaClass="RulesAttachment" type="player"> <option name='gameProperty' value='RUS AI'/> </attachment> <attachment name="triggerAttachmentRus1" attachTo="Russians" javaClass="TriggerAttachment" type="player"> <option name="conditions" value="conditionAttachmentRus1"/> <option name="when" value="before:russianPurchase"/> <option name="playerAttachmentName" value="RulesAttachment" count="rulesAttachment"/> <option name="playerProperty" value="movementRestrictionTerritories" count="India:15 Sea Zone"/> <option name="playerProperty" value="movementRestrictionType" count="disallowed"/> <option name='uses' value='1'/> </attachment>

    I'm only testing the trigger once based on "RUS AI". To apply/clear movementRestrictionTerritories based on the ownership of India, I think you would need 2 opposite triggers based on conditionAttachmentRus1.

    If RUS_AI: trigger1 (set movementRestrictionTerritories)
    else: trigger2 (clear movementRestrictionTerritories).

    read more
  • R

    @butterw A switch unit is a non-functional unit that exists just for triggers. Check out the Feudal Japan scenario to see it in use.

    For changing restrictions take a look at the trigger "triggerAttachmentChinese4_ChineseOverrunTheirBorders" in the PactOfSteel2 scenario.

    read more