Name | Type | is_array | initial_value |
Combine_Charged_Items | boolean | No | |
Combine_Charges_Max | integer | No | |
Creep_Positions | location | Yes | |
Creep_Types | unitcode | Yes | |
CreepItems | itemcode | Yes | |
CreepItemsCount | integer | No | |
DeathMatch | integer | Yes | |
End_Game_If_All_Gone | boolean | No | |
Game_Minutes | integer | No | |
Game_Seconds | integer | No | |
Game_Time | timer | No | |
GameMode | integer | No | |
Hero_Revive_Time_Factor | real | No | |
Heroes_All | unitcode | Yes | |
Heroes_Scourge | unitcode | Yes | |
Heroes_Sentinel | unitcode | Yes | |
Hostile_Revive_Time | real | No | |
ItemDrop | integer | Yes | |
ItemDropCount | integer | No | |
LastHeroStanding | force | No | |
LeaderboardScourge | leaderboard | No | |
LeaderboardSentinel | leaderboard | No | |
LoopCreep | integer | No | |
LoopRandom | integer | No | |
LoopSuper | integer | No | |
MODE_AllRandom_AllPick | integer | No | 1 |
MODE_Normal | integer | No | 0 |
MODE_Reverse | integer | No | 2 |
Multiboard_Clock | integer | No | |
Multiboard_ShowDeaths | boolean | No | true |
Multiboard_Spots | integer | Yes | |
Odd_Man_Out | force | No | |
Player | player | No | |
Player_Already_Picked | integer | Yes | |
Player_Colors | string | Yes | |
Player_Starting_Gold | integer | No | |
PlayerNames | string | Yes | |
Players | force | No | |
PlayersCount | integer | No | |
PlayersScourge | force | No | |
PlayersScourgeCount | integer | No | |
PlayersScourgePlaying | force | No | |
PlayersScourgeReverse | force | No | |
PlayersSentinel | force | No | |
PlayersSentinelCount | integer | No | |
PlayersSentinelPlaying | force | No | |
PlayersSentinelReverse | force | No | |
Point | location | No | |
Random_Hero | integer | No | |
RandomData_All | integer | Yes | |
RandomData_Scourge | integer | Yes | |
RandomData_Sentinel | integer | Yes | |
RandomTotal_All | integer | No | |
RandomTotal_Scourge | integer | No | |
RandomTotal_Sentinel | integer | No | |
Repick_Cost_Ammount | integer | No | |
RevivableHeroes | group | No | |
RevivableTimersWindows | timerdialog | Yes | |
ReviveTimers | timer | Yes | |
RiverItems | itemcode | Yes | |
RiverItemsCount | integer | No | |
RiverItemsRegions | location | Yes | |
RiverItemsRegionsCount | integer | No | |
RiverItemsTaken | boolean | Yes | |
Score_Deaths | integer | Yes | |
Score_Kills | integer | Yes | |
ShortMode_On | boolean | No | |
Sort_Board_By_Kills | boolean | No | |
Super_Chances | integer | Yes | |
Super_Creeps | unitcode | Yes | |
Super_Creeps_On | boolean | No | |
Super_Names | string | Yes | |
Super_Regions | rect | Yes | |
TempInteger | integer | No | |
TempReal | real | No | |
UberMode_On | boolean | No | |
UltraShortMode_On | boolean | No | |
UnitGroup | group | No |
function Trig_Animation_Setup_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Morphling_Hint )
call DisableTrigger( gg_trg_Medivh_Talk )
call AddSpecialEffectTargetUnitBJ( "weapon", gg_unit_n00I_0166, "Abilities\\Spells\\Other\\BreathOfFire\\BreathOfFireDamage.mdl" )
call AddSpecialEffectTargetUnitBJ( "weapon", gg_unit_n00I_0171, "Abilities\\Spells\\Other\\BreathOfFire\\BreathOfFireDamage.mdl" )
call AddSpecialEffectTargetUnitBJ( "weapon", gg_unit_n00H_0170, "Abilities\\Weapons\\WitchDoctorMissile\\WitchDoctorMissile.mdl" )
call AddSpecialEffectTargetUnitBJ( "weapon", gg_unit_n00H_0167, "Abilities\\Weapons\\WitchDoctorMissile\\WitchDoctorMissile.mdl" )
call AddSpecialEffectTargetUnitBJ( "hand", gg_unit_n00J_0174, "Abilities\\Spells\\Other\\Transmute\\GoldBottleMissile.mdl" )
call AddSpecialEffectTargetUnitBJ( "hand", gg_unit_n00J_0168, "Abilities\\Spells\\Other\\Transmute\\GoldBottleMissile.mdl" )
call AddSpecialEffectTargetUnitBJ( "overhead", gg_unit_n00G_0172, "Abilities\\Spells\\Items\\AIta\\CrystalBallCaster.mdl" )
call AddSpecialEffectTargetUnitBJ( "hand, left", gg_unit_n00K_0169, "Abilities\\Weapons\\VengeanceMissile\\VengeanceMissile.mdl" )
call AddSpecialEffectTargetUnitBJ( "hand, right", gg_unit_n00K_0169, "Abilities\\Spells\\Orc\\LightningBolt\\LightningBoltMissile.mdl" )
call AddSpecialEffectTargetUnitBJ( "origin", gg_unit_etol_0059, "Abilities\\Spells\\NightElf\\BattleRoar\\RoarTarget.mdl" )
call AddSpecialEffectTargetUnitBJ( "origin", gg_unit_unpl_0056, "Abilities\\Spells\\Other\\HowlOfTerror\\HowlTarget.mdl" )
call AddSpecialEffectTargetUnitBJ( "origin", gg_unit_u008_0173, "Objects\\Spawnmodels\\Human\\HumanLargeDeathExplode\\HumanLargeDeathExplode.mdl" )
call SetUnitAnimation( gg_unit_n00F_0160, "work" )
call SetUnitAnimation( gg_unit_n001_0148, "work" )
call SetUnitAnimation( gg_unit_n000_0161, "work" )
call SetUnitAnimation( gg_unit_n00E_0147, "work" )
call SetUnitAnimation( gg_unit_n00H_0167, "stand third" )
call SetUnitAnimation( gg_unit_n00I_0166, "stand first" )
call SetUnitAnimation( gg_unit_n00H_0170, "stand third" )
call SetUnitAnimation( gg_unit_n00I_0171, "stand first" )
call SetUnitAnimation( gg_unit_n00K_0169, "work" )
call SetUnitAnimation( gg_unit_u008_0173, "channel" )
call SetUnitAnimation( gg_unit_uslh_0134, "work" )
call SetUnitAnimation( gg_unit_utod_0077, "work" )
call SetUnitAnimation( gg_unit_utod_0088, "work" )
call SetUnitAnimation( gg_unit_utod_0079, "work" )
call SetUnitAnimation( gg_unit_usap_0135, "work" )
call SetUnitAnimation( gg_unit_eaow_0024, "work" )
endfunction
//===========================================================================
function InitTrig_Animation_Setup takes nothing returns nothing
set gg_trg_Animation_Setup = CreateTrigger( )
call TriggerAddAction( gg_trg_Animation_Setup, function Trig_Animation_Setup_Actions )
endfunction
function Trig_Spell_01_Actions takes nothing returns nothing
call IssueTargetOrderBJ( gg_unit_u008_0173, "creepthunderbolt", GetEnteringUnit() )
endfunction
//===========================================================================
function InitTrig_Spell_01 takes nothing returns nothing
set gg_trg_Spell_01 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Spell_01, gg_rct_Cast_Spell01 )
call TriggerAddAction( gg_trg_Spell_01, function Trig_Spell_01_Actions )
endfunction
function Trig_Spell_02_Actions takes nothing returns nothing
call IssueTargetOrderBJ( gg_unit_u008_0173, "fingerofdeath", GetEnteringUnit() )
call IssueTargetOrderBJ( gg_unit_u008_0173, "curse", GetEnteringUnit() )
endfunction
//===========================================================================
function InitTrig_Spell_02 takes nothing returns nothing
set gg_trg_Spell_02 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Spell_02, gg_rct_Cast_Spell02 )
call TriggerAddAction( gg_trg_Spell_02, function Trig_Spell_02_Actions )
endfunction
function Trig_Revive_Creeps_Actions takes nothing returns nothing
local integer CUSTOM
set CUSTOM = GetUnitUserData(GetDyingUnit())
call TriggerSleepAction( udg_Hostile_Revive_Time )
call CreateNUnitsAtLoc( 1, udg_Creep_Types[CUSTOM], Player(PLAYER_NEUTRAL_AGGRESSIVE), udg_Creep_Positions[CUSTOM], bj_UNIT_FACING )
call SetUnitUserData( GetLastCreatedUnit(), CUSTOM )
endfunction
//===========================================================================
function InitTrig_Revive_Creeps takes nothing returns nothing
set gg_trg_Revive_Creeps = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Revive_Creeps, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddAction( gg_trg_Revive_Creeps, function Trig_Revive_Creeps_Actions )
endfunction
//TESH.scrollpos=0
//TESH.alwaysfold=0
function Trig_Combine_Items_Conditions takes nothing returns boolean
if ( not ( GetItemCharges(GetManipulatedItem()) > 0 ) ) then
return false
endif
if ( not ( udg_Combine_Charged_Items == true ) ) then
return false
endif
return true
endfunction
function Trig_Combine_Items_Actions takes nothing returns nothing
local integer ITEMCOUNT
local integer ITEMLOOP
local integer CHARGES
local integer MAXIMUM
local item NEWITEM
local unit OURUNIT
set MAXIMUM = udg_Combine_Charges_Max
set ITEMCOUNT = 0
set ITEMLOOP = 0
set CHARGES = 0
set NEWITEM = GetManipulatedItem()
set OURUNIT = GetManipulatingUnit()
loop
exitwhen ITEMLOOP > 6
if ((GetItemTypeId(NEWITEM)) == (GetItemTypeId(UnitItemInSlotBJ(OURUNIT, ITEMLOOP)))) then
if ((GetItemCharges(UnitItemInSlotBJ(OURUNIT, ITEMLOOP)) + GetItemCharges(NEWITEM)) <= MAXIMUM) then
if not ( (UnitItemInSlotBJ(OURUNIT, ITEMLOOP)) == (NEWITEM)) then
set CHARGES = (GetItemCharges(UnitItemInSlotBJ(OURUNIT, ITEMLOOP))) + GetItemCharges(NEWITEM)
call SetItemCharges( UnitItemInSlotBJ(OURUNIT, ITEMLOOP), CHARGES )
call RemoveItem( NEWITEM )
set ITEMLOOP=7
endif
endif
endif
if ( ITEMLOOP < 7 ) then
set ITEMLOOP = ITEMLOOP + 1
endif
endloop
endfunction
//===========================================================================
function InitTrig_Combine_Charged_Items takes nothing returns nothing
set gg_trg_Combine_Charged_Items = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Combine_Charged_Items, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Combine_Charged_Items, Condition( function Trig_Combine_Items_Conditions ) )
call TriggerAddAction( gg_trg_Combine_Charged_Items, function Trig_Combine_Items_Actions )
endfunction
//TESH.scrollpos=16
//TESH.alwaysfold=0
function Trig_Recipe_Frost_Armor_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'ofro' ) ) then
return false
endif
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'rde4' ) ) then
return false
endif
return true
endfunction
function Trig_Recipe_Frost_Armor_Func001C takes nothing returns boolean
if ( not ( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'rde4') == GetManipulatedItem() ) ) then
return false
endif
if ( not ( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'ofro') == GetManipulatedItem() ) ) then
return false
endif
return true
endfunction
function Trig_Recipe_Frost_Armor_Actions takes nothing returns nothing
if ( Trig_Recipe_Frost_Armor_Func001C() ) then
call RemoveItem( GetManipulatedItem() )
call UnitAddItemByIdSwapped( 'I009', GetManipulatingUnit() )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Recipe_Frost_Armor takes nothing returns nothing
set gg_trg_Recipe_Frost_Armor = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Recipe_Frost_Armor, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Recipe_Frost_Armor, Condition( function Trig_Recipe_Frost_Armor_Conditions ) )
call TriggerAddAction( gg_trg_Recipe_Frost_Armor, function Trig_Recipe_Frost_Armor_Actions )
endfunction
function Trig_Secret_Cave_Of_Waterfall_Func001001001 takes nothing returns boolean
return ( GetOwningPlayer(GetEnteringUnit()) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Secret_Cave_Of_Waterfall_Actions takes nothing returns nothing
call QuestMessageBJ( GetPlayersMatching(Condition(function Trig_Secret_Cave_Of_Waterfall_Func001001001)), bj_QUESTMESSAGE_ALWAYSHINT, "TRIGSTR_025" )
call SetUnitPositionLoc( GetEnteringUnit(), GetRectCenter(gg_rct_Cave_Spawn) )
endfunction
//===========================================================================
function InitTrig_Secret_Cave_Of_Waterfall takes nothing returns nothing
set gg_trg_Secret_Cave_Of_Waterfall = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Secret_Cave_Of_Waterfall, gg_rct_Secret_Cave_Of_Waterfall )
call TriggerAddAction( gg_trg_Secret_Cave_Of_Waterfall, function Trig_Secret_Cave_Of_Waterfall_Actions )
endfunction
function Trig_Cave_Out_Func001001001 takes nothing returns boolean
return ( GetOwningPlayer(GetEnteringUnit()) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Cave_Out_Actions takes nothing returns nothing
call QuestMessageBJ( GetPlayersMatching(Condition(function Trig_Cave_Out_Func001001001)), bj_QUESTMESSAGE_ALWAYSHINT, "TRIGSTR_030" )
call SetUnitPositionLoc( GetEnteringUnit(), GetRectCenter(gg_rct_Cave_Exit) )
endfunction
//===========================================================================
function InitTrig_Cave_Out takes nothing returns nothing
set gg_trg_Cave_Out = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Cave_Out, gg_rct_Cave_Out )
call TriggerAddAction( gg_trg_Cave_Out, function Trig_Cave_Out_Actions )
endfunction
function Trig_Morphling_Hint_Func001001001 takes nothing returns boolean
return ( GetOwningPlayer(GetEnteringUnit()) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Morphling_Hint_Actions takes nothing returns nothing
call QuestMessageBJ( GetPlayersMatching(Condition(function Trig_Morphling_Hint_Func001001001)), bj_QUESTMESSAGE_ALWAYSHINT, "TRIGSTR_031" )
call QuestSetDescriptionBJ( GetLastCreatedQuestBJ(), "TRIGSTR_037" )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Morphling_Hint takes nothing returns nothing
set gg_trg_Morphling_Hint = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Morphling_Hint, gg_rct_Morphling_Hint )
call TriggerAddAction( gg_trg_Morphling_Hint, function Trig_Morphling_Hint_Actions )
endfunction
function Trig_Cave_Hint_Func001001001 takes nothing returns boolean
return ( GetOwningPlayer(GetEnteringUnit()) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Cave_Hint_Actions takes nothing returns nothing
call QuestMessageBJ( GetPlayersMatching(Condition(function Trig_Cave_Hint_Func001001001)), bj_QUESTMESSAGE_ALWAYSHINT, "TRIGSTR_035" )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_036", "TRIGSTR_038", "ReplaceableTextures\\CommandButtons\\BTNSeaElemental.blp" )
call DisableTrigger( GetTriggeringTrigger() )
call EnableTrigger( gg_trg_Morphling_Hint )
endfunction
//===========================================================================
function InitTrig_Cave_Hint takes nothing returns nothing
set gg_trg_Cave_Hint = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Cave_Hint, gg_rct_Cave_Hint )
call TriggerAddAction( gg_trg_Cave_Hint, function Trig_Cave_Hint_Actions )
endfunction
function Trig_Darchrow_Talk_Func001001001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Darchrow_Talk_Actions takes nothing returns nothing
call TransmissionFromUnitWithNameBJ( GetPlayersMatching(Condition(function Trig_Darchrow_Talk_Func001001001)), gg_unit_H008_0196, "TRIGSTR_034", null, "TRIGSTR_046", bj_TIMETYPE_ADD, 35.00, true )
call CreateItemLoc( 'I00A', GetUnitLoc(GetEnteringUnit()) )
call QuestSetTitleBJ( GetLastCreatedQuestBJ(), "TRIGSTR_049" )
call QuestSetDescriptionBJ( GetLastCreatedQuestBJ(), "TRIGSTR_051" )
endfunction
//===========================================================================
function InitTrig_Darchrow_Talk takes nothing returns nothing
set gg_trg_Darchrow_Talk = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Darchrow_Talk, gg_rct_Summon_Morphling )
call TriggerAddAction( gg_trg_Darchrow_Talk, function Trig_Darchrow_Talk_Actions )
endfunction
function Trig_Medivh_Talk_Func001001001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Medivh_Talk_Actions takes nothing returns nothing
call TransmissionFromUnitWithNameBJ( GetPlayersMatching(Condition(function Trig_Medivh_Talk_Func001001001)), gg_unit_nmed_0194, "TRIGSTR_043", null, "TRIGSTR_044", bj_TIMETYPE_ADD, 15.00, true )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_021", "TRIGSTR_033", "ReplaceableTextures\\CommandButtons\\BTNSelectHeroOn.blp" )
endfunction
//===========================================================================
function InitTrig_Medivh_Talk takes nothing returns nothing
set gg_trg_Medivh_Talk = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Medivh_Talk, gg_rct_Region_040 )
call TriggerAddAction( gg_trg_Medivh_Talk, function Trig_Medivh_Talk_Actions )
endfunction
function Trig_Quest_Complete_Func001001 takes nothing returns boolean
return ( GetItemTypeId(UnitItemInSlotBJ(GetEnteringUnit(), 1)) == 'I009' )
endfunction
function Trig_Quest_Complete_Actions takes nothing returns nothing
if ( Trig_Quest_Complete_Func001001() ) then
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_H008_0196, "TRIGSTR_071", null, "TRIGSTR_072", bj_TIMETYPE_ADD, 22.00, true )
else
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_069", "TRIGSTR_070", "ReplaceableTextures\\CommandButtons\\BTNSpy.blp" )
endif
call SetUnitOwner( gg_unit_H008_0196, Player(6), true )
call SetUnitOwner( gg_unit_nmed_0194, Player(6), true )
call SetUnitPositionLoc( gg_unit_nmed_0194, GetRectCenter(gg_rct_Summon_Morphling) )
endfunction
//===========================================================================
function InitTrig_Quest_Complete takes nothing returns nothing
set gg_trg_Quest_Complete = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Quest_Complete, gg_rct_Summon_Morphling )
call TriggerAddAction( gg_trg_Quest_Complete, function Trig_Quest_Complete_Actions )
endfunction
function Trig_Darchrow_died_Func001001001 takes nothing returns boolean
return ( GetUnitTypeId(GetKillingUnitBJ()) == GetUnitTypeId(GetKillingUnitBJ()) )
endfunction
function Trig_Darchrow_died_Func003001001 takes nothing returns boolean
return ( GetUnitTypeId(GetKillingUnitBJ()) == GetUnitTypeId(GetKillingUnitBJ()) )
endfunction
function Trig_Darchrow_died_Actions takes nothing returns nothing
call TransmissionFromUnitWithNameBJ( GetPlayersMatching(Condition(function Trig_Darchrow_died_Func001001001)), gg_unit_H008_0196, "TRIGSTR_047", null, "TRIGSTR_048", bj_TIMETYPE_ADD, 22.00, true )
call TriggerSleepAction( 5.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersMatching(Condition(function Trig_Darchrow_died_Func003001001)), GetKillingUnitBJ(), GetHeroProperName(GetKillingUnitBJ()), null, "TRIGSTR_053", bj_TIMETYPE_ADD, 10.00, true )
endfunction
//===========================================================================
function InitTrig_Darchrow_died takes nothing returns nothing
set gg_trg_Darchrow_died = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Darchrow_died, gg_unit_H008_0196, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_Darchrow_died, function Trig_Darchrow_died_Actions )
endfunction
function Trig_Medivh_died_Actions takes nothing returns nothing
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_nmed_0194, "TRIGSTR_050", null, "TRIGSTR_058", bj_TIMETYPE_ADD, 11.00, true )
call CreateItemLoc( 'I00B', GetUnitLoc(GetKillingUnitBJ()) )
endfunction
//===========================================================================
function InitTrig_Medivh_died takes nothing returns nothing
set gg_trg_Medivh_died = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Medivh_died, gg_unit_nmed_0194, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_Medivh_died, function Trig_Medivh_died_Actions )
endfunction