Name | Type | is_array | initial_value |
Abillity_Assassination_Caster | unit | No | |
Abillity_Assassination_Counter | integer | No | |
Abillity_Assassination_Target | unit | No | |
Collection_Humans | quest | Yes | |
Collection_Zombies | quest | Yes | |
Command_loan_amount | integer | No | |
Command_loan_dept | integer | Yes | |
Command_loan_dept_cooldown | integer | Yes | |
Command_loan_taker | player | No | |
Command_req_delimiter | integer | No | |
Command_req_dialog_box | dialog | No | |
Command_req_dialog_button | button | Yes | |
Command_req_donator | player | No | |
Command_req_e_amount | integer | No | |
Command_req_g_amount | integer | No | |
Command_req_i | integer | No | |
Command_req_requester | player | No | |
Event_GraveYard_Counter | integer | No | |
Event_GraveYard_Regions | rect | Yes | |
Event_Payment_Emerald | integer | No | |
Event_Payment_Gold | integer | No | |
Hero_Revive_Timer | timer | Yes | |
Hero_Revive_Timer_Window | timerdialog | Yes | |
Hero_Units | unit | Yes | |
Inv_Stream_Type | unitcode | No | |
Inv_Wave_Count | integer | No | |
Inv_Wave_Counter | integer | No | |
Inv_Wave_Max | integer | No | |
Inv_Wave_Min | integer | No | |
Inv_Wave_Region | rect | No | |
Inv_Wave_RND | integer | No | |
Inv_Wave_Selected_Type | unitcode | No | |
Inv_Wave_Start | boolean | No | |
Inv_Wave_Total | integer | No | |
Inv_Zombies_Regions | rect | Yes | |
Inv_Zombies_RLock | integer | No | |
Inv_Zombies_Type | unitcode | Yes | |
Inv_Zombies_ZLock | integer | No | -1 |
Multiboard_Statics | multiboard | No | |
Players_AI | force | No | |
Players_Hint | force | No | |
Players_Humanity | force | No | |
Players_Players | force | No | |
Rank | abilcode | Yes | |
Stats_Deaths | integer | Yes | |
Stats_Kills | integer | Yes | |
Strings_Player_Colors | string | Yes | |
Strings_Zombie_Types | string | Yes |
function Trig_Attack_Rank_Func_Rank_Up takes unit RankingUnit returns boolean
if ( not ( ModuloInteger(GetUnitUserData(RankingUnit), 1000) > 500 ) ) then
return false
endif
return true
endfunction
function Trig_Attack_Rank_Func_Rank takes unit RankingUnit returns nothing
if ( Trig_Attack_Rank_Func_Rank_Up(RankingUnit) ) then
call SetUnitUserData( RankingUnit, ( GetUnitUserData(RankingUnit) + 500 ) )
call UnitRemoveAbilityBJ( udg_Rank[( ( GetUnitUserData(RankingUnit) / 1000 ) - 1 )], RankingUnit )
call UnitAddAbilityBJ( udg_Rank[( GetUnitUserData(RankingUnit) / 1000 )], RankingUnit )
call AddSpecialEffectLocBJ( GetUnitLoc(RankingUnit), "Abilities\\Spells\\NightElf\\Starfall\\StarfallTarget.mdl" )
else
endif
call SetUnitAbilityLevelSwapped( udg_Rank[( GetUnitUserData(RankingUnit) / 1000 )], RankingUnit, ( ( ModuloInteger(GetUnitUserData(RankingUnit), 1000) / 5 ) + 1 ) )
call SetUnitAbilityLevelSwapped( 'A00L', RankingUnit, ( ( ( GetUnitUserData(RankingUnit) / 1000 ) * 20 ) + ( ( ModuloInteger(GetUnitUserData(RankingUnit), 1000) / 25 ) + 1 ) ) )
call SetUnitAbilityLevelSwapped( 'A00M', RankingUnit, ( ( ( GetUnitUserData(RankingUnit) / 1000 ) * 20 ) + ( ( ModuloInteger(GetUnitUserData(RankingUnit), 1000) / 25 ) + 1 ) ) )
call SetUnitAbilityLevelSwapped( 'A00N', RankingUnit, ( ( ( GetUnitUserData(RankingUnit) / 1000 ) * 20 ) + ( ( ModuloInteger(GetUnitUserData(RankingUnit), 1000) / 25 ) + 1 ) ) )
endfunction
//===========================================================================
function Trig_Attack_Func003Func003C takes nothing returns boolean
local unit u = GetAttacker()
if ( ( GetUnitTypeId(u) == 'h000' ) ) then
return true
endif
if ( ( GetUnitTypeId(u) == 'h001' ) ) then
return true
endif
if ( ( GetUnitTypeId(u) == 'h003' ) ) then
return true
endif
if ( ( GetUnitTypeId(u) == 'h004' ) ) then
return true
endif
if ( ( GetUnitTypeId(u) == 'h002' ) ) then
return true
endif
if ( ( GetUnitTypeId(u) == 'n001' ) ) then
return true
endif
if ( ( GetUnitTypeId(u) == 'n003' ) ) then
return true
endif
return false
endfunction
function Trig_Attack_Func003C takes nothing returns boolean
if ( not ( IsUnitType(GetAttackedUnitBJ(), UNIT_TYPE_STRUCTURE) == false ) ) then
return false
endif
if ( not ( IsUnitEnemy(GetAttackedUnitBJ(), GetOwningPlayer(GetAttacker())) == true ) ) then
return false
endif
if ( not Trig_Attack_Func003Func003C() ) then
return false
endif
return true
endfunction
function Trig_Attack_Conditions takes nothing returns boolean
if ( not Trig_Attack_Func003C() ) then
return false
endif
return true
endfunction
function Trig_Attack_Actions takes nothing returns nothing
local unit u
set u = GetAttacker()
call SetUnitUserData( u, (GetUnitUserData(u)+1) )
call Trig_Attack_Rank_Func_Rank(u)
endfunction
//===========================================================================
function InitTrig_Attack takes nothing returns nothing
set gg_trg_Attack = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Attack, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Attack, Condition( function Trig_Attack_Conditions ) )
call TriggerAddAction( gg_trg_Attack, function Trig_Attack_Actions )
endfunction
function Trig_Kill_Rank_Func_Rank_Up takes unit RankingUnit returns boolean
if ( not ( ModuloInteger(GetUnitUserData(RankingUnit), 1000) > 500 ) ) then
return false
endif
return true
endfunction
function Trig_Kill_Rank_Func_Rank takes unit RankingUnit returns nothing
if ( Trig_Kill_Rank_Func_Rank_Up(RankingUnit) ) then
call SetUnitUserData( RankingUnit, ( GetUnitUserData(RankingUnit) + 500 ) )
call UnitRemoveAbilityBJ( udg_Rank[( ( GetUnitUserData(RankingUnit) / 1000 ) - 1 )], RankingUnit )
call UnitAddAbilityBJ( udg_Rank[( GetUnitUserData(RankingUnit) / 1000 )], RankingUnit )
call AddSpecialEffectLocBJ( GetUnitLoc(RankingUnit), "Abilities\\Spells\\NightElf\\Starfall\\StarfallTarget.mdl" )
else
endif
call SetUnitAbilityLevelSwapped( udg_Rank[( GetUnitUserData(RankingUnit) / 1000 )], RankingUnit, ( ( ModuloInteger(GetUnitUserData(RankingUnit), 1000) / 5 ) + 1 ) )
call SetUnitAbilityLevelSwapped( 'A00L', RankingUnit, ( ( ( GetUnitUserData(RankingUnit) / 1000 ) * 20 ) + ( ( ModuloInteger(GetUnitUserData(RankingUnit), 1000) / 25 ) + 1 ) ) )
call SetUnitAbilityLevelSwapped( 'A00M', RankingUnit, ( ( ( GetUnitUserData(RankingUnit) / 1000 ) * 20 ) + ( ( ModuloInteger(GetUnitUserData(RankingUnit), 1000) / 25 ) + 1 ) ) )
call SetUnitAbilityLevelSwapped( 'A00N', RankingUnit, ( ( ( GetUnitUserData(RankingUnit) / 1000 ) * 20 ) + ( ( ModuloInteger(GetUnitUserData(RankingUnit), 1000) / 25 ) + 1 ) ) )
endfunction
//===========================================================================
function Trig_Kill_Func003Func003C takes nothing returns boolean
local unit u = GetKillingUnitBJ()
if ( ( GetUnitTypeId(u) == 'h000' ) ) then
return true
endif
if ( ( GetUnitTypeId(u) == 'h001' ) ) then
return true
endif
if ( ( GetUnitTypeId(u) == 'h003' ) ) then
return true
endif
if ( ( GetUnitTypeId(u) == 'h004' ) ) then
return true
endif
if ( ( GetUnitTypeId(u) == 'h002' ) ) then
return true
endif
if ( ( GetUnitTypeId(u) == 'n001' ) ) then
return true
endif
if ( ( GetUnitTypeId(u) == 'n003' ) ) then
return true
endif
return false
endfunction
function Trig_Kill_Func003C takes nothing returns boolean
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_STRUCTURE) == false ) ) then
return false
endif
if ( not ( IsUnitEnemy(GetDyingUnit(), GetOwningPlayer(GetKillingUnitBJ())) == true ) ) then
return false
endif
if ( not Trig_Kill_Func003Func003C() ) then
return false
endif
return true
endfunction
function Trig_Kill_Conditions takes nothing returns boolean
if ( not Trig_Kill_Func003C() ) then
return false
endif
return true
endfunction
function Trig_Kill_Actions takes nothing returns nothing
local unit u
set u = GetKillingUnitBJ()
call SetUnitUserData( u, (GetUnitUserData(u)+4) )
call Trig_Kill_Rank_Func_Rank(u)
endfunction
//===========================================================================
function InitTrig_Kill takes nothing returns nothing
set gg_trg_Attack = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Attack, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Attack, Condition( function Trig_Kill_Conditions ) )
call TriggerAddAction( gg_trg_Attack, function Trig_Kill_Actions )
endfunction