• 🏆 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!

[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,649
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