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

    Russian Revolution

    Scheduled Pinned Locked Moved Map Making
    48 Posts 3 Posters 9.1k Views 3 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.
    • VictoryFirstV Offline
      VictoryFirst
      last edited by

      @beelee

      I am getting this error:
      7c13d194-a2d5-4269-b6ad-067f52447235-image.png

      I added the UserAction as a step to the sequence but I apparently did it incorrectly?

      1 Reply Last reply Reply Quote 0
      • VictoryFirstV Offline
        VictoryFirst
        last edited by

        @beelee I got it to work 🙂 It had to be UserActions lol, an extra -s.

        Can you, or someone please explain what all these messages mean?

        f100fc6a-1987-43dd-9e59-c6203f6b174b-image.png

        df45ad0c-e41d-4867-ac8b-b015a07713c4-image.png

        ea9064ea-2142-41c6-aef4-fc593b5f1e3c-image.png

        wc_sumptonW 1 Reply Last reply Reply Quote 0
        • wc_sumptonW Offline
          wc_sumpton @VictoryFirst
          last edited by

          @victoryfirst

          You will need to create a actionstext.properties file as a text file, with something like:

          Russian_Revolution.BUTTON=[Begin] Begin the Russian Revolution
          Russian_Revolution.DESCRIPTION=The Russian have revolted, will you allow this.
          Russian_Revolution.NOTIFICATION_SUCCESS=The Russian Revolution has begon.
          Russian_Revolution.OTHER_NOTIFICATION_SUCCESS=The Russians are in a revolution.
          Russian_Revolution.NOTIFICATION_FAILURE=You have chosen to stop the revolution!
          Russian_Revolution.OTHER_NOTIFICATION_FAILURE=Germany has not allowed the Russian to revolt!
          Russian_Revolution.ACCEPT_QUESTION=Do you agree with Germany to begin your revolution?
          

          And it should me save in you "map" directory like "map.properties"

          Cheers...

          VictoryFirstV 1 Reply Last reply Reply Quote 3
          • VictoryFirstV Offline
            VictoryFirst @wc_sumpton
            last edited by

            @wc_sumpton

            Ah so that's how you edit that text! Thank you very much @wc_sumpton!

            Heh heh I love this 🙂 I didn't know this was possible 😁

            f1c87e23-1742-4df7-8df5-2627ce721de6-image.png

            8e837c98-cc10-4e57-a993-0ad1c124a7e9-image.png

            Thank you for the suggestion @beelee it works perfectly!

            wc_sumptonW 1 Reply Last reply Reply Quote 2
            • wc_sumptonW Offline
              wc_sumpton @VictoryFirst
              last edited by

              @victoryfirst

              @beelee tag-teem!👍 😉

              Cheers...

              B 1 Reply Last reply Reply Quote 3
              • B Online
                beelee @wc_sumpton
                last edited by

                @wc_sumpton

                heh heh you did the heavy lifting 🙂

                1 Reply Last reply Reply Quote 3
                • VictoryFirstV Offline
                  VictoryFirst
                  last edited by VictoryFirst

                  @wc_sumpton

                  I realized my conditions for triggering the revolution don't work for all cases. To list the rules once again:

                  All of the following needs to be accomplished by the Central Powers:

                  • 3 or more territories adjacent to Moscow controlled (NOT contested)
                  • 1 more original Russian territory controlled/contested
                  • Moscow is controlled by Russia or contested (NOT controlled by Central Powers)

                  This is my code:

                  <attachment name="conditionAttachmentBorderTerritories" attachTo="Germans" javaClass="games.strategy.triplea.attachment.RulesAttachment" type="player">
                  	<option name="rounds" value="1-+"/>
                  	<option name="alliedOwnershipTerritories" value="Livonia:Karelia:Belarus:Ukraine:Tatarstan" count="3"/>
                  	<option name="enemyExclusionTerritories" value="Livonia:Karelia:Belarus:Ukraine:Tatarstan" count="3"/>
                  </attachment>
                  
                  <attachment name="conditionAttachmentOtherTerritory" attachTo="Germans" javaClass="games.strategy.triplea.attachment.RulesAttachment" type="player">
                  	<option name="rounds" value="1-+"/>
                  	<option name="alliedPresenceTerritories" value="Poland:Sevastopol:Kazakhstan:Finland" count="1"/>
                  </attachment>
                  
                  <attachment name="conditionAttachmentMoscowRussianControlled" attachTo="Russians" javaClass="games.strategy.triplea.attachment.RulesAttachment" type="player">
                  	<option name="rounds" value="1-+"/>
                  	<option name="alliedOwnershipTerritories" value="Moscow" count="1"/>
                  </attachment>
                  

                  The message to trigger the revolution incorrectly shows up in this situation:
                  ebba0b9a-3bcf-4b4c-baae-b54ab8f8306c-image.png

                  It might be because my way of checking if the territory is contested is a bit weird, but I can't think of any other way. Any ideas on how to do that in a way that will work?

                  B wc_sumptonW 2 Replies Last reply Reply Quote 0
                  • VictoryFirstV Offline
                    VictoryFirst
                    last edited by

                    So for "conditionAttachmentBorderTerritories" I somehow need to be able to check BOTH for allied ownership as well as enemy exclusion, for all territories because that essentially means territories are controlled and also not contested. Now the conditions are separately and will checks things independently.

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

                      @victoryfirst

                      so in your shot, Livonia is German controlled but contested by Russia ? It needs to be uncontested ? as in no Russians present ?

                      If so, try a separate condition for enemyExclusion and add units to it set to zero.

                      Screenshot from 2024-07-22 06-29-46.png

                      1 Reply Last reply Reply Quote 0
                      • wc_sumptonW Offline
                        wc_sumpton @VictoryFirst
                        last edited by wc_sumpton

                        @victoryfirst said in Russian Revolution:

                        3 or more territories adjacent to Moscow controlled (NOT contested)

                        This is the problem, you want the same area as being controlled and also not contested.

                                <!-- This will check for control 3 of 5 -->
                        	<option name="alliedOwnershipTerritories" value="Livonia:Karelia:Belarus:Ukraine:Tatarstan" count="3"/>
                                <!-- This will check for enemy in 3 of 5, but those 3 may not be the same as controlled -->
                        	<option name="enemyExclusionTerritories" value="Livonia:Karelia:Belarus:Ukraine:Tatarstan" count="3"/>
                        

                        To do what you want to do you will need 5 separated conditions

                        <attachment name="conditionAttachmentControlOfKarelia" attachTo="Germans" javaClass="RulesAttachment" type="player">
                        	<option name="alliedOwnershipTerritories" value="Karelia" count="1"/>
                        	<option name="enemyExclusionTerritories" value="Karelia" count="1"/>
                        </attachment>
                        <attachment name="conditionAttachmentControlOfLivonia" attachTo="Germans" javaClass="RulesAttachment" type="player">
                        	<option name="alliedOwnershipTerritories" value="Livonia" count="1"/>
                        	<option name="enemyExclusionTerritories" value="Livonia" count="1"/>
                        </attachment>
                        ...
                        ...
                        ...
                        <!-- Now a 6th condition to bring these 5 together -->
                        <attachment name="conditionAttachmentControl3Of5" attachTo="Germans" javaClass="RulesAttachment" type="player">
                        	<option name="conditions" value="conditionAttachmentControlOfLivonia:conditionAttachmentControlOfKarelia:etc..."/>
                                <!-- conditionType 3-5 means 3 or more conditions must be true for the condition to be true -->
                        	<option name="conditionType" value="3-5"/>
                        </attachment>
                        

                        There would also need to be separate conditions for 1 of 4.

                        Cheers...

                        P.S. count was removed from "conditionType" on edit. Sorry!!

                        1 Reply Last reply Reply Quote 2
                        • VictoryFirstV Offline
                          VictoryFirst
                          last edited by VictoryFirst

                          this post is deleted

                          1 Reply Last reply Reply Quote 0
                          • VictoryFirstV Offline
                            VictoryFirst
                            last edited by VictoryFirst

                            this post is deleted

                            1 Reply Last reply Reply Quote 0
                            • VictoryFirstV Offline
                              VictoryFirst
                              last edited by VictoryFirst

                              this post is deleted

                              1 Reply Last reply Reply Quote 1
                              • VictoryFirstV Offline
                                VictoryFirst
                                last edited by VictoryFirst

                                @wc_sumpton Awesome, I didn't know you could do all that stuff with conditions!

                                Your idea was excellent and I think it should definitely work, but after I wrote it in the XML and tested it out, the revolution didn't trigger in the situation posted above, so I am wondering what I did wrong now...

                                wc_sumptonW 1 Reply Last reply Reply Quote 0
                                • VictoryFirstV Offline
                                  VictoryFirst
                                  last edited by

                                  @wc_sumpton
                                  Never mind, I found the error. I had to specify the round in each condition for it to work!

                                  Thank you so much! You are a genius! I will test every possibility to make sure everything works, but I think these conditions will do it!

                                  wc_sumptonW 1 Reply Last reply Reply Quote 1
                                  • wc_sumptonW Offline
                                    wc_sumpton @VictoryFirst
                                    last edited by

                                    @victoryfirst

                                    <attachment name="conditionAttachmentControlOrContestedPoland" attachTo="Germans" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player">
                                    	<option name="alliedOwnershipTerritories" value="Poland" count="1"/>
                                    	<option name="alliedPresenceTerritories" value="Poland" count="1"/>
                                    	<!-- This is not needed and should be removed <option name="conditionType" value="1-2"/> -->
                                    </attachment>
                                    

                                    Also you don't need to check for control/contested for the last four, so that was my mistake, sorry!

                                    Cheers...

                                    1 Reply Last reply Reply Quote 2
                                    • wc_sumptonW Offline
                                      wc_sumpton @VictoryFirst
                                      last edited by wc_sumpton

                                      @victoryfirst

                                      So your first 5 conditions should look like:

                                      <attachment name="conditionAttachmentControlOfTatarstan" attachTo="Germans" javaClass="RulesAttachment" type="player">
                                      	<option name="alliedOwnershipTerritories" value="Tatarstan" count="1"/>
                                      	<option name="enemyExclusionTerritories" value="Tatarstan" count="1"/>
                                      </attachment>
                                      <attachment name="conditionAttachmentControlOfUkraine" attachTo="Germans" javaClass="RulesAttachment" type="player">
                                      	<option name="alliedOwnershipTerritories" value="Ukraine" count="1"/>
                                      	<option name="enemyExclusionTerritories" value="Ukraine" count="1"/>
                                      </attachment>
                                      <attachment name="conditionAttachmentControlOfBelarus" attachTo="Germans" javaClass="RulesAttachment" type="player">
                                      	<option name="alliedOwnershipTerritories" value="Belarus" count="1"/>
                                      	<option name="enemyExclusionTerritories" value="Belarus" count="1"/>
                                      </attachment>
                                      <attachment name="conditionAttachmentControlOfKarelia" attachTo="Germans" javaClass="RulesAttachment" type="player">
                                      	<option name="alliedOwnershipTerritories" value="Karelia" count="1"/>
                                      	<option name="enemyExclusionTerritories" value="Karelia" count="1"/>
                                      </attachment>
                                      <attachment name="conditionAttachmentControlOfLivonia" attachTo="Germans" javaClass="RulesAttachment" type="player">
                                      	<option name="alliedOwnershipTerritories" value="Livonia" count="1"/>
                                      	<option name="enemyExclusionTerritories" value="Livonia" count="1"/>
                                      </attachment>
                                      

                                      But your last condition could look like:

                                      <!-- For this last condition I'm going to use "players" but Russia could be the "attachTo" -->
                                      <attachment name="conditionAttachmentRussianRevolution" attachTo="Germans" javaClass="RulesAttachment" type="player">
                                      	<option name="conditions" value="conditionAttachmentControlOfLivonia:conditionAttachmentControlOfKarelia:conditionAttachmentControlOfBelarus:conditionAttachmentControlOfUkraine:conditionAttachmentControlOfTatarstan"/>
                                              <!-- conditionType 3-5 means 3 or more conditions must be true for the condition to be true -->
                                      	<option name="conditionType" value="3-5"/>
                                      	<!-- "players" will override "attachTo" to use in statements -->
                                      	<option name="players" value="Russians"/>
                                      	<!-- The Russians must own all 4 -->
                                      	<option name="alliedOwnershipTerritories" value="Poland:Sevastopol:Kazakhstan:Finland" count="4"/>
                                      	<!-- and Moscow -->
                                      	<option name="alliedOwnershipTerritories" value="Moscow" count="1"/>
                                      </attachment>
                                      

                                      Cheers...

                                      P.S. "Control" removed from last attachment name "conditionAttachmentRussianRevolution"

                                      Cheers...

                                      1 Reply Last reply Reply Quote 2
                                      • VictoryFirstV Offline
                                        VictoryFirst
                                        last edited by VictoryFirst

                                        @wc_sumpton Everything works correctly! Again, I cannot thank you enough! :folded_hands:

                                        I only have one more question, and that is about the trigger.

                                        Suppose you have the following situation:
                                        0558cc69-3f72-4bf6-a4b4-78921e3568b0-image.png

                                        1 Reply Last reply Reply Quote 0
                                        • VictoryFirstV Offline
                                          VictoryFirst
                                          last edited by VictoryFirst

                                          The revolution triggers. This is what currently happens:

                                          0c4d15d4-9f97-49b5-965d-7ed905c2fdf4-image.png

                                          1 Reply Last reply Reply Quote 0
                                          • VictoryFirstV Offline
                                            VictoryFirst
                                            last edited by

                                            But this is what I want to happen:

                                            dede218b-7438-43da-8750-0b85ae5bae6d-image.png

                                            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
                                            • 2
                                            • 3
                                            • 2 / 3
                                            • First post
                                              Last post
                                            Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums