• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Maze of Poison Vines

Status
Not open for further replies.

SKoDBlastoise

S

SKoDBlastoise

Okay i maded a Maze called Maze of Poison Vines. I did all the Tiles to go on
but i forgot how to make the mazer die when you go on the vine. I havent played warcraft for a long time so i will be happy if you tell me.

-SKoDBlastoise
 
This can be done in 2 ways, either with regions or with it tjecking if the picked unit is on that certain tile type as you are supposed to die on.

Trigger for the region type kill.

Code:
Events
    Unit - A unit enters death region 1 <gen>
Conditions
    (Owner of (Triggering unit)) Not equal to Player 12 (Brown)
Actions
    Unit - Kill (Triggering unit)

Trigger for the terrain type kill.

Code:
Events
Time - Every 0.10 seconds of game time
Conditions
None
Actions
Unit Group - Pick every unit in (Units of type |cff965E97Jetpack Jumper) and do (Actions)
    Loop - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Picked unit) is alive) Equal to True
                Or - Any (Conditions) are true
                    Conditions
                        (Terrain type at (Position of (Picked unit))) Equal to Dalaran - Dirt
            Then - Actions
                Unit - Kill (Picked unit)
            Else - Actions
None
 

Myclam--

M

Myclam--

oh god, please clean the memory in the second trigger, please...

every .1 seconds leaking a new unit-group variable, and 1 location variable for each player... not cool
 
Status
Not open for further replies.
Top