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

How to make recipe items? (like in dota)

Status
Not open for further replies.
Level 6
Joined
Aug 24, 2008
Messages
231
I assume you have create 5 items:
-Sword (1000 gold)
-Flame orb (1000 gold)
-Flame Sword (Dummy) (1000 gold)
-Flame Sword Recipe ( 1000)
-The flame sword( the true sword) (3000 gold)


Description:
Okay Sword and orb is the first item. Recipe is Recipe (u know that). Dummy is the item that unit will buy and will be changed into recipe. The flame sword is the true sword.

Trigger:

Events
- Unit-Unit acquaries an item
Condition
- ((Item carried by (triggering unit) of type Flame Sword (dummy) is owned)Equal to True
Actions
- Item-remove (item carried by (triggering unit) of flame sword(dummy))
- Hero-create the Flame Sword Recipe and give it to (triggering unit)



How to make combined item (same)

Events
- Unit acquaries an item
Condition
- ((triggering unit) has an item of type Flame Orb) equal to true
- ((triggering unit) has an item of type Sword) equal to true
- ((triggering unit) has an item of type Flame Sword Recipe) equal to true
Actions
- Special effect-create a special effect attached to the origin of (triggering unit) using abilities/spells/items/alem/alem target.mdl
- Item-remove (item carried by(triggering unit) of type Flame Orb)
- Item-remove (item carried by(triggering unit) of type Ordinary Sword)
- Item-remove (item carried by(triggering unit) of type Flame Sword Recipe)
- Hero - create The Flame Sword and give it to (triggering unit)


Try this :
View attachment SYSTEM..XD.w3x
 
Status
Not open for further replies.
Top