SC2Mapster Forums

Development > Data

Command Card Issue

  • 4 posts
    #1 Feb 09, 2013 at 22:15 UTC - 0 likes

    Hey

    So Here's my issue:

    I have a barracks train ability- that creates units for you to send towards enemies. however it trains based off triggers

    but the issue is that the mineral cost to use the buttons are being ignored and the buttons are always available.

    help thanks

    Check out our current progress in OhNoTokyo. "Unrelated to Sc2" https://www.Fourshadowgames.blogspot.com

    #2 Feb 09, 2013 at 22:22 UTC - 0 likes

    @SwarmNerd: Go

    You can remove the command card buttons if you're giving scripted orders, they're only for player interaction.

    Deduct the costs seperately via triggers if need be, or just use an Issue Order effect instead of triggers. Also make sure you have actually set costs on the units and/or the train ability.

    #3 Feb 09, 2013 at 22:53 UTC - 0 likes

    @Photoloss: Go The scripted orders are to spawn is seperate locations when the button is pressed.

    iv'e tried setting the cost on both the unit and the tain ability.

    For Example: I need the state of the button to be disabled if i don't have enough minerals to use it. (as if it needed a requirenment)

    #4 Feb 09, 2013 at 23:26 UTC - 0 likes

    @SwarmNerd: Go

    Look at the orbital insertion upgrade from the campaign? You could apply a Teleport effect to the units upon completion, though you'd need something like the Rally ability to paint a target.

    You could link the button to an Effect-Instant ability with the apropriate cost and just spawn the units via triggers if you need several spawn destinations (eg tug of war maps)

  • 4 posts

You must login to post a comment. Don't have an account? Register to get one!