HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Slot status - user chooses AI player

05-02-2006, 10:51 PM#1
knutz
Trying to figure out how to detect an AI selection.

-Would the player controller still be type "MAP_CONTROL_USER"?

-Would the slot status would still be "PLAYER_SLOT_STATE_PLAYING"?

How do you detect whether the user chose a computer player to play with or against?
05-03-2006, 01:31 AM#2
Immoralis
I think theres something where... player is user equal to true.
05-03-2006, 08:37 AM#3
PerfectlyInsane
This is how you detect if computer is playing..

Trigger:
If ((Player 1 (Red) controller) Equal to Computer)


IS playing can also be used.. to remove/create units if slot is empty/filled. (if computer is playing then slots are NOT empty)


Trigger:
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Player 1 (Red) slot status) Equal to Is playing
Collapse Then - Actions
Unit - Move Survivor 0003 <gen> instantly to (Random point in (Playable map area))
Hero - Create Happy Meal (/w toy) and give it to Survivor 0003 <gen>
Collapse Else - Actions
Unit - Remove Survivor 0003 <gen> from the game
Set IsAlive[1] = 1