Recently I've been making this UMS map and after one complication after another I'm finally stumped by this simple trigger that won't act out the way I like...
In this map, I want to to create a dragoon for player 1 after player 1 has suffered the death of a zergling at the same spot the zergling died at. This map is sort of in the format of a hero game so this is how it goes...I made this Location called 'P1' and it is meant to follow player 1's zergling through out the map and game. But, when player 1's zergling dies, I want the trigger to create a dragoon at the exact spot the zergling died. And once the dragoon has died, I want the trigger to create a zergling at the exact spot the dragoon died at. However, when I test this trigger out, it says the buidling exit for the dragoon has been blocked. And this way will probably create multiple dragoons when i only want one.
** I made it so that location 'P1' is following all 'men' owned by player 1 because its a hero game and player 1 always has 1 'men' on the map.
This is how I set my triggers to *attempt* it to function as to my orders...
| Trigger |
| Description: |
| Trigger 1 |
|
| Players: |
| ¤ Player 1 |
| Conditions: |
| ¤ Player 1 has suffered exactly 1 deaths of zergling |
| Actions: |
¤ Create 1 dragoon at 'P1' for player 1
|
| ¤ Preserve trigger |
| Trigger |
| Description: |
| Trigger 2 |
|
| Players: |
| ¤ Player 1 |
| Conditions: |
| ¤ Player 1 has suffered exactly 1 deaths of dragoon |
| Actions: |
¤ Create 1 zergling at 'P1' for player 1
|
| ¤ Preserve Trigger |
Remember to set deaths to 0 or it will set off over and over again... If you're ever in an area where its very narrow it just can't be done pretty much there since dragoons are a lot bigger then zerglings. Since enemies might swarm around you also would probably have to remove some of them directly arround you since the dragoon takes up more space.
QUOTE(Cheese_Burger_Eddy @ Oct 19 2005, 03:31 AM)
[SIZE=7]Player 1
[SIZE=7]Trigger 1
[SIZE=7]CONDITION:
[SIZE=7]-Player 1 has suffered exactly 1 deaths of zergling
ACTION:
[SIZE=7]-Create 1 dragoon at 'P1' for player 1
[SIZE=7]-Preserve trigger
[SIZE=7]Trigger 2
[SIZE=7]CONDITION:
[SIZE=7]-Player 1 has suffered exactly 1 deaths of dragoon
[SIZE=7]ACTION:
[SIZE=7]-Create 1 zergling at 'P1' for player 1
[SIZE=7]-Preserve trigger
[right][snapback]336964[/snapback][/right]
that trigger isnt right unless you add the trigger setdeaths or that preserve trigger will keep on creating goons or lings at the same spot forever
also close all the size tags with [size]
just take off preserve trigger?
QUOTE(Oo.Vic.oO @ Oct 19 2005, 03:00 PM)
just take off preserve trigger?
[right][snapback]337039[/snapback][/right]
if he takes off preserve trigger hes going to have to copy the trigger like 100 times because im pretty sure he wants it going forever since he used preserve trigger in the first place
Change the Condition of the Follow trigger to "Current player commands at least 1 men".
For each Respawn trigger, add an Action as follows: Set deaths for current player to: set to 0 for Zergling/Dragoon (the same unit as the Condition used)
o, u want it so when ling die u get dragoon, when dragoon died u get ling? Just set death back 2 0 in each trigger
Yes first you have to set your deaths to 0 like already said.
You also need to make sure you ONLY center the location when the unit is alive.
Anotherwords use the conditions. "Current player commands at least one zergling" in your trigger to center a location on your zergling.
If a Zergling and Dragon are the ONLY two units you will ever have then you can replace the specific unit with 'men' in both the conditions and actions of your trigger to save yourself making one extra trigger.
1. does it die in an impossible spot to be created?
2. is the dragoon being created useing "player 1" instead of current player?
3. Death counts to 0
i think it's #2 cause ur testing it with ur self and it might be on more then player 1 under players. so the other locations for the other players are affected cause maby you tried to make one trigg or all this or i might be wrong about this whole thing lol
your just all wrong.
first the unit can't die in a unplaceable location because it had to get there somehow and if so they trigger would just create the unit to the side of it.
second it doesn't matter what he has it on unless its on on force and he has create for player 1 instead of current player for himself
no cuz ling is much smaller than dragoon, it can go in small places that dragoon cant.
QUOTE(KABOOM @ Oct 21 2005, 02:52 PM)
your just all wrong.
first the unit can't die in a unplaceable location because it had to get there somehow and if so they trigger would just create the unit to the side of it.
second it doesn't matter what he has it on unless its on on force and he has create for player 1 instead of current player for himself
[right][snapback]338359[/snapback][/right]
If the location continues to move after the unit is dead then it is quite possable that it will move to a spot that is not placeable.
I believe that if you try and Move a Location over a non exisitng unit (like when it dies) then the location automatically goes to the center of the "Anywhere" location.
actually, it goes to the center of the location that it is being centered in, which in most cases is anywhere
Centering the Locations
Conditions:
- Player 1 commands exactly 1 zergling
Actions:
- Center location 'follow' on zergling owned for P1
- Preserve trigger
Do the same for the dragoon.
Creating Units at Locations
Condtions:
- Player 1 suffered death of zergling
- player 1 commands exactly 0 dragoon
Actions:
- Create one dragoon at 'follow'
- Set deaths of zergling to 0
- Preserve Trigger
Do the same with the dragoon.ya i know the zergling can go some places the dragoon can't but it would just create next to it if theres a space. also if u make the condition like l)ark_13 just put the location won't move to the center of the map it'll just stay were the zergling died.
QUOTE
ya i know the zergling can go some places the dragoon can't but it would just create next to it if theres a space. also if u make the condition like l)ark_13 just put the location won't move to the center of the map it'll just stay were the zergling died.
Well, when you die you often died because you are trapped, if you are trapped there won't be space.
simple:
have a burrowed unit underneath ur hero

trigger:
Conditions:
Plyr cmmds exactly 1 -hero- @ anywhere
Actions:
move -teh burrowed unit- to -hero- @ anywhere
Preserve trigga
Trigger2:
Conditions:
plyr suffers deaths of -hero-
Actions:
Create -hero2- @ *loc following hero*
Set deffs of -hero- to 0
preserve trigga
Trigger3:
Comditions:
Plyr cmmds -hero-
Actions:
centre loc *loc following hero* on ur living hero
preserve twigga
(all required for both heros)
(needs hyper)
in total 6 triggers - ez to make
PROBLEM SOLVED!

QUOTE(KABOOM @ Oct 23 2005, 10:47 AM)
ya i know the zergling can go some places the dragoon can't but it would just create next to it if theres a space. also if u make the condition like l)ark_13 just put the location won't move to the center of the map it'll just stay were the zergling died.
[right][snapback]339594[/snapback][/right]
If a unit can't be placed in an area restricted by terrain it will not be displaced to a suitable spot. Therefore the dragon would not be created next to it unless it was obsured by other units.
One more post to go before 2555th postYou would need to make a trigger stating that when the zergling dies that it puts a certain location on that zergling when it dies and do the same thing for the dragoon. You might need hyper triggers on to make it work so fast...
in the trigger that centers the location on player 1 unit do something like this
Trigger
Description:
Location follow
Players:
¤ Player 1
Conditions:
¤ Player 1 brings 1 men to location(playing area)
Actions:
¤ Move location(p1 follow) on men owned by Player 1 at location(playing area)
¤ Preserve Trigger
that should work fine, always works for me, the location(playing area) should only apply to the area that the zergling/dragoon can travel, if u hav like opther spots where p1 can command units, just put them on a seperate elevation and make the location(playing area) low elavation. its always worked for me, i dont see y it shouldnt for u
