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

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,230
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