• 2
  • 58
  • 19
  • 4
  • 20
  • 1
  • 8
  • 7
  • 10
  • 103
  • 1
  • 9
  • 96
  • 1
  • 4
  • 2
  • 8
  • 1
  • 265
  • 3

Recent Posts

  • G

    @wc_sumpton
    So the error is on the ADD wherein 5/4 both got set correctly, but SUB overwrote the 4 with the 3 as it should.
    I'll break the unitProperty modifiers into separate triggerAttachments and call activateTrigger.
    Thank you.

    read more
  • W

    @gregorek

    The values are being grouped together.

    <option name="unitType" value="pterodactylus_I"/> <option name="unitProperty" value="movement" count="5"/> <option name="unitType" value="sharovipteryx_I"/> <option name="unitProperty" value="movement" count="4"/>

    Is being red like

    <!-- unitType can take multiple values --> <option name="unitType" value="pterodactylus_I:sharovipteryx_I"/> <!-- unitProperty can not take multiple values --> <option name="unitProperty" value="movement" count="5"/> <!-- The first value is being overwritten --> <option name="unitProperty" value="movement" count="4"/>

    Cheers...

    read more
  • G

    PROGRESS UPDATE
    I will move this discussion to Map/Mods, but have one last issue semi-appropriate here. Confirming the player.unit.tagging for buying techs works with one problem. The process 1) buy shroom named birnbaums to make birds fly faster. 2) place shroom anywhere. 3) trigger deletes shroom and plants 6 birnbaum (no s) in capital. 4) grove reduces by one after nonCombatMove each round. 5) when gone, trigger returns movement speed to normal.
    All going well, except for stage 5. pterodactylus_I movement in hills is a 4 (the max value, terrain effects reduce elsewhere), but it got reset to a 3. Code for removal (SUB) is reverse of code for initializing (ADD), which did not have a problem assigning two properties different values. Will investigate further tomorrow for coding error, but maybe triggers are only supposed to handle one unitProperty value and I'll need to activate separate triggers (???). The movement clearly says 4 in code, but only reset to 3.

    <attachment name="triggerAttachmentPliensbachianADDbirnbaums" attachTo="Pliensbachian" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player"> <option name="conditions" value="conditionAttachmentPliensbachianbirnbaums"/> <option name="when" value="after:PliensbachianPlace"/> <option name="removeUnits" value="all:birnbaums" count="1"/> <option name="placement" value="Fwi:birnbaum" count="6"/> <option name="unitType" value="pterodactylus_I"/> <option name="unitProperty" value="movement" count="5"/> <option name="unitType" value="sharovipteryx_I"/> <option name="unitProperty" value="movement" count="4"/> </attachment> <attachment name="triggerAttachmentPliensbachianSUBbirnbaum" attachTo="Pliensbachian" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player"> <option name="conditions" value="conditionAttachmentPliensbachianONEbirnbaum:conditionAttachmentPliensbachianNOTTWObirnbaum"/> <option name="when" value="after:PliensbachianNonCombatMove"/> <option name="removeUnits" value="Fwi:birnbaum" count="666"/> <option name="unitType" value="pterodactylus_I"/> <option name="unitProperty" value="movement" count="4"/> <option name="unitType" value="sharovipteryx_I"/> <option name="unitProperty" value="movement" count="3"/> </attachment>

    What happened?

    read more
  • @beelee GREAT IDEA

    THANK YOU B

    read more