TripleA Logo TripleA Forum
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags
    • Register
    • Login

    Simple clarification needed.

    Scheduled Pinned Locked Moved Map Making
    8 Posts 4 Posters 1.9k Views 4 Watching
    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.
    • HeppsH Offline
      Hepps Moderators
      last edited by

      As I am getting more and more into XML manipulation I find things that are not very clearly defined.

      Can anyone tell me what the "true" and "false" attributes govern in this example?

      	whenCapturedChangesInto				values: allows a unit to change into a different unit when captured from a specific player to a specific player.  "fromPlayer:toPlayer:transferAttributes:unitType:numberOfUnits".  accepts "any" instead of a player name. allows multiple.
      													examples: <option name="whenCapturedChangesInto" value="any:any:true:Minor_Factory:1"/> and <option name="whenCapturedChangesInto" value="Russians:Germans:false:gold:3:lumber:1"/>
      

      "A joyous heart sours with the burden of expectation"
      Hepster

      1 Reply Last reply Reply Quote 0
      • General_ZodG Offline
        General_Zod Moderators
        last edited by

        Maybe for the transfer of ability.

        1 Reply Last reply Reply Quote 0
        • HeppsH Offline
          Hepps Moderators
          last edited by

          Well the abilities of the unit it turns into are governed by how that unit is designed already within the XML. So that doesn't make any sense. If a unit turns into a factory then the XML is going to look for a factory within the XML, regardless of what the unit could do before it was captured.

          So either this is a redundancy... or I am missing something.

          "A joyous heart sours with the burden of expectation"
          Hepster

          General_ZodG 1 Reply Last reply Reply Quote 0
          • General_ZodG Offline
            General_Zod Moderators @Hepps
            last edited by

            @hepps

            I never tried it personally, but it seems to imply that.

            "fromPlayer:toPlayer:transferAttributes:unitType:numberOfUnits"

            1 Reply Last reply Reply Quote 0
            • alkexrA Offline
              alkexr
              last edited by

              Transfer of hit / bombing damage, I think?

              "For the world is changing: I feel it in the water, I feel it in the earth, and I smell it in the air."

              HeppsH 1 Reply Last reply Reply Quote 2
              • HeppsH Offline
                Hepps Moderators @alkexr
                last edited by

                @alkexr That would certainly make more sense.

                "A joyous heart sours with the burden of expectation"
                Hepster

                redrumR 1 Reply Last reply Reply Quote 0
                • redrumR Offline
                  redrum Admin @Hepps
                  last edited by

                  @hepps This is the same as the recently added whenDamagedChangesInto parameter. If 'true' then the new unit gets the existing units "state" so currently I believe just hit point and bombing damage.

                  TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

                  HeppsH 1 Reply Last reply Reply Quote 2
                  • HeppsH Offline
                    Hepps Moderators @redrum
                    last edited by

                    @redrum @alkexr Thanks guys.

                    "A joyous heart sours with the burden of expectation"
                    Hepster

                    1 Reply Last reply Reply Quote 0

                    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                    With your input, this post could be even better 💗

                    Register Login
                    • 1 / 1
                    • First post
                      Last post
                    Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums