• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Ablility only working at night

Status
Not open for further replies.
Level 5
Joined
Mar 27, 2008
Messages
107
Heyho, Im making an ability based on Berserk, (inc. a units attack speed/movement speed for a short amount of time) But I would like this ability to only work at night time, ive tried alot but havnt find any really good way to do this. Anyone have a solution? :)

+rep for any helpfull answers

Thanks!
 
Level 20
Joined
Oct 21, 2006
Messages
3,231
Go to your ability options and set Requirements: DUMMYBUILDING


Trigger 1
Game time becomes equal to 6.00
Remove DUMMYBUILDINGVARIABLE[1]
...

Trigger 2
Game time becomes equal to 18.00
Create 1 DUMMYBUILDING for player 1 at point1
Set variable DUMMYBUILDINGVARIABLE[1] = last created unit
...


DUMMYBUILDING is a building with corrupted model file and locust ability so it can not be chosed in game. Also name DUMMYBUILDING to "Night". Then the tooltip would say "Requirements: - Night".
 
Status
Not open for further replies.
Top