HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

triggers : boss reset

05-13-2006, 05:26 AM#1
devilsaur
hey guys
im working on dungeon map and have a question abt a few triggers
1st: How do i make all units in a region that are owned by a certain player die when a certain unit dies
i.e. when a boss dies all his friends in the region die
ive had trouble with the pick every player thing so wondering if anyone's got any ideas.
2nd: If theres less than 3 players owned by player in a region , reset boss health
3rd: sometimes when a player controlled hero died ,,,, it becomes "lost" and unavailable for reviving.... anyone have a clue why?

thanks
05-13-2006, 06:47 AM#2
Mystic Prophet
ok. trigger would look like so.

Trigger:
UNIT DIES
Collapse Events
Unit - A unit Dies
Collapse Conditions
(Dying unit) Equal to DON't LET ME DIE
Collapse Actions
Collapse Unit Group - Pick every unit in (Units in (Playable map area) owned by (Owner of (Triggering unit))) and do (Actions)
Collapse Loop - Actions
Unit - Kill (Picked unit)
Unit - Remove (picked unit) from the game
Unit Group - Destroy unit group (Last created unit group)

This will kill all units of the owner of that dying unit. you can change whose units it will kill and what region it will kill them in.

On the 2nd question I'm going to assume you meant less than 3 units

Trigger:
Boss reset
Collapse Events
Unit - A unit owned by Player 1 (Red) Dies
Collapse Conditions
(Number of units in (Units in (Playable map area))) Less than 3
Collapse Actions
Unit - Set life of No unit to 100.00%
Unit Group - Destroy unit group (Last created unit group)

I'd need more information on the 3rd question as there's no reason for the to happen normally.

NOTE: the destroy unit group trigger is only in World editor unlimited. for normal world edit you need a custom script.
05-13-2006, 07:00 AM#3
devilsaur
big thanks mate,il give that a shot
thanks to everyone who's helpful, real great community.
05-13-2006, 10:49 PM#4
Mystic Prophet
be sure to change playable map area to the region where the boss is.