找回密码
 点一下
查看: 1748|回复: 5

we崩了。。。。。

[复制链接]
发表于 2012-8-17 20:48:13 | 显示全部楼层 |阅读模式
我又来了。。。。。新手又不懂的地方可以求教吧。。。。。


1.jpg






globals
//globals from YDWEGetUnitsInRectMatchingNull:
constant boolean LIBRARY_YDWEGetUnitsInRectMatchingNull=true
//endglobals from YDWEGetUnitsInRectMatchingNull
//globals from YDWEGetUnitsOfPlayerAndTypeIdNull:
constant boolean LIBRARY_YDWEGetUnitsOfPlayerAndTypeIdNull=true
    group yd_NullTempGroup
//endglobals from YDWEGetUnitsOfPlayerAndTypeIdNull
//globals from YDWEGetUnitsOfPlayerMatchingNull:
constant boolean LIBRARY_YDWEGetUnitsOfPlayerMatchingNull=true
//endglobals from YDWEGetUnitsOfPlayerMatchingNull
//globals from YDWEPauseAllUnitsBJNull:
constant boolean LIBRARY_YDWEPauseAllUnitsBJNull=true
//endglobals from YDWEPauseAllUnitsBJNull
//globals from YDWEPlaySoundNull:
constant boolean LIBRARY_YDWEPlaySoundNull=true
//endglobals from YDWEPlaySoundNull
//globals from YDWEPolledWaitNull:
constant boolean LIBRARY_YDWEPolledWaitNull=true
//endglobals from YDWEPolledWaitNull
//globals from YDWETriggerRegisterEnterRectSimpleNull:
constant boolean LIBRARY_YDWETriggerRegisterEnterRectSimpleNull=true
    region yd_NullTempRegion
//endglobals from YDWETriggerRegisterEnterRectSimpleNull
    // User-defined
    location udg_kejian_dian = null
    location udg_shuabing_dian = null
    timer udg_shuabing_jishiqi = null
    timer udg_shuabing_dongzuo_jishiqi = null
    timer udg_shuabing_dongzuo_jishiqi2 = null
    timer udg_shuabing_jishiqi2 = null
    timer udg_fuhuo_jishiqi12 = null
    group udg_fuhuo_yingxiong = null
    timer udg_fuhuo_jishiqi10 = null
    timer udg_fuhuo_jishiqi2 = null
    timer udg_fuhuo_jishiqi3 = null
    timer udg_fuhuo_jishiqi4 = null
    timer udg_fuhuo_jishiqi5 = null
    timer udg_fuhuo_jishiqi6 = null
    timer udg_fuhuo_jishiqi8 = null
    timer udg_fuhuo_jishiqi9 = null
    timer udg_fuhuo_jishiqi11 = null
    timerdialog udg_fuhuo_chuangkou2 = null
    timerdialog udg_fuhuo_chuangkou11 = null
    timerdialog udg_fuhuo_chuangkou4 = null
    timerdialog udg_fuhuo_chuangkou3 = null
    timerdialog udg_fuhuo_chuangkou5 = null
    timerdialog udg_fuhuo_chuangkou6 = null
    timerdialog udg_fuhuo_chuangkou8 = null
    timerdialog udg_fuhuo_chuangkou9 = null
    timerdialog udg_fuhuo_chuangkou10 = null
    timerdialog udg_fuhuo_chuangkou12 = null
    location udg_shijiezhishu_dian = null
    location udg_bingfengwangzuo_dian = null
    location udg_jingong_bfwz_dian = null
    location udg_jingong_sjzs_dian = null
    location udg_shanglu0113_dian = null
    location udg_zhonglu0114_dian = null
    location udg_xialu0115_dian = null
    location udg_jinweichusheng_dian = null
    location udg_tianzaichusheng_dian = null
    location udg_fuhuoyingxiong_dian = null
    unit udg_浼婂埄涓?= null
    unit udg_鍓?垏鐩?爣 = null
    location udg_鍓?垏鐐?= null

    // Generated
    rect gg_rct_jinwei = null
    rect gg_rct_jinwei_move_shang = null
    rect gg_rct_jinwei_move_xia = null
    rect gg_rct_jinwei_move_zhong = null
    rect gg_rct_jinwei_shuabing_shang_1 = null
    rect gg_rct_jinwei_shuabing_shang_2 = null
    rect gg_rct_jinwei_shuabing_xia_1 = null
    rect gg_rct_jinwei_shuabing_xia_2 = null
    rect gg_rct_jinwei_shuabing_zhong_1 = null
    rect gg_rct_jinwei_shuabing_zhong_2 = null
    rect gg_rct_tianzai = null
    rect gg_rct_tianzai_move_shang = null
    rect gg_rct_tianzai_move_xia = null
    rect gg_rct_tianzai_move_zhong = null
    rect gg_rct_tianzai_shuabing_shang_1 = null
    rect gg_rct_tianzai_shuabing_shang_2 = null
    rect gg_rct_tianzai_shuabing_xia_1 = null
    rect gg_rct_tianzai_shuabing_xia_2 = null
    rect gg_rct_tianzai_shuabing_zhong_1 = null
    rect gg_rct_tianzai_shuabing_zhong_2 = null
    rect gg_rct_wupin = null
    rect gg_rct_wupin2 = null
    sound gg_snd_TheHornOfCenarius = null
    sound gg_snd_Dominating = null
    sound gg_snd_Double_Kill = null
    sound gg_snd_firstblood = null
    sound gg_snd_GodLike = null
    sound gg_snd_HolyShit = null
    sound gg_snd_Killing_Spree = null
    sound gg_snd_MegaKill = null
    sound gg_snd_MonsterKill = null
    sound gg_snd_Ownage = null
    sound gg_snd_triple_kill = null
    sound gg_snd_Unstoppable = null
    sound gg_snd_WhickedSick = null
    trigger gg_trg_quantu = null
    trigger gg_trg_chushihua = null
    trigger gg_trg_dumiao1 = null
    trigger gg_trg_dumiao2 = null
    trigger gg_trg_dumiao3 = null
    trigger gg_trg_dumiao4 = null
    trigger gg_trg_laba = null
    trigger gg_trg_dumiao5 = null
    trigger gg_trg_jiaqian = null
    trigger gg_trg_buwudi = null
    trigger gg_trg_dumiao6 = null
    trigger gg_trg_miao = null
    trigger gg_trg_miao2 = null
    trigger gg_trg_fen = null
    trigger gg_trg_jinwei_North_1 = null
    trigger gg_trg_jinwei_North_2 = null
    trigger gg_trg_jinwei_North_3 = null
    trigger gg_trg_jinwei_Center_1 = null
    trigger gg_trg_jinwei_Center_2 = null
    trigger gg_trg_jinwei_Center_3 = null
    trigger gg_trg_jinwei_South_1 = null
    trigger gg_trg_jinwei_South_2 = null
    trigger gg_trg_jinwei_South_3 = null
    trigger gg_trg_tianzai_North_1 = null
    trigger gg_trg_tianzai_North_2 = null
    trigger gg_trg_tianzai_North_3 = null
    trigger gg_trg_tianzai_Center_1 = null
    trigger gg_trg_tianzai_Center_2 = null
    trigger gg_trg_tianzai_Center_3 = null
    trigger gg_trg_tianzai_South_1 = null
    trigger gg_trg_tianzai_South_2 = null
    trigger gg_trg_tianzai_South_3 = null
    trigger gg_trg_jinwei_Base = null
    trigger gg_trg_tianzai_Base = null
    trigger gg_trg_Attack = null
    trigger gg_trg_Gameover = null
    trigger gg_trg_shuabing_di_1_bo = null
    trigger gg_trg_shuabingjishiqi = null
    trigger gg_trg_dongzuo = null
    trigger gg_trg_dongzuo2 = null
    trigger gg_trg_shuabing = null
    trigger gg_trg_shuabing2 = null
    trigger gg_trg_Move_to_Base = null
    trigger gg_trg_Move_jinwei_shang = null
    trigger gg_trg_Move_jinwei_zhong = null
    trigger gg_trg_Move_jinwei_xia = null
    trigger gg_trg_Move_tianzai_shang = null
    trigger gg_trg_Move_tianzai_zhong = null
    trigger gg_trg_Move_tianzai_xia = null
    trigger gg_trg_shanchu = null
    trigger gg_trg_xuanze = null
    trigger gg_trg_fuhuo2 = null
    trigger gg_trg_fuhuo3 = null
    trigger gg_trg_fuhuo4 = null
    trigger gg_trg_fuhuo5 = null
    trigger gg_trg_fuhuo6 = null
    trigger gg_trg_fuhuo8 = null
    trigger gg_trg_fuhuo9 = null
    trigger gg_trg_fuhuo10 = null
    trigger gg_trg_fuhuo11 = null
    trigger gg_trg_fuhuo12 = null
    trigger gg_trg_fuhuo_dian2 = null
    trigger gg_trg_fuhuo_dian3 = null
    trigger gg_trg_fuhuo_dian4 = null
    trigger gg_trg_fuhuo_dian5 = null
    trigger gg_trg_fuhuo_dian6 = null
    trigger gg_trg_fuhuo_dian8 = null
    trigger gg_trg_fuhuo_dian9 = null
    trigger gg_trg_fuhuo_dian10 = null
    trigger gg_trg_fuhuo_dian11 = null
    trigger gg_trg_fuhuo_dian12 = null
    trigger gg_trg_fuhuo_jingtou = null
    trigger gg_trg_nlq = null
    trigger gg_trg_wupin_cd = null
    trigger gg_trg_diejia = null
    trigger gg_trg_______u = null
    trigger gg_trg_____________u = null
    trigger gg_trg______________2 = null
    unit gg_unit_e001_0117 = null
    unit gg_unit_e000_0062 = null
    unit gg_unit_uC74_0012 = null
    unit gg_unit_uC74_0022 = null
    unit gg_unit_u010_0025 = null
    unit gg_unit_u010_0026 = null
    unit gg_unit_etol_0036 = null
    unit gg_unit_e00S_0037 = null
    unit gg_unit_e003_0060 = null
    unit gg_unit_e00S_0039 = null
    unit gg_unit_e003_0038 = null
    unit gg_unit_eaom_0041 = null
    unit gg_unit_eaoe_0042 = null
    unit gg_unit_eaom_0043 = null
    unit gg_unit_eaoe_0044 = null
    unit gg_unit_e00S_0045 = null
    unit gg_unit_eaom_0046 = null
    unit gg_unit_eaoe_0047 = null
    unit gg_unit_e002_0066 = null
    unit gg_unit_e000_0002 = null
    unit gg_unit_e002_0065 = null
    unit gg_unit_e000_0063 = null
    unit gg_unit_e002_0064 = null
    unit gg_unit_usep_0077 = null
    unit gg_unit_u00M_0081 = null
    unit gg_unit_u00D_0082 = null
    unit gg_unit_unpl_0084 = null
    unit gg_unit_utod_0085 = null
    unit gg_unit_u00M_0086 = null
    unit gg_unit_u00D_0087 = null
    unit gg_unit_u00N_0088 = null
    unit gg_unit_u00T_0089 = null
    unit gg_unit_u00T_0090 = null
    unit gg_unit_u00N_0093 = null
    unit gg_unit_usep_0094 = null
    unit gg_unit_utod_0095 = null
    unit gg_unit_utod_0104 = null
    unit gg_unit_usep_0105 = null
    unit gg_unit_u00N_0106 = null
    unit gg_unit_u00M_0111 = null
    unit gg_unit_u00D_0112 = null
    unit gg_unit_e00D_0113 = null
    unit gg_unit_e00B_0114 = null
    unit gg_unit_e00A_0115 = null
    unit gg_unit_e008_0116 = null


endglobals
//library YDWEGetUnitsInRectMatchingNull:


function YDWEGetUnitsInRectMatchingNull takes rect r, boolexpr filter returns group
    local group g = CreateGroup()
    call GroupEnumUnitsInRect(g, r, filter)
    call DestroyBoolExpr(filter)
    set yd_NullTempGroup = g
    set g = null
    return yd_NullTempGroup
endfunction


//library YDWEGetUnitsInRectMatchingNull ends
//library YDWEGetUnitsOfPlayerAndTypeIdNull:


function YDWEGetUnitsOfPlayerAndTypeIdNull takes player whichPlayer, integer unitid returns group
    local group g = CreateGroup()
    set bj_groupEnumTypeId = unitid
    call GroupEnumUnitsOfPlayer(g, whichPlayer, filterGetUnitsOfPlayerAndTypeId)
    set yd_NullTempGroup = g
    set g = null
    return yd_NullTempGroup
endfunction


//library YDWEGetUnitsOfPlayerAndTypeIdNull ends
//library YDWEGetUnitsOfPlayerMatchingNull:


function YDWEGetUnitsOfPlayerMatchingNull takes player whichPlayer, boolexpr filter returns group
    local group g = CreateGroup()
    call GroupEnumUnitsOfPlayer(g, whichPlayer, filter)
    call DestroyBoolExpr(filter)
    set yd_NullTempGroup = g
    set g = null
    return yd_NullTempGroup
endfunction


//library YDWEGetUnitsOfPlayerMatchingNull ends
//library YDWEPauseAllUnitsBJNull:

function YDWEPauseAllUnitsBJNull takes boolean pause returns nothing
    local integer index
    local player indexPlayer
    local group g

    set bj_pauseAllUnitsFlag = pause
    set g = CreateGroup()
    set index = 0
    loop
        set indexPlayer = Player( index )

        // If this is a computer slot, pause/resume the AI.
        if (GetPlayerController( indexPlayer ) == MAP_CONTROL_COMPUTER) then
            call PauseCompAI( indexPlayer, pause )
        endif

        // Enumerate and unpause every unit owned by the player.
        call GroupEnumUnitsOfPlayer( g, indexPlayer, null )
        call ForGroup( g, function PauseAllUnitsBJEnum )
        call GroupClear( g )

        set index = index + 1
        exitwhen index == bj_MAX_PLAYER_SLOTS
    endloop
    call DestroyGroup(g)
    set g = null
endfunction


//library YDWEPauseAllUnitsBJNull ends
//library YDWEPlaySoundNull:

function YDWEPlaySoundNull takes string soundName returns nothing
    local sound soundHandle = CreateSound(soundName, false, false, true, 12700, 12700, "")
    call StartSound(soundHandle)
    call KillSoundWhenDone(soundHandle)
    set soundHandle = null
endfunction


//library YDWEPlaySoundNull ends
//library YDWEPolledWaitNull:

function YDWEPolledWaitNull takes real duration returns nothing
    local timer t
    local real timeRemaining

    if (duration > 0) then
        set t = CreateTimer()
        call TimerStart(t, duration, false, null)
        loop
            set timeRemaining = TimerGetRemaining(t)
            exitwhen timeRemaining <= 0

            // If we have a bit of time left, skip past 10% of the remaining
            // duration instead of checking every interval, to minimize the
            // polling on long waits.
            if (timeRemaining > bj_POLLED_WAIT_SKIP_THRESHOLD) then
                call TriggerSleepAction(0.1 * timeRemaining)
            else
                call TriggerSleepAction(bj_POLLED_WAIT_INTERVAL)
            endif
        endloop
        call DestroyTimer(t)
    endif
    set t = null
endfunction


//library YDWEPolledWaitNull ends
//library YDWETriggerRegisterEnterRectSimpleNull:


function YDWETriggerRegisterEnterRectSimpleNull takes trigger trig, rect r returns event
    local region rectRegion = CreateRegion()
    call RegionAddRect(rectRegion, r)
    set yd_NullTempRegion = rectRegion
    set rectRegion = null
    return TriggerRegisterEnterRegion(trig, yd_NullTempRegion, null)
endfunction


//library YDWETriggerRegisterEnterRectSimpleNull ends









//===========================================================================
//
// DotA v6.72b 涓?枃鐗?
//
//   Warcraft III map script
//   Generated by the Warcraft III World Editor
//   Date: Fri Aug 17 20:44:03 2012
//   Map Author:
//
//===========================================================================

//***************************************************************************
//*
//*  Global Variables
//*
//***************************************************************************








function InitGlobals takes nothing returns nothing
    set udg_shuabing_jishiqi = CreateTimer()
    set udg_shuabing_dongzuo_jishiqi = CreateTimer()
    set udg_shuabing_dongzuo_jishiqi2 = CreateTimer()
    set udg_shuabing_jishiqi2 = CreateTimer()
    set udg_fuhuo_jishiqi12 = CreateTimer()
    set udg_fuhuo_yingxiong = CreateGroup()
    set udg_fuhuo_jishiqi10 = CreateTimer()
    set udg_fuhuo_jishiqi2 = CreateTimer()
    set udg_fuhuo_jishiqi3 = CreateTimer()
    set udg_fuhuo_jishiqi4 = CreateTimer()
    set udg_fuhuo_jishiqi5 = CreateTimer()
    set udg_fuhuo_jishiqi6 = CreateTimer()
    set udg_fuhuo_jishiqi8 = CreateTimer()
    set udg_fuhuo_jishiqi9 = CreateTimer()
    set udg_fuhuo_jishiqi11 = CreateTimer()
endfunction

//***************************************************************************
//*
//*  Sounds
//*
//***************************************************************************

function InitSounds takes nothing returns nothing
    set gg_snd_TheHornOfCenarius = CreateSound( "Sound\\Ambient\\DoodadEffects\\TheHornOfCenarius.wav", false, false, false, 10, 10, "DefaultEAXON" )
    call SetSoundParamsFromLabel( gg_snd_TheHornOfCenarius, "HornOfCenariusSound" )
    call SetSoundDuration( gg_snd_TheHornOfCenarius, 12121 )
    set gg_snd_Dominating = CreateSound( "Sounds\\Dominating.mp3", false, false, false, 10, 10, "" )
    call SetSoundDuration( gg_snd_Dominating, 1802 )
    call SetSoundChannel( gg_snd_Dominating, 0 )
    call SetSoundVolume( gg_snd_Dominating, 127 )
    call SetSoundPitch( gg_snd_Dominating, 1.0 )
    set gg_snd_Double_Kill = CreateSound( "Sounds\\Double_Kill.mp3", false, false, false, 10, 10, "" )
    call SetSoundDuration( gg_snd_Double_Kill, 2012 )
    call SetSoundChannel( gg_snd_Double_Kill, 0 )
    call SetSoundVolume( gg_snd_Double_Kill, 127 )
    call SetSoundPitch( gg_snd_Double_Kill, 1.0 )
    set gg_snd_firstblood = CreateSound( "Sounds\\firstblood.mp3", false, false, false, 10, 10, "" )
    call SetSoundDuration( gg_snd_firstblood, 1567 )
    call SetSoundChannel( gg_snd_firstblood, 0 )
    call SetSoundVolume( gg_snd_firstblood, 127 )
    call SetSoundPitch( gg_snd_firstblood, 1.0 )
    set gg_snd_GodLike = CreateSound( "Sounds\\GodLike.mp3", false, false, false, 10, 10, "" )
    call SetSoundDuration( gg_snd_GodLike, 1828 )
    call SetSoundChannel( gg_snd_GodLike, 0 )
    call SetSoundVolume( gg_snd_GodLike, 127 )
    call SetSoundPitch( gg_snd_GodLike, 1.0 )
    set gg_snd_HolyShit = CreateSound( "Sounds\\HolyShit.mp3", false, false, false, 10, 10, "" )
    call SetSoundDuration( gg_snd_HolyShit, 2325 )
    call SetSoundChannel( gg_snd_HolyShit, 0 )
    call SetSoundVolume( gg_snd_HolyShit, 127 )
    call SetSoundPitch( gg_snd_HolyShit, 1.0 )
    set gg_snd_Killing_Spree = CreateSound( "Sounds\\Killing_Spree.mp3", false, false, false, 10, 10, "" )
    call SetSoundDuration( gg_snd_Killing_Spree, 2377 )
    call SetSoundChannel( gg_snd_Killing_Spree, 0 )
    call SetSoundVolume( gg_snd_Killing_Spree, 127 )
    call SetSoundPitch( gg_snd_Killing_Spree, 1.0 )
    set gg_snd_MegaKill = CreateSound( "Sounds\\MegaKill.mp3", false, false, false, 10, 10, "" )
    call SetSoundDuration( gg_snd_MegaKill, 2612 )
    call SetSoundChannel( gg_snd_MegaKill, 0 )
    call SetSoundVolume( gg_snd_MegaKill, 127 )
    call SetSoundPitch( gg_snd_MegaKill, 1.0 )
    set gg_snd_MonsterKill = CreateSound( "Sounds\\MonsterKill.mp3", false, false, false, 10, 10, "" )
    call SetSoundDuration( gg_snd_MonsterKill, 3344 )
    call SetSoundChannel( gg_snd_MonsterKill, 0 )
    call SetSoundVolume( gg_snd_MonsterKill, 127 )
    call SetSoundPitch( gg_snd_MonsterKill, 1.0 )
    set gg_snd_Ownage = CreateSound( "Sounds\\Ownage.mp3", false, false, false, 10, 10, "" )
    call SetSoundDuration( gg_snd_Ownage, 2586 )
    call SetSoundChannel( gg_snd_Ownage, 0 )
    call SetSoundVolume( gg_snd_Ownage, 127 )
    call SetSoundPitch( gg_snd_Ownage, 1.0 )
    set gg_snd_triple_kill = CreateSound( "Sounds\\triple_kill.mp3", false, false, false, 10, 10, "" )
    call SetSoundDuration( gg_snd_triple_kill, 1907 )
    call SetSoundChannel( gg_snd_triple_kill, 0 )
    call SetSoundVolume( gg_snd_triple_kill, 127 )
    call SetSoundPitch( gg_snd_triple_kill, 1.0 )
    set gg_snd_Unstoppable = CreateSound( "Sounds\\Unstoppable.mp3", false, false, false, 10, 10, "" )
    call SetSoundDuration( gg_snd_Unstoppable, 2038 )
    call SetSoundChannel( gg_snd_Unstoppable, 0 )
    call SetSoundVolume( gg_snd_Unstoppable, 127 )
    call SetSoundPitch( gg_snd_Unstoppable, 1.0 )
    set gg_snd_WhickedSick = CreateSound( "Sounds\\WhickedSick.mp3", false, false, false, 10, 10, "" )
    call SetSoundDuration( gg_snd_WhickedSick, 2612 )
    call SetSoundChannel( gg_snd_WhickedSick, 0 )
    call SetSoundVolume( gg_snd_WhickedSick, 127 )
    call SetSoundPitch( gg_snd_WhickedSick, 1.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 gg_unit_e000_0002 = CreateUnit( p, 'e000', -1504.0, -1824.0, 270.000 )
    set u = CreateUnit( p, 'nfoh', -7232.0, -7136.0, 270.000 )
    set gg_unit_etol_0036 = CreateUnit( p, 'etol', -5632.0, -6144.0, 270.000 )
    set gg_unit_e00S_0037 = CreateUnit( p, 'e00S', -4448.0, -4960.0, 270.000 )
    set gg_unit_e003_0038 = CreateUnit( p, 'e003', -5600.0, -5728.0, 270.000 )
    set gg_unit_e00S_0039 = CreateUnit( p, 'e00S', -6368.0, -4256.0, 270.000 )
    set gg_unit_eaom_0041 = CreateUnit( p, 'eaom', -6080.0, -4480.0, 270.000 )
    set gg_unit_eaoe_0042 = CreateUnit( p, 'eaoe', -6656.0, -4480.0, 270.000 )
    set gg_unit_eaom_0043 = CreateUnit( p, 'eaom', -4416.0, -5312.0, 270.000 )
    set gg_unit_eaoe_0044 = CreateUnit( p, 'eaoe', -4864.0, -4992.0, 270.000 )
    set gg_unit_e00S_0045 = CreateUnit( p, 'e00S', -3744.0, -6816.0, 270.000 )
    set gg_unit_eaom_0046 = CreateUnit( p, 'eaom', -4032.0, -7040.0, 270.000 )
    set gg_unit_eaoe_0047 = CreateUnit( p, 'eaoe', -4032.0, -6528.0, 270.000 )
    set u = CreateUnit( p, 'emow', -5792.0, -5408.0, 270.000 )
    set u = CreateUnit( p, 'emow', -6624.0, -5088.0, 270.000 )
    set u = CreateUnit( p, 'emow', -5088.0, -5536.0, 270.000 )
    set u = CreateUnit( p, 'emow', -5344.0, -3936.0, 270.000 )
    set u = CreateUnit( p, 'emow', -5088.0, -4576.0, 270.000 )
    set u = CreateUnit( p, 'emow', -3936.0, -5344.0, 270.000 )
    set u = CreateUnit( p, 'emow', -4512.0, -7072.0, 270.000 )
    set u = CreateUnit( p, 'emow', -4896.0, -6240.0, 270.000 )
    set u = CreateUnit( p, 'emow', -3808.0, -5856.0, 270.000 )
    set u = CreateUnit( p, 'emow', -5472.0, -4704.0, 270.000 )
    set u = CreateUnit( p, 'emow', -4512.0, -5856.0, 270.000 )
    set u = CreateUnit( p, 'eaow', -4544.0, -6528.0, 270.000 )
    set gg_unit_e003_0060 = CreateUnit( p, 'e003', -5280.0, -6112.0, 270.000 )
    set u = CreateUnit( p, 'eaow', -6080.0, -5120.0, 270.000 )
    set gg_unit_e000_0062 = CreateUnit( p, 'e000', -6112.0, 1568.0, 270.000 )
    set gg_unit_e000_0063 = CreateUnit( p, 'e000', 4960.0, -6752.0, 270.000 )
    set gg_unit_e002_0064 = CreateUnit( p, 'e002', -3488.0, -3296.0, 270.000 )
    set gg_unit_e002_0065 = CreateUnit( p, 'e002', -544.0, -6688.0, 270.000 )
    set gg_unit_e002_0066 = CreateUnit( p, 'e002', -6112.0, -1248.0, 270.000 )
    set u = CreateUnit( p, 'edob', -6400.0, -5696.0, 270.000 )
    set u = CreateUnit( p, 'edob', -5248.0, -6848.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, 'n01F', -7424.0, -6976.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, 'Eevi', -1123.1, -1460.8, 49.825 )
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, 'n01F', -7424.0, -6848.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, 'n01F', -7424.0, -6720.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, 'n01F', -7424.0, -6592.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, 'n01F', -7424.0, -6464.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, 'ndfl', 6784.0, 6368.0, 270.000 )
    set gg_unit_usep_0077 = CreateUnit( p, 'usep', 4352.0, 3584.0, 270.000 )
    set gg_unit_u00M_0081 = CreateUnit( p, 'u00M', 6048.0, -2080.0, 270.000 )
    set gg_unit_u00D_0082 = CreateUnit( p, 'u00D', 6304.0, -96.0, 270.000 )
    set u = CreateUnit( p, 'uzig', 4384.0, 4256.0, 270.000 )
    set gg_unit_unpl_0084 = CreateUnit( p, 'unpl', 5184.0, 4864.0, 270.000 )
    set gg_unit_utod_0085 = CreateUnit( p, 'utod', 3904.0, 3904.0, 270.000 )
    set gg_unit_u00M_0086 = CreateUnit( p, 'u00M', 1056.0, -96.0, 270.000 )
    set gg_unit_u00D_0087 = CreateUnit( p, 'u00D', 2528.0, 1824.0, 270.000 )
    set gg_unit_u00N_0088 = CreateUnit( p, 'u00N', 3936.0, 3488.0, 270.000 )
    set gg_unit_u00T_0089 = CreateUnit( p, 'u00T', 4832.0, 4832.0, 270.000 )
    set gg_unit_u00T_0090 = CreateUnit( p, 'u00T', 5152.0, 4512.0, 270.000 )
    set u = CreateUnit( p, 'uzig', 5728.0, 4000.0, 270.000 )
    set gg_unit_u00N_0093 = CreateUnit( p, 'u00N', 2976.0, 5792.0, 270.000 )
    set gg_unit_usep_0094 = CreateUnit( p, 'usep', 3392.0, 5504.0, 270.000 )
    set gg_unit_utod_0095 = CreateUnit( p, 'utod', 3392.0, 6080.0, 270.000 )
    set u = CreateUnit( p, 'uzig', 4128.0, 6240.0, 270.000 )
    set u = CreateUnit( p, 'usap', 3968.0, 5888.0, 270.000 )
    set u = CreateUnit( p, 'ubon', 4992.0, 5952.0, 270.000 )
    set u = CreateUnit( p, 'uzig', 5536.0, 2464.0, 270.000 )
    set u = CreateUnit( p, 'uzig', 4064.0, 5280.0, 270.000 )
    set u = CreateUnit( p, 'uzig', 3488.0, 4832.0, 270.000 )
    set u = CreateUnit( p, 'usap', 6400.0, 3584.0, 270.000 )
    set gg_unit_utod_0104 = CreateUnit( p, 'utod', 6080.0, 2944.0, 270.000 )
    set gg_unit_usep_0105 = CreateUnit( p, 'usep', 6656.0, 2880.0, 270.000 )
    set gg_unit_u00N_0106 = CreateUnit( p, 'u00N', 6368.0, 2528.0, 270.000 )
    set u = CreateUnit( p, 'uzig', 5024.0, 3744.0, 270.000 )
    set u = CreateUnit( p, 'uzig', 6880.0, 3936.0, 270.000 )
    set u = CreateUnit( p, 'ubon', 6464.0, 4608.0, 270.000 )
    set u = CreateUnit( p, 'uzig', 4640.0, 2848.0, 270.000 )
    set gg_unit_u00M_0111 = CreateUnit( p, 'u00M', -4704.0, 5920.0, 270.000 )
    set gg_unit_u00D_0112 = CreateUnit( p, 'u00D', 32.0, 5920.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, 'n01F', 7040.0, 6272.0, 270.000 )
endfunction

//===========================================================================
function CreateUnitsForPlayer7 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, 'Ucrl', -226.9, -506.9, 237.510 )
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, 'n01F', 7040.0, 6144.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, 'n01F', 7040.0, 6016.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, 'n01F', 7040.0, 5888.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, 'n01F', 7040.0, 5760.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, 'u00Z', 7360.0, -4416.0, 270.000 )
    set u = CreateUnit( p, 'u00Z', -7296.0, 4224.0, 270.000 )
    set u = CreateUnit( p, 'n001', -6848.0, 7104.0, 270.000 )
    call SetUnitColor( u, ConvertPlayerColor(11) )
    set u = CreateUnit( p, 'n008', -6656.0, 7104.0, 270.000 )
    call SetUnitColor( u, ConvertPlayerColor(11) )
    set u = CreateUnit( p, 'n004', -7360.0, 7104.0, 270.000 )
    call SetUnitColor( u, ConvertPlayerColor(0) )
    set gg_unit_uC74_0012 = CreateUnit( p, 'uC74', 3200.0, -64.0, 270.000 )
    set u = CreateUnit( p, 'n007', -7168.0, 7104.0, 270.000 )
    call SetUnitColor( u, ConvertPlayerColor(0) )
    set u = CreateUnit( p, 'n00D', -6848.0, 6784.0, 270.000 )
    call SetUnitColor( u, ConvertPlayerColor(10) )
    set u = CreateUnit( p, 'n00F', -6656.0, 6784.0, 270.000 )
    call SetUnitColor( u, ConvertPlayerColor(10) )
    set gg_unit_uC74_0022 = CreateUnit( p, 'uC74', -4544.0, 1152.0, 270.000 )
    set u = CreateUnit( p, 'n003', -7360.0, 6784.0, 270.000 )
    call SetUnitColor( u, ConvertPlayerColor(6) )
    set u = CreateUnit( p, 'n005', -7168.0, 6784.0, 270.000 )
    call SetUnitColor( u, ConvertPlayerColor(6) )
    set gg_unit_u010_0025 = CreateUnit( p, 'u010', -7296.0, 4416.0, 270.000 )
    set gg_unit_u010_0026 = CreateUnit( p, 'u010', 7360.0, -4224.0, 270.000 )
    set u = CreateUnit( p, 'nC38', -7264.0, -6880.0, 270.000 )
    set u = CreateUnit( p, 'n01K', -7264.0, -6688.0, 270.000 )
    set u = CreateUnit( p, 'n009', -6560.0, -6432.0, 270.000 )
    set u = CreateUnit( p, 'n00X', -7072.0, -6368.0, 270.000 )
    set u = CreateUnit( p, 'n00V', -6816.0, -6368.0, 270.000 )
    set u = CreateUnit( p, 'n00W', -7200.0, -6432.0, 270.000 )
    set u = CreateUnit( p, 'n002', -6688.0, -6368.0, 270.000 )
    set u = CreateUnit( p, 'e025', -6624.0, -7136.0, 270.000 )
    call SetUnitColor( u, ConvertPlayerColor(0) )
    set u = CreateUnit( p, 'hC95', -6880.0, -7136.0, 270.000 )
    call SetUnitColor( u, ConvertPlayerColor(0) )
    set u = CreateUnit( p, 'n00E', -6848.0, 6464.0, 270.000 )
    call SetUnitColor( u, ConvertPlayerColor(9) )
    set u = CreateUnit( p, 'n0HE', -6944.0, -6368.0, 270.000 )
    set u = CreateUnit( p, 'n0HE', 5920.0, 6176.0, 0.000 )
    set u = CreateUnit( p, 'n002', 5920.0, 5920.0, 0.000 )
    set u = CreateUnit( p, 'n00W', 5984.0, 6432.0, 0.000 )
    set u = CreateUnit( p, 'n00V', 5920.0, 6048.0, 0.000 )
    set u = CreateUnit( p, 'n00X', 5920.0, 6304.0, 270.000 )
    set u = CreateUnit( p, 'nC38', 6496.0, 6368.0, 270.000 )
    set u = CreateUnit( p, 'n01K', 6304.0, 6368.0, 270.000 )
    set u = CreateUnit( p, 'n009', 5984.0, 5792.0, 0.000 )
    set u = CreateUnit( p, 'nC35', 6816.0, 5984.0, 270.000 )
    call SetUnitColor( u, ConvertPlayerColor(6) )
    set u = CreateUnit( p, 'u00Q', 6816.0, 5664.0, 270.000 )
    set u = CreateUnit( p, 'n000', -6656.0, 6464.0, 270.000 )
    call SetUnitColor( u, ConvertPlayerColor(9) )
    set u = CreateUnit( p, 'n0EO', -7360.0, 6464.0, 270.000 )
    call SetUnitColor( u, ConvertPlayerColor(1) )
    set u = CreateUnit( p, 'n006', -7168.0, 6464.0, 270.000 )
    call SetUnitColor( u, ConvertPlayerColor(1) )
endfunction

//===========================================================================
function CreateNeutralPassive takes nothing returns nothing
    local player p = Player(PLAYER_NEUTRAL_PASSIVE)
    local unit u
    local integer unitID
    local trigger t
    local real life

    set gg_unit_e00D_0113 = CreateUnit( p, 'e00D', -6005.1, 5458.6, 275.300 )
    set gg_unit_e00B_0114 = CreateUnit( p, 'e00B', -561.7, -651.7, 295.510 )
    set gg_unit_e00A_0115 = CreateUnit( p, 'e00A', 5717.5, -6070.9, 64.000 )
    set gg_unit_e008_0116 = CreateUnit( p, 'e008', -5467.9, -5891.1, 327.220 )
    set gg_unit_e001_0117 = CreateUnit( p, 'e001', 4901.8, 4536.6, 273.005 )
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
    call CreateUnitsForPlayer1( )
    call CreateUnitsForPlayer7( )
endfunction

//===========================================================================
function CreateAllUnits takes nothing returns nothing
    call CreateNeutralPassiveBuildings( )
    call CreatePlayerBuildings( )
    call CreateNeutralPassive( )
    call CreatePlayerUnits( )
endfunction

//***************************************************************************
//*
//*  Regions
//*
//***************************************************************************

function CreateRegions takes nothing returns nothing
    local weathereffect we

    set gg_rct_jinwei = Rect( -6944.0, -6912.0, -6688.0, -6624.0 )
    set gg_rct_jinwei_move_shang = Rect( -7040.0, -4736.0, -5344.0, -3616.0 )
    set gg_rct_jinwei_move_xia = Rect( -4416.0, -7456.0, -3136.0, -6048.0 )
    set gg_rct_jinwei_move_zhong = Rect( -5344.0, -6048.0, -4256.0, -4672.0 )
    set gg_rct_jinwei_shuabing_shang_1 = Rect( -6240.0, -4192.0, -6016.0, -3968.0 )
    set gg_rct_jinwei_shuabing_shang_2 = Rect( -6240.0, -4384.0, -6016.0, -4160.0 )
    set gg_rct_jinwei_shuabing_xia_1 = Rect( -3648.0, -6976.0, -3392.0, -6688.0 )
    set gg_rct_jinwei_shuabing_xia_2 = Rect( -4096.0, -6976.0, -3840.0, -6688.0 )
    set gg_rct_jinwei_shuabing_zhong_1 = Rect( -4864.0, -5440.0, -4576.0, -5152.0 )
    set gg_rct_jinwei_shuabing_zhong_2 = Rect( -4960.0, -5696.0, -4704.0, -5440.0 )
    set gg_rct_tianzai = Rect( 6176.0, 5952.0, 6432.0, 6240.0 )
    set gg_rct_tianzai_move_shang = Rect( 1920.0, 4800.0, 3456.0, 6400.0 )
    set gg_rct_tianzai_move_xia = Rect( 5120.0, 2400.0, 7264.0, 4480.0 )
    set gg_rct_tianzai_move_zhong = Rect( 3104.0, 2848.0, 4768.0, 4800.0 )
    set gg_rct_tianzai_shuabing_shang_1 = Rect( 2368.0, 5344.0, 2688.0, 5664.0 )
    set gg_rct_tianzai_shuabing_shang_2 = Rect( 2752.0, 5376.0, 3008.0, 5664.0 )
    set gg_rct_tianzai_shuabing_xia_1 = Rect( 6112.0, 3072.0, 6400.0, 3392.0 )
    set gg_rct_tianzai_shuabing_xia_2 = Rect( 5984.0, 3456.0, 6272.0, 3808.0 )
    set gg_rct_tianzai_shuabing_zhong_1 = Rect( 3552.0, 3584.0, 3808.0, 3872.0 )
    set gg_rct_tianzai_shuabing_zhong_2 = Rect( 4032.0, 3680.0, 4288.0, 4000.0 )
    set gg_rct_wupin = Rect( -7616.0, -7936.0, -6368.0, -6208.0 )
    set gg_rct_wupin2 = Rect( 5824.0, 5472.0, 7520.0, 7392.0 )
endfunction

//***************************************************************************
//*
//*  Triggers
//*
//***************************************************************************

//===========================================================================
// Trigger: quantu
//===========================================================================
function Trig_quantuActions takes nothing returns nothing
    call FogEnableOff( )
    call FogMaskEnableOff( )
endfunction

//===========================================================================
function InitTrig_quantu takes nothing returns nothing
    set gg_trg_quantu = CreateTrigger()
    call TriggerAddAction(gg_trg_quantu, function Trig_quantuActions)
endfunction

//===========================================================================
// Trigger: chushihua
//
// Default melee game initialization for all players
//===========================================================================
function Trig_chushihuaFunc016001002 takes nothing returns boolean
    return (((IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == true) and ((GetUnitTypeId(GetFilterUnit()) != 'nfoh') and (GetUnitTypeId(GetFilterUnit()) != 'ndfl'))))
endfunction

function Trig_chushihuaFunc016002 takes nothing returns nothing
    call SetUnitInvulnerable( GetEnumUnit(), true )
endfunction

function Trig_chushihuaActions takes nothing returns nothing
    call RemoveAllGuardPositions( Player(0) )
    call RemoveAllGuardPositions( Player(6) )
    // F9
    call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_3209", "TRIGSTR_3210", "ReplaceableTextures\\CommandButtons\\BTNSpy.blp" )
    call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_3212", "TRIGSTR_3219", "ReplaceableTextures\\CommandButtons\\BTNTome.blp" )
    call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_3214", "TRIGSTR_3220", "ReplaceableTextures\\CommandButtons\\BTNAmbush.blp" )
    call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_3211", "TRIGSTR_3221", "ReplaceableTextures\\CommandButtons\\BTNScrollOfHaste.blp" )
    call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_3213", "TRIGSTR_3222", "ReplaceableTextures\\CommandButtons\\BTNBansheeMaster.blp" )
    call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_3215", "TRIGSTR_3223", "ReplaceableTextures\\CommandButtons\\BTNCarrionScarabs.blp" )
    // 璁剧疆鏃堕棿
    call UseTimeOfDayBJ( true )
    call SetTimeOfDay( 5.99 )
    call SetTimeOfDayScalePercentBJ( 50.00 )
    call EnableDawnDusk( true )
    // 璁惧畾鎵
 楼主| 发表于 2012-8-17 20:48:54 | 显示全部楼层
就是这个情况。。。
回复

使用道具 举报

发表于 2012-8-17 22:23:40 | 显示全部楼层
虽然对这个一窍不通。。
但是怎么那么长而且里面还有各种乱码。。
回复

使用道具 举报

发表于 2012-8-18 01:25:51 | 显示全部楼层
错误提示能截个图吗......
回复

使用道具 举报

发表于 2012-8-18 09:34:36 | 显示全部楼层
不 要 用 中 文 变 量
回复

使用道具 举报

 楼主| 发表于 2012-8-18 09:39:55 | 显示全部楼层
ls原来如此。。。。我用了中文变量。。。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 点一下

本版积分规则

Archiver|移动端|小黑屋|地精研究院

GMT+8, 2024-12-24 08:53 , Processed in 0.098111 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表