Navigation

    TripleA Logo

    TripleA Forum

    • Register
    • Login
    • Search
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags

    Negating the loss of capital

    Map Making
    capital
    3
    4
    429
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • RogerCooper
      RogerCooper last edited by

      I want a power to be unaffected by the loss of a capital. I tried this code:

          <attachment name="rulesAttachment" attachTo="Germans" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player">
            <option name="retainCapitalNumber" value="0"/>
            <option name="retainCapitalProduceNumber" value="0"/>
          </attachment>
      
      

      I received the error:

      GameParseException: map name: 'file:/C:/Users/Roger/triplea/downloadedMaps/Hypothetical_Operations/games/Operation-Dandelion.xml', game name: 'Operation Dandelion', Missing property definition for option 'retainCapitalNumber' in attachment 'rulesAttachment'

      What am I doing wrong?

      1 Reply Last reply Reply Quote 1
      • alkexr
        alkexr last edited by

        Try playerAttachment instead of rulesAttachment in both name and javaClass.

        P 1 Reply Last reply Reply Quote 3
        • RogerCooper
          RogerCooper last edited by

          Thank you

          1 Reply Last reply Reply Quote 0
          • P
            PerfectMaple @alkexr last edited by

            @alkexr said in Negating the loss of capital:

            Try playerAttachment instead of rulesAttachment in both name and javaClass.mcdvoice

            Thank you for the explanation. It is clear for me.

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums