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

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