• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Request] TakeOver Trigger

Status
Not open for further replies.
Level 2
Joined
Jun 29, 2007
Messages
19
I need a Spell System that lets unit take over a building using a spell/ability which takes X number of seconds.

\Thanks/:thumbs_up:
 
Level 6
Joined
May 19, 2007
Messages
177
tell me if im wrong because im not good with spells and stuff but here goes:

Make a dummy spell that can target a building then use this
  • Trigger spell
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to (Your ability)
    • Actions
      • Wait 20.00 game-time seconds
      • Unit - Change ownership of (Target unit of ability being cast) to Player 1 (Red) and Change color
 
Level 2
Joined
Jun 29, 2007
Messages
19
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.
 
Level 6
Joined
May 19, 2007
Messages
177
ok i think i know this one 2

make a timer variable then do this

  • timer example
    • Events
      • Time - Elapsed game time is 5.00 seconds
    • Conditions
    • 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
just add the actions to your trigger or whatever
 
Level 10
Joined
Mar 30, 2007
Messages
447
  • 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
 
Status
Not open for further replies.
Top