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

    Units that may destroy itself

    Scheduled Pinned Locked Moved Feature Requests & Ideas
    4 Posts 2 Posters 637 Views 2 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 Offline
      Schulz
      last edited by

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

      1 Reply Last reply Reply Quote 0
      • Michael HooverM Offline
        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>
        

        Map Maker of: Twelve Clans and Labyrinth

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

          I would need more detail or example XML files.

          1 Reply Last reply Reply Quote 0
          • Michael HooverM Offline
            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?

            Map Maker of: Twelve Clans and Labyrinth

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