Name | Type | is_array | initial_value |
angledestructionwave | real | No | |
Array | string | Yes | |
Board | leaderboard | No | |
Button1 | button | No | |
Button2 | button | No | |
Chosen | boolean | No | false |
CompCounter | integer | No | 0 |
Counter | integer | No | 0 |
Countkillsp1 | integer | No | 0 |
Countkillsp2 | integer | No | 0 |
Countkillsp3 | integer | No | 0 |
Countkillsp4 | integer | No | 0 |
Countkillsp5 | integer | No | 0 |
Countkillsp6 | integer | No | 0 |
Countkillsp7 | integer | No | 0 |
Countkillsp8 | integer | No | 0 |
destructionwavetarget | location | No | |
DummyEarthrift | unit | No | UnitNull |
Dummyprayer | unit | No | UnitNull |
Dying_Unit | unit | No | |
EarthRift | terraindeformation | No | |
Easymode | boolean | No | true |
Effect1counter | integer | No | 0 |
Effectdummy1 | unit | Yes | UnitNull |
hardboss1 | unit | No | |
hardboss2 | unit | No | |
hardboss3 | unit | No | |
hardboss4 | unit | No | |
Hero1 | unit | No | |
Herop1 | unit | No | UnitNull |
Herop2 | unit | No | UnitNull |
Herop3 | unit | No | UnitNull |
Herop4 | unit | No | UnitNull |
Herop5 | unit | No | UnitNull |
Herop6 | unit | No | UnitNull |
Herop7 | unit | No | UnitNull |
Herop8 | unit | No | UnitNull |
Kickcounter | integer | No | |
Kickdialog | dialog | No | |
Kickplayer | player | No | |
Loc | location | No | |
P1 | boolean | No | false |
P2 | boolean | No | false |
P3 | boolean | No | false |
P4 | boolean | No | false |
P5 | boolean | No | false |
P6 | boolean | No | false |
P7 | boolean | No | false |
P8 | boolean | No | false |
PosEarthRiftsummoned | location | No | |
Ready | boolean | No | false |
Revivalstage1 | integer | No | 0 |
Revivalstage2 | integer | No | 0 |
Revivalstage3 | integer | No | 0 |
Revivalstage4 | integer | No | 0 |
Soul1 | unit | No | UnitNull |
Soul2 | unit | No | UnitNull |
Soul3 | unit | No | UnitNull |
Soul4 | unit | No | UnitNull |
Soul5 | unit | No | UnitNull |
Soul6 | unit | No | UnitNull |
Soul7 | unit | No | UnitNull |
Soul8 | unit | No | UnitNull |
spez | effect | No | |
Startingtimer | timer | No | |
unitearthrift | unit | No | UnitNull |
votestring | string | No |
function Trig_Revive_Player_1_Heroes_Kopieren_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_Revive_Player_1_Heroes_Kopieren_Func004Func002C takes nothing returns boolean
if ( not ( udg_Revivalstage1 == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Revive_Player_1_Heroes_Kopieren_Func004C takes nothing returns boolean
if ( not ( udg_Revivalstage1 == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Revive_Player_1_Heroes_Kopieren_Actions takes nothing returns nothing
local unit tempunit
set tempunit = GetDyingUnit()
call TriggerSleepAction( I2R(GetHeroLevel(GetDyingUnit())) )
if ( Trig_Revive_Player_1_Heroes_Kopieren_Func004C() ) then
call ReviveHeroLoc( tempunit, GetRectCenter(gg_rct_Gebiet_020_Kopieren_7_Kopieren_9_Kopieren_5), true )
else
if ( Trig_Revive_Player_1_Heroes_Kopieren_Func004Func002C() ) then
call ReviveHeroLoc( tempunit, GetRectCenter(gg_rct_Gebiet_020_Kopieren_7_Kopieren), true )
else
call ReviveHeroLoc( tempunit, GetRectCenter(gg_rct_Gebiet_000_Kopieren_18), true )
endif
endif
endfunction
//===========================================================================
function InitTrig_Revive_Player_1_Heroes takes nothing returns nothing
set gg_trg_Revive_Player_1_Heroes = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Revive_Player_1_Heroes, Player(0), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Revive_Player_1_Heroes, Condition( function Trig_Revive_Player_1_Heroes_Kopieren_Conditions ) )
call TriggerAddAction( gg_trg_Revive_Player_1_Heroes, function Trig_Revive_Player_1_Heroes_Kopieren_Actions )
endfunction
function Trig_Revive_Player_2_Heroes_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_Revive_Player_2_Heroes_Func004Func002C takes nothing returns boolean
if ( not ( udg_Revivalstage1 == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Revive_Player_2_Heroes_Func004C takes nothing returns boolean
if ( not ( udg_Revivalstage1 == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Revive_Player_2_Heroes_Actions takes nothing returns nothing
local unit tempunit
set tempunit = GetDyingUnit()
call TriggerSleepAction( I2R(GetHeroLevel(GetDyingUnit())) )
if ( Trig_Revive_Player_2_Heroes_Func004C() ) then
call ReviveHeroLoc( tempunit, GetRectCenter(gg_rct_Gebiet_020_Kopieren_7_Kopieren_9_Kopieren_5), true )
else
if ( Trig_Revive_Player_2_Heroes_Func004Func002C() ) then
call ReviveHeroLoc( tempunit, GetRectCenter(gg_rct_Gebiet_020_Kopieren_7_Kopieren), true )
else
call ReviveHeroLoc( tempunit, GetRectCenter(gg_rct_Gebiet_000_Kopieren_19), true )
endif
endif
endfunction
//===========================================================================
function InitTrig_Revive_Player_2_Heroes takes nothing returns nothing
set gg_trg_Revive_Player_2_Heroes = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Revive_Player_2_Heroes, Player(1), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Revive_Player_2_Heroes, Condition( function Trig_Revive_Player_2_Heroes_Conditions ) )
call TriggerAddAction( gg_trg_Revive_Player_2_Heroes, function Trig_Revive_Player_2_Heroes_Actions )
endfunction
function Trig_Revive_Player_3_Heroes_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_Revive_Player_3_Heroes_Func004Func002C takes nothing returns boolean
if ( not ( udg_Revivalstage2 == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Revive_Player_3_Heroes_Func004C takes nothing returns boolean
if ( not ( udg_Revivalstage2 == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Revive_Player_3_Heroes_Actions takes nothing returns nothing
local unit tempunit
set tempunit = GetDyingUnit()
call TriggerSleepAction( I2R(GetHeroLevel(GetDyingUnit())) )
if ( Trig_Revive_Player_3_Heroes_Func004C() ) then
call ReviveHeroLoc( tempunit, GetRectCenter(gg_rct_Gebiet_020_Kopieren_7_Kopieren_9_Kopieren_6), true )
else
if ( Trig_Revive_Player_3_Heroes_Func004Func002C() ) then
call ReviveHeroLoc( tempunit, GetRectCenter(gg_rct_Gebiet_020_Kopieren_7_Kopieren_2), true )
else
call ReviveHeroLoc( tempunit, GetRectCenter(gg_rct_Gebiet_000_Kopieren_12), true )
endif
endif
endfunction
//===========================================================================
function InitTrig_Revive_Player_3_Heroes takes nothing returns nothing
set gg_trg_Revive_Player_3_Heroes = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Revive_Player_3_Heroes, Player(2), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Revive_Player_3_Heroes, Condition( function Trig_Revive_Player_3_Heroes_Conditions ) )
call TriggerAddAction( gg_trg_Revive_Player_3_Heroes, function Trig_Revive_Player_3_Heroes_Actions )
endfunction
function Trig_Revive_Player_4_Heroes_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_Revive_Player_4_Heroes_Func004Func002C takes nothing returns boolean
if ( not ( udg_Revivalstage2 == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Revive_Player_4_Heroes_Func004C takes nothing returns boolean
if ( not ( udg_Revivalstage2 == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Revive_Player_4_Heroes_Actions takes nothing returns nothing
local unit tempunit
set tempunit = GetDyingUnit()
call TriggerSleepAction( I2R(GetHeroLevel(GetDyingUnit())) )
if ( Trig_Revive_Player_4_Heroes_Func004C() ) then
call ReviveHeroLoc( tempunit, GetRectCenter(gg_rct_Gebiet_020_Kopieren_7_Kopieren_9_Kopieren_6), true )
else
if ( Trig_Revive_Player_4_Heroes_Func004Func002C() ) then
call ReviveHeroLoc( tempunit, GetRectCenter(gg_rct_Gebiet_020_Kopieren_7_Kopieren_2), true )
else
call ReviveHeroLoc( tempunit, GetRectCenter(gg_rct_Gebiet_000_Kopieren_13), true )
endif
endif
endfunction
//===========================================================================
function InitTrig_Revive_Player_4_Heroes takes nothing returns nothing
set gg_trg_Revive_Player_4_Heroes = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Revive_Player_4_Heroes, Player(3), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Revive_Player_4_Heroes, Condition( function Trig_Revive_Player_4_Heroes_Conditions ) )
call TriggerAddAction( gg_trg_Revive_Player_4_Heroes, function Trig_Revive_Player_4_Heroes_Actions )
endfunction
function Trig_Revive_Player_5_Heroes_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_Revive_Player_5_Heroes_Func004Func002C takes nothing returns boolean
if ( not ( udg_Revivalstage3 == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Revive_Player_5_Heroes_Func004C takes nothing returns boolean
if ( not ( udg_Revivalstage3 == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Revive_Player_5_Heroes_Actions takes nothing returns nothing
local unit tempunit
set tempunit = GetDyingUnit()
call TriggerSleepAction( I2R(GetHeroLevel(GetDyingUnit())) )
if ( Trig_Revive_Player_5_Heroes_Func004C() ) then
call ReviveHeroLoc( tempunit, GetRectCenter(gg_rct_Gebiet_020_Kopieren_7_Kopieren_9_Kopieren_7), true )
else
if ( Trig_Revive_Player_5_Heroes_Func004Func002C() ) then
call ReviveHeroLoc( tempunit, GetRectCenter(gg_rct_Gebiet_020_Kopieren_7_Kopieren_3), true )
else
call ReviveHeroLoc( tempunit, GetRectCenter(gg_rct_Gebiet_000_Kopieren_14), true )
endif
endif
endfunction
//===========================================================================
function InitTrig_Revive_Player_5_Heroes takes nothing returns nothing
set gg_trg_Revive_Player_5_Heroes = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Revive_Player_5_Heroes, Player(4), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Revive_Player_5_Heroes, Condition( function Trig_Revive_Player_5_Heroes_Conditions ) )
call TriggerAddAction( gg_trg_Revive_Player_5_Heroes, function Trig_Revive_Player_5_Heroes_Actions )
endfunction
function Trig_Revive_Player_6_Heroes_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_Revive_Player_6_Heroes_Func004Func002C takes nothing returns boolean
if ( not ( udg_Revivalstage3 == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Revive_Player_6_Heroes_Func004C takes nothing returns boolean
if ( not ( udg_Revivalstage3 == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Revive_Player_6_Heroes_Actions takes nothing returns nothing
local unit tempunit
set tempunit = GetDyingUnit()
call TriggerSleepAction( I2R(GetHeroLevel(GetDyingUnit())) )
if ( Trig_Revive_Player_6_Heroes_Func004C() ) then
call ReviveHeroLoc( tempunit, GetRectCenter(gg_rct_Gebiet_020_Kopieren_7_Kopieren_9_Kopieren_7), true )
else
if ( Trig_Revive_Player_6_Heroes_Func004Func002C() ) then
call ReviveHeroLoc( tempunit, GetRectCenter(gg_rct_Gebiet_020_Kopieren_7_Kopieren_3), true )
else
call ReviveHeroLoc( tempunit, GetRectCenter(gg_rct_Gebiet_000_Kopieren_15), true )
endif
endif
endfunction
//===========================================================================
function InitTrig_Revive_Player_6_Heroes takes nothing returns nothing
set gg_trg_Revive_Player_6_Heroes = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Revive_Player_6_Heroes, Player(5), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Revive_Player_6_Heroes, Condition( function Trig_Revive_Player_6_Heroes_Conditions ) )
call TriggerAddAction( gg_trg_Revive_Player_6_Heroes, function Trig_Revive_Player_6_Heroes_Actions )
endfunction
function Trig_Revive_Player_7_Heroes_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_Revive_Player_7_Heroes_Func004Func002C takes nothing returns boolean
if ( not ( udg_Revivalstage4 == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Revive_Player_7_Heroes_Func004C takes nothing returns boolean
if ( not ( udg_Revivalstage4 == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Revive_Player_7_Heroes_Actions takes nothing returns nothing
local unit tempunit
set tempunit = GetDyingUnit()
call TriggerSleepAction( I2R(GetHeroLevel(GetDyingUnit())) )
if ( Trig_Revive_Player_7_Heroes_Func004C() ) then
call ReviveHeroLoc( tempunit, GetRectCenter(gg_rct_Gebiet_020_Kopieren_7_Kopieren_9_Kopieren_8), true )
else
if ( Trig_Revive_Player_7_Heroes_Func004Func002C() ) then
call ReviveHeroLoc( tempunit, GetRectCenter(gg_rct_Gebiet_020_Kopieren_7_Kopieren_4), true )
else
call ReviveHeroLoc( tempunit, GetRectCenter(gg_rct_Gebiet_000_Kopieren_16), true )
endif
endif
endfunction
//===========================================================================
function InitTrig_Revive_Player_7_Heroes takes nothing returns nothing
set gg_trg_Revive_Player_7_Heroes = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Revive_Player_7_Heroes, Player(6), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Revive_Player_7_Heroes, Condition( function Trig_Revive_Player_7_Heroes_Conditions ) )
call TriggerAddAction( gg_trg_Revive_Player_7_Heroes, function Trig_Revive_Player_7_Heroes_Actions )
endfunction
function Trig_Revive_Player_8_Heroes_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_Revive_Player_8_Heroes_Func004Func002C takes nothing returns boolean
if ( not ( udg_Revivalstage4 == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Revive_Player_8_Heroes_Func004C takes nothing returns boolean
if ( not ( udg_Revivalstage4 == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Revive_Player_8_Heroes_Actions takes nothing returns nothing
local unit tempunit
set tempunit = GetDyingUnit()
call TriggerSleepAction( I2R(GetHeroLevel(GetDyingUnit())) )
if ( Trig_Revive_Player_8_Heroes_Func004C() ) then
call ReviveHeroLoc( tempunit, GetRectCenter(gg_rct_Gebiet_020_Kopieren_7_Kopieren_9_Kopieren_8), true )
else
if ( Trig_Revive_Player_8_Heroes_Func004Func002C() ) then
call ReviveHeroLoc( tempunit, GetRectCenter(gg_rct_Gebiet_020_Kopieren_7_Kopieren_4), true )
else
call ReviveHeroLoc( tempunit, GetRectCenter(gg_rct_Gebiet_000_Kopieren_17), true )
endif
endif
endfunction
//===========================================================================
function InitTrig_Revive_Player_8_Heroes takes nothing returns nothing
set gg_trg_Revive_Player_8_Heroes = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Revive_Player_8_Heroes, Player(7), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Revive_Player_8_Heroes, Condition( function Trig_Revive_Player_8_Heroes_Conditions ) )
call TriggerAddAction( gg_trg_Revive_Player_8_Heroes, function Trig_Revive_Player_8_Heroes_Actions )
endfunction
function Trig_Earth_Rift_Kopieren_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A02O' ) ) then
return false
endif
return true
endfunction
function Trig_Earth_Rift_Kopieren_Func002Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A02O', GetSpellAbilityUnit()) == 5 ) ) then
return false
endif
return true
endfunction
function Trig_Earth_Rift_Kopieren_Func002Func002Func001Func001C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A02O', GetSpellAbilityUnit()) == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Earth_Rift_Kopieren_Func002Func002Func001C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A02O', GetSpellAbilityUnit()) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Earth_Rift_Kopieren_Func002Func002C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A02O', GetSpellAbilityUnit()) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Earth_Rift_Kopieren_Func002C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A02O', GetSpellAbilityUnit()) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Earth_Rift_Kopieren_Func012002 takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_Earth_Rift_Kopieren_Actions takes nothing returns nothing
local location temploc
local terraindeformation tempdef
local unit tempunit
local unit tempunit2
set temploc = GetSpellTargetLoc()
if ( Trig_Earth_Rift_Kopieren_Func002C() ) then
call CreateNUnitsAtLoc( 1, 'e00B', GetOwningPlayer(GetSpellAbilityUnit()), temploc, bj_UNIT_FACING )
else
if ( Trig_Earth_Rift_Kopieren_Func002Func002C() ) then
call CreateNUnitsAtLoc( 1, 'e00F', GetOwningPlayer(GetSpellAbilityUnit()), temploc, bj_UNIT_FACING )
else
if ( Trig_Earth_Rift_Kopieren_Func002Func002Func001C() ) then
call CreateNUnitsAtLoc( 1, 'e00E', GetOwningPlayer(GetSpellAbilityUnit()), temploc, bj_UNIT_FACING )
else
if ( Trig_Earth_Rift_Kopieren_Func002Func002Func001Func001C() ) then
call CreateNUnitsAtLoc( 1, 'e00C', GetOwningPlayer(GetSpellAbilityUnit()), temploc, bj_UNIT_FACING )
else
if ( Trig_Earth_Rift_Kopieren_Func002Func002Func001Func001Func001C() ) then
call CreateNUnitsAtLoc( 1, 'e00D', GetOwningPlayer(GetSpellAbilityUnit()), temploc, bj_UNIT_FACING )
else
call DoNothing( )
endif
endif
endif
endif
endif
set tempunit = GetLastCreatedUnit()
call TerrainDeformationCraterBJ( 0.60, true, temploc, 400.00, 300.00 )
set tempdef = GetLastCreatedTerrainDeformation()
call CreateNUnitsAtLoc( 1, 'e00G', GetOwningPlayer(GetSpellAbilityUnit()), temploc, bj_UNIT_FACING )
set tempunit2 = GetLastCreatedUnit()
call TriggerSleepAction( 0.30 )
call IssueImmediateOrderBJ( tempunit, "thunderclap" )
call TriggerSleepAction( 0.20 )
call KillUnit( tempunit )
call TriggerSleepAction( 6.00 )
call KillUnit( tempunit2 )
call TerrainDeformationStopBJ( tempdef, 0 )
call TerrainDeformationCraterBJ( 0.5, true, temploc, 400.00, -300.00 )
endfunction
//===========================================================================
function InitTrig_Earth_Rift takes nothing returns nothing
set gg_trg_Earth_Rift = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Earth_Rift, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Earth_Rift, Condition( function Trig_Earth_Rift_Kopieren_Conditions ) )
call TriggerAddAction( gg_trg_Earth_Rift, function Trig_Earth_Rift_Kopieren_Actions )
endfunction
function Trig_Essence_Leech_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A01I' ) ) then
return false
endif
return true
endfunction
function Trig_Essence_Leech_Actions takes nothing returns nothing
local unit tempunit
set tempunit = GetSpellAbilityUnit()
call TriggerSleepAction( 7.00 )
call SetUnitManaPercentBJ( tempunit, 100.00 )
call TriggerSleepAction( 7.00 )
call SetUnitManaPercentBJ( tempunit, 100.00 )
call TriggerSleepAction( 7.00 )
call SetUnitManaPercentBJ( tempunit, 100.00 )
call TriggerSleepAction( 7.00 )
call SetUnitManaPercentBJ( tempunit, 100.00 )
endfunction
//===========================================================================
function InitTrig_Essence_Leech takes nothing returns nothing
set gg_trg_Essence_Leech = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Essence_Leech, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Essence_Leech, Condition( function Trig_Essence_Leech_Conditions ) )
call TriggerAddAction( gg_trg_Essence_Leech, function Trig_Essence_Leech_Actions )
endfunction
function Trig_Freeze_Kopieren_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A011' ) ) then
return false
endif
return true
endfunction
function Trig_Freeze_Kopieren_Func001Func009Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A011', GetSpellAbilityUnit()) == 5 ) ) then
return false
endif
return true
endfunction
function Trig_Freeze_Kopieren_Func001Func009Func001Func001C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A011', GetSpellAbilityUnit()) == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Freeze_Kopieren_Func001Func009Func001C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A011', GetSpellAbilityUnit()) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Freeze_Kopieren_Func001Func009C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A011', GetSpellAbilityUnit()) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Freeze_Kopieren_Func001C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A011', GetSpellAbilityUnit()) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Freeze_Kopieren_Actions takes nothing returns nothing
local unit tempunit
set tempunit = GetSpellTargetUnit()
if ( Trig_Freeze_Kopieren_Func001C() ) then
call SetUnitAcquireRangeBJ( tempunit, 0.00 )
call SetUnitMoveSpeed( tempunit, 0.00 )
call SetUnitTimeScalePercent( tempunit, 0.00 )
call TriggerSleepAction( 5.00 )
call SetUnitAcquireRangeBJ( tempunit, GetUnitDefaultAcquireRange(tempunit) )
call SetUnitMoveSpeed( tempunit, GetUnitDefaultMoveSpeed(tempunit) )
call SetUnitTimeScalePercent( tempunit, 100.00 )
else
if ( Trig_Freeze_Kopieren_Func001Func009C() ) then
call SetUnitAcquireRangeBJ( tempunit, 0.00 )
call SetUnitMoveSpeed( tempunit, 0.00 )
call SetUnitTimeScalePercent( tempunit, 0.00 )
call TriggerSleepAction( 7.00 )
call SetUnitAcquireRangeBJ( tempunit, GetUnitDefaultAcquireRange(tempunit) )
call SetUnitMoveSpeed( tempunit, GetUnitDefaultMoveSpeed(tempunit) )
call SetUnitTimeScalePercent( tempunit, 100.00 )
else
if ( Trig_Freeze_Kopieren_Func001Func009Func001C() ) then
call SetUnitAcquireRangeBJ( tempunit, 0.00 )
call SetUnitMoveSpeed( tempunit, 0.00 )
call SetUnitTimeScalePercent( tempunit, 0.00 )
call TriggerSleepAction( 10.00 )
call SetUnitAcquireRangeBJ( tempunit, GetUnitDefaultAcquireRange(tempunit) )
call SetUnitMoveSpeed( tempunit, GetUnitDefaultMoveSpeed(tempunit) )
call SetUnitTimeScalePercent( tempunit, 100.00 )
else
if ( Trig_Freeze_Kopieren_Func001Func009Func001Func001C() ) then
call SetUnitAcquireRangeBJ( tempunit, 0.00 )
call SetUnitMoveSpeed( tempunit, 0.00 )
call SetUnitTimeScalePercent( tempunit, 0.00 )
call TriggerSleepAction( 15.00 )
call SetUnitAcquireRangeBJ( tempunit, GetUnitDefaultAcquireRange(tempunit) )
call SetUnitMoveSpeed( tempunit, GetUnitDefaultMoveSpeed(tempunit) )
call SetUnitTimeScalePercent( tempunit, 100.00 )
else
if ( Trig_Freeze_Kopieren_Func001Func009Func001Func001Func001C() ) then
call SetUnitAcquireRangeBJ( tempunit, 0.00 )
call SetUnitMoveSpeed( tempunit, 0.00 )
call SetUnitTimeScalePercent( tempunit, 0.00 )
call TriggerSleepAction( 20.00 )
call SetUnitAcquireRangeBJ( tempunit, GetUnitDefaultAcquireRange(tempunit) )
call SetUnitMoveSpeed( tempunit, GetUnitDefaultMoveSpeed(tempunit) )
call SetUnitTimeScalePercent( tempunit, 100.00 )
else
call DoNothing( )
endif
endif
endif
endif
endif
endfunction
//===========================================================================
function InitTrig_Freeze takes nothing returns nothing
set gg_trg_Freeze = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Freeze, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Freeze, Condition( function Trig_Freeze_Kopieren_Conditions ) )
call TriggerAddAction( gg_trg_Freeze, function Trig_Freeze_Kopieren_Actions )
endfunction
function Trig_Frost_Strike_Kopieren_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A01K' ) ) then
return false
endif
return true
endfunction
function Trig_Frost_Strike_Kopieren_Func001Func007C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A01K', GetTriggerUnit()) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Frost_Strike_Kopieren_Func001C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A01K', GetSpellAbilityUnit()) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Frost_Strike_Kopieren_Actions takes nothing returns nothing
local unit tempunit
if ( Trig_Frost_Strike_Kopieren_Func001C() ) then
call CreateNUnitsAtLoc( 1, 'e006', GetOwningPlayer(GetSpellAbilityUnit()), GetUnitLoc(GetSpellAbilityUnit()), bj_UNIT_FACING )
set tempunit = GetLastCreatedUnit()
call TriggerSleepAction( 0.30 )
call IssueImmediateOrderBJ( tempunit, "stomp" )
call TriggerSleepAction( 0.50 )
call KillUnit( tempunit )
else
if ( Trig_Frost_Strike_Kopieren_Func001Func007C() ) then
call CreateNUnitsAtLoc( 1, 'e004', GetOwningPlayer(GetSpellAbilityUnit()), GetUnitLoc(GetSpellAbilityUnit()), bj_UNIT_FACING )
set tempunit = GetLastCreatedUnit()
call TriggerSleepAction( 0.30 )
call IssueImmediateOrderBJ( tempunit, "stomp" )
call TriggerSleepAction( 0.50 )
call KillUnit( tempunit )
else
call DoNothing( )
endif
endif
endfunction
//===========================================================================
function InitTrig_Frost_Strike takes nothing returns nothing
set gg_trg_Frost_Strike = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Frost_Strike, EVENT_PLAYER_UNIT_SPELL_CHANNEL )
call TriggerAddCondition( gg_trg_Frost_Strike, Condition( function Trig_Frost_Strike_Kopieren_Conditions ) )
call TriggerAddAction( gg_trg_Frost_Strike, function Trig_Frost_Strike_Kopieren_Actions )
endfunction
function Trig_Divine_Prayer_Kopieren_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A02C' ) ) then
return false
endif
return true
endfunction
function Trig_Divine_Prayer_Kopieren_Func001Func005C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A02C', GetSpellAbilityUnit()) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Divine_Prayer_Kopieren_Func001C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A02C', GetSpellAbilityUnit()) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Divine_Prayer_Kopieren_Actions takes nothing returns nothing
local unit tempunit
if ( Trig_Divine_Prayer_Kopieren_Func001C() ) then
call CreateNUnitsAtLoc( 1, 'e007', GetOwningPlayer(GetSpellAbilityUnit()), GetUnitLoc(GetSpellAbilityUnit()), bj_UNIT_FACING )
set tempunit = GetLastCreatedUnit()
call TriggerSleepAction( 0.50 )
call IssueImmediateOrderBJ( tempunit, "voodoo" )
else
if ( Trig_Divine_Prayer_Kopieren_Func001Func005C() ) then
call CreateNUnitsAtLoc( 1, 'e008', GetOwningPlayer(GetSpellAbilityUnit()), GetUnitLoc(GetSpellAbilityUnit()), bj_UNIT_FACING )
set tempunit = GetLastCreatedUnit()
call TriggerSleepAction( 0.50 )
call IssueImmediateOrderBJ( tempunit, "voodoo" )
else
call DoNothing( )
endif
endif
endfunction
//===========================================================================
function InitTrig_Divine_Prayer takes nothing returns nothing
set gg_trg_Divine_Prayer = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Divine_Prayer, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Divine_Prayer, Condition( function Trig_Divine_Prayer_Kopieren_Conditions ) )
call TriggerAddAction( gg_trg_Divine_Prayer, function Trig_Divine_Prayer_Kopieren_Actions )
endfunction
function Trig_Cube_Strike_Kopieren_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A04C' ) ) then
return false
endif
return true
endfunction
function checkiflevel5 takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A04C', GetSpellAbilityUnit()) == 5 ) ) then
return false
endif
return true
endfunction
function checkiflevel4 takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A04C', GetSpellAbilityUnit()) == 4 ) ) then
return false
endif
return true
endfunction
function checkiflevel3 takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A04C', GetSpellAbilityUnit()) == 3 ) ) then
return false
endif
return true
endfunction
function checkiflevel2 takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A04C', GetSpellAbilityUnit()) == 2 ) ) then
return false
endif
return true
endfunction
function checkiflevel1 takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A04C', GetSpellAbilityUnit()) == 1 ) ) then
return false
endif
return true
endfunction
function checkifalive takes unit a returns boolean
if ( not ( IsUnitDeadBJ(a) == true ) ) then
return false
endif
return true
endfunction
function Trig_Cube_Strike_Kopieren_Actions takes nothing returns nothing
local unit tempunit1
local unit tempunit2
local unit tempunit3
local unit tempunit4
local unit targettempunit
if ( checkiflevel1() ) then
call CreateNUnitsAtLocFacingLocBJ( 1, 'u00H', GetOwningPlayer(GetSpellAbilityUnit()), OffsetLocation(GetUnitLoc(GetSpellTargetUnit()), 400.00, 400.00), GetUnitLoc(GetSpellTargetUnit()) )
set tempunit1 = GetLastCreatedUnit()
call CreateNUnitsAtLocFacingLocBJ( 1, 'u00H', GetOwningPlayer(GetSpellAbilityUnit()), OffsetLocation(GetUnitLoc(GetSpellTargetUnit()), -400.00, 400.00), GetUnitLoc(GetSpellTargetUnit()) )
set tempunit2 = GetLastCreatedUnit()
call CreateNUnitsAtLocFacingLocBJ( 1, 'u00H', GetOwningPlayer(GetSpellAbilityUnit()), OffsetLocation(GetUnitLoc(GetSpellTargetUnit()), -400.00, -400.00), GetUnitLoc(GetSpellTargetUnit()) )
set tempunit3 = GetLastCreatedUnit()
call CreateNUnitsAtLocFacingLocBJ( 1, 'u00H', GetOwningPlayer(GetSpellAbilityUnit()), OffsetLocation(GetUnitLoc(GetSpellTargetUnit()), 400.00, -400.00), GetUnitLoc(GetSpellTargetUnit()) )
set tempunit4 = GetLastCreatedUnit()
set targettempunit = GetSpellTargetUnit()
call IssueTargetOrderBJ( tempunit1, "attack", targettempunit )
call IssueTargetOrderBJ( tempunit2, "attack", targettempunit )
call IssueTargetOrderBJ( tempunit3, "attack", targettempunit )
call IssueTargetOrderBJ( tempunit4, "attack", targettempunit )
call AddSpecialEffectLocBJ( GetUnitLoc(tempunit1), "Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaosTarget.mdl" )
call AddSpecialEffectLocBJ( GetUnitLoc(tempunit2), "Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaosTarget.mdl" )
call AddSpecialEffectLocBJ( GetUnitLoc(tempunit3), "Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaosTarget.mdl" )
call AddSpecialEffectLocBJ( GetUnitLoc(tempunit4), "Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaosTarget.mdl" )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 10
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call TriggerSleepAction( 1.00 )
if ( checkifalive(targettempunit) ) then
call KillUnit( tempunit1 )
call KillUnit( tempunit2 )
call KillUnit( tempunit3 )
call KillUnit( tempunit4 )
else
call DoNothing( )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call KillUnit( tempunit1 )
call KillUnit( tempunit2 )
call KillUnit( tempunit3 )
call KillUnit( tempunit4 )
else
if ( checkiflevel2() ) then
call CreateNUnitsAtLocFacingLocBJ( 1, 'u00G', GetOwningPlayer(GetSpellAbilityUnit()), OffsetLocation(GetUnitLoc(GetSpellTargetUnit()), 400.00, 400.00), GetUnitLoc(GetSpellTargetUnit()) )
set tempunit1 = GetLastCreatedUnit()
call CreateNUnitsAtLocFacingLocBJ( 1, 'u00G', GetOwningPlayer(GetSpellAbilityUnit()), OffsetLocation(GetUnitLoc(GetSpellTargetUnit()), -400.00, 400.00), GetUnitLoc(GetSpellTargetUnit()) )
set tempunit2 = GetLastCreatedUnit()
call CreateNUnitsAtLocFacingLocBJ( 1, 'u00G', GetOwningPlayer(GetSpellAbilityUnit()), OffsetLocation(GetUnitLoc(GetSpellTargetUnit()), -400.00, -400.00), GetUnitLoc(GetSpellTargetUnit()) )
set tempunit3 = GetLastCreatedUnit()
call CreateNUnitsAtLocFacingLocBJ( 1, 'u00G', GetOwningPlayer(GetSpellAbilityUnit()), OffsetLocation(GetUnitLoc(GetSpellTargetUnit()), 400.00, -400.00), GetUnitLoc(GetSpellTargetUnit()) )
set tempunit4 = GetLastCreatedUnit()
set targettempunit = GetSpellTargetUnit()
call IssueTargetOrderBJ( tempunit1, "attack", targettempunit )
call IssueTargetOrderBJ( tempunit2, "attack", targettempunit )
call IssueTargetOrderBJ( tempunit3, "attack", targettempunit )
call IssueTargetOrderBJ( tempunit4, "attack", targettempunit )
call AddSpecialEffectLocBJ( GetUnitLoc(tempunit1), "Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaosTarget.mdl" )
call AddSpecialEffectLocBJ( GetUnitLoc(tempunit2), "Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaosTarget.mdl" )
call AddSpecialEffectLocBJ( GetUnitLoc(tempunit3), "Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaosTarget.mdl" )
call AddSpecialEffectLocBJ( GetUnitLoc(tempunit4), "Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaosTarget.mdl" )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 15
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call TriggerSleepAction( 1.00 )
if ( checkifalive(targettempunit) ) then
call KillUnit( tempunit1 )
call KillUnit( tempunit2 )
call KillUnit( tempunit3 )
call KillUnit( tempunit4 )
else
call DoNothing( )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call KillUnit( tempunit1 )
call KillUnit( tempunit2 )
call KillUnit( tempunit3 )
call KillUnit( tempunit4 )
else
if ( checkiflevel3() ) then
call CreateNUnitsAtLocFacingLocBJ( 1, 'u00J', GetOwningPlayer(GetSpellAbilityUnit()), OffsetLocation(GetUnitLoc(GetSpellTargetUnit()), 400.00, 400.00), GetUnitLoc(GetSpellTargetUnit()) )
set tempunit1 = GetLastCreatedUnit()
call CreateNUnitsAtLocFacingLocBJ( 1, 'u00J', GetOwningPlayer(GetSpellAbilityUnit()), OffsetLocation(GetUnitLoc(GetSpellTargetUnit()), -400.00, 400.00), GetUnitLoc(GetSpellTargetUnit()) )
set tempunit2 = GetLastCreatedUnit()
call CreateNUnitsAtLocFacingLocBJ( 1, 'u00J', GetOwningPlayer(GetSpellAbilityUnit()), OffsetLocation(GetUnitLoc(GetSpellTargetUnit()), -400.00, -400.00), GetUnitLoc(GetSpellTargetUnit()) )
set tempunit3 = GetLastCreatedUnit()
call CreateNUnitsAtLocFacingLocBJ( 1, 'u00J', GetOwningPlayer(GetSpellAbilityUnit()), OffsetLocation(GetUnitLoc(GetSpellTargetUnit()), 400.00, -400.00), GetUnitLoc(GetSpellTargetUnit()) )
set tempunit4 = GetLastCreatedUnit()
set targettempunit = GetSpellTargetUnit()
call IssueTargetOrderBJ( tempunit1, "attack", targettempunit )
call IssueTargetOrderBJ( tempunit2, "attack", targettempunit )
call IssueTargetOrderBJ( tempunit3, "attack", targettempunit )
call IssueTargetOrderBJ( tempunit4, "attack", targettempunit )
call AddSpecialEffectLocBJ( GetUnitLoc(tempunit1), "Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaosTarget.mdl" )
call AddSpecialEffectLocBJ( GetUnitLoc(tempunit2), "Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaosTarget.mdl" )
call AddSpecialEffectLocBJ( GetUnitLoc(tempunit3), "Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaosTarget.mdl" )
call AddSpecialEffectLocBJ( GetUnitLoc(tempunit4), "Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaosTarget.mdl" )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 20
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call TriggerSleepAction( 1.00 )
if ( checkifalive(targettempunit) ) then
call KillUnit( tempunit1 )
call KillUnit( tempunit2 )
call KillUnit( tempunit3 )
call KillUnit( tempunit4 )
else
call DoNothing( )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call KillUnit( tempunit1 )
call KillUnit( tempunit2 )
call KillUnit( tempunit3 )
call KillUnit( tempunit4 )
else
if ( checkiflevel4() ) then
call CreateNUnitsAtLocFacingLocBJ( 1, 'u00K', GetOwningPlayer(GetSpellAbilityUnit()), OffsetLocation(GetUnitLoc(GetSpellTargetUnit()), 400.00, 400.00), GetUnitLoc(GetSpellTargetUnit()) )
set tempunit1 = GetLastCreatedUnit()
call CreateNUnitsAtLocFacingLocBJ( 1, 'u00K', GetOwningPlayer(GetSpellAbilityUnit()), OffsetLocation(GetUnitLoc(GetSpellTargetUnit()), -400.00, 400.00), GetUnitLoc(GetSpellTargetUnit()) )
set tempunit2 = GetLastCreatedUnit()
call CreateNUnitsAtLocFacingLocBJ( 1, 'u00K', GetOwningPlayer(GetSpellAbilityUnit()), OffsetLocation(GetUnitLoc(GetSpellTargetUnit()), -400.00, -400.00), GetUnitLoc(GetSpellTargetUnit()) )
set tempunit3 = GetLastCreatedUnit()
call CreateNUnitsAtLocFacingLocBJ( 1, 'u00K', GetOwningPlayer(GetSpellAbilityUnit()), OffsetLocation(GetUnitLoc(GetSpellTargetUnit()), 400.00, -400.00), GetUnitLoc(GetSpellTargetUnit()) )
set tempunit4 = GetLastCreatedUnit()
set targettempunit = GetSpellTargetUnit()
call IssueTargetOrderBJ( tempunit1, "attack", targettempunit )
call IssueTargetOrderBJ( tempunit2, "attack", targettempunit )
call IssueTargetOrderBJ( tempunit3, "attack", targettempunit )
call IssueTargetOrderBJ( tempunit4, "attack", targettempunit )
call AddSpecialEffectLocBJ( GetUnitLoc(tempunit1), "Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaosTarget.mdl" )
call AddSpecialEffectLocBJ( GetUnitLoc(tempunit2), "Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaosTarget.mdl" )
call AddSpecialEffectLocBJ( GetUnitLoc(tempunit3), "Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaosTarget.mdl" )
call AddSpecialEffectLocBJ( GetUnitLoc(tempunit4), "Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaosTarget.mdl" )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 25
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call TriggerSleepAction( 1.00 )
if ( checkifalive(targettempunit) ) then
call KillUnit( tempunit1 )
call KillUnit( tempunit2 )
call KillUnit( tempunit3 )
call KillUnit( tempunit4 )
else
call DoNothing( )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call KillUnit( tempunit1 )
call KillUnit( tempunit2 )
call KillUnit( tempunit3 )
call KillUnit( tempunit4 )
else
if ( checkiflevel5() ) then
call CreateNUnitsAtLocFacingLocBJ( 1, 'u00I', GetOwningPlayer(GetSpellAbilityUnit()), OffsetLocation(GetUnitLoc(GetSpellTargetUnit()), 400.00, 400.00), GetUnitLoc(GetSpellTargetUnit()) )
set tempunit1 = GetLastCreatedUnit()
call CreateNUnitsAtLocFacingLocBJ( 1, 'u00I', GetOwningPlayer(GetSpellAbilityUnit()), OffsetLocation(GetUnitLoc(GetSpellTargetUnit()), -400.00, 400.00), GetUnitLoc(GetSpellTargetUnit()) )
set tempunit2 = GetLastCreatedUnit()
call CreateNUnitsAtLocFacingLocBJ( 1, 'u00I', GetOwningPlayer(GetSpellAbilityUnit()), OffsetLocation(GetUnitLoc(GetSpellTargetUnit()), -400.00, -400.00), GetUnitLoc(GetSpellTargetUnit()) )
set tempunit3 = GetLastCreatedUnit()
call CreateNUnitsAtLocFacingLocBJ( 1, 'u00I', GetOwningPlayer(GetSpellAbilityUnit()), OffsetLocation(GetUnitLoc(GetSpellTargetUnit()), 400.00, -400.00), GetUnitLoc(GetSpellTargetUnit()) )
set tempunit4 = GetLastCreatedUnit()
set targettempunit = GetSpellTargetUnit()
call IssueTargetOrderBJ( tempunit1, "attack", targettempunit )
call IssueTargetOrderBJ( tempunit2, "attack", targettempunit )
call IssueTargetOrderBJ( tempunit3, "attack", targettempunit )
call IssueTargetOrderBJ( tempunit4, "attack", targettempunit )
call AddSpecialEffectLocBJ( GetUnitLoc(tempunit1), "Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaosTarget.mdl" )
call AddSpecialEffectLocBJ( GetUnitLoc(tempunit2), "Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaosTarget.mdl" )
call AddSpecialEffectLocBJ( GetUnitLoc(tempunit3), "Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaosTarget.mdl" )
call AddSpecialEffectLocBJ( GetUnitLoc(tempunit4), "Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaosTarget.mdl" )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 30
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call TriggerSleepAction( 1.00 )
if ( checkifalive(targettempunit) ) then
call KillUnit( tempunit1 )
call KillUnit( tempunit2 )
call KillUnit( tempunit3 )
call KillUnit( tempunit4 )
else
call DoNothing( )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call KillUnit( tempunit1 )
call KillUnit( tempunit2 )
call KillUnit( tempunit3 )
call KillUnit( tempunit4 )
else
call DoNothing( )
endif
endif
endif
endif
endif
endfunction
//===========================================================================
function InitTrig_Crossfire takes nothing returns nothing
set gg_trg_Crossfire = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Crossfire, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Crossfire, Condition( function Trig_Cube_Strike_Kopieren_Conditions ) )
call TriggerAddAction( gg_trg_Crossfire, function Trig_Cube_Strike_Kopieren_Actions )
endfunction
function Trig_Suicide_Morpher_Kopieren_Kopieren_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A02T' ) ) then
return false
endif
return true
endfunction
function Trig_Suicide_Morpher_Kopieren_Kopieren_Actions takes nothing returns nothing
local location temploc
local real tempreal
set temploc = GetUnitLoc(GetSpellAbilityUnit())
set tempreal = AngleBetweenPoints(temploc, GetSpellTargetLoc())
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 10
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ( PolarProjectionBJ(temploc, ( 75.00 * I2R(GetForLoopIndexA()) ), tempreal), "Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaosTarget.mdl" )
call TriggerSleepAction( 0.03 )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_Wave_markeffect takes nothing returns nothing
set gg_trg_Wave_markeffect = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Wave_markeffect, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Wave_markeffect, Condition( function Trig_Suicide_Morpher_Kopieren_Kopieren_Conditions ) )
call TriggerAddAction( gg_trg_Wave_markeffect, function Trig_Suicide_Morpher_Kopieren_Kopieren_Actions )
endfunction
function Trig_Moon_Ray_Kopieren_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A046' ) ) then
return false
endif
return true
endfunction
function Trig_Moon_Ray_Kopieren_Actions takes nothing returns nothing
local unit tempunit1
local unit tempunit2
local unit tempunit3
local unit tempunit4
call CreateNUnitsAtLoc( 1, 'e00I', GetOwningPlayer(GetSpellAbilityUnit()), GetSpellTargetLoc(), bj_UNIT_FACING )
set tempunit1 = GetLastCreatedUnit()
call TriggerSleepAction( 0.05 )
call CreateNUnitsAtLoc( 1, 'e00I', GetOwningPlayer(GetSpellAbilityUnit()), GetSpellTargetLoc(), bj_UNIT_FACING )
set tempunit2 = GetLastCreatedUnit()
call TriggerSleepAction( 0.05 )
call CreateNUnitsAtLoc( 1, 'e00I', GetOwningPlayer(GetSpellAbilityUnit()), GetSpellTargetLoc(), bj_UNIT_FACING )
set tempunit3 = GetLastCreatedUnit()
call TriggerSleepAction( 0.05 )
call CreateNUnitsAtLoc( 1, 'e00I', GetOwningPlayer(GetSpellAbilityUnit()), GetSpellTargetLoc(), bj_UNIT_FACING )
set tempunit4 = GetLastCreatedUnit()
call TriggerSleepAction( 5.0 )
call KillUnit( tempunit1 )
call KillUnit( tempunit2 )
call KillUnit( tempunit3 )
call KillUnit( tempunit4 )
endfunction
//===========================================================================
function InitTrig_Moon_Ray takes nothing returns nothing
set gg_trg_Moon_Ray = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Moon_Ray, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Moon_Ray, Condition( function Trig_Moon_Ray_Kopieren_Conditions ) )
call TriggerAddAction( gg_trg_Moon_Ray, function Trig_Moon_Ray_Kopieren_Actions )
endfunction