Very long TD question.

sxebeast

New Member
Reaction score
0
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

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


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
 

tooltiperror

Super Moderator
Reaction score
231
Are you using a custom editor? NewGen? WEU? EGUI? Do you have libraries in your code? Are you using someone elses coding anywhere? Is it deprotected?
 

sxebeast

New Member
Reaction score
0
I use UMSWE 4.1

and thats all i know. i havent downloaded anything. and the codes were tutorials, nothing special
 

sxebeast

New Member
Reaction score
0
patch for World Editor?

it says at the top beta build 775.

do i just need an updated virsion or somethin?
 

tooltiperror

Super Moderator
Reaction score
231
I'm fairly certain that the problem is with your editor, because it is outdated by the patch. I read that UMSWE 4.1 is only compatible with patch 1.3 for Warcraft 3. However, you could still use Jass NewGen Pack for a customized and improved world editor.
 

sxebeast

New Member
Reaction score
0
Oh btw (cuz i havent looked at this thread for so long)

it turns out imma dumbass and installed it wrong xD
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top