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