- Joined
- May 27, 2007
- Messages
- 1,689
I have a trigger for the weapon system of a map I am workibg, that SHOULD work, but of course it doesn't. What happens is when you drop the item, you hear a sound like when a game is over, then WC3 closes it doesn't crash, it just closes, no messages or anything popup but anyway here it is
-
Drop Item
-

Events
-


Unit - A unit Loses an item
-
-

Conditions
-

Actions
-


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



If - Conditions
-




(Item-type of (Item being manipulated)) Equal to .45 Magnum
-




(Unit-type of (Hero manipulating item)) Equal to Umbrella Mercenary (Magnum)
-
-



Then - Actions
-




Unit - Replace (Hero manipulating item) with a Umbrella Mercenary (Weaponless) using The old unit's relative life and mana
-




Selection - Select (Last created unit) for (Owner of (Triggering unit))
-
-



Else - Actions
-




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





If - Conditions
-






(Item-type of (Item being manipulated)) Equal to Beretta M92F
-






(Unit-type of (Hero manipulating item)) Equal to Umbrella Mercenary (Pistol)
-
-





Then - Actions
-






Unit - Replace (Hero manipulating item) with a Umbrella Mercenary (Weaponless) using The old unit's relative life and mana
-






Selection - Select (Last created unit) for (Owner of (Triggering unit))
-
-





Else - Actions
-






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







If - Conditions
-








(Item-type of (Item being manipulated)) Equal to Flame Thrower
-








(Unit-type of (Hero manipulating item)) Equal to Umbrella Mercenary (Flame Thrower)
-
-







Then - Actions
-








Unit - Replace (Hero manipulating item) with a Umbrella Mercenary (Weaponless) using The old unit's relative life and mana
-








Selection - Select (Last created unit) for (Owner of (Triggering unit))
-
-







Else - Actions
-








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









If - Conditions
-










(Item-type of (Item being manipulated)) Equal to HK53
-










(Unit-type of (Hero manipulating item)) Equal to Umbrella Mercenary (SMG)
-
-









Then - Actions
-










Unit - Replace (Hero manipulating item) with a Umbrella Mercenary (Weaponless) using The old unit's relative life and mana
-










Selection - Select (Last created unit) for (Owner of (Triggering unit))
-
-









Else - Actions
-










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











If - Conditions
-












(Item-type of (Item being manipulated)) Equal to M-66 Rocket Launcher
-












(Unit-type of (Hero manipulating item)) Equal to Umbrella Mercenary (Rocket Launcher)
-
-











Then - Actions
-












Unit - Replace (Hero manipulating item) with a Umbrella Mercenary (Weaponless) using The old unit's relative life and mana
-












Selection - Select (Last created unit) for (Owner of (Triggering unit))
-
-











Else - Actions
-












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













If - Conditions
-














(Item-type of (Item being manipulated)) Equal to M4a1
-














(Unit-type of (Hero manipulating item)) Equal to Umbrella Mercenary (Assault Rifle)
-
-













Then - Actions
-














Unit - Replace (Hero manipulating item) with a Umbrella Mercenary (Weaponless) using The old unit's relative life and mana
-














Selection - Select (Last created unit) for (Owner of (Triggering unit))
-
-













Else - Actions
-














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















If - Conditions
-
















(Item-type of (Item being manipulated)) Equal to Mini-Gun
-
















(Unit-type of (Triggering unit)) Equal to Umbrella Mercenary (Mini Gun)
-
-















Then - Actions
-
















Unit - Replace (Triggering unit) with a Umbrella Mercenary (Weaponless) using The old unit's relative life and mana
-
















Selection - Select (Last created unit) for (Owner of (Triggering unit))
-
-















Else - Actions
-
















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

















If - Conditions
-


















(Item-type of (Item being manipulated)) Equal to Shotgun
-


















(Unit-type of (Triggering unit)) Equal to Umbrella Mercenary (Shotgun)
-
-

















Then - Actions
-


















Unit - Replace (Triggering unit) with a Umbrella Mercenary (Weaponless) using The old unit's relative life and mana
-


















Selection - Select (Last created unit) for (Owner of (Triggering unit))
-
-

















Else - Actions
-


















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



















If - Conditions
-




















(Item-type of (Item being manipulated)) Equal to Sniper Rifle
-




















(Unit-type of (Triggering unit)) Equal to Umbrella Mercenary (Sniper Rifle)
-
-



















Then - Actions
-




















Unit - Replace (Triggering unit) with a Umbrella Mercenary (Weaponless) using The old unit's relative life and mana
-




















Selection - Select (Last created unit) for (Owner of (Triggering unit))
-
-



















Else - Actions
-




















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





















If - Conditions
-






















(Item-type of (Item being manipulated)) Equal to U-70 Mine Thrower
-






















(Unit-type of (Triggering unit)) Equal to Umbrella Mercenary (Mine Thrower)
-
-





















Then - Actions
-






















Unit - Replace (Triggering unit) with a Umbrella Mercenary (Weaponless) using The old unit's relative life and mana
-






















Selection - Select (Last created unit) for (Owner of (Triggering unit))
-
-





















Else - Actions
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-








