Unit - Generic Unit Event > A Unit Loses an Item
What conditions are you using?
It should be Item beeing manipulated.
-Event
A Unit Loses an Item
-Condition
Item Type of (Item Beeing Manipulated) equal to Monster Summon
-Actions
set Temp_Point = Unit Position of (Triggering Unit)
set Temp_Point2 = Temp_Point offset by 100 towards "Random Ange" degrees (use point with polar offset for this)
Unit - Create 1 Monster for Owner of (Triggering Unit) at Temp_Point 2 Facing Default Building Degrees
Special Effect - Create "Any effect, for example, Dark Convection (Caster)" at Temp_Point2
Special Effect - Destroy (Last Created Special Effect)
custom script: call RemoveLocation (udg_Temp_Point)
custom script: call RemoveLocation (udg_Temp_Point2)
wait 0.01 seconds
Item - Remove (Item Beeing Manipulated)
Code:-Event A Unit Loses an Item -Condition Item Type of (Item Beeing Manipulated) equal to Monster Summon -Actions set Temp_Point = Unit Position of (Triggering Unit) set Temp_Point2 = Temp_Point offset by 100 towards "Random Ange" degrees (use point with polar offset for this) Unit - Create 1 Monster for Owner of (Triggering Unit) at Temp_Point 2 Facing Default Building Degrees Special Effect - Create "Any effect, for example, Dark Convection (Caster)" at Temp_Point2 Special Effect - Destroy (Last Created Special Effect) custom script: call RemoveLocation (udg_Temp_Point) custom script: call RemoveLocation (udg_Temp_Point2) wait 0.01 seconds Item - Remove (Item Beeing Manipulated)
This trigger will create a "Monster" when you drop the item "Monster Summon" and it doesn't leak.