Im trying to make a unit called Tannery with 3 buttons: Craft Coat, Craft Boots, Craft Gloves.
I made everything for it but it always craft the last item.
And same for boots.
The unit got the abilitys:
Inventory(hero) Craft Coat, Craft Gloves, Craft Boots
And whichever button i press i always craft the same item.
First i crafted Always Gloves, then i tried changing requirement for Gloves so it is different and now it craft only boots (even if i press gloves button with the materials for boots... then it shouldnt do anything)
I think every ability that unit has gets cast when i press any of the buttons, but why?
I made everything for it but it always craft the last item.
Trigger:
- Tannery Craft Coat
- Events
- Unit - A unit Begins casting an ability
- Conditions
- (Ability being cast) Equal to Craft Coat
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- And - All (Conditions) are true
- Conditions
- (Item-type of (Item carried by (Triggering unit) in slot 1)) Equal to Deer Hide
- (Item-type of (Item carried by (Triggering unit) in slot 2)) Equal to Rope
- Conditions
- And - All (Conditions) are true
- Then - Actions
- Item - Remove (Item carried by (Casting unit) in slot 1)
- Item - Remove (Item carried by (Casting unit) in slot 2)
- Hero - Create Coat Level 1 and give it to (Triggering unit)
- Else - Actions
- Do nothing
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
Trigger:
- Tannery Craft Gloves
- Events
- Unit - A unit Begins casting an ability
- Conditions
- (Ability being cast) Equal to Craft Gloves
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- And - All (Conditions) are true
- Conditions
- (Item-type of (Item carried by (Triggering unit) in slot 1)) Equal to Deer Hide
- (Item-type of (Item carried by (Triggering unit) in slot 2)) Equal to Stone
- Conditions
- And - All (Conditions) are true
- Then - Actions
- Item - Remove (Item carried by (Casting unit) in slot 1)
- Item - Remove (Item carried by (Casting unit) in slot 2)
- Hero - Create Gloves Level 1 and give it to (Triggering unit)
- Else - Actions
- Do nothing
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
And same for boots.
The unit got the abilitys:
Inventory(hero) Craft Coat, Craft Gloves, Craft Boots
And whichever button i press i always craft the same item.
First i crafted Always Gloves, then i tried changing requirement for Gloves so it is different and now it craft only boots (even if i press gloves button with the materials for boots... then it shouldnt do anything)
I think every ability that unit has gets cast when i press any of the buttons, but why?