Staredit Network > Forums > SC2 Assistance > Topic: [Solved] Computer Allied with players
[Solved] Computer Allied with players
This topic is locked. You can no longer write replies here.
Oct 4 2010, 9:38 pm
By: DevliN  

Oct 4 2010, 9:38 pm DevliN Post #1

Woah

I was just wondering if anyone has found a way to get a Computer player to ally with Human players? I'm currently working on a map in which the players control heroes that face oncoming enemy units. They also need an allied computer player to assist in the killing, but I can't seem to get the Computers to ally or the Neutrals to kill each other.

I have seen maps that essentially use one of the human players as a base for allied computer-controlled units, but I'd rather not do that if I don't have to.



:devlin: Currently Working On: :devlin:
Myself

Oct 5 2010, 2:21 am Roy Post #2

An artist's depiction of an Extended Unit Death

It can easily be done via triggers. Assuming player 1 is the human, player 2 is the allied computer, and player 3 is the enemy computer:

  Events
    Game - Map initialization
  Local Variables
  Conditions
  Actions
Player - Make player 1 and player 2 treat each other as Ally
Player - Make player 1 and player 3 treat each other as Enemy
    Player - Make player 2 and player 3 treat each other as Enemy




Oct 5 2010, 2:22 am DevliN Post #3

Woah

Hmm I tried that originally and it didn't work. I'll give it a shot again, though. Maybe something went wrong the first time.

EDIT:
Okay yeah, that worked. Originally I set the alliance status of a player group, but didn't have players in said groups. Go me!

Post has been edited 1 time(s), last time on Oct 5 2010, 2:31 am by DevliN.



:devlin: Currently Working On: :devlin:
Myself

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[08:05 pm]
Symmetry -- 50% of strings in starcraft are references
[2026-6-07. : 1:59 am]
RIVE -- Lots of fun little nods to different works of others in the cheats too.
[2026-6-06. : 5:17 pm]
Oh_Man -- so i was today years old wen i learned rebel yell starcraft mission is named after a billy idol song. makes me wonder wat other missions are named after songs
[2026-6-04. : 3:42 am]
RIVE -- Hellooooo, Nurse
[2026-6-03. : 4:19 pm]
NudeRaider -- Hello World!
[2026-6-01. : 4:03 pm]
IskatuMesk -- no Hello World? No Hello . jpeg? Not even ddosing some government website? smh my head
[2026-5-31. : 10:02 pm]
Symmetry -- I was really just figuring out how to compile
[2026-5-31. : 10:02 pm]
Symmetry -- I didn't make it do anything
[2026-5-31. : 9:17 pm]
Ultraviolet -- hell yeah. did you have trouble making the button functional, or just haven't gotten there yet?
[2026-5-31. : 8:29 pm]
Symmetry -- I made the marine shoot lasers and gave the medic a nonfunctional button
Please log in to shout.


Members Online: Roy, O)FaRTy1billion[MM], Ultraviolet