Navigation

    TripleA Logo

    TripleA Forum

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

    Custom Label for Part of a Turn?

    Map Making
    2
    5
    230
    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.
    • Jason Green-Lowe
      Jason Green-Lowe last edited by

      How can I edit the label given to actions on the right-hand side of the window? I have created a second combat move step to allow for a particular kind of naval penetration, but the engine is displaying it just as "combat move" and ignoring the label I assign it. The label shows up fine if I switch to the "View History" mode in the left-hand tab, but not in the right-hand tab that is typically available to the players in the "View Current Game" mode. I don't want players to get confused and think that they just forgot to click "Done" when the same label appears for two phases in a row.

      <step name="germansNavalCombatMove" delegate="navpenmove" player="Germans" display="Naval Penetration Move"/>
      

      8dcad6cb-6e39-411d-894e-085b5f9a2e8e-image.png

      TheDog 1 Reply Last reply Reply Quote 0
      • TheDog
        TheDog @Jason Green-Lowe last edited by TheDog

        See below, you need to add a custom text display="Combat...

        <delegate name="move" 			javaClass="games.strategy.triplea.delegate.MoveDelegate" 		display="Combat Move"/>
        <delegate name="battle" 		javaClass="games.strategy.triplea.delegate.BattleDelegate" 		display="Combat"/>
        <delegate name="purchase" 		javaClass="games.strategy.triplea.delegate.PurchaseDelegate" 	display="Purchase Units"/>
        <delegate name="placeNoAirCheck" javaClass="games.strategy.triplea.delegate.NoAirCheckPlaceDelegate" display="Place Units"/>
        <delegate name="place" 			javaClass="games.strategy.triplea.delegate.PlaceDelegate" 		display="Place Units"/>
        <delegate name="endTurn" 		javaClass="games.strategy.triplea.delegate.EndTurnDelegate" 	display="Resources"/>
        <delegate name="endTurnNoPU" 	javaClass="games.strategy.triplea.delegate.NoPUEndTurnDelegate" display="Turn Complete"/>
        <delegate name="endRound" 		javaClass="games.strategy.triplea.delegate.EndRoundDelegate" 	display="Round Complete"/>
        

        .
        or against each nation like below
        In the example below endTurn is called/displayed Resources

        <step name="GermanyNonCombatMove" delegate="move" player="Germany" display="Non Combat Move"/>
        <step name="GermanyPurchase" 	delegate="purchase" player="Germany"/>
        <step name="GermanyPlace" 		delegate="place" player="Germany"/>
        <step name="Germany1EndTurn" 	delegate="endTurnNoPU" player="Germany"/>
        <step name="GermanyPolitics" 	delegate="politics" player="Germany"/>
        
        Jason Green-Lowe 1 Reply Last reply Reply Quote 0
        • Jason Green-Lowe
          Jason Green-Lowe @TheDog last edited by

          @thedog Thanks, but I have that exact feature already in my code and it's not working for me.

          TheDog 1 Reply Last reply Reply Quote 0
          • TheDog
            TheDog @Jason Green-Lowe last edited by TheDog

            Try this, notice the 0EndTurn and 1EndTurn
            You need to apply that to your 2nd Combat move step.
            I think they are important to make the step name unique.
            I got this from Cernels 270BC Wars, and now use it in 1941 Command Decision

            <step name="Germany0EndTurn" 	delegate="endTurn" player="Germany"/>
            <step name="GermanyCombatMove" 	delegate="move" player="Germany"/>
            <step name="GermanyBattle" 		delegate="battle" player="Germany"/>
            <step name="GermanyNonCombatMove" delegate="move" player="Germany" display="Non Combat Move"/>
            <step name="GermanyPurchase" 	delegate="purchase" player="Germany"/>
            <step name="GermanyPlace" 		delegate="place" player="Germany"/>
            <step name="Germany1EndTurn" 	delegate="endTurnNoPU" player="Germany"/>
            <step name="GermanyPolitics" 	delegate="politics" player="Germany"/>
            
            Jason Green-Lowe 1 Reply Last reply Reply Quote 0
            • Jason Green-Lowe
              Jason Green-Lowe @TheDog last edited by

              @thedog That's interesting with the serial numbers. I tried changing my code to use serial numbers, but I'm still having the same problem. Any other ideas? @wc_sumpton

               <delegate name="initDelegate" javaClass="games.strategy.triplea.delegate.InitializationDelegate" display="Initializing Delegates"/>
                  <delegate name="tech" javaClass="games.strategy.triplea.delegate.TechnologyDelegate" display="Research Technology"/>
                  <delegate name="tech_activation" javaClass="games.strategy.triplea.delegate.TechActivationDelegate" display="Activate Technology"/>
                  <delegate name="battle" javaClass="games.strategy.triplea.delegate.BattleDelegate" display="Combat"/>
                  <delegate name="move" javaClass="games.strategy.triplea.delegate.MoveDelegate" display="Combat Move"/>
                  <delegate name="place" javaClass="games.strategy.triplea.delegate.PlaceDelegate" display="Place Units"/>
                  <delegate name="purchase" javaClass="games.strategy.triplea.delegate.PurchaseDelegate" display="Purchase Units"/>
                  <delegate name="endTurn" javaClass="games.strategy.triplea.delegate.EndTurnDelegate" display="Turn Complete"/>
                  <delegate name="endRound" javaClass="games.strategy.triplea.delegate.EndRoundDelegate" display="Round Complete"/>
                  <delegate name="placeBid" javaClass="games.strategy.triplea.delegate.BidPlaceDelegate" display="Bid Placement"/>
                  <delegate name="bid" javaClass="games.strategy.triplea.delegate.BidPurchaseDelegate" display="Bid Purchase"/>
                  <delegate name="politics" javaClass="games.strategy.triplea.delegate.PoliticsDelegate" display="Politics"/>
              
              <step name="germansPolitics" delegate="politics" player="Germans"/>
                    <step name="germansTech" delegate="tech" player="Germans"/>
                    <step name="germansPurchase" delegate="purchase" player="Germans"/>
                    <step name="germans0CombatMove" delegate="move" player="Germans">
                      <stepProperty name="resetUnitStateAtStart" value="true"/>
                    </step>
                    <step name="germans1CombatMove" delegate="move" player="Germans" display="Naval Penetration Move"/>
                    <step name="germansBattle" delegate="battle" player="Germans"/>
                    <step name="germansNonCombatMove" delegate="move" player="Germans" display="Non Combat Move"/>
                    <step name="germansPlace" delegate="place" player="Germans"/>
                    <step name="germansTechActivation" delegate="tech_activation" player="Germans"/>
                    <step name="germansEndTurn" delegate="endTurn" player="Germans"/>
              
              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums