Nathan0093
New Member
- Reaction score
- 4
Hi all. I'm trying to create a trigger that gives a non-hero unit an item when it comes into a region, but everything it gets inside the region, the item is instead dropped at its feet. A player would have to command the unit to pick up the item, and that is not acceptable. The item is supposed to a trading item which the unit has to bring to another location to earn gold. I want to be able to use the patrol command to make the unit go back and forth without having to directly order it to do so. Help?
Code:
Trading Post Northeast
Events
Unit - A unit enters Trading Post Northeast <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to (==) Merchant
(Item-type of (Item carried by (Triggering unit) in slot 1)) Not equal to (!=) Trading Goods
Actions
Hero - Give (Triggering unit) a Trading Goods in slot 1