H
heyimnotnoob
Guest
Right, so i'm making a map and i figure i want custom triggers, so i go and delete the default ones that appear and make a bunch of cliff and putting terrain and after about 20 minutes of putting terrain in i test the map and out comes an error saying
Script Errors
5994 Compile Errors
Line 136-141: Unregistered Native Function
Line 207: Expected a Name
Line 208-212: Expected Expression
(thats not one twentyth of it, the list goes on and on)
//===========================================================================
//
// Counter-Strike Source
//
// Warcraft III map script
// Generated by the Warcraft III World Editor
// Date: Sun Sep 25 21:26:48 2005
// Map Author: Unknown
//
//===========================================================================
//***************************************************************************
//*
//* Global Variables
//*
//***************************************************************************
globals
// Generated
trigger gg_trg_Untitled_Trigger_001 = null
endglobals
function InitGlobals takes nothing returns nothing
endfunction
//***************************************************************************
//*
//* Players
//*
//***************************************************************************
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_HUMAN )
call SetPlayerRaceSelectable( Player(0), false )
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_HUMAN )
call SetPlayerRaceSelectable( Player(1), false )
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_ORC )
call SetPlayerRaceSelectable( Player(2), false )
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_ORC )
call SetPlayerRaceSelectable( Player(3), false )
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_UNDEAD )
call SetPlayerRaceSelectable( Player(4), false )
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_UNDEAD )
call SetPlayerRaceSelectable( Player(5), false )
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_NIGHTELF )
call SetPlayerRaceSelectable( Player(6), false )
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), false )
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_RESCUABLE )
call SetPlayerAlliance( Player(8), Player(0), ALLIANCE_RESCUABLE, true )
call SetPlayerAlliance( Player(8), Player(1), ALLIANCE_RESCUABLE, true )
call SetPlayerAlliance( Player(8), Player(2), ALLIANCE_RESCUABLE, true )
call SetPlayerAlliance( Player(8), Player(3), ALLIANCE_RESCUABLE, true )
call SetPlayerAlliance( Player(8), Player(4), ALLIANCE_RESCUABLE, true )
call SetPlayerAlliance( Player(8), Player(5), ALLIANCE_RESCUABLE, true )
call SetPlayerAlliance( Player(8), Player(6), ALLIANCE_RESCUABLE, true )
call SetPlayerAlliance( Player(8), Player(7), ALLIANCE_RESCUABLE, true )
endfunction
function InitCustomTeams takes nothing returns nothing
// Force: TRIGSTR_014
call SetPlayerTeam( Player(0), 0 )
call SetPlayerTeam( Player(1), 0 )
call SetPlayerTeam( Player(2), 0 )
call SetPlayerTeam( Player(3), 0 )
// Allied
call SetPlayerAllianceStateAllyBJ( Player(0), Player(1), true )
call SetPlayerAllianceStateAllyBJ( Player(0), Player(2), true )
call SetPlayerAllianceStateAllyBJ( Player(0), Player(3), true )
call SetPlayerAllianceStateAllyBJ( Player(1), Player(0), true )
call SetPlayerAllianceStateAllyBJ( Player(1), Player(2), true )
call SetPlayerAllianceStateAllyBJ( Player(1), Player(3), true )
call SetPlayerAllianceStateAllyBJ( Player(2), Player(0), true )
call SetPlayerAllianceStateAllyBJ( Player(2), Player(1), true )
call SetPlayerAllianceStateAllyBJ( Player(2), Player(3), true )
call SetPlayerAllianceStateAllyBJ( Player(3), Player(0), true )
call SetPlayerAllianceStateAllyBJ( Player(3), Player(1), true )
call SetPlayerAllianceStateAllyBJ( Player(3), Player(2), true )
// Shared Vision
call SetPlayerAllianceStateVisionBJ( Player(0), Player(1), true )
call SetPlayerAllianceStateVisionBJ( Player(0), Player(2), true )
call SetPlayerAllianceStateVisionBJ( Player(0), Player(3), true )
call SetPlayerAllianceStateVisionBJ( Player(1), Player(0), true )
call SetPlayerAllianceStateVisionBJ( Player(1), Player(2), true )
call SetPlayerAllianceStateVisionBJ( Player(1), Player(3), true )
call SetPlayerAllianceStateVisionBJ( Player(2), Player(0), true )
call SetPlayerAllianceStateVisionBJ( Player(2), Player(1), true )
call SetPlayerAllianceStateVisionBJ( Player(2), Player(3), true )
call SetPlayerAllianceStateVisionBJ( Player(3), Player(0), true )
call SetPlayerAllianceStateVisionBJ( Player(3), Player(1), true )
call SetPlayerAllianceStateVisionBJ( Player(3), Player(2), true )
// Force: TRIGSTR_015
call SetPlayerTeam( Player(4), 1 )
call SetPlayerTeam( Player(5), 1 )
call SetPlayerTeam( Player(6), 1 )
call SetPlayerTeam( Player(7), 1 )
// Allied
call SetPlayerAllianceStateAllyBJ( Player(4), Player(5), true )
call SetPlayerAllianceStateAllyBJ( Player(4), Player(6), true )
call SetPlayerAllianceStateAllyBJ( Player(4), Player(7), true )
call SetPlayerAllianceStateAllyBJ( Player(5), Player(4), true )
call SetPlayerAllianceStateAllyBJ( Player(5), Player(6), true )
call SetPlayerAllianceStateAllyBJ( Player(5), Player(7), true )
call SetPlayerAllianceStateAllyBJ( Player(6), Player(4), true )
call SetPlayerAllianceStateAllyBJ( Player(6), Player(5), true )
call SetPlayerAllianceStateAllyBJ( Player(6), Player(7), true )
call SetPlayerAllianceStateAllyBJ( Player(7), Player(4), true )
call SetPlayerAllianceStateAllyBJ( Player(7), Player(5), true )
call SetPlayerAllianceStateAllyBJ( Player(7), Player(6), true )
// Shared Vision
call SetPlayerAllianceStateVisionBJ( Player(4), Player(5), true )
call SetPlayerAllianceStateVisionBJ( Player(4), Player(6), true )
call SetPlayerAllianceStateVisionBJ( Player(4), Player(7), true )
call SetPlayerAllianceStateVisionBJ( Player(5), Player(4), true )
call SetPlayerAllianceStateVisionBJ( Player(5), Player(6), true )
call SetPlayerAllianceStateVisionBJ( Player(5), Player(7), true )
call SetPlayerAllianceStateVisionBJ( Player(6), Player(4), true )
call SetPlayerAllianceStateVisionBJ( Player(6), Player(5), true )
call SetPlayerAllianceStateVisionBJ( Player(6), Player(7), true )
call SetPlayerAllianceStateVisionBJ( Player(7), Player(4), true )
call SetPlayerAllianceStateVisionBJ( Player(7), Player(5), true )
call SetPlayerAllianceStateVisionBJ( Player(7), Player(6), true )
// Force: TRIGSTR_016
call SetPlayerTeam( Player(8), 2 )
endfunction
function InitAllyPriorities takes nothing returns nothing
call SetStartLocPrioCount( 0, 5 )
call SetStartLocPrio( 0, 0, 1, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 0, 1, 2, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 0, 2, 4, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 0, 3, 5, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 0, 4, 6, MAP_LOC_PRIO_LOW )
call SetStartLocPrioCount( 1, 1 )
call SetStartLocPrio( 1, 0, 7, MAP_LOC_PRIO_HIGH )
call SetStartLocPrioCount( 2, 2 )
call SetStartLocPrio( 2, 0, 3, MAP_LOC_PRIO_LOW )
call SetStartLocPrio( 2, 1, 5, MAP_LOC_PRIO_HIGH )
call SetStartLocPrioCount( 3, 1 )
call SetStartLocPrio( 3, 0, 2, MAP_LOC_PRIO_HIGH )
call SetStartLocPrioCount( 4, 1 )
call SetStartLocPrio( 4, 0, 6, MAP_LOC_PRIO_HIGH )
call SetStartLocPrioCount( 5, 3 )
call SetStartLocPrio( 5, 0, 2, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 5, 1, 4, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 5, 2, 6, MAP_LOC_PRIO_HIGH )
call SetStartLocPrioCount( 6, 1 )
call SetStartLocPrio( 6, 0, 4, MAP_LOC_PRIO_HIGH )
call SetStartLocPrioCount( 7, 1 )
call SetStartLocPrio( 7, 0, 1, MAP_LOC_PRIO_HIGH )
endfunction
//***************************************************************************
//*
//* Main Initialization
//*
//***************************************************************************
//===========================================================================
function main takes nothing returns nothing
call SetCameraBounds( -15616.0 + GetCameraMargin(CAMERA_MARGIN_LEFT), -15872.0 + GetCameraMargin(CAMERA_MARGIN_BOTTOM), 15616.0 - GetCameraMargin(CAMERA_MARGIN_RIGHT), 15360.0 - GetCameraMargin(CAMERA_MARGIN_TOP), -15616.0 + GetCameraMargin(CAMERA_MARGIN_LEFT), 15360.0 - GetCameraMargin(CAMERA_MARGIN_TOP), 15616.0 - GetCameraMargin(CAMERA_MARGIN_RIGHT), -15872.0 + GetCameraMargin(CAMERA_MARGIN_BOTTOM) )
call SetDayNightModels( "Environment\\DNC\\DNCLordaeron\\DNCLordaeronTerrain\\DNCLordaeronTerrain.mdl", "Environment\\DNC\\DNCLordaeron\\DNCLordaeronUnit\\DNCLordaeronUnit.mdl" )
call NewSoundEnvironment( "Default" )
call SetAmbientDaySound( "CityScapeDay" )
call SetAmbientNightSound( "CityScapeNight" )
call SetMapMusic( "Music", true, 0 )
call InitBlizzard( )
call InitGlobals( )
endfunction
//***************************************************************************
//*
//* Map Configuration
//*
//***************************************************************************
function config takes nothing returns nothing
call SetMapName( "TRIGSTR_001" )
call SetMapDescription( "TRIGSTR_003" )
call SetPlayers( 9 )
call SetTeams( 9 )
call SetGamePlacement( MAP_PLACEMENT_TEAMS_TOGETHER )
call DefineStartLocation( 0, 13760.0, 11456.0 )
call DefineStartLocation( 1, 12800.0, -4288.0 )
call DefineStartLocation( 2, -5696.0, 10944.0 )
call DefineStartLocation( 3, -13760.0, 14208.0 )
call DefineStartLocation( 4, 640.0, -512.0 )
call DefineStartLocation( 5, -2240.0, 4928.0 )
call DefineStartLocation( 6, -2944.0, -1664.0 )
call DefineStartLocation( 7, 11200.0, -12480.0 )
call DefineStartLocation( 8, -5632.0, -2560.0 )
// Player setup
call InitCustomPlayerSlots( )
call InitCustomTeams( )
call InitAllyPriorities( )
endfunction
Please tell me what went wrong here and how to fix it.
Script Errors
5994 Compile Errors
Line 136-141: Unregistered Native Function
Line 207: Expected a Name
Line 208-212: Expected Expression
(thats not one twentyth of it, the list goes on and on)
//===========================================================================
//
// Counter-Strike Source
//
// Warcraft III map script
// Generated by the Warcraft III World Editor
// Date: Sun Sep 25 21:26:48 2005
// Map Author: Unknown
//
//===========================================================================
//***************************************************************************
//*
//* Global Variables
//*
//***************************************************************************
globals
// Generated
trigger gg_trg_Untitled_Trigger_001 = null
endglobals
function InitGlobals takes nothing returns nothing
endfunction
//***************************************************************************
//*
//* Players
//*
//***************************************************************************
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_HUMAN )
call SetPlayerRaceSelectable( Player(0), false )
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_HUMAN )
call SetPlayerRaceSelectable( Player(1), false )
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_ORC )
call SetPlayerRaceSelectable( Player(2), false )
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_ORC )
call SetPlayerRaceSelectable( Player(3), false )
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_UNDEAD )
call SetPlayerRaceSelectable( Player(4), false )
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_UNDEAD )
call SetPlayerRaceSelectable( Player(5), false )
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_NIGHTELF )
call SetPlayerRaceSelectable( Player(6), false )
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), false )
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_RESCUABLE )
call SetPlayerAlliance( Player(8), Player(0), ALLIANCE_RESCUABLE, true )
call SetPlayerAlliance( Player(8), Player(1), ALLIANCE_RESCUABLE, true )
call SetPlayerAlliance( Player(8), Player(2), ALLIANCE_RESCUABLE, true )
call SetPlayerAlliance( Player(8), Player(3), ALLIANCE_RESCUABLE, true )
call SetPlayerAlliance( Player(8), Player(4), ALLIANCE_RESCUABLE, true )
call SetPlayerAlliance( Player(8), Player(5), ALLIANCE_RESCUABLE, true )
call SetPlayerAlliance( Player(8), Player(6), ALLIANCE_RESCUABLE, true )
call SetPlayerAlliance( Player(8), Player(7), ALLIANCE_RESCUABLE, true )
endfunction
function InitCustomTeams takes nothing returns nothing
// Force: TRIGSTR_014
call SetPlayerTeam( Player(0), 0 )
call SetPlayerTeam( Player(1), 0 )
call SetPlayerTeam( Player(2), 0 )
call SetPlayerTeam( Player(3), 0 )
// Allied
call SetPlayerAllianceStateAllyBJ( Player(0), Player(1), true )
call SetPlayerAllianceStateAllyBJ( Player(0), Player(2), true )
call SetPlayerAllianceStateAllyBJ( Player(0), Player(3), true )
call SetPlayerAllianceStateAllyBJ( Player(1), Player(0), true )
call SetPlayerAllianceStateAllyBJ( Player(1), Player(2), true )
call SetPlayerAllianceStateAllyBJ( Player(1), Player(3), true )
call SetPlayerAllianceStateAllyBJ( Player(2), Player(0), true )
call SetPlayerAllianceStateAllyBJ( Player(2), Player(1), true )
call SetPlayerAllianceStateAllyBJ( Player(2), Player(3), true )
call SetPlayerAllianceStateAllyBJ( Player(3), Player(0), true )
call SetPlayerAllianceStateAllyBJ( Player(3), Player(1), true )
call SetPlayerAllianceStateAllyBJ( Player(3), Player(2), true )
// Shared Vision
call SetPlayerAllianceStateVisionBJ( Player(0), Player(1), true )
call SetPlayerAllianceStateVisionBJ( Player(0), Player(2), true )
call SetPlayerAllianceStateVisionBJ( Player(0), Player(3), true )
call SetPlayerAllianceStateVisionBJ( Player(1), Player(0), true )
call SetPlayerAllianceStateVisionBJ( Player(1), Player(2), true )
call SetPlayerAllianceStateVisionBJ( Player(1), Player(3), true )
call SetPlayerAllianceStateVisionBJ( Player(2), Player(0), true )
call SetPlayerAllianceStateVisionBJ( Player(2), Player(1), true )
call SetPlayerAllianceStateVisionBJ( Player(2), Player(3), true )
call SetPlayerAllianceStateVisionBJ( Player(3), Player(0), true )
call SetPlayerAllianceStateVisionBJ( Player(3), Player(1), true )
call SetPlayerAllianceStateVisionBJ( Player(3), Player(2), true )
// Force: TRIGSTR_015
call SetPlayerTeam( Player(4), 1 )
call SetPlayerTeam( Player(5), 1 )
call SetPlayerTeam( Player(6), 1 )
call SetPlayerTeam( Player(7), 1 )
// Allied
call SetPlayerAllianceStateAllyBJ( Player(4), Player(5), true )
call SetPlayerAllianceStateAllyBJ( Player(4), Player(6), true )
call SetPlayerAllianceStateAllyBJ( Player(4), Player(7), true )
call SetPlayerAllianceStateAllyBJ( Player(5), Player(4), true )
call SetPlayerAllianceStateAllyBJ( Player(5), Player(6), true )
call SetPlayerAllianceStateAllyBJ( Player(5), Player(7), true )
call SetPlayerAllianceStateAllyBJ( Player(6), Player(4), true )
call SetPlayerAllianceStateAllyBJ( Player(6), Player(5), true )
call SetPlayerAllianceStateAllyBJ( Player(6), Player(7), true )
call SetPlayerAllianceStateAllyBJ( Player(7), Player(4), true )
call SetPlayerAllianceStateAllyBJ( Player(7), Player(5), true )
call SetPlayerAllianceStateAllyBJ( Player(7), Player(6), true )
// Shared Vision
call SetPlayerAllianceStateVisionBJ( Player(4), Player(5), true )
call SetPlayerAllianceStateVisionBJ( Player(4), Player(6), true )
call SetPlayerAllianceStateVisionBJ( Player(4), Player(7), true )
call SetPlayerAllianceStateVisionBJ( Player(5), Player(4), true )
call SetPlayerAllianceStateVisionBJ( Player(5), Player(6), true )
call SetPlayerAllianceStateVisionBJ( Player(5), Player(7), true )
call SetPlayerAllianceStateVisionBJ( Player(6), Player(4), true )
call SetPlayerAllianceStateVisionBJ( Player(6), Player(5), true )
call SetPlayerAllianceStateVisionBJ( Player(6), Player(7), true )
call SetPlayerAllianceStateVisionBJ( Player(7), Player(4), true )
call SetPlayerAllianceStateVisionBJ( Player(7), Player(5), true )
call SetPlayerAllianceStateVisionBJ( Player(7), Player(6), true )
// Force: TRIGSTR_016
call SetPlayerTeam( Player(8), 2 )
endfunction
function InitAllyPriorities takes nothing returns nothing
call SetStartLocPrioCount( 0, 5 )
call SetStartLocPrio( 0, 0, 1, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 0, 1, 2, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 0, 2, 4, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 0, 3, 5, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 0, 4, 6, MAP_LOC_PRIO_LOW )
call SetStartLocPrioCount( 1, 1 )
call SetStartLocPrio( 1, 0, 7, MAP_LOC_PRIO_HIGH )
call SetStartLocPrioCount( 2, 2 )
call SetStartLocPrio( 2, 0, 3, MAP_LOC_PRIO_LOW )
call SetStartLocPrio( 2, 1, 5, MAP_LOC_PRIO_HIGH )
call SetStartLocPrioCount( 3, 1 )
call SetStartLocPrio( 3, 0, 2, MAP_LOC_PRIO_HIGH )
call SetStartLocPrioCount( 4, 1 )
call SetStartLocPrio( 4, 0, 6, MAP_LOC_PRIO_HIGH )
call SetStartLocPrioCount( 5, 3 )
call SetStartLocPrio( 5, 0, 2, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 5, 1, 4, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 5, 2, 6, MAP_LOC_PRIO_HIGH )
call SetStartLocPrioCount( 6, 1 )
call SetStartLocPrio( 6, 0, 4, MAP_LOC_PRIO_HIGH )
call SetStartLocPrioCount( 7, 1 )
call SetStartLocPrio( 7, 0, 1, MAP_LOC_PRIO_HIGH )
endfunction
//***************************************************************************
//*
//* Main Initialization
//*
//***************************************************************************
//===========================================================================
function main takes nothing returns nothing
call SetCameraBounds( -15616.0 + GetCameraMargin(CAMERA_MARGIN_LEFT), -15872.0 + GetCameraMargin(CAMERA_MARGIN_BOTTOM), 15616.0 - GetCameraMargin(CAMERA_MARGIN_RIGHT), 15360.0 - GetCameraMargin(CAMERA_MARGIN_TOP), -15616.0 + GetCameraMargin(CAMERA_MARGIN_LEFT), 15360.0 - GetCameraMargin(CAMERA_MARGIN_TOP), 15616.0 - GetCameraMargin(CAMERA_MARGIN_RIGHT), -15872.0 + GetCameraMargin(CAMERA_MARGIN_BOTTOM) )
call SetDayNightModels( "Environment\\DNC\\DNCLordaeron\\DNCLordaeronTerrain\\DNCLordaeronTerrain.mdl", "Environment\\DNC\\DNCLordaeron\\DNCLordaeronUnit\\DNCLordaeronUnit.mdl" )
call NewSoundEnvironment( "Default" )
call SetAmbientDaySound( "CityScapeDay" )
call SetAmbientNightSound( "CityScapeNight" )
call SetMapMusic( "Music", true, 0 )
call InitBlizzard( )
call InitGlobals( )
endfunction
//***************************************************************************
//*
//* Map Configuration
//*
//***************************************************************************
function config takes nothing returns nothing
call SetMapName( "TRIGSTR_001" )
call SetMapDescription( "TRIGSTR_003" )
call SetPlayers( 9 )
call SetTeams( 9 )
call SetGamePlacement( MAP_PLACEMENT_TEAMS_TOGETHER )
call DefineStartLocation( 0, 13760.0, 11456.0 )
call DefineStartLocation( 1, 12800.0, -4288.0 )
call DefineStartLocation( 2, -5696.0, 10944.0 )
call DefineStartLocation( 3, -13760.0, 14208.0 )
call DefineStartLocation( 4, 640.0, -512.0 )
call DefineStartLocation( 5, -2240.0, 4928.0 )
call DefineStartLocation( 6, -2944.0, -1664.0 )
call DefineStartLocation( 7, 11200.0, -12480.0 )
call DefineStartLocation( 8, -5632.0, -2560.0 )
// Player setup
call InitCustomPlayerSlots( )
call InitCustomTeams( )
call InitAllyPriorities( )
endfunction
Please tell me what went wrong here and how to fix it.


