• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Spell] How to do Invulnerability ability?

Status
Not open for further replies.
Level 19
Joined
Jan 12, 2011
Messages
1,537
Well im working on a map like DotA but with "Harder" gameplay (if i can call it like that)..
well the only problem is that i dont know how to do the trigger for Tower invulnerability that u do on your circle of power for 5 seconds :S can someone help me?
oh yeah i made 1 but the problem is that the Invulnerability doesnt go away after the 5 seconds
:vw_wtf:
 
Ok here it is
b9g5c2.png
 
You can not use TriggerSleepAction (behind GUI waits) inside an enum (for unit in group do loop). Doing so results in an immediate thread crash.

Rather add all these buildings to an array list and then itterate through all the units and apply the effect. After doing that start a timer for 5 seconds. When the timer expires you then itterate through all the buildings and remove the effect.

2 Triggers.
1. Register when cast -> add effect to appropiate buildings -> start timer for 5 seconds
2. Register when timer expires -> remove effect from all buildings.
 
Status
Not open for further replies.
Back
Top