-
Trigger spell
-
Events
-
Unit - A unit Begins casting an ability
-
Conditions
-
(Ability being cast) Equal to (Your ability)
-
(Target of (ability being cast)) Equal to Structure
-
Actions
-
Unit - Change ownership of (Target unit of ability being cast) to (Owner of casting unit) and Change color
Some editing, if you want a building take over trigger, then you should put a structure as a condition (I dont remember the exact trigger, but the condition should be something similar).
Also, the waiting time is not nesscary.
Alee: when making your spell, simply scroll down to
Casting Time and set it to the desired time you want.
Also, if you wish to make the spell even simpler, you can use the charm ability, and make its targets allow only structures. (Make sure to make it a unit ability first if its a unit that is casting).
Thanks drp3, I got it to work. Also can anyone tell me how to start a Timer for same trigger? I need a count down timer for 30sec when the ability is being casted. I tried to do it but it never counted down.
So you need one for the same spell? explain more. Anyway, the timer Drp3 did is correct, but if you want it to start when the ability is cast it should be the following:
-
Events
-
Unit - A unit begins casting an ability
-
Conditions
-
Ability being cast equal to (Your ability)
-
Actions
-
Countdown Timer - Start (your timer) as a One-shot timer that will expire in 30.00 seconds
-
Countdown Timer - Create a timer window for (Your timer) with title Your timer