HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Camera and other things problem!

06-19-2006, 02:09 AM#1
darkwulfv
EDIT: sorry, no camera help needed I solved it. ^_^

What I need done may be a tad confusing so hang in there with me. Ok, In the beginning of the map, your camera is snapped to one facing 8 wisps and 4 other units in corners. You own one wisp, and you move it to the unit, and that selects your race. However, I need it so:
If one of the wisps is un-used when a 2 minute timer runs out, the player who owns the wisp is defeated or something. This is what I have so far:
Trigger:
Starting Camera
Collapse Events
Map initialization
Conditions
Collapse Actions
Floating Text - Create floating text that reads PEASENTS at (Position of Peasant 0067 <gen>) with Z offset 0.00, using font size 12.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
Camera - Lock camera target for (Picked player) to Shade 0073 <gen>, offset by (0.00, 0.00) using Default rotation
Countdown Timer - Start StartTimer as a One-shot timer that will expire in 120.00 seconds
Countdown Timer - Create a timer window for (Last started timer) with title Select Your Race!
Wait 120.00 seconds
Countdown Timer - Destroy (Last created timer window)
Collapse Player Group - Pick every player in (All players) and do (Actions)
Collapse Loop - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Then - Actions
Collapse Else - Actions
Do nothing

I need a If condition for: a wisp is still alive
I need a then condition for: then defeat player(owner of wisp)

Any help?
06-19-2006, 10:02 AM#2
blu_da_noob
Are you checking if any wisps are still alive on the map?

I think you're looking for something like this:
Trigger:
Unit Group - Pick every unit in (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Wisp)) and do (Actions)
Collapse Loop - Actions
Game - Defeat (Owner of (Picked unit)) with the message: Defeat!

Note: it leaks a group, shouldn't be too important as this only runs once, but if you want to fix it go ahead and ask
06-19-2006, 10:26 AM#3
darkwulfv
Thx blu, It's a one time trigger it wont end the world if it leaks. Yes that's what I'm looking for. : ). I'd been searching forever. +rep
06-19-2006, 11:31 AM#4
Jacek
set bj_wantdestroygroup = 1 ftw
06-19-2006, 12:55 PM#5
blu_da_noob
Quote:
Originally Posted by Jacek
set bj_wantDestroyGroup = true ftw

Corrected.