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

Day/Night Aura Problem

Status
Not open for further replies.
Level 13
Joined
Oct 16, 2010
Messages
737
Hi

I've made a healing aura that is based on the Hero's intelligence that is meant to double when at night time (it's a NE hero). However for whatever reason it doesn't seem to work.

Here is the trigger:

  • Elunes Blessing
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is alive) Equal to True) and ((Level of Elune's Blessing for (Matching unit)) Greater than or equal to 1))) and do (Actions)
        • Loop - Actions
          • Set EB_CasterUnit = (Picked unit)
          • Set EB_CasterPoint = (Position of EB_CasterUnit)
          • Set EB_Group = (Units within 800.00 of EB_CasterPoint matching (((((Matching unit) is alive) Equal to True) and (((Matching unit) is A structure) Equal to False)) and (((Owner of (Matching unit)) Equal to (Owner of EB_CasterUnit)) or ((((Owner of (Matching unit)) is an ally
          • 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 18.00
              • (In-game time of day) Less than or equal to 6.00
            • Then - Actions
              • Set EB_Damage = (((Real((Intelligence of EB_CasterUnit (Exclude bonuses)))) x 0.40) x ((Percentage life of EB_CasterUnit) / 100.00))
            • Else - Actions
              • Set EB_Damage = (((Real((Intelligence of EB_CasterUnit (Exclude bonuses)))) x 0.20) x ((Percentage life of EB_CasterUnit) / 100.00))
          • Unit Group - Pick every unit in EB_Group and do (Actions)
            • Loop - Actions
              • Set EB_TargetUnit = (Picked unit)
              • Unit - Set life of EB_TargetUnit to ((Life of EB_TargetUnit) + EB_Damage)

EDIT: Solved - Needed to add an "Or" to the conditions of it being night.
 
Last edited:
Level 3
Joined
Aug 4, 2013
Messages
55
Put your EB_CasterPoint n EB_Group at top of your action also put your both EB_Damage at top of your action, then use if/then/else for each condition you have. Remember to remove leak, you have group leak n position leak
 
Status
Not open for further replies.
Top