Navigation

    TripleA Logo

    TripleA Forum

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

    Ideas: General Discusion

    XML Options Browser
    5
    28
    6958
    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.
    • General_Zod
      General_Zod Moderators @Mahks last edited by

      @mahks Can you provide already functional examples from current XOB?

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

        Did you see the template above?

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

          @mahks Yes I see it, but it doesn't seem helpful as a learning tool without the corresponding examples. Unless I'm missing something.

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

            Ah, sorry about that.
            Below is a completed record for a techAbilityAttachment.

            ,"unitAbilitiesGained":{
            	 "parent":"techAbilityAttachment"
            	,"type":"option"
            	,"desc":"Tech ability option"
            	,"params":{"value":"A colon delimited list, beginning with a unit name then a list of abilities"}
            	,"info":[
            		 "Unit gains abilities in the list."
            		,"Currently allows only canBlitz and canBombard."
            		,"Effects from multiple techs are added together."
            		,"This option may be cleared/reset by triggers if you want by prefixing with '-reset-'."
            		]
            	,"example":[
            		 "<attachment name='techAbilityAttachment' attachTo='destroyerBombard' javaClass='TechAbilityAttachment' type='technology'>"
            		,"\n\t<option name='unitAbilitiesGained' value='destroyer:canBombard'/>"
            		,"\n\t..."
            		,"\n</attachment>"
            		]
            	,"links":[
            		 "-reset-"
            		,"canBlitz"
            		,"canBombard"
            		,"destroyerBombard"
            		]
            	}
            
            1 Reply Last reply Reply Quote 0
            • Mahks
              Mahks last edited by Mahks

              What I do is have both POS2 and my editor open side by side.
              I copy & paste the template (to save the template intact) in the editor.

              There are 5 areas that need to be dealt with:

              1. Trigger_Option_Name : Copy the option name in POS2 and paste into the 2 XXX_Trigger_Option_Name_XXX locations in the template.
              2. params : This is a definition of value (not an explanation of what it does) You need to select one of the boilerplate options or re-write one and delete all the others.
              3. info : This is the explanation of what it does. I take the comment from POS2 and usually chop it up into several lines. (look at the POS2 comment for unitAbilitiesGained, and the page for it in XOB to see the result) Extra lines may be added, empty ones deleted.
              4. example : The attachment name "XXX_example_XXX" needs to be edited as well as the XXX_value_example_XXX. The XXX_Trigger_Option_Name_XXX should have been pasted in step 1.
              5. links : Links can be added, they are case sensitive and may refer to anything in the XOB menu.
              1 Reply Last reply Reply Quote 0
              • Mahks
                Mahks last edited by Mahks

                POS2 to XOB conversion is complete.

                XOB Update (has option to set favorites)

                I am sure there are lots of spelling, grammar and interpretation errors in it.
                Please report any found here and I will fix when I return to civilization (ETA September)

                redrum 1 Reply Last reply Reply Quote 3
                • redrum
                  redrum Admin @Mahks last edited by

                  @mahks Looks pretty good. But September!?!? Going to Antarctica?

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

                    @redrum backwoods of British Columbia

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