Name | Type | is_array | initial_value |
ABIL_RunePoint | location | No | |
ABIL_Runes | integer | No | |
ArcherThrower | real | No | 6.00 |
Blizz_Area | real | No | 300.00 |
Blizz_Caster | unit | No | |
Blizz_Damage | real | No | 9.00 |
Blizz_Dmg_BuildingReduction | real | No | 2.00 |
Blizz_IceShardLocation | location | No | |
Blizz_IceShardsSummoned | integer | No | 5 |
Blizz_InitIceShardLocation | location | No | |
Blizz_InitPointBeingCast | location | No | |
Blizz_PointBeingCast | location | No | |
Blizz_ShardDamageArea | real | No | 128.00 |
DE_AArcherThrower | real | Yes | |
DE_AFootmanGrunt | real | Yes | 2.00 |
DE_AKnightOgre | real | Yes | 4.00 |
DE_Armor | real | No | |
DE_AttackedUnit | unit | No | |
DE_AttackingUnit | unit | No | |
DE_BArcherThrower | real | Yes | 3.00 |
DE_BBallistaCatapult | real | Yes | 80.00 |
DE_BDamage | real | No | |
DE_BDemoSapper | real | Yes | 4.00 |
DE_BFootmanGrunt | real | Yes | 6.00 |
DE_BKnightOgre | real | Yes | 8.00 |
DE_BPeasantPeon | real | Yes | 3.00 |
DE_PArcherThrower | real | Yes | 6.00 |
DE_PDamage | real | No | |
DE_PFootmanGrunt | real | Yes | 3.00 |
DE_PGryphonDragon | real | Yes | 16.00 |
DE_PKnightOgre | real | Yes | 4.00 |
DE_PMageDeathknight | real | Yes | 9.00 |
DE_PPeasantPeon | real | Yes | 2.00 |
DE_Queue_CurSlot | integer | No | |
DE_Queue_Damage | real | Yes | |
DE_Queue_Slots | integer | No | 0 |
DE_Queue_Victim | unit | Yes | |
DE_RealBDamage | real | No | |
DE_TotalDamage | real | No | |
Defeated | boolean | Yes | false |
DnD_Area | real | No | 300.00 |
DnD_BuildingAdder | real | No | 6.00 |
DnD_Caster | unit | No | |
DnD_Damage | real | No | 6.00 |
DnD_DnDDamageArea | real | No | 128.00 |
DnD_DnDInitLocation | location | No | |
DnD_DnDLocation | location | No | |
DnD_DnDSummoned | integer | No | 5 |
DnD_InitPointBeingCast | location | No | |
DnD_Number | integer | No | |
Dnd_PointBeingCast | location | No | |
EffectedUnit | unit | No | |
EffectedUnitType | unitcode | No | |
FootmanGrunt | real | No | 3.00 |
GOLDMINE_Gold | integer | No | |
GOLDMINE_InitGold | integer | No | |
GOLDMINE_InitHarvester | unit | No | |
GOLDMINE_InitPlayer | player | No | |
GOLDMINE_InitUnit | unit | No | |
GOLDMINE_Unit | unit | No | |
Harvest_Gold_Init | unit | No | |
INIT_BlackMask | fogmodifier | Yes | |
MageDeathknight | real | No | 9.00 |
PaladinOgre | real | No | 4.00 |
PALYOGRE_NeedArmor | boolean | No | |
PeasantPeon | real | No | 2.00 |
Player_Gold | integer | Yes | |
Player_Lumber | integer | Yes | |
Player_Tier | integer | Yes | 1 |
TeamDefeat | boolean | Yes | false |
Teams | integer | Yes | 0 |
TeamsLeft | integer | No | 0 |
function Trig_Summon_DeathAndDecay_Actions takes nothing returns nothing
local location DnD_PointBeingCast
set DnD_PointBeingCast = udg_DnD_InitPointBeingCast
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = udg_DnD_DnDSummoned
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set udg_DnD_DnDInitLocation = OffsetLocation(DnD_PointBeingCast, GetRandomReal(( ( udg_DnD_Area - ( udg_DnD_Area * 2.00 ) ) / 2.00 ), ( udg_DnD_Area / 2.00 )), GetRandomReal(( ( udg_DnD_Area - ( udg_DnD_Area * 2.00 ) ) / 2.00 ), ( udg_DnD_Area / 2.00 )))
call TriggerExecute( gg_trg_Summon_DnD )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_Summon_DeathAndDecay takes nothing returns nothing
set gg_trg_Summon_DeathAndDecay = CreateTrigger( )
call TriggerAddAction( gg_trg_Summon_DeathAndDecay, function Trig_Summon_DeathAndDecay_Actions )
endfunction
function Trig_Summon_DnD_Func004Func002001 takes nothing returns boolean
return ( IsUnitType(GetEnumUnit(), UNIT_TYPE_STRUCTURE) == true )
endfunction
function Trig_Summon_DnD_Func004A takes nothing returns nothing
if ( UnitHasBuffBJ(GetEnumUnit(), 'Bdtl') == true ) then
return
endif
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - udg_DnD_Damage ) )
if ( Trig_Summon_DnD_Func004Func002001() ) then
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - udg_DnD_BuildingAdder ) )
else
call DoNothing( )
endif
endfunction
function Trig_Summon_DnD_Func007Func002001 takes nothing returns boolean
return ( IsUnitType(GetEnumUnit(), UNIT_TYPE_STRUCTURE) == true )
endfunction
function Trig_Summon_DnD_Func007A takes nothing returns nothing
if ( UnitHasBuffBJ(GetEnumUnit(), 'Bdtl') == true ) then
return
endif
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - udg_DnD_Damage ) )
if ( Trig_Summon_DnD_Func007Func002001() ) then
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - udg_DnD_BuildingAdder ) )
else
call DoNothing( )
endif
endfunction
function Trig_Summon_DnD_Func010Func002001 takes nothing returns boolean
return ( IsUnitType(GetEnumUnit(), UNIT_TYPE_STRUCTURE) == true )
endfunction
function Trig_Summon_DnD_Func010A takes nothing returns nothing
if ( UnitHasBuffBJ(GetEnumUnit(), 'Bdtl') == true ) then
return
endif
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - udg_DnD_Damage ) )
if ( Trig_Summon_DnD_Func010Func002001() ) then
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - udg_DnD_BuildingAdder ) )
else
call DoNothing( )
endif
endfunction
function Trig_Summon_DnD_Func013Func002001 takes nothing returns boolean
return ( IsUnitType(GetEnumUnit(), UNIT_TYPE_STRUCTURE) == true )
endfunction
function Trig_Summon_DnD_Func013A takes nothing returns nothing
if ( UnitHasBuffBJ(GetEnumUnit(), 'Bdtl') == true ) then
return
endif
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - udg_DnD_Damage ) )
if ( Trig_Summon_DnD_Func013Func002001() ) then
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - udg_DnD_BuildingAdder ) )
else
call DoNothing( )
endif
endfunction
function Trig_Summon_DnD_Func016Func002001 takes nothing returns boolean
return ( IsUnitType(GetEnumUnit(), UNIT_TYPE_STRUCTURE) == true )
endfunction
function Trig_Summon_DnD_Func016A takes nothing returns nothing
if ( UnitHasBuffBJ(GetEnumUnit(), 'Bdtl') == true ) then
return
endif
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - udg_DnD_Damage ) )
if ( Trig_Summon_DnD_Func016Func002001() ) then
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - udg_DnD_BuildingAdder ) )
else
call DoNothing( )
endif
endfunction
function Trig_Summon_DnD_Func019Func002001 takes nothing returns boolean
return ( IsUnitType(GetEnumUnit(), UNIT_TYPE_STRUCTURE) == true )
endfunction
function Trig_Summon_DnD_Func019A takes nothing returns nothing
if ( UnitHasBuffBJ(GetEnumUnit(), 'Bdtl') == true ) then
return
endif
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - udg_DnD_Damage ) )
if ( Trig_Summon_DnD_Func019Func002001() ) then
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - udg_DnD_BuildingAdder ) )
else
call DoNothing( )
endif
endfunction
function Trig_Summon_DnD_Func022Func002001 takes nothing returns boolean
return ( IsUnitType(GetEnumUnit(), UNIT_TYPE_STRUCTURE) == true )
endfunction
function Trig_Summon_DnD_Func022A takes nothing returns nothing
if ( UnitHasBuffBJ(GetEnumUnit(), 'Bdtl') == true ) then
return
endif
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - udg_DnD_Damage ) )
if ( Trig_Summon_DnD_Func022Func002001() ) then
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - udg_DnD_BuildingAdder ) )
else
call DoNothing( )
endif
endfunction
function Trig_Summon_DnD_Func025Func002001 takes nothing returns boolean
return ( IsUnitType(GetEnumUnit(), UNIT_TYPE_STRUCTURE) == true )
endfunction
function Trig_Summon_DnD_Func025A takes nothing returns nothing
if ( UnitHasBuffBJ(GetEnumUnit(), 'Bdtl') == true ) then
return
endif
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - udg_DnD_Damage ) )
if ( Trig_Summon_DnD_Func025Func002001() ) then
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - udg_DnD_BuildingAdder ) )
else
call DoNothing( )
endif
endfunction
function Trig_Summon_DnD_Func028Func002001 takes nothing returns boolean
return ( IsUnitType(GetEnumUnit(), UNIT_TYPE_STRUCTURE) == true )
endfunction
function Trig_Summon_DnD_Func028A takes nothing returns nothing
if ( UnitHasBuffBJ(GetEnumUnit(), 'Bdtl') == true ) then
return
endif
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - udg_DnD_Damage ) )
if ( Trig_Summon_DnD_Func028Func002001() ) then
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - udg_DnD_BuildingAdder ) )
else
call DoNothing( )
endif
endfunction
function Trig_Summon_DnD_Func031Func002001 takes nothing returns boolean
return ( IsUnitType(GetEnumUnit(), UNIT_TYPE_STRUCTURE) == true )
endfunction
function Trig_Summon_DnD_Func031A takes nothing returns nothing
if ( UnitHasBuffBJ(GetEnumUnit(), 'Bdtl') == true ) then
return
endif
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - udg_DnD_Damage ) )
if ( Trig_Summon_DnD_Func031Func002001() ) then
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - udg_DnD_BuildingAdder ) )
else
call DoNothing( )
endif
endfunction
function Trig_Summon_DnD_Func034Func002001 takes nothing returns boolean
return ( IsUnitType(GetEnumUnit(), UNIT_TYPE_STRUCTURE) == true )
endfunction
function Trig_Summon_DnD_Func034A takes nothing returns nothing
if ( UnitHasBuffBJ(GetEnumUnit(), 'Bdtl') == true ) then
return
endif
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - udg_DnD_Damage ) )
if ( Trig_Summon_DnD_Func034Func002001() ) then
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - udg_DnD_BuildingAdder ) )
else
call DoNothing( )
endif
endfunction
function Trig_Summon_DnD_Actions takes nothing returns nothing
local location DnD_DnDLocation
set DnD_DnDLocation = udg_DnD_DnDInitLocation
call AddSpecialEffectLocBJ( DnD_DnDLocation, "Abilities\\Spells\\Undead\\DeathandDecay\\DeathandDecayTarget.mdl" )
set bj_wantDestroyGroup = true
call ForGroupBJ( GetUnitsInRangeOfLocAll(udg_DnD_DnDDamageArea, DnD_DnDLocation), function Trig_Summon_DnD_Func004A )
call TriggerSleepAction( 1.00 )
call AddSpecialEffectLocBJ( DnD_DnDLocation, "Abilities\\Spells\\Undead\\DeathandDecay\\DeathandDecayTarget.mdl" )
set bj_wantDestroyGroup = true
call ForGroupBJ( GetUnitsInRangeOfLocAll(udg_DnD_DnDDamageArea, DnD_DnDLocation), function Trig_Summon_DnD_Func007A )
call TriggerSleepAction( 1.00 )
call AddSpecialEffectLocBJ( DnD_DnDLocation, "Abilities\\Spells\\Undead\\DeathandDecay\\DeathandDecayTarget.mdl" )
set bj_wantDestroyGroup = true
call ForGroupBJ( GetUnitsInRangeOfLocAll(udg_DnD_DnDDamageArea, DnD_DnDLocation), function Trig_Summon_DnD_Func010A )
call TriggerSleepAction( 1.00 )
call AddSpecialEffectLocBJ( DnD_DnDLocation, "Abilities\\Spells\\Undead\\DeathandDecay\\DeathandDecayTarget.mdl" )
set bj_wantDestroyGroup = true
call ForGroupBJ( GetUnitsInRangeOfLocAll(udg_DnD_DnDDamageArea, DnD_DnDLocation), function Trig_Summon_DnD_Func013A )
call TriggerSleepAction( 1.00 )
call AddSpecialEffectLocBJ( DnD_DnDLocation, "Abilities\\Spells\\Undead\\DeathandDecay\\DeathandDecayTarget.mdl" )
set bj_wantDestroyGroup = true
call ForGroupBJ( GetUnitsInRangeOfLocAll(udg_DnD_DnDDamageArea, DnD_DnDLocation), function Trig_Summon_DnD_Func016A )
call TriggerSleepAction( 1.00 )
call AddSpecialEffectLocBJ( DnD_DnDLocation, "Abilities\\Spells\\Undead\\DeathandDecay\\DeathandDecayTarget.mdl" )
set bj_wantDestroyGroup = true
call ForGroupBJ( GetUnitsInRangeOfLocAll(udg_DnD_DnDDamageArea, DnD_DnDLocation), function Trig_Summon_DnD_Func019A )
call TriggerSleepAction( 1.00 )
call AddSpecialEffectLocBJ( DnD_DnDLocation, "Abilities\\Spells\\Undead\\DeathandDecay\\DeathandDecayTarget.mdl" )
set bj_wantDestroyGroup = true
call ForGroupBJ( GetUnitsInRangeOfLocAll(udg_DnD_DnDDamageArea, DnD_DnDLocation), function Trig_Summon_DnD_Func022A )
call TriggerSleepAction( 1.00 )
call AddSpecialEffectLocBJ( DnD_DnDLocation, "Abilities\\Spells\\Undead\\DeathandDecay\\DeathandDecayTarget.mdl" )
set bj_wantDestroyGroup = true
call ForGroupBJ( GetUnitsInRangeOfLocAll(udg_DnD_DnDDamageArea, DnD_DnDLocation), function Trig_Summon_DnD_Func025A )
call TriggerSleepAction( 1.00 )
call AddSpecialEffectLocBJ( DnD_DnDLocation, "Abilities\\Spells\\Undead\\DeathandDecay\\DeathandDecayTarget.mdl" )
set bj_wantDestroyGroup = true
call ForGroupBJ( GetUnitsInRangeOfLocAll(udg_DnD_DnDDamageArea, DnD_DnDLocation), function Trig_Summon_DnD_Func028A )
call TriggerSleepAction( 1.00 )
call AddSpecialEffectLocBJ( DnD_DnDLocation, "Abilities\\Spells\\Undead\\DeathandDecay\\DeathandDecayTarget.mdl" )
set bj_wantDestroyGroup = true
call ForGroupBJ( GetUnitsInRangeOfLocAll(udg_DnD_DnDDamageArea, DnD_DnDLocation), function Trig_Summon_DnD_Func031A )
call TriggerSleepAction( 1.00 )
call AddSpecialEffectLocBJ( DnD_DnDLocation, "Abilities\\Spells\\Undead\\DeathandDecay\\DeathandDecayTarget.mdl" )
set bj_wantDestroyGroup = true
call ForGroupBJ( GetUnitsInRangeOfLocAll(udg_DnD_DnDDamageArea, DnD_DnDLocation), function Trig_Summon_DnD_Func034A )
endfunction
//===========================================================================
function InitTrig_Summon_DnD takes nothing returns nothing
set gg_trg_Summon_DnD = CreateTrigger( )
call TriggerAddAction( gg_trg_Summon_DnD, function Trig_Summon_DnD_Actions )
endfunction
function Trig_Summon_Blizzard_Actions takes nothing returns nothing
local location Blizz_PointBeingCast
set Blizz_PointBeingCast = udg_Blizz_InitPointBeingCast
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = udg_Blizz_IceShardsSummoned
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set udg_Blizz_InitIceShardLocation = OffsetLocation(Blizz_PointBeingCast, GetRandomReal(( ( udg_Blizz_Area - ( udg_Blizz_Area * 2.00 ) ) / 2.00 ), ( udg_Blizz_Area / 2.00 )), GetRandomReal(( ( udg_Blizz_Area - ( udg_Blizz_Area * 2.00 ) ) / 2.00 ), ( udg_Blizz_Area / 2.00 )))
call TriggerExecute( gg_trg_Summon_Ice_Shard )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_Summon_Blizzard takes nothing returns nothing
set gg_trg_Summon_Blizzard = CreateTrigger( )
call TriggerAddAction( gg_trg_Summon_Blizzard, function Trig_Summon_Blizzard_Actions )
endfunction
function Trig_Summon_Ice_Shard_Func004Func002001 takes nothing returns boolean
return ( IsUnitType(GetEnumUnit(), UNIT_TYPE_STRUCTURE) == true )
endfunction
function Trig_Summon_Ice_Shard_Func004A takes nothing returns nothing
if ( UnitHasBuffBJ(GetEnumUnit(), 'Bdtl') == true ) then
return
endif
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - udg_Blizz_Damage ) )
if ( Trig_Summon_Ice_Shard_Func004Func002001() ) then
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) + udg_Blizz_Dmg_BuildingReduction ) )
else
call DoNothing( )
endif
endfunction
function Trig_Summon_Ice_Shard_Func007Func002001 takes nothing returns boolean
return ( IsUnitType(GetEnumUnit(), UNIT_TYPE_STRUCTURE) == true )
endfunction
function Trig_Summon_Ice_Shard_Func007A takes nothing returns nothing
if ( UnitHasBuffBJ(GetEnumUnit(), 'Bdtl') == true ) then
return
endif
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - udg_Blizz_Damage ) )
if ( Trig_Summon_Ice_Shard_Func007Func002001() ) then
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) + udg_Blizz_Dmg_BuildingReduction ) )
else
call DoNothing( )
endif
endfunction
function Trig_Summon_Ice_Shard_Func010Func002001 takes nothing returns boolean
return ( IsUnitType(GetEnumUnit(), UNIT_TYPE_STRUCTURE) == true )
endfunction
function Trig_Summon_Ice_Shard_Func010A takes nothing returns nothing
if ( UnitHasBuffBJ(GetEnumUnit(), 'Bdtl') == true ) then
return
endif
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - udg_Blizz_Damage ) )
if ( Trig_Summon_Ice_Shard_Func010Func002001() ) then
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) + udg_Blizz_Dmg_BuildingReduction ) )
else
call DoNothing( )
endif
endfunction
function Trig_Summon_Ice_Shard_Func013Func002001 takes nothing returns boolean
return ( IsUnitType(GetEnumUnit(), UNIT_TYPE_STRUCTURE) == true )
endfunction
function Trig_Summon_Ice_Shard_Func013A takes nothing returns nothing
if ( UnitHasBuffBJ(GetEnumUnit(), 'Bdtl') == true ) then
return
endif
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - udg_Blizz_Damage ) )
if ( Trig_Summon_Ice_Shard_Func013Func002001() ) then
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) + udg_Blizz_Dmg_BuildingReduction ) )
else
call DoNothing( )
endif
endfunction
function Trig_Summon_Ice_Shard_Func016Func002001 takes nothing returns boolean
return ( IsUnitType(GetEnumUnit(), UNIT_TYPE_STRUCTURE) == true )
endfunction
function Trig_Summon_Ice_Shard_Func016A takes nothing returns nothing
if ( UnitHasBuffBJ(GetEnumUnit(), 'Bdtl') == true ) then
return
endif
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - udg_Blizz_Damage ) )
if ( Trig_Summon_Ice_Shard_Func016Func002001() ) then
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) + udg_Blizz_Dmg_BuildingReduction ) )
else
call DoNothing( )
endif
endfunction
function Trig_Summon_Ice_Shard_Func019Func002001 takes nothing returns boolean
return ( IsUnitType(GetEnumUnit(), UNIT_TYPE_STRUCTURE) == true )
endfunction
function Trig_Summon_Ice_Shard_Func019A takes nothing returns nothing
if ( UnitHasBuffBJ(GetEnumUnit(), 'Bdtl') == true ) then
return
endif
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - udg_Blizz_Damage ) )
if ( Trig_Summon_Ice_Shard_Func019Func002001() ) then
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) + udg_Blizz_Dmg_BuildingReduction ) )
else
call DoNothing( )
endif
endfunction
function Trig_Summon_Ice_Shard_Func022Func002001 takes nothing returns boolean
return ( IsUnitType(GetEnumUnit(), UNIT_TYPE_STRUCTURE) == true )
endfunction
function Trig_Summon_Ice_Shard_Func022A takes nothing returns nothing
if ( UnitHasBuffBJ(GetEnumUnit(), 'Bdtl') == true ) then
return
endif
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - udg_Blizz_Damage ) )
if ( Trig_Summon_Ice_Shard_Func022Func002001() ) then
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) + udg_Blizz_Dmg_BuildingReduction ) )
else
call DoNothing( )
endif
endfunction
function Trig_Summon_Ice_Shard_Func025Func002001 takes nothing returns boolean
return ( IsUnitType(GetEnumUnit(), UNIT_TYPE_STRUCTURE) == true )
endfunction
function Trig_Summon_Ice_Shard_Func025A takes nothing returns nothing
if ( UnitHasBuffBJ(GetEnumUnit(), 'Bdtl') == true ) then
return
endif
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - udg_Blizz_Damage ) )
if ( Trig_Summon_Ice_Shard_Func025Func002001() ) then
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) + udg_Blizz_Dmg_BuildingReduction ) )
else
call DoNothing( )
endif
endfunction
function Trig_Summon_Ice_Shard_Func028Func002001 takes nothing returns boolean
return ( IsUnitType(GetEnumUnit(), UNIT_TYPE_STRUCTURE) == true )
endfunction
function Trig_Summon_Ice_Shard_Func028A takes nothing returns nothing
if ( UnitHasBuffBJ(GetEnumUnit(), 'Bdtl') == true ) then
return
endif
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - udg_Blizz_Damage ) )
if ( Trig_Summon_Ice_Shard_Func028Func002001() ) then
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) + udg_Blizz_Dmg_BuildingReduction ) )
else
call DoNothing( )
endif
endfunction
function Trig_Summon_Ice_Shard_Func031Func002001 takes nothing returns boolean
return ( IsUnitType(GetEnumUnit(), UNIT_TYPE_STRUCTURE) == true )
endfunction
function Trig_Summon_Ice_Shard_Func031A takes nothing returns nothing
if ( UnitHasBuffBJ(GetEnumUnit(), 'Bdtl') == true ) then
return
endif
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - udg_Blizz_Damage ) )
if ( Trig_Summon_Ice_Shard_Func031Func002001() ) then
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) + udg_Blizz_Dmg_BuildingReduction ) )
else
call DoNothing( )
endif
endfunction
function Trig_Summon_Ice_Shard_Func034Func002001 takes nothing returns boolean
return ( IsUnitType(GetEnumUnit(), UNIT_TYPE_STRUCTURE) == true )
endfunction
function Trig_Summon_Ice_Shard_Func034A takes nothing returns nothing
if ( UnitHasBuffBJ(GetEnumUnit(), 'Bdtl') == true ) then
return
endif
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - udg_Blizz_Damage ) )
if ( Trig_Summon_Ice_Shard_Func034Func002001() ) then
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) + udg_Blizz_Dmg_BuildingReduction ) )
else
call DoNothing( )
endif
endfunction
function Trig_Summon_Ice_Shard_Actions takes nothing returns nothing
local location Blizz_IceShardLocation
set Blizz_IceShardLocation = udg_Blizz_InitIceShardLocation
call AddSpecialEffectLocBJ( Blizz_IceShardLocation, "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
set bj_wantDestroyGroup = true
call ForGroupBJ( GetUnitsInRangeOfLocAll(udg_Blizz_ShardDamageArea, Blizz_IceShardLocation), function Trig_Summon_Ice_Shard_Func004A )
call TriggerSleepAction( 1.00 )
call AddSpecialEffectLocBJ( Blizz_IceShardLocation, "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
set bj_wantDestroyGroup = true
call ForGroupBJ( GetUnitsInRangeOfLocAll(udg_Blizz_ShardDamageArea, Blizz_IceShardLocation), function Trig_Summon_Ice_Shard_Func007A )
call TriggerSleepAction( 1.00 )
call AddSpecialEffectLocBJ( Blizz_IceShardLocation, "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
set bj_wantDestroyGroup = true
call ForGroupBJ( GetUnitsInRangeOfLocAll(udg_Blizz_ShardDamageArea, Blizz_IceShardLocation), function Trig_Summon_Ice_Shard_Func010A )
call TriggerSleepAction( 1.00 )
call AddSpecialEffectLocBJ( Blizz_IceShardLocation, "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
set bj_wantDestroyGroup = true
call ForGroupBJ( GetUnitsInRangeOfLocAll(udg_Blizz_ShardDamageArea, Blizz_IceShardLocation), function Trig_Summon_Ice_Shard_Func013A )
call TriggerSleepAction( 1.00 )
call AddSpecialEffectLocBJ( Blizz_IceShardLocation, "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
set bj_wantDestroyGroup = true
call ForGroupBJ( GetUnitsInRangeOfLocAll(udg_Blizz_ShardDamageArea, Blizz_IceShardLocation), function Trig_Summon_Ice_Shard_Func016A )
call TriggerSleepAction( 1.00 )
call AddSpecialEffectLocBJ( Blizz_IceShardLocation, "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
set bj_wantDestroyGroup = true
call ForGroupBJ( GetUnitsInRangeOfLocAll(udg_Blizz_ShardDamageArea, Blizz_IceShardLocation), function Trig_Summon_Ice_Shard_Func019A )
call TriggerSleepAction( 1.00 )
call AddSpecialEffectLocBJ( Blizz_IceShardLocation, "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
set bj_wantDestroyGroup = true
call ForGroupBJ( GetUnitsInRangeOfLocAll(udg_Blizz_ShardDamageArea, Blizz_IceShardLocation), function Trig_Summon_Ice_Shard_Func022A )
call TriggerSleepAction( 1.00 )
call AddSpecialEffectLocBJ( Blizz_IceShardLocation, "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
set bj_wantDestroyGroup = true
call ForGroupBJ( GetUnitsInRangeOfLocAll(udg_Blizz_ShardDamageArea, Blizz_IceShardLocation), function Trig_Summon_Ice_Shard_Func025A )
call TriggerSleepAction( 1.00 )
call AddSpecialEffectLocBJ( Blizz_IceShardLocation, "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
set bj_wantDestroyGroup = true
call ForGroupBJ( GetUnitsInRangeOfLocAll(udg_Blizz_ShardDamageArea, Blizz_IceShardLocation), function Trig_Summon_Ice_Shard_Func028A )
call TriggerSleepAction( 1.00 )
call AddSpecialEffectLocBJ( Blizz_IceShardLocation, "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
set bj_wantDestroyGroup = true
call ForGroupBJ( GetUnitsInRangeOfLocAll(udg_Blizz_ShardDamageArea, Blizz_IceShardLocation), function Trig_Summon_Ice_Shard_Func031A )
call TriggerSleepAction( 1.00 )
call AddSpecialEffectLocBJ( Blizz_IceShardLocation, "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
set bj_wantDestroyGroup = true
call ForGroupBJ( GetUnitsInRangeOfLocAll(udg_Blizz_ShardDamageArea, Blizz_IceShardLocation), function Trig_Summon_Ice_Shard_Func034A )
endfunction
//===========================================================================
function InitTrig_Summon_Ice_Shard takes nothing returns nothing
set gg_trg_Summon_Ice_Shard = CreateTrigger( )
call TriggerAddAction( gg_trg_Summon_Ice_Shard, function Trig_Summon_Ice_Shard_Actions )
endfunction
function Trig_Harvest_Gold_Test2_23_Actions takes nothing returns nothing
local unit Trig_Harvest_Gold_Test2_Copy_Unit = GetTriggerUnit()
// If triggering unit is not peasant or peon
if (not (GetUnitTypeId(GetTriggerUnit()) == 'h000')) then
if(not (GetUnitTypeId(GetTriggerUnit()) == 'o000')) then
return
else
endif
else
endif
// call TriggerSleepAction( 0.90 )
loop
exitwhen( IsUnitHidden(Trig_Harvest_Gold_Test2_Copy_Unit) == true )
if (not (IsUnitInRange(Trig_Harvest_Gold_Test2_Copy_Unit, gg_unit_ngol_0023, 256)) ) then
return
endif
call TriggerSleepAction( RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL, 0.10) )
endloop
if ( IsUnitInRange(Trig_Harvest_Gold_Test2_Copy_Unit, gg_unit_ngol_0023, 118) == false ) then
return
else
endif
if (not (UnitId2String(GetUnitCurrentOrder(Trig_Harvest_Gold_Test2_Copy_Unit)) == null) ) then
return
else
endif
if ( IsUnitHidden(Trig_Harvest_Gold_Test2_Copy_Unit) ) then
if ( udg_Player_Tier[GetConvertedPlayerId(GetOwningPlayer(Trig_Harvest_Gold_Test2_Copy_Unit))] == 2 ) then
call AddResourceAmount( gg_unit_ngol_0023, 10 )
else
if ( udg_Player_Tier[GetConvertedPlayerId(GetOwningPlayer(Trig_Harvest_Gold_Test2_Copy_Unit))] == 3 ) then
call AddResourceAmount( gg_unit_ngol_0023, 20 )
else
endif
endif
else
endif
//CLEAN
endfunction
//===========================================================================
function InitTrig_Harvest_Gold_23 takes nothing returns nothing
set gg_trg_Harvest_Gold_23 = CreateTrigger( )
call TriggerRegisterUnitInRangeSimple( gg_trg_Harvest_Gold_23, 256.00, gg_unit_ngol_0023 )
call TriggerAddAction( gg_trg_Harvest_Gold_23, function Trig_Harvest_Gold_Test2_23_Actions )
endfunction
function Trig_Harvest_Gold_Test2_22_Actions takes nothing returns nothing
local unit Trig_Harvest_Gold_Test2_Copy_Unit = GetTriggerUnit()
// If triggering unit is not peasant or peon
if (not (GetUnitTypeId(GetTriggerUnit()) == 'h000')) then
if(not (GetUnitTypeId(GetTriggerUnit()) == 'o000')) then
return
else
endif
else
endif
// call TriggerSleepAction( 0.90 )
loop
exitwhen( IsUnitHidden(Trig_Harvest_Gold_Test2_Copy_Unit) == true )
if (not (IsUnitInRange(Trig_Harvest_Gold_Test2_Copy_Unit, gg_unit_ngol_0022, 256)) ) then
return
endif
call TriggerSleepAction( RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL, 0.10) )
endloop
if ( IsUnitInRange(Trig_Harvest_Gold_Test2_Copy_Unit, gg_unit_ngol_0022, 118) == false ) then
return
else
endif
if (not (UnitId2String(GetUnitCurrentOrder(Trig_Harvest_Gold_Test2_Copy_Unit)) == null) ) then
return
else
endif
if ( IsUnitHidden(Trig_Harvest_Gold_Test2_Copy_Unit) ) then
if ( udg_Player_Tier[GetConvertedPlayerId(GetOwningPlayer(Trig_Harvest_Gold_Test2_Copy_Unit))] == 2 ) then
call AddResourceAmount( gg_unit_ngol_0022, 10 )
else
if ( udg_Player_Tier[GetConvertedPlayerId(GetOwningPlayer(Trig_Harvest_Gold_Test2_Copy_Unit))] == 3 ) then
call AddResourceAmount( gg_unit_ngol_0022, 20 )
else
endif
endif
else
endif
//CLEAN
endfunction
//===========================================================================
function InitTrig_Harvest_Gold_22 takes nothing returns nothing
set gg_trg_Harvest_Gold_22 = CreateTrigger( )
call TriggerRegisterUnitInRangeSimple( gg_trg_Harvest_Gold_22, 256.00, gg_unit_ngol_0022 )
call TriggerAddAction( gg_trg_Harvest_Gold_22, function Trig_Harvest_Gold_Test2_22_Actions )
endfunction
function Trig_Harvest_Gold_Test2_21_Actions takes nothing returns nothing
local unit Trig_Harvest_Gold_Test2_Copy_Unit = GetTriggerUnit()
// If triggering unit is not peasant or peon
if (not (GetUnitTypeId(GetTriggerUnit()) == 'h000')) then
if(not (GetUnitTypeId(GetTriggerUnit()) == 'o000')) then
return
else
endif
else
endif
// call TriggerSleepAction( 0.90 )
loop
exitwhen( IsUnitHidden(Trig_Harvest_Gold_Test2_Copy_Unit) == true )
if (not (IsUnitInRange(Trig_Harvest_Gold_Test2_Copy_Unit, gg_unit_ngol_0021, 256)) ) then
return
endif
call TriggerSleepAction( RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL, 0.10) )
endloop
if ( IsUnitInRange(Trig_Harvest_Gold_Test2_Copy_Unit, gg_unit_ngol_0021, 118) == false ) then
return
else
endif
if (not (UnitId2String(GetUnitCurrentOrder(Trig_Harvest_Gold_Test2_Copy_Unit)) == null) ) then
return
else
endif
if ( IsUnitHidden(Trig_Harvest_Gold_Test2_Copy_Unit) ) then
if ( udg_Player_Tier[GetConvertedPlayerId(GetOwningPlayer(Trig_Harvest_Gold_Test2_Copy_Unit))] == 2 ) then
call AddResourceAmount( gg_unit_ngol_0021, 10 )
else
if ( udg_Player_Tier[GetConvertedPlayerId(GetOwningPlayer(Trig_Harvest_Gold_Test2_Copy_Unit))] == 3 ) then
call AddResourceAmount( gg_unit_ngol_0021, 20 )
else
endif
endif
else
endif
//CLEAN
endfunction
//===========================================================================
function InitTrig_Harvest_Gold_21 takes nothing returns nothing
set gg_trg_Harvest_Gold_21 = CreateTrigger( )
call TriggerRegisterUnitInRangeSimple( gg_trg_Harvest_Gold_21, 256.00, gg_unit_ngol_0021 )
call TriggerAddAction( gg_trg_Harvest_Gold_21, function Trig_Harvest_Gold_Test2_21_Actions )
endfunction
function Trig_Harvest_Gold_Test2_20_Actions takes nothing returns nothing
local unit Trig_Harvest_Gold_Test2_Copy_Unit = GetTriggerUnit()
// If triggering unit is not peasant or peon
if (not (GetUnitTypeId(GetTriggerUnit()) == 'h000')) then
if(not (GetUnitTypeId(GetTriggerUnit()) == 'o000')) then
return
else
endif
else
endif
// call TriggerSleepAction( 0.90 )
loop
exitwhen( IsUnitHidden(Trig_Harvest_Gold_Test2_Copy_Unit) == true )
if (not (IsUnitInRange(Trig_Harvest_Gold_Test2_Copy_Unit, gg_unit_ngol_0020, 256)) ) then
return
endif
call TriggerSleepAction( RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL, 0.10) )
endloop
if ( IsUnitInRange(Trig_Harvest_Gold_Test2_Copy_Unit, gg_unit_ngol_0020, 118) == false ) then
return
else
endif
if (not (UnitId2String(GetUnitCurrentOrder(Trig_Harvest_Gold_Test2_Copy_Unit)) == null) ) then
return
else
endif
if ( IsUnitHidden(Trig_Harvest_Gold_Test2_Copy_Unit) ) then
if ( udg_Player_Tier[GetConvertedPlayerId(GetOwningPlayer(Trig_Harvest_Gold_Test2_Copy_Unit))] == 2 ) then
call AddResourceAmount( gg_unit_ngol_0020, 10 )
else
if ( udg_Player_Tier[GetConvertedPlayerId(GetOwningPlayer(Trig_Harvest_Gold_Test2_Copy_Unit))] == 3 ) then
call AddResourceAmount( gg_unit_ngol_0020, 20 )
else
endif
endif
else
endif
//CLEAN
endfunction
//===========================================================================
function InitTrig_Harvest_Gold_20 takes nothing returns nothing
set gg_trg_Harvest_Gold_20 = CreateTrigger( )
call TriggerRegisterUnitInRangeSimple( gg_trg_Harvest_Gold_20, 256.00, gg_unit_ngol_0020 )
call TriggerAddAction( gg_trg_Harvest_Gold_20, function Trig_Harvest_Gold_Test2_20_Actions )
endfunction
function Trig_Harvest_Gold_Test2_19_Actions takes nothing returns nothing
local unit Trig_Harvest_Gold_Test2_Copy_Unit = GetTriggerUnit()
// If triggering unit is not peasant or peon
if (not (GetUnitTypeId(GetTriggerUnit()) == 'h000')) then
if(not (GetUnitTypeId(GetTriggerUnit()) == 'o000')) then
return
else
endif
else
endif
// call TriggerSleepAction( 0.90 )
loop
exitwhen( IsUnitHidden(Trig_Harvest_Gold_Test2_Copy_Unit) == true )
if (not (IsUnitInRange(Trig_Harvest_Gold_Test2_Copy_Unit, gg_unit_ngol_0019, 256)) ) then
return
endif
call TriggerSleepAction( RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL, 0.10) )
endloop
if ( IsUnitInRange(Trig_Harvest_Gold_Test2_Copy_Unit, gg_unit_ngol_0019, 118) == false ) then
return
else
endif
if (not (UnitId2String(GetUnitCurrentOrder(Trig_Harvest_Gold_Test2_Copy_Unit)) == null) ) then
return
else
endif
if ( IsUnitHidden(Trig_Harvest_Gold_Test2_Copy_Unit) ) then
if ( udg_Player_Tier[GetConvertedPlayerId(GetOwningPlayer(Trig_Harvest_Gold_Test2_Copy_Unit))] == 2 ) then
call AddResourceAmount( gg_unit_ngol_0019, 10 )
else
if ( udg_Player_Tier[GetConvertedPlayerId(GetOwningPlayer(Trig_Harvest_Gold_Test2_Copy_Unit))] == 3 ) then
call AddResourceAmount( gg_unit_ngol_0019, 20 )
else
endif
endif
else
endif
//CLEAN
endfunction
//===========================================================================
function InitTrig_Harvest_Gold_19 takes nothing returns nothing
set gg_trg_Harvest_Gold_19 = CreateTrigger( )
call TriggerRegisterUnitInRangeSimple( gg_trg_Harvest_Gold_19, 256.00, gg_unit_ngol_0019 )
call TriggerAddAction( gg_trg_Harvest_Gold_19, function Trig_Harvest_Gold_Test2_19_Actions )
endfunction
function Trig_Harvest_Gold_Test2_18_Actions takes nothing returns nothing
local unit Trig_Harvest_Gold_Test2_Copy_Unit = GetTriggerUnit()
// If triggering unit is not peasant or peon
if (not (GetUnitTypeId(GetTriggerUnit()) == 'h000')) then
if(not (GetUnitTypeId(GetTriggerUnit()) == 'o000')) then
return
else
endif
else
endif
// call TriggerSleepAction( 0.90 )
loop
exitwhen( IsUnitHidden(Trig_Harvest_Gold_Test2_Copy_Unit) == true )
if (not (IsUnitInRange(Trig_Harvest_Gold_Test2_Copy_Unit, gg_unit_ngol_0018, 256)) ) then
return
endif
call TriggerSleepAction( RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL, 0.10) )
endloop
if ( IsUnitInRange(Trig_Harvest_Gold_Test2_Copy_Unit, gg_unit_ngol_0018, 118) == false ) then
return
else
endif
if (not (UnitId2String(GetUnitCurrentOrder(Trig_Harvest_Gold_Test2_Copy_Unit)) == null) ) then
return
else
endif
if ( IsUnitHidden(Trig_Harvest_Gold_Test2_Copy_Unit) ) then
if ( udg_Player_Tier[GetConvertedPlayerId(GetOwningPlayer(Trig_Harvest_Gold_Test2_Copy_Unit))] == 2 ) then
call AddResourceAmount( gg_unit_ngol_0018, 10 )
else
if ( udg_Player_Tier[GetConvertedPlayerId(GetOwningPlayer(Trig_Harvest_Gold_Test2_Copy_Unit))] == 3 ) then
call AddResourceAmount( gg_unit_ngol_0018, 20 )
else
endif
endif
else
endif
//CLEAN
endfunction
//===========================================================================
function InitTrig_Harvest_Gold_18 takes nothing returns nothing
set gg_trg_Harvest_Gold_18 = CreateTrigger( )
call TriggerRegisterUnitInRangeSimple( gg_trg_Harvest_Gold_18, 256.00, gg_unit_ngol_0018 )
call TriggerAddAction( gg_trg_Harvest_Gold_18, function Trig_Harvest_Gold_Test2_18_Actions )
endfunction
function Trig_Harvest_Gold_Test2_17_Actions takes nothing returns nothing
local unit Trig_Harvest_Gold_Test2_Copy_Unit = GetTriggerUnit()
// If triggering unit is not peasant or peon
if (not (GetUnitTypeId(GetTriggerUnit()) == 'h000')) then
if(not (GetUnitTypeId(GetTriggerUnit()) == 'o000')) then
return
else
endif
else
endif
// call TriggerSleepAction( 0.90 )
loop
exitwhen( IsUnitHidden(Trig_Harvest_Gold_Test2_Copy_Unit) == true )
if (not (IsUnitInRange(Trig_Harvest_Gold_Test2_Copy_Unit, gg_unit_ngol_0017, 256)) ) then
return
endif
call TriggerSleepAction( RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL, 0.10) )
endloop
if ( IsUnitInRange(Trig_Harvest_Gold_Test2_Copy_Unit, gg_unit_ngol_0017, 118) == false ) then
return
else
endif
if (not (UnitId2String(GetUnitCurrentOrder(Trig_Harvest_Gold_Test2_Copy_Unit)) == null) ) then
return
else
endif
if ( IsUnitHidden(Trig_Harvest_Gold_Test2_Copy_Unit) ) then
if ( udg_Player_Tier[GetConvertedPlayerId(GetOwningPlayer(Trig_Harvest_Gold_Test2_Copy_Unit))] == 2 ) then
call AddResourceAmount( gg_unit_ngol_0017, 10 )
else
if ( udg_Player_Tier[GetConvertedPlayerId(GetOwningPlayer(Trig_Harvest_Gold_Test2_Copy_Unit))] == 3 ) then
call AddResourceAmount( gg_unit_ngol_0017, 20 )
else
endif
endif
else
endif
endfunction
//===========================================================================
function InitTrig_Harvest_Gold_17 takes nothing returns nothing
set gg_trg_Harvest_Gold_17 = CreateTrigger( )
call TriggerRegisterUnitInRangeSimple( gg_trg_Harvest_Gold_17, 256.00, gg_unit_ngol_0017 )
call TriggerAddAction( gg_trg_Harvest_Gold_17, function Trig_Harvest_Gold_Test2_17_Actions )
endfunction
function Trig_Harvest_Gold_Test2_Copy_Actions takes nothing returns nothing
local unit Trig_Harvest_Gold_Test2_Copy_Unit = GetTriggerUnit()
// If triggering unit is not peasant or peon
if (not (GetUnitTypeId(GetTriggerUnit()) == 'h000')) then
if(not (GetUnitTypeId(GetTriggerUnit()) == 'o000')) then
return
else
endif
else
endif
// call TriggerSleepAction( 0.90 )
loop
exitwhen( IsUnitHidden(Trig_Harvest_Gold_Test2_Copy_Unit) == true )
if (not (IsUnitInRange(Trig_Harvest_Gold_Test2_Copy_Unit, gg_unit_ngol_0016, 256)) ) then
return
endif
call TriggerSleepAction( RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL, 0.50) )
endloop
if ( IsUnitInRange(Trig_Harvest_Gold_Test2_Copy_Unit, gg_unit_ngol_0016, 118) == false ) then
return
else
endif
if (not (UnitId2String(GetUnitCurrentOrder(Trig_Harvest_Gold_Test2_Copy_Unit)) == null) ) then
return
else
endif
if ( IsUnitHidden(Trig_Harvest_Gold_Test2_Copy_Unit) ) then
if ( udg_Player_Tier[GetConvertedPlayerId(GetOwningPlayer(Trig_Harvest_Gold_Test2_Copy_Unit))] == 2 ) then
call AddResourceAmount( gg_unit_ngol_0016, 10 )
else
if ( udg_Player_Tier[GetConvertedPlayerId(GetOwningPlayer(Trig_Harvest_Gold_Test2_Copy_Unit))] == 3 ) then
call AddResourceAmount( gg_unit_ngol_0016, 20 )
else
endif
endif
else
endif
// CLEAN
endfunction
//===========================================================================
function InitTrig_Harvest_Gold_16 takes nothing returns nothing
set gg_trg_Harvest_Gold_16 = CreateTrigger( )
call TriggerRegisterUnitInRangeSimple( gg_trg_Harvest_Gold_16, 256.00, gg_unit_ngol_0016 )
call TriggerAddAction( gg_trg_Harvest_Gold_16, function Trig_Harvest_Gold_Test2_Copy_Actions )
endfunction
function Trig_Harvest_Gold_Test2_15_Actions takes nothing returns nothing
local unit Trig_Harvest_Gold_Test2_Copy_Unit = GetTriggerUnit()
// If triggering unit is not peasant or peon
if (not (GetUnitTypeId(GetTriggerUnit()) == 'h000')) then
if(not (GetUnitTypeId(GetTriggerUnit()) == 'o000')) then
return
else
endif
else
endif
// call TriggerSleepAction( 0.90 )
loop
exitwhen( IsUnitHidden(Trig_Harvest_Gold_Test2_Copy_Unit) == true )
if (not (IsUnitInRange(Trig_Harvest_Gold_Test2_Copy_Unit, gg_unit_ngol_0015, 256)) ) then
return
endif
call TriggerSleepAction( RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL, 0.50) )
endloop
if ( IsUnitInRange(Trig_Harvest_Gold_Test2_Copy_Unit, gg_unit_ngol_0015, 118) == false ) then
return
else
endif
if (not (UnitId2String(GetUnitCurrentOrder(Trig_Harvest_Gold_Test2_Copy_Unit)) == null) ) then
return
else
endif
if ( IsUnitHidden(Trig_Harvest_Gold_Test2_Copy_Unit) ) then
if ( udg_Player_Tier[GetConvertedPlayerId(GetOwningPlayer(Trig_Harvest_Gold_Test2_Copy_Unit))] == 2 ) then
call AddResourceAmount( gg_unit_ngol_0015, 10 )
else
if ( udg_Player_Tier[GetConvertedPlayerId(GetOwningPlayer(Trig_Harvest_Gold_Test2_Copy_Unit))] == 3 ) then
call AddResourceAmount( gg_unit_ngol_0015, 20 )
else
endif
endif
else
endif
endfunction
//===========================================================================
function InitTrig_Harvest_Gold_15 takes nothing returns nothing
set gg_trg_Harvest_Gold_15 = CreateTrigger( )
call TriggerRegisterUnitInRangeSimple( gg_trg_Harvest_Gold_15, 256.00, gg_unit_ngol_0015 )
call TriggerAddAction( gg_trg_Harvest_Gold_15, function Trig_Harvest_Gold_Test2_15_Actions )
endfunction
function Trig_Harvest_Gold_Test2_14_Actions takes nothing returns nothing
local unit Trig_Harvest_Gold_Test2_Copy_Unit = GetTriggerUnit()
// If triggering unit is not peasant or peon
if (not (GetUnitTypeId(GetTriggerUnit()) == 'h000')) then
if(not (GetUnitTypeId(GetTriggerUnit()) == 'o000')) then
return
else
endif
else
endif
// call TriggerSleepAction( 0.90 )
loop
exitwhen( IsUnitHidden(Trig_Harvest_Gold_Test2_Copy_Unit) == true )
if (not (IsUnitInRange(Trig_Harvest_Gold_Test2_Copy_Unit, gg_unit_ngol_0014, 256)) ) then
return
endif
call TriggerSleepAction( RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL, 0.10) )
endloop
if ( IsUnitInRange(Trig_Harvest_Gold_Test2_Copy_Unit, gg_unit_ngol_0014, 118) == false ) then
return
else
endif
if (not (UnitId2String(GetUnitCurrentOrder(Trig_Harvest_Gold_Test2_Copy_Unit)) == null) ) then
return
else
endif
if ( IsUnitHidden(Trig_Harvest_Gold_Test2_Copy_Unit) ) then
if ( udg_Player_Tier[GetConvertedPlayerId(GetOwningPlayer(Trig_Harvest_Gold_Test2_Copy_Unit))] == 2 ) then
call AddResourceAmount( gg_unit_ngol_0014, 10 )
else
if ( udg_Player_Tier[GetConvertedPlayerId(GetOwningPlayer(Trig_Harvest_Gold_Test2_Copy_Unit))] == 3 ) then
call AddResourceAmount( gg_unit_ngol_0014, 20 )
else
endif
endif
else
endif
endfunction
//===========================================================================
function InitTrig_Harvest_Gold_14 takes nothing returns nothing
set gg_trg_Harvest_Gold_14 = CreateTrigger( )
call TriggerRegisterUnitInRangeSimple( gg_trg_Harvest_Gold_14, 256.00, gg_unit_ngol_0014 )
call TriggerAddAction( gg_trg_Harvest_Gold_14, function Trig_Harvest_Gold_Test2_14_Actions )
endfunction
function Trig_Harvest_Gold_Test2_13_Actions takes nothing returns nothing
local unit Trig_Harvest_Gold_Test2_Copy_Unit = GetTriggerUnit()
// If triggering unit is not peasant or peon
if (not (GetUnitTypeId(GetTriggerUnit()) == 'h000')) then
if(not (GetUnitTypeId(GetTriggerUnit()) == 'o000')) then
return
else
endif
else
endif
// call TriggerSleepAction( 0.90 )
loop
exitwhen( IsUnitHidden(Trig_Harvest_Gold_Test2_Copy_Unit) == true )
if (not (IsUnitInRange(Trig_Harvest_Gold_Test2_Copy_Unit, gg_unit_ngol_0013, 256)) ) then
return
endif
call TriggerSleepAction( RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL, 0.10) )
endloop
if ( IsUnitInRange(Trig_Harvest_Gold_Test2_Copy_Unit, gg_unit_ngol_0013, 118) == false ) then
return
else
endif
if (not (UnitId2String(GetUnitCurrentOrder(Trig_Harvest_Gold_Test2_Copy_Unit)) == null) ) then
return
else
endif
if ( IsUnitHidden(Trig_Harvest_Gold_Test2_Copy_Unit) ) then
if ( udg_Player_Tier[GetConvertedPlayerId(GetOwningPlayer(Trig_Harvest_Gold_Test2_Copy_Unit))] == 2 ) then
call AddResourceAmount( gg_unit_ngol_0013, 10 )
else
if ( udg_Player_Tier[GetConvertedPlayerId(GetOwningPlayer(Trig_Harvest_Gold_Test2_Copy_Unit))] == 3 ) then
call AddResourceAmount( gg_unit_ngol_0013, 20 )
else
endif
endif
else
endif
endfunction
//===========================================================================
function InitTrig_Harvest_Gold_13 takes nothing returns nothing
set gg_trg_Harvest_Gold_13 = CreateTrigger( )
call TriggerRegisterUnitInRangeSimple( gg_trg_Harvest_Gold_13, 256.00, gg_unit_ngol_0013 )
call TriggerAddAction( gg_trg_Harvest_Gold_13, function Trig_Harvest_Gold_Test2_13_Actions )
endfunction
function Trig_Harvest_Gold_Test2_12_Actions takes nothing returns nothing
local unit Trig_Harvest_Gold_Test2_Copy_Unit = GetTriggerUnit()
// If triggering unit is not peasant or peon
if (not (GetUnitTypeId(GetTriggerUnit()) == 'h000')) then
if(not (GetUnitTypeId(GetTriggerUnit()) == 'o000')) then
return
else
endif
else
endif
// call TriggerSleepAction( 0.90 )
loop
exitwhen( IsUnitHidden(Trig_Harvest_Gold_Test2_Copy_Unit) == true )
if (not (IsUnitInRange(Trig_Harvest_Gold_Test2_Copy_Unit, gg_unit_ngol_0012, 256)) ) then
return
endif
call TriggerSleepAction( RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL, 0.10) )
endloop
if ( IsUnitInRange(Trig_Harvest_Gold_Test2_Copy_Unit, gg_unit_ngol_0012, 118) == false ) then
return
else
endif
if (not (UnitId2String(GetUnitCurrentOrder(Trig_Harvest_Gold_Test2_Copy_Unit)) == null) ) then
return
else
endif
if ( IsUnitHidden(Trig_Harvest_Gold_Test2_Copy_Unit) ) then
if ( udg_Player_Tier[GetConvertedPlayerId(GetOwningPlayer(Trig_Harvest_Gold_Test2_Copy_Unit))] == 2 ) then
call AddResourceAmount( gg_unit_ngol_0012, 10 )
else
if ( udg_Player_Tier[GetConvertedPlayerId(GetOwningPlayer(Trig_Harvest_Gold_Test2_Copy_Unit))] == 3 ) then
call AddResourceAmount( gg_unit_ngol_0012, 20 )
else
endif
endif
else
endif
endfunction
//===========================================================================
function InitTrig_Harvest_Gold_12 takes nothing returns nothing
set gg_trg_Harvest_Gold_12 = CreateTrigger( )
call TriggerRegisterUnitInRangeSimple( gg_trg_Harvest_Gold_12, 256.00, gg_unit_ngol_0012 )
call TriggerAddAction( gg_trg_Harvest_Gold_12, function Trig_Harvest_Gold_Test2_12_Actions )
endfunction
function Trig_Harvest_Gold_Test2_11_Actions takes nothing returns nothing
local unit Trig_Harvest_Gold_Test2_Copy_Unit = GetTriggerUnit()
// If triggering unit is not peasant or peon
if (not (GetUnitTypeId(GetTriggerUnit()) == 'h000')) then
if(not (GetUnitTypeId(GetTriggerUnit()) == 'o000')) then
return
else
endif
else
endif
// call TriggerSleepAction( 0.90 )
loop
exitwhen( IsUnitHidden(Trig_Harvest_Gold_Test2_Copy_Unit) == true )
if (not (IsUnitInRange(Trig_Harvest_Gold_Test2_Copy_Unit, gg_unit_ngol_0011, 256)) ) then
return
endif
call TriggerSleepAction( RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL, 0.10) )
endloop
if ( IsUnitInRange(Trig_Harvest_Gold_Test2_Copy_Unit, gg_unit_ngol_0011, 118) == false ) then
return
else
endif
if (not (UnitId2String(GetUnitCurrentOrder(Trig_Harvest_Gold_Test2_Copy_Unit)) == null) ) then
return
else
endif
if ( IsUnitHidden(Trig_Harvest_Gold_Test2_Copy_Unit) ) then
if ( udg_Player_Tier[GetConvertedPlayerId(GetOwningPlayer(Trig_Harvest_Gold_Test2_Copy_Unit))] == 2 ) then
call AddResourceAmount( gg_unit_ngol_0011, 10 )
else
if ( udg_Player_Tier[GetConvertedPlayerId(GetOwningPlayer(Trig_Harvest_Gold_Test2_Copy_Unit))] == 3 ) then
call AddResourceAmount( gg_unit_ngol_0011, 20 )
else
endif
endif
else
endif
endfunction
//===========================================================================
function InitTrig_Harvest_Gold_11 takes nothing returns nothing
set gg_trg_Harvest_Gold_11 = CreateTrigger( )
call TriggerRegisterUnitInRangeSimple( gg_trg_Harvest_Gold_11, 256.00, gg_unit_ngol_0011 )
call TriggerAddAction( gg_trg_Harvest_Gold_11, function Trig_Harvest_Gold_Test2_11_Actions )
endfunction
function Trig_Harvest_Gold_Test2_09_Actions takes nothing returns nothing
local unit Trig_Harvest_Gold_Test2_Copy_Unit = GetTriggerUnit()
// If triggering unit is not peasant or peon
if (not (GetUnitTypeId(GetTriggerUnit()) == 'h000')) then
if(not (GetUnitTypeId(GetTriggerUnit()) == 'o000')) then
return
else
endif
else
endif
// call TriggerSleepAction( 0.90 )
loop
exitwhen( IsUnitHidden(Trig_Harvest_Gold_Test2_Copy_Unit) == true )
if (not (IsUnitInRange(Trig_Harvest_Gold_Test2_Copy_Unit, gg_unit_ngol_0009, 256)) ) then
return
endif
call TriggerSleepAction( RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL, 0.10) )
endloop
if ( IsUnitInRange(Trig_Harvest_Gold_Test2_Copy_Unit, gg_unit_ngol_0009, 118) == false ) then
return
else
endif
if (not (UnitId2String(GetUnitCurrentOrder(Trig_Harvest_Gold_Test2_Copy_Unit)) == null) ) then
return
else
endif
if ( IsUnitHidden(Trig_Harvest_Gold_Test2_Copy_Unit) ) then
if ( udg_Player_Tier[GetConvertedPlayerId(GetOwningPlayer(Trig_Harvest_Gold_Test2_Copy_Unit))] == 2 ) then
call AddResourceAmount( gg_unit_ngol_0009, 10 )
else
if ( udg_Player_Tier[GetConvertedPlayerId(GetOwningPlayer(Trig_Harvest_Gold_Test2_Copy_Unit))] == 3 ) then
call AddResourceAmount( gg_unit_ngol_0009, 20 )
else
endif
endif
else
endif
endfunction
//===========================================================================
function InitTrig_Harvest_Gold_09 takes nothing returns nothing
set gg_trg_Harvest_Gold_09 = CreateTrigger( )
call TriggerRegisterUnitInRangeSimple( gg_trg_Harvest_Gold_09, 256.00, gg_unit_ngol_0009 )
call TriggerAddAction( gg_trg_Harvest_Gold_09, function Trig_Harvest_Gold_Test2_09_Actions )
endfunction
function Trig_Harvest_Gold_Test2_01_Actions takes nothing returns nothing
local unit Trig_Harvest_Gold_Test2_Copy_Unit = GetTriggerUnit()
// If triggering unit is not peasant or peon
if (not (GetUnitTypeId(GetTriggerUnit()) == 'h000')) then
if(not (GetUnitTypeId(GetTriggerUnit()) == 'o000')) then
return
else
endif
else
endif
// call TriggerSleepAction( 0.90 )
loop
exitwhen( IsUnitHidden(Trig_Harvest_Gold_Test2_Copy_Unit) == true )
if (not (IsUnitInRange(Trig_Harvest_Gold_Test2_Copy_Unit, gg_unit_ngol_0001, 256)) ) then
return
endif
call TriggerSleepAction( RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL, 0.10) )
endloop
if ( IsUnitInRange(Trig_Harvest_Gold_Test2_Copy_Unit, gg_unit_ngol_0001, 118) == false ) then
return
else
endif
if (not (UnitId2String(GetUnitCurrentOrder(Trig_Harvest_Gold_Test2_Copy_Unit)) == null) ) then
return
else
endif
if ( IsUnitHidden(Trig_Harvest_Gold_Test2_Copy_Unit) ) then
if ( udg_Player_Tier[GetConvertedPlayerId(GetOwningPlayer(Trig_Harvest_Gold_Test2_Copy_Unit))] == 2 ) then
call AddResourceAmount( gg_unit_ngol_0001, 10 )
else
if ( udg_Player_Tier[GetConvertedPlayerId(GetOwningPlayer(Trig_Harvest_Gold_Test2_Copy_Unit))] == 3 ) then
call AddResourceAmount( gg_unit_ngol_0001, 20 )
else
endif
endif
else
endif
endfunction
//===========================================================================
function InitTrig_Harvest_Gold_01 takes nothing returns nothing
set gg_trg_Harvest_Gold_01 = CreateTrigger( )
call TriggerRegisterUnitInRangeSimple( gg_trg_Harvest_Gold_01, 256.00, gg_unit_ngol_0001 )
call TriggerAddAction( gg_trg_Harvest_Gold_01, function Trig_Harvest_Gold_Test2_01_Actions )
endfunction
function Trig_Harvest_Gold_Test2_00_Actions takes nothing returns nothing
local unit Trig_Harvest_Gold_Test2_Copy_Unit = GetTriggerUnit()
// If triggering unit is not peasant or peon
if (not (GetUnitTypeId(GetTriggerUnit()) == 'h000')) then
if(not (GetUnitTypeId(GetTriggerUnit()) == 'o000')) then
return
else
endif
else
endif
// call TriggerSleepAction( 0.90 )
loop
exitwhen( IsUnitHidden(Trig_Harvest_Gold_Test2_Copy_Unit) == true )
if (not (IsUnitInRange(Trig_Harvest_Gold_Test2_Copy_Unit, gg_unit_ngol_0000, 256)) ) then
return
endif
call TriggerSleepAction( RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL, 0.10) )
endloop
if ( IsUnitInRange(Trig_Harvest_Gold_Test2_Copy_Unit, gg_unit_ngol_0000, 118) == false ) then
return
else
endif
if (not (UnitId2String(GetUnitCurrentOrder(Trig_Harvest_Gold_Test2_Copy_Unit)) == null) ) then
return
else
endif
if ( IsUnitHidden(Trig_Harvest_Gold_Test2_Copy_Unit) ) then
if ( udg_Player_Tier[GetConvertedPlayerId(GetOwningPlayer(Trig_Harvest_Gold_Test2_Copy_Unit))] == 2 ) then
call AddResourceAmount( gg_unit_ngol_0000, 10 )
else
if ( udg_Player_Tier[GetConvertedPlayerId(GetOwningPlayer(Trig_Harvest_Gold_Test2_Copy_Unit))] == 3 ) then
call AddResourceAmount( gg_unit_ngol_0000, 20 )
else
endif
endif
else
endif
endfunction
//===========================================================================
function InitTrig_Harvest_Gold_00 takes nothing returns nothing
set gg_trg_Harvest_Gold_00 = CreateTrigger( )
call TriggerRegisterUnitInRangeSimple( gg_trg_Harvest_Gold_00, 256.00, gg_unit_ngol_0000 )
call TriggerAddAction( gg_trg_Harvest_Gold_00, function Trig_Harvest_Gold_Test2_00_Actions )
endfunction