HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Can someone explain to me this?

03-17-2005, 05:09 AM#1
Fragmentation
Events
Unit - A unit owned by Player 1 (Red) Dies
Unit - A unit owned by Player 2 (Blue) Dies
Unit - A unit owned by Player 3 (Teal) Dies
Unit - A unit owned by Player 4 (Purple) Dies
Unit - A unit owned by Player 5 (Yellow) Dies
Unit - A unit owned by Player 6 (Orange) Dies
Unit - A unit owned by Player 7 (Green) Dies
Unit - A unit owned by Player 8 (Pink) Dies
Unit - A unit owned by Player 8 (Pink) Dies


lets say I have all these events

will the conditions + actions be run if only one of those events happen? or do all those events have to happen for the rest of the conditions + actions of this trigger to run
03-17-2005, 05:18 AM#2
Guest
Quote:
Originally Posted by Fragmentation
Events
Unit - A unit owned by Player 1 (Red) Dies
Unit - A unit owned by Player 2 (Blue) Dies
Unit - A unit owned by Player 3 (Teal) Dies
Unit - A unit owned by Player 4 (Purple) Dies
Unit - A unit owned by Player 5 (Yellow) Dies
Unit - A unit owned by Player 6 (Orange) Dies
Unit - A unit owned by Player 7 (Green) Dies
Unit - A unit owned by Player 8 (Pink) Dies
Unit - A unit owned by Player 8 (Pink) Dies


lets say I have all these events

will the conditions + actions be run if only one of those events happen? or do all those events have to happen for the rest of the conditions + actions of this trigger to run

The conditions AND actions will both run, even if only one of the events takes place, for example:

Unit - A unit owned by Player 1 (Red) Dies
Unit - A unit owned by Player 2 (Blue) Dies
Unit - A unit owned by Player 3 (Teal) Dies
Unit - A unit owned by Player 4 (Purple) Dies
Unit - A unit owned by Player 5 (Yellow) Dies
Unit - A unit owned by Player 6 (Orange) Dies
Unit - A unit owned by Player 7 (Green) Dies
Unit - A unit owned by Player 8 (Pink) Dies

Conditions-
Unit type equal to footman

Actions-
create 1 footman for Owner of dying unit facing default building degrees.

Now, if red loses a footman, hell get another...if blue loses one, he'll get another, etc. etc.

Of course, that was just an example, triggers with multiple events function exatly the same as triggers with a single event.
03-17-2005, 05:55 AM#3
Fragmentation
awesome

Thanks, just what I needed