Meta + day/night trigger

tachiKC

New Member
Reaction score
3
Code:
Moonlight learn
    Events
        Unit - A unit Learns a skill
    Conditions
        (Learned Hero Skill) Equal to Moonlight (day)
    Actions
        Set Weredog = (Triggering unit)
        Unit - Add Moonlight (night) to Weredog
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (In-game time of day) Greater than or equal to 6.00
                (In-game time of day) Less than 18.00
            Then - Actions
                Unit - Set level of Moonlight (night) for Weredog to 1
            Else - Actions
                Unit - Set level of Moonlight (night) for Weredog to ((Level of Moonlight (day) for Weredog) + 1)
Code:
Moonlight day
    Events
        Game - The in-game time of day becomes Greater than or equal to 6.00
    Conditions
        (In-game time of day) Less than 18.00
    Actions
        Unit - Set level of Moonlight (night) for Weredog to 1
Code:
Moonlight night
    Events
        Game - The in-game time of day becomes Less than 6.00
        Game - The in-game time of day becomes Greater than or equal to 18.00
    Conditions
    Actions
        Unit - Set level of Moonlight (night) for Weredog to ((Level of Moonlight (day) for Weredog) + 1)
Those are the triggers. The hero has a meta ability that changes it into a wolf, but when it does it loses the Moonlight ability.

I know why I think, because the meta'd unit is a different unit, and I just need to know how I could make the ability work for both.

I attached the map too.

Thanks!
 

Attachments

  • map.w3x
    21.6 KB · Views: 77

gameman

It's been a long, long time.
Reaction score
96
It looks like the spell level is +1 every time it becomes night or day.

Instead of adding or removing the ability do this (at the right times).
Code:
Player - Enable Moonlight (night) for Player 1 (Red)
Player - Disable Moonlight (day) for Player 1 (Red)
 

tachiKC

New Member
Reaction score
3
Basically, I want him to get a movement increase at night, which goes away during the day.

*edit
It works, but the icon disappears =(
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Make an aura for it?
If you know DotA, I'm assuming you're trying to recreate 'Night Stalker's' 'Hunter In The Night'?
And like gameman said, when night comes, enable the skill, and when day comes, disable the skill.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top