- Joined
- Feb 3, 2009
- Messages
- 3,291
Hello, I'm making a trigger, which needs to be started when a specific unit drops an item. Is this possible to detect?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
drop

Events


Time - Every 0.10 seconds of game time

Conditions

Actions


For each (Integer A) from 1 to 6, do (Actions)



Loop - Actions




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






And - All (Conditions) are true







Conditions








HeroItem[(Integer A)] Not Equal (Item carried by MyUnit in slot (Integer A))








(MyUnit has HeroItem[(Integer A)]) Equals Not





Then - Actions






Game - Display to (All players) the text: (Name of HeroItem[(Integer A)])





Else - Actions




Set HeroItem[(Integer A)] = (Item carried by MyUnit in slot (Integer A))
Trigger - Add to The Perfect Clone Item Mod <gen> the event (Unit - (Triggering unit) Loses an item)
The Perfect Clone Item Mod

Events

Conditions

Actions


For each (Integer A) from 1 to 6, do (Actions)



Loop - Actions




Hero - Drop the item from slot (Integer A) of ThePerfectClone[(Player number of (Owner of (Triggering unit)))]




Item - Remove (Last dropped item)




Item - Create (Item-type of (Item carried by (Triggering unit) in slot (Integer A))) at (Position of ThePerfectClone[(Player number of (Owner of (Triggering unit)))])




Item - Make (Last created item) Undroppable




Hero - Give (Last created item) to ThePerfectClone[(Player number of (Owner of (Triggering unit)))]
|
