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

Effects only at night

Status
Not open for further replies.

hdm

hdm

Level 9
Joined
Nov 19, 2011
Messages
384
How can I make an unit get the effects of Unholy Aura only at night ?Meaning,a hero has the ability,but it is just effective at the night.
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
Come on -.- When the gametime reaches 18:00 create a dummy at the center of the map and add the aura to it. Make the AoE of the aura 99999999999 and you're set. When gametime reaches 6:00 remove the dummy.
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
But,the regeneration ??Movement speed bonus ??
Add ability to it.
Remove it when it's Daytime 06:00.

you can set movement speed with a trigger action, and you got to trigger the hp reg in a loop.
Don't set movement speed, it could bug if you don't handle it properly, just use Item Move Speed Bonus ability added to that unit, when Daytime, remove it.

Come on -.- When the gametime reaches 18:00 create a dummy at the center of the map and add the aura to it. Make the AoE of the aura 99999999999 and you're set. When gametime reaches 6:00 remove the dummy.
Come on, if the unit has the ability, it should be logic that only nearby units will get affected, right ?
He said Unholy Aura, well assume it is 600 AOE around the Hero.
When the Hero goes back to base, allied units will still get the aura at the middle or basically anywhere on the map will get the aura and will said "wtf is this?"

Just add Unholy Aura ability to the Hero, it will look realistic (since it only affects 600 AOE) around the Hero only.
 
  • Like
Reactions: hdm

hdm

hdm

Level 9
Joined
Nov 19, 2011
Messages
384
may u give me a tigger exemplifying ?It's very hard to do
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
  • Untitled Trigger 001
    • Events
      • Game - The in-game time of day becomes Equal to 18.00
    • Conditions
    • Actions
      • Unit - Add Unholy Aura to YourUnit
  • Untitled Trigger 001
    • Events
      • Game - The in-game time of day becomes Equal to 6.00
    • Conditions
    • Actions
      • Unit - Remove Unholy Aura from YourUnit
 

hdm

hdm

Level 9
Joined
Nov 19, 2011
Messages
384
But it is if the unit is already in the map.I want when he is not in the map and when he learns the spell and after 18:00 it starts the effects and I want it having 4 levels,such as balanar's hunter in the night...
"at day time,no one fear the nightstalker" and when becomes the night the tooltip changes,and the effects start.Srry for being very demanding,if there is no way to help,u can tell me that I understand
:)
 
[TD]
  • Aura
    • Events
      • Game - The in-game time of day becomes Equal to 6.00
      • Game - The in-game time of day becomes Equal to 18.00
      • Unit - A unit Learns a skill
    • Conditions
    • Actions
      • -------- Clean Group Leak --------
      • Custom script: set bj_wantDestroyGroup = true
      • -------- Loop all units --------
      • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
        • Loop - Actions
          • -------- Manage time --------
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (In-game time of day) Equal to 6.00
            • Then - Actions
              • -------- Swap Day --------
              • Unit - Add Unholy Aura (Day) to (Picked unit)
              • Unit - Set level of Unholy Aura (Day) for (Picked unit) to (Level of Unholy Aura (Night) for (Picked unit))
              • Unit - Remove Unholy Aura (Night) from (Picked unit)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (In-game time of day) Equal to 18.00
                • Then - Actions
                  • -------- Swap Night --------
                  • Unit - Add Unholy Aura (Night) to (Picked unit)
                  • Unit - Set level of Unholy Aura (Night) for (Picked unit) to (Level of Unholy Aura (Day) for (Picked unit))
                  • Unit - Remove Unholy Aura (Day) from (Picked unit)
                • Else - Actions
                  • -------- Handle Levelup --------
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • And - All (Conditions) are true
                        • Conditions
                          • (In-game time of day) Greater than 6.00
                          • (In-game time of day) Less than 18.00
                    • Then - Actions
                      • -------- Levelup Day --------
                      • Unit - Add Unholy Aura (Day) to (Picked unit)
                      • Unit - Set level of Unholy Aura (Day) for (Picked unit) to (Level of Unholy Aura (Night) for (Picked unit))
                      • Unit - Remove Unholy Aura (Night) from (Picked unit)
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • And - All (Conditions) are true
                            • Conditions
                              • (In-game time of day) Greater than 18.00
                              • (In-game time of day) Less than 6.00
                        • Then - Actions
                          • -------- Levelup Night --------
                          • Unit - Add Unholy Aura (Night) to (Picked unit)
                          • Unit - Set level of Unholy Aura (Night) for (Picked unit) to (Level of Unholy Aura (Day) for (Picked unit))
                          • Unit - Remove Unholy Aura (Day) from (Picked unit)
                        • Else - Actions
[/TD][TD]Krhm... This one is 'ought to help you.[/TD]
 
Last edited:
  • Like
Reactions: hdm
Level 14
Joined
May 22, 2010
Messages
362
I did this a long time ago by making the ability require a dummy unit named night time, when game time reaches 18:00 I create the dummy unit for the player(or each player if necessary), when game time reaches 6:00 I remove the dummy unit.
 

hdm

hdm

Level 9
Joined
Nov 19, 2011
Messages
384
Note: This does not yet handle leveling up event, so if you level up while
having the day skill, you will then most likely have both night and day.
I can make a condition for such if needed.

Tell me how to make the condition
 
Status
Not open for further replies.
Top