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

how do I make recipes for items ?

Status
Not open for further replies.
For example if u need orb of fire and or of frost:

Events: Unit acuires orb of frost
Conditions:
Actions:
If: Unit has orb of fire
then: Remove orb of frost and fire
wait 0.1
Item - Create Orb of ... for unit

If u want with recipe, just like the above but then with one more item
 
An alternative method is to make "recipes", items that are dummies, cost zero, but have all the appearance of the mixed item. This is what you'd need:

Orb of Frost (500 gp, 250 sell value, slowing effect)
Orb of Fire (500 gp, 250 sell value, splash effect)
or w/e
Orb of Elements (requires frost and fire orbs, 500 sell value, slowing/splash effect)
Orb of Elements Recipe (same tooltips and description as element orb, only 0 cost and no abilities)

So when you buy the recipe, it then checks to see if you have both of the frost and fire orbs. If you do, the recipe and both orbs should be removed, and the elemental orb put in the hero's inventory. If you don't, the recipe vanishes.

It's just another method of doing it, instead of having a set of triggers for aquiring each part of a recipe. That's a bit complex.

However, if you need to ask what the specific triggers are to do any of this, you shouldn't be asking how in the first place. Learn your triggers.
 
And how do you learn triggers except by trying things? All the tutorials in the world are no replacement for actually making triggers and seeing what happens or, conversely, by being given triggers and seeing how they work.
 
Status
Not open for further replies.
Back
Top