Here is the trigger for EQUIP:
The unequip function doesn't work at all, i can see the game message "1" and "2" but the 3 never appear. These were ment only to see how far the trigger can go so the "cloth armor" string idea work but for some reason the trigger wont go in the loop.
-
Equip Chest
-
Events
-
Unit - A unit Uses 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 Iron Set - |cffffcc00Chest Armor|r
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
And - All (Conditions) are true
-
Conditions
-
(Unit-type of (Hero manipulating item)) Equal to Geomancer
-
Equip_Chest[(Player number of (Owner of (Hero manipulating item)))] Equal to False
-
-
-
-
Then - Actions
-
Unit Group - Pick every unit in (Units owned by (Owner of (Hero manipulating item))) and do (Actions)
-
Loop - Actions
-
Set Equip_Chest[(Player number of (Owner of (Hero manipulating item)))] = True
-
Set chest[(Player number of (Owner of (Hero manipulating item)))] = iron armor
-
Hero - Modify Agility of (Hero manipulating item): Add 1
-
Hero - Modify Intelligence of (Hero manipulating item): Add 1
-
Hero - Modify Strength of (Hero manipulating item): Add 4
-
Unit - Add Iron Armor 5def to (Hero manipulating item)
-
-
-
-
Else - Actions
-
Game - Display to (All players matching ((Owner of (Hero manipulating item)) Equal to (Matching player))) the text: |cffff0000Item can'...
-
Hero - Create Iron Set - |cffffcc00Chest Armor|r and give it to (Hero manipulating item)
-
-
-
-
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 Cloth Set - |cffffcc00Chest Armor|r
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
And - All (Conditions) are true
-
Conditions
-
(Unit-type of (Hero manipulating item)) Equal to Mage
-
Equip_Chest[(Player number of (Owner of (Hero manipulating item)))] Equal to False
-
-
-
-
Then - Actions
-
Unit Group - Pick every unit in (Units owned by (Owner of (Hero manipulating item))) and do (Actions)
-
Loop - Actions
-
Set Equip_Chest[(Player number of (Owner of (Hero manipulating item)))] = True
-
Set chest[(Player number of (Owner of (Hero manipulating item)))] = cloth armor
-
Hero - Modify Agility of (Hero manipulating item): Add 1
-
Hero - Modify Intelligence of (Hero manipulating item): Add 6
-
Hero - Modify Strength of (Hero manipulating item): Add 1
-
Unit - Add Iron Armor 2def to (Hero manipulating item)
-
-
-
-
Else - Actions
-
Game - Display to (All players matching ((Owner of (Hero manipulating item)) Equal to (Matching player))) the text: |cffff0000Item can'...
-
Hero - Create Cloth Set - |cffffcc00Chest Armor|r and give it to (Hero manipulating item)
-
-
-
-
Else - Actions
-
-
-
-
Unequip Chest
-
Events
-
Player - Player 1 (Red) types a chat message containing -unequip chest as An exact match
-
Player - Player 2 (Blue) types a chat message containing -unequip chest as An exact match
-
Player - Player 3 (Teal) types a chat message containing -unequip chest as An exact match
-
Player - Player 4 (Purple) types a chat message containing -unequip chest as An exact match
-
Player - Player 5 (Yellow) types a chat message containing -unequip chest as An exact match
-
Player - Player 6 (Orange) types a chat message containing -unequip chest as An exact match
-
Player - Player 7 (Green) types a chat message containing -unequip chest as An exact match
-
Player - Player 8 (Pink) types a chat message containing -unequip chest as An exact match
-
-
Conditions
-
Actions
-
Game - Display to (All players) the text: 1
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Equip_Chest[(Player number of (Matching player))] Equal to True
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
chest[(Player number of (Matching player))] Equal to iron armor
-
-
Then - Actions
-
Unit Group - Pick every unit in (Units owned by (Matching player)) and do (Actions)
-
Loop - Actions
-
Set Equip_Chest[(Player number of (Owner of (Picked unit)))] = False
-
Set chest[(Player number of (Owner of (Picked unit)))] = <Empty String>
-
Hero - Modify Agility of (Picked unit): Subtract 1
-
Hero - Modify Intelligence of (Picked unit): Subtract 1
-
Hero - Modify Strength of (Picked unit): Subtract 4
-
Unit - Remove Iron Armor 5def from (Picked unit)
-
Hero - Create Iron Set - |cffffcc00Chest Armor|r and give it to (Picked unit)
-
Game - Display to (All players matching ((Owner of (Picked unit)) Equal to (Matching player))) the text: Item Sucessfully un...
-
-
-
-
Else - Actions
-
Unit Group - Pick every unit in (Units owned by (Matching player)) and do (Actions)
-
Loop - Actions
-
Game - Display to (All players matching ((Owner of (Picked unit)) Equal to (Matching player))) the text: You don't have a ch...
-
-
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
chest[(Player number of (Matching player))] Equal to cloth armor
-
-
Then - Actions
-
Game - Display to (All players) the text: 2
-
Unit Group - Pick every unit in (Units owned by (Matching player)) and do (Actions)
-
Loop - Actions
-
Game - Display to (All players) the text: 3
-
Set Equip_Chest[(Player number of (Owner of (Picked unit)))] = False
-
Set chest[(Player number of (Owner of (Picked unit)))] = <Empty String>
-
Hero - Modify Agility of (Picked unit): Subtract 1
-
Hero - Modify Intelligence of (Picked unit): Subtract 6
-
Hero - Modify Strength of (Picked unit): Subtract 1
-
Unit - Remove Iron Armor 2def from (Picked unit)
-
Hero - Create Cloth Set - |cffffcc00Chest Armor|r and give it to (Picked unit)
-
Game - Display to (All players matching ((Owner of (Picked unit)) Equal to (Matching player))) the text: Item Sucessfully un...
-
-
-
-
Else - Actions
-
Unit Group - Pick every unit in (Units owned by (Matching player)) and do (Actions)
-
Loop - Actions
-
Game - Display to (All players matching ((Owner of (Picked unit)) Equal to (Matching player))) the text: You don't have a ch...
-
-
-
-
-
-
Else - Actions
-
-
-
The unequip function doesn't work at all, i can see the game message "1" and "2" but the 3 never appear. These were ment only to see how far the trigger can go so the "cloth armor" string idea work but for some reason the trigger wont go in the loop.