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

    Determine purchase count of a given unit?

    Scheduled Pinned Locked Moved Map Making
    2 Posts 2 Posters 718 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.
    • Michael HooverM Offline
      Michael Hoover
      last edited by

      Been looking through the xml but I haven't seen anything that would give me a number of a given unit purchased in a player's purchase phase. For example, if the player were to buy 3 infantry, I'd like to be able to retrieve that count, like through a "purchasedCount" property or some such, but I'm not seeing anything like this...any ideas anyone?

      Map Maker of: Twelve Clans and Labyrinth

      RogerCooperR 1 Reply Last reply Reply Quote 0
      • RogerCooperR Offline
        RogerCooper @Michael Hoover
        last edited by

        @Michael-Hoover You can't limit it directly. There are 2 workarounds.

        1. You can limit the total number of units of the type available
        2. You could have the unit producible only at a specific facility with a limited production capacity
        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