TripleA Logo TripleA Forum
    • TripleA Website
    • Recent
    • Popular
    • Register
    • Login

    Off Topic Galore

    Scheduled Pinned Locked Moved Player Help
    13 Posts 3 Posters 24 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.
    • SchulzS
      Schulz
      last edited by Schulz

      Another bug in v15914;

      I had given a +1 attack bonus to fighters against surface ships, which used to work, but now it doesn't.

                      <attachment name="supportAttachmentAviation" attachTo="destroyer" javaClass="games.strategy.triplea.attachments.UnitSupportAttachment" type="unitType">
                           <option name="unitType" value="fighter"/>
                           <option name="faction" value="enemy"/>
                           <option name="side" value="offence"/>
                           <option name="dice" value="strength"/>
                           <option name="bonus" value="1"/>
                           <option name="number" value="1"/>
                           <option name="bonusType" value="anti-ship"/>
                           <option name="players" value="Germany:Italy:Japan:The_Soviet_Union:The_British_Empire:The_United_States"/>
                      </attachment>
                      <attachment name="supportAttachmentAviation" attachTo="cruiser" javaClass="games.strategy.triplea.attachments.UnitSupportAttachment" type="unitType">
                           <option name="unitType" value="fighter"/>
                           <option name="faction" value="enemy"/>
                           <option name="side" value="offence"/>
                           <option name="dice" value="strength"/>
                           <option name="bonus" value="1"/>
                           <option name="number" value="1"/>
                           <option name="bonusType" value="anti-ship"/>
                           <option name="players" value="Germany:Italy:Japan:The_Soviet_Union:The_British_Empire:The_United_States"/>
                      </attachment>
                      <attachment name="supportAttachmentAviation" attachTo="carrier" javaClass="games.strategy.triplea.attachments.UnitSupportAttachment" type="unitType">
                           <option name="unitType" value="fighter"/>
                           <option name="faction" value="enemy"/>
                           <option name="side" value="offence"/>
                           <option name="dice" value="strength"/>
                           <option name="bonus" value="1"/>
                           <option name="number" value="1"/>
                           <option name="bonusType" value="anti-ship"/>
                           <option name="players" value="Germany:Italy:Japan:The_Soviet_Union:The_British_Empire:The_United_States"/>
                      </attachment>
                      <attachment name="supportAttachmentAviation" attachTo="battleship" javaClass="games.strategy.triplea.attachments.UnitSupportAttachment" type="unitType">
                           <option name="unitType" value="fighter"/>
                           <option name="faction" value="enemy"/>
                           <option name="side" value="offence"/>
                           <option name="dice" value="strength"/>
                           <option name="bonus" value="1"/>
                           <option name="number" value="1"/>
                           <option name="bonusType" value="anti-ship"/>
                           <option name="players" value="Germany:Italy:Japan:The_Soviet_Union:The_British_Empire:The_United_States"/>
                      </attachment>
      				<attachment name="supportAttachmentAviation" attachTo="transport" javaClass="games.strategy.triplea.attachments.UnitSupportAttachment" type="unitType">
                           <option name="unitType" value="fighter"/>
                           <option name="faction" value="enemy"/>
                           <option name="side" value="offence"/>
                           <option name="dice" value="strength"/>
                           <option name="bonus" value="1"/>
                           <option name="number" value="1"/>
                           <option name="bonusType" value="anti-ship"/>
                           <option name="players" value="Germany:Italy:Japan:The_Soviet_Union:The_British_Empire:The_United_States"/>
                      </attachment>
      
      C 1 Reply Last reply
      Reply Quote 1
      • C Cernel pinned this topic
      • C
        Cernel Moderators Lobby Moderators @Schulz
        last edited by

        @Schulz I'm seeing two things that may or may not matter: you need to test them.

        1. I think that no support attachment should have the same name as an other support attachment, not even if attached to different units (but I'm not sure in case of different attached units).
        2. I think that those supports (if working) are giving +1 defence to the fighter (not +1 offence) because they are given by offending units. (You need to change the "side" to "defence" to support attacking fighters or to "offence:defence" to support attacking or defending fighters.)
        SchulzS TheDogT 2 Replies Last reply
        Reply Quote 3
        • SchulzS
          Schulz @Cernel
          last edited by

          @Cernel Thanks, I changed "side" to "defense" and now it works perfectly again.

          Support attachments don't necessarily need to have different names for each of them.

          C 1 Reply Last reply
          Reply Quote 1
          • C
            Cernel Moderators Lobby Moderators @Schulz
            last edited by

            @Schulz said:

            @Cernel Thanks, I changed "side" to "defense" and now it works perfectly again.

            Does it? I assumed it had to be "defence".

            SchulzS 1 Reply Last reply
            Reply Quote 1
            • TheDogT
              TheDog @Cernel
              last edited by TheDog

              Deleted Post

              https://forums.triplea-game.org/tags/thedog
              https://forums.triplea-game.org/topic/3741/curated-best-top-maps-triplea-guides

              1 Reply Last reply
              Reply Quote 1
              • SchulzS
                Schulz @Cernel
                last edited by

                @Cernel Oops, it was a typo. It's "defence".

                1 Reply Last reply
                Reply Quote 1
                • SchulzS
                  Schulz
                  last edited by

                  Is this property doing anything at all?

                  	        <attachment name="conditionAttachmentAICompatibility" attachTo="Germany" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player">
                                      <option name="gameProperty" value="AI Compatibility"/>
                                  </attachment>
                  
                  TheDogT C 2 Replies Last reply
                  Reply Quote 0
                  • TheDogT
                    TheDog @Schulz
                    last edited by

                    @Schulz
                    Not on its own, no

                    I think you need this, and then you can do triggers with it.

                    <!-- ======================================= GO isAI =======================================  -->
                    	<attachment foreach="$All-Players$" name="conditionAttachment_isAI_@All-Players@" attachTo="@All-Players@" javaClass="RulesAttachment" type="player">
                    		<option name="isAI" value="true"/>
                    	</attachment>
                    

                    https://forums.triplea-game.org/tags/thedog
                    https://forums.triplea-game.org/topic/3741/curated-best-top-maps-triplea-guides

                    1 Reply Last reply
                    Reply Quote 1
                    • C
                      Cernel Moderators Lobby Moderators @Schulz
                      last edited by

                      @Schulz said:

                      Is this property doing anything at all?

                                <attachment name="conditionAttachmentAICompatibility" attachTo="Germany" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player">
                                          <option name="gameProperty" value="AI Compatibility"/>
                                      </attachment>
                      

                      If you are asking if the condition is doing anything, that just tests that a boolean game property is named "AI Compatibility" and is true. If that is true, than this condition is true.

                      The condition itself if of course doing nothing alone: it can be used for anything possibly having conditions (like triggers).

                      For example, if you have a trigger with only that condition, that trigger will fire inasmuch as one of your Game Options is called "AI Compatibility" and is true (assuming that the property is user-editable).

                      1 Reply Last reply
                      Reply Quote 1
                      • C
                        Cernel Moderators Lobby Moderators
                        last edited by

                        Sorry, I've realized that I should have been clearer.

                        This was not meant to be a topic for posting off-topics (also since a topic for posting off-topic would make off-topic posts on-topic thus not off-topic thus off-topic): this was meant to be a topic for any moderators to move into it anything which is off-topic wherever it has been originally posted.

                        I'm going to clarify this in the opening post.

                        (Also, this was just my idea. Other moderators feel free to say if you think it's good or bad. Also, I wonder if this topic should have been locked.)


                        @Schulz (and everyone) Please do not post inside this topic. If you have any questions which do not fit into an existing topic, open a new topic. Thank you.

                        1 Reply Last reply
                        Reply Quote 1

                        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
                        Powered by NodeBB Forums