HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

My friend needs help...

11-08-2003, 04:39 PM#1
Markus3832
My friend needs some trigger help.

He wants this:
Some units pops up inside a region when game starts and after that, if there is no units in the region and a timer has also expired, units pop up in the region again.

THX in advance
11-08-2003, 04:58 PM#2
Ligature
OK... er...

Trigger 1: Initial spawning
Code:
E - Map initialization
C - 
A - Unit - Create (however many you want) (whatever unit you want)s at center of (your region) facing (random angle) degrees

Trigger 2: Timed spawn
Code:
E - (Your timer) expires
C - Units in (your region) is empty
A - Unit - Create (however many you want) (whatever unit you want)s at center of (your region) facing (random angle) degrees

the Condition in Timer 2 is a Boolean Comparison: Unit Group is Empty.
11-08-2003, 07:40 PM#3
Choklander
see this too:
It's an example
first TRIGGER
code:

E-Map initialization

C-Unit - Create 10 undead minions lqlq for Neutral Hostile at (Center of Monster4 01 <gen>) facing Default building facing degrees

A-Unit Group - Add all units of (Units in Monster4 01 <gen>) to MITKO

Second Trigger
code:

E-Time - Every 2.00 seconds of game time

C-(All units of MITKO are dead) Equal to True

A-If ((All units of MITKO are dead) Equal to True) then do (Unit - Create 10 undead minions lqlq for Neutral Hostile at (Center of Monster4 01 <gen>) facing Default building facing degrees) else do (Do nothing)

A-Unit Group - Add all units of (Units in Monster4 01 <gen>) to MITKO