function SimError takes player ForPlayer, string msg returns nothing
if udg_SimError==null then
set udg_SimError=CreateSoundFromLabel( "InterfaceError",false,false,false,10,10)
endif
if (GetLocalPlayer() == ForPlayer) then
call ClearTextMessages()
call DisplayTimedTextToPlayer( ForPlayer, 0.52, -1.00, 2.00, "|cffffcc00"+msg+"|r" )
call StartSound( udg_SimError )
endif
endfunction
Name | Type | is_array | initial_value |
A_Orb | real | No | |
A_ORB | unit | Yes | |
A_Orb2 | real | No | |
AA | integer | Yes | |
AB | integer | No | |
Aplav_text | texttag | Yes | |
Arrow_point | location | No | |
Arrow_point2 | location | No | |
ATATA | lightning | No | |
Axe | unit | No | |
BacktrackUnit | unit | No | |
BerserkCalled | group | No | |
Blink_point | location | No | |
Blink_point2 | location | No | |
BlinkModeOn | integer | No | |
BLoc | location | Yes | |
BR_Effect | effect | Yes | |
BR_Effect01 | effect | Yes | |
BR_Effect02 | effect | Yes | |
BR_Effect03 | effect | Yes | |
BR_Effect2 | effect | Yes | |
BR_Effect3 | effect | Yes | |
BR_Integer | integer | No | |
BR_Integer2 | integer | No | |
BR_Owner | unit | No | |
BR_Owner2 | unit | No | |
BR_TargetArea | location | No | |
BR_TargetArea2 | location | No | |
BR_Temppoint001 | location | No | |
BR_Temppoint0012 | location | No | |
BR_Temppoint002 | location | No | |
BR_Temppoint0022 | location | No | |
BR_Tempunit | unit | No | |
BR_Tempunit2 | unit | No | |
BR_UnitGroup | group | No | |
BR_UnitGroup1 | group | No | |
BR_UnitGroup2 | group | No | |
BR_UnitGroup22 | group | No | |
BS_unit | unit | Yes | |
Casting_unit | unit | Yes | |
CastingUnit4 | unit | No | |
CastingUnit7 | unit | No | |
CF_Snd | integer | No | |
Chain_Missile | unit | No | |
ChainFrost_Group | group | No | |
ChainFrost_Jumps | integer | No | |
ChanceRoll | integer | No | |
Chaos_dmg | integer | No | |
Chaos_stun | integer | No | |
Clock | unit | Yes | |
CMBOARD | multiboard | No | |
Cmheroes | unitcode | Yes | |
CmTAvern | unit | Yes | |
Color | string | Yes | |
CounterHelixCD | integer | No | |
DArki_number | integer | No | |
Deaths | integer | Yes | |
Degree | real | Yes | |
Dis_Con | real | No | |
Distance | real | No | |
Dlya_aa_af | player | Yes | |
Double | integer | Yes | |
Elune_Arrow | unit | Yes | |
Epicenter_caster | unit | Yes | |
ER_Angel | real | Yes | |
ER_Group | group | No | |
Er_Group2 | group | No | |
ER_TARGER | unit | Yes | |
ER_TOCHKA | location | Yes | |
First_Blood | boolean | No | |
FissuDECOR | destructable | Yes | |
Fissure | integer | No | |
Fissurepoint | location | Yes | |
For_runes_integer | integer | Yes | |
GamemodeSet | integer | No | |
Gery | unit | Yes | |
GI_Caster | unit | No | |
GI_EnemysGroup | group | No | |
GI_SpecEffect | effect | No | |
GI_TargetPoint | location | No | |
Hero_scor | unitcode | Yes | |
Hero_sent | unitcode | Yes | |
Hero_vse | unitcode | Yes | |
HeroType | player | Yes | |
HOST | player | No | |
Hostnumber | integer | No | |
HydroCaster | unit | Yes | |
HydroCastPoint | location | Yes | |
HydroCounter | integer | Yes | |
HydroLength | real | Yes | |
HydroTargetpos | location | Yes | |
HydroUsers | integer | No | |
HydroWavepos | location | Yes | |
HydroWaveTargets | group | Yes | |
Iconki_DlyBorda | string | Yes | |
Iconki_DlyCM | string | Yes | |
IgnitePillarGroup | group | No | |
IlluOrbOn | integer | No | |
IntegerToMoveCastingUnit4 | integer | No | |
IntegerToMoveCastingUnit7 | integer | No | |
Kill_Count | integer | Yes | |
Kill_Waiting_Time | integer | Yes | |
KillLimitSet | integer | No | |
KillMessages_List | string | Yes | |
Kills | integer | Yes | |
KillspreeEndMessages_List | string | Yes | |
Leap_Angel | real | Yes | |
Leap_tochka | location | Yes | |
Leshrac | unit | No | |
Lich | unit | No | |
Lich_Point | location | No | |
llalala | integer | No | |
M_Min | integer | No | |
M_Sec | integer | No | |
Magnus_naumber | integer | No | |
Magnus_naumber2 | integer | No | |
Make_Kill | boolean | No | |
Max_Jumps | integer | No | |
MBoard | multiboard | No | |
MH_Angel2 | real | No | |
MH_Angle | real | No | |
MH_Level | integer | No | |
MH_Link | unit | Yes | |
MH_Link2 | unit | Yes | |
MH_Links | integer | No | |
MH_Links2 | integer | No | |
MH_Unit | unit | Yes | |
Mine | unit | No | |
Minutes | integer | No | |
Missile_Point | location | No | |
MS | integer | No | |
Mult | integer | Yes | |
MultiKilling_Spree | integer | Yes | |
NOKI_X | integer | Yes | |
Nova_Damage | abilcode | No | |
Nova_Point | location | No | |
Nova_Target | unit | No | |
Nugno_Kills | integer | No | |
Offset_Point | location | No | |
OgreMagi | unit | No | |
OR_Angel | real | Yes | |
OR_GROUP | group | Yes | |
OR_Tocha | location | Yes | |
Orb_otrad | group | Yes | |
Orb_otrad2 | group | No | |
Orb_point | location | No | |
Orb_point2 | location | No | |
Otryad | group | Yes | |
PlayerGroup | force | No | |
PlayerHashScourge | hashtable | Yes | |
PlayerHashSent | hashtable | Yes | |
Players_Name | string | Yes | |
Position_Spells | location | Yes | |
Predmet | item | Yes | |
Raal | real | No | |
Random_scor | integer | No | |
Random_sent | integer | No | |
Random_vse | integer | No | |
RastOFtoss | integer | Yes | |
Region | location | Yes | |
RNGInteg | integer | No | |
RNGReal | real | No | |
RNGUnit | unit | No | |
RNGUnitGroup | group | No | |
Runes | itemcode | Yes | |
Scor_max | integer | No | |
Seconds | integer | No | |
Sent_max | integer | No | |
Shadunit | unit | Yes | |
shiptochka | location | No | |
shipygol | real | No | |
SimError | sound | No | |
Sounds_List | sound | Yes | |
StarfallGroup | group | No | |
StarfallSFX | effect | No | |
Start__orb | location | Yes | |
Swap | rect | Yes | |
Swappoint | location | Yes | |
swapunit | unit | Yes | |
Telekines_angel | real | Yes | |
Telekines_group | group | No | |
Telekines_tochka | location | No | |
Telekines_tochka2 | location | No | |
Telekines_unit | unit | Yes | |
Temp_Group | group | No | |
Temp_Group2 | group | No | |
TempPoint | location | No | |
Text_plav | texttag | No | |
Toss_angel | real | Yes | |
Toss_caster | unit | Yes | |
Toss_Dist | real | No | |
Toss_group | group | No | |
Toss_point | location | Yes | |
Toss_point1 | location | No | |
Toss_point2 | location | No | |
Toss_targer | unit | Yes | |
Toss_tochka | location | Yes | |
Total_Messages | integer | No | |
Turn | string | Yes | |
Ugol | real | No | |
Ugol2 | real | No | |
Virtual_host | integer | No | |
VSE_max | integer | No | |
Zeus_ult | unit | Yes |
function Trig_asd_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I008' ) ) then
return false
endif
return true
endfunction
function Trig_asd_Actions takes nothing returns nothing
local unit z
set z = GetTriggerUnit()
call UnitAddAbilityBJ( 'A029', z )
call TriggerSleepAction( 30.00 )
call UnitRemoveAbilityBJ( 'A029', z )
endfunction
//===========================================================================
function InitTrig_Finger_RuneGet takes nothing returns nothing
set gg_trg_Finger_RuneGet = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Finger_RuneGet, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Finger_RuneGet, Condition( function Trig_asd_Conditions ) )
call TriggerAddAction( gg_trg_Finger_RuneGet, function Trig_asd_Actions )
endfunction
function Trig_Finger_Of_Death_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A029' ) ) then
return false
endif
return true
endfunction
function Trig_Finger_Of_Death_Actions takes nothing returns nothing
local unit z
set z = GetTriggerUnit()
call TriggerSleepAction( 0.10 )
call UnitRemoveAbilityBJ( 'A029', z )
endfunction
//===========================================================================
function InitTrig_Finger_RuneCast takes nothing returns nothing
set gg_trg_Finger_RuneCast = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Finger_RuneCast, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Finger_RuneCast, Condition( function Trig_Finger_Of_Death_Conditions ) )
call TriggerAddAction( gg_trg_Finger_RuneCast, function Trig_Finger_Of_Death_Actions )
endfunction
function Trig_asd2_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I004' ) ) then
return false
endif
return true
endfunction
function Trig_asd2_Actions takes nothing returns nothing
local unit z
set z = GetTriggerUnit()
call UnitAddAbilityBJ( 'A028', z )
call TriggerSleepAction( 30.00 )
call UnitRemoveAbilityBJ( 'A028', z )
endfunction
//===========================================================================
function InitTrig_WildDmg_RuneGet takes nothing returns nothing
set gg_trg_WildDmg_RuneGet = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_WildDmg_RuneGet, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_WildDmg_RuneGet, Condition( function Trig_asd2_Conditions ) )
call TriggerAddAction( gg_trg_WildDmg_RuneGet, function Trig_asd2_Actions )
endfunction
function Trig_Wild_Damage_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A028' ) ) then
return false
endif
return true
endfunction
function Trig_Wild_Damage_Actions takes nothing returns nothing
local unit z
set z = GetTriggerUnit()
call TriggerSleepAction( 0.10 )
call UnitRemoveAbilityBJ( 'A028', z )
endfunction
//===========================================================================
function InitTrig_WildDmg_RuneCast takes nothing returns nothing
set gg_trg_WildDmg_RuneCast = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_WildDmg_RuneCast, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_WildDmg_RuneCast, Condition( function Trig_Wild_Damage_Conditions ) )
call TriggerAddAction( gg_trg_WildDmg_RuneCast, function Trig_Wild_Damage_Actions )
endfunction
function Trig_asd3_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I005' ) ) then
return false
endif
return true
endfunction
function Trig_asd3_Actions takes nothing returns nothing
local unit z
set z = GetTriggerUnit()
call UnitAddAbilityBJ( 'A02A', z )
call TriggerSleepAction( 30.00 )
call UnitRemoveAbilityBJ( 'A02A', z )
endfunction
//===========================================================================
function InitTrig_Voodoo_RuneGet takes nothing returns nothing
set gg_trg_Voodoo_RuneGet = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Voodoo_RuneGet, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Voodoo_RuneGet, Condition( function Trig_asd3_Conditions ) )
call TriggerAddAction( gg_trg_Voodoo_RuneGet, function Trig_asd3_Actions )
endfunction
function Trig_Voodoo_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A02A' ) ) then
return false
endif
return true
endfunction
function Trig_Voodoo_Actions takes nothing returns nothing
local unit z
set z = GetTriggerUnit()
call TriggerSleepAction( 0.10 )
call UnitRemoveAbilityBJ( 'A02A', z )
endfunction
//===========================================================================
function InitTrig_Voodoo_RuneCast takes nothing returns nothing
set gg_trg_Voodoo_RuneCast = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Voodoo_RuneCast, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Voodoo_RuneCast, Condition( function Trig_Voodoo_Conditions ) )
call TriggerAddAction( gg_trg_Voodoo_RuneCast, function Trig_Voodoo_Actions )
endfunction
function Trig_asd4_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I006' ) ) then
return false
endif
return true
endfunction
function Trig_asd4_Actions takes nothing returns nothing
local unit z
set z = GetTriggerUnit()
call UnitAddAbilityBJ( 'A02B', z )
call TriggerSleepAction( 30.00 )
call UnitRemoveAbilityBJ( 'A02B', z )
endfunction
//===========================================================================
function InitTrig_WindWalk_RuneGet takes nothing returns nothing
set gg_trg_WindWalk_RuneGet = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_WindWalk_RuneGet, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_WindWalk_RuneGet, Condition( function Trig_asd4_Conditions ) )
call TriggerAddAction( gg_trg_WindWalk_RuneGet, function Trig_asd4_Actions )
endfunction
function Trig_Wind_Walk_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A02B' ) ) then
return false
endif
return true
endfunction
function Trig_Wind_Walk_Actions takes nothing returns nothing
local unit z
set z = GetTriggerUnit()
call TriggerSleepAction( 0.10 )
call UnitRemoveAbilityBJ( 'A02B', z )
endfunction
//===========================================================================
function InitTrig_WindWalk_RuneCast takes nothing returns nothing
set gg_trg_WindWalk_RuneCast = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_WindWalk_RuneCast, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_WindWalk_RuneCast, Condition( function Trig_Wind_Walk_Conditions ) )
call TriggerAddAction( gg_trg_WindWalk_RuneCast, function Trig_Wind_Walk_Actions )
endfunction
function Trig_asd5_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I007' ) ) then
return false
endif
return true
endfunction
function Trig_asd5_Actions takes nothing returns nothing
local unit z
set z = GetTriggerUnit()
call UnitAddAbilityBJ( 'A02U', z )
call TriggerSleepAction( 30.00 )
call UnitRemoveAbilityBJ( 'A02U', z )
endfunction
//===========================================================================
function InitTrig_HealWave_RuneGet takes nothing returns nothing
set gg_trg_HealWave_RuneGet = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_HealWave_RuneGet, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_HealWave_RuneGet, Condition( function Trig_asd5_Conditions ) )
call TriggerAddAction( gg_trg_HealWave_RuneGet, function Trig_asd5_Actions )
endfunction
function Trig_Health_wave_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A02U' ) ) then
return false
endif
return true
endfunction
function Trig_Health_wave_Actions takes nothing returns nothing
local unit z
set z = GetTriggerUnit()
call TriggerSleepAction( 0.10 )
call UnitRemoveAbilityBJ( 'A02U', z )
endfunction
//===========================================================================
function InitTrig_HealWave_RuneCast takes nothing returns nothing
set gg_trg_HealWave_RuneCast = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_HealWave_RuneCast, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_HealWave_RuneCast, Condition( function Trig_Health_wave_Conditions ) )
call TriggerAddAction( gg_trg_HealWave_RuneCast, function Trig_Health_wave_Actions )
endfunction
function Trig_we_Func001001001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(0)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_we_Func001001002 takes nothing returns boolean
return ( GetPlayerController(Player(0)) == MAP_CONTROL_USER )
endfunction
function Trig_we_Func001001 takes nothing returns boolean
return GetBooleanAnd( Trig_we_Func001001001(), Trig_we_Func001001002() )
endfunction
function Trig_we_Func001002 takes nothing returns boolean
return ( GetPlayerSlotState(Player(0)) == PLAYER_SLOT_STATE_LEFT )
endfunction
function Trig_we_Conditions takes nothing returns boolean
if ( not GetBooleanOr( Trig_we_Func001001(), Trig_we_Func001002() ) ) then
return false
endif
return true
endfunction
function Trig_we_Actions takes nothing returns nothing
endfunction
//===========================================================================
function InitTrig_KDDefault takes nothing returns nothing
set gg_trg_KDDefault = CreateTrigger( )
call TriggerAddCondition( gg_trg_KDDefault, Condition( function Trig_we_Conditions ) )
call TriggerAddAction( gg_trg_KDDefault, function Trig_we_Actions )
endfunction
function Trig_Multiboard_Actions takes nothing returns nothing
local integer a = 1
local integer b = 1
call CreateMultiboardBJ( 3, ( 6 + CountPlayersInForceBJ(udg_PlayerGroup) ), "DotA Fun-Wars" )
set udg_MBoard = GetLastCreatedMultiboard()
// String 1
loop
exitwhen a > 3
call MultiboardSetItemWidthBJ( udg_MBoard, a, 1, 0.01 )
call MultiboardSetItemStyleBJ( udg_MBoard, a, 1, false, false )
call MultiboardSetItemWidthBJ( udg_MBoard, a, 2, 0.01 )
call MultiboardSetItemStyleBJ( udg_MBoard, a, 2, false, false )
set a = a + 1
endloop
call MultiboardSetItemWidthBJ( udg_MBoard, 2, 1, 16 )
call MultiboardSetItemStyleBJ( udg_MBoard, 2, 1, true, false )
call MultiboardSetItemValueBJ( udg_MBoard, 2, 1, "|c00A3B7F5Время ("+I2S(udg_M_Min)+":0"+I2S(udg_M_Sec)+")|r" )
call MultiboardSetItemWidthBJ( udg_MBoard, 1, 2, 10 )
call MultiboardSetItemStyleBJ( udg_MBoard, 1, 2, true, false )
call MultiboardSetItemValueBJ( udg_MBoard, 1, 2, "|c00FF80FF East force|r" )
call MultiboardSetItemWidthBJ(udg_MBoard, 2, 2, 3.00 )
call MultiboardSetItemStyleBJ(udg_MBoard, 2, 2, true, false )
call MultiboardSetItemValueBJ(udg_MBoard, 2, 2, (I2S(udg_Kills[13]) ) )
call MultiboardSetItemWidthBJ(udg_MBoard, 3, 2, 3.00 )
call MultiboardSetItemStyleBJ(udg_MBoard, 3, 2, true, false )
call MultiboardSetItemValueBJ(udg_MBoard, 3, 2, (I2S(udg_Deaths[13]) ) )
set b = 3
// Auril
set a = 0
loop
exitwhen a > 5
if ( GetPlayerController(Player(a)) == MAP_CONTROL_USER ) and ( GetPlayerSlotState(Player(a)) == PLAYER_SLOT_STATE_PLAYING ) then
call MultiboardSetItemWidthBJ(udg_MBoard, 1, b, 10.00 )
call MultiboardSetItemStyleBJ(udg_MBoard, 1, b, true, true )
call MultiboardSetItemValueBJ(udg_MBoard, 1, b, ( udg_Color[a+1] + GetPlayerName(Player(a)) ))
call MultiboardSetItemWidthBJ(udg_MBoard, 2, b, 3.00 )
call MultiboardSetItemStyleBJ(udg_MBoard, 2, b, true, false )
call MultiboardSetItemValueBJ(udg_MBoard, 2, b, (I2S(udg_Kills[a+1]) ))
call MultiboardSetItemWidthBJ(udg_MBoard, 3, b, 3.00 )
call MultiboardSetItemStyleBJ(udg_MBoard, 3, b, true, false )
call MultiboardSetItemValueBJ(udg_MBoard, 3, b, (I2S(udg_Deaths[a+1]) ) )
set udg_Mult[a+1] = b
set b = b + 1
endif
set a = a + 1
endloop
set a = 1
loop
exitwhen a > 3
call MultiboardSetItemWidthBJ( udg_MBoard, a, b, 0.01 )
call MultiboardSetItemStyleBJ( udg_MBoard, a, b, false, false )
set a = a + 1
endloop
// Goharol
call MultiboardSetItemWidthBJ( udg_MBoard, 1, b, 10 )
call MultiboardSetItemStyleBJ( udg_MBoard, 1, b, true, false )
call MultiboardSetItemValueBJ( udg_MBoard, 1, b, "|c00000000 West foce|r" )
call MultiboardSetItemWidthBJ(udg_MBoard, 2, b, 3.00 )
call MultiboardSetItemStyleBJ(udg_MBoard, 2, b, true, false )
call MultiboardSetItemValueBJ(udg_MBoard, 2, b, (I2S(udg_Kills[14]) ) )
call MultiboardSetItemWidthBJ(udg_MBoard, 3, b, 3.00 )
call MultiboardSetItemStyleBJ(udg_MBoard, 3, b, true, false )
call MultiboardSetItemValueBJ(udg_MBoard, 3, b, (I2S(udg_Deaths[14]) ) )
set b = b + 1
set a = 6
loop
exitwhen a > 11
if ( GetPlayerController(Player(a)) == MAP_CONTROL_USER ) and ( GetPlayerSlotState(Player(a)) == PLAYER_SLOT_STATE_PLAYING ) then
call MultiboardSetItemWidthBJ(udg_MBoard, 1, b, 10.00 )
call MultiboardSetItemStyleBJ(udg_MBoard, 1, b, true, true )
call MultiboardSetItemValueBJ(udg_MBoard, 1, b, ( udg_Color[a+1] + GetPlayerName(Player(a)) ))
call MultiboardSetItemWidthBJ(udg_MBoard, 2, b, 3.00 )
call MultiboardSetItemStyleBJ(udg_MBoard, 2, b, true, false )
call MultiboardSetItemValueBJ(udg_MBoard, 2, b, (I2S(udg_Kills[a+1]) ) )
call MultiboardSetItemWidthBJ(udg_MBoard, 3, b, 3.00 )
call MultiboardSetItemStyleBJ(udg_MBoard, 3, b, true, false )
call MultiboardSetItemValueBJ(udg_MBoard, 3, b, (I2S(udg_Deaths[a+1]) ) )
set udg_Mult[a+1] = b
set b = b + 1
endif
set a = a + 1
endloop
call TriggerSleepAction( 0.10 )
set a = 1
loop
exitwhen a > 3
call MultiboardSetItemWidthBJ( udg_MBoard, a, b, 0.01 )
call MultiboardSetItemStyleBJ( udg_MBoard, a, b, false, false )
set a = a + 1
endloop
call MultiboardSetItemWidthBJ( udg_MBoard, 2, b, 16 )
call MultiboardSetItemStyleBJ( udg_MBoard, 2, b, true, false )
call MultiboardSetItemValueBJ( udg_MBoard, 2, b, "|c00A3B7F5Teame Kills(50 to win):|r" )
set b = b + 1
// Empires
call MultiboardSetItemWidthBJ(udg_MBoard, 1, b, 10.00 )
call MultiboardSetItemStyleBJ(udg_MBoard, 1, b, true, false )
call MultiboardSetItemValueBJ(udg_MBoard, 1, b, udg_Color[6] + "|c00FF80FFEast|r")
call MultiboardSetItemWidthBJ(udg_MBoard, 2, b, 3.00 )
call MultiboardSetItemStyleBJ(udg_MBoard, 2, b, true, false )
call MultiboardSetItemValueBJ(udg_MBoard, 2, b, (I2S(udg_Kills[20]) ) )
set udg_Mult[6] = b
set b = b + 1
call MultiboardSetItemWidthBJ(udg_MBoard, 1, b, 10.00 )
call MultiboardSetItemStyleBJ(udg_MBoard, 1, b, true, false )
call MultiboardSetItemValueBJ(udg_MBoard, 1, b, udg_Color[12] + "|c00000000West|r")
call MultiboardSetItemWidthBJ(udg_MBoard, 2, b, 3.00 )
call MultiboardSetItemStyleBJ(udg_MBoard, 2, b, true, false )
call MultiboardSetItemValueBJ(udg_MBoard, 2, b, (I2S(udg_Kills[21]) ) )
set udg_Mult[12] = b
call MultiboardDisplayBJ( true, udg_MBoard )
call MultiboardDisplayBJ( false, udg_MBoard )
call MultiboardDisplayBJ( true, udg_MBoard )
call MultiboardMinimizeBJ( false, udg_MBoard )
call MultiboardMinimizeBJ( true, udg_MBoard )
endfunction
//===========================================================================
function InitTrig_KillboardCreate takes nothing returns nothing
set gg_trg_KillboardCreate = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_KillboardCreate, 0.05 )
call TriggerAddAction( gg_trg_KillboardCreate, function Trig_Multiboard_Actions )
endfunction
function Trig_Refresh2_Actions takes nothing returns nothing
local integer a = 1
local integer b = 1
// String 1
loop
exitwhen a > 3
call MultiboardSetItemWidthBJ( udg_MBoard, a, 1, 0.01 )
call MultiboardSetItemStyleBJ( udg_MBoard, a, 1, false, false )
call MultiboardSetItemWidthBJ( udg_MBoard, a, 2, 0.01 )
call MultiboardSetItemStyleBJ( udg_MBoard, a, 2, false, false )
set a = a + 1
endloop
call MultiboardSetItemWidthBJ( udg_MBoard, 2, 1, 16 )
call MultiboardSetItemStyleBJ( udg_MBoard, 2, 1, true, false )
call MultiboardSetItemValueBJ( udg_MBoard, 2, 1, "|c00A3B7F5Time ("+I2S(udg_M_Min)+":"+I2S(udg_M_Sec)+")|r" )
call MultiboardSetItemWidthBJ( udg_MBoard, 1, 2, 10 )
call MultiboardSetItemStyleBJ( udg_MBoard, 1, 2, true, false )
call MultiboardSetItemValueBJ( udg_MBoard, 1, 2, "|c00FF80FF Sentinel|r" )
set b = 3
// Auril
set a = 0
loop
exitwhen a > 5
if ( GetPlayerSlotState(Player(a)) == PLAYER_SLOT_STATE_PLAYING ) or ( GetPlayerSlotState(Player(a)) == PLAYER_SLOT_STATE_LEFT ) then
call MultiboardSetItemWidthBJ(udg_MBoard, 1, b, 10.00 )
call MultiboardSetItemIconBJ( udg_MBoard, 1, b, udg_Iconki_DlyBorda[a+1] )
call MultiboardSetItemStyleBJ(udg_MBoard, 1, b, true, true )
call MultiboardSetItemValueBJ(udg_MBoard, 1, b, ( udg_Color[a+1] + GetPlayerName(Player(a)) ))
call MultiboardSetItemWidthBJ(udg_MBoard, 2, b, 3.00 )
call MultiboardSetItemStyleBJ(udg_MBoard, 2, b, true, false )
call MultiboardSetItemValueBJ(udg_MBoard, 2, b, (I2S(udg_Kills[a+1]) ))
call MultiboardSetItemWidthBJ(udg_MBoard, 3, b, 3.00 )
call MultiboardSetItemStyleBJ(udg_MBoard, 3, b, true, false )
call MultiboardSetItemValueBJ(udg_MBoard, 3, b, (I2S(udg_Deaths[a+1]) ) )
set udg_Mult[a+1] = b
set b = b + 1
endif
set a = a + 1
endloop
set a = 1
loop
exitwhen a > 3
call MultiboardSetItemWidthBJ( udg_MBoard, a, b, 0.01 )
call MultiboardSetItemStyleBJ( udg_MBoard, a, b, false, false )
set a = a + 1
endloop
// Goharol
call MultiboardSetItemWidthBJ( udg_MBoard, 1, b, 10 )
call MultiboardSetItemStyleBJ( udg_MBoard, 1, b, true, false )
call MultiboardSetItemValueBJ( udg_MBoard, 1, b, "|c00008A8A Scourge|r" )
set b = b + 1
set a = 6
loop
exitwhen a > 11
if ( GetPlayerSlotState(Player(a)) == PLAYER_SLOT_STATE_PLAYING ) or ( GetPlayerSlotState(Player(a)) == PLAYER_SLOT_STATE_LEFT ) then
call MultiboardSetItemWidthBJ(udg_MBoard, 1, b, 10.00 )
call MultiboardSetItemIconBJ( udg_MBoard, 1, b, udg_Iconki_DlyBorda[a+1] )
call MultiboardSetItemStyleBJ(udg_MBoard, 1, b, true, true )
call MultiboardSetItemValueBJ(udg_MBoard, 1, b, ( udg_Color[a+1] + GetPlayerName(Player(a)) ))
call MultiboardSetItemWidthBJ(udg_MBoard, 2, b, 3.00 )
call MultiboardSetItemStyleBJ(udg_MBoard, 2, b, true, false )
call MultiboardSetItemValueBJ(udg_MBoard, 2, b, (I2S(udg_Kills[a+1]) ) )
call MultiboardSetItemWidthBJ(udg_MBoard, 3, b, 3.00 )
call MultiboardSetItemStyleBJ(udg_MBoard, 3, b, true, false )
call MultiboardSetItemValueBJ(udg_MBoard, 3, b, (I2S(udg_Deaths[a+1]) ) )
set udg_Mult[a+1] = b
set b = b + 1
endif
set a = a + 1
endloop
call TriggerSleepAction( 0.10 )
set a = 1
loop
exitwhen a > 3
call MultiboardSetItemWidthBJ( udg_MBoard, a, b, 0.01 )
call MultiboardSetItemStyleBJ( udg_MBoard, a, b, false, false )
set a = a + 1
endloop
call MultiboardSetItemWidthBJ( udg_MBoard, 2, b, 16 )
call MultiboardSetItemStyleBJ( udg_MBoard, 2, b, true, false )
call MultiboardSetItemValueBJ( udg_MBoard, 2, b, ( "|c00A3B7F5Team kills(" + ( I2S(udg_Nugno_Kills) + " for win)" ) ) )
set b = b + 1
// Empires
call MultiboardSetItemWidthBJ(udg_MBoard, 1, b, 10.00 )
call MultiboardSetItemStyleBJ(udg_MBoard, 1, b, true, false )
call MultiboardSetItemValueBJ(udg_MBoard, 1, b, udg_Color[6] + "|c00FF80FFSentinel|r")
call MultiboardSetItemWidthBJ(udg_MBoard, 2, b, 3.00 )
call MultiboardSetItemStyleBJ(udg_MBoard, 2, b, true, false )
call MultiboardSetItemValueBJ(udg_MBoard, 2, b, (I2S(udg_Kills[13]) ) )
call MultiboardSetItemStyleBJ(udg_MBoard, 3, b, false, false )
set udg_Mult[6] = b
set b = b + 1
call MultiboardSetItemWidthBJ(udg_MBoard, 1, b, 10.00 )
call MultiboardSetItemStyleBJ(udg_MBoard, 1, b, true, false )
call MultiboardSetItemValueBJ(udg_MBoard, 1, b, udg_Color[12] + "|c00008A8AScourge|r")
call MultiboardSetItemWidthBJ(udg_MBoard, 2, b, 3.00 )
call MultiboardSetItemStyleBJ(udg_MBoard, 2, b, true, false )
call MultiboardSetItemValueBJ(udg_MBoard, 2, b, (I2S(udg_Kills[14]) ) )
call MultiboardSetItemStyleBJ(udg_MBoard, 3, b, false, false )
set udg_Mult[12] = b
endfunction
//===========================================================================
function InitTrig_KillboardRefresh takes nothing returns nothing
set gg_trg_KillboardRefresh = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_KillboardRefresh, 0.50 )
call TriggerAddAction( gg_trg_KillboardRefresh, function Trig_Refresh2_Actions )
endfunction
function Trig_Burrowstrike_Conditions takes nothing returns boolean
return GetSpellAbilityId() == 'A007'
endfunction
function Trig_Burrowstrike_Actions takes nothing returns nothing
local unit u = GetTriggerUnit()
local integer i = GetUnitAbilityLevelSwapped('A007', u)
local location l = GetUnitLoc(u)
local location m = GetSpellTargetLoc()
call CreateNUnitsAtLoc( 1, 'n000', GetOwningPlayer(u), PolarProjectionBJ(l, -100.00, AngleBetweenPoints(l, m)), GetUnitFacing(u) )
if i==1 then
call UnitAddAbility( GetLastCreatedUnit(), 'A006' )
call SetUnitAbilityLevelSwapped( 'A006', GetLastCreatedUnit(), ( R2I(DistanceBetweenPoints(l, m)) / 100 ) )
endif
call IssuePointOrder( GetLastCreatedUnit(), "impale", GetLocationX(m),GetLocationY(m) )
call TriggerSleepAction( ( DistanceBetweenPoints(l, m) / 4000.00 ) )
call SetUnitPositionLoc( u, m )
call SetUnitAnimation( u, "morph ALTERNATE" )
set u = null
call RemoveLocation(l)
call RemoveLocation(m)
set l = null
set m = null
endfunction
//===========================================================================
function InitTrig_Burrowstrike takes nothing returns nothing
set gg_trg_Burrowstrike = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Burrowstrike, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Burrowstrike, Condition( function Trig_Burrowstrike_Conditions ) )
call TriggerAddAction( gg_trg_Burrowstrike, function Trig_Burrowstrike_Actions )
endfunction
function Trig_Chronosphere_Conditions takes nothing returns boolean
return GetSpellAbilityId() == 'A01H'
endfunction
function Chronosphere_Group takes nothing returns boolean
return ( GetFilterUnit() != GetTriggerUnit() )
endfunction
function Trig_Chronosphere_Actions takes nothing returns nothing
local integer i=GetUnitAbilityLevel(GetTriggerUnit(),'A01H')
local unit u
local unit v
local real r=1.5+(i*1.5)
local timer t=CreateTimer()
local location l=GetSpellTargetLoc()
local group g
set u = CreateUnit(GetOwningPlayer(GetTriggerUnit()),'u002',GetLocationX(l),GetLocationY(l),bj_UNIT_FACING)
call TriggerSleepAction (0.3)
call UnitApplyTimedLife(u,'BTLF',r)
call SetUnitTimeScalePercent(u,0.00)
set g = GetUnitsInRangeOfLocMatching(425.00, l, Condition(function Chronosphere_Group))
call StartTimerBJ(t,false,r)
loop
exitwhen TimerGetRemaining(t)<=0.0
loop
set v = FirstOfGroup(g)
exitwhen v == null
call GroupRemoveUnit(g,v)
call PauseUnit(v,true)
call SetUnitTimeScalePercent(v,0.00)
endloop
if (TimerGetRemaining(t)<0.8) then
call TriggerSleepAction(0.1)
else
call TriggerSleepAction(0.3)
endif
call DestroyGroup(g)
set g = GetUnitsInRangeOfLocMatching(425.00, l, Condition(function Chronosphere_Group))
endloop
loop
set v = FirstOfGroup(g)
exitwhen v == null
call GroupRemoveUnit(g,v)
call PauseUnit(v,false)
call SetUnitTimeScalePercent(v,100.00)
endloop
call DestroyTimer(t)
set u = null
call RemoveLocation(l)
set l = null
call DestroyGroup(g)
set g = null
endfunction
//===========================================================================
function InitTrig_Chronosphere takes nothing returns nothing
set gg_trg_Chronosphere = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Chronosphere, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Chronosphere, Condition( function Trig_Chronosphere_Conditions ) )
call TriggerAddAction( gg_trg_Chronosphere, function Trig_Chronosphere_Actions )
endfunction
function Trig_Echo_Slam_Conditions takes nothing returns boolean
return GetSpellAbilityId() == 'A014'
endfunction
function Echo_Group takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(GetTriggerUnit())) == true )
endfunction
function Trig_Echo_Slam_Actions takes nothing returns nothing
local location l = GetUnitLoc(GetTriggerUnit())
local group g
local unit u
local unit v
call TriggerSleepAction(.25)
set g = GetUnitsInRangeOfLocMatching(500, l, Condition(function Echo_Group))
loop
set u = FirstOfGroup(g)
exitwhen u ==null
call GroupRemoveUnit(g,u)
set v = CreateUnit(GetOwningPlayer(GetTriggerUnit()),'n000',GetUnitX(u), GetUnitY(u), bj_UNIT_FACING)
call SetUnitAbilityLevelSwapped( 'A015', v, GetUnitAbilityLevelSwapped('A014', GetTriggerUnit()) )
call IssueImmediateOrder(v,"fanofknives")
call UnitApplyTimedLife(v,'BTLF',1.00)
endloop
call RemoveLocation(l)
set l = null
call DestroyGroup(g)
set g = null
set v = null
endfunction
//===========================================================================
function InitTrig_EchoSlamEchoes takes nothing returns nothing
set gg_trg_EchoSlamEchoes = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_EchoSlamEchoes, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_EchoSlamEchoes, Condition( function Trig_Echo_Slam_Conditions ) )
call TriggerAddAction( gg_trg_EchoSlamEchoes, function Trig_Echo_Slam_Actions )
endfunction