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?
 
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.
 
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.
 
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.
Back
Top