- Joined
- Jun 22, 2012
- Messages
- 28
My Warcraft 3 Word Editer Worked ytd with all the triggers and the next day (No body touched my warcraft 3 editer or modified the file it self ) It says Script Errors
//===========================================================================
//
// War of Heroes vBeta 0.1
//
// Warcraft III map script
// Generated by the Warcraft III World Editor
// Date: Sat Mar 09 14:44:03 2013
// Map Author: MonsterNinja
//
//===========================================================================
//***************************************************************************
//*
//* Global Variables
//*
//***************************************************************************
globals
// Generated
rect gg_rct_Region_000 = null
rect gg_rct_Region_001 = null
rect gg_rct_Region_002 = null
rect gg_rct_Region_003 = null
rect gg_rct_Region_004 = null
rect gg_rct_Region_005 = null
rect gg_rct_Region_006 = null
rect gg_rct_Region_007 = null
rect gg_rct_Region_008 = null
rect gg_rct_Region_009 = null
trigger gg_trg_Creepss_spawn = null
trigger gg_trg_Creeps_Spawn = null
trigger gg_trg_Netural_creeps = null
endglobals
function InitGlobals takes nothing returns nothing
endfunction
//***************************************************************************
//*
//* Unit Creation
//*
//***************************************************************************
//===========================================================================
function CreateBuildingsForPlayer0 takes nothing returns nothing
local player p = Player(0)
local unit u
local integer unitID
local trigger t
local real life
set u = CreateUnit( p, 'h000', -8000.0, 8704.0, 270.000 )
set u = CreateUnit( p, 'e000', -5984.0, -8352.0, 270.000 )
set u = CreateUnit( p, 'e000', -6112.0, -7008.0, 270.000 )
set u = CreateUnit( p, 'e000', -8608.0, -6624.0, 270.000 )
endfunction
//===========================================================================
function CreateBuildingsForPlayer1 takes nothing returns nothing
local player p = Player(1)
local unit u
local integer unitID
local trigger t
local real life
set u = CreateUnit( p, 'h000', -7808.0, 8704.0, 270.000 )
endfunction
//===========================================================================
function CreateBuildingsForPlayer2 takes nothing returns nothing
local player p = Player(2)
local unit u
local integer unitID
local trigger t
local real life
set u = CreateUnit( p, 'h000', -8192.0, 8512.0, 270.000 )
endfunction
//===========================================================================
function CreateBuildingsForPlayer3 takes nothing returns nothing
local player p = Player(3)
local unit u
local integer unitID
local trigger t
local real life
set u = CreateUnit( p, 'h000', -8192.0, 8320.0, 270.000 )
endfunction
//===========================================================================
function CreateBuildingsForPlayer4 takes nothing returns nothing
local player p = Player(4)
local unit u
local integer unitID
local trigger t
local real life
set u = CreateUnit( p, 'h000', -7616.0, 8576.0, 270.000 )
endfunction
//===========================================================================
function CreateBuildingsForPlayer5 takes nothing returns nothing
local player p = Player(5)
local unit u
local integer unitID
local trigger t
local real life
set u = CreateUnit( p, 'h000', -7616.0, 8384.0, 270.000 )
endfunction
//===========================================================================
function CreateBuildingsForPlayer6 takes nothing returns nothing
local player p = Player(6)
local unit u
local integer unitID
local trigger t
local real life
set u = CreateUnit( p, 'h000', -7616.0, 8192.0, 270.000 )
endfunction
//===========================================================================
function CreateBuildingsForPlayer7 takes nothing returns nothing
local player p = Player(7)
local unit u
local integer unitID
local trigger t
local real life
set u = CreateUnit( p, 'h000', -7808.0, 8192.0, 270.000 )
endfunction
//===========================================================================
function CreateBuildingsForPlayer8 takes nothing returns nothing
local player p = Player(8)
local unit u
local integer unitID
local trigger t
local real life
set u = CreateUnit( p, 'h000', -8000.0, 8192.0, 270.000 )
endfunction
//===========================================================================
function CreateBuildingsForPlayer9 takes nothing returns nothing
local player p = Player(9)
local unit u
local integer unitID
local trigger t
local real life
set u = CreateUnit( p, 'h000', -8192.0, 8192.0, 270.000 )
endfunction
//===========================================================================
function CreateBuildingsForPlayer10 takes nothing returns nothing
local player p = Player(10)
local unit u
local integer unitID
local trigger t
local real life
set u = CreateUnit( p, 'e000', 6624.0, 8224.0, 270.000 )
set u = CreateUnit( p, 'e000', 6752.0, 6752.0, 270.000 )
set u = CreateUnit( p, 'e000', 8160.0, 6240.0, 270.000 )
endfunction
//===========================================================================
function CreateBuildingsForPlayer11 takes nothing returns nothing
local player p = Player(11)
local unit u
local integer unitID
local trigger t
local real life
set u = CreateUnit( p, 'h000', -8192.0, 8704.0, 270.000 )
endfunction
//===========================================================================
function CreateNeutralPassiveBuildings takes nothing returns nothing
local player p = Player(PLAYER_NEUTRAL_PASSIVE)
local unit u
local integer unitID
local trigger t
local real life
set u = CreateUnit( p, 'n000', -8576.0, 8704.0, 270.000 )
call SetUnitColor( u, ConvertPlayerColor(1) )
set u = CreateUnit( p, 'n00A', -8704.0, -9024.0, 270.000 )
set u = CreateUnit( p, 'n00A', 8832.0, 8640.0, 270.000 )
endfunction
//===========================================================================
function CreatePlayerBuildings takes nothing returns nothing
call CreateBuildingsForPlayer0( )
call CreateBuildingsForPlayer1( )
call CreateBuildingsForPlayer2( )
call CreateBuildingsForPlayer3( )
call CreateBuildingsForPlayer4( )
call CreateBuildingsForPlayer5( )
call CreateBuildingsForPlayer6( )
call CreateBuildingsForPlayer7( )
call CreateBuildingsForPlayer8( )
call CreateBuildingsForPlayer9( )
call CreateBuildingsForPlayer10( )
call CreateBuildingsForPlayer11( )
endfunction
//===========================================================================
function CreatePlayerUnits takes nothing returns nothing
endfunction
//===========================================================================
function CreateAllUnits takes nothing returns nothing
call CreateNeutralPassiveBuildings( )
call CreatePlayerBuildings( )
call CreatePlayerUnits( )
endfunction
//***************************************************************************
//*
//* Regions
//*
//***************************************************************************
function CreateRegions takes nothing returns nothing
local weathereffect we
set gg_rct_Region_000 = Rect( -928.0, -6176.0, -160.0, -5312.0 )
set gg_rct_Region_001 = Rect( -2336.0, -6592.0, -1568.0, -5792.0 )
set gg_rct_Region_002 = Rect( 5920.0, -7104.0, 7520.0, -6272.0 )
set gg_rct_Region_003 = Rect( 6592.0, 2464.0, 7328.0, 3136.0 )
set gg_rct_Region_004 = Rect( -6208.0, -7040.0, -5600.0, -6496.0 )
set gg_rct_Region_005 = Rect( -5856.0, -8608.0, -5376.0, -7904.0 )
set gg_rct_Region_006 = Rect( -8992.0, -6816.0, -8192.0, -6336.0 )
set gg_rct_Region_007 = Rect( 5760.0, 7904.0, 6432.0, 8512.0 )
set gg_rct_Region_008 = Rect( 6304.0, 6432.0, 6816.0, 6880.0 )
set gg_rct_Region_009 = Rect( 7840.0, 5920.0, 8512.0, 6304.0 )
endfunction
//***************************************************************************
//*
//* Players
//*
//***************************************************************************
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_RANDOM )
call SetPlayerRaceSelectable( Player(0), true )
call SetPlayerController( Player(0), MAP_CONTROL_COMPUTER )
// Player 1
call SetPlayerStartLocation( Player(1), 1 )
call ForcePlayerStartLocation( 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 )
endfunction
function InitCustomTeams takes nothing returns nothing
// Force: TRIGSTR_006
call SetPlayerTeam( Player(0), 0 )
call SetPlayerTeam( Player(1), 0 )
endfunction
//***************************************************************************
//*
//* Main Initialization
//*
//***************************************************************************
//===========================================================================
function main takes nothing returns nothing
call SetCameraBounds( -9472.0 + GetCameraMargin(CAMERA_MARGIN_LEFT), -9728.0 + GetCameraMargin(CAMERA_MARGIN_BOTTOM), 9472.0 - GetCameraMargin(CAMERA_MARGIN_RIGHT), 9216.0 - GetCameraMargin(CAMERA_MARGIN_TOP), -9472.0 + GetCameraMargin(CAMERA_MARGIN_LEFT), 9216.0 - GetCameraMargin(CAMERA_MARGIN_TOP), 9472.0 - GetCameraMargin(CAMERA_MARGIN_RIGHT), -9728.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 CreateRegions( )
call CreateAllUnits( )
call InitBlizzard( )
call InitGlobals( )
endfunction
//***************************************************************************
//*
//* Map Configuration
//*
//***************************************************************************
function config takes nothing returns nothing
call SetMapName( "TRIGSTR_001" )
call SetMapDescription( "TRIGSTR_003" )
call SetPlayers( 2 )
call SetTeams( 2 )
call SetGamePlacement( MAP_PLACEMENT_USE_MAP_SETTINGS )
call DefineStartLocation( 0, -8576.0, 8640.0 )
call DefineStartLocation( 1, -7936.0, 8576.0 )
// Player setup
call InitCustomPlayerSlots( )
call SetPlayerSlotAvailable( Player(0), MAP_CONTROL_COMPUTER )
call SetPlayerSlotAvailable( Player(1), MAP_CONTROL_USER )
call InitGenericPlayerSlots( )
endfunction
What bull shit is this i use a crack Warcraft 3 but it still works for warcraft 3 wordl editer i been making maps for years and now it goes crappy on me could any body tell me how to fix this bull shit i am so piseed right now i cant even make my new map!!!
//===========================================================================
//
// War of Heroes vBeta 0.1
//
// Warcraft III map script
// Generated by the Warcraft III World Editor
// Date: Sat Mar 09 14:44:03 2013
// Map Author: MonsterNinja
//
//===========================================================================
//***************************************************************************
//*
//* Global Variables
//*
//***************************************************************************
globals
// Generated
rect gg_rct_Region_000 = null
rect gg_rct_Region_001 = null
rect gg_rct_Region_002 = null
rect gg_rct_Region_003 = null
rect gg_rct_Region_004 = null
rect gg_rct_Region_005 = null
rect gg_rct_Region_006 = null
rect gg_rct_Region_007 = null
rect gg_rct_Region_008 = null
rect gg_rct_Region_009 = null
trigger gg_trg_Creepss_spawn = null
trigger gg_trg_Creeps_Spawn = null
trigger gg_trg_Netural_creeps = null
endglobals
function InitGlobals takes nothing returns nothing
endfunction
//***************************************************************************
//*
//* Unit Creation
//*
//***************************************************************************
//===========================================================================
function CreateBuildingsForPlayer0 takes nothing returns nothing
local player p = Player(0)
local unit u
local integer unitID
local trigger t
local real life
set u = CreateUnit( p, 'h000', -8000.0, 8704.0, 270.000 )
set u = CreateUnit( p, 'e000', -5984.0, -8352.0, 270.000 )
set u = CreateUnit( p, 'e000', -6112.0, -7008.0, 270.000 )
set u = CreateUnit( p, 'e000', -8608.0, -6624.0, 270.000 )
endfunction
//===========================================================================
function CreateBuildingsForPlayer1 takes nothing returns nothing
local player p = Player(1)
local unit u
local integer unitID
local trigger t
local real life
set u = CreateUnit( p, 'h000', -7808.0, 8704.0, 270.000 )
endfunction
//===========================================================================
function CreateBuildingsForPlayer2 takes nothing returns nothing
local player p = Player(2)
local unit u
local integer unitID
local trigger t
local real life
set u = CreateUnit( p, 'h000', -8192.0, 8512.0, 270.000 )
endfunction
//===========================================================================
function CreateBuildingsForPlayer3 takes nothing returns nothing
local player p = Player(3)
local unit u
local integer unitID
local trigger t
local real life
set u = CreateUnit( p, 'h000', -8192.0, 8320.0, 270.000 )
endfunction
//===========================================================================
function CreateBuildingsForPlayer4 takes nothing returns nothing
local player p = Player(4)
local unit u
local integer unitID
local trigger t
local real life
set u = CreateUnit( p, 'h000', -7616.0, 8576.0, 270.000 )
endfunction
//===========================================================================
function CreateBuildingsForPlayer5 takes nothing returns nothing
local player p = Player(5)
local unit u
local integer unitID
local trigger t
local real life
set u = CreateUnit( p, 'h000', -7616.0, 8384.0, 270.000 )
endfunction
//===========================================================================
function CreateBuildingsForPlayer6 takes nothing returns nothing
local player p = Player(6)
local unit u
local integer unitID
local trigger t
local real life
set u = CreateUnit( p, 'h000', -7616.0, 8192.0, 270.000 )
endfunction
//===========================================================================
function CreateBuildingsForPlayer7 takes nothing returns nothing
local player p = Player(7)
local unit u
local integer unitID
local trigger t
local real life
set u = CreateUnit( p, 'h000', -7808.0, 8192.0, 270.000 )
endfunction
//===========================================================================
function CreateBuildingsForPlayer8 takes nothing returns nothing
local player p = Player(8)
local unit u
local integer unitID
local trigger t
local real life
set u = CreateUnit( p, 'h000', -8000.0, 8192.0, 270.000 )
endfunction
//===========================================================================
function CreateBuildingsForPlayer9 takes nothing returns nothing
local player p = Player(9)
local unit u
local integer unitID
local trigger t
local real life
set u = CreateUnit( p, 'h000', -8192.0, 8192.0, 270.000 )
endfunction
//===========================================================================
function CreateBuildingsForPlayer10 takes nothing returns nothing
local player p = Player(10)
local unit u
local integer unitID
local trigger t
local real life
set u = CreateUnit( p, 'e000', 6624.0, 8224.0, 270.000 )
set u = CreateUnit( p, 'e000', 6752.0, 6752.0, 270.000 )
set u = CreateUnit( p, 'e000', 8160.0, 6240.0, 270.000 )
endfunction
//===========================================================================
function CreateBuildingsForPlayer11 takes nothing returns nothing
local player p = Player(11)
local unit u
local integer unitID
local trigger t
local real life
set u = CreateUnit( p, 'h000', -8192.0, 8704.0, 270.000 )
endfunction
//===========================================================================
function CreateNeutralPassiveBuildings takes nothing returns nothing
local player p = Player(PLAYER_NEUTRAL_PASSIVE)
local unit u
local integer unitID
local trigger t
local real life
set u = CreateUnit( p, 'n000', -8576.0, 8704.0, 270.000 )
call SetUnitColor( u, ConvertPlayerColor(1) )
set u = CreateUnit( p, 'n00A', -8704.0, -9024.0, 270.000 )
set u = CreateUnit( p, 'n00A', 8832.0, 8640.0, 270.000 )
endfunction
//===========================================================================
function CreatePlayerBuildings takes nothing returns nothing
call CreateBuildingsForPlayer0( )
call CreateBuildingsForPlayer1( )
call CreateBuildingsForPlayer2( )
call CreateBuildingsForPlayer3( )
call CreateBuildingsForPlayer4( )
call CreateBuildingsForPlayer5( )
call CreateBuildingsForPlayer6( )
call CreateBuildingsForPlayer7( )
call CreateBuildingsForPlayer8( )
call CreateBuildingsForPlayer9( )
call CreateBuildingsForPlayer10( )
call CreateBuildingsForPlayer11( )
endfunction
//===========================================================================
function CreatePlayerUnits takes nothing returns nothing
endfunction
//===========================================================================
function CreateAllUnits takes nothing returns nothing
call CreateNeutralPassiveBuildings( )
call CreatePlayerBuildings( )
call CreatePlayerUnits( )
endfunction
//***************************************************************************
//*
//* Regions
//*
//***************************************************************************
function CreateRegions takes nothing returns nothing
local weathereffect we
set gg_rct_Region_000 = Rect( -928.0, -6176.0, -160.0, -5312.0 )
set gg_rct_Region_001 = Rect( -2336.0, -6592.0, -1568.0, -5792.0 )
set gg_rct_Region_002 = Rect( 5920.0, -7104.0, 7520.0, -6272.0 )
set gg_rct_Region_003 = Rect( 6592.0, 2464.0, 7328.0, 3136.0 )
set gg_rct_Region_004 = Rect( -6208.0, -7040.0, -5600.0, -6496.0 )
set gg_rct_Region_005 = Rect( -5856.0, -8608.0, -5376.0, -7904.0 )
set gg_rct_Region_006 = Rect( -8992.0, -6816.0, -8192.0, -6336.0 )
set gg_rct_Region_007 = Rect( 5760.0, 7904.0, 6432.0, 8512.0 )
set gg_rct_Region_008 = Rect( 6304.0, 6432.0, 6816.0, 6880.0 )
set gg_rct_Region_009 = Rect( 7840.0, 5920.0, 8512.0, 6304.0 )
endfunction
//***************************************************************************
//*
//* Players
//*
//***************************************************************************
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_RANDOM )
call SetPlayerRaceSelectable( Player(0), true )
call SetPlayerController( Player(0), MAP_CONTROL_COMPUTER )
// Player 1
call SetPlayerStartLocation( Player(1), 1 )
call ForcePlayerStartLocation( 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 )
endfunction
function InitCustomTeams takes nothing returns nothing
// Force: TRIGSTR_006
call SetPlayerTeam( Player(0), 0 )
call SetPlayerTeam( Player(1), 0 )
endfunction
//***************************************************************************
//*
//* Main Initialization
//*
//***************************************************************************
//===========================================================================
function main takes nothing returns nothing
call SetCameraBounds( -9472.0 + GetCameraMargin(CAMERA_MARGIN_LEFT), -9728.0 + GetCameraMargin(CAMERA_MARGIN_BOTTOM), 9472.0 - GetCameraMargin(CAMERA_MARGIN_RIGHT), 9216.0 - GetCameraMargin(CAMERA_MARGIN_TOP), -9472.0 + GetCameraMargin(CAMERA_MARGIN_LEFT), 9216.0 - GetCameraMargin(CAMERA_MARGIN_TOP), 9472.0 - GetCameraMargin(CAMERA_MARGIN_RIGHT), -9728.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 CreateRegions( )
call CreateAllUnits( )
call InitBlizzard( )
call InitGlobals( )
endfunction
//***************************************************************************
//*
//* Map Configuration
//*
//***************************************************************************
function config takes nothing returns nothing
call SetMapName( "TRIGSTR_001" )
call SetMapDescription( "TRIGSTR_003" )
call SetPlayers( 2 )
call SetTeams( 2 )
call SetGamePlacement( MAP_PLACEMENT_USE_MAP_SETTINGS )
call DefineStartLocation( 0, -8576.0, 8640.0 )
call DefineStartLocation( 1, -7936.0, 8576.0 )
// Player setup
call InitCustomPlayerSlots( )
call SetPlayerSlotAvailable( Player(0), MAP_CONTROL_COMPUTER )
call SetPlayerSlotAvailable( Player(1), MAP_CONTROL_USER )
call InitGenericPlayerSlots( )
endfunction
What bull shit is this i use a crack Warcraft 3 but it still works for warcraft 3 wordl editer i been making maps for years and now it goes crappy on me could any body tell me how to fix this bull shit i am so piseed right now i cant even make my new map!!!