• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

How to buy Units using trigger?

Status
Not open for further replies.

valeman2

V

valeman2

How do i buy unit using score(kills) from the leader board?
 
  • Reduce Kill
    • Events
      • Unit - A unit Sells an item (from shop)
    • Conditions
      • (Owner of (Buying unit)) Equal to (Owner of (Sold Item))
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Kill Greater than 0
        • Then - Actions
          • Set Kill = (Kill - 1)
        • Else - Actions
          • Item - Remove (Sold Item)
          • Game - Display to (All players) the text: You don't have enough kills.
Basically, from the "Set Kill = (Kill - 1)" action, you MUST have a present Leaderboard score, to be deducted
From what I understand, you want to make a dealing of items carried out by a Leaderboard, that acts, as your "Gold"
 
Status
Not open for further replies.
Back
Top