• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Item Charges and gold cost

Status
Not open for further replies.
I think probably the only way to do this is to create a different item for every # of charges and have a maximum number of charges on the item.
 
Edit : Ok try this trigger now,im not sure if it works right but....
  • Untitled Trigger 001
    • Events
      • Unit - A unit Sells an item (from shop)
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • (Charges remaining in (Sold Item)) Greater than or equal to 2
          • (Item-type of (Sold Item)) Equal to Potion of Healing
    • Actions
      • Player - Add 400 to (Triggering player) Current gold
You need to set the the value of item to player add properties gold,1 trigger for each item with charges,or we need to think of another way,so this should work like this : When some1 buys an item and if that item has more than 2 or equal to 2 charges,add the player gold back,should work as constant and not charging the player amount of gold if he already bought the item once.
 
You can remove the gold cost like what they do in dota. Then show the price of the item beside the name of the item. Then you deduct the gold via triggers. You may also show the selling price of the item on the item description and gain gold via triggers as what Lifee has shown on the post above your post.
 
Status
Not open for further replies.
Back
Top