Please help with my trigger problems for an escape map
Moderator: Cheaters
-
- 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
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
-
- Forum Staff
- Posts: 1400
- Joined: March 17th, 2008, 12:07 am
Re: Please help with my trigger problems for an escape map
Hey Soul. (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...)
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... )
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.
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.
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)
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... )
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)
If you have any questions/comments, please make a post here or send me a PM.
Made by the late ILikeHacking
My quote from SKillER
Spoiler: