• 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.

Day/Night active spells.

Status
Not open for further replies.
Level 4
Joined
Aug 20, 2004
Messages
65
How do I make a trigger that will turn off certain spells during the night? Like in DotA the Night Stalker's aura only works during the night. What triggers are involved?

Also: will it work with the moonstone ability?
 

Rui

Rui

Level 41
Joined
Jan 7, 2005
Messages
7,550
In DotA they have an endurance aura ability and an attribute bonus skill which grants no stats. When it's day, they add the attribute bonus with no stats skill and remove the endurance aura, and vice-versa. I think there's an event to detect when the clock reaches a certain time. If not, use the Check Every X Seconds, and condition it properly.

I don't have my TFT disk at moment so I can't build the trigger properly for you, I'm sorry.
 
Level 9
Joined
Jul 27, 2006
Messages
652
Enable/Disable the ability

Another way to do it is to add both abilities, then enable the one you want to be used and disable the other periodical with the correct game time conditions (As Rui said).
This can be done with the enable/disable ability action under the unit actions group.
 

Rui

Rui

Level 41
Joined
Jan 7, 2005
Messages
7,550
By the way, you can make the ability "Nobody fears the Night Stalker during the night" a 0% evasion or something. Then, make an Attribute Bonus and change it as you will, confirming the "Hide Button". Create 5 endurance auras and each time you replace the abilities, detect what level is the Attribute Bonus, and replace it with the correct Endurance Aura which maches the level. You need only one of the "Nobody fears the Night Stalker during the night" since it does nothing.
 
Status
Not open for further replies.
Top