I have this trigger. What I wanted was to spawn 1 dummy unit at the location of the riderless horse and give him an item (scroll of speed) and make him use it. everything works. The only problem is, there seems to be another dummy unit that spawns at a separate location. I am completely stumped. I isolated the cause to be due to the dummy unit using the item. How should I go about this? is there a better way?
Any insights would be deeply appreciated.
-
Events
-
Time - Every 7.63 seconds of game time
-
-
Conditions
-
Actions
-
Set Target_loc = (Position of Riderless Horse 0018 <gen>)
-
Unit - Create 1 Dummy Unit for (Owner of Riderless Horse 0018 <gen>) at Target_loc facing Default building facing degrees
-
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
-
Hero - Create Scroll of Speed and give it to (Last created unit)
-
Hero - Order (Last created unit) to use (Last created item)
-
Custom script: call RemoveLocation (udg_Target_loc)
-
-
Hero - Order (Last created unit) to use (Item carried by (Last created unit) in slot 1)

Any insights would be deeply appreciated.