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

Lava Terrain Problem

Status
Not open for further replies.
Level 3
Joined
Dec 23, 2009
Messages
32
Hey I have an area with Lava in my map and I want to make a trigger which makes the unit
who goes on the lava to lose health or even better burn(animation) without useing regions.

The way I tried it was

  • Lava
    • Events
      • ???
    • Conditions
      • (Terrain type at (Position of (Triggering unit))) Equal to Dungeon - Lava Cracks
    • Actions
      • -------- Some Actions.. --------

The problem is telling the system what the triggering unit is, without useing regions

If you see a way to make this type of trigger please post bellow and Ill ofc give +rep :)
 
Level 3
Joined
Feb 23, 2010
Messages
73
  • Events
    • Periodic Event - Every 0.50 seconds of the game
  • Conditions
  • Actions
    • Pick every unit in (Units in (Playable map area)) and do Actions
      • Loop
        • If
          • terrain type at (position of (picked unit)) Equal to (Dungeon - Laval Cracks)
        • Then
          • Unit - Damage (Picked unit) by (lava damage)
          • Special Effect - Create a special effect attached to chest of (picked unit) using (immolation target)
          • wait 0.40 seconds
          • Special Effect - Remove (last created special effect)
        • Else
          • Do Nothing
If you ever find yourself in a bind like this, I learned to start with every unit on the map, and narrow your selection to what you want over a periodic event. It's a very effective method. In this instance, we only had one factor - The lava. If there are more factors (ie. player, unit type, etc.) then use Unit Group - Remove unit group. You can remove units that you dont want affected by groups, say to not target player 1, use
  • Actions
    • Unit Group - Remove (units owned by (Player 1 - Red))
or to only target red, instead of picking every unit in playable map area,
do:
  • Set My_unit_group = units owned by (Player 1 - Red)
and go from there.

hope this helps!
 
Status
Not open for further replies.
Top