Navigation

    TripleA Logo

    TripleA Forum

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

    Allow users to de-select objectives when starting games

    Feature Requests & Ideas
    4
    6
    1309
    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.
    • S
      simon33 last edited by

      Some players like to play without certain objectives. There's been a request made to allow users to select objectives that they don't want to play with in certain games. Is it possible to add a screen, perhaps under map options where a game will be started with a few objectives removed.

      At the moment, if you don't want to play with all objectives you have to edit the PUs (or whatever) out of the game after the objective is collected.

      Apparently it is possible to do this with techs. How easy is this to implement?

      B alkexr C 3 Replies Last reply Reply Quote 0
      • B
        beelee @simon33 last edited by

        @simon33 depends on how big you go. 45 or so total objectives in BM3 with 25 new ones. Probably take 10-15 minutes an objective depending on how familiar one is with the xml. Plus you'd need to add the tech phase back in.

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

          @simon33 With some xml knowledge, adding a map option that disables an objective requires changing ~7 lines per objective, and done en masse at most 2 minutes per objective. Just create a new map option, a condition that checks for the map option and add that check as an additional condition option to the objective.

          Example modification of POS2:

          <attachment name="objectiveAttachmentGermans1_EasternEurope" attachTo="Germans" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player">
                <option name="objectiveValue" value="4"/>
                <option name="alliedOwnershipTerritories" value="East Balkans:Eastern Europe:Ukraine S.S.R.:Belorussia:West Russia:Norway:Karelia S.S.R.:Archangel:Caucus" count="7"/>
          </attachment>
          

          Into this:

          <attachment name="THIS_IS_THE_CONDITION_TO_BE_ADDED" attachTo="Germans" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player">
                <option name="gameProperty" value="THIS IS THE MAP OPTION TO BE ADDED"/>
          </attachment>
          
          <attachment name="objectiveAttachmentGermans1_EasternEurope" attachTo="Germans" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player">
                <option name="condition" value="THIS_IS_THE_CONDITION_TO_BE_ADDED"/>
                <option name="objectiveValue" value="4"/>
                <option name="alliedOwnershipTerritories" value="East Balkans:Eastern Europe:Ukraine S.S.R.:Belorussia:West Russia:Norway:Karelia S.S.R.:Archangel:Caucus" count="7"/>
          </attachment>
          

          And, to the end of the xml:

          <property name="THIS IS THE MAP OPTION TO BE ADDED" value="true" editable="true">
                <boolean/>
          </property>
          
          S B 2 Replies Last reply Reply Quote 2
          • C
            Cernel Moderators @simon33 last edited by

            @simon33 What @alkexr posted is the correct way to do what you are proposing. The downside, of course, is that the game options would become quite long. You don't need to hack it using tech (and, if doing it in any other ways, which I wouldn't, I would rather do it with user actions).

            1 Reply Last reply Reply Quote 0
            • S
              simon33 @alkexr last edited by

              @alkexr That's just what I wanted! Thanks.

              1 Reply Last reply Reply Quote 0
              • B
                beelee @alkexr last edited by beelee

                @alkexr much better way then I've been doing it. This is all i can find on "gameProperty" in POS2. gameProperty values: can be set equal to the exact string of any boolean game property option, including custom made up ones.

                Maybe it could be updated with your example for uneducated people like myself

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