HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Help spawning different computer players for different human players

09-26-2009, 11:48 PM#1
T3RMINUS
I'm making a solo td, and I need to spawn different computers for different players. Here is my trigger:
Trigger:
SpawnCreeps
Collapse Events
Time - creepTimer expires
Conditions
Collapse Actions
Countdown Timer - Destroy creepTimerWindow
Collapse For each (Integer A) from 1 to creepSpawnCount[levelCount], do (Actions)
Collapse Loop - Actions
Wait 1.25 seconds
Collapse Player Group - Pick every player in inGamePlayers and do (Actions)
Collapse Loop - Actions
Set tmpPoint = ((Picked player) start location)
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Picked player) Equal to Player 1 (Red)
(Picked player) Equal to Player 3 (Teal)
(Picked player) Equal to Player 7 (Green)
(Picked player) Equal to Player 9 (Gray)
Collapse Then - Actions
Unit - Create 1 creepArray[levelCount] for hostileCreeps[1] at tmpPoint facing 0.00 degrees
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
Collapse Or - Any (Conditions) are true
Collapse Conditions
(Picked player) Equal to Player 2 (Blue)
(Picked player) Equal to Player 4 (Purple)
(Picked player) Equal to Player 6 (Orange)
(Picked player) Equal to Player 8 (Pink)
Collapse Then - Actions
Unit - Create 1 creepArray[levelCount] for hostileCreeps[2] at tmpPoint facing 0.00 degrees
Collapse Else - Actions
Unit - Create 1 creepArray[levelCount] for hostileCreeps[3] at tmpPoint facing 0.00 degrees
Custom script: call RemoveLocation ( udg_tmpPoint )
09-27-2009, 12:17 AM#2
Anopob
You have not written what doesn't work, but perhaps it doesn't work because you missed the first "Or - Any (Conditions) are true" in the condition right after tmppoint.
09-27-2009, 12:23 AM#3
T3RMINUS
Thank you, works now.