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