HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Trigger help once more

03-08-2003, 11:59 AM#1
Malganis
I hate to ask this again but nothing works
what I want is to make so when all buildings are destroyed a cinematic begins.

My trigger looked like this

Event
-a unit own by player 11 die

Condition
- ((Triggering unit) is A structure) Equal to True
(Number of units in (Units in (Playable map area))) equal to 0

Action
-Cinematic stuff.


But nothing happens. Can someone help please?

thanks :D
03-08-2003, 01:52 PM#2
Panzer_Fusion
I'm not that good at triggers, but it seems to me that a building kills a unit (cannon tower?) and then the cinematic stuff runs when that was the last unit on the map for all players?
03-08-2003, 01:55 PM#3
Panzer_Fusion
you might want to change the trigger to player 11 has no units. But i'm not sure exactly wha you are trying to doemote_confused
03-08-2003, 01:59 PM#4
Malganis
im trying to do so when all the buildings are dead (player 11) my cinematic begins.

And the condition: ((Triggering unit) is A structure) Equal to True

Means that the killed unit must be a building.

But i still needs help
03-08-2003, 02:15 PM#5
rwxr-xr-x
Quote:
Originally posted by Malganis
I hate to ask this again but nothing works
what I want is to make so when all buildings are destroyed a cinematic begins.

My trigger looked like this

Event
-a unit own by player 11 die

Condition
- ((Triggering unit) is A structure) Equal to True
(Number of units in (Units in (Playable map area))) equal to 0

Action
-Cinematic stuff.


But nothing happens. Can someone help please?

thanks :D


It's more than likely not executing the trigger because there are still units somewhere on the map. Your condition to ensure that there are 0 units will fail if there is anything, owned by any player (including creeps).

Replace both of your conditions with the one below:

<Integer Comparison>
(Count structures controlled by Player 11 (Exclude incomplete structures) Equal to 0
03-08-2003, 02:29 PM#6
DemonicSoul
(Number of units in (Units in (Playable map area))) equal to 0

that means it wont activate unless there are no units




Event
-a unit own by player 11 die

Condition
- ((Triggering unit) is A structure) Equal to True



and this part doesnt work because you have to refer to a dying unit as "dying unit" not "triggering unit"