|
怎么才可以把鼠标右键使单位移动的功能无效
以及左键选择单位的功能也无效
=====================新旧分界==================
=
按保存,开始保存,结束时出现
换了另一地图去保存,WE直接崩溃了
貌似是保存脚本的时候出错了,我第一次用WE(以前用过,第一次用1.24的WE)
不知道是不是我自己把自己给忽悠了,我用的版本转换器把WAR3直接从1.20转到1.24的,再打1.24的新手助推UI补丁的
// 只是另外一张魔兽争霸III的地图
//
// Warcraft III map script
// Generated by the Warcraft III World Editor
// Date: Thu Aug 26 20:05:57 2010
// Map Author: 未知
//
//===========================================================================
//***************************************************************************
//*
//* Global Variables
//*
//***************************************************************************
globals
// User-defined
unit udg_Man = null
location udg_UpPoint = null
// Generated
trigger gg_trg________________u = null
camerasetup gg_cam_Main_sight = null
trigger gg_trg_Move = null
unit gg_unit_Hpal_0000 = 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, 'Hpal', -157.6, 162.6, 343.344 )
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
//***************************************************************************
//*
//* Cameras
//*
//***************************************************************************
function CreateCameras takes nothing returns nothing
set gg_cam_Main_sight = CreateCameraSetup( )
call CameraSetupSetField( gg_cam_Main_sight, CAMERA_FIELD_ZOFFSET, 0.0, 0.0 )
call CameraSetupSetField( gg_cam_Main_sight, CAMERA_FIELD_ROTATION, 357.0, 0.0 )
call CameraSetupSetField( gg_cam_Main_sight, CAMERA_FIELD_ANGLE_OF_ATTACK, 344.4, 0.0 )
call CameraSetupSetField( gg_cam_Main_sight, CAMERA_FIELD_TARGET_DISTANCE, 699.8, 0.0 )
call CameraSetupSetField( gg_cam_Main_sight, CAMERA_FIELD_ROLL, 0.0, 0.0 )
call CameraSetupSetField( gg_cam_Main_sight, CAMERA_FIELD_FIELD_OF_VIEW, 70.0, 0.0 )
call CameraSetupSetField( gg_cam_Main_sight, CAMERA_FIELD_FARZ, 5000.0, 0.0 )
call CameraSetupSetDestPosition( gg_cam_Main_sight, 141.6, 140.8, 0.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 )
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( -5376.0 + GetCameraMargin(CAMERA_MARGIN_LEFT), -5632.0 + GetCameraMargin(CAMERA_MARGIN_BOTTOM), 5376.0 - GetCameraMargin(CAMERA_MARGIN_RIGHT), 5120.0 - GetCameraMargin(CAMERA_MARGIN_TOP), -5376.0 + GetCameraMargin(CAMERA_MARGIN_LEFT), 5120.0 - GetCameraMargin(CAMERA_MARGIN_TOP), 5376.0 - GetCameraMargin(CAMERA_MARGIN_RIGHT), -5632.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 CreateCameras( )
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, 4864.0, 3840.0 )
// Player setup
call InitCustomPlayerSlots( )
call SetPlayerSlotAvailable( Player(0), MAP_CONTROL_USER )
call InitGenericPlayerSlots( )
endfunction
一大串,看不懂,谁能告诉我怎么了
换了另一地图去保存,WE直接崩溃了
貌似是保存脚本的时候出错了,我第一次用WE(以前用过,第一次用1.24的WE) |
|