Name | Type | is_array | initial_value |
AAssist | integer | Yes | |
ADead | integer | Yes | |
AI_Unit | unit | Yes | |
AKill | integer | Yes | |
AutoMove | group | No | |
ChosenHero | unit | Yes | |
Colour | string | Yes | |
Game_Start | real | No | |
GDD__Integers | integer | Yes | |
GDD__LeftMapGroup | group | No | |
GDD__TriggerArray | trigger | Yes | |
GDD__UnitArray | unit | Yes | |
GDD_Damage | real | No | |
GDD_DamagedUnit | unit | No | |
GDD_DamageSource | unit | No | |
GDD_Event | real | No | |
HeroCountOfHeroTypes | integer | No | |
HeroType | unitcode | Yes | |
Ia | integer | No | |
Ic | integer | No | |
Ico | string | Yes | |
IconPathHero | string | Yes | |
Id | integer | No | |
Ik | integer | No | |
Infinitymana | group | Yes | |
IntegerRevive | integer | No | |
IntegerRevives | integer | No | |
Is | integer | No | |
MB_AssistHastablePG1 | hashtable | No | |
MB_AssistHastablePG2 | hashtable | No | |
MB_AssistUnit | unit | Yes | |
MB_BooleanCooldown | boolean | Yes | |
MB_Cheking | boolean | No | |
MB_Cooldown | integer | Yes | |
MB_CountPlayerGroup1 | integer | No | |
MB_CountPlayerGroup2 | integer | No | |
MB_Integer | integer | No | |
MB_IntegerAssistHastable | integer | No | |
MB_IntegerCooldown | integer | No | |
MB_IntegerKillAllyCreeps | integer | Yes | |
MB_IntegerKillCreeps | integer | Yes | |
MB_IntegerRevive | integer | No | |
MB_IntegerTitle | integer | No | |
MB_Lederboard | leaderboard | Yes | |
MB_Player | integer | No | |
MB_PlayerGroup | force | Yes | |
MB_Playername | string | Yes | |
MB_ReviveLederboard | leaderboard | Yes | |
MB_Row | integer | No | |
MB_TimeBoolean | boolean | Yes | |
MB_TimeRevive | integer | Yes | |
MB_TimeUnit | unit | Yes | |
MB_TitileReviveTimePG1 | integer | No | |
MB_TitileReviveTimePG2 | integer | No | |
MB_Title | string | Yes | |
MB_TitleRespawn | string | Yes | |
MB_TitleRespawnPG1Alied | string | No | |
MB_TitleRespawnPG1Enemy | string | No | |
MB_TitleRespawnPG2Alied | string | No | |
MB_TitleRespawnPG2Enemy | string | No | |
MB_Trigger | trigger | Yes | |
MB_UnitGroup | group | Yes | |
Multiboard_Icons | string | Yes | |
Sound1 | integer | Yes | |
SoundFloatingText | texttag | Yes | |
SoundGoldReward | integer | Yes | |
Sprout_Loc | location | Yes | |
Sprout_Region | rect | No | |
Sprout_Unit | unit | No | |
Unt | unit | No | |
Va | multiboard | Yes | |
Za | integer | Yes |
function Trig_Sprout_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A003' ) ) then
return false
endif
return true
endfunction
function Trig_Sprout_Func027001002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'Oshd' )
endfunction
function Trig_Sprout_Func027001002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'o000' )
endfunction
function Trig_Sprout_Func027001002002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'o001' )
endfunction
function Trig_Sprout_Func027001002002002002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'o002' )
endfunction
function Trig_Sprout_Func027001002002002 takes nothing returns boolean
return GetBooleanOr( Trig_Sprout_Func027001002002002001(), Trig_Sprout_Func027001002002002002() )
endfunction
function Trig_Sprout_Func027001002002 takes nothing returns boolean
return GetBooleanOr( Trig_Sprout_Func027001002002001(), Trig_Sprout_Func027001002002002() )
endfunction
function Trig_Sprout_Func027001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Sprout_Func027001002001(), Trig_Sprout_Func027001002002() )
endfunction
function Trig_Sprout_Func027A takes nothing returns nothing
call UnitApplyTimedLifeBJ( 40.00, 'BEfn', GetEnumUnit() )
call SelectGroupBJ( GetUnitsInRectOfPlayer(udg_Sprout_Region, GetOwningPlayer(GetSpellAbilityUnit())) )
endfunction
function Trig_Sprout_Func046001002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'Oshd' )
endfunction
function Trig_Sprout_Func046001002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'o000' )
endfunction
function Trig_Sprout_Func046001002002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'o001' )
endfunction
function Trig_Sprout_Func046001002002002002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'o002' )
endfunction
function Trig_Sprout_Func046001002002002 takes nothing returns boolean
return GetBooleanOr( Trig_Sprout_Func046001002002002001(), Trig_Sprout_Func046001002002002002() )
endfunction
function Trig_Sprout_Func046001002002 takes nothing returns boolean
return GetBooleanOr( Trig_Sprout_Func046001002002001(), Trig_Sprout_Func046001002002002() )
endfunction
function Trig_Sprout_Func046001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Sprout_Func046001002001(), Trig_Sprout_Func046001002002() )
endfunction
function Trig_Sprout_Func046A takes nothing returns nothing
call UnitApplyTimedLifeBJ( 40.00, 'BEfn', GetEnumUnit() )
call SelectGroupBJ( GetUnitsInRectOfPlayer(udg_Sprout_Region, GetOwningPlayer(GetSpellAbilityUnit())) )
endfunction
function Trig_Sprout_Func065001002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'Oshd' )
endfunction
function Trig_Sprout_Func065001002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'o000' )
endfunction
function Trig_Sprout_Func065001002002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'o001' )
endfunction
function Trig_Sprout_Func065001002002002002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'o002' )
endfunction
function Trig_Sprout_Func065001002002002 takes nothing returns boolean
return GetBooleanOr( Trig_Sprout_Func065001002002002001(), Trig_Sprout_Func065001002002002002() )
endfunction
function Trig_Sprout_Func065001002002 takes nothing returns boolean
return GetBooleanOr( Trig_Sprout_Func065001002002001(), Trig_Sprout_Func065001002002002() )
endfunction
function Trig_Sprout_Func065001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Sprout_Func065001002001(), Trig_Sprout_Func065001002002() )
endfunction
function Trig_Sprout_Func065A takes nothing returns nothing
call UnitApplyTimedLifeBJ( 40.00, 'BEfn', GetEnumUnit() )
call SelectGroupBJ( GetUnitsInRectOfPlayer(udg_Sprout_Region, GetOwningPlayer(GetSpellAbilityUnit())) )
endfunction
function Trig_Sprout_Actions takes nothing returns nothing
set udg_Sprout_Loc[1] = GetSpellTargetLoc()
call CreateNUnitsAtLoc( 1, 'n000', GetOwningPlayer(GetTriggerUnit()), udg_Sprout_Loc[1], bj_UNIT_FACING )
call RemoveLocation(udg_Sprout_Loc[1])
set udg_Sprout_Unit = GetLastCreatedUnit()
set udg_Sprout_Loc[2] = GetUnitLoc(udg_Sprout_Unit)
set udg_Sprout_Region = RectFromCenterSizeBJ(udg_Sprout_Loc[2], 600.00, 600.00)
call UnitApplyTimedLifeBJ( 7.00, 'BTLF', udg_Sprout_Unit )
call TriggerSleepAction( 0.50 )
call IssueImmediateOrderBJ( GetTriggerUnit(), "stop" )
if GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetSpellAbilityUnit()) == 1 then
call CreateNUnitsAtLoc( 1, 'o001', GetOwningPlayer(GetSpellAbilityUnit()), PolarProjectionBJ(udg_Sprout_Loc[2], 75.00, 45.00), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 40.00, 'BEfn', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'o001', GetOwningPlayer(GetSpellAbilityUnit()), PolarProjectionBJ(udg_Sprout_Loc[2], 75.00, 90.00), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 40.00, 'BEfn', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'o001', GetOwningPlayer(GetSpellAbilityUnit()), PolarProjectionBJ(udg_Sprout_Loc[2], 75.00, 135.00), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 40.00, 'BEfn', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'o001', GetOwningPlayer(GetSpellAbilityUnit()), PolarProjectionBJ(udg_Sprout_Loc[2], 75.00, 180.00), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 40.00, 'BEfn', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'o001', GetOwningPlayer(GetSpellAbilityUnit()), PolarProjectionBJ(udg_Sprout_Loc[2], 75.00, 225.00), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 40.00, 'BEfn', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'o001', GetOwningPlayer(GetSpellAbilityUnit()), PolarProjectionBJ(udg_Sprout_Loc[2], 75.00, 260.00), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 40.00, 'BEfn', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'o001', GetOwningPlayer(GetSpellAbilityUnit()), PolarProjectionBJ(udg_Sprout_Loc[2], 75.00, 305.00), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 40.00, 'BEfn', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'o001', GetOwningPlayer(GetSpellAbilityUnit()), PolarProjectionBJ(udg_Sprout_Loc[2], 75.00, 0.00), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 40.00, 'BEfn', GetLastCreatedUnit() )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Sprout_Func027001002)), function Trig_Sprout_Func027A )
endif
if GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetSpellAbilityUnit()) == 2 then
call CreateNUnitsAtLoc( 1, 'o000', GetOwningPlayer(GetSpellAbilityUnit()), PolarProjectionBJ(udg_Sprout_Loc[2], 75.00, 45.00), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 40.00, 'BEfn', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'o000', GetOwningPlayer(GetSpellAbilityUnit()), PolarProjectionBJ(udg_Sprout_Loc[2], 75.00, 90.00), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 40.00, 'BEfn', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'o000', GetOwningPlayer(GetSpellAbilityUnit()), PolarProjectionBJ(udg_Sprout_Loc[2], 75.00, 135.00), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 40.00, 'BEfn', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'o000', GetOwningPlayer(GetSpellAbilityUnit()), PolarProjectionBJ(udg_Sprout_Loc[2], 75.00, 180.00), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 40.00, 'BEfn', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'o000', GetOwningPlayer(GetSpellAbilityUnit()), PolarProjectionBJ(udg_Sprout_Loc[2], 75.00, 225.00), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 40.00, 'BEfn', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'o000', GetOwningPlayer(GetSpellAbilityUnit()), PolarProjectionBJ(udg_Sprout_Loc[2], 75.00, 260.00), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 40.00, 'BEfn', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'o000', GetOwningPlayer(GetSpellAbilityUnit()), PolarProjectionBJ(udg_Sprout_Loc[2], 75.00, 305.00), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 40.00, 'BEfn', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'o000', GetOwningPlayer(GetSpellAbilityUnit()), PolarProjectionBJ(udg_Sprout_Loc[2], 75.00, 0.00), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 40.00, 'BEfn', GetLastCreatedUnit() )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Sprout_Func046001002)), function Trig_Sprout_Func046A )
endif
if GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetSpellAbilityUnit()) == 3 then
call CreateNUnitsAtLoc( 1, 'o002', GetOwningPlayer(GetSpellAbilityUnit()), PolarProjectionBJ(udg_Sprout_Loc[2], 75.00, 45.00), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 40.00, 'BEfn', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'o002', GetOwningPlayer(GetSpellAbilityUnit()), PolarProjectionBJ(udg_Sprout_Loc[2], 75.00, 90.00), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 40.00, 'BEfn', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'o002', GetOwningPlayer(GetSpellAbilityUnit()), PolarProjectionBJ(udg_Sprout_Loc[2], 75.00, 135.00), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 40.00, 'BEfn', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'o002', GetOwningPlayer(GetSpellAbilityUnit()), PolarProjectionBJ(udg_Sprout_Loc[2], 75.00, 180.00), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 40.00, 'BEfn', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'o002', GetOwningPlayer(GetSpellAbilityUnit()), PolarProjectionBJ(udg_Sprout_Loc[2], 75.00, 225.00), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 40.00, 'BEfn', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'o002', GetOwningPlayer(GetSpellAbilityUnit()), PolarProjectionBJ(udg_Sprout_Loc[2], 75.00, 260.00), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 40.00, 'BEfn', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'o002', GetOwningPlayer(GetSpellAbilityUnit()), PolarProjectionBJ(udg_Sprout_Loc[2], 75.00, 305.00), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 40.00, 'BEfn', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'o002', GetOwningPlayer(GetSpellAbilityUnit()), PolarProjectionBJ(udg_Sprout_Loc[2], 75.00, 0.00), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 40.00, 'BEfn', GetLastCreatedUnit() )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Sprout_Func065001002)), function Trig_Sprout_Func065A )
endif
set udg_Sprout_Region = null
call RemoveLocation(udg_Sprout_Loc[2])
endfunction
//===========================================================================
function InitTrig_Sprout takes nothing returns nothing
set gg_trg_Sprout = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Sprout, EVENT_PLAYER_UNIT_SPELL_CHANNEL )
call TriggerAddCondition( gg_trg_Sprout, Condition( function Trig_Sprout_Conditions ) )
call TriggerAddAction( gg_trg_Sprout, function Trig_Sprout_Actions )
endfunction