HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Picked Player Controller = Computer? Help!! trigger problem, not working!!

02-20-2004, 04:57 AM#1
neenja
Here it is: I think its pretty obvious what I want to happen, create melee units for specific players only instead of all.. heres one of my 4 triggers for each race (humans so dont have to worry about entangled mines/haunted mines)

Event: Map initialization

Action: Player Group - Pick every player in (All players matching ((((Picked player) controller) Equal to Computer) and ((Race of (Picked player)) Equal to Human))) and do (Actions)
Loop - Actions
Unit - Create 1 Town Hall for (Picked player) at ((Picked player) start location) facing Default building facing (270.0) degrees
Unit - Create 5 Peasant for (Picked player) at ((Picked player) start location) facing Default building facing (270.0) degrees

Nothing is made when I make the game, so whats wrong here?
02-20-2004, 05:29 AM#2
Narwanza
are there computer in-game or are you just doing test map?
02-20-2004, 05:34 AM#3
neenja
yeah i went into create game and set up them as comps, plus under player options or whatnot i set them as computers and set races to human to test them first.. nothing..
02-20-2004, 05:43 AM#4
Narwanza
Doh, sry, i should have realized this b4. I think i found your problem.
Code:
Action: Player Group - Pick every player in (All players matching ((([color=red](Picked player)[/color] controller) Equal to Computer) and ((Race of [color=red](Picked player))[/color] Equal to Human))) and do (Actions)
You need to use (matching player) buddy.
02-20-2004, 05:49 AM#5
neenja
Gah thanks much !
02-20-2004, 10:03 PM#6
Anitarf
Another option, so you don't have problems with entangled gold mines: make the default units for all players via the "melee game-create starting units" action and then remove te starting units of all non-computer controlled players.
02-20-2004, 10:06 PM#7
Vexorian
Loading Speed - wise creating the required units is better than removing the non required units