HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Simple way to set teams to FFA

01-31-2006, 08:11 PM#1
evil1
Is there an easier way to set everyone as enemys than like

-Make red enemy of blue
-make red enemy of teal
etc...

I tried this:

Player Group - Pick every player in (All players matching ((Matching player) Not equal to Player 1 (Red))) and do (Actions)
Loop - Actions
Player - Make (Picked player) treat Player 1 (Red) as an Enemy

Player Group - Pick every player in (All players matching ((Matching player) Not equal to Player 2 (Blue))) and do (Actions)
Loop - Actions
Player - Make (Picked player) treat Player 2 (Blue) as an Enemy

And had computers in to test, and they wouldnt attack me
01-31-2006, 09:01 PM#2
Jazradel
Why don't you just set it up in Scenario > Force Propeties?

Just tick the box; Use Custom Forces and Fixed Force Settings, and move them all to a different force or untick the allied box.
01-31-2006, 09:14 PM#3
Captain Griffen
Doing it by triggers, you could have just used the player group triggers.
01-31-2006, 09:40 PM#4
Immoralis
Map insialiaziation...
Trigger:
Untitled Trigger 001
Collapse Events
Map initialization
Conditions
Collapse Actions
Set Player[1] = Player 1 (Red)
Set Player[2] = Player 2 (Blue)
Set Player[3] = Player 3 (Teal)
Set Player[4] = Player 4 (Purple)
Set Player[5] = Player 5 (Yellow)
Set Player[6] = Player 6 (Orange)
Set Player[7] = Player 7 (Green)
Set Player[8] = Player 8 (Pink)
Set Player[9] = Player 9 (Gray)
Set Player[10] = Player 10 (Light Blue)
Set Player[11] = Player 11 (Dark Green)
Set Player[12] = Player 12 (Brown)

Trigger:
event...
condtions...
actions:
Collapse Player Group - Pick every player in (All players) and do (Actions)
Collapse Loop - Actions
Collapse For each (Integer A) from 1 to 12, do (Actions)
Collapse Loop - Actions
Player - Make (Picked player) treat Player[(Integer A)] as an Enemy
01-31-2006, 11:55 PM#5
evil1
Quote:
Originally Posted by Jazradel
Why don't you just set it up in Scenario > Force Propeties?

Just tick the box; Use Custom Forces and Fixed Force Settings, and move them all to a different force or untick the allied box.

Thats not an option... at some parts its a team game, at some parts its a free for all game.

Thanks immoralis, ill try that
02-01-2006, 12:08 AM#6
Blade.dk
No need to use a variable for that, there is a function called convert player index to player or whatever it is called in the GUI.

Trigger:
Actions:
Collapse Player Group - Pick every player in (All players) and do (Actions)
Collapse Loop - Actions
Collapse For each (Integer A) from 1 to 12, do (Actions)
Collapse Loop - Actions
Player - Make (Picked player) treat Player(Integer A) as an Enemy
02-01-2006, 12:20 AM#7
Immoralis
made it a long time ago.. dont care now anyway
02-01-2006, 01:37 AM#8
evil1
Thanks guys.

I got another question, how do i set to the allies for 2 teams.

I have Team1 and Team2 player groups, and i need to set them allied with there team, and enemy of the other team.
02-01-2006, 01:48 AM#9
Murder1833
Ok, this is simple, just have all players in the same force, right? then uncheck allied, allied victory, and share vision.
02-01-2006, 01:32 PM#10
evil1
No......

Im not that big of a noob. Im talking about setting different allies in game.
So no more replys saying just make 2 forces... Because thats not what I want, and of course i know how to do that.

So, i need an easy way of setting every player in player group "team1" to be allied with each other, and enemy with everyplayer in player group "team2" and vice versa.
02-01-2006, 03:48 PM#11
Captain Griffen
Use the 'player group - set alliance', or whatever it is, under PLAYER GROUP, rather than just player. Very simple, sets alliances from one player group to another.
02-01-2006, 05:05 PM#12
evil1
Lol, duh.

thanks i didnt see that.