• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Spell] Energy field campaign

You can open the map and see how they did
  • Shield01Enter
    • Events
      • Unit - A unit enters Shield01 <gen>
    • Conditions
      • (Owner of (Entering unit)) Equal to Player 7 (Green)
      • (Archmage01 is dead) Equal to False
      • (Undead Equal to (Race of (Entering unit))) or (((Entering unit) is Undead) Equal to True)
    • Actions
      • Unit Group - Add (Entering unit) to Shield01Group
  • Shield01Exit
    • Events
      • Unit - A unit leaves Shield01 <gen>
    • Conditions
      • (Owner of (Leaving unit)) Equal to Player 7 (Green)
      • (Race of (Leaving unit)) Equal to Undead
    • Actions
      • Unit Group - Remove (Leaving unit) from Shield01Group.
      • If ((((Leaving unit) is in Shield03Group.) Equal to True) or ((((Triggering unit) is in Shield02Group.) Equal to True) or (((Leaving unit) is in Shield01Group.) Equal to True))) then do (Do nothing) else do (Animation - Change (Leaving unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency)

  • Shield01Damage
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in Shield01Group and do (If ((Life of (Picked unit)) Greater than 0.00) then do (Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 10.00)) else do (Do nothing))
      • Unit Group - Pick every unit in Shield01Group and do (Animation - Change (Picked unit)'s vertex coloring to (50.00%, 0.00%, 50.00%) with 0.00% transparency)
 
  • Shield01Damage
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in Shield01Group and do (If ((Life of (Picked unit)) Greater than 0.00) then do (Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 10.00)) else do (Do nothing))
      • Unit Group - Pick every unit in Shield01Group and do (Animation - Change (Picked unit)'s vertex coloring to (50.00%, 0.00%, 50.00%) with 0.00% transparency)
but what if i just want any unit to enter a region without the prerequisite of unit as the caster of the said regional damage?
 
You can open the map and see how they did
i don't own the game and i tried using a model extractor (i found a thread regarding this) but there's is no manual option to scour the file of campaign maps

anyways i just want to ask what variable is that 'Shield01Group'? assuming its UnitGroup (in which i already tested on my map) the damage doesn't work
  • Easter Egg Stuff
    • Events
      • Unit - A unit enters Easter Egg <gen>
    • Conditions
      • (Owner of (Triggering unit)) Equal to Player 1 (Red)
      • (Owner of (Triggering unit)) Equal to Player 2 (Blue)
      • (Owner of (Triggering unit)) Equal to Player 3 (Teal)
      • (Owner of (Triggering unit)) Equal to Player 4 (Purple)
      • (Owner of (Triggering unit)) Equal to Player 5 (Yellow)
    • Actions
      • Unit Group - Add (Entering unit) to EasterEggDmg(variable)
  • Easter Egg Stuff 1
    • Events
      • Unit - A unit leaves Easter Egg <gen>
    • Conditions
      • (Owner of (Triggering unit)) Equal to Player 1 (Red)
      • (Owner of (Triggering unit)) Equal to Player 2 (Blue)
      • (Owner of (Triggering unit)) Equal to Player 3 (Teal)
      • (Owner of (Triggering unit)) Equal to Player 4 (Purple)
      • (Owner of (Triggering unit)) Equal to Player 5 (Yellow)
    • Actions
      • Unit Group - Remove (Leaving unit) from EasterEggDmg(variable)
  • Easter Egg Stuff 2
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in EasterEggDmg(variable) and do (If ((Life of (Triggering unit)) Greater than 0.00) then do (Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 10.00)) else do (Do nothing))
 
Last edited:
Back
Top