Name | Type | is_array | initial_value |
b_angle | real | No | |
b_blue | boolean | No | |
b_bonus | real | No | |
b_caster | unit | No | UnitNull |
b_distance | real | No | |
b_dummy | unit | No | UnitNull |
b_dummy_grp | group | No | |
b_effects | effect | Yes | |
b_height | real | No | |
b_loc | location | No | |
b_ON | boolean | No | |
b_portal | boolean | No | |
b_tloc | location | No | |
b_x | real | No | |
b_y | real | No | |
BLS | string | No | |
blue_portal | unit | Yes | UnitNull |
bsl_angle | real | No | |
bsl_array | unit | Yes | UnitNull |
bsl_blue | boolean | No | |
bsl_bonus | real | No | |
bsl_caster | unit | No | UnitNull |
bsl_distance | real | No | |
bsl_dummy_grp | group | No | |
bsl_height | real | No | |
bsl_i | integer | No | |
bsl_light_array | lightning | Yes | |
bsl_light_i | integer | No | |
bsl_loc | location | No | |
bsl_offset | real | No | |
bsl_phase | integer | No | |
bsl_portal | boolean | No | |
bsl_SE | effect | Yes | |
bsl_target | unit | No | UnitNull |
bsl_tloc | location | No | |
bsl_unit_i | integer | No | |
bsl_x | real | Yes | |
bsl_y | real | Yes | |
Bw_angle | real | No | |
bw_angle_array | real | Yes | |
Bw_caster | unit | No | UnitNull |
Bw_check | boolean | No | |
bw_dummy_array | unit | Yes | UnitNull |
bw_dummy_grp | group | No | |
bw_grp | group | No | |
bw_int | integer | No | |
bw_lightning | lightning | Yes | |
Bw_loc | location | No | |
Bw_offset | real | No | |
bw_timer | timer | No | |
bw_timer2 | timer | No | |
cl_bonus | real | No | |
cl_caster | unit | No | UnitNull |
cl_dummy_array | unit | Yes | UnitNull |
cl_dummy_z | real | No | |
cl_effects | effect | Yes | |
cl_grp | group | No | |
cl_light | lightning | Yes | |
cl_loc | location | No | |
cl_phase | integer | No | |
cl_phase1_angle | real | No | |
cl_phase2_anglez | real | Yes | |
cl_phase3_anglez | real | Yes | |
cl_target | unit | No | UnitNull |
cl_temp_grp | group | No | |
cl_timer | timer | No | |
cod_rot_angle | real | No | |
fc_angle | real | Yes | |
fc_dummy_grp | group | No | |
fc_grp | group | No | |
fc_offset | real | Yes | |
fc_target | unit | Yes | UnitNull |
fci | integer | No | |
fci2 | integer | No | |
First_time_FC | boolean | No | |
p_offset | real | No | |
p_unit_h | real | No | |
P_up | boolean | No | |
portal_caster | unit | No | UnitNull |
Portal_def | terraindeformation | Yes | |
portal_dummy_grp | group | No | |
Portal_target | unit | No | UnitNull |
tec | integer | No | |
temp_grp | group | No | |
thump_angle | real | No | |
Thumper_grp | group | No | |
thumper_height | real | No | |
Thumper_ON | boolean | No | |
thumper_se | effect | Yes | |
tli | integer | No | |
ts_angle | real | No | |
ts_caster | unit | No | UnitNull |
ts_dummy_grp | group | No | |
ts_height | real | No | |
ts_light | lightning | Yes | |
ts_light_i | integer | No | |
ts_loc | location | No | |
ts_SE | effect | Yes | |
tsd | unit | Yes | UnitNull |
tsi | integer | No | |
TSL | string | No | |
tui | integer | No | |
Tup | boolean | No | |
yellow_portal | unit | Yes | UnitNull |
function Trig_test_Actions takes nothing returns nothing
call AddLightningLoc( "CLPB", GetUnitLoc(GetTriggerUnit()), GetRectCenter(GetPlayableMapRect()) )
call AddLightningLoc( "CLSB", GetUnitLoc(GetTriggerUnit()), GetRectCenter(GetPlayableMapRect()) )
call AddLightningLoc( "DRAB", GetUnitLoc(GetTriggerUnit()), GetRectCenter(GetPlayableMapRect()) )
call AddLightningLoc( "DRAL", GetUnitLoc(GetTriggerUnit()), GetRectCenter(GetPlayableMapRect()) )
call AddLightningLoc( "DRAM", GetUnitLoc(GetTriggerUnit()), GetRectCenter(GetPlayableMapRect()) )
call AddLightningLoc( "AFOD", GetUnitLoc(GetTriggerUnit()), GetRectCenter(GetPlayableMapRect()) )
call AddLightningLoc( "FORK", GetUnitLoc(GetTriggerUnit()), GetRectCenter(GetPlayableMapRect()) )
call AddLightningLoc( "HWPB", GetUnitLoc(GetTriggerUnit()), GetRectCenter(GetPlayableMapRect()) )
call AddLightningLoc( "HWSB", GetUnitLoc(GetTriggerUnit()), GetRectCenter(GetPlayableMapRect()) )
call AddLightningLoc( "CHIM", GetUnitLoc(GetTriggerUnit()), GetRectCenter(GetPlayableMapRect()) )
call AddLightningLoc( "LEAS", GetUnitLoc(GetTriggerUnit()), GetRectCenter(GetPlayableMapRect()) )
call AddLightningLoc( "MBUR", GetUnitLoc(GetTriggerUnit()), GetRectCenter(GetPlayableMapRect()) )
call AddLightningLoc( "MFPB", GetUnitLoc(GetTriggerUnit()), GetRectCenter(GetPlayableMapRect()) )
call AddLightningLoc( "SPLK", GetUnitLoc(GetTriggerUnit()), GetRectCenter(GetPlayableMapRect()) )
endfunction
//===========================================================================
function InitTrig_test takes nothing returns nothing
set gg_trg_test = CreateTrigger( )
call TriggerAddAction( gg_trg_test, function Trig_test_Actions )
endfunction
function Trig_Bulletstorms_leash_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A01N' ) ) then
return false
endif
return true
endfunction
function Trig_Bulletstorms_leash_Func001C takes nothing returns boolean
if ( not ( udg_Integer <= 5 ) ) then
return false
endif
return true
endfunction
function Trig_Bulletstorms_leash_Actions takes nothing returns nothing
local unit caster = GetTriggerUnit()
local location loc = GetSpellTargetLoc()
local location base = GetUnitLoc(caster)
local real distance = DistanceBetweenPoints(base,loc)
local real angle = AngleBetweenPoints(base,loc)
local real height = 20
local real offset = 100
local real bonus = 30
local integer j = 0
local integer i = 0
loop
exitwhen i>=10
call CreateUnitAtLoc(Player(0),'h005',PolarProjectionBJ(base,offset,angle),angle)
set udg_bsl_array[i] = GetLastCreatedUnit()
call SetUnitFlyHeight( GetLastCreatedUnit() , height , 1000 )
if ( Trig_Bulletstorms_leash_Func001C() ) then
set offset = offset + ( distance / 10 )
set height = height + bonus
set bonus = bonus - 1
else
set offset = offset + ( distance / 10 )
set height = height - bonus
set bonus = bonus - 1
endif
set i = i + 1
endloop
loop
exitwhen j>=9
set udg_bsl_light_array[j] = AddLightningEx("FORK",true,GetUnitX(udg_bsl_array[j]),GetUnitY(udg_bsl_array[j]),GetUnitFlyHeight(udg_bsl_array[j]),GetUnitX(udg_bsl_array[j+1]),GetUnitY(udg_bsl_array[j+1]),GetUnitFlyHeight(udg_bsl_array[j+1]))
set j = j + 1
endloop
endfunction
//===========================================================================
function InitTrig_Bulletstorms_leash takes nothing returns nothing
set gg_trg_Bulletstorms_leash = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Bulletstorms_leash, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Bulletstorms_leash, Condition( function Trig_Bulletstorms_leash_Conditions ) )
call TriggerAddAction( gg_trg_Bulletstorms_leash, function Trig_Bulletstorms_leash_Actions )
endfunction