HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Make allies inside the player group

07-08-2003, 09:53 PM#1
Andy6387
Hey, this is my first post here, i've been lurking for about a week and a half and i was workin on my first map (a completely different new jailbreak game) and i've run across one large problem.

The way i set it up, you choose your cop or robber when you get into the game. I have 3 player groups, Cops, Robbers, JailedRobbers. I can ally them with eachother just fine (as far as i know) but i am not able to ally them with eachother inside the group.

i tried "Player Group - Make Robber treat Robber as an Ally with shared vision"

but it doesn't seem to work at all. Any help with this would be greatly appreciated, thx
07-08-2003, 10:04 PM#2
Dead-Inside
Why not make an extra player group with the same units for eatch?
07-08-2003, 10:06 PM#3
Andy6387
good idea, i'll try it out and get back to ya

EDIT:
Hmm...that doesn't seem to work either, i fear that i am using player groups incorrectly. I do know how to use variables etc so i'm not a COMPLETE noob, just very close. Would anyone be willing to show me the correct usage of a player group? i'll paste what i have below.

Quote:
Robber Spawn
Events
Unit - A unit enters Choice Robber <gen>
Conditions
AllowedRobbers Greater than 0
Actions
Unit - Remove (Triggering unit) from the game
Unit - Create 1 Robber for (Owner of (Triggering unit)) at (Random point in Robber Spawn <gen>) facing Default building facing degrees
Set AllowedRobbers = (AllowedRobbers - 1)
If (AllowedRobbers Equal to 0) then do (Game - Display to (All players) for 3.00 seconds the text: All the Robbers hav...) else do (Do nothing)
Player Group - Add (Owner of (Triggering unit)) to Robber
Player Group - Make Robber treat JailedRobber as an Ally with shared vision
Player Group - Make Robber treat Robber as an Ally with shared vision
Player Group - Make Robber treat Cop as an Enemy
Trigger - Run Leaderboard <gen> (ignoring conditions)

everything spawns correctly, except they just won't become allies or anything. And i was incorrect about them becoming allies any other way, i checked it and nothing is happening with the player groups.
07-08-2003, 10:29 PM#4
Dinadan87
Pick every player in Robbers and do Multiple Actions
Loop
Set Picked player equal to playervariable
Pick every player in Robbers and do (Make playervariable treat Picked Player as an ally)

That ought to do it. It picks everyone in the group, and for each person is picks it makes him allies with everyone else in the group.
07-08-2003, 10:33 PM#5
Andy6387
Thanks for the info, it looks logical and i'm going to test it out now and see what happens
07-08-2003, 10:41 PM#6
TehBaka
this works too


Player Group - Pick every player in (All players) and do (Player - Make (Picked player) treat Player 9 (Gray) as an Ally)
07-08-2003, 11:22 PM#7
Andy6387
Thanks a million Dinadan and Dead-Inside. I got it and it works like a charm.