魔兽地图编辑器吧 关注:65,008贴子:3,836,090
  • 4回复贴,共1

发现小改一个技能就让我的WE崩溃

取消只看楼主收藏回复



1楼2010-10-28 15:54回复
    /===========================================================================
    //
    // 只是另外一张魔兽争霸III的地图
    //
    //    Warcraft III map script
    //    Generated by the Warcraft III World Editor
    //    Date: Thu Oct 28 15:56:10 2010
    //    Map Author: 未知
    //
    //===========================================================================
    //***************************************************************************
    //*
    //*   Global Variables
    //*
    //***************************************************************************
    globals
         // Generated
         trigger                  gg_trg________________u     = null
    endglobals
    function InitGlobals takes nothing returns nothing
    endfunction
    //***************************************************************************
    //*
    //*   Unit Creation
    //*
    //***************************************************************************
    //===========================================================================
    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, 'hfoo', 571.3, 414.9, 167.195 )
         set u = CreateUnit( p, 'hfoo', 262.5, 357.7, 261.801 )
    endfunction
    //===========================================================================
    function CreatePlayerBuildings takes nothing returns nothing
    endfunction
    //===========================================================================
    function CreatePlayerUnits takes nothing returns nothing
         call CreateUnitsForPlayer0(   )
    endfunction
    //===========================================================================
    function CreateAllUnits takes nothing returns nothing
         call CreatePlayerBuildings(   )
         call CreatePlayerUnits(   )
    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 )
    


    3楼2010-10-28 15:57
    回复
           call SetPlayerController( Player(0), MAP_CONTROL_USER )
      endfunction
      function InitCustomTeams takes nothing returns nothing
           // Force: TRIGSTR_002
           call SetPlayerTeam( Player(0), 0 )
      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 CreateAllUnits(   )
           call InitBlizzard(   )
           call InitGlobals(   )
      endfunction
      //***************************************************************************
      //*
      //*   Map Configuration
      //*
      //***************************************************************************
      function config takes nothing returns nothing
           call SetMapName( "只是另外一张魔兽争霸III的地图" )
           call SetMapDescription( "没有说明" )
           call SetPlayers( 1 )
           call SetTeams( 1 )
           call SetGamePlacement( MAP_PLACEMENT_USE_MAP_SETTINGS )
           call DefineStartLocation( 0, -1792.0, -1408.0 )
           // Player setup
           call InitCustomPlayerSlots(   )
           call SetPlayerSlotAvailable( Player(0), MAP_CONTROL_USER )
           call InitGenericPlayerSlots(   )
      endfunction
      


      4楼2010-10-28 15:57
      回复
        不是技能


        5楼2010-10-28 15:58
        回复
          这咋了


          6楼2010-10-28 16:09
          回复