|
楼主 |
发表于 2010-7-10 20:59:49
|
显示全部楼层
我不能用你的方法複製,我只可整個反白再複製,不知有沒有錯
//***************************************************************************
//*
//* Global Variables
//*
//***************************************************************************
globals
// User-defined
real udg_T003 = 0
real udg_R001 = 0
integer udg_T005 = 0
unit udg_T005_hero = null
unit udg_T001 = null
location udg_abcd = null
boolean udg_abcc = false
integer udg_CP_1 = 0
integer udg_CP_2 = 0
integer udg_CP_3 = 0
rect udg_loc_000 = null
rect udg_loc_001 = null
rect udg_loc_002 = null
item array udg_mission_item
integer array udg_mission_point
integer udg_Skill_damage = 0
real udg_hero_blood = 0
effect array udg_XXX
effect array udg_AAA
effect array udg_ZZZ
effect udg_YYY = null
unit udg_AT001 = null
integer udg_AD0011 = 0
integer udg_AT003A = 0
unit udg_AT003B = null
real udg_AT003C = 0
real udg_AT003D = 0
unit udg_AT003E = null
location udg_AT003F = null
unit udg_SW001 = null
integer array udg_HeroType
integer udg_HeroTypeCount = 0
player udg_TempPlayer = null
location udg_TempPoint = null
unit udg_TempUnit = null
integer udg_a = 0
integer udg_b = 0
integer udg_a001 = 0
unit udg_a002 = null
real udg_a003 = 0
real udg_a004 = 0
real udg_a005 = 0
integer udg_a006 = 0
integer udg_a007 = 0
integer udg_life = 0
unit udg_Dead_Hero = null
location udg_Dead_Point = null
unit udg_Power_Ring = null
player udg_I003P = null
unit udg_I004 = null
unit udg_I003 = null
integer udg_I003I1 = 0
integer udg_I003I2 = 0
integer udg_I003I3 = 0
integer udg_I003I4 = 0
integer udg_I004S = 0
integer udg_I004A = 0
integer udg_I004I = 0
location udg_IT003 = null
group udg_damgeunit = null
unit udg_IT002HU = null
player udg_damgeunitplayer = null
unit udg_IT002 = null
// 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
string gg_snd_HeroicVictory
sound gg_snd_Warning = null
sound gg_snd_BloodlustTarget = null
sound gg_snd_KnightNoRiderWarcry1 = null
sound gg_snd_KnightNoRiderYes2 = null
sound gg_snd_FrostBoltHit1 = null
sound gg_snd_ThunderBoltMissileDeath = null
trigger gg_trg_damgeunitsetting = null
trigger gg_trg_Revive_Hero_Copy = null
trigger gg_trg___________004 = null
trigger gg_trg___________006 = null
trigger gg_trg___________012 = null
trigger gg_trg___________013 = null
trigger gg_trg___________007 = null
trigger gg_trg_ATTACK1 = null
trigger gg_trg_ATTACK1_1 = null
trigger gg_trg_ATTACK1_2 = null
trigger gg_trg_ATTACK2 = null
trigger gg_trg_ATTACK2_1 = null
trigger gg_trg_ATTACK2_2 = null
trigger gg_trg_ATTACK3 = null
trigger gg_trg_ATTACK3_1 = null
trigger gg_trg_ATTACK3_2 = null
trigger gg_trg_move = null
trigger gg_trg_move_1 = null
trigger gg_trg_move_2 = null
trigger gg_trg_CENTER = null
trigger gg_trg_CENTER1 = null
trigger gg_trg____________________002 = null
trigger gg_trg___________004_Copy = null
trigger gg_trg___________007_Copy = null
trigger gg_trg___________004_Copy_Copy = null
trigger gg_trg_Untitled_Trigger_002 = null
trigger gg_trg___________002 = null
trigger gg_trg_test = null
trigger gg_trg_skills = null
trigger gg_trg___________014 = null
trigger gg_trg___________014_Copy = null
trigger gg_trg___________014_Copy_2 = null
trigger gg_trg___________014_Copy_2_Copy = null
trigger gg_trg___________014_Copy_2_Copy_2 = null
trigger gg_trg_W0006 = null
trigger gg_trg_A003 = null
trigger gg_trg___________003 = null
trigger gg_trg_A001 = null
trigger gg_trg_A002 = null
trigger gg_trg_W001 = null
trigger gg_trg_W002 = null
trigger gg_trg_W003 = null
trigger gg_trg_W004 = null
trigger gg_trg_W005 = null
trigger gg_trg_O001 = null
trigger gg_trg_O002 = null
trigger gg_trg_W006 = null
trigger gg_trg_A004 = null
trigger gg_trg_S_W001 = null
trigger gg_trg_S_R001 = null
trigger gg_trg_S_R001_A = null
trigger gg_trg_S_R001_A_1 = null
trigger gg_trg_S_R001_B = null
trigger gg_trg_S_R001_B_1 = null
trigger gg_trg_S_R001_C = null
trigger gg_trg_S_R001_C_1 = null
trigger gg_trg_S_R001_D = null
trigger gg_trg_S_R001_D_1 = null
trigger gg_trg_S_R001_E = null
trigger gg_trg_S_R001_E_1 = null
trigger gg_trg_S_E002 = null
trigger gg_trg_S_R002 = null
trigger gg_trg_I_D001 = null
trigger gg_trg_I_W001 = null
trigger gg_trg_I_R001 = null
trigger gg_trg_I_T002_A = null
trigger gg_trg_I_T002_A1 = null
trigger gg_trg_I_T002B = null
trigger gg_trg_I_T002_C = null
trigger gg_trg_I_R003 = null
trigger gg_trg_I_T003_A = null
trigger gg_trg_I_T003_B = null
trigger gg_trg_I_T003_C = null
trigger gg_trg_I_W004 = null
trigger gg_trg_I_R004 = null
trigger gg_trg_I_T004 = null
trigger gg_trg_A_T001_A = null
trigger gg_trg_A_T001_B = null
trigger gg_trg_A_T001_C = null
trigger gg_trg_A_T001_D = null
trigger gg_trg_A_R002 = null
trigger gg_trg_A_T002 = null
trigger gg_trg_A_W003 = null
trigger gg_trg_A_E003 = null
trigger gg_trg_A_T003A = null
trigger gg_trg_A_T003B = null
trigger gg_trg_a01 = null
trigger gg_trg_a02 = null
trigger gg_trg___________009 = null
trigger gg_trg___________010 = null
trigger gg_trg___________011 = null
trigger gg_trg_Init_Random_Hero_List = null
trigger gg_trg_Select_Hero = null
trigger gg_trg_Select_Random_Hero = null
trigger gg_trg_Select_Hero_Sub = null
unit gg_unit_hhou_0000 = null
unit gg_unit_hmpr_0169 = null
unit gg_unit_hkni_0162 = null
unit gg_unit_hmpr_0168 = null
unit gg_unit_hkni_0161 = null
unit gg_unit_hmpr_0170 = null
unit gg_unit_hspt_0122 = null
unit gg_unit_hspt_0123 = null
unit gg_unit_h00O_0047 = null
unit gg_unit_hkni_0160 = null
unit gg_unit_hhes_0119 = null
unit gg_unit_nhem_0159 = null
unit gg_unit_hcth_0124 = null
unit gg_unit_nemi_0157 = null
unit gg_unit_nhef_0158 = null
unit gg_unit_hpea_0093 = null
endglobals
function InitGlobals takes nothing returns nothing
local integer i = 0
set udg_T003 = 0.0
set udg_R001 = 0.0
set udg_T005 = 0
set udg_abcc = false
set i = 0
loop
exitwhen (i > 12)
set udg_mission_point = 0
set i = i + 1
endloop
set udg_Skill_damage = 0
set udg_hero_blood = 0.0
set udg_AT003A = 0
set udg_AT003C = 0.0
set udg_AT003D = 0.0
set udg_HeroTypeCount = 0
set udg_a = 0
set udg_b = 0
set udg_a003 = 0.0
set udg_a004 = 0.0
set udg_a005 = 0.0
set udg_a007 = 0
set udg_life = 0
set udg_I004S = 0
set udg_I004A = 0
set udg_I004I = 0
set udg_damgeunit = null
endfunction
function Trig_I_T002B_Conditions takes nothing returns boolean
if ( not ( UnitHasBuffBJ(GetTriggerUnit(), 'B001') == true ) ) then
return false
endif
return true
endfunction
function Trig_I_T002B_Func004001003 takes nothing returns boolean
return ( IsUnitAlly(GetTriggerUnit(), GetOwningPlayer(udg_IT002)) == true )
endfunction
function Trig_I_T002B_Func004A takes nothing returns nothing
call UnitDamageTargetBJ( GetLastCreatedUnit(), GetEnumUnit(), ( ( ( ASAUDDamageValueUI() * 85.00 ) / 100.00 ) * 15.00 ), ATTACK_TYPE_CHAOS, DAMAGE_TYPE_UNIVERSAL )
endfunction
function Trig_I_T002B_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'h00J', GetTriggerPlayer(), GetUnitLoc(GetEventDamageSource()), bj_UNIT_FACING )
call UnitDamageTargetBJ( GetLastCreatedUnit(), GetEventDamageSource(), ( GetEventDamage() * 0.85 ), ATTACK_TYPE_CHAOS, DAMAGE_TYPE_UNIVERSAL)
call ForGroupBJ( GetUnitsInRangeOfLocMatching(250.00, GetUnitLoc(ASAUDDamageSourceUI()), Condition(function Trig_I_T002B_Func004001003)), function Trig_I_T002B_Func004A )
endfunction
//===========================================================================
function InitTrig_I_T002B takes nothing returns nothing
set gg_trg_I_T002B = CreateTrigger( )
call TriggerAddCondition( gg_trg_I_T002B, Condition( function Trig_I_T002B_Conditions ) )
call TriggerAddAction( gg_trg_I_T002B, function Trig_I_T002B_Actions )
endfunction |
|