Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions

Set Integer = (Random integer number between 1 and 12)

If (All conditions are true) then do (Actions) else do (Actions)


If - Conditions



(Picked player) Not Equal to (Player(Integer))


Then - Actions



Player - Make (Picked player) treat (Player(Integer)) as an Enemy


Else - Actions
it works but now instead of just choosing an enemy it chooses more than 2 lol
Events

Map initialization
Conditions
Actions

Player Group - Pick every player in (All players) and do (Actions)


Loop - Actions



Set Integer = (Random integer number between 1 and 12)



If (All Conditions are True) then do (Then Actions) else do (Else Actions)




If - Conditions





(Picked player) Not equal to (Player(Integer))




Then - Actions





Player - Make (Picked player) treat (Player(Integer)) as an Enemy





Unit - Create 1 Artillery Unit for (Player(Integer)) at (Center of Region 001 <gen>) facing Default building facing degrees




Else - Actions





Unit - Create 1 Refugees (Male) for (Picked player) at (Center of Region 002 <gen>) facing Default building facing degrees
Players

Events


Map initialization

Conditions

Actions


-------- -- --------


Player Group - Add Player 1 (Red) to All_Players


Player Group - Add Player 2 (Blue) to All_Players


Player Group - Add Player 3 (Teal) to All_Players


Player Group - Add Player 4 (Purple) to All_Players


Player Group - Add Player 5 (Yellow) to All_Players


Player Group - Add Player 6 (Orange) to All_Players


Player Group - Add Player 7 (Green) to All_Players


Player Group - Add Player 8 (Pink) to All_Players


Player Group - Add Player 9 (Gray) to All_Players


Player Group - Add Player 10 (Light Blue) to All_Players


Player Group - Add Player 11 (Dark Green) to All_Players


Player Group - Add Player 12 (Brown) to All_Players


-------- -- --------


Set Player_Int = (Random integer number between 1 and 12)


-------- -- --------


Player Group - Remove (Player(Player_Int)) from All_Players


-------- -- --------


Player Group - Make (Player group((Player(Player_Int)))) treat All_Players as an Enemy


Player Group - Make All_Players treat (Player group((Player(Player_Int)))) as an Enemy


-------- -- --------


Custom script: call DestroyForce(udg_All_Players)
udg_All_Players but you do not clean up (Player group((Player(...)))). This all occurs on map initialization so cleaning up individual leaks is not super obligatory, but if you're going to clean up your forces then you might as well make sure you've got all of them.newbchu said:but how =S thats what i meant lol