Please help with my trigger problems for an escape map

For fulfilled maps that most likely don't work on the latest patch (1.24 or later).

Moderator: Cheaters

soulcalibar3
Newcomer
Posts: 8
Joined: September 9th, 2008, 4:08 am
Title: Crack Whore
Location: CA

Please help with my trigger problems for an escape map

Post by soulcalibar3 »

i have been trying to figure out how to make the grass in my escape level be fatal to the touch but havnt gotten it also i want to know how to make the map into segments and make everybody respawn when they get to certain point any help much appriciated
User avatar
Kryptonyte
Forum Staff
Posts: 1400
Joined: March 17th, 2008, 12:07 am

Re: Please help with my trigger problems for an escape map

Post by Kryptonyte »

Hey Soul. :P (It's me, ShadySoldier)
In this example, the unit type dying will be a Footman,
the terrain type will be Grass.

I took a look into WE, and I decided this would work...
(Might not be the BEST way, but it will work... I think...)

Code: Select all

Event - Periodic Event - Every 0.10 seconds of the game

Conditions -

Unit Group - Pick every unit in (Units of type Footman) and do (Actions)
    Loop - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Terrain type at (Position of (Picked unit))) Equal to Lordaeron - Grass
                ((Picked unit) is alive) Equal to True
            Then - Actions
                Unit - Kill (Picked unit)
Now, for the "segments", these are called regions.
You can push "R" or, with the Tool Palette, go down to Region Palette.
You can make a new region, just click and drag... (I don't think I need to explain this part... :P)

Now, to make a unit respawn when they get there, first, they either all need to be the same unit type,
E.X. All the units must be footmen, or they need to be in a group. I'll give the example as if they were all
footman. (If you need the other way, just make a post, I will be glad to help you out.)

Seems how I used a Footman in the trigger above, I will continue with it in the example.
The region in this example will be named "Region 000" (The name of the first region made)
Player in this example is just Red, you can add more players if you need.

Code: Select all

Event - A unit enters Region 000 <gen>

Conditions - 

Actions - Unit - Kill (Triggering unit)
Wait - 5.0 seconds
Unit - Create 1 Footman for Player 1 (Red) at (Center of Region 000 <gen>) facing (Position of (Triggering unit))
Trigger - Turn off (This trigger)
This will kill the unit, wait 5 seconds, create a footman for Red, then turn itself off. (Unless you want it to turn on... I can show you how, if you need)

If you have any questions/comments, please make a post here or send me a PM.
Image
Made by the late ILikeHacking

My quote from SKillER
Spoiler:
Chat wrote:(19:12:41) SKillER: newfags cant triforce
(19:20:30) SKillER: ▲
▲ ▲
(19:20:35) SKillER: aww
(19:20:37) FatherSpace: FAIL
(19:20:43) Kryptonyte: Wow stop failing.
(19:20:47) SKillER: ▲
▲ ▲
(19:21:41) Kryptonyte: .

. ▲
▲ ▲
(19:22:20) Kryptonyte: I guess you were right, newfags can't triforce.
(19:22:29) SKillER: . . ▲
▲ ▲
(19:23:04) SKillER: OMFG
(19:23:06) SKillER: ... THIS CHAT
(19:23:06) SKillER: !
(19:23:36) SKillER: ▲
▲ ▲
(19:23:46) SKillER: ▲
.▲ ▲
Apparently, SKillER is a newfag.