• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

[HELP] Day-time Spell? How?

Status
Not open for further replies.
Level 9
Joined
Aug 7, 2009
Messages
380
Hello, How to make a day-time spell. Just like Balanar (Night Stalker) in dota? his "Hunter in the Night"? It replace a learned ability with another spell when it's daytime is at night, and another ability when daytime is day? I tried to remove the spell when it is learned by hero, but it just beeing level 1 and level 1 again when trying to learn it to level 2? How to do that? Thanks and rep (maybe credit cause it's kind of important)
 
Level 15
Joined
Mar 8, 2009
Messages
1,651
1) make an intereger variable
2) set it to the level of that ability
3) update it every time the Hero levels up that ability
4) whenever he switches abilities, set ability's level to the value of the variable
5) ?????
6) PROFIT!
 
Status
Not open for further replies.
Top