Name | Type | is_array | initial_value |
Blue_Circle | location | No | |
Combo | integer | Yes | 0 |
Dialog | button | Yes | |
Dialog_Box | dialog | No | |
Double_Score | integer | Yes | 1 |
Double_Timer | timer | Yes | |
Hint_Number | integer | No | |
Multi | integer | Yes | 1 |
Note_Type | unitcode | Yes | |
Note_Type_Str | string | Yes | |
Red_circle | location | No | |
Score | integer | Yes | 0 |
Spawning_Position | integer | No | 0 |
Speed | real | No | 2.00 |
Speed_Str | string | No | |
TempPoint | location | No | |
TempUnitPosition | location | No | |
Timer | timer | No | |
Yellow_Circle | location | No | |
Yet | boolean | Yes | false |
function Trig_Tap_P1_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetSpellAbilityUnit()) == Player(0) ) ) then
return false
endif
return true
endfunction
function Trig_Tap_P1_Func005Func003Func002001001003 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Tap_P1_Func005Func003C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRangeOfLocMatching(100.00, GetUnitLoc(gg_unit_n000_0000), Condition(function Trig_Tap_P1_Func005Func003Func002001001003))) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Tap_P1_Func005C takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A002' ) ) then
return false
endif
return true
endfunction
function Trig_Tap_P1_Func006Func003Func002001001003 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Tap_P1_Func006Func003C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRangeOfLocMatching(100.00, GetUnitLoc(gg_unit_n001_0001), Condition(function Trig_Tap_P1_Func006Func003Func002001001003))) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Tap_P1_Func006C takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A003' ) ) then
return false
endif
return true
endfunction
function Trig_Tap_P1_Func007Func003Func002001001003 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Tap_P1_Func007Func003C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRangeOfLocMatching(100.00, GetUnitLoc(gg_unit_n002_0002), Condition(function Trig_Tap_P1_Func007Func003Func002001001003))) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Tap_P1_Func007C takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A001' ) ) then
return false
endif
return true
endfunction
function Trig_Tap_P1_Actions takes nothing returns nothing
set udg_Yellow_Circle = GetUnitLoc(gg_unit_n000_0000)
set udg_Blue_Circle = GetUnitLoc(gg_unit_n001_0001)
set udg_Red_circle = GetUnitLoc(gg_unit_n002_0002)
if ( Trig_Tap_P1_Func005C() ) then
set udg_Score[1] = ( udg_Score[1] - ( udg_Multi[1] * 40 ) )
call UnitDamagePointLoc( gg_unit_n003_0004, 0, 100.00, udg_Yellow_Circle, 100.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
if ( Trig_Tap_P1_Func005Func003C() ) then
set udg_Combo[1] = 0
else
endif
else
endif
if ( Trig_Tap_P1_Func006C() ) then
set udg_Score[1] = ( udg_Score[1] - ( udg_Multi[1] * 40 ) )
call UnitDamagePointLoc( gg_unit_n003_0004, 0, 100.00, udg_Blue_Circle, 100.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
if ( Trig_Tap_P1_Func006Func003C() ) then
set udg_Combo[1] = 0
else
endif
else
endif
if ( Trig_Tap_P1_Func007C() ) then
set udg_Score[1] = ( udg_Score[1] - ( udg_Multi[1] * 40 ) )
call UnitDamagePointLoc( gg_unit_n003_0004, 0, 100.00, udg_Red_circle, 100.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
if ( Trig_Tap_P1_Func007Func003C() ) then
set udg_Combo[1] = 0
else
endif
else
endif
call RemoveLocation(udg_Yellow_Circle)
call RemoveLocation(udg_Blue_Circle)
call RemoveLocation(udg_Red_circle)
endfunction
//===========================================================================
function InitTrig_Tap_P1 takes nothing returns nothing
set gg_trg_Tap_P1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Tap_P1, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Tap_P1, Condition( function Trig_Tap_P1_Conditions ) )
call TriggerAddAction( gg_trg_Tap_P1, function Trig_Tap_P1_Actions )
endfunction
function Trig_Tap_P2_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetSpellAbilityUnit()) == Player(1) ) ) then
return false
endif
return true
endfunction
function Trig_Tap_P2_Func005Func003Func002001001003 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Tap_P2_Func005Func003C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRangeOfLocMatching(100.00, GetUnitLoc(gg_unit_n000_0000), Condition(function Trig_Tap_P2_Func005Func003Func002001001003))) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Tap_P2_Func005C takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A002' ) ) then
return false
endif
return true
endfunction
function Trig_Tap_P2_Func006Func003Func002001001003 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Tap_P2_Func006Func003C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRangeOfLocMatching(100.00, GetUnitLoc(gg_unit_n001_0001), Condition(function Trig_Tap_P2_Func006Func003Func002001001003))) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Tap_P2_Func006C takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A003' ) ) then
return false
endif
return true
endfunction
function Trig_Tap_P2_Func007Func003Func002001001003 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Tap_P2_Func007Func003C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRangeOfLocMatching(100.00, GetUnitLoc(gg_unit_n002_0002), Condition(function Trig_Tap_P2_Func007Func003Func002001001003))) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Tap_P2_Func007C takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A001' ) ) then
return false
endif
return true
endfunction
function Trig_Tap_P2_Actions takes nothing returns nothing
set udg_Yellow_Circle = GetUnitLoc(gg_unit_n000_0005)
set udg_Blue_Circle = GetUnitLoc(gg_unit_n001_0006)
set udg_Red_circle = GetUnitLoc(gg_unit_n002_0007)
if ( Trig_Tap_P2_Func005C() ) then
set udg_Score[2] = ( udg_Score[2] - ( udg_Multi[2] * 40 ) )
call UnitDamagePointLoc( gg_unit_n003_0009, 0, 100.00, udg_Yellow_Circle, 100.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
if ( Trig_Tap_P2_Func005Func003C() ) then
set udg_Combo[2] = 0
else
endif
else
endif
if ( Trig_Tap_P2_Func006C() ) then
set udg_Score[2] = ( udg_Score[2] - ( udg_Multi[2] * 40 ) )
call UnitDamagePointLoc( gg_unit_n003_0004, 0, 100.00, udg_Blue_Circle, 100.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
if ( Trig_Tap_P2_Func006Func003C() ) then
set udg_Combo[2] = 0
else
endif
else
endif
if ( Trig_Tap_P2_Func007C() ) then
set udg_Score[2] = ( udg_Score[2] - ( udg_Multi[2] * 40 ) )
call UnitDamagePointLoc( gg_unit_n003_0004, 0, 100.00, udg_Red_circle, 100.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
if ( Trig_Tap_P2_Func007Func003C() ) then
set udg_Combo[2] = 0
else
endif
else
endif
call RemoveLocation(udg_Yellow_Circle)
call RemoveLocation(udg_Blue_Circle)
call RemoveLocation(udg_Red_circle)
endfunction
//===========================================================================
function InitTrig_Tap_P2 takes nothing returns nothing
set gg_trg_Tap_P2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Tap_P2, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Tap_P2, Condition( function Trig_Tap_P2_Conditions ) )
call TriggerAddAction( gg_trg_Tap_P2, function Trig_Tap_P2_Actions )
endfunction