Hy all, it was a long time ago when i last posted here but i'm going to start maping again
I want to harvest gold by attacking the ore on the ground while i keep the lumber harvesting ability for trees. I saw others who wanted to do this ,maybe i help them with my solution:
-make a dummy ability which has castingtime, based on drain life.
-set the gold source's type for something what noone can attack. (I used ward and disabled targeting ward on my unit)
-allow your dummy spell to target the gold source's type.
This is ok for an RPG but very unconfortable for many other kinds of maps so the best if someone can make an outo-casting dummy ability.
So ,what is my problem?
I want to make a unit able to harvest gold only when it picks up an item (pickaxe)
It would be easy, without any spell, if I could change the target-types what my unit can attack.
So the big question:
How to make my worker able to attack something (with triggers) if he originally cant attack it?
Sorry for my english and for this long "instruction"
I want to harvest gold by attacking the ore on the ground while i keep the lumber harvesting ability for trees. I saw others who wanted to do this ,maybe i help them with my solution:
-make a dummy ability which has castingtime, based on drain life.
-set the gold source's type for something what noone can attack. (I used ward and disabled targeting ward on my unit)
-allow your dummy spell to target the gold source's type.
Trigger:
- Event
- Unit - A unit Finishes casting an ability
- Condition
- (Ability being cast) Equal to DummyAbility
- Action
- Player - Add 10 to (Owner of (Triggering unit)) Current gold
- //even create a floating text "+10" above unit
This is ok for an RPG but very unconfortable for many other kinds of maps so the best if someone can make an outo-casting dummy ability.
So ,what is my problem?
I want to make a unit able to harvest gold only when it picks up an item (pickaxe)
It would be easy, without any spell, if I could change the target-types what my unit can attack.
Trigger:
- Event
- Unit - A unit Acquires an item
- Condition
- (Item-type of (Item being manipulated)) Equal to PickAxe
- Action
- ?
So the big question:
How to make my worker able to attack something (with triggers) if he originally cant attack it?
Sorry for my english and for this long "instruction"