somebody plz help me with this trigger
Posted: Wed Oct 24, 2007 4:14 pm
atm i'm attempting to make a tag map and i'm almost done i just need some major help with this trigger.
In my map I have about 8 different units as the runner but i'll just ask you to help me with the chicken(red) so you won't get confused. First off I made it so that when you die you respawn as another unit - chicken(captured) at region 001. So what i'm trying to do is, I wanna make a trigger that when a unit enters region 000 the chicken(captured) dies but at the same time I want it to revive the unit you began with which is the chicken, at region 000. This is what i did:
This is the trigger that I made where the chicken dies - Note this trigger DOES work I just wanna know if I did the variable right:
Event: Unit - Chicken 001 Dies
Conditions: None
Actions:
Unit - Create 1 Chicken (captured) for Player 1 (Red) at (Center of Region 001 ) facing Default building facing degrees.
VARIABLE Set Player1captured = (Units in Region 001 owned by Player1 (Red))
VARIABLE Set Player1 = (Units owned by Player 1 (Red))
Unit Group - Remove all units of Player1Captured from Player1
Unit Group - Pick every unit in Player1 and do (Unit - Kill (Picked unit))
Now this is the trigger I have trouble with:
Event: A unit enters region 000
Conditions: None
Actions:
Units Group: Pick every unit in Player1captured and do (Unit - Kill (Picked Unit))
Unit: Create 1 Chicken for Player 1 (Red) at (Center of Region 000 ) facing (Position of (Triggering Unit))
My problem is that when you move to region 000 to activate the revival trigger about 20-25 units spawn instead of just one ive been working at this one trigger for a few days now and its getting annoying plz help (if you could give me an exact code that would be awsome if not thats fine too)
In my map I have about 8 different units as the runner but i'll just ask you to help me with the chicken(red) so you won't get confused. First off I made it so that when you die you respawn as another unit - chicken(captured) at region 001. So what i'm trying to do is, I wanna make a trigger that when a unit enters region 000 the chicken(captured) dies but at the same time I want it to revive the unit you began with which is the chicken, at region 000. This is what i did:
This is the trigger that I made where the chicken dies - Note this trigger DOES work I just wanna know if I did the variable right:
Event: Unit - Chicken 001 Dies
Conditions: None
Actions:
Unit - Create 1 Chicken (captured) for Player 1 (Red) at (Center of Region 001 ) facing Default building facing degrees.
VARIABLE Set Player1captured = (Units in Region 001 owned by Player1 (Red))
VARIABLE Set Player1 = (Units owned by Player 1 (Red))
Unit Group - Remove all units of Player1Captured from Player1
Unit Group - Pick every unit in Player1 and do (Unit - Kill (Picked unit))
Now this is the trigger I have trouble with:
Event: A unit enters region 000
Conditions: None
Actions:
Units Group: Pick every unit in Player1captured and do (Unit - Kill (Picked Unit))
Unit: Create 1 Chicken for Player 1 (Red) at (Center of Region 000 ) facing (Position of (Triggering Unit))
My problem is that when you move to region 000 to activate the revival trigger about 20-25 units spawn instead of just one ive been working at this one trigger for a few days now and its getting annoying plz help (if you could give me an exact code that would be awsome if not thats fine too)
