Navigation

    TripleA Logo

    TripleA Forum

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

    Units that may destroy itself

    Feature Requests & Ideas
    2
    4
    80
    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.
    • Schulz
      Schulz last edited by

      Any way adding a percentage to a unit to destoy itself?

      1 Reply Last reply Reply Quote 0
      • Michael Hoover
        Michael Hoover last edited by

        I think you could do it via triggers in the current version, using the chance option and the removeUnits option. Something like this perhaps (tweaking as necessary):

        <attachment name="triggerAttachment_UnitSep" attachTo="P1" javaClass="TriggerAttachment" type="player">            
          <option name="conditions" value="[Your_Condition_Here]"/>
          <option name="chance" value="2:10"/>
          <option name="when" value="[When_You_Want]"/>
          <option name="removeUnits" value="[Unit_to_Die]" count="1"/>
        </attachment>
        
        1 Reply Last reply Reply Quote 0
        • Schulz
          Schulz last edited by

          I would need more detail or example XML files.

          1 Reply Last reply Reply Quote 0
          • Michael Hoover
            Michael Hoover last edited by Michael Hoover

            A good example file is the pact of steel repo. Download that map and unzip it, then just open up the xml its full of comments about every option available.

            Or just click here.

            Another good example is the Warcraft_war_heroes beta from Frostion. Although he uses the chance option for fishing you can modify it for whatever.

            I might be more help if you want to post some code I can look at?

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