- Joined
- Sep 15, 2006
- Messages
- 426
My map uses a weapons system that replaces the unit with a new one to get the effects of different weapons. I need to track whatever weapon is currently being used with a variable. The problem is, the variable never seems to set itself. Here are my triggers:
-
Tactical 1
-

Events
-


Unit - A unit Uses an item
-
-

Conditions
-


(Item-type of (Item being manipulated)) Equal to |cffcccccc.45 Tactical|r
-


(Charges remaining in (Item being manipulated)) Greater than 0
-
-

Actions
-


Item - Set charges remaining in (Item being manipulated) to ((Charges remaining in (Item being manipulated)) + 1)
-


Unit - Replace (Hero manipulating item) with a Marine [|cff00ff00.45 Tactical|r] (.45 Tactical) using The old unit's relative life and mana
-


Set myGun[(Player number of (Owner of (Hero manipulating item)))] = (Item being manipulated)
-


Sound - Play RELOAD <gen> at 100.00% volume, attached to (Hero manipulating item)
-


Selection - Add (Last replaced unit) to selection for (Owner of (Last replaced unit))
-
-


