HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How do I trigger this statement?

07-29-2003, 02:07 AM#1
Valoris
If a player controls a unit type = (whatever) then do (action)?

For some reason I cant get this right?
How do I trigger this?

-Val



I guess Ill be posting alot.
I will pass on my knowledge.
And my first map will not be protected.
Lets share the knowledge...
07-29-2003, 06:44 AM#2
Dragoon-elf
Conditions
Integer comparison
Unit - Count units in unit group
Units owned by player of type
Units in group (Units owned by P1 of type Footman) greater than 0
07-30-2003, 12:30 AM#3
Valoris
Anyone know why this isnt working?
Supposed to only create new unit, when there isnt one.

Event:
Time - Every 25.00 seconds of game time


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of living Knight(Trainer) units owned by Player 1 (Red)) Less than 1
Then - Actions
Unit - Create 1 Captain for Player 1 (Red) at (Center of P1 Castle Spawn <gen>) facing Default building facing degrees
Else - Actions
Do nothing

NM I GOT IT!!