Help with "Creating Item and Giving it to a unit" trigger

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
 

Dirac

22710180
Reaction score
147
Why does it have to be in slot 1? Maybe it drops it because the slot 1 is already taken by other item
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top