Choppa
www.warcraft-gamers.po.gs
- Reaction score
- 59
What I want this to do is when use an item (wood) with another item (rocks) near by it removes these both and creates an unlit fire, this is kind of like a external item recipie system. It works if i drop the rocks then use the wood right on it but apart from that it's messy as...
I'm pretty tired so... Idk, can you see if there's anything wrong?
I'm pretty tired so... Idk, can you see if there's anything wrong?
Code:
CombineItems
Events
Unit - A unit Uses an item
Conditions
(Item-type of (Item being manipulated)) Equal to Wood
Actions
Set tempMolestedItem = (Item being manipulated)
Set tempHeroMolestingItem = (Hero manipulating item)
Set tempPosHeroMolestingItem = (Position of tempHeroMolestingItem)
Item - Pick every item in (Region centered at tempPosHeroMolestingItem with size (200.00, 200.00)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of (Picked item)) Equal to Rocks
(Item-type of (Picked item)) Not equal to (Item-type of (Item being manipulated))
(Item-type of (Picked item)) Not equal to (Item-type of (Last created item))
Then - Actions
Game - Display to (All players) the text: (Name of the current trigger)
Item - Remove tempMolestedItem
Item - Remove (Picked item)
Item - Create Unlit Fire at tempPosHeroMolestingItem
Set tempMolestedItem = No item
Set tempHeroMolestingItem = No unit
Custom script: call RemoveLocation (udg_tempPosHeroMolestingItem)
Else - Actions
Item - Create Wood at (Target point of issued order)