Okay. let me start off by saying, no matter what i do, even sending a message to the player, it gets an error. So please, i need alot of help. I even follow tutorials, and they don't work. I have no idea why :/
Here are my codes for the waves
That is for wave 1, and it just keeps going, but elapsed game time goes from 10, to 20, 30 etc etc. Then the unit create, just turns from wave one, to wave two, to wave three (they are all custom units) etc etc.
that's for waves. their is 10, then i copied and pasted the folder and changed the center of start2 with center of start1 because i want them in two places.
Now here is the moving
and this keeps going for 2-4 places.
next we have the map init, which also has all errors
Player_Red_Life is a variable also btw.
now this is for losing life
and for the last thing of moving
Now let me end with saying, what i said at the beginning. NO MATTER what i do, it always has errors, i think their was 4117 compiled errors in the codes above, (including the other moving and waves)
here is one error quote ONE.
//===========================================================================
//
// Just another Warcraft III map
//
// Warcraft III map script
// Generated by the Warcraft III World Editor
// Date: Sun May 16 11:35:20 2010
// Map Author: Unknown
//
//===========================================================================
//***************************************************************************
//*
//* Global Variables
//*
//***************************************************************************
globals
// User-defined
integer udg_Player_Red_Life = 0
// Generated
rect gg_rct_start1 = null
rect gg_rct_start2 = null
rect gg_rct_placeone2 = null
rect gg_rct_placeone = null
rect gg_rct_placetwo = null
rect gg_rct_end = null
trigger gg_trg_unit_move = null
trigger gg_trg_unit_move_Copy = null
trigger gg_trg_unit_move_Copy_Copy = null
trigger gg_trg_unit_move_Copy_Copy_Copy = null
trigger gg_trg_Untitled_Trigger_001 = null
trigger gg_trg_plr_lose_life = null
trigger gg_trg_unit_spawn_Copy = null
trigger gg_trg_wave_2 = null
trigger gg_trg_wave_3 = null
trigger gg_trg_wave_4 = null
trigger gg_trg_wave_5 = null
trigger gg_trg_wave_6 = null
trigger gg_trg_wave_7 = null
trigger gg_trg_wave_8 = null
trigger gg_trg_wave_9 = null
trigger gg_trg_boss_1 = null
trigger gg_trg_unit_spawn_Copy_Copy = null
trigger gg_trg_wave_2_Copy = null
trigger gg_trg_wave_3_Copy = null
trigger gg_trg_wave_4_Copy = null
trigger gg_trg_wave_5_Copy = null
trigger gg_trg_wave_6_Copy = null
trigger gg_trg_wave_7_Copy = null
trigger gg_trg_wave_8_Copy = null
trigger gg_trg_wave_9_Copy = null
trigger gg_trg_boss_1_Copy = null
endglobals
function InitGlobals takes nothing returns nothing
set udg_Player_Red_Life = 0
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, 'h001', -1920.0, 640.0, 270.000 )
set u = CreateUnit( p, 'h001', -256.0, 640.0, 270.000 )
endfunction
//===========================================================================
function CreateUnitsForPlayer0 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, 'hpea', -1823.6, -1309.1, 260.593 )
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, 'h001', 1920.0, 640.0, 270.000 )
set u = CreateUnit( p, 'h001', 256.0, 640.0, 270.000 )
endfunction
//===========================================================================
function CreateUnitsForPlayer1 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, 'hpea', 1863.4, -1464.0, 23.468 )
endfunction
//===========================================================================
function CreatePlayerBuildings takes nothing returns nothing
call CreateBuildingsForPlayer0( )
call CreateBuildingsForPlayer1( )
endfunction
//===========================================================================
function CreatePlayerUnits takes nothing returns nothing
call CreateUnitsForPlayer0( )
call CreateUnitsForPlayer1( )
endfunction
//===========================================================================
function CreateAllUnits takes nothing returns nothing
call CreatePlayerBuildings( )
call CreatePlayerUnits( )
endfunction
//***************************************************************************
//*
//* Regions
//*
//***************************************************************************
function CreateRegions takes nothing returns nothing
local weathereffect we
set gg_rct_start1 = Rect( -3296.0, -3552.0, -1024.0, -3168.0 )
set gg_rct_start2 = Rect( 992.0, -3584.0, 3264.0, -3200.0 )
set gg_rct_placeone2 = Rect( 2048.0, 768.0, 2304.0, 1024.0 )
set gg_rct_placeone = Rect( -2336.0, 768.0, -2048.0, 1024.0 )
set gg_rct_placetwo = Rect( -160.0, 736.0, 160.0, 1024.0 )
set gg_rct_end = Rect( -128.0, -1568.0, 128.0, -1312.0 )
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), 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_HUMAN )
call SetPlayerRaceSelectable( Player(1), true )
call SetPlayerController( Player(1), MAP_CONTROL_USER )
endfunction
function InitCustomTeams takes nothing returns nothing
// Force: TRIGSTR_004
call SetPlayerTeam( Player(0), 0 )
call SetPlayerTeam( Player(1), 0 )
// Allied
call SetPlayerAllianceStateAllyBJ( Player(0), Player(1), true )
call SetPlayerAllianceStateAllyBJ( Player(1), Player(0), true )
endfunction
function InitAllyPriorities takes nothing returns nothing
call SetStartLocPrioCount( 0, 1 )
call SetStartLocPrio( 0, 0, 1, MAP_LOC_PRIO_HIGH )
call SetStartLocPrioCount( 1, 1 )
call SetStartLocPrio( 1, 0, 0, MAP_LOC_PRIO_HIGH )
endfunction
//***************************************************************************
//*
//* Main Initialization
//*
//***************************************************************************
//===========================================================================
function main takes nothing returns nothing
call SetCameraBounds( -3328.0 + GetCameraMargin(CAMERA_MARGIN_LEFT), -3584.0 + GetCameraMargin(CAMERA_MARGIN_BOTTOM), 3328.0 - GetCameraMargin(CAMERA_MARGIN_RIGHT), 3072.0 - GetCameraMargin(CAMERA_MARGIN_TOP), -3328.0 + GetCameraMargin(CAMERA_MARGIN_LEFT), 3072.0 - GetCameraMargin(CAMERA_MARGIN_TOP), 3328.0 - GetCameraMargin(CAMERA_MARGIN_RIGHT), -3584.0 + GetCameraMargin(CAMERA_MARGIN_BOTTOM) )
call SetDayNightModels( "Environment\\DNC\\DNCLordaeron\\DNCLordaeronTerrain\\DNCLordaeronTerrain.mdl", "Environment\\DNC\\DNCLordaeron\\DNCLordaeronUnit\\DNCLordaeronUnit.mdl" )
call NewSoundEnvironment( "Default" )
call SetAmbientDaySound( "LordaeronSummerDay" )
call SetAmbientNightSound( "LordaeronSummerNight" )
call SetMapMusic( "Music", true, 0 )
call CreateRegions( )
call CreateAllUnits( )
call InitBlizzard( )
call InitGlobals( )
endfunction
//***************************************************************************
//*
//* Map Configuration
//*
//***************************************************************************
function config takes nothing returns nothing
call SetMapName( "Just another Warcraft III map" )
call SetMapDescription( "Nondescript" )
call SetPlayers( 2 )
call SetTeams( 2 )
call SetGamePlacement( MAP_PLACEMENT_TEAMS_TOGETHER )
call DefineStartLocation( 0, -1792.0, -1408.0 )
call DefineStartLocation( 1, 1856.0, -1536.0 )
// Player setup
call InitCustomPlayerSlots( )
call InitCustomTeams( )
call InitAllyPriorities( )
endfunction
Here are my codes for the waves
Trigger:
- Time - Elapsed game time is 10.00 seconds
Trigger:
- Unit - Create 5 Wave One for Player 12 (Brown) at (Center of start2 <gen>) facing Default building facing degrees
That is for wave 1, and it just keeps going, but elapsed game time goes from 10, to 20, 30 etc etc. Then the unit create, just turns from wave one, to wave two, to wave three (they are all custom units) etc etc.
that's for waves. their is 10, then i copied and pasted the folder and changed the center of start2 with center of start1 because i want them in two places.
Now here is the moving
Trigger:
- Unit - A unit enters start1 <gen>
Trigger:
- (Owner of (Entering unit)) Equal to Player 12 (Brown)
Trigger:
- Unit - Order (Entering unit) to Move To (Center of placeone <gen>)
and this keeps going for 2-4 places.
next we have the map init, which also has all errors
Trigger:
- Map initialization
Trigger:
- Player - Turn Gives bounty On for Player 12 (Brown)
Trigger:
- Set Player_Red_Life = 25
Player_Red_Life is a variable also btw.
now this is for losing life
Trigger:
- Unit - A unit enters end <gen>
Trigger:
- (Owner of (Entering unit)) Equal to Player 12 (Brown)
Trigger:
- Set Player_Red_Life = (Player_Red_Life - 1)
Trigger:
- Game - Display to Player 1 (Red), at offset (0.00, 0.00) the text: (You just lost a lfie and have + ((String(Player_Red_Life)) + lives left.))
Trigger:
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Player_Red_Life Equal to 0
- Then - Actions
- Game - Defeat Player 1 (Red) with the message: You fail hard.
- Else - Actions
- Do nothing
- If - Conditions
and for the last thing of moving
Trigger:
- Unit - A unit enters end <gen>
Trigger:
- (Owner of (Entering unit)) Equal to Player 12 (Brown)
Trigger:
- Unit - Kill (Entering unit)
Now let me end with saying, what i said at the beginning. NO MATTER what i do, it always has errors, i think their was 4117 compiled errors in the codes above, (including the other moving and waves)
here is one error quote ONE.
//===========================================================================
//
// Just another Warcraft III map
//
// Warcraft III map script
// Generated by the Warcraft III World Editor
// Date: Sun May 16 11:35:20 2010
// Map Author: Unknown
//
//===========================================================================
//***************************************************************************
//*
//* Global Variables
//*
//***************************************************************************
globals
// User-defined
integer udg_Player_Red_Life = 0
// Generated
rect gg_rct_start1 = null
rect gg_rct_start2 = null
rect gg_rct_placeone2 = null
rect gg_rct_placeone = null
rect gg_rct_placetwo = null
rect gg_rct_end = null
trigger gg_trg_unit_move = null
trigger gg_trg_unit_move_Copy = null
trigger gg_trg_unit_move_Copy_Copy = null
trigger gg_trg_unit_move_Copy_Copy_Copy = null
trigger gg_trg_Untitled_Trigger_001 = null
trigger gg_trg_plr_lose_life = null
trigger gg_trg_unit_spawn_Copy = null
trigger gg_trg_wave_2 = null
trigger gg_trg_wave_3 = null
trigger gg_trg_wave_4 = null
trigger gg_trg_wave_5 = null
trigger gg_trg_wave_6 = null
trigger gg_trg_wave_7 = null
trigger gg_trg_wave_8 = null
trigger gg_trg_wave_9 = null
trigger gg_trg_boss_1 = null
trigger gg_trg_unit_spawn_Copy_Copy = null
trigger gg_trg_wave_2_Copy = null
trigger gg_trg_wave_3_Copy = null
trigger gg_trg_wave_4_Copy = null
trigger gg_trg_wave_5_Copy = null
trigger gg_trg_wave_6_Copy = null
trigger gg_trg_wave_7_Copy = null
trigger gg_trg_wave_8_Copy = null
trigger gg_trg_wave_9_Copy = null
trigger gg_trg_boss_1_Copy = null
endglobals
function InitGlobals takes nothing returns nothing
set udg_Player_Red_Life = 0
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, 'h001', -1920.0, 640.0, 270.000 )
set u = CreateUnit( p, 'h001', -256.0, 640.0, 270.000 )
endfunction
//===========================================================================
function CreateUnitsForPlayer0 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, 'hpea', -1823.6, -1309.1, 260.593 )
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, 'h001', 1920.0, 640.0, 270.000 )
set u = CreateUnit( p, 'h001', 256.0, 640.0, 270.000 )
endfunction
//===========================================================================
function CreateUnitsForPlayer1 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, 'hpea', 1863.4, -1464.0, 23.468 )
endfunction
//===========================================================================
function CreatePlayerBuildings takes nothing returns nothing
call CreateBuildingsForPlayer0( )
call CreateBuildingsForPlayer1( )
endfunction
//===========================================================================
function CreatePlayerUnits takes nothing returns nothing
call CreateUnitsForPlayer0( )
call CreateUnitsForPlayer1( )
endfunction
//===========================================================================
function CreateAllUnits takes nothing returns nothing
call CreatePlayerBuildings( )
call CreatePlayerUnits( )
endfunction
//***************************************************************************
//*
//* Regions
//*
//***************************************************************************
function CreateRegions takes nothing returns nothing
local weathereffect we
set gg_rct_start1 = Rect( -3296.0, -3552.0, -1024.0, -3168.0 )
set gg_rct_start2 = Rect( 992.0, -3584.0, 3264.0, -3200.0 )
set gg_rct_placeone2 = Rect( 2048.0, 768.0, 2304.0, 1024.0 )
set gg_rct_placeone = Rect( -2336.0, 768.0, -2048.0, 1024.0 )
set gg_rct_placetwo = Rect( -160.0, 736.0, 160.0, 1024.0 )
set gg_rct_end = Rect( -128.0, -1568.0, 128.0, -1312.0 )
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), 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_HUMAN )
call SetPlayerRaceSelectable( Player(1), true )
call SetPlayerController( Player(1), MAP_CONTROL_USER )
endfunction
function InitCustomTeams takes nothing returns nothing
// Force: TRIGSTR_004
call SetPlayerTeam( Player(0), 0 )
call SetPlayerTeam( Player(1), 0 )
// Allied
call SetPlayerAllianceStateAllyBJ( Player(0), Player(1), true )
call SetPlayerAllianceStateAllyBJ( Player(1), Player(0), true )
endfunction
function InitAllyPriorities takes nothing returns nothing
call SetStartLocPrioCount( 0, 1 )
call SetStartLocPrio( 0, 0, 1, MAP_LOC_PRIO_HIGH )
call SetStartLocPrioCount( 1, 1 )
call SetStartLocPrio( 1, 0, 0, MAP_LOC_PRIO_HIGH )
endfunction
//***************************************************************************
//*
//* Main Initialization
//*
//***************************************************************************
//===========================================================================
function main takes nothing returns nothing
call SetCameraBounds( -3328.0 + GetCameraMargin(CAMERA_MARGIN_LEFT), -3584.0 + GetCameraMargin(CAMERA_MARGIN_BOTTOM), 3328.0 - GetCameraMargin(CAMERA_MARGIN_RIGHT), 3072.0 - GetCameraMargin(CAMERA_MARGIN_TOP), -3328.0 + GetCameraMargin(CAMERA_MARGIN_LEFT), 3072.0 - GetCameraMargin(CAMERA_MARGIN_TOP), 3328.0 - GetCameraMargin(CAMERA_MARGIN_RIGHT), -3584.0 + GetCameraMargin(CAMERA_MARGIN_BOTTOM) )
call SetDayNightModels( "Environment\\DNC\\DNCLordaeron\\DNCLordaeronTerrain\\DNCLordaeronTerrain.mdl", "Environment\\DNC\\DNCLordaeron\\DNCLordaeronUnit\\DNCLordaeronUnit.mdl" )
call NewSoundEnvironment( "Default" )
call SetAmbientDaySound( "LordaeronSummerDay" )
call SetAmbientNightSound( "LordaeronSummerNight" )
call SetMapMusic( "Music", true, 0 )
call CreateRegions( )
call CreateAllUnits( )
call InitBlizzard( )
call InitGlobals( )
endfunction
//***************************************************************************
//*
//* Map Configuration
//*
//***************************************************************************
function config takes nothing returns nothing
call SetMapName( "Just another Warcraft III map" )
call SetMapDescription( "Nondescript" )
call SetPlayers( 2 )
call SetTeams( 2 )
call SetGamePlacement( MAP_PLACEMENT_TEAMS_TOGETHER )
call DefineStartLocation( 0, -1792.0, -1408.0 )
call DefineStartLocation( 1, 1856.0, -1536.0 )
// Player setup
call InitCustomPlayerSlots( )
call InitCustomTeams( )
call InitAllyPriorities( )
endfunction