Navigation

    TripleA Logo

    TripleA Forum

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

    A Question about conditionAttachment Usage and Placement

    Map Making
    2
    3
    7
    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.
    • Stohrm
      Stohrm last edited by

      I've been in the process of revamping my version of "Path to Victory" which I had cloned into "Axis Path to Domination" and "Allied Path to Glory". I'm currently in the process of revamping the former into a "1939 Axis Campaign" using "Oztea 1939 Global" as reference.

      The issue I'm running into is that there are condition attachments in a variety of places. So, not knowing Java that well (yet), I was wondering if all the conditions can be organized into one area within the XML file and even sorted into Player Order based on the player to whom they are attached?

      I'm pretty sure that the same cannot be done with the Trigger attachments as one trigger can affect another.

      No doubt one condition can affect another and their order is important, but shouldn't all of Player 1's conditions precede those of Player 2's?

      Perhaps it should be all Player 1's Conditions then Triggers, followed by all Player 2's Conditions and then Triggers.

      Again, I don't really know - but there should be some way to keep the code better organized.

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

        @stohrm

        Hi storhm

        Yea oz 1939 is pretty sloppy. I just threw stuff in until it worked, as I didn't really know what I was doing. So not a good template to use.

        veqryn's Global 40 or hepp's TotalWorldWar probably pretty good guides. The Dog's Global Command Decision as well. There are others.

        My understanding is as long as the conditions come before the triggers, which I think are basically conditions now too, and are in order of what would be checked first, then you should be good to go.

        I just started putting the conditions above the trigger they were in so they'd all be in the same place. Some conditions are in multiple triggers and those were listed in the original conditions list.

        You can ask @wc_sumpton for more clarity on it.

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

          @beelee

          Thanks. I've been rereading through "Pact of Steel 2" and continue to learn what I can. I'm almost 70 now, so learning is taking longer than it did when I was younger.

          It does say in "2" that conditions should precede "any" triggers. It also says that meta-conditions need come after the conditions within (as I figured).

          The trick is to only move the conditions and not the triggers, at this point. It'll be a long boring process, but I'll have a better understanding of what everything does.

          The code I'm revamping is that of the "Path to Victory" game (that I modified) and not actually the "Oztea" game code. I was just using "Oztea" to know which territories were owned by whom in 1939. A few of the names didn't match and the sea zones were different, but I did get that part done.

          It was working on the Politics that are leading me to adjust the conditions. I'm also re-formatting the code as I move it, which I had started doing before but never finished.

          Last, but not least, I'm also adding more comments (mostly for my own benefit) so that I have a better idea of what each condition is actually checking.

          It also looks like a lot of the conditions can be recoded into for-next loops and I will eventually get around to doing that as well. This is especially true with many of the French conditions as there a plethora of them.

          So, thank you again.

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