• 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.

Item Charges and gold cost

Status
Not open for further replies.
Level 11
Joined
Nov 15, 2007
Messages
800
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.
 
Level 7
Joined
Mar 5, 2009
Messages
254
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.
 
Level 11
Joined
Jul 9, 2009
Messages
927
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.
Top