Navigation

    TripleA Logo

    TripleA Forum

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

    relationshipInitialize - Resolved -

    XML Options Browser
    2
    6
    1079
    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.
    • Mahks
      Mahks last edited by Mahks

      POS2 says "Make sure you cover all possibilities!"

      What happens if you don't?

      Does it mean there is no default relationship and the engine errors out?

      General_Zod 2 Replies Last reply Reply Quote 0
      • General_Zod
        General_Zod Moderators @Mahks last edited by General_Zod

        @mahks

        edit: applies to relationshipTypes

        There are no unseen default relationships in the xml, however there are premade so called defaults relationships that can be used.

        But basically what they are getting at. Is if you make a complex diplomacy structure you need to have working logic for all possibilities if not it will just be messed up.

        1 Reply Last reply Reply Quote 0
        • General_Zod
          General_Zod Moderators @Mahks last edited by General_Zod

          @mahks

          I'm looking further. You talking about the relationshipInitialize.

          For this actually, the default will be "default_war_relation" for all players not allied if nothing is specified.

          For allies will have "default_allied_relation". And the player named "Neutral" will have a "null_relation"

          The roundValue stuff is most likely setting relationships via game rounds. But not sure I never use more than 1 there.

          The alliances are specified in playerList.

          1 Reply Last reply Reply Quote 0
          • Mahks
            Mahks last edited by

            My search does not find default_war_relation or default_allied_relation in POS2 where are they used?

            General_Zod 1 Reply Last reply Reply Quote 0
            • General_Zod
              General_Zod Moderators @Mahks last edited by

              @mahks

              They are not listed in POS2. If relationshipInitialize is omitted entirely, these values will default into game based on values for alliances in the playerList section.

              1 Reply Last reply Reply Quote 0
              • Mahks
                Mahks last edited by

                Ah, got it, Thanks!

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