i need help i have no idea how to do this (well i could do it a complicated way but...)
i want to make the lava terrain damage ground units when there on it like in 3ICE's maze designer
how do i and would it be GUI or JASS
Event:
Periodic Event - every 1 second
Condition:
(None)
Action:
Pick every unit in Playable Map Area and Do:
If COndition:
Terrain at (position of picked unit) Equal to *Lava*
Then:
Damage unit blah blah blah...I don't have we Open
Else:
Do nothing
i did something wrong but this looks right to me...
Unit Group - Pick every unit in (Units in (Playable map area)) and do (If ((Terrain type at (Position of (Picked unit))) Equal to Dungeon - Lava) then do (Unit - Explode (Triggering unit)) else do (Do nothing))
Unit Group - Pick every unit in (Units in (Playable map area)) and do (If ((Terrain type at (Position of (Picked unit))) Equal to Dungeon - Lava) then do (Unit - Explode (Triggering unit)) else do (Do nothing))
Thats the problem right there
Change that to this: (Unit - Explode (Picked Unit))
i thot that was it but yea...seriously i did...i thot that might be it....
works great but i got one question can i make it not affect flying units? i tryed these conditions but they didn't work... "(Picked unit)is a flying unit equal to false" "(triggering unit)is a flying unit equal to false"
Flying Unit Test
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is A flying unit) Not equal to True
(Terrain type at (Position of (Picked unit))) Equal to Dungeon - Lava
Then - Actions
Unit - Explode (Picked unit)
Else - Actions