|
我想做一个战役图,可测试游戏时说是这个错误
缺少数组索引
//***************************************************************************
//*
//* Global Variables
//*
//***************************************************************************
globals
// User-defined
integer udg_kaer = 0
integer udg_jialisesi = 0
integer udg_bianlianger = 0
dialog array udg_yesno
button array udg_yes
button array udg_no
// Generated
rect gg_rct______________000 = null
rect gg_rct______________001 = null
rect gg_rct______________002 = null
rect gg_rct______________003 = null
rect gg_rct______________004 = null
rect gg_rct______________005 = null
rect gg_rct______________009 = null
camerasetup gg_cam_Camera_001 = null
camerasetup gg_cam_Camera_002 = null
sound gg_snd_BattleNetWindStereoLoop1 = null
trigger gg_trg_zongti = null
trigger gg_trg_dianying = null
trigger gg_trg_bianliang = null
trigger gg_trg_mianxiang = null
trigger gg_trg_renwu = null
trigger gg_trg_tianqi = null
trigger gg_trg_keer_over = null
unit gg_unit_nvlk_0007 = null
unit gg_unit_n000_0008 = null
unit gg_unit_n001_0009 = null
rect gg_rct______________006 = null
rect gg_rct______________007 = null
rect gg_rct______________008 = null
trigger gg_trg_chufa1 = null
trigger gg_trg_yincangrenwu1 = null
trigger gg_trg_yincangrenwu2 = null
camerasetup gg_cam_Camera_003 = null
trigger gg_trg_renwushibai = null
endglobals
function InitGlobals takes nothing returns nothing
local integer i = 0
set udg_bianlianger = 0
set i = 0
loop
exitwhen (i > 1)
set udg_yesno = DialogCreate()
set i = i + 1
endloop
set i = 0
loop
exitwhen (i > 1)
set udg_yes = bj_lastCreatedButton
set i = i + 1
endloop
set i = 0
loop
exitwhen (i > 10)
set udg_no = bj_lastCreatedButton
set i = i + 1
endloop
endfunction
function Trig_yincangrenwu2_Conditions takes nothing returns boolean
if ( not ( udg_bianlianger == 2 ) ) then
return false
endif
return true
endfunction
function Trig_yincangrenwu2_Func015Func002C takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_yes[1] ) ) then
return false
endif
return true
endfunction
function Trig_yincangrenwu2_Func015C takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_no[2] ) ) then
return false
endif
return true
endfunction
function Trig_yincangrenwu2_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisableTrigger( gg_trg_yincangrenwu1 )
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_059", "TRIGSTR_060", "ReplaceableTextures\\CommandButtons\\BTNVillagerKid.blp" )
call TriggerSleepAction( 2 )
call CinematicModeBJ( true, GetPlayersAll() )
call CameraSetupApplyForceDuration( gg_cam_Camera_003, true, 0 )
call TransmissionFromUnitTypeWithNameBJ( GetPlayersAll(), Player(0), udg_kaer, "TRIGSTR_039", GetUnitLoc(GetEnumUnit()), null, "TRIGSTR_040", bj_TIMETYPE_ADD, 4.00, true )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_nvlk_0007, "TRIGSTR_041", null, "TRIGSTR_042", bj_TIMETYPE_ADD, 5.00, true )
call ResetToGameCamera( 2.00 )
call CinematicModeBJ( false, GetPlayersAll() )
call DialogDisplayBJ( true, udg_yesno[0], Player(0) )
call DialogSetMessage( udg_yesno, "TRIGSTR_053" )
set udg_yes[1] = DialogAddButton(udg_yesno[0], "TRIGSTR_055", 514)
set udg_no[2] = DialogAddButton(udg_yesno[0], "TRIGSTR_058", 0)
if ( Trig_yincangrenwu2_Func015C() ) then
call TransmissionFromUnitTypeWithNameBJ( GetPlayersAll(), Player(0), udg_kaer, "TRIGSTR_064", GetUnitLoc(GetEnumUnit()), null, "TRIGSTR_065", bj_TIMETYPE_ADD, 5.00, true )
call QuestSetFailed( GetLastCreatedQuestBJ(), true )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_FAILED, "TRIGSTR_061" )
call ShowUnitHide( gg_unit_nvlk_0007 )
else
if ( Trig_yincangrenwu2_Func015Func002C() ) then
call TransmissionFromUnitTypeWithNameBJ( GetPlayersAll(), Player(0), udg_kaer, "TRIGSTR_062", GetUnitLoc(GetEnumUnit()), null, "TRIGSTR_063", bj_TIMETYPE_ADD, 4.00, true )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_nvlk_0007, "TRIGSTR_066", null, "TRIGSTR_067", bj_TIMETYPE_ADD, 3.00, true )
call TransmissionFromUnitTypeWithNameBJ( GetPlayersAll(), Player(0), udg_kaer, "TRIGSTR_068", GetUnitLoc(GetEnumUnit()), null, "TRIGSTR_069", bj_TIMETYPE_ADD, 4.00, true )
call SetUnitOwner( gg_unit_nvlk_0007, Player(0), false )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_070" )
else
call DoNothing( )
endif
endif
endfunction
//===========================================================================
function InitTrig_yincangrenwu2 takes nothing returns nothing
set gg_trg_yincangrenwu2 = CreateTrigger( )
call DisableTrigger( gg_trg_yincangrenwu2 )
call TriggerAddCondition( gg_trg_yincangrenwu2, Condition( function Trig_yincangrenwu2_Conditions ) )
call TriggerAddAction( gg_trg_yincangrenwu2, function Trig_yincangrenwu2_Actions )
endfunction
怎么回事
血精灵战役.zip
(30 KB, 下载次数: 1)
|
|