HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Whats wrong with this trigger?!?

04-12-2004, 02:44 AM#1
Leader
Events-
Unit - A unit owned by Player 1 (Red) Dies
Conditions-
(Unit-type of (Dying unit)) Equal to Ethinar
Actions-
Camera - Pan camera for Player 1 (Red) to (Center of Captures <gen>) over 0.00 seconds

Unit - Create 1 Ethinar for (Owner of (Triggering unit)) at (Center of Captures <gen>) facing Default building facing degrees

Unit Group - Pick every unit in (Units owned by Player 1 (Red)) and do (Unit - Kill (Picked unit))

-----------------------------------------------------------------

It stopped working when I put in the last action in the trigger....
Now when this trigger runs, the game crashes....
04-12-2004, 08:19 AM#2
giiefgii
That trigger creates an endless loop, creating and killing units until you stop wc3.
04-17-2004, 07:22 PM#3
Leader
Oh, well my goal is to have it so when a this unt (Ethinar) dies, then all of thta player's units die as well
04-17-2004, 07:28 PM#4
ThyFlame
Turn on another trigger
Turn off that trigger

The other trigger is wait 1 second, Turn on original trigger and turn off new trigger.
04-17-2004, 08:21 PM#5
The Gearhead
The problem is that the Ethinar is player 1's.
04-17-2004, 08:45 PM#6
ThyFlame
Unit - Create 1 Ethinar for (Owner of (Triggering unit)) at (Center of Captures <gen>) facing Default building facing degrees

Pick every unit in (Units owned by Player 1 (Red)) and add to UnitGroupVariable

Pick every unit in UnitGroupVariable matching unit-type Ethinar and remove from UnitGroupVariable

Unit Group - Pick every unit in UnitGroupVariable and do (Unit - Kill (Picked unit))


How about that?
04-17-2004, 09:03 PM#7
sc_freek
Just move the create unit under the kill units
04-17-2004, 10:16 PM#8
The Gearhead
Unit groups can only posess 12 units anyways.

Yeah, just create the Ethinar after you kill all their stuff.
04-18-2004, 01:38 AM#9
SwordMaster36
your goal is to mae kit to where once ethinar dies, then all the player's units die?

EVENT-
Unit owned by player 1 dies

CONDITION-
unit type of dying unit=ethinar

ACTION-
Unit Group - Pick every unit in (Units owned by Player 1 (Red)) and do (Unit - Kill (Picked unit))

Turn off this trigger

hope this helps (maybe it wont...)