• 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 traded for Unit

Status
Not open for further replies.

Darshunn

D

Darshunn

So I have an item called a BloodLust Token which are obtained at certain points in the games day. That isn't important, but what is is this. I want to be able to trade those tokens (which are items, not gold or lumber) for a unit that is under my control for a limited amount of time (a summoned creature).

My original plan was to be able to buy the "summoned" creature in a store, (You buy an item for the price of 0g and it is immediatly destroyed creating a summoned unit if you have sufficient tokens in your inventory) but I don't know how to trigger it so it reduces the charge of my bloodlusttokens by 1 if i have some, destroys the stack if i dont 2+ charges, or refuses to create the unit if i dont have any tokens at all. As well as i dont know how to make the creates unit have countdown (blue bar) as a summoned creature does.

Another idea i had was just to give the tokens an ability themselves. My issue with that idea is i have multiple different units i want to be able to summon and i think dialog boxes would be a bad idea...

Anyways i could use some help. An idea to work this out? A trigger for my first idea?
 
Status
Not open for further replies.
Back
Top