HELP i want to make lava terrain do damage over time

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
wc3noob
Junior Member
Posts: 49
Joined: October 14th, 2008, 2:11 am
Title: Cheater
Location: US WEST

HELP i want to make lava terrain do damage over time

Post by wc3noob »

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 :?:
Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: HELP i want to make lava terrain do damage over time

Post by Arabidnun »

Sorry, I just crashed my computer, YET AGAIN!

Anyways...What you wanna do is basically

Code: Select all

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
User avatar
wc3noob
Junior Member
Posts: 49
Joined: October 14th, 2008, 2:11 am
Title: Cheater
Location: US WEST

Re: HELP i want to make lava terrain do damage over time

Post by wc3noob »

Thanks!!!!!!!!!!!!!!!!!!!!
Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: HELP i want to make lava terrain do damage over time

Post by Arabidnun »

No problem, Don't hesitate to ask
User avatar
wc3noob
Junior Member
Posts: 49
Joined: October 14th, 2008, 2:11 am
Title: Cheater
Location: US WEST

Re: HELP i want to make lava terrain do damage over time

Post by wc3noob »

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))
Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: HELP i want to make lava terrain do damage over time

Post by Arabidnun »

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))
User avatar
wc3noob
Junior Member
Posts: 49
Joined: October 14th, 2008, 2:11 am
Title: Cheater
Location: US WEST

Re: HELP i want to make lava terrain do damage over time

Post by wc3noob »

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"
Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: HELP i want to make lava terrain do damage over time

Post by Arabidnun »

Code: Select all

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
Use this