I have a hero named worker and an item nearby named building hammer. When the hero picks the item, he turns into a hero named builder and when he drops the item he turns into worker again. For this i have 2 triggers:
How to make this work?
-
Pick Hammer
-
Events
- Unit - A unit Acquires an item
-
Conditions
- (Item-Type of (Item being manipulated)) Equal to Building Hammer
- (Unit-Type of (Hero manipulating item)) Equal to Worker
-
Actions
- Unit - Replace (Hero manipulating item) with a Builder using The old unit's relative life and mana
-
Events
-
Drop Hammer
-
Events
- Unit - A unit Looses an item
-
Conditions
- (Item-Type of (Item being manipulated)) Equal to Building Hammer
- (Unit-Type of (Hero manipulating item)) Equal to Builder
-
Actions
- Unit - Replace (Hero manipulating item) with a Worker using The old unit's relative life and mana
-
Events
How to make this work?