Buy Item
Events
Unit - A unit comes within 900.00 of Goblin Merchant 0027 <gen>
Unit - A unit comes within 900.00 of Goblin Merchant 0091 <gen>
Unit - A unit comes within 900.00 of Goblin Merchant 0110 <gen>
Unit - A unit comes within 900.00 of Goblin Merchant 0138 <gen>
Unit - A unit comes within 900.00 of Marketplace 0008 <gen>
Unit - A unit comes within 900.00 of Marketplace 0010 <gen>
Unit - A unit comes within 900.00 of Marketplace 0011 <gen>
Unit - A unit comes within 900.00 of Marketplace 0012 <gen>
Conditions
((Owner of (Triggering unit)) controller) Equal to Computer
((Triggering unit) is A Hero) Equal to True
(Item-type of (Item being manipulated)) Not equal to (Item-type of (Item carried by (Triggering unit) in slot (Integer A)))
Actions
For each (Integer A) from 1 to 2, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Triggering unit)) Current gold) Greater than or equal to (Custom value of (Sold Item))
Then - Actions
Unit - Order Goblin Merchant 0027 <gen> to give (Sold Item) to (Triggering unit)
Unit - Order Goblin Merchant 0091 <gen> to give (Sold Item) to (Triggering unit)
Unit - Order Goblin Merchant 0110 <gen> to give (Sold Item) to (Triggering unit)
Unit - Order Goblin Merchant 0138 <gen> to give (Sold Item) to (Triggering unit)
Unit - Order Marketplace 0008 <gen> to give (Sold Item) to (Triggering unit)
Unit - Order Marketplace 0010 <gen> to give (Sold Item) to (Triggering unit)
Unit - Order Marketplace 0011 <gen> to give (Sold Item) to (Triggering unit)
Unit - Order Marketplace 0012 <gen> to give (Sold Item) to (Triggering unit)
Else - Actions
Events
Unit - A unit comes within 900.00 of Goblin Merchant 0027 <gen>
Unit - A unit comes within 900.00 of Goblin Merchant 0091 <gen>
Unit - A unit comes within 900.00 of Goblin Merchant 0110 <gen>
Unit - A unit comes within 900.00 of Goblin Merchant 0138 <gen>
Unit - A unit comes within 900.00 of Marketplace 0008 <gen>
Unit - A unit comes within 900.00 of Marketplace 0010 <gen>
Unit - A unit comes within 900.00 of Marketplace 0011 <gen>
Unit - A unit comes within 900.00 of Marketplace 0012 <gen>
Conditions
((Owner of (Triggering unit)) controller) Equal to Computer
((Triggering unit) is A Hero) Equal to True
(Item-type of (Item being manipulated)) Not equal to (Item-type of (Item carried by (Triggering unit) in slot (Integer A)))
Actions
For each (Integer A) from 1 to 2, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Triggering unit)) Current gold) Greater than or equal to (Custom value of (Sold Item))
Then - Actions
Unit - Order Goblin Merchant 0027 <gen> to give (Sold Item) to (Triggering unit)
Unit - Order Goblin Merchant 0091 <gen> to give (Sold Item) to (Triggering unit)
Unit - Order Goblin Merchant 0110 <gen> to give (Sold Item) to (Triggering unit)
Unit - Order Goblin Merchant 0138 <gen> to give (Sold Item) to (Triggering unit)
Unit - Order Marketplace 0008 <gen> to give (Sold Item) to (Triggering unit)
Unit - Order Marketplace 0010 <gen> to give (Sold Item) to (Triggering unit)
Unit - Order Marketplace 0011 <gen> to give (Sold Item) to (Triggering unit)
Unit - Order Marketplace 0012 <gen> to give (Sold Item) to (Triggering unit)
Else - Actions