Alliance priorities cause lots of JASS spam. How 2 eradicate

Information. For free!
Every question that has been asked in HELP will be answered in the form of a tutorial, here.
Please PM your tutorial to an admin for review before submitting it to this collection!
We want to ensure perfect quality for all information found here. Bad tutorials will be either fixed or deleted.

Alliance priorities cause lots of JASS spam. How 2 eradicate

New postby 3ICE on Wed Mar 14, 2018 7:28 pm

This ancient feature is never used in custom maps. But did you know it still gets default values assigned? Hundreds of them! What is it even good for? It's not even documented! The way I understand is; Every player has a couple other players assigned, that they will want to prefer to ally in FFA games. But only if they were computer-controlled. And if alliances are unlocked. This never happens. I've never seen a computer ally me on its own, or ally another computer.

Compare the file size of these two identical maps:
Alliance priorities caause lots of JASS spam.w3m
(19.97 KiB) Downloaded 27 times
with
Alliance priorities removed, no JASS spam.w3m
(14.33 KiB) Downloaded 24 times


Download them and look at the two war3map.j variants. Especially in the InitAllyPriorities, InitCustomTeams, and InitCustomPlayerSlots area is it noticeable. Terrible generated code:
Code: Select all
function InitCustomPlayerSlots takes nothing returns nothing

    // Player 0
    call SetPlayerStartLocation( Player(0), 0 )
    call ForcePlayerStartLocation( Player(0), 0 )
    call SetPlayerColor( Player(0), ConvertPlayerColor(0) )
    call SetPlayerRacePreference( Player(0), RACE_PREF_HUMAN )
    call SetPlayerRaceSelectable( Player(0), true )
    call SetPlayerController( Player(0), MAP_CONTROL_USER )

    // Player 1
    call SetPlayerStartLocation( Player(1), 1 )
    call SetPlayerColor( Player(1), ConvertPlayerColor(1) )
    call SetPlayerRacePreference( Player(1), RACE_PREF_ORC )
    call SetPlayerRaceSelectable( Player(1), true )
    call SetPlayerController( Player(1), MAP_CONTROL_USER )

    // Player 2
    call SetPlayerStartLocation( Player(2), 2 )
    call ForcePlayerStartLocation( Player(2), 2 )
    call SetPlayerColor( Player(2), ConvertPlayerColor(2) )
    call SetPlayerRacePreference( Player(2), RACE_PREF_UNDEAD )
    call SetPlayerRaceSelectable( Player(2), true )
    call SetPlayerController( Player(2), MAP_CONTROL_USER )

    // Player 3
    call SetPlayerStartLocation( Player(3), 3 )
    call ForcePlayerStartLocation( Player(3), 3 )
    call SetPlayerColor( Player(3), ConvertPlayerColor(3) )
    call SetPlayerRacePreference( Player(3), RACE_PREF_NIGHTELF )
    call SetPlayerRaceSelectable( Player(3), true )
    call SetPlayerController( Player(3), MAP_CONTROL_USER )

    // Player 4
    call SetPlayerStartLocation( Player(4), 4 )
    call ForcePlayerStartLocation( Player(4), 4 )
    call SetPlayerColor( Player(4), ConvertPlayerColor(4) )
    call SetPlayerRacePreference( Player(4), RACE_PREF_HUMAN )
    call SetPlayerRaceSelectable( Player(4), true )
    call SetPlayerController( Player(4), MAP_CONTROL_USER )

    // Player 5
    call SetPlayerStartLocation( Player(5), 5 )
    call SetPlayerColor( Player(5), ConvertPlayerColor(5) )
    call SetPlayerRacePreference( Player(5), RACE_PREF_ORC )
    call SetPlayerRaceSelectable( Player(5), true )
    call SetPlayerController( Player(5), MAP_CONTROL_USER )

    // Player 6
    call SetPlayerStartLocation( Player(6), 6 )
    call ForcePlayerStartLocation( Player(6), 6 )
    call SetPlayerColor( Player(6), ConvertPlayerColor(6) )
    call SetPlayerRacePreference( Player(6), RACE_PREF_UNDEAD )
    call SetPlayerRaceSelectable( Player(6), true )
    call SetPlayerController( Player(6), MAP_CONTROL_USER )

    // Player 7
    call SetPlayerStartLocation( Player(7), 7 )
    call SetPlayerColor( Player(7), ConvertPlayerColor(7) )
    call SetPlayerRacePreference( Player(7), RACE_PREF_NIGHTELF )
    call SetPlayerRaceSelectable( Player(7), true )
    call SetPlayerController( Player(7), MAP_CONTROL_USER )

    // Player 8
    call SetPlayerStartLocation( Player(8), 8 )
    call ForcePlayerStartLocation( Player(8), 8 )
    call SetPlayerColor( Player(8), ConvertPlayerColor(8) )
    call SetPlayerRacePreference( Player(8), RACE_PREF_HUMAN )
    call SetPlayerRaceSelectable( Player(8), true )
    call SetPlayerController( Player(8), MAP_CONTROL_USER )

    // Player 9
    call SetPlayerStartLocation( Player(9), 9 )
    call ForcePlayerStartLocation( Player(9), 9 )
    call SetPlayerColor( Player(9), ConvertPlayerColor(9) )
    call SetPlayerRacePreference( Player(9), RACE_PREF_ORC )
    call SetPlayerRaceSelectable( Player(9), true )
    call SetPlayerController( Player(9), MAP_CONTROL_USER )

    // Player 10
    call SetPlayerStartLocation( Player(10), 10 )
    call ForcePlayerStartLocation( Player(10), 10 )
    call SetPlayerColor( Player(10), ConvertPlayerColor(10) )
    call SetPlayerRacePreference( Player(10), RACE_PREF_UNDEAD )
    call SetPlayerRaceSelectable( Player(10), true )
    call SetPlayerController( Player(10), MAP_CONTROL_USER )

    // Player 11
    call SetPlayerStartLocation( Player(11), 11 )
    call SetPlayerColor( Player(11), ConvertPlayerColor(11) )
    call SetPlayerRacePreference( Player(11), RACE_PREF_NIGHTELF )
    call SetPlayerRaceSelectable( Player(11), true )
    call SetPlayerController( Player(11), MAP_CONTROL_USER )

    // Player 12
    call SetPlayerStartLocation( Player(12), 12 )
    call SetPlayerColor( Player(12), ConvertPlayerColor(12) )
    call SetPlayerRacePreference( Player(12), RACE_PREF_HUMAN )
    call SetPlayerRaceSelectable( Player(12), true )
    call SetPlayerController( Player(12), MAP_CONTROL_USER )

    // Player 13
    call SetPlayerStartLocation( Player(13), 13 )
    call SetPlayerColor( Player(13), ConvertPlayerColor(13) )
    call SetPlayerRacePreference( Player(13), RACE_PREF_ORC )
    call SetPlayerRaceSelectable( Player(13), true )
    call SetPlayerController( Player(13), MAP_CONTROL_USER )

    // Player 14
    call SetPlayerStartLocation( Player(14), 14 )
    call SetPlayerColor( Player(14), ConvertPlayerColor(14) )
    call SetPlayerRacePreference( Player(14), RACE_PREF_UNDEAD )
    call SetPlayerRaceSelectable( Player(14), true )
    call SetPlayerController( Player(14), MAP_CONTROL_USER )

    // Player 15
    call SetPlayerStartLocation( Player(15), 15 )
    call SetPlayerColor( Player(15), ConvertPlayerColor(15) )
    call SetPlayerRacePreference( Player(15), RACE_PREF_NIGHTELF )
    call SetPlayerRaceSelectable( Player(15), true )
    call SetPlayerController( Player(15), MAP_CONTROL_USER )

    // Player 16
    call SetPlayerStartLocation( Player(16), 16 )
    call ForcePlayerStartLocation( Player(16), 16 )
    call SetPlayerColor( Player(16), ConvertPlayerColor(16) )
    call SetPlayerRacePreference( Player(16), RACE_PREF_HUMAN )
    call SetPlayerRaceSelectable( Player(16), true )
    call SetPlayerController( Player(16), MAP_CONTROL_USER )

    // Player 17
    call SetPlayerStartLocation( Player(17), 17 )
    call ForcePlayerStartLocation( Player(17), 17 )
    call SetPlayerColor( Player(17), ConvertPlayerColor(17) )
    call SetPlayerRacePreference( Player(17), RACE_PREF_ORC )
    call SetPlayerRaceSelectable( Player(17), true )
    call SetPlayerController( Player(17), MAP_CONTROL_USER )

    // Player 18
    call SetPlayerStartLocation( Player(18), 18 )
    call ForcePlayerStartLocation( Player(18), 18 )
    call SetPlayerColor( Player(18), ConvertPlayerColor(18) )
    call SetPlayerRacePreference( Player(18), RACE_PREF_UNDEAD )
    call SetPlayerRaceSelectable( Player(18), true )
    call SetPlayerController( Player(18), MAP_CONTROL_USER )

    // Player 19
    call SetPlayerStartLocation( Player(19), 19 )
    call ForcePlayerStartLocation( Player(19), 19 )
    call SetPlayerColor( Player(19), ConvertPlayerColor(19) )
    call SetPlayerRacePreference( Player(19), RACE_PREF_RANDOM )
    call SetPlayerRaceSelectable( Player(19), true )
    call SetPlayerController( Player(19), MAP_CONTROL_USER )

    // Player 20
    call SetPlayerStartLocation( Player(20), 20 )
    call SetPlayerColor( Player(20), ConvertPlayerColor(20) )
    call SetPlayerRacePreference( Player(20), RACE_PREF_HUMAN )
    call SetPlayerRaceSelectable( Player(20), true )
    call SetPlayerController( Player(20), MAP_CONTROL_USER )

    // Player 21
    call SetPlayerStartLocation( Player(21), 21 )
    call ForcePlayerStartLocation( Player(21), 21 )
    call SetPlayerColor( Player(21), ConvertPlayerColor(21) )
    call SetPlayerRacePreference( Player(21), RACE_PREF_ORC )
    call SetPlayerRaceSelectable( Player(21), true )
    call SetPlayerController( Player(21), MAP_CONTROL_USER )

    // Player 22
    call SetPlayerStartLocation( Player(22), 22 )
    call SetPlayerColor( Player(22), ConvertPlayerColor(22) )
    call SetPlayerRacePreference( Player(22), RACE_PREF_UNDEAD )
    call SetPlayerRaceSelectable( Player(22), true )
    call SetPlayerController( Player(22), MAP_CONTROL_USER )

    // Player 23
    call SetPlayerStartLocation( Player(23), 23 )
    call ForcePlayerStartLocation( Player(23), 23 )
    call SetPlayerColor( Player(23), ConvertPlayerColor(23) )
    call SetPlayerRacePreference( Player(23), RACE_PREF_NIGHTELF )
    call SetPlayerRaceSelectable( Player(23), true )
    call SetPlayerController( Player(23), MAP_CONTROL_USER )

endfunction

function InitCustomTeams takes nothing returns nothing
    // Force: TRIGSTR_029
    call SetPlayerTeam( Player(1), 0 )
    call SetPlayerState( Player(1), PLAYER_STATE_ALLIED_VICTORY, 1 )
    call SetPlayerTeam( Player(2), 0 )
    call SetPlayerState( Player(2), PLAYER_STATE_ALLIED_VICTORY, 1 )
    call SetPlayerTeam( Player(3), 0 )
    call SetPlayerState( Player(3), PLAYER_STATE_ALLIED_VICTORY, 1 )

    //   Allied
    call SetPlayerAllianceStateAllyBJ( Player(1), Player(2), true )
    call SetPlayerAllianceStateAllyBJ( Player(1), Player(3), true )
    call SetPlayerAllianceStateAllyBJ( Player(2), Player(1), true )
    call SetPlayerAllianceStateAllyBJ( Player(2), Player(3), true )
    call SetPlayerAllianceStateAllyBJ( Player(3), Player(1), true )
    call SetPlayerAllianceStateAllyBJ( Player(3), Player(2), true )

    //   Shared Vision
    call SetPlayerAllianceStateVisionBJ( Player(1), Player(2), true )
    call SetPlayerAllianceStateVisionBJ( Player(1), Player(3), true )
    call SetPlayerAllianceStateVisionBJ( Player(2), Player(1), true )
    call SetPlayerAllianceStateVisionBJ( Player(2), Player(3), true )
    call SetPlayerAllianceStateVisionBJ( Player(3), Player(1), true )
    call SetPlayerAllianceStateVisionBJ( Player(3), Player(2), true )

    //   Shared Control
    call SetPlayerAllianceStateControlBJ( Player(1), Player(2), true )
    call SetPlayerAllianceStateControlBJ( Player(1), Player(3), true )
    call SetPlayerAllianceStateControlBJ( Player(2), Player(1), true )
    call SetPlayerAllianceStateControlBJ( Player(2), Player(3), true )
    call SetPlayerAllianceStateControlBJ( Player(3), Player(1), true )
    call SetPlayerAllianceStateControlBJ( Player(3), Player(2), true )

    //   Shared Advanced Control
    call SetPlayerAllianceStateFullControlBJ( Player(1), Player(2), true )
    call SetPlayerAllianceStateFullControlBJ( Player(1), Player(3), true )
    call SetPlayerAllianceStateFullControlBJ( Player(2), Player(1), true )
    call SetPlayerAllianceStateFullControlBJ( Player(2), Player(3), true )
    call SetPlayerAllianceStateFullControlBJ( Player(3), Player(1), true )
    call SetPlayerAllianceStateFullControlBJ( Player(3), Player(2), true )

    // Force: TRIGSTR_030
    call SetPlayerTeam( Player(4), 1 )
    call SetPlayerState( Player(4), PLAYER_STATE_ALLIED_VICTORY, 1 )
    call SetPlayerTeam( Player(12), 1 )
    call SetPlayerState( Player(12), PLAYER_STATE_ALLIED_VICTORY, 1 )

    //   Allied
    call SetPlayerAllianceStateAllyBJ( Player(4), Player(12), true )
    call SetPlayerAllianceStateAllyBJ( Player(12), Player(4), true )

    //   Shared Vision
    call SetPlayerAllianceStateVisionBJ( Player(4), Player(12), true )
    call SetPlayerAllianceStateVisionBJ( Player(12), Player(4), true )

    //   Shared Control
    call SetPlayerAllianceStateControlBJ( Player(4), Player(12), true )
    call SetPlayerAllianceStateControlBJ( Player(12), Player(4), true )

    //   Shared Advanced Control
    call SetPlayerAllianceStateFullControlBJ( Player(4), Player(12), true )
    call SetPlayerAllianceStateFullControlBJ( Player(12), Player(4), true )

    // Force: TRIGSTR_031
    call SetPlayerTeam( Player(0), 2 )
    call SetPlayerState( Player(0), PLAYER_STATE_ALLIED_VICTORY, 1 )
    call SetPlayerTeam( Player(5), 2 )
    call SetPlayerState( Player(5), PLAYER_STATE_ALLIED_VICTORY, 1 )
    call SetPlayerTeam( Player(8), 2 )
    call SetPlayerState( Player(8), PLAYER_STATE_ALLIED_VICTORY, 1 )

    //   Allied
    call SetPlayerAllianceStateAllyBJ( Player(0), Player(5), true )
    call SetPlayerAllianceStateAllyBJ( Player(0), Player(8), true )
    call SetPlayerAllianceStateAllyBJ( Player(5), Player(0), true )
    call SetPlayerAllianceStateAllyBJ( Player(5), Player(8), true )
    call SetPlayerAllianceStateAllyBJ( Player(8), Player(0), true )
    call SetPlayerAllianceStateAllyBJ( Player(8), Player(5), true )

    //   Shared Vision
    call SetPlayerAllianceStateVisionBJ( Player(0), Player(5), true )
    call SetPlayerAllianceStateVisionBJ( Player(0), Player(8), true )
    call SetPlayerAllianceStateVisionBJ( Player(5), Player(0), true )
    call SetPlayerAllianceStateVisionBJ( Player(5), Player(8), true )
    call SetPlayerAllianceStateVisionBJ( Player(8), Player(0), true )
    call SetPlayerAllianceStateVisionBJ( Player(8), Player(5), true )

    //   Shared Control
    call SetPlayerAllianceStateControlBJ( Player(0), Player(5), true )
    call SetPlayerAllianceStateControlBJ( Player(0), Player(8), true )
    call SetPlayerAllianceStateControlBJ( Player(5), Player(0), true )
    call SetPlayerAllianceStateControlBJ( Player(5), Player(8), true )
    call SetPlayerAllianceStateControlBJ( Player(8), Player(0), true )
    call SetPlayerAllianceStateControlBJ( Player(8), Player(5), true )

    //   Shared Advanced Control
    call SetPlayerAllianceStateFullControlBJ( Player(0), Player(5), true )
    call SetPlayerAllianceStateFullControlBJ( Player(0), Player(8), true )
    call SetPlayerAllianceStateFullControlBJ( Player(5), Player(0), true )
    call SetPlayerAllianceStateFullControlBJ( Player(5), Player(8), true )
    call SetPlayerAllianceStateFullControlBJ( Player(8), Player(0), true )
    call SetPlayerAllianceStateFullControlBJ( Player(8), Player(5), true )

    // Force: TRIGSTR_032
    call SetPlayerTeam( Player(7), 3 )
    call SetPlayerState( Player(7), PLAYER_STATE_ALLIED_VICTORY, 1 )
    call SetPlayerTeam( Player(16), 3 )
    call SetPlayerState( Player(16), PLAYER_STATE_ALLIED_VICTORY, 1 )

    //   Allied
    call SetPlayerAllianceStateAllyBJ( Player(7), Player(16), true )
    call SetPlayerAllianceStateAllyBJ( Player(16), Player(7), true )

    //   Shared Vision
    call SetPlayerAllianceStateVisionBJ( Player(7), Player(16), true )
    call SetPlayerAllianceStateVisionBJ( Player(16), Player(7), true )

    //   Shared Control
    call SetPlayerAllianceStateControlBJ( Player(7), Player(16), true )
    call SetPlayerAllianceStateControlBJ( Player(16), Player(7), true )

    //   Shared Advanced Control
    call SetPlayerAllianceStateFullControlBJ( Player(7), Player(16), true )
    call SetPlayerAllianceStateFullControlBJ( Player(16), Player(7), true )

    // Force: TRIGSTR_033
    call SetPlayerTeam( Player(6), 4 )
    call SetPlayerState( Player(6), PLAYER_STATE_ALLIED_VICTORY, 1 )
    call SetPlayerTeam( Player(9), 4 )
    call SetPlayerState( Player(9), PLAYER_STATE_ALLIED_VICTORY, 1 )
    call SetPlayerTeam( Player(10), 4 )
    call SetPlayerState( Player(10), PLAYER_STATE_ALLIED_VICTORY, 1 )
    call SetPlayerTeam( Player(11), 4 )
    call SetPlayerState( Player(11), PLAYER_STATE_ALLIED_VICTORY, 1 )
    call SetPlayerTeam( Player(14), 4 )
    call SetPlayerState( Player(14), PLAYER_STATE_ALLIED_VICTORY, 1 )
    call SetPlayerTeam( Player(15), 4 )
    call SetPlayerState( Player(15), PLAYER_STATE_ALLIED_VICTORY, 1 )
    call SetPlayerTeam( Player(17), 4 )
    call SetPlayerState( Player(17), PLAYER_STATE_ALLIED_VICTORY, 1 )
    call SetPlayerTeam( Player(20), 4 )
    call SetPlayerState( Player(20), PLAYER_STATE_ALLIED_VICTORY, 1 )

    //   Allied
    call SetPlayerAllianceStateAllyBJ( Player(6), Player(9), true )
    call SetPlayerAllianceStateAllyBJ( Player(6), Player(10), true )
    call SetPlayerAllianceStateAllyBJ( Player(6), Player(11), true )
    call SetPlayerAllianceStateAllyBJ( Player(6), Player(14), true )
    call SetPlayerAllianceStateAllyBJ( Player(6), Player(15), true )
    call SetPlayerAllianceStateAllyBJ( Player(6), Player(17), true )
    call SetPlayerAllianceStateAllyBJ( Player(6), Player(20), true )
    call SetPlayerAllianceStateAllyBJ( Player(9), Player(6), true )
    call SetPlayerAllianceStateAllyBJ( Player(9), Player(10), true )
    call SetPlayerAllianceStateAllyBJ( Player(9), Player(11), true )
    call SetPlayerAllianceStateAllyBJ( Player(9), Player(14), true )
    call SetPlayerAllianceStateAllyBJ( Player(9), Player(15), true )
    call SetPlayerAllianceStateAllyBJ( Player(9), Player(17), true )
    call SetPlayerAllianceStateAllyBJ( Player(9), Player(20), true )
    call SetPlayerAllianceStateAllyBJ( Player(10), Player(6), true )
    call SetPlayerAllianceStateAllyBJ( Player(10), Player(9), true )
    call SetPlayerAllianceStateAllyBJ( Player(10), Player(11), true )
    call SetPlayerAllianceStateAllyBJ( Player(10), Player(14), true )
    call SetPlayerAllianceStateAllyBJ( Player(10), Player(15), true )
    call SetPlayerAllianceStateAllyBJ( Player(10), Player(17), true )
    call SetPlayerAllianceStateAllyBJ( Player(10), Player(20), true )
    call SetPlayerAllianceStateAllyBJ( Player(11), Player(6), true )
    call SetPlayerAllianceStateAllyBJ( Player(11), Player(9), true )
    call SetPlayerAllianceStateAllyBJ( Player(11), Player(10), true )
    call SetPlayerAllianceStateAllyBJ( Player(11), Player(14), true )
    call SetPlayerAllianceStateAllyBJ( Player(11), Player(15), true )
    call SetPlayerAllianceStateAllyBJ( Player(11), Player(17), true )
    call SetPlayerAllianceStateAllyBJ( Player(11), Player(20), true )
    call SetPlayerAllianceStateAllyBJ( Player(14), Player(6), true )
    call SetPlayerAllianceStateAllyBJ( Player(14), Player(9), true )
    call SetPlayerAllianceStateAllyBJ( Player(14), Player(10), true )
    call SetPlayerAllianceStateAllyBJ( Player(14), Player(11), true )
    call SetPlayerAllianceStateAllyBJ( Player(14), Player(15), true )
    call SetPlayerAllianceStateAllyBJ( Player(14), Player(17), true )
    call SetPlayerAllianceStateAllyBJ( Player(14), Player(20), true )
    call SetPlayerAllianceStateAllyBJ( Player(15), Player(6), true )
    call SetPlayerAllianceStateAllyBJ( Player(15), Player(9), true )
    call SetPlayerAllianceStateAllyBJ( Player(15), Player(10), true )
    call SetPlayerAllianceStateAllyBJ( Player(15), Player(11), true )
    call SetPlayerAllianceStateAllyBJ( Player(15), Player(14), true )
    call SetPlayerAllianceStateAllyBJ( Player(15), Player(17), true )
    call SetPlayerAllianceStateAllyBJ( Player(15), Player(20), true )
    call SetPlayerAllianceStateAllyBJ( Player(17), Player(6), true )
    call SetPlayerAllianceStateAllyBJ( Player(17), Player(9), true )
    call SetPlayerAllianceStateAllyBJ( Player(17), Player(10), true )
    call SetPlayerAllianceStateAllyBJ( Player(17), Player(11), true )
    call SetPlayerAllianceStateAllyBJ( Player(17), Player(14), true )
    call SetPlayerAllianceStateAllyBJ( Player(17), Player(15), true )
    call SetPlayerAllianceStateAllyBJ( Player(17), Player(20), true )
    call SetPlayerAllianceStateAllyBJ( Player(20), Player(6), true )
    call SetPlayerAllianceStateAllyBJ( Player(20), Player(9), true )
    call SetPlayerAllianceStateAllyBJ( Player(20), Player(10), true )
    call SetPlayerAllianceStateAllyBJ( Player(20), Player(11), true )
    call SetPlayerAllianceStateAllyBJ( Player(20), Player(14), true )
    call SetPlayerAllianceStateAllyBJ( Player(20), Player(15), true )
    call SetPlayerAllianceStateAllyBJ( Player(20), Player(17), true )

    //   Shared Vision
    call SetPlayerAllianceStateVisionBJ( Player(6), Player(9), true )
    call SetPlayerAllianceStateVisionBJ( Player(6), Player(10), true )
    call SetPlayerAllianceStateVisionBJ( Player(6), Player(11), true )
    call SetPlayerAllianceStateVisionBJ( Player(6), Player(14), true )
    call SetPlayerAllianceStateVisionBJ( Player(6), Player(15), true )
    call SetPlayerAllianceStateVisionBJ( Player(6), Player(17), true )
    call SetPlayerAllianceStateVisionBJ( Player(6), Player(20), true )
    call SetPlayerAllianceStateVisionBJ( Player(9), Player(6), true )
    call SetPlayerAllianceStateVisionBJ( Player(9), Player(10), true )
    call SetPlayerAllianceStateVisionBJ( Player(9), Player(11), true )
    call SetPlayerAllianceStateVisionBJ( Player(9), Player(14), true )
    call SetPlayerAllianceStateVisionBJ( Player(9), Player(15), true )
    call SetPlayerAllianceStateVisionBJ( Player(9), Player(17), true )
    call SetPlayerAllianceStateVisionBJ( Player(9), Player(20), true )
    call SetPlayerAllianceStateVisionBJ( Player(10), Player(6), true )
    call SetPlayerAllianceStateVisionBJ( Player(10), Player(9), true )
    call SetPlayerAllianceStateVisionBJ( Player(10), Player(11), true )
    call SetPlayerAllianceStateVisionBJ( Player(10), Player(14), true )
    call SetPlayerAllianceStateVisionBJ( Player(10), Player(15), true )
    call SetPlayerAllianceStateVisionBJ( Player(10), Player(17), true )
    call SetPlayerAllianceStateVisionBJ( Player(10), Player(20), true )
    call SetPlayerAllianceStateVisionBJ( Player(11), Player(6), true )
    call SetPlayerAllianceStateVisionBJ( Player(11), Player(9), true )
    call SetPlayerAllianceStateVisionBJ( Player(11), Player(10), true )
    call SetPlayerAllianceStateVisionBJ( Player(11), Player(14), true )
    call SetPlayerAllianceStateVisionBJ( Player(11), Player(15), true )
    call SetPlayerAllianceStateVisionBJ( Player(11), Player(17), true )
    call SetPlayerAllianceStateVisionBJ( Player(11), Player(20), true )
    call SetPlayerAllianceStateVisionBJ( Player(14), Player(6), true )
    call SetPlayerAllianceStateVisionBJ( Player(14), Player(9), true )
    call SetPlayerAllianceStateVisionBJ( Player(14), Player(10), true )
    call SetPlayerAllianceStateVisionBJ( Player(14), Player(11), true )
    call SetPlayerAllianceStateVisionBJ( Player(14), Player(15), true )
    call SetPlayerAllianceStateVisionBJ( Player(14), Player(17), true )
    call SetPlayerAllianceStateVisionBJ( Player(14), Player(20), true )
    call SetPlayerAllianceStateVisionBJ( Player(15), Player(6), true )
    call SetPlayerAllianceStateVisionBJ( Player(15), Player(9), true )
    call SetPlayerAllianceStateVisionBJ( Player(15), Player(10), true )
    call SetPlayerAllianceStateVisionBJ( Player(15), Player(11), true )
    call SetPlayerAllianceStateVisionBJ( Player(15), Player(14), true )
    call SetPlayerAllianceStateVisionBJ( Player(15), Player(17), true )
    call SetPlayerAllianceStateVisionBJ( Player(15), Player(20), true )
    call SetPlayerAllianceStateVisionBJ( Player(17), Player(6), true )
    call SetPlayerAllianceStateVisionBJ( Player(17), Player(9), true )
    call SetPlayerAllianceStateVisionBJ( Player(17), Player(10), true )
    call SetPlayerAllianceStateVisionBJ( Player(17), Player(11), true )
    call SetPlayerAllianceStateVisionBJ( Player(17), Player(14), true )
    call SetPlayerAllianceStateVisionBJ( Player(17), Player(15), true )
    call SetPlayerAllianceStateVisionBJ( Player(17), Player(20), true )
    call SetPlayerAllianceStateVisionBJ( Player(20), Player(6), true )
    call SetPlayerAllianceStateVisionBJ( Player(20), Player(9), true )
    call SetPlayerAllianceStateVisionBJ( Player(20), Player(10), true )
    call SetPlayerAllianceStateVisionBJ( Player(20), Player(11), true )
    call SetPlayerAllianceStateVisionBJ( Player(20), Player(14), true )
    call SetPlayerAllianceStateVisionBJ( Player(20), Player(15), true )
    call SetPlayerAllianceStateVisionBJ( Player(20), Player(17), true )

    //   Shared Control
    call SetPlayerAllianceStateControlBJ( Player(6), Player(9), true )
    call SetPlayerAllianceStateControlBJ( Player(6), Player(10), true )
    call SetPlayerAllianceStateControlBJ( Player(6), Player(11), true )
    call SetPlayerAllianceStateControlBJ( Player(6), Player(14), true )
    call SetPlayerAllianceStateControlBJ( Player(6), Player(15), true )
    call SetPlayerAllianceStateControlBJ( Player(6), Player(17), true )
    call SetPlayerAllianceStateControlBJ( Player(6), Player(20), true )
    call SetPlayerAllianceStateControlBJ( Player(9), Player(6), true )
    call SetPlayerAllianceStateControlBJ( Player(9), Player(10), true )
    call SetPlayerAllianceStateControlBJ( Player(9), Player(11), true )
    call SetPlayerAllianceStateControlBJ( Player(9), Player(14), true )
    call SetPlayerAllianceStateControlBJ( Player(9), Player(15), true )
    call SetPlayerAllianceStateControlBJ( Player(9), Player(17), true )
    call SetPlayerAllianceStateControlBJ( Player(9), Player(20), true )
    call SetPlayerAllianceStateControlBJ( Player(10), Player(6), true )
    call SetPlayerAllianceStateControlBJ( Player(10), Player(9), true )
    call SetPlayerAllianceStateControlBJ( Player(10), Player(11), true )
    call SetPlayerAllianceStateControlBJ( Player(10), Player(14), true )
    call SetPlayerAllianceStateControlBJ( Player(10), Player(15), true )
    call SetPlayerAllianceStateControlBJ( Player(10), Player(17), true )
    call SetPlayerAllianceStateControlBJ( Player(10), Player(20), true )
    call SetPlayerAllianceStateControlBJ( Player(11), Player(6), true )
    call SetPlayerAllianceStateControlBJ( Player(11), Player(9), true )
    call SetPlayerAllianceStateControlBJ( Player(11), Player(10), true )
    call SetPlayerAllianceStateControlBJ( Player(11), Player(14), true )
    call SetPlayerAllianceStateControlBJ( Player(11), Player(15), true )
    call SetPlayerAllianceStateControlBJ( Player(11), Player(17), true )
    call SetPlayerAllianceStateControlBJ( Player(11), Player(20), true )
    call SetPlayerAllianceStateControlBJ( Player(14), Player(6), true )
    call SetPlayerAllianceStateControlBJ( Player(14), Player(9), true )
    call SetPlayerAllianceStateControlBJ( Player(14), Player(10), true )
    call SetPlayerAllianceStateControlBJ( Player(14), Player(11), true )
    call SetPlayerAllianceStateControlBJ( Player(14), Player(15), true )
    call SetPlayerAllianceStateControlBJ( Player(14), Player(17), true )
    call SetPlayerAllianceStateControlBJ( Player(14), Player(20), true )
    call SetPlayerAllianceStateControlBJ( Player(15), Player(6), true )
    call SetPlayerAllianceStateControlBJ( Player(15), Player(9), true )
    call SetPlayerAllianceStateControlBJ( Player(15), Player(10), true )
    call SetPlayerAllianceStateControlBJ( Player(15), Player(11), true )
    call SetPlayerAllianceStateControlBJ( Player(15), Player(14), true )
    call SetPlayerAllianceStateControlBJ( Player(15), Player(17), true )
    call SetPlayerAllianceStateControlBJ( Player(15), Player(20), true )
    call SetPlayerAllianceStateControlBJ( Player(17), Player(6), true )
    call SetPlayerAllianceStateControlBJ( Player(17), Player(9), true )
    call SetPlayerAllianceStateControlBJ( Player(17), Player(10), true )
    call SetPlayerAllianceStateControlBJ( Player(17), Player(11), true )
    call SetPlayerAllianceStateControlBJ( Player(17), Player(14), true )
    call SetPlayerAllianceStateControlBJ( Player(17), Player(15), true )
    call SetPlayerAllianceStateControlBJ( Player(17), Player(20), true )
    call SetPlayerAllianceStateControlBJ( Player(20), Player(6), true )
    call SetPlayerAllianceStateControlBJ( Player(20), Player(9), true )
    call SetPlayerAllianceStateControlBJ( Player(20), Player(10), true )
    call SetPlayerAllianceStateControlBJ( Player(20), Player(11), true )
    call SetPlayerAllianceStateControlBJ( Player(20), Player(14), true )
    call SetPlayerAllianceStateControlBJ( Player(20), Player(15), true )
    call SetPlayerAllianceStateControlBJ( Player(20), Player(17), true )

    //   Shared Advanced Control
    call SetPlayerAllianceStateFullControlBJ( Player(6), Player(9), true )
    call SetPlayerAllianceStateFullControlBJ( Player(6), Player(10), true )
    call SetPlayerAllianceStateFullControlBJ( Player(6), Player(11), true )
    call SetPlayerAllianceStateFullControlBJ( Player(6), Player(14), true )
    call SetPlayerAllianceStateFullControlBJ( Player(6), Player(15), true )
    call SetPlayerAllianceStateFullControlBJ( Player(6), Player(17), true )
    call SetPlayerAllianceStateFullControlBJ( Player(6), Player(20), true )
    call SetPlayerAllianceStateFullControlBJ( Player(9), Player(6), true )
    call SetPlayerAllianceStateFullControlBJ( Player(9), Player(10), true )
    call SetPlayerAllianceStateFullControlBJ( Player(9), Player(11), true )
    call SetPlayerAllianceStateFullControlBJ( Player(9), Player(14), true )
    call SetPlayerAllianceStateFullControlBJ( Player(9), Player(15), true )
    call SetPlayerAllianceStateFullControlBJ( Player(9), Player(17), true )
    call SetPlayerAllianceStateFullControlBJ( Player(9), Player(20), true )
    call SetPlayerAllianceStateFullControlBJ( Player(10), Player(6), true )
    call SetPlayerAllianceStateFullControlBJ( Player(10), Player(9), true )
    call SetPlayerAllianceStateFullControlBJ( Player(10), Player(11), true )
    call SetPlayerAllianceStateFullControlBJ( Player(10), Player(14), true )
    call SetPlayerAllianceStateFullControlBJ( Player(10), Player(15), true )
    call SetPlayerAllianceStateFullControlBJ( Player(10), Player(17), true )
    call SetPlayerAllianceStateFullControlBJ( Player(10), Player(20), true )
    call SetPlayerAllianceStateFullControlBJ( Player(11), Player(6), true )
    call SetPlayerAllianceStateFullControlBJ( Player(11), Player(9), true )
    call SetPlayerAllianceStateFullControlBJ( Player(11), Player(10), true )
    call SetPlayerAllianceStateFullControlBJ( Player(11), Player(14), true )
    call SetPlayerAllianceStateFullControlBJ( Player(11), Player(15), true )
    call SetPlayerAllianceStateFullControlBJ( Player(11), Player(17), true )
    call SetPlayerAllianceStateFullControlBJ( Player(11), Player(20), true )
    call SetPlayerAllianceStateFullControlBJ( Player(14), Player(6), true )
    call SetPlayerAllianceStateFullControlBJ( Player(14), Player(9), true )
    call SetPlayerAllianceStateFullControlBJ( Player(14), Player(10), true )
    call SetPlayerAllianceStateFullControlBJ( Player(14), Player(11), true )
    call SetPlayerAllianceStateFullControlBJ( Player(14), Player(15), true )
    call SetPlayerAllianceStateFullControlBJ( Player(14), Player(17), true )
    call SetPlayerAllianceStateFullControlBJ( Player(14), Player(20), true )
    call SetPlayerAllianceStateFullControlBJ( Player(15), Player(6), true )
    call SetPlayerAllianceStateFullControlBJ( Player(15), Player(9), true )
    call SetPlayerAllianceStateFullControlBJ( Player(15), Player(10), true )
    call SetPlayerAllianceStateFullControlBJ( Player(15), Player(11), true )
    call SetPlayerAllianceStateFullControlBJ( Player(15), Player(14), true )
    call SetPlayerAllianceStateFullControlBJ( Player(15), Player(17), true )
    call SetPlayerAllianceStateFullControlBJ( Player(15), Player(20), true )
    call SetPlayerAllianceStateFullControlBJ( Player(17), Player(6), true )
    call SetPlayerAllianceStateFullControlBJ( Player(17), Player(9), true )
    call SetPlayerAllianceStateFullControlBJ( Player(17), Player(10), true )
    call SetPlayerAllianceStateFullControlBJ( Player(17), Player(11), true )
    call SetPlayerAllianceStateFullControlBJ( Player(17), Player(14), true )
    call SetPlayerAllianceStateFullControlBJ( Player(17), Player(15), true )
    call SetPlayerAllianceStateFullControlBJ( Player(17), Player(20), true )
    call SetPlayerAllianceStateFullControlBJ( Player(20), Player(6), true )
    call SetPlayerAllianceStateFullControlBJ( Player(20), Player(9), true )
    call SetPlayerAllianceStateFullControlBJ( Player(20), Player(10), true )
    call SetPlayerAllianceStateFullControlBJ( Player(20), Player(11), true )
    call SetPlayerAllianceStateFullControlBJ( Player(20), Player(14), true )
    call SetPlayerAllianceStateFullControlBJ( Player(20), Player(15), true )
    call SetPlayerAllianceStateFullControlBJ( Player(20), Player(17), true )

    // Force: TRIGSTR_034
    call SetPlayerTeam( Player(13), 5 )
    call SetPlayerState( Player(13), PLAYER_STATE_ALLIED_VICTORY, 1 )
    call SetPlayerTeam( Player(18), 5 )
    call SetPlayerState( Player(18), PLAYER_STATE_ALLIED_VICTORY, 1 )
    call SetPlayerTeam( Player(19), 5 )
    call SetPlayerState( Player(19), PLAYER_STATE_ALLIED_VICTORY, 1 )
    call SetPlayerTeam( Player(21), 5 )
    call SetPlayerState( Player(21), PLAYER_STATE_ALLIED_VICTORY, 1 )
    call SetPlayerTeam( Player(22), 5 )
    call SetPlayerState( Player(22), PLAYER_STATE_ALLIED_VICTORY, 1 )
    call SetPlayerTeam( Player(23), 5 )
    call SetPlayerState( Player(23), PLAYER_STATE_ALLIED_VICTORY, 1 )

    //   Allied
    call SetPlayerAllianceStateAllyBJ( Player(13), Player(18), true )
    call SetPlayerAllianceStateAllyBJ( Player(13), Player(19), true )
    call SetPlayerAllianceStateAllyBJ( Player(13), Player(21), true )
    call SetPlayerAllianceStateAllyBJ( Player(13), Player(22), true )
    call SetPlayerAllianceStateAllyBJ( Player(13), Player(23), true )
    call SetPlayerAllianceStateAllyBJ( Player(18), Player(13), true )
    call SetPlayerAllianceStateAllyBJ( Player(18), Player(19), true )
    call SetPlayerAllianceStateAllyBJ( Player(18), Player(21), true )
    call SetPlayerAllianceStateAllyBJ( Player(18), Player(22), true )
    call SetPlayerAllianceStateAllyBJ( Player(18), Player(23), true )
    call SetPlayerAllianceStateAllyBJ( Player(19), Player(13), true )
    call SetPlayerAllianceStateAllyBJ( Player(19), Player(18), true )
    call SetPlayerAllianceStateAllyBJ( Player(19), Player(21), true )
    call SetPlayerAllianceStateAllyBJ( Player(19), Player(22), true )
    call SetPlayerAllianceStateAllyBJ( Player(19), Player(23), true )
    call SetPlayerAllianceStateAllyBJ( Player(21), Player(13), true )
    call SetPlayerAllianceStateAllyBJ( Player(21), Player(18), true )
    call SetPlayerAllianceStateAllyBJ( Player(21), Player(19), true )
    call SetPlayerAllianceStateAllyBJ( Player(21), Player(22), true )
    call SetPlayerAllianceStateAllyBJ( Player(21), Player(23), true )
    call SetPlayerAllianceStateAllyBJ( Player(22), Player(13), true )
    call SetPlayerAllianceStateAllyBJ( Player(22), Player(18), true )
    call SetPlayerAllianceStateAllyBJ( Player(22), Player(19), true )
    call SetPlayerAllianceStateAllyBJ( Player(22), Player(21), true )
    call SetPlayerAllianceStateAllyBJ( Player(22), Player(23), true )
    call SetPlayerAllianceStateAllyBJ( Player(23), Player(13), true )
    call SetPlayerAllianceStateAllyBJ( Player(23), Player(18), true )
    call SetPlayerAllianceStateAllyBJ( Player(23), Player(19), true )
    call SetPlayerAllianceStateAllyBJ( Player(23), Player(21), true )
    call SetPlayerAllianceStateAllyBJ( Player(23), Player(22), true )

    //   Shared Vision
    call SetPlayerAllianceStateVisionBJ( Player(13), Player(18), true )
    call SetPlayerAllianceStateVisionBJ( Player(13), Player(19), true )
    call SetPlayerAllianceStateVisionBJ( Player(13), Player(21), true )
    call SetPlayerAllianceStateVisionBJ( Player(13), Player(22), true )
    call SetPlayerAllianceStateVisionBJ( Player(13), Player(23), true )
    call SetPlayerAllianceStateVisionBJ( Player(18), Player(13), true )
    call SetPlayerAllianceStateVisionBJ( Player(18), Player(19), true )
    call SetPlayerAllianceStateVisionBJ( Player(18), Player(21), true )
    call SetPlayerAllianceStateVisionBJ( Player(18), Player(22), true )
    call SetPlayerAllianceStateVisionBJ( Player(18), Player(23), true )
    call SetPlayerAllianceStateVisionBJ( Player(19), Player(13), true )
    call SetPlayerAllianceStateVisionBJ( Player(19), Player(18), true )
    call SetPlayerAllianceStateVisionBJ( Player(19), Player(21), true )
    call SetPlayerAllianceStateVisionBJ( Player(19), Player(22), true )
    call SetPlayerAllianceStateVisionBJ( Player(19), Player(23), true )
    call SetPlayerAllianceStateVisionBJ( Player(21), Player(13), true )
    call SetPlayerAllianceStateVisionBJ( Player(21), Player(18), true )
    call SetPlayerAllianceStateVisionBJ( Player(21), Player(19), true )
    call SetPlayerAllianceStateVisionBJ( Player(21), Player(22), true )
    call SetPlayerAllianceStateVisionBJ( Player(21), Player(23), true )
    call SetPlayerAllianceStateVisionBJ( Player(22), Player(13), true )
    call SetPlayerAllianceStateVisionBJ( Player(22), Player(18), true )
    call SetPlayerAllianceStateVisionBJ( Player(22), Player(19), true )
    call SetPlayerAllianceStateVisionBJ( Player(22), Player(21), true )
    call SetPlayerAllianceStateVisionBJ( Player(22), Player(23), true )
    call SetPlayerAllianceStateVisionBJ( Player(23), Player(13), true )
    call SetPlayerAllianceStateVisionBJ( Player(23), Player(18), true )
    call SetPlayerAllianceStateVisionBJ( Player(23), Player(19), true )
    call SetPlayerAllianceStateVisionBJ( Player(23), Player(21), true )
    call SetPlayerAllianceStateVisionBJ( Player(23), Player(22), true )

    //   Shared Control
    call SetPlayerAllianceStateControlBJ( Player(13), Player(18), true )
    call SetPlayerAllianceStateControlBJ( Player(13), Player(19), true )
    call SetPlayerAllianceStateControlBJ( Player(13), Player(21), true )
    call SetPlayerAllianceStateControlBJ( Player(13), Player(22), true )
    call SetPlayerAllianceStateControlBJ( Player(13), Player(23), true )
    call SetPlayerAllianceStateControlBJ( Player(18), Player(13), true )
    call SetPlayerAllianceStateControlBJ( Player(18), Player(19), true )
    call SetPlayerAllianceStateControlBJ( Player(18), Player(21), true )
    call SetPlayerAllianceStateControlBJ( Player(18), Player(22), true )
    call SetPlayerAllianceStateControlBJ( Player(18), Player(23), true )
    call SetPlayerAllianceStateControlBJ( Player(19), Player(13), true )
    call SetPlayerAllianceStateControlBJ( Player(19), Player(18), true )
    call SetPlayerAllianceStateControlBJ( Player(19), Player(21), true )
    call SetPlayerAllianceStateControlBJ( Player(19), Player(22), true )
    call SetPlayerAllianceStateControlBJ( Player(19), Player(23), true )
    call SetPlayerAllianceStateControlBJ( Player(21), Player(13), true )
    call SetPlayerAllianceStateControlBJ( Player(21), Player(18), true )
    call SetPlayerAllianceStateControlBJ( Player(21), Player(19), true )
    call SetPlayerAllianceStateControlBJ( Player(21), Player(22), true )
    call SetPlayerAllianceStateControlBJ( Player(21), Player(23), true )
    call SetPlayerAllianceStateControlBJ( Player(22), Player(13), true )
    call SetPlayerAllianceStateControlBJ( Player(22), Player(18), true )
    call SetPlayerAllianceStateControlBJ( Player(22), Player(19), true )
    call SetPlayerAllianceStateControlBJ( Player(22), Player(21), true )
    call SetPlayerAllianceStateControlBJ( Player(22), Player(23), true )
    call SetPlayerAllianceStateControlBJ( Player(23), Player(13), true )
    call SetPlayerAllianceStateControlBJ( Player(23), Player(18), true )
    call SetPlayerAllianceStateControlBJ( Player(23), Player(19), true )
    call SetPlayerAllianceStateControlBJ( Player(23), Player(21), true )
    call SetPlayerAllianceStateControlBJ( Player(23), Player(22), true )

    //   Shared Advanced Control
    call SetPlayerAllianceStateFullControlBJ( Player(13), Player(18), true )
    call SetPlayerAllianceStateFullControlBJ( Player(13), Player(19), true )
    call SetPlayerAllianceStateFullControlBJ( Player(13), Player(21), true )
    call SetPlayerAllianceStateFullControlBJ( Player(13), Player(22), true )
    call SetPlayerAllianceStateFullControlBJ( Player(13), Player(23), true )
    call SetPlayerAllianceStateFullControlBJ( Player(18), Player(13), true )
    call SetPlayerAllianceStateFullControlBJ( Player(18), Player(19), true )
    call SetPlayerAllianceStateFullControlBJ( Player(18), Player(21), true )
    call SetPlayerAllianceStateFullControlBJ( Player(18), Player(22), true )
    call SetPlayerAllianceStateFullControlBJ( Player(18), Player(23), true )
    call SetPlayerAllianceStateFullControlBJ( Player(19), Player(13), true )
    call SetPlayerAllianceStateFullControlBJ( Player(19), Player(18), true )
    call SetPlayerAllianceStateFullControlBJ( Player(19), Player(21), true )
    call SetPlayerAllianceStateFullControlBJ( Player(19), Player(22), true )
    call SetPlayerAllianceStateFullControlBJ( Player(19), Player(23), true )
    call SetPlayerAllianceStateFullControlBJ( Player(21), Player(13), true )
    call SetPlayerAllianceStateFullControlBJ( Player(21), Player(18), true )
    call SetPlayerAllianceStateFullControlBJ( Player(21), Player(19), true )
    call SetPlayerAllianceStateFullControlBJ( Player(21), Player(22), true )
    call SetPlayerAllianceStateFullControlBJ( Player(21), Player(23), true )
    call SetPlayerAllianceStateFullControlBJ( Player(22), Player(13), true )
    call SetPlayerAllianceStateFullControlBJ( Player(22), Player(18), true )
    call SetPlayerAllianceStateFullControlBJ( Player(22), Player(19), true )
    call SetPlayerAllianceStateFullControlBJ( Player(22), Player(21), true )
    call SetPlayerAllianceStateFullControlBJ( Player(22), Player(23), true )
    call SetPlayerAllianceStateFullControlBJ( Player(23), Player(13), true )
    call SetPlayerAllianceStateFullControlBJ( Player(23), Player(18), true )
    call SetPlayerAllianceStateFullControlBJ( Player(23), Player(19), true )
    call SetPlayerAllianceStateFullControlBJ( Player(23), Player(21), true )
    call SetPlayerAllianceStateFullControlBJ( Player(23), Player(22), true )

endfunction

function InitAllyPriorities takes nothing returns nothing

    call SetStartLocPrioCount( 0, 13 )
    call SetStartLocPrio( 0, 0, 1, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 0, 1, 3, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 0, 2, 7, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 0, 3, 8, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 0, 4, 10, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 0, 5, 11, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 0, 6, 12, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 0, 7, 13, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 0, 8, 15, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 0, 9, 16, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 0, 10, 19, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 0, 11, 20, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 0, 12, 23, MAP_LOC_PRIO_HIGH )

    call SetStartLocPrioCount( 1, 15 )
    call SetStartLocPrio( 1, 0, 0, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 1, 1, 2, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 1, 2, 4, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 1, 3, 6, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 1, 4, 8, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 1, 5, 9, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 1, 6, 10, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 1, 7, 12, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 1, 8, 13, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 1, 9, 15, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 1, 10, 16, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 1, 11, 18, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 1, 12, 19, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 1, 13, 20, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 1, 14, 21, MAP_LOC_PRIO_LOW )

    call SetStartLocPrioCount( 2, 17 )
    call SetStartLocPrio( 2, 0, 1, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 2, 1, 3, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 2, 2, 4, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 2, 3, 6, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 2, 4, 7, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 2, 5, 8, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 2, 6, 9, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 2, 7, 10, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 2, 8, 11, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 2, 9, 12, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 2, 10, 13, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 2, 11, 15, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 2, 12, 17, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 2, 13, 18, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 2, 14, 19, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 2, 15, 20, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 2, 16, 21, MAP_LOC_PRIO_HIGH )

    call SetStartLocPrioCount( 3, 16 )
    call SetStartLocPrio( 3, 0, 0, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 3, 1, 1, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 3, 2, 2, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 3, 3, 4, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 3, 4, 5, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 3, 5, 6, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 3, 6, 7, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 3, 7, 8, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 3, 8, 9, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 3, 9, 11, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 3, 10, 13, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 3, 11, 14, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 3, 12, 15, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 3, 13, 17, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 3, 14, 20, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 3, 15, 21, MAP_LOC_PRIO_HIGH )

    call SetStartLocPrioCount( 4, 18 )
    call SetStartLocPrio( 4, 0, 2, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 4, 1, 3, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 4, 2, 5, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 4, 3, 7, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 4, 4, 8, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 4, 5, 9, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 4, 6, 10, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 4, 7, 11, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 4, 8, 12, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 4, 9, 13, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 4, 10, 14, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 4, 11, 16, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 4, 12, 17, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 4, 13, 18, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 4, 14, 19, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 4, 15, 20, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 4, 16, 22, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 4, 17, 23, MAP_LOC_PRIO_HIGH )

    call SetStartLocPrioCount( 5, 14 )
    call SetStartLocPrio( 5, 0, 1, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 5, 1, 2, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 5, 2, 4, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 5, 3, 6, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 5, 4, 7, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 5, 5, 10, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 5, 6, 12, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 5, 7, 14, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 5, 8, 15, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 5, 9, 16, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 5, 10, 17, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 5, 11, 19, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 5, 12, 20, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 5, 13, 21, MAP_LOC_PRIO_LOW )

    call SetStartLocPrioCount( 6, 13 )
    call SetStartLocPrio( 6, 0, 0, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 6, 1, 1, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 6, 2, 2, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 6, 3, 4, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 6, 4, 7, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 6, 5, 9, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 6, 6, 10, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 6, 7, 13, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 6, 8, 16, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 6, 9, 18, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 6, 10, 19, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 6, 11, 22, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 6, 12, 23, MAP_LOC_PRIO_HIGH )

    call SetStartLocPrioCount( 7, 11 )
    call SetStartLocPrio( 7, 0, 0, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 7, 1, 3, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 7, 2, 6, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 7, 3, 8, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 7, 4, 10, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 7, 5, 12, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 7, 6, 13, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 7, 7, 14, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 7, 8, 18, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 7, 9, 19, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 7, 10, 21, MAP_LOC_PRIO_HIGH )

    call SetStartLocPrioCount( 8, 15 )
    call SetStartLocPrio( 8, 0, 0, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 8, 1, 1, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 8, 2, 3, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 8, 3, 5, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 8, 4, 6, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 8, 5, 7, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 8, 6, 12, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 8, 7, 13, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 8, 8, 16, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 8, 9, 18, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 8, 10, 19, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 8, 11, 20, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 8, 12, 21, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 8, 13, 22, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 8, 14, 23, MAP_LOC_PRIO_LOW )

    call SetStartLocPrioCount( 9, 14 )
    call SetStartLocPrio( 9, 0, 0, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 9, 1, 3, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 9, 2, 4, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 9, 3, 7, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 9, 4, 10, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 9, 5, 11, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 9, 6, 12, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 9, 7, 14, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 9, 8, 16, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 9, 9, 18, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 9, 10, 19, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 9, 11, 20, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 9, 12, 21, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 9, 13, 22, MAP_LOC_PRIO_LOW )

    call SetStartLocPrioCount( 10, 15 )
    call SetStartLocPrio( 10, 0, 0, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 10, 1, 2, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 10, 2, 5, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 10, 3, 6, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 10, 4, 8, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 10, 5, 9, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 10, 6, 11, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 10, 7, 12, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 10, 8, 13, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 10, 9, 14, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 10, 10, 15, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 10, 11, 17, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 10, 12, 19, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 10, 13, 20, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 10, 14, 22, MAP_LOC_PRIO_LOW )

    call SetStartLocPrioCount( 11, 14 )
    call SetStartLocPrio( 11, 0, 0, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 11, 1, 3, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 11, 2, 4, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 11, 3, 8, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 11, 4, 10, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 11, 5, 12, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 11, 6, 13, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 11, 7, 14, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 11, 8, 15, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 11, 9, 17, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 11, 10, 18, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 11, 11, 19, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 11, 12, 20, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 11, 13, 22, MAP_LOC_PRIO_LOW )

    call SetStartLocPrioCount( 12, 15 )
    call SetStartLocPrio( 12, 0, 1, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 12, 1, 2, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 12, 2, 3, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 12, 3, 4, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 12, 4, 5, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 12, 5, 7, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 12, 6, 9, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 12, 7, 13, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 12, 8, 14, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 12, 9, 15, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 12, 10, 16, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 12, 11, 17, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 12, 12, 18, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 12, 13, 20, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 12, 14, 22, MAP_LOC_PRIO_HIGH )

    call SetStartLocPrioCount( 13, 11 )
    call SetStartLocPrio( 13, 0, 1, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 13, 1, 4, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 13, 2, 6, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 13, 3, 8, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 13, 4, 11, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 13, 5, 14, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 13, 6, 15, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 13, 7, 16, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 13, 8, 17, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 13, 9, 21, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 13, 10, 23, MAP_LOC_PRIO_LOW )

    call SetStartLocPrioCount( 14, 12 )
    call SetStartLocPrio( 14, 0, 2, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 14, 1, 3, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 14, 2, 4, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 14, 3, 5, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 14, 4, 7, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 14, 5, 8, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 14, 6, 12, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 14, 7, 13, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 14, 8, 17, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 14, 9, 20, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 14, 10, 22, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 14, 11, 23, MAP_LOC_PRIO_LOW )

    call SetStartLocPrioCount( 15, 12 )
    call SetStartLocPrio( 15, 0, 1, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 15, 1, 3, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 15, 2, 5, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 15, 3, 7, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 15, 4, 8, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 15, 5, 10, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 15, 6, 11, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 15, 7, 13, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 15, 8, 17, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 15, 9, 19, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 15, 10, 20, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 15, 11, 22, MAP_LOC_PRIO_HIGH )

    call SetStartLocPrioCount( 16, 9 )
    call SetStartLocPrio( 16, 0, 1, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 16, 1, 4, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 16, 2, 6, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 16, 3, 11, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 16, 4, 13, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 16, 5, 15, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 16, 6, 17, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 16, 7, 20, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 16, 8, 23, MAP_LOC_PRIO_HIGH )

    call SetStartLocPrioCount( 17, 11 )
    call SetStartLocPrio( 17, 0, 0, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 17, 1, 3, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 17, 2, 7, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 17, 3, 10, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 17, 4, 11, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 17, 5, 13, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 17, 6, 15, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 17, 7, 16, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 17, 8, 19, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 17, 9, 22, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 17, 10, 23, MAP_LOC_PRIO_HIGH )

    call SetStartLocPrioCount( 18, 8 )
    call SetStartLocPrio( 18, 0, 1, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 18, 1, 6, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 18, 2, 9, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 18, 3, 10, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 18, 4, 12, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 18, 5, 15, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 18, 6, 19, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 18, 7, 21, MAP_LOC_PRIO_HIGH )

    call SetStartLocPrioCount( 19, 14 )
    call SetStartLocPrio( 19, 0, 0, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 19, 1, 1, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 19, 2, 2, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 19, 3, 3, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 19, 4, 5, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 19, 5, 7, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 19, 6, 9, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 19, 7, 10, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 19, 8, 12, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 19, 9, 14, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 19, 10, 16, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 19, 11, 18, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 19, 12, 20, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 19, 13, 22, MAP_LOC_PRIO_HIGH )

    call SetStartLocPrioCount( 20, 15 )
    call SetStartLocPrio( 20, 0, 0, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 20, 1, 1, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 20, 2, 2, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 20, 3, 3, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 20, 4, 4, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 20, 5, 5, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 20, 6, 7, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 20, 7, 9, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 20, 8, 10, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 20, 9, 11, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 20, 10, 12, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 20, 11, 13, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 20, 12, 17, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 20, 13, 18, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 20, 14, 21, MAP_LOC_PRIO_LOW )

    call SetStartLocPrioCount( 21, 13 )
    call SetStartLocPrio( 21, 0, 0, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 21, 1, 2, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 21, 2, 3, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 21, 3, 4, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 21, 4, 5, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 21, 5, 8, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 21, 6, 12, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 21, 7, 13, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 21, 8, 14, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 21, 9, 16, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 21, 10, 17, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 21, 11, 18, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 21, 12, 20, MAP_LOC_PRIO_HIGH )

    call SetStartLocPrioCount( 22, 13 )
    call SetStartLocPrio( 22, 0, 1, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 22, 1, 3, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 22, 2, 4, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 22, 3, 5, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 22, 4, 7, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 22, 5, 8, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 22, 6, 9, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 22, 7, 11, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 22, 8, 14, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 22, 9, 16, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 22, 10, 18, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 22, 11, 19, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 22, 12, 20, MAP_LOC_PRIO_HIGH )

    call SetStartLocPrioCount( 23, 15 )
    call SetStartLocPrio( 23, 0, 0, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 23, 1, 1, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 23, 2, 2, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 23, 3, 4, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 23, 4, 5, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 23, 5, 6, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 23, 6, 7, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 23, 7, 8, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 23, 8, 9, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 23, 9, 10, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 23, 10, 14, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 23, 11, 16, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 23, 12, 17, MAP_LOC_PRIO_HIGH )
    call SetStartLocPrio( 23, 13, 19, MAP_LOC_PRIO_LOW )
    call SetStartLocPrio( 23, 14, 21, MAP_LOC_PRIO_HIGH )
endfunction
function config takes nothing returns nothing
    call SetMapName( "TRIGSTR_001" )
    call SetMapDescription( "TRIGSTR_003" )
    call SetPlayers( 24 )
    call SetTeams( 24 )
    call SetGamePlacement( MAP_PLACEMENT_TEAMS_TOGETHER )

    call DefineStartLocation( 0, -1024.0, 1984.0 )
    call DefineStartLocation( 1, -448.0, -768.0 )
    call DefineStartLocation( 2, -1216.0, -960.0 )
    call DefineStartLocation( 3, 512.0, 192.0 )
    call DefineStartLocation( 4, 1536.0, 576.0 )
    call DefineStartLocation( 5, 576.0, 1280.0 )
    call DefineStartLocation( 6, -1344.0, -448.0 )
    call DefineStartLocation( 7, -256.0, 1280.0 )
    call DefineStartLocation( 8, -256.0, 704.0 )
    call DefineStartLocation( 9, 896.0, -384.0 )
    call DefineStartLocation( 10, -192.0, 1792.0 )
    call DefineStartLocation( 11, -1792.0, 1792.0 )
    call DefineStartLocation( 12, 1856.0, 1088.0 )
    call DefineStartLocation( 13, -576.0, -64.0 )
    call DefineStartLocation( 14, 832.0, 704.0 )
    call DefineStartLocation( 15, -384.0, -1280.0 )
    call DefineStartLocation( 16, -1216.0, 320.0 )
    call DefineStartLocation( 17, -1600.0, 896.0 )
    call DefineStartLocation( 18, 512.0, -1536.0 )
    call DefineStartLocation( 19, 1344.0, -1600.0 )
    call DefineStartLocation( 20, 384.0, 1920.0 )
    call DefineStartLocation( 21, 1216.0, 1920.0 )
    call DefineStartLocation( 22, 1728.0, -896.0 )
    call DefineStartLocation( 23, -960.0, 896.0 )

    // Player setup
    call InitCustomPlayerSlots(  )
    call InitCustomTeams(  )
    call InitAllyPriorities(  )
endfunction

Scroll down ^^

Clean code (kind of hard to demonstrate seeing as how most extraneous lines were removed):
Code: Select all
function InitCustomTeams takes nothing returns nothing
    // Force: TRIGSTR_029
    call SetPlayerTeam( Player(0), 0 )
    call SetPlayerTeam( Player(1), 0 )
    call SetPlayerTeam( Player(2), 0 )
    call SetPlayerTeam( Player(3), 0 )
    call SetPlayerTeam( Player(4), 0 )
    call SetPlayerTeam( Player(5), 0 )
    call SetPlayerTeam( Player(6), 0 )
    call SetPlayerTeam( Player(7), 0 )
    call SetPlayerTeam( Player(8), 0 )
    call SetPlayerTeam( Player(9), 0 )
    call SetPlayerTeam( Player(10), 0 )
    call SetPlayerTeam( Player(11), 0 )
    call SetPlayerTeam( Player(12), 0 )
    call SetPlayerTeam( Player(13), 0 )
    call SetPlayerTeam( Player(14), 0 )
    call SetPlayerTeam( Player(15), 0 )
    call SetPlayerTeam( Player(16), 0 )
    call SetPlayerTeam( Player(17), 0 )
    call SetPlayerTeam( Player(18), 0 )
    call SetPlayerTeam( Player(19), 0 )
    call SetPlayerTeam( Player(20), 0 )
    call SetPlayerTeam( Player(21), 0 )
    call SetPlayerTeam( Player(22), 0 )
    call SetPlayerTeam( Player(23), 0 )

endfunction

function config takes nothing returns nothing
    call SetMapName( "TRIGSTR_001" )
    call SetMapDescription( "TRIGSTR_003" )
    call SetPlayers( 24 )
    call SetTeams( 24 )
    call SetGamePlacement( MAP_PLACEMENT_TEAMS_TOGETHER )

    call DefineStartLocation( 0, -1024.0, 1984.0 )
    call DefineStartLocation( 1, -448.0, -768.0 )
    call DefineStartLocation( 2, -1216.0, -960.0 )
    call DefineStartLocation( 3, 512.0, 192.0 )
    call DefineStartLocation( 4, 1536.0, 576.0 )
    call DefineStartLocation( 5, 576.0, 1280.0 )
    call DefineStartLocation( 6, -1344.0, -448.0 )
    call DefineStartLocation( 7, -256.0, 1280.0 )
    call DefineStartLocation( 8, -256.0, 704.0 )
    call DefineStartLocation( 9, 896.0, -384.0 )
    call DefineStartLocation( 10, -192.0, 1792.0 )
    call DefineStartLocation( 11, -1792.0, 1792.0 )
    call DefineStartLocation( 12, 1856.0, 1088.0 )
    call DefineStartLocation( 13, -576.0, -64.0 )
    call DefineStartLocation( 14, 832.0, 704.0 )
    call DefineStartLocation( 15, -384.0, -1280.0 )
    call DefineStartLocation( 16, -1216.0, 320.0 )
    call DefineStartLocation( 17, -1600.0, 896.0 )
    call DefineStartLocation( 18, 512.0, -1536.0 )
    call DefineStartLocation( 19, 1344.0, -1600.0 )
    call DefineStartLocation( 20, 384.0, 1920.0 )
    call DefineStartLocation( 21, 1216.0, 1920.0 )
    call DefineStartLocation( 22, 1728.0, -896.0 )
    call DefineStartLocation( 23, -960.0, 896.0 )

    // Player setup
    call InitCustomPlayerSlots(  )
    call SetPlayerSlotAvailable( Player(0), MAP_CONTROL_USER )
    call SetPlayerSlotAvailable( Player(1), MAP_CONTROL_USER )
    call SetPlayerSlotAvailable( Player(2), MAP_CONTROL_USER )
    call SetPlayerSlotAvailable( Player(3), MAP_CONTROL_USER )
    call SetPlayerSlotAvailable( Player(4), MAP_CONTROL_USER )
    call SetPlayerSlotAvailable( Player(5), MAP_CONTROL_USER )
    call SetPlayerSlotAvailable( Player(6), MAP_CONTROL_USER )
    call SetPlayerSlotAvailable( Player(7), MAP_CONTROL_USER )
    call SetPlayerSlotAvailable( Player(8), MAP_CONTROL_USER )
    call SetPlayerSlotAvailable( Player(9), MAP_CONTROL_USER )
    call SetPlayerSlotAvailable( Player(10), MAP_CONTROL_USER )
    call SetPlayerSlotAvailable( Player(11), MAP_CONTROL_USER )
    call SetPlayerSlotAvailable( Player(12), MAP_CONTROL_USER )
    call SetPlayerSlotAvailable( Player(13), MAP_CONTROL_USER )
    call SetPlayerSlotAvailable( Player(14), MAP_CONTROL_USER )
    call SetPlayerSlotAvailable( Player(15), MAP_CONTROL_USER )
    call SetPlayerSlotAvailable( Player(16), MAP_CONTROL_USER )
    call SetPlayerSlotAvailable( Player(17), MAP_CONTROL_USER )
    call SetPlayerSlotAvailable( Player(18), MAP_CONTROL_USER )
    call SetPlayerSlotAvailable( Player(19), MAP_CONTROL_USER )
    call SetPlayerSlotAvailable( Player(20), MAP_CONTROL_USER )
    call SetPlayerSlotAvailable( Player(21), MAP_CONTROL_USER )
    call SetPlayerSlotAvailable( Player(22), MAP_CONTROL_USER )
    call SetPlayerSlotAvailable( Player(23), MAP_CONTROL_USER )
    call InitGenericPlayerSlots(  )
endfunction
function InitCustomPlayerSlots takes nothing returns nothing

    // Player 0
    call SetPlayerStartLocation( Player(0), 0 )
    call SetPlayerColor( Player(0), ConvertPlayerColor(0) )
    call SetPlayerRacePreference( Player(0), RACE_PREF_RANDOM )
    call SetPlayerRaceSelectable( Player(0), true )
    call SetPlayerController( Player(0), MAP_CONTROL_USER )

    // Player 1
    call SetPlayerStartLocation( Player(1), 1 )
    call SetPlayerColor( Player(1), ConvertPlayerColor(1) )
    call SetPlayerRacePreference( Player(1), RACE_PREF_RANDOM )
    call SetPlayerRaceSelectable( Player(1), true )
    call SetPlayerController( Player(1), MAP_CONTROL_USER )

    // Player 2
    call SetPlayerStartLocation( Player(2), 2 )
    call SetPlayerColor( Player(2), ConvertPlayerColor(2) )
    call SetPlayerRacePreference( Player(2), RACE_PREF_RANDOM )
    call SetPlayerRaceSelectable( Player(2), true )
    call SetPlayerController( Player(2), MAP_CONTROL_USER )

    // Player 3
    call SetPlayerStartLocation( Player(3), 3 )
    call SetPlayerColor( Player(3), ConvertPlayerColor(3) )
    call SetPlayerRacePreference( Player(3), RACE_PREF_RANDOM )
    call SetPlayerRaceSelectable( Player(3), true )
    call SetPlayerController( Player(3), MAP_CONTROL_USER )

    // Player 4
    call SetPlayerStartLocation( Player(4), 4 )
    call SetPlayerColor( Player(4), ConvertPlayerColor(4) )
    call SetPlayerRacePreference( Player(4), RACE_PREF_RANDOM )
    call SetPlayerRaceSelectable( Player(4), true )
    call SetPlayerController( Player(4), MAP_CONTROL_USER )

    // Player 5
    call SetPlayerStartLocation( Player(5), 5 )
    call SetPlayerColor( Player(5), ConvertPlayerColor(5) )
    call SetPlayerRacePreference( Player(5), RACE_PREF_RANDOM )
    call SetPlayerRaceSelectable( Player(5), true )
    call SetPlayerController( Player(5), MAP_CONTROL_USER )

    // Player 6
    call SetPlayerStartLocation( Player(6), 6 )
    call SetPlayerColor( Player(6), ConvertPlayerColor(6) )
    call SetPlayerRacePreference( Player(6), RACE_PREF_RANDOM )
    call SetPlayerRaceSelectable( Player(6), true )
    call SetPlayerController( Player(6), MAP_CONTROL_USER )

    // Player 7
    call SetPlayerStartLocation( Player(7), 7 )
    call SetPlayerColor( Player(7), ConvertPlayerColor(7) )
    call SetPlayerRacePreference( Player(7), RACE_PREF_RANDOM )
    call SetPlayerRaceSelectable( Player(7), true )
    call SetPlayerController( Player(7), MAP_CONTROL_USER )

    // Player 8
    call SetPlayerStartLocation( Player(8), 8 )
    call SetPlayerColor( Player(8), ConvertPlayerColor(8) )
    call SetPlayerRacePreference( Player(8), RACE_PREF_RANDOM )
    call SetPlayerRaceSelectable( Player(8), true )
    call SetPlayerController( Player(8), MAP_CONTROL_USER )

    // Player 9
    call SetPlayerStartLocation( Player(9), 9 )
    call SetPlayerColor( Player(9), ConvertPlayerColor(9) )
    call SetPlayerRacePreference( Player(9), RACE_PREF_RANDOM )
    call SetPlayerRaceSelectable( Player(9), true )
    call SetPlayerController( Player(9), MAP_CONTROL_USER )

    // Player 10
    call SetPlayerStartLocation( Player(10), 10 )
    call SetPlayerColor( Player(10), ConvertPlayerColor(10) )
    call SetPlayerRacePreference( Player(10), RACE_PREF_RANDOM )
    call SetPlayerRaceSelectable( Player(10), true )
    call SetPlayerController( Player(10), MAP_CONTROL_USER )

    // Player 11
    call SetPlayerStartLocation( Player(11), 11 )
    call SetPlayerColor( Player(11), ConvertPlayerColor(11) )
    call SetPlayerRacePreference( Player(11), RACE_PREF_RANDOM )
    call SetPlayerRaceSelectable( Player(11), true )
    call SetPlayerController( Player(11), MAP_CONTROL_USER )

endfunction


Supercode(From unreleased Maze Designer rewrite, repetition eradicated):
Code: Select all
loop
    exitwhen x>8
    set p=Player(x)
    call SetPlayerStartLocation(p,x)
    call ForcePlayerStartLocation(p,x)
    call SetPlayerColor(p,ConvertPlayerColor(x))
    call SetPlayerRacePreference(p,RACE_PREF_HUMAN)
    call SetPlayerRaceSelectable(p,false)
    call SetPlayerController(p,MAP_CONTROL_USER)
    call SetPlayerTeam(p,0)
    call SetStartLocPrioCount(x,0)
    set x=x+1
  endloop

Also the ability to host the map... Unfortunately.
caause
ImageImageImageImageImage
Image
ImageImage
User avatar
3ICE
Admin
 
Posts: 2312
Joined: Sat Mar 01, 2008 11:34 pm
Location: Hungary
Realm: US East
Account: 3ICE
Clan: 3ICE

Re: Alliance priorities cause lots of JASS spam. How 2 eradicate

New postby 3ICE on Wed Mar 14, 2018 8:29 pm

These example maps require the PTR World Editor, I forgot to mention that...
Or once it's the future, then version 1.29+.
If the patch is out, PTR is closed.

Because of the 24 players
ImageImageImageImageImage
Image
ImageImage
User avatar
3ICE
Admin
 
Posts: 2312
Joined: Sat Mar 01, 2008 11:34 pm
Location: Hungary
Realm: US East
Account: 3ICE
Clan: 3ICE

Re: Alliance priorities cause lots of JASS spam. How 2 eradicate

New postby 3ICE on Mon Jul 30, 2018 2:52 am

Alliance priorities cause lots of JASS spam.png
Alliance priorities cause lots of JASS spam.png (31.31 KiB) Viewed 34 times
ImageImageImageImageImage
Image
ImageImage
User avatar
3ICE
Admin
 
Posts: 2312
Joined: Sat Mar 01, 2008 11:34 pm
Location: Hungary
Realm: US East
Account: 3ICE
Clan: 3ICE


Return to TUTORIALS



Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron