- Joined
- Sep 1, 2009
- Messages
- 124
Hey uh, i need help with removing a Variable array, if anyone can help me that would be awesome... this is the trigger for starters:
When the unit picks up a item and uses Equip, the item in slot one is set to
-
Unequip
-
Events
-
Unit - A unit Finishes casting an ability
-
-
Conditions
-
(Unit-type of (Triggering unit)) Equal to Equip Manager
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Ability being cast) Equal to Weapon Remove
-
-
Then - Actions
-
Unit - Remove WeaponBonus[(Player number of (Owner of (Triggering unit)))] from (Random unit from (Units owned by (Owner of (Triggering unit)) of type Villager))
-
Item - Create Weapons[(Player number of (Owner of (Triggering unit)))] at (Position of (Random unit from (Units owned by (Owner of (Triggering unit)) of type Villager)))
-
Unit - Order (Random unit from (Units owned by (Owner of (Triggering unit)) of type Villager)) to Right-Click (Last created item)
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Ability being cast) Equal to Shield Remove
-
-
Then - Actions
-
Unit - Remove ShieldBonus[(Player number of (Owner of (Triggering unit)))] from (Random unit from (Units owned by (Owner of (Triggering unit)) of type Villager))
-
Item - Create Shields[(Player number of (Owner of (Triggering unit)))] at (Position of (Random unit from (Units owned by (Owner of (Triggering unit)) of type Villager)))
-
Unit - Order (Random unit from (Units owned by (Owner of (Triggering unit)) of type Villager)) to Right-Click (Last created item)
-
-
Else - Actions
-
-
-
-
-
-
Item - Create Weapons[(Player number of (Owner of (Triggering unit)))] at (Position of (Random unit from (Units owned by (Owner of (Triggering unit)) of type Villager)))
When the unit picks up a item and uses Equip, the item in slot one is set to
-
Set Weapons[(Player number of (Owner of (Triggering unit)))] = (Item-type of (Item carried by (Triggering unit) in slot 1))
