// Vampirism ZERO A12 1.05b
// ORIGINAL ZERO A 1.09 made by Blize88
// Mod A12 1.05b by Edddek
Name | Type | is_array | initial_value |
rect01 | rect | No | |
rect02 | rect | No | |
rect03 | rect | No | |
rect04 | rect | No | |
rect05 | rect | No | |
rect06 | rect | No | |
rect07 | rect | No | |
rect08 | rect | No | |
rect09 | rect | No | |
rect10 | rect | No | |
rect11 | rect | No | |
rect12 | rect | No | |
rect13 | rect | No | |
rect14 | rect | No | |
rect15 | rect | No | |
rect16 | rect | No | |
rect17 | rect | No | |
rect18 | rect | No | |
rect19 | rect | No | |
rect20 | rect | No | |
rect21 | rect | No | |
rect22 | rect | No | |
rect23 | rect | No | |
rect24 | rect | No | |
rect25 | rect | No | |
rect26 | rect | No | |
rect27 | rect | No | |
rect28 | rect | No | |
rect29 | rect | No | |
rect30 | rect | No | |
rect31 | rect | No | |
rect32 | rect | No | |
rect33 | rect | No | |
rect34 | rect | No | |
rect35 | rect | No | |
rect36 | rect | No | |
rect37 | rect | No | |
rect38 | rect | No | |
sound01 | sound | No | |
sound02 | sound | No | |
sound03 | sound | No | |
sound04 | sound | No | |
sound05 | sound | No | |
sound06 | sound | No | |
sound07 | sound | No | |
sound08 | sound | No | |
sound09 | sound | No | |
sound10 | sound | No | |
trigger01 | trigger | No | |
trigger02 | trigger | No | |
trigger03 | trigger | No | |
trigger04 | trigger | No | |
trigger05 | trigger | No | |
trigger06 | trigger | No | |
trigger07 | trigger | No | |
trigger08 | trigger | No | |
trigger09 | trigger | No | |
trigger10 | trigger | No | |
trigger11 | trigger | No | |
trigger12 | trigger | No | |
trigger13 | trigger | No | |
trigger14 | trigger | No | |
trigger15 | trigger | No | |
trigger16 | trigger | No | |
trigger17 | trigger | No | |
trigger18 | trigger | No | |
trigger19 | trigger | No | |
trigger20 | trigger | No | |
trigger21 | trigger | No | |
trigger22 | trigger | No | |
trigger23 | trigger | No | |
trigger24 | trigger | No | |
trigger25 | trigger | No | |
trigger26 | trigger | No | |
trigger27 | trigger | No | |
trigger28 | trigger | No | |
trigger29 | trigger | No | |
trigger30 | trigger | No | |
trigger31 | trigger | No | |
trigger32 | trigger | No | |
trigger33 | trigger | No | |
trigger34 | trigger | No | |
trigger35 | trigger | No | |
trigger36 | trigger | No | |
trigger37 | trigger | No | |
trigger38 | trigger | No | |
trigger39 | trigger | No | |
trigger40 | trigger | No | |
trigger41 | trigger | No | |
trigger42 | trigger | No | |
trigger43 | trigger | No | |
trigger44 | trigger | No | |
trigger45 | trigger | No | |
trigger46 | trigger | No | |
trigger47 | trigger | No | |
trigger48 | trigger | No | |
trigger49 | trigger | No | |
trigger50 | trigger | No | |
trigger51 | trigger | No | |
trigger52 | trigger | No | |
trigger53 | trigger | No | |
trigger54 | trigger | No | |
trigger55 | trigger | No | |
trigger56 | trigger | No | |
trigger57 | trigger | No | |
trigger58 | trigger | No | |
trigger59 | trigger | No | |
trigger60 | trigger | No | |
trigger61 | trigger | No | |
trigger62 | trigger | No | |
trigger63 | trigger | No | |
trigger64 | trigger | No | |
trigger65 | trigger | No | |
trigger66 | trigger | No | |
trigger67 | trigger | No | |
trigger68 | trigger | No | |
trigger69 | trigger | No |
function Trig_chance1_Actions takes nothing returns nothing
call DisplayTextToForce( bj_FORCE_PLAYER[11], "TRIGSTR_1753" )
call AdjustPlayerStateBJ( 1500, Player(11), PLAYER_STATE_RESOURCE_GOLD )
endfunction
//===========================================================================
function InitTrig_chance1 takes nothing returns nothing
set gg_trg_chance1 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_chance1, Player(10), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddAction( gg_trg_chance1, function Trig_chance1_Actions )
endfunction
function Trig_chance2_Actions takes nothing returns nothing
call DisplayTextToForce( bj_FORCE_PLAYER[10], "TRIGSTR_1754" )
call AdjustPlayerStateBJ( 1500, Player(10), PLAYER_STATE_RESOURCE_GOLD )
endfunction
//===========================================================================
function InitTrig_chance2 takes nothing returns nothing
set gg_trg_chance2 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_chance2, Player(11), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddAction( gg_trg_chance2, function Trig_chance2_Actions )
endfunction
function Trig_Untitled_Trigger_004_Func001002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Untitled_Trigger_004_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRectAll(udg_rect12),function Trig_Untitled_Trigger_004_Func001002)
endfunction
function Trig_FriendlyFire_Conditions takes nothing returns boolean
return(IsUnitAlly(GetTriggerUnit(),GetOwningPlayer(GetAttacker())))
endfunction
function Trig_FriendlyFire_Actions takes nothing returns nothing
call IssueImmediateOrderBJ(GetAttacker(),"stop")
endfunction
function Trig_quests_Actions takes nothing returns nothing
call CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED,"TRIGSTR_311","TRIGSTR_312","ReplaceableTextures\\CommandButtons\\BTNAmbush.blp")
call CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED,"TRIGSTR_861","TRIGSTR_862","ReplaceableTextures\\CommandButtons\\BTNChestOfGold.blp")
call CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED,"TRIGSTR_863","TRIGSTR_864","ReplaceableTextures\\CommandButtons\\BTNArmorGolem.blp")
call CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED,"TRIGSTR_313","TRIGSTR_314","ReplaceableTextures\\CommandButtons\\BTNSpiritOfVengeance.blp")
call CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED,"TRIGSTR_315","TRIGSTR_316","ReplaceableTextures\\PassiveButtons\\PASBTNUnholyAura.blp")
call CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED,"TRIGSTR_1220","TRIGSTR_1221","ReplaceableTextures\\PassiveButtons\\PASBTNDrum.blp")
call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"TRIGSTR_859","TRIGSTR_860","ReplaceableTextures\\PassiveButtons\\PASBTNStormHammer.blp")
call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"TRIGSTR_317","TRIGSTR_318","ReplaceableTextures\\CommandButtons\\BTNDarkSummoning.blp")
call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"TRIGSTR_321","TRIGSTR_322","ReplaceableTextures\\PassiveButtons\\PASBTNGenericSpellImmunity.blp")
call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"TRIGSTR_319","TRIGSTR_320","ReplaceableTextures\\CommandButtons\\BTNSpellStealOff.blp")
call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"TRIGSTR_1632","TRIGSTR_1633","ReplaceableTextures\\CommandButtons\\BTNStormEarth&Fire.blp")
endfunction
function Trig_Melee_Initialization_Func001002 takes nothing returns nothing
call FogMaskEnableOff()
endfunction
function Trig_Melee_Initialization_Func002002 takes nothing returns nothing
call FogMaskEnableOff()
endfunction
function Trig_Melee_Initialization_Func003002 takes nothing returns nothing
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,GetEnumPlayer())
endfunction
function Trig_Melee_Initialization_Actions takes nothing returns nothing
call ForForce(GetPlayersEnemies(Player(10)),function Trig_Melee_Initialization_Func001002)
call ForForce(GetPlayersEnemies(Player(11)),function Trig_Melee_Initialization_Func002002)
call ForForce(GetPlayersAll(),function Trig_Melee_Initialization_Func003002)
call SetPlayerStateBJ(Player(10),PLAYER_STATE_RESOURCE_GOLD,150)
call SetPlayerStateBJ(Player(11),PLAYER_STATE_RESOURCE_GOLD,150)
endfunction
function Trig_Zoom_Actions takes nothing returns nothing
call SetCameraFieldForPlayer(GetTriggerPlayer(),CAMERA_FIELD_ZOFFSET,650.00,0)
endfunction
function Trig_Start_text_Actions takes nothing returns nothing
call DisplayTimedTextToForce(GetPlayersAll(),50.00,"TRIGSTR_418")
call TriggerSleepAction(400.00)
call DisplayTimedTextToForce(GetPlayersAll(),45.00,"TRIGSTR_1608")
endfunction
function Trig_lifedraintext_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetEnteringUnit())=='E000')
endfunction
function Trig_lifedraintext_Actions takes nothing returns nothing
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetEnteringUnit())),60.00,"TRIGSTR_1606")
endfunction
function Trig_lifedraintext_Copy_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetEnteringUnit())=='E001')
endfunction
function Trig_lifedraintext_Copy_Actions takes nothing returns nothing
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetEnteringUnit())),60.00,"TRIGSTR_1607")
endfunction
function Trig_lifedrain_Func001001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='E000')
endfunction
function Trig_lifedrain_Func001002 takes nothing returns nothing
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())-200.00))
endfunction
function Trig_lifedrain_Func002001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='E001')
endfunction
function Trig_lifedrain_Func002002 takes nothing returns nothing
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())-200.00))
endfunction
function Trig_lifedrain_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRectMatching(udg_rect38,Condition(function Trig_lifedrain_Func001001002)),function Trig_lifedrain_Func001002)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect38,Condition(function Trig_lifedrain_Func002001002)),function Trig_lifedrain_Func002002)
endfunction
function Trig_shared_resources_when_leave_Conditions takes nothing returns boolean
return(CountLivingPlayerUnitsOfTypeId('E000',GetTriggerPlayer())==1)
endfunction
function Trig_shared_resources_when_leave_Actions takes nothing returns nothing
call AdjustPlayerStateBJ((GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_GOLD_GATHERED)/3),Player(10),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ((GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_GOLD_GATHERED)/3),Player(11),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(GetPlayersAll(),30,"TRIGSTR_1521")
endfunction
function Trig_shared_resources_when_die_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetDyingUnit())=='E000')
endfunction
function Trig_shared_resources_when_die_Actions takes nothing returns nothing
call AdjustPlayerStateBJ((GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_GOLD_GATHERED)/3),Player(10),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ((GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_GOLD_GATHERED)/3),Player(11),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(GetPlayersAll(),30,"TRIGSTR_1605")
endfunction
function Trig_Xp_every_second_Func002002 takes nothing returns nothing
call AddHeroXPSwapped(75,GetEnumUnit(),true)
endfunction
function Trig_Xp_every_second_Func003002 takes nothing returns nothing
call AddHeroXPSwapped(75,GetEnumUnit(),true)
endfunction
function Trig_Xp_every_second_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsOfTypeIdAll('E000'),function Trig_Xp_every_second_Func002002)
call ForGroupBJ(GetUnitsOfTypeIdAll('E001'),function Trig_Xp_every_second_Func003002)
endfunction
function Trig_Untitled_Trigger_007_Func001002001 takes nothing returns boolean
return(CountLivingPlayerUnitsOfTypeId('E000',GetEnumPlayer())==1)
endfunction
function Trig_Untitled_Trigger_007_Func001002 takes nothing returns nothing
if(Trig_Untitled_Trigger_007_Func001002001())then
call AdjustPlayerStateBJ(1,GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endif
endfunction
function Trig_Untitled_Trigger_007_Func002002001 takes nothing returns boolean
return(CountLivingPlayerUnitsOfTypeId('E001',GetEnumPlayer())==1)
endfunction
function Trig_Untitled_Trigger_007_Func002002 takes nothing returns nothing
if(Trig_Untitled_Trigger_007_Func002002001())then
call AdjustPlayerStateBJ(1,GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endif
endfunction
function Trig_Untitled_Trigger_007_Actions takes nothing returns nothing
call ForForce(GetPlayersAll(),function Trig_Untitled_Trigger_007_Func001002)
call ForForce(GetPlayersAll(),function Trig_Untitled_Trigger_007_Func002002)
endfunction
function Trig_Buildings_grant_xp_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetKillingUnitBJ())=='E000')
endfunction
function Trig_Buildings_grant_xp_Func002002 takes nothing returns nothing
call AddHeroXPSwapped(50,GetEnumUnit(),true)
endfunction
function Trig_Buildings_grant_xp_Func003002 takes nothing returns nothing
call AddHeroXPSwapped(50,GetEnumUnit(),true)
endfunction
function Trig_Buildings_grant_xp_Func004002 takes nothing returns nothing
call AdjustPlayerStateBJ(3,GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function Trig_Buildings_grant_xp_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsOfTypeIdAll('E000'),function Trig_Buildings_grant_xp_Func002002)
call ForGroupBJ(GetUnitsOfTypeIdAll('E001'),function Trig_Buildings_grant_xp_Func003002)
call ForForce(GetPlayersAllies(GetOwningPlayer(GetKillingUnitBJ())),function Trig_Buildings_grant_xp_Func004002)
endfunction
function Trig_Buildings_grant_xp_Copy_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetKillingUnitBJ())=='E001')
endfunction
function Trig_Buildings_grant_xp_Copy_Func002002 takes nothing returns nothing
call AddHeroXPSwapped(50,GetEnumUnit(),true)
endfunction
function Trig_Buildings_grant_xp_Copy_Func003002 takes nothing returns nothing
call AddHeroXPSwapped(50,GetEnumUnit(),true)
endfunction
function Trig_Buildings_grant_xp_Copy_Func004002 takes nothing returns nothing
call AdjustPlayerStateBJ(3,GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function Trig_Buildings_grant_xp_Copy_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsOfTypeIdAll('E000'),function Trig_Buildings_grant_xp_Copy_Func002002)
call ForGroupBJ(GetUnitsOfTypeIdAll('E001'),function Trig_Buildings_grant_xp_Copy_Func003002)
call ForForce(GetPlayersAllies(GetOwningPlayer(GetKillingUnitBJ())),function Trig_Buildings_grant_xp_Copy_Func004002)
endfunction
function Trig_death_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetDyingUnit())=='E000')
endfunction
function Trig_death_Actions takes nothing returns nothing
call DisplayTimedTextToForce(GetPlayersAll(),30,(GetPlayerName(GetTriggerPlayer())+" (Vampire) has died..."))
call PlaySoundBJ(udg_sound03)
endfunction
function Trig_death_Copy_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetDyingUnit())=='E001')
endfunction
function Trig_death_Copy_Actions takes nothing returns nothing
call DisplayTimedTextToForce(GetPlayersAll(),30,(GetPlayerName(GetTriggerPlayer())+" (Vampire minion) has died..."))
call PlaySoundBJ(udg_sound03)
endfunction
function Trig_Vamp_spawn_Func001001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='u000')
endfunction
function Trig_Vamp_spawn_Func001002 takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(udg_rect10))
endfunction
function Trig_Vamp_spawn_Func004002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),GetRectCenter(udg_rect03),0.00)
endfunction
function Trig_Vamp_spawn_Func010C takes nothing returns boolean
return(GetPlayerController(Player(10))==MAP_CONTROL_USER)and(GetPlayerSlotState(Player(10))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Vamp_spawn_Func011C takes nothing returns boolean
return(GetPlayerController(Player(11))==MAP_CONTROL_USER)and(GetPlayerSlotState(Player(11))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Vamp_spawn_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRectMatching(udg_rect17,Condition(function Trig_Vamp_spawn_Func001001002)),function Trig_Vamp_spawn_Func001002)
call CinematicModeBJ(true,GetPlayersAll())
call ShowInterfaceForceOff(GetPlayersAll(),0.10)
call ForForce(GetPlayersAll(),function Trig_Vamp_spawn_Func004002)
call DisplayTimedTextToForce(GetPlayersAll(),90.00,"TRIGSTR_1095")
call TriggerSleepAction(1.00)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect01),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect02),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call TriggerSleepAction(2.00)
if(Trig_Vamp_spawn_Func010C())then
call CreateNUnitsAtLoc(1,'E000',Player(10),GetRectCenter(udg_rect01),bj_UNIT_FACING)
endif
if(Trig_Vamp_spawn_Func011C())then
call CreateNUnitsAtLoc(1,'E000',Player(11),GetRectCenter(udg_rect02),bj_UNIT_FACING)
endif
call PlaySoundBJ(udg_sound01)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect02),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl")
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect01),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl")
call TriggerSleepAction(0.50)
call TransmissionFromUnitWithNameBJ(GetPlayersAll(),GetLastCreatedUnit(),"TRIGSTR_028",null,"TRIGSTR_029",bj_TIMETYPE_ADD,0.00,true)
call TriggerSleepAction(1.00)
call ShowInterfaceForceOn(GetPlayersAll(),0.10)
call CinematicModeBJ(false,GetPlayersAll())
call TriggerSleepAction(1.00)
call EnableTrigger(udg_trigger46)
call EnableTrigger(udg_trigger47)
call DisplayTimedTextToForce(GetPlayersAll(),40.00,"TRIGSTR_579")
call TriggerSleepAction(50.00)
call DisplayTimedTextToForce(GetPlayersAll(),60.00,"TRIGSTR_1520")
call TriggerSleepAction(70.00)
call DisplayTimedTextToForce(GetPlayersAll(),80.00,"TRIGSTR_610")
endfunction
function Trig_Untitled_Trigger_006_Actions takes nothing returns nothing
call CreateFogModifierRectBJ(true,Player(10),FOG_OF_WAR_VISIBLE,udg_rect17)
call CreateFogModifierRectBJ(true,Player(11),FOG_OF_WAR_VISIBLE,udg_rect17)
endfunction
function Trig_summoncircle_Func001C takes nothing returns boolean
return(CountUnitsInGroup(GetUnitsInRectAll(udg_rect20))>=1)and(CountUnitsInGroup(GetUnitsInRectAll(udg_rect18))>=1)and(CountUnitsInGroup(GetUnitsInRectAll(udg_rect19))>=1)
endfunction
function Trig_summoncircle_Actions takes nothing returns nothing
if(Trig_summoncircle_Func001C())then
call DisableTrigger(udg_trigger29)
call CreateNUnitsAtLoc(1,'ncp3',Player(PLAYER_NEUTRAL_PASSIVE),GetRectCenter(udg_rect07),bj_UNIT_FACING)
call PingMinimapLocForForce(GetPlayersAll(),GetRectCenter(udg_rect07),15.00)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect07),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DisplayTimedTextToForce(GetPlayersAll(),30,"TRIGSTR_046")
call EnableTrigger(udg_trigger21)
call DisableTrigger(GetTriggeringTrigger())
endif
endfunction
function Trig_summonstart_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetEnteringUnit())=='O000')
endfunction
function Trig_summonstart_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rect09))
endfunction
function Trig_summonstart_Copy_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rect10))
endfunction
function Trig_summonstart_Copy_Copy_Copy_Copy_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetEnteringUnit())=='u000')
endfunction
function Trig_summonstart_Copy_Copy_Copy_Copy_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rect10))
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit())),30,"TRIGSTR_051")
endfunction
function Trig_summonstart_Copy_Copy_Copy_Copy_Copy_2_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetEnteringUnit())=='E000')
endfunction
function Trig_summonstart_Copy_Copy_Copy_Copy_Copy_2_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rect10))
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit())),30,"TRIGSTR_485")
endfunction
function Trig_summonstart_Copy_Copy_Copy_Copy_Copy_2_Copy_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetEnteringUnit())=='E001')
endfunction
function Trig_summonstart_Copy_Copy_Copy_Copy_Copy_2_Copy_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rect10))
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit())),30,"TRIGSTR_486")
endfunction
function Trig_Special_at_night_Func007001001001001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='O000')
endfunction
function Trig_Special_at_night_Func007001001 takes nothing returns boolean
return(CountUnitsInGroup(GetUnitsInRectMatching(udg_rect21,Condition(function Trig_Special_at_night_Func007001001001001002)))==1)
endfunction
function Trig_Special_at_night_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger28)
call TriggerSleepAction(3.00)
call DisplayTimedTextToForce(GetPlayersAll(),60.00,"TRIGSTR_820")
call PlaySoundBJ(udg_sound09)
call TriggerSleepAction(60.00)
call DisplayTimedTextToForce(GetPlayersMatching(Condition(function Trig_Special_at_night_Func007001001)),30,"TRIGSTR_1601")
endfunction
function Trig_Special_at_night_Copy_Func007001001001001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='O000')
endfunction
function Trig_Special_at_night_Copy_Func007001001 takes nothing returns boolean
return(CountUnitsInGroup(GetUnitsInRectMatching(udg_rect12,Condition(function Trig_Special_at_night_Copy_Func007001001001001002)))==1)
endfunction
function Trig_Special_at_night_Copy_Actions takes nothing returns nothing
call DisableTrigger(udg_trigger28)
call TriggerSleepAction(3.00)
call DisplayTimedTextToForce(GetPlayersAll(),60.00,"TRIGSTR_822")
call PlaySoundBJ(udg_sound10)
call TriggerSleepAction(60.00)
call DisplayTimedTextToForce(GetPlayersMatching(Condition(function Trig_Special_at_night_Copy_Func007001001)),30,"TRIGSTR_1602")
endfunction
function Trig_move_slayers_Func001001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='O000')
endfunction
function Trig_move_slayers_Func001002 takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),GetRandomLocInRect(udg_rect21))
endfunction
function Trig_move_slayers_Func002001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='O000')
endfunction
function Trig_move_slayers_Func002002 takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),GetRandomLocInRect(udg_rect21))
endfunction
function Trig_move_slayers_Func003001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='O000')
endfunction
function Trig_move_slayers_Func003002 takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),GetRandomLocInRect(udg_rect21))
endfunction
function Trig_move_slayers_Func004001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='O000')
endfunction
function Trig_move_slayers_Func004002 takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),GetRandomLocInRect(udg_rect21))
endfunction
function Trig_move_slayers_Func005001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='O000')
endfunction
function Trig_move_slayers_Func005002 takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),GetRandomLocInRect(udg_rect21))
endfunction
function Trig_move_slayers_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRectMatching(udg_rect11,Condition(function Trig_move_slayers_Func001001002)),function Trig_move_slayers_Func001002)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect13,Condition(function Trig_move_slayers_Func002001002)),function Trig_move_slayers_Func002002)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect14,Condition(function Trig_move_slayers_Func003001002)),function Trig_move_slayers_Func003002)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect15,Condition(function Trig_move_slayers_Func004001002)),function Trig_move_slayers_Func004002)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect16,Condition(function Trig_move_slayers_Func005001002)),function Trig_move_slayers_Func005002)
endfunction
function Trig_summonstart_Copy_Copy_Copy_Copy_Copy_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetEnteringUnit())=='O000')
endfunction
function Trig_summonstart_Copy_Copy_Copy_Copy_Copy_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rect10))
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit())),30,"TRIGSTR_336")
endfunction
function Trig_Gold_supplier_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetDyingUnit())=='n000')
endfunction
function Trig_Gold_supplier_Func004002 takes nothing returns nothing
call AdjustPlayerStateBJ(1,GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function Trig_Gold_supplier_Actions takes nothing returns nothing
call DisplayTimedTextToForce(GetPlayersAll(),30,"TRIGSTR_049")
call PingMinimapLocForForce(GetPlayersAll(),GetRectCenter(udg_rect09),5.00)
call CreateNUnitsAtLoc(1,'n000',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetUnitLoc(GetDyingUnit()),bj_UNIT_FACING)
call ForForce(GetPlayersAll(),function Trig_Gold_supplier_Func004002)
endfunction
function Trig_ONE_lumber_base_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetConstructingStructure())=='h001')and(GetPlayerState(GetOwningPlayer(GetConstructingStructure()),PLAYER_STATE_RESOURCE_FOOD_USED)==2)
endfunction
function Trig_ONE_lumber_base_Actions takes nothing returns nothing
call RemoveUnit(GetConstructingStructure())
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit())),5.00,"TRIGSTR_1076")
endfunction
function Trig_Builder_Dies_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetDyingUnit())=='u000')
endfunction
function Trig_Builder_Dies_Func005002001 takes nothing returns boolean
return(CountLivingPlayerUnitsOfTypeId('u000',GetEnumPlayer())==0)
endfunction
function Trig_Builder_Dies_Func005002 takes nothing returns nothing
if(Trig_Builder_Dies_Func005002001())then
call SetPlayerAllianceStateBJ(GetOwningPlayer(GetDyingUnit()),GetEnumPlayer(),bj_ALLIANCE_ALLIED_VISION)
endif
endfunction
function Trig_Builder_Dies_Func006002001 takes nothing returns boolean
return(CountLivingPlayerUnitsOfTypeId('u000',GetEnumPlayer())==1)
endfunction
function Trig_Builder_Dies_Func006002 takes nothing returns nothing
if(Trig_Builder_Dies_Func006002001())then
call SetPlayerAllianceStateBJ(GetOwningPlayer(GetDyingUnit()),GetEnumPlayer(),bj_ALLIANCE_UNALLIED)
endif
endfunction
function Trig_Builder_Dies_Func007002 takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetEnumPlayer(),GetOwningPlayer(GetDyingUnit()),bj_ALLIANCE_ALLIED_VISION)
endfunction
function Trig_Builder_Dies_Func008002 takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetEnumPlayer(),GetOwningPlayer(GetDyingUnit()),bj_ALLIANCE_ALLIED_VISION)
endfunction
function Trig_Builder_Dies_Func009002 takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetEnumPlayer(),GetOwningPlayer(GetDyingUnit()),bj_ALLIANCE_ALLIED_VISION)
endfunction
function Trig_Builder_Dies_Func010002001 takes nothing returns boolean
return(CountLivingPlayerUnitsOfTypeId('u000',GetEnumPlayer())==1)
endfunction
function Trig_Builder_Dies_Func010002 takes nothing returns nothing
if(Trig_Builder_Dies_Func010002001())then
call SetPlayerAllianceStateBJ(GetEnumPlayer(),GetOwningPlayer(GetDyingUnit()),bj_ALLIANCE_UNALLIED)
endif
endfunction
function Trig_Builder_Dies_Func011002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Builder_Dies_Actions takes nothing returns nothing
call SetPlayerStateBJ(GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_LUMBER,0)
call SetPlayerStateBJ(GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD,150)
call CreateFogModifierRectBJ(true,GetOwningPlayer(GetDyingUnit()),FOG_OF_WAR_VISIBLE,udg_rect17)
call PlaySoundBJ(udg_sound02)
call ForForce(GetPlayersAll(),function Trig_Builder_Dies_Func005002)
call ForForce(GetPlayersAll(),function Trig_Builder_Dies_Func006002)
call ForForce(GetPlayersAllies(Player(11)),function Trig_Builder_Dies_Func007002)
call ForForce(GetPlayersAllies(Player(10)),function Trig_Builder_Dies_Func008002)
call ForForce(GetPlayersAllies(GetOwningPlayer(GetKillingUnitBJ())),function Trig_Builder_Dies_Func009002)
call ForForce(GetPlayersAll(),function Trig_Builder_Dies_Func010002)
call ForGroupBJ(GetUnitsOfPlayerAll(GetOwningPlayer(GetDyingUnit())),function Trig_Builder_Dies_Func011002)
call DisplayTimedTextToForce(GetPlayersAll(),30,(GetPlayerName(GetTriggerPlayer())+" Has fallen and will be reborn as a vampire."))
call CreateNUnitsAtLoc(1,'E001',GetOwningPlayer(GetDyingUnit()),GetUnitLoc(GetDyingUnit()),bj_UNIT_FACING)
call SetHeroLevelBJ(GetLastCreatedUnit(),GetUnitLevel(GetKillingUnitBJ()),false)
call TriggerSleepAction(10.00)
call SetPlayerStateBJ(GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_LUMBER,0)
endfunction
function Trig_Slayer_Dies_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetDyingUnit())=='O000')
endfunction
function Trig_Slayer_Dies_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound06)
call DisplayTimedTextToForce(GetPlayersAll(),30,"TRIGSTR_1222")
endfunction
function Trig_Lumber_Func001002001 takes nothing returns boolean
return(CountLivingPlayerUnitsOfTypeId('h001',GetEnumPlayer())==1)
endfunction
function Trig_Lumber_Func001002 takes nothing returns nothing
if(Trig_Lumber_Func001002001())then
call AdjustPlayerStateBJ(25,GetEnumPlayer(),PLAYER_STATE_RESOURCE_LUMBER)
endif
endfunction
function Trig_Lumber_Func002002001 takes nothing returns boolean
return(CountLivingPlayerUnitsOfTypeId('h002',GetEnumPlayer())==1)
endfunction
function Trig_Lumber_Func002002 takes nothing returns nothing
if(Trig_Lumber_Func002002001())then
call AdjustPlayerStateBJ(38,GetEnumPlayer(),PLAYER_STATE_RESOURCE_LUMBER)
endif
endfunction
function Trig_Lumber_Func003002001 takes nothing returns boolean
return(CountLivingPlayerUnitsOfTypeId('h003',GetEnumPlayer())==1)
endfunction
function Trig_Lumber_Func003002 takes nothing returns nothing
if(Trig_Lumber_Func003002001())then
call AdjustPlayerStateBJ(50,GetEnumPlayer(),PLAYER_STATE_RESOURCE_LUMBER)
endif
endfunction
function Trig_Lumber_Func004002001 takes nothing returns boolean
return(CountLivingPlayerUnitsOfTypeId('h004',GetEnumPlayer())==1)
endfunction
function Trig_Lumber_Func004002 takes nothing returns nothing
if(Trig_Lumber_Func004002001())then
call AdjustPlayerStateBJ(75,GetEnumPlayer(),PLAYER_STATE_RESOURCE_LUMBER)
endif
endfunction
function Trig_Lumber_Func005002001 takes nothing returns boolean
return(CountLivingPlayerUnitsOfTypeId('h005',GetEnumPlayer())==1)
endfunction
function Trig_Lumber_Func005002 takes nothing returns nothing
if(Trig_Lumber_Func005002001())then
call AdjustPlayerStateBJ(100,GetEnumPlayer(),PLAYER_STATE_RESOURCE_LUMBER)
endif
endfunction
function Trig_Lumber_Func006002001 takes nothing returns boolean
return(CountLivingPlayerUnitsOfTypeId('h00T',GetEnumPlayer())==1)
endfunction
function Trig_Lumber_Func006002 takes nothing returns nothing
if(Trig_Lumber_Func006002001())then
call AdjustPlayerStateBJ(150,GetEnumPlayer(),PLAYER_STATE_RESOURCE_LUMBER)
endif
endfunction
function Trig_Lumber_Actions takes nothing returns nothing
call ForForce(GetPlayersAll(),function Trig_Lumber_Func001002)
call ForForce(GetPlayersAll(),function Trig_Lumber_Func002002)
call ForForce(GetPlayersAll(),function Trig_Lumber_Func003002)
call ForForce(GetPlayersAll(),function Trig_Lumber_Func004002)
call ForForce(GetPlayersAll(),function Trig_Lumber_Func005002)
call ForForce(GetPlayersAll(),function Trig_Lumber_Func006002)
endfunction
function Trig_Lumber_base_dies_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetDyingUnit())=='h002')
endfunction
function Trig_Lumber_base_dies_Actions takes nothing returns nothing
call AdjustPlayerStateBJ(2000,GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_LUMBER)
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetDyingUnit())),30,"TRIGSTR_1090")
endfunction
function Trig_Lumber_base_dies_Copy_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetDyingUnit())=='h003')
endfunction
function Trig_Lumber_base_dies_Copy_Actions takes nothing returns nothing
call AdjustPlayerStateBJ(5500,GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_LUMBER)
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetDyingUnit())),30,"TRIGSTR_1091")
endfunction
function Trig_Lumber_base_dies_Copy_Copy_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetDyingUnit())=='h004')
endfunction
function Trig_Lumber_base_dies_Copy_Copy_Actions takes nothing returns nothing
call AdjustPlayerStateBJ(11750,GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_LUMBER)
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetDyingUnit())),30,"TRIGSTR_1092")
endfunction
function Trig_Lumber_base_dies_Copy_Copy_Copy_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetDyingUnit())=='h005')
endfunction
function Trig_Lumber_base_dies_Copy_Copy_Copy_Actions takes nothing returns nothing
call AdjustPlayerStateBJ(21750,GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_LUMBER)
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetDyingUnit())),30,"TRIGSTR_1093")
endfunction
function Trig_Lumber_base_dies_Copy_Copy_Copy_Copy_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetDyingUnit())=='h00T')
endfunction
function Trig_Lumber_base_dies_Copy_Copy_Copy_Copy_Actions takes nothing returns nothing
call AdjustPlayerStateBJ(36750,GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_LUMBER)
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetDyingUnit())),30,"TRIGSTR_1094")
endfunction
function Trig_Slayerlvl_Func001001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='O000')
endfunction
function Trig_Slayerlvl_Func001002 takes nothing returns nothing
call SetHeroLevelBJ(GetEnumUnit(),(GetHeroLevel(GetEnumUnit())+1),true)
endfunction
function Trig_Slayerlvl_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRectMatching(udg_rect12,Condition(function Trig_Slayerlvl_Func001001002)),function Trig_Slayerlvl_Func001002)
endfunction
function Trig_Untitled_Trigger_008_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger40)
endfunction
function Trig_Untitled_Trigger_008_Copy_Actions takes nothing returns nothing
call DisableTrigger(udg_trigger40)
endfunction
function Trig_base_Actions takes nothing returns nothing
call PingMinimapLocForForce(GetForceOfPlayer(GetTriggerPlayer()),GetRectCenter(udg_rect22),10.00)
call PingMinimapLocForForce(GetForceOfPlayer(GetTriggerPlayer()),GetRectCenter(udg_rect23),10.00)
call PingMinimapLocForForce(GetForceOfPlayer(GetTriggerPlayer()),GetRectCenter(udg_rect28),10.00)
call PingMinimapLocForForce(GetForceOfPlayer(GetTriggerPlayer()),GetRectCenter(udg_rect27),10.00)
call PingMinimapLocForForce(GetForceOfPlayer(GetTriggerPlayer()),GetRectCenter(udg_rect26),10.00)
call PingMinimapLocForForce(GetForceOfPlayer(GetTriggerPlayer()),GetRectCenter(udg_rect25),10.00)
call PingMinimapLocForForce(GetForceOfPlayer(GetTriggerPlayer()),GetRectCenter(udg_rect37),10.00)
call PingMinimapLocForForce(GetForceOfPlayer(GetTriggerPlayer()),GetRectCenter(udg_rect36),10.00)
call PingMinimapLocForForce(GetForceOfPlayer(GetTriggerPlayer()),GetRectCenter(udg_rect35),10.00)
call PingMinimapLocForForce(GetForceOfPlayer(GetTriggerPlayer()),GetRectCenter(udg_rect24),10.00)
call PingMinimapLocForForce(GetForceOfPlayer(GetTriggerPlayer()),GetRectCenter(udg_rect34),10.00)
call PingMinimapLocForForce(GetForceOfPlayer(GetTriggerPlayer()),GetRectCenter(udg_rect33),10.00)
call PingMinimapLocForForce(GetForceOfPlayer(GetTriggerPlayer()),GetRectCenter(udg_rect32),10.00)
call PingMinimapLocForForce(GetForceOfPlayer(GetTriggerPlayer()),GetRectCenter(udg_rect31),10.00)
call PingMinimapLocForForce(GetForceOfPlayer(GetTriggerPlayer()),GetRectCenter(udg_rect30),10.00)
call PingMinimapLocForForce(GetForceOfPlayer(GetTriggerPlayer()),GetRectCenter(udg_rect29),10.00)
endfunction
function Trig_leaves_the_game_Func003002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_leaves_the_game_Actions takes nothing returns nothing
call DisplayTimedTextToForce(GetPlayersAll(),30,(GetPlayerName(GetTriggerPlayer())+" |cff00FFFFhas left the game.|r"))
call TriggerSleepAction(0.05)
call ForGroupBJ(GetUnitsOfPlayerAll(GetTriggerPlayer()),function Trig_leaves_the_game_Func003002)
endfunction
function Trig_removeUnused_Func002Func002002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_removeUnused_Func002C takes nothing returns boolean
return(GetPlayerSlotState(Player(0))!=PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_removeUnused_Func003Func002002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_removeUnused_Func003C takes nothing returns boolean
return(GetPlayerSlotState(Player(1))!=PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_removeUnused_Func004Func002002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_removeUnused_Func004C takes nothing returns boolean
return(GetPlayerSlotState(Player(2))!=PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_removeUnused_Func005Func002002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_removeUnused_Func005C takes nothing returns boolean
return(GetPlayerSlotState(Player(3))!=PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_removeUnused_Func006Func002002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_removeUnused_Func006C takes nothing returns boolean
return(GetPlayerSlotState(Player(4))!=PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_removeUnused_Func007Func002002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_removeUnused_Func007C takes nothing returns boolean
return(GetPlayerSlotState(Player(5))!=PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_removeUnused_Func008Func002002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_removeUnused_Func008C takes nothing returns boolean
return(GetPlayerSlotState(Player(6))!=PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_removeUnused_Func009Func002002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_removeUnused_Func009C takes nothing returns boolean
return(GetPlayerSlotState(Player(7))!=PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_removeUnused_Func010Func002002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_removeUnused_Func010C takes nothing returns boolean
return(GetPlayerSlotState(Player(8))!=PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_removeUnused_Func011Func002002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_removeUnused_Func011C takes nothing returns boolean
return(GetPlayerSlotState(Player(9))!=PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_removeUnused_Actions takes nothing returns nothing
if(Trig_removeUnused_Func002C())then
call ForGroupBJ(GetUnitsOfPlayerAll(Player(0)),function Trig_removeUnused_Func002Func002002)
endif
if(Trig_removeUnused_Func003C())then
call ForGroupBJ(GetUnitsOfPlayerAll(Player(1)),function Trig_removeUnused_Func003Func002002)
endif
if(Trig_removeUnused_Func004C())then
call ForGroupBJ(GetUnitsOfPlayerAll(Player(2)),function Trig_removeUnused_Func004Func002002)
endif
if(Trig_removeUnused_Func005C())then
call ForGroupBJ(GetUnitsOfPlayerAll(Player(3)),function Trig_removeUnused_Func005Func002002)
endif
if(Trig_removeUnused_Func006C())then
call ForGroupBJ(GetUnitsOfPlayerAll(Player(4)),function Trig_removeUnused_Func006Func002002)
endif
if(Trig_removeUnused_Func007C())then
call ForGroupBJ(GetUnitsOfPlayerAll(Player(5)),function Trig_removeUnused_Func007Func002002)
endif
if(Trig_removeUnused_Func008C())then
call ForGroupBJ(GetUnitsOfPlayerAll(Player(6)),function Trig_removeUnused_Func008Func002002)
endif
if(Trig_removeUnused_Func009C())then
call ForGroupBJ(GetUnitsOfPlayerAll(Player(7)),function Trig_removeUnused_Func009Func002002)
endif
if(Trig_removeUnused_Func010C())then
call ForGroupBJ(GetUnitsOfPlayerAll(Player(8)),function Trig_removeUnused_Func010Func002002)
endif
if(Trig_removeUnused_Func011C())then
call ForGroupBJ(GetUnitsOfPlayerAll(Player(9)),function Trig_removeUnused_Func011Func002002)
endif
endfunction
function Trig_humanwin_Func002Func008001001 takes nothing returns boolean
return(CountLivingPlayerUnitsOfTypeId('u000',GetFilterPlayer())==1)
endfunction
function Trig_humanwin_Func002Func008002 takes nothing returns nothing
call CustomVictoryBJ(GetEnumPlayer(),true,true)
endfunction
function Trig_humanwin_Func002Func009001001 takes nothing returns boolean
return(CountLivingPlayerUnitsOfTypeId('u000',GetFilterPlayer())==0)
endfunction
function Trig_humanwin_Func002Func009002 takes nothing returns nothing
call CustomDefeatBJ(GetEnumPlayer(),"TRIGSTR_1525")
endfunction
function Trig_humanwin_Func002C takes nothing returns boolean
return(CountUnitsInGroup(GetUnitsOfTypeIdAll('E000'))==0)and(CountUnitsInGroup(GetUnitsOfTypeIdAll('E001'))==0)
endfunction
function Trig_humanwin_Actions takes nothing returns nothing
if(Trig_humanwin_Func002C())then
call DisableTrigger(GetTriggeringTrigger())
call PlaySoundBJ(udg_sound05)
call DisplayTimedTextToForce(GetPlayersAll(),30,"TRIGSTR_426")
call TriggerSleepAction(10.00)
call ForForce(GetPlayersMatching(Condition(function Trig_humanwin_Func002Func008001001)),function Trig_humanwin_Func002Func008002)
call ForForce(GetPlayersMatching(Condition(function Trig_humanwin_Func002Func009001001)),function Trig_humanwin_Func002Func009002)
endif
endfunction
function Trig_vampirewin_Func001Func007002 takes nothing returns nothing
call CustomVictoryBJ(GetEnumPlayer(),true,true)
endfunction
function Trig_vampirewin_Func001C takes nothing returns boolean
return(CountUnitsInGroup(GetUnitsOfTypeIdAll('u000'))==0)
endfunction
function Trig_vampirewin_Actions takes nothing returns nothing
if(Trig_vampirewin_Func001C())then
call DisableTrigger(GetTriggeringTrigger())
call PlaySoundBJ(udg_sound04)
call DisplayTimedTextToForce(GetPlayersAll(),30,"TRIGSTR_324")
call TriggerSleepAction(10.00)
call ForForce(GetPlayersAll(),function Trig_vampirewin_Func001Func007002)
endif
endfunction
function Trig_removedead_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetDyingUnit())=='E000')
endfunction
function Trig_removedead_Actions takes nothing returns nothing
call TriggerSleepAction(5.00)
call RemoveUnit(GetDyingUnit())
endfunction
function Trig_removedead_Copy_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetDyingUnit())=='E001')
endfunction
function Trig_removedead_Copy_Actions takes nothing returns nothing
call TriggerSleepAction(5.00)
call RemoveUnit(GetDyingUnit())
endfunction
function Trig_removedead_Copy_Copy_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetDyingUnit())=='u000')
endfunction
function Trig_removedead_Copy_Copy_Actions takes nothing returns nothing
call TriggerSleepAction(5.00)
call RemoveUnit(GetDyingUnit())
endfunction
function Trig_alone_vamp_more_xp_Conditions takes nothing returns boolean
return(CountUnitsInGroup(GetUnitsOfTypeIdAll('E000'))==1)and(GetUnitTypeId(GetKillingUnitBJ())=='E000')
endfunction
function Trig_alone_vamp_more_xp_Func003002 takes nothing returns nothing
call AddHeroXPSwapped(35,GetEnumUnit(),true)
endfunction
function Trig_alone_vamp_more_xp_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsOfTypeIdAll('E000'),function Trig_alone_vamp_more_xp_Func003002)
endfunction
function Trig_alone_vamp_more_xp_Copy_Conditions takes nothing returns boolean
return(CountUnitsInGroup(GetUnitsOfTypeIdAll('E000'))==1)and(GetUnitTypeId(GetKillingUnitBJ())=='E001')
endfunction
function Trig_alone_vamp_more_xp_Copy_Func003002 takes nothing returns nothing
call AddHeroXPSwapped(35,GetEnumUnit(),true)
endfunction
function Trig_alone_vamp_more_xp_Copy_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsOfTypeIdAll('E000'),function Trig_alone_vamp_more_xp_Copy_Func003002)
endfunction
function Trig_remove_dropped_items_Func001C takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='O000')and(GetItemTypeId(GetManipulatedItem())!='I00L')and(GetItemTypeId(GetManipulatedItem())!='I00M')and(GetItemTypeId(GetManipulatedItem())!='I00U')and(GetItemTypeId(GetManipulatedItem())!='I00K')and(GetItemTypeId(GetManipulatedItem())!='I00I')and(GetItemTypeId(GetManipulatedItem())!='I00H')and(GetItemTypeId(GetManipulatedItem())!='I00J')and(GetItemTypeId(GetManipulatedItem())!='I00E')
endfunction
function Trig_remove_dropped_items_Actions takes nothing returns nothing
if(Trig_remove_dropped_items_Func001C())then
call RemoveItem(GetManipulatedItem())
endif
endfunction
function Trig_remove_dropped_items_Copy_Func001C takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='E000')and(GetItemTypeId(GetManipulatedItem())=='I00L')
endfunction
function Trig_remove_dropped_items_Copy_Actions takes nothing returns nothing
if(Trig_remove_dropped_items_Copy_Func001C())then
call RemoveItem(GetManipulatedItem())
endif
endfunction
function Trig_remove_dropped_items_Copy_Copy_Func001C takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='E000')and(GetItemTypeId(GetManipulatedItem())=='I00M')
endfunction
function Trig_remove_dropped_items_Copy_Copy_Actions takes nothing returns nothing
if(Trig_remove_dropped_items_Copy_Copy_Func001C())then
call RemoveItem(GetManipulatedItem())
endif
endfunction
function Trig_remove_dropped_items_Copy_Copy_2_Func001C takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='E000')and(GetItemTypeId(GetManipulatedItem())=='I00U')
endfunction
function Trig_remove_dropped_items_Copy_Copy_2_Actions takes nothing returns nothing
if(Trig_remove_dropped_items_Copy_Copy_2_Func001C())then
call RemoveItem(GetManipulatedItem())
endif
endfunction
function Trig_remove_dropped_items_Copy_Copy_3_Func001C takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='E000')and(GetItemTypeId(GetManipulatedItem())=='I00K')
endfunction
function Trig_remove_dropped_items_Copy_Copy_3_Actions takes nothing returns nothing
if(Trig_remove_dropped_items_Copy_Copy_3_Func001C())then
call RemoveItem(GetManipulatedItem())
endif
endfunction
function Trig_remove_dropped_items_Copy_Copy_4_Func001C takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='E000')and(GetItemTypeId(GetManipulatedItem())=='I00I')
endfunction
function Trig_remove_dropped_items_Copy_Copy_4_Actions takes nothing returns nothing
if(Trig_remove_dropped_items_Copy_Copy_4_Func001C())then
call RemoveItem(GetManipulatedItem())
endif
endfunction
function Trig_remove_dropped_items_Copy_Copy_5_Func001C takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='E000')and(GetItemTypeId(GetManipulatedItem())=='I00H')
endfunction
function Trig_remove_dropped_items_Copy_Copy_5_Actions takes nothing returns nothing
if(Trig_remove_dropped_items_Copy_Copy_5_Func001C())then
call RemoveItem(GetManipulatedItem())
endif
endfunction
function Trig_remove_dropped_items_Copy_Copy_6_Func001C takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='E000')and(GetItemTypeId(GetManipulatedItem())=='I00J')
endfunction
function Trig_remove_dropped_items_Copy_Copy_6_Actions takes nothing returns nothing
if(Trig_remove_dropped_items_Copy_Copy_6_Func001C())then
call RemoveItem(GetManipulatedItem())
endif
endfunction
function Trig_remove_dropped_items_Copy_Copy_7_Func001C takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='E000')and(GetItemTypeId(GetManipulatedItem())=='I00E')
endfunction
function Trig_remove_dropped_items_Copy_Copy_7_Actions takes nothing returns nothing
if(Trig_remove_dropped_items_Copy_Copy_7_Func001C())then
call RemoveItem(GetManipulatedItem())
endif
endfunction
function Trig_remove_dropped_items_Copy_Copy_7_Copy_Func001C takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='E001')and(GetItemTypeId(GetManipulatedItem())=='I00L')
endfunction
function Trig_remove_dropped_items_Copy_Copy_7_Copy_Actions takes nothing returns nothing
if(Trig_remove_dropped_items_Copy_Copy_7_Copy_Func001C())then
call RemoveItem(GetManipulatedItem())
endif
endfunction
function Trig_remove_dropped_items_Copy_Copy_7_Copy_Copy_Func001C takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='E001')and(GetItemTypeId(GetManipulatedItem())=='I00M')
endfunction
function Trig_remove_dropped_items_Copy_Copy_7_Copy_Copy_Actions takes nothing returns nothing
if(Trig_remove_dropped_items_Copy_Copy_7_Copy_Copy_Func001C())then
call RemoveItem(GetManipulatedItem())
endif
endfunction
function Trig_remove_dropped_items_Copy_Copy_7_Copy_Copy_2_Func001C takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='E001')and(GetItemTypeId(GetManipulatedItem())=='I00U')
endfunction
function Trig_remove_dropped_items_Copy_Copy_7_Copy_Copy_2_Actions takes nothing returns nothing
if(Trig_remove_dropped_items_Copy_Copy_7_Copy_Copy_2_Func001C())then
call RemoveItem(GetManipulatedItem())
endif
endfunction
function Trig_remove_dropped_items_Copy_Copy_7_Copy_Copy_3_Func001C takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='E001')and(GetItemTypeId(GetManipulatedItem())=='I00K')
endfunction
function Trig_remove_dropped_items_Copy_Copy_7_Copy_Copy_3_Actions takes nothing returns nothing
if(Trig_remove_dropped_items_Copy_Copy_7_Copy_Copy_3_Func001C())then
call RemoveItem(GetManipulatedItem())
endif
endfunction
function Trig_remove_dropped_items_Copy_Copy_7_Copy_Copy_4_Func001C takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='E001')and(GetItemTypeId(GetManipulatedItem())=='I00I')
endfunction
function Trig_remove_dropped_items_Copy_Copy_7_Copy_Copy_4_Actions takes nothing returns nothing
if(Trig_remove_dropped_items_Copy_Copy_7_Copy_Copy_4_Func001C())then
call RemoveItem(GetManipulatedItem())
endif
endfunction
function Trig_remove_dropped_items_Copy_Copy_7_Copy_Copy_5_Func001C takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='E001')and(GetItemTypeId(GetManipulatedItem())=='I00H')
endfunction
function Trig_remove_dropped_items_Copy_Copy_7_Copy_Copy_5_Actions takes nothing returns nothing
if(Trig_remove_dropped_items_Copy_Copy_7_Copy_Copy_5_Func001C())then
call RemoveItem(GetManipulatedItem())
endif
endfunction
function Trig_remove_dropped_items_Copy_Copy_7_Copy_Copy_5_Copy_Func001C takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='E001')and(GetItemTypeId(GetManipulatedItem())=='I00J')
endfunction
function Trig_remove_dropped_items_Copy_Copy_7_Copy_Copy_5_Copy_Actions takes nothing returns nothing
if(Trig_remove_dropped_items_Copy_Copy_7_Copy_Copy_5_Copy_Func001C())then
call RemoveItem(GetManipulatedItem())
endif
endfunction
function Trig_remove_dropped_items_Copy_Copy_7_Copy_Copy_5_Copy_2_Func001C takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='E001')and(GetItemTypeId(GetManipulatedItem())=='I00E')
endfunction
function Trig_remove_dropped_items_Copy_Copy_7_Copy_Copy_5_Copy_2_Actions takes nothing returns nothing
if(Trig_remove_dropped_items_Copy_Copy_7_Copy_Copy_5_Copy_2_Func001C())then
call RemoveItem(GetManipulatedItem())
endif
endfunction
function main2 takes nothing returns nothing
local weathereffect we
local player p
local unit u
local integer unitID
local trigger t
local real life
call SetCameraBounds(-8192.0+GetCameraMargin(CAMERA_MARGIN_LEFT),-8704.0+GetCameraMargin(CAMERA_MARGIN_BOTTOM),8192.0-GetCameraMargin(CAMERA_MARGIN_RIGHT),7680.0-GetCameraMargin(CAMERA_MARGIN_TOP),-8192.0+GetCameraMargin(CAMERA_MARGIN_LEFT),7680.0-GetCameraMargin(CAMERA_MARGIN_TOP),8192.0-GetCameraMargin(CAMERA_MARGIN_RIGHT),-8704.0+GetCameraMargin(CAMERA_MARGIN_BOTTOM))
call SetDayNightModels("Environment\\DNC\\DNCDalaran\\DNCDalaranTerrain\\DNCDalaranTerrain.mdl","Environment\\DNC\\DNCDalaran\\DNCDalaranUnit\\DNCDalaranUnit.mdl")
call NewSoundEnvironment("Default")
call SetAmbientDaySound("DalaranDay")
call SetAmbientNightSound("DalaranNight")
call SetMapMusic("Music",true,0)
set udg_sound01=CreateSound("Units\\Demon\\ChaosWarlord\\WarlordWhat3.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound01,"ChaosWarlordWhat")
call SetSoundDuration(udg_sound01,2229)
call SetSoundChannel(udg_sound01,7)
set udg_sound02=CreateSound("Units\\Demon\\HeroPitLord\\HPitLordYesAttack1.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound02,"HeroPitLordYesAttack")
call SetSoundDuration(udg_sound02,1908)
call SetSoundChannel(udg_sound02,7)
set udg_sound03=CreateSound("Units\\Human\\HeroBloodElf\\BloodElfMageYesAttack3.wav",false,false,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound03,"BloodElfSorcerorYesAttack")
call SetSoundDuration(udg_sound03,1939)
call SetSoundChannel(udg_sound03,7)
set udg_sound04=CreateSound("Sound\\Ambient\\DoodadEffects\\SargerasLaugh.wav",false,false,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound04,"SargerasLaugh")
call SetSoundDuration(udg_sound04,3326)
call SetSoundChannel(udg_sound04,7)
set udg_sound05=CreateSound("Sound\\Ambient\\DoodadEffects\\TheHornOfCenarius.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound05,"HornOfCenariusSound")
call SetSoundDuration(udg_sound05,12121)
call SetSoundChannel(udg_sound05,7)
set udg_sound06=CreateSound("Units\\Undead\\Varimathras\\VarimathrasYesAttack4.wav",false,false,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound06,"VarimathrasYesAttack")
call SetSoundDuration(udg_sound06,1829)
call SetSoundChannel(udg_sound06,7)
set udg_sound07=CreateSound("Sound\\Ambient\\DoodadEffects\\Seagull1.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound07,"SeagullSound")
call SetSoundDuration(udg_sound07,3593)
call SetSoundChannel(udg_sound07,7)
set udg_sound08=CreateSound("Sound\\Buildings\\Undead\\UndeadBuildingBirth3.wav",false,false,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound08,"UndeadBuildingBirth3")
call SetSoundDuration(udg_sound08,4087)
call SetSoundChannel(udg_sound08,7)
set udg_sound09=CreateSound("Units\\Demon\\HeroPitLord\\HPitLordYesAttack3.wav",false,false,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound09,"HeroPitLordYesAttack")
call SetSoundDuration(udg_sound09,2215)
call SetSoundChannel(udg_sound09,7)
set udg_sound10=CreateSound("Units\\Human\\BloodElfSpellThief\\SpellbreakerYesAttack2.wav",false,false,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound10,"SpellBreakerYesAttack")
call SetSoundDuration(udg_sound10,1582)
call SetSoundChannel(udg_sound10,7)
set udg_rect01=Rect(-192.0,-320.0,-64.0,-192.0)
set udg_rect02=Rect(64.0,-320.0,192.0,-192.0)
set udg_rect03=Rect(-32.0,-288.0,32.0,-224.0)
set udg_rect04=Rect(864.0,1888.0,1248.0,2208.0)
set udg_rect05=Rect(2336.0,1888.0,2720.0,2208.0)
set udg_rect06=Rect(1632.0,2592.0,1952.0,2976.0)
set udg_rect07=Rect(1632.0,1888.0,1952.0,2208.0)
set udg_rect08=Rect(4064.0,1120.0,4384.0,1440.0)
set udg_rect09=Rect(4096.0,1536.0,4352.0,1792.0)
set udg_rect10=Rect(1632.0,992.0,1952.0,1312.0)
set udg_rect11=Rect(1632.0,1472.0,1952.0,1632.0)
set udg_rect12=Rect(-4000.0,-6304.0,-3168.0,-5600.0)
set udg_rect13=Rect(1152.0,1408.0,2432.0,2656.0)
set udg_rect14=Rect(864.0,1888.0,2720.0,2208.0)
set udg_rect15=Rect(1632.0,2560.0,1952.0,2976.0)
set udg_rect16=Rect(3488.0,896.0,5088.0,2400.0)
set udg_rect17=Rect(-1184.0,-1440.0,1184.0,928.0)
set udg_rect18=Rect(2272.0,1888.0,2720.0,2208.0)
set udg_rect19=Rect(1632.0,2528.0,1952.0,2976.0)
set udg_rect20=Rect(864.0,1888.0,1312.0,2208.0)
set udg_rect21=Rect(1248.0,384.0,3328.0,1376.0)
set udg_rect22=Rect(-3520.0,-2784.0,-2944.0,-2400.0)
set udg_rect23=Rect(-7328.0,-4992.0,-6752.0,-4608.0)
set udg_rect24=Rect(-7744.0,6752.0,-7168.0,7136.0)
set udg_rect25=Rect(7072.0,6752.0,7648.0,7136.0)
set udg_rect26=Rect(6752.0,-7840.0,7328.0,-7328.0)
set udg_rect27=Rect(192.0,-7424.0,768.0,-7040.0)
set udg_rect28=Rect(6560.0,928.0,7136.0,1312.0)
set udg_rect29=Rect(2112.0,3808.0,2688.0,4192.0)
set udg_rect30=Rect(-1376.0,3648.0,-800.0,4032.0)
set udg_rect31=Rect(-2112.0,6336.0,-1536.0,6720.0)
set udg_rect32=Rect(3072.0,6336.0,3648.0,6720.0)
set udg_rect33=Rect(-4480.0,1408.0,-3904.0,1792.0)
set udg_rect34=Rect(-7200.0,3008.0,-6624.0,3392.0)
set udg_rect35=Rect(4288.0,-4864.0,4864.0,-4480.0)
set udg_rect36=Rect(-320.0,-2912.0,256.0,-2528.0)
set udg_rect37=Rect(4416.0,-544.0,4992.0,-160.0)
set udg_rect38=Rect(-4000.0,-7776.0,-3168.0,-5600.0)
set p=Player(PLAYER_NEUTRAL_AGGRESSIVE)
set u=CreateUnit(p,'n000',4224.0,2048.0,270.000)
set p=Player(PLAYER_NEUTRAL_PASSIVE)
set u=CreateUnit(p,'n002',-640.0,768.0,270.000)
set u=CreateUnit(p,'n004',1024.0,768.0,270.000)
set u=CreateUnit(p,'n004',-1024.0,-1280.0,270.000)
set u=CreateUnit(p,'ncp3',4224.0,1280.0,270.000)
set u=CreateUnit(p,'n003',256.0,-512.0,270.000)
set u=CreateUnit(p,'n003',-256.0,-512.0,270.000)
set u=CreateUnit(p,'n003',-256.0,0.0,270.000)
set u=CreateUnit(p,'n003',256.0,0.0,270.000)
set u=CreateUnit(p,'n002',640.0,-1280.0,270.000)
set u=CreateUnit(p,'n001',1024.0,-896.0,270.000)
set u=CreateUnit(p,'n001',-1024.0,384.0,270.000)
set p=Player(PLAYER_NEUTRAL_PASSIVE)
set u=CreateUnit(p,'O000',-3581.6,-5787.3,56.910)
set u=CreateUnit(p,'E000',-3775.4,-6134.9,328.520)
set u=CreateUnit(p,'E001',-3355.8,-6151.0,246.940)
set p=Player(0)
set u=CreateUnit(p,'u000',-0.5,126.4,270.000)
set p=Player(1)
set u=CreateUnit(p,'u000',379.4,122.2,225.000)
set p=Player(2)
set u=CreateUnit(p,'u000',381.0,-258.1,180.000)
set p=Player(3)
set u=CreateUnit(p,'u000',378.7,-635.2,135.000)
set p=Player(4)
set u=CreateUnit(p,'u000',3.3,-633.7,90.000)
set p=Player(5)
set u=CreateUnit(p,'u000',-378.0,-635.2,45.000)
set p=Player(6)
set u=CreateUnit(p,'u000',-379.5,-256.3,0.000)
set p=Player(7)
set u=CreateUnit(p,'u000',-379.7,117.2,315.000)
set p=Player(8)
set u=CreateUnit(p,'u000',-133.1,-253.9,135.000)
set p=Player(9)
set u=CreateUnit(p,'u000',132.2,-256.3,315.000)
call TriggerRegisterTimerEventSingle(udg_trigger01,2.00)
call TriggerAddAction(udg_trigger01,function Trig_Untitled_Trigger_004_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger02,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger02,Condition(function Trig_FriendlyFire_Conditions))
call TriggerAddAction(udg_trigger02,function Trig_FriendlyFire_Actions)
call TriggerAddAction(udg_trigger03,function Trig_quests_Actions)
call TriggerAddAction(udg_trigger04,function Trig_Melee_Initialization_Actions)
call TriggerRegisterPlayerChatEvent(udg_trigger05,Player(0),"-zoom",true)
call TriggerRegisterPlayerChatEvent(udg_trigger05,Player(1),"-zoom",true)
call TriggerRegisterPlayerChatEvent(udg_trigger05,Player(2),"-zoom",true)
call TriggerRegisterPlayerChatEvent(udg_trigger05,Player(3),"-zoom",true)
call TriggerRegisterPlayerChatEvent(udg_trigger05,Player(4),"-zoom",true)
call TriggerRegisterPlayerChatEvent(udg_trigger05,Player(5),"-zoom",true)
call TriggerRegisterPlayerChatEvent(udg_trigger05,Player(6),"-zoom",true)
call TriggerRegisterPlayerChatEvent(udg_trigger05,Player(7),"-zoom",true)
call TriggerRegisterPlayerChatEvent(udg_trigger05,Player(8),"-zoom",true)
call TriggerRegisterPlayerChatEvent(udg_trigger05,Player(9),"-zoom",true)
call TriggerRegisterPlayerChatEvent(udg_trigger05,Player(10),"-zoom",true)
call TriggerRegisterPlayerChatEvent(udg_trigger05,Player(11),"-zoom",true)
call TriggerAddAction(udg_trigger05,function Trig_Zoom_Actions)
call TriggerRegisterTimerEventSingle(udg_trigger06,1.00)
call TriggerAddAction(udg_trigger06,function Trig_Start_text_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger07,udg_rect38)
call TriggerAddCondition(udg_trigger07,Condition(function Trig_lifedraintext_Conditions))
call TriggerAddAction(udg_trigger07,function Trig_lifedraintext_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger08,udg_rect38)
call TriggerAddCondition(udg_trigger08,Condition(function Trig_lifedraintext_Copy_Conditions))
call TriggerAddAction(udg_trigger08,function Trig_lifedraintext_Copy_Actions)
call TriggerRegisterTimerEventPeriodic(udg_trigger09,1.00)
call TriggerAddAction(udg_trigger09,function Trig_lifedrain_Actions)
call TriggerRegisterPlayerEventLeave(udg_trigger10,Player(10))
call TriggerRegisterPlayerEventLeave(udg_trigger10,Player(11))
call TriggerAddCondition(udg_trigger10,Condition(function Trig_shared_resources_when_leave_Conditions))
call TriggerAddAction(udg_trigger10,function Trig_shared_resources_when_leave_Actions)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger11,Player(10),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger11,Player(11),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger11,Condition(function Trig_shared_resources_when_die_Conditions))
call TriggerAddAction(udg_trigger11,function Trig_shared_resources_when_die_Actions)
call TriggerRegisterTimerEventPeriodic(udg_trigger12,5.00)
call TriggerAddAction(udg_trigger12,function Trig_Xp_every_second_Actions)
call TriggerRegisterTimerEventPeriodic(udg_trigger13,1.00)
call TriggerAddAction(udg_trigger13,function Trig_Untitled_Trigger_007_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger14,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger14,Condition(function Trig_Buildings_grant_xp_Conditions))
call TriggerAddAction(udg_trigger14,function Trig_Buildings_grant_xp_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger15,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger15,Condition(function Trig_Buildings_grant_xp_Copy_Conditions))
call TriggerAddAction(udg_trigger15,function Trig_Buildings_grant_xp_Copy_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger16,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger16,Condition(function Trig_death_Conditions))
call TriggerAddAction(udg_trigger16,function Trig_death_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger17,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger17,Condition(function Trig_death_Copy_Conditions))
call TriggerAddAction(udg_trigger17,function Trig_death_Copy_Actions)
call TriggerRegisterTimerEventSingle(udg_trigger18,45.00)
call TriggerAddAction(udg_trigger18,function Trig_Vamp_spawn_Actions)
call TriggerAddAction(udg_trigger19,function Trig_Untitled_Trigger_006_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger20,udg_rect06)
call TriggerRegisterEnterRectSimple(udg_trigger20,udg_rect05)
call TriggerRegisterEnterRectSimple(udg_trigger20,udg_rect04)
call TriggerAddAction(udg_trigger20,function Trig_summoncircle_Actions)
call DisableTrigger(udg_trigger21)
call TriggerRegisterEnterRectSimple(udg_trigger21,udg_rect07)
call TriggerAddCondition(udg_trigger21,Condition(function Trig_summonstart_Conditions))
call TriggerAddAction(udg_trigger21,function Trig_summonstart_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger22,udg_rect08)
call TriggerAddAction(udg_trigger22,function Trig_summonstart_Copy_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger23,udg_rect11)
call TriggerRegisterEnterRectSimple(udg_trigger23,udg_rect13)
call TriggerRegisterEnterRectSimple(udg_trigger23,udg_rect14)
call TriggerRegisterEnterRectSimple(udg_trigger23,udg_rect15)
call TriggerRegisterEnterRectSimple(udg_trigger23,udg_rect16)
call TriggerAddCondition(udg_trigger23,Condition(function Trig_summonstart_Copy_Copy_Copy_Copy_Conditions))
call TriggerAddAction(udg_trigger23,function Trig_summonstart_Copy_Copy_Copy_Copy_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger24,udg_rect11)
call TriggerRegisterEnterRectSimple(udg_trigger24,udg_rect13)
call TriggerRegisterEnterRectSimple(udg_trigger24,udg_rect14)
call TriggerRegisterEnterRectSimple(udg_trigger24,udg_rect15)
call TriggerRegisterEnterRectSimple(udg_trigger24,udg_rect16)
call TriggerAddCondition(udg_trigger24,Condition(function Trig_summonstart_Copy_Copy_Copy_Copy_Copy_2_Conditions))
call TriggerAddAction(udg_trigger24,function Trig_summonstart_Copy_Copy_Copy_Copy_Copy_2_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger25,udg_rect11)
call TriggerRegisterEnterRectSimple(udg_trigger25,udg_rect13)
call TriggerRegisterEnterRectSimple(udg_trigger25,udg_rect14)
call TriggerRegisterEnterRectSimple(udg_trigger25,udg_rect15)
call TriggerRegisterEnterRectSimple(udg_trigger25,udg_rect16)
call TriggerAddCondition(udg_trigger25,Condition(function Trig_summonstart_Copy_Copy_Copy_Copy_Copy_2_Copy_Conditions))
call TriggerAddAction(udg_trigger25,function Trig_summonstart_Copy_Copy_Copy_Copy_Copy_2_Copy_Actions)
call TriggerRegisterGameStateEventTimeOfDay(udg_trigger26,EQUAL,18.00)
call TriggerAddAction(udg_trigger26,function Trig_Special_at_night_Actions)
call TriggerRegisterGameStateEventTimeOfDay(udg_trigger27,EQUAL,6.00)
call TriggerAddAction(udg_trigger27,function Trig_Special_at_night_Copy_Actions)
call DisableTrigger(udg_trigger28)
call TriggerRegisterTimerEventPeriodic(udg_trigger28,2.00)
call TriggerAddAction(udg_trigger28,function Trig_move_slayers_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger29,udg_rect16)
call TriggerAddCondition(udg_trigger29,Condition(function Trig_summonstart_Copy_Copy_Copy_Copy_Copy_Conditions))
call TriggerAddAction(udg_trigger29,function Trig_summonstart_Copy_Copy_Copy_Copy_Copy_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger30,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger30,Condition(function Trig_Gold_supplier_Conditions))
call TriggerAddAction(udg_trigger30,function Trig_Gold_supplier_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger31,EVENT_PLAYER_UNIT_CONSTRUCT_START)
call TriggerAddCondition(udg_trigger31,Condition(function Trig_ONE_lumber_base_Conditions))
call TriggerAddAction(udg_trigger31,function Trig_ONE_lumber_base_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger32,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger32,Condition(function Trig_Builder_Dies_Conditions))
call TriggerAddAction(udg_trigger32,function Trig_Builder_Dies_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger33,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger33,Condition(function Trig_Slayer_Dies_Conditions))
call TriggerAddAction(udg_trigger33,function Trig_Slayer_Dies_Actions)
call TriggerRegisterTimerEventPeriodic(udg_trigger34,1.00)
call TriggerAddAction(udg_trigger34,function Trig_Lumber_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger35,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger35,Condition(function Trig_Lumber_base_dies_Conditions))
call TriggerAddAction(udg_trigger35,function Trig_Lumber_base_dies_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger36,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger36,Condition(function Trig_Lumber_base_dies_Copy_Conditions))
call TriggerAddAction(udg_trigger36,function Trig_Lumber_base_dies_Copy_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger37,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger37,Condition(function Trig_Lumber_base_dies_Copy_Copy_Conditions))
call TriggerAddAction(udg_trigger37,function Trig_Lumber_base_dies_Copy_Copy_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger38,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger38,Condition(function Trig_Lumber_base_dies_Copy_Copy_Copy_Conditions))
call TriggerAddAction(udg_trigger38,function Trig_Lumber_base_dies_Copy_Copy_Copy_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger39,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger39,Condition(function Trig_Lumber_base_dies_Copy_Copy_Copy_Copy_Conditions))
call TriggerAddAction(udg_trigger39,function Trig_Lumber_base_dies_Copy_Copy_Copy_Copy_Actions)
call TriggerRegisterTimerEventPeriodic(udg_trigger40,30.00)
call TriggerAddAction(udg_trigger40,function Trig_Slayerlvl_Actions)
call TriggerRegisterGameStateEventTimeOfDay(udg_trigger41,EQUAL,18.00)
call TriggerAddAction(udg_trigger41,function Trig_Untitled_Trigger_008_Actions)
call TriggerRegisterGameStateEventTimeOfDay(udg_trigger42,EQUAL,6.00)
call TriggerAddAction(udg_trigger42,function Trig_Untitled_Trigger_008_Copy_Actions)
call TriggerRegisterPlayerChatEvent(udg_trigger43,Player(0),"-base",true)
call TriggerRegisterPlayerChatEvent(udg_trigger43,Player(1),"-base",true)
call TriggerRegisterPlayerChatEvent(udg_trigger43,Player(2),"-base",true)
call TriggerRegisterPlayerChatEvent(udg_trigger43,Player(3),"-base",true)
call TriggerRegisterPlayerChatEvent(udg_trigger43,Player(4),"-base",true)
call TriggerRegisterPlayerChatEvent(udg_trigger43,Player(5),"-base",true)
call TriggerRegisterPlayerChatEvent(udg_trigger43,Player(6),"-base",true)
call TriggerRegisterPlayerChatEvent(udg_trigger43,Player(7),"-base",true)
call TriggerRegisterPlayerChatEvent(udg_trigger43,Player(8),"-base",true)
call TriggerRegisterPlayerChatEvent(udg_trigger43,Player(9),"-base",true)
call TriggerRegisterPlayerChatEvent(udg_trigger43,Player(10),"-base",true)
call TriggerRegisterPlayerChatEvent(udg_trigger43,Player(11),"-base",true)
call TriggerAddAction(udg_trigger43,function Trig_base_Actions)
call TriggerRegisterPlayerEventLeave(udg_trigger44,Player(0))
call TriggerRegisterPlayerEventLeave(udg_trigger44,Player(1))
call TriggerRegisterPlayerEventLeave(udg_trigger44,Player(2))
call TriggerRegisterPlayerEventLeave(udg_trigger44,Player(3))
call TriggerRegisterPlayerEventLeave(udg_trigger44,Player(4))
call TriggerRegisterPlayerEventLeave(udg_trigger44,Player(5))
call TriggerRegisterPlayerEventLeave(udg_trigger44,Player(6))
call TriggerRegisterPlayerEventLeave(udg_trigger44,Player(7))
call TriggerRegisterPlayerEventLeave(udg_trigger44,Player(8))
call TriggerRegisterPlayerEventLeave(udg_trigger44,Player(9))
call TriggerRegisterPlayerEventLeave(udg_trigger44,Player(10))
call TriggerRegisterPlayerEventLeave(udg_trigger44,Player(11))
call TriggerAddAction(udg_trigger44,function Trig_leaves_the_game_Actions)
call TriggerRegisterTimerEventSingle(udg_trigger45,1.00)
call TriggerAddAction(udg_trigger45,function Trig_removeUnused_Actions)
call DisableTrigger(udg_trigger46)
call TriggerRegisterTimerEventPeriodic(udg_trigger46,5.00)
call TriggerAddAction(udg_trigger46,function Trig_humanwin_Actions)
call DisableTrigger(udg_trigger47)
call TriggerRegisterTimerEventPeriodic(udg_trigger47,5.00)
call TriggerAddAction(udg_trigger47,function Trig_vampirewin_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger48,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger48,Condition(function Trig_removedead_Conditions))
call TriggerAddAction(udg_trigger48,function Trig_removedead_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger49,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger49,Condition(function Trig_removedead_Copy_Conditions))
call TriggerAddAction(udg_trigger49,function Trig_removedead_Copy_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger50,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger50,Condition(function Trig_removedead_Copy_Copy_Conditions))
call TriggerAddAction(udg_trigger50,function Trig_removedead_Copy_Copy_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger51,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger51,Condition(function Trig_alone_vamp_more_xp_Conditions))
call TriggerAddAction(udg_trigger51,function Trig_alone_vamp_more_xp_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger52,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger52,Condition(function Trig_alone_vamp_more_xp_Copy_Conditions))
call TriggerAddAction(udg_trigger52,function Trig_alone_vamp_more_xp_Copy_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger53,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddAction(udg_trigger53,function Trig_remove_dropped_items_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger54,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddAction(udg_trigger54,function Trig_remove_dropped_items_Copy_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger55,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddAction(udg_trigger55,function Trig_remove_dropped_items_Copy_Copy_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger56,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddAction(udg_trigger56,function Trig_remove_dropped_items_Copy_Copy_2_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger57,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddAction(udg_trigger57,function Trig_remove_dropped_items_Copy_Copy_3_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger58,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddAction(udg_trigger58,function Trig_remove_dropped_items_Copy_Copy_4_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger59,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddAction(udg_trigger59,function Trig_remove_dropped_items_Copy_Copy_5_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger60,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddAction(udg_trigger60,function Trig_remove_dropped_items_Copy_Copy_6_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger61,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddAction(udg_trigger61,function Trig_remove_dropped_items_Copy_Copy_7_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger62,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddAction(udg_trigger62,function Trig_remove_dropped_items_Copy_Copy_7_Copy_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger63,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddAction(udg_trigger63,function Trig_remove_dropped_items_Copy_Copy_7_Copy_Copy_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger64,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddAction(udg_trigger64,function Trig_remove_dropped_items_Copy_Copy_7_Copy_Copy_2_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger65,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddAction(udg_trigger65,function Trig_remove_dropped_items_Copy_Copy_7_Copy_Copy_3_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger66,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddAction(udg_trigger66,function Trig_remove_dropped_items_Copy_Copy_7_Copy_Copy_4_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger67,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddAction(udg_trigger67,function Trig_remove_dropped_items_Copy_Copy_7_Copy_Copy_5_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger68,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddAction(udg_trigger68,function Trig_remove_dropped_items_Copy_Copy_7_Copy_Copy_5_Copy_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger69,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddAction(udg_trigger69,function Trig_remove_dropped_items_Copy_Copy_7_Copy_Copy_5_Copy_2_Actions)
call ConditionalTriggerExecute(udg_trigger03)
call ConditionalTriggerExecute(udg_trigger04)
call ConditionalTriggerExecute(udg_trigger19)
endfunction
function InitTrig_init takes nothing returns nothing
set udg_trigger01 = CreateTrigger()
set udg_trigger02 = CreateTrigger()
set udg_trigger03 = CreateTrigger()
set udg_trigger04 = CreateTrigger()
set udg_trigger05 = CreateTrigger()
set udg_trigger06 = CreateTrigger()
set udg_trigger07 = CreateTrigger()
set udg_trigger08 = CreateTrigger()
set udg_trigger09 = CreateTrigger()
set udg_trigger10 = CreateTrigger()
set udg_trigger11 = CreateTrigger()
set udg_trigger12 = CreateTrigger()
set udg_trigger13 = CreateTrigger()
set udg_trigger14 = CreateTrigger()
set udg_trigger15 = CreateTrigger()
set udg_trigger16 = CreateTrigger()
set udg_trigger17 = CreateTrigger()
set udg_trigger18 = CreateTrigger()
set udg_trigger19 = CreateTrigger()
set udg_trigger20 = CreateTrigger()
set udg_trigger21 = CreateTrigger()
set udg_trigger22 = CreateTrigger()
set udg_trigger23 = CreateTrigger()
set udg_trigger24 = CreateTrigger()
set udg_trigger25 = CreateTrigger()
set udg_trigger26 = CreateTrigger()
set udg_trigger27 = CreateTrigger()
set udg_trigger28 = CreateTrigger()
set udg_trigger29 = CreateTrigger()
set udg_trigger30 = CreateTrigger()
set udg_trigger31 = CreateTrigger()
set udg_trigger32 = CreateTrigger()
set udg_trigger33 = CreateTrigger()
set udg_trigger34 = CreateTrigger()
set udg_trigger35 = CreateTrigger()
set udg_trigger36 = CreateTrigger()
set udg_trigger37 = CreateTrigger()
set udg_trigger38 = CreateTrigger()
set udg_trigger39 = CreateTrigger()
set udg_trigger40 = CreateTrigger()
set udg_trigger41 = CreateTrigger()
set udg_trigger42 = CreateTrigger()
set udg_trigger43 = CreateTrigger()
set udg_trigger44 = CreateTrigger()
set udg_trigger45 = CreateTrigger()
set udg_trigger46 = CreateTrigger()
set udg_trigger47 = CreateTrigger()
set udg_trigger48 = CreateTrigger()
set udg_trigger49 = CreateTrigger()
set udg_trigger50 = CreateTrigger()
set udg_trigger51 = CreateTrigger()
set udg_trigger52 = CreateTrigger()
set udg_trigger53 = CreateTrigger()
set udg_trigger54 = CreateTrigger()
set udg_trigger55 = CreateTrigger()
set udg_trigger56 = CreateTrigger()
set udg_trigger57 = CreateTrigger()
set udg_trigger58 = CreateTrigger()
set udg_trigger59 = CreateTrigger()
set udg_trigger60 = CreateTrigger()
set udg_trigger61 = CreateTrigger()
set udg_trigger62 = CreateTrigger()
set udg_trigger63 = CreateTrigger()
set udg_trigger64 = CreateTrigger()
set udg_trigger65 = CreateTrigger()
set udg_trigger66 = CreateTrigger()
set udg_trigger67 = CreateTrigger()
set udg_trigger68 = CreateTrigger()
set udg_trigger69 = CreateTrigger()
call ExecuteFunc("main2")
endfunction
function Trig_no_workers_in_slayer_exp_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'u000' ) ) then
return false
endif
return true
endfunction
function Trig_no_workers_in_slayer_exp_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_workers_here) )
endfunction
//===========================================================================
function InitTrig_no_workers_in_slayer_exp takes nothing returns nothing
set gg_trg_no_workers_in_slayer_exp = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_no_workers_in_slayer_exp, gg_rct_No_Workers_here )
call TriggerAddCondition( gg_trg_no_workers_in_slayer_exp, Condition( function Trig_no_workers_in_slayer_exp_Conditions ) )
call TriggerAddAction( gg_trg_no_workers_in_slayer_exp, function Trig_no_workers_in_slayer_exp_Actions )
endfunction
function Trig_anti_leave_tig_Conditions takes nothing returns boolean
if ( not ( GetPlayerSlotState(Player(10)) == PLAYER_SLOT_STATE_EMPTY ) ) then
return false
endif
return true
endfunction
function Trig_anti_leave_tig_Actions takes nothing returns nothing
call DisplayTextToForce( bj_FORCE_PLAYER[11], "TRIGSTR_1766" )
call AdjustPlayerStateBJ( 1500, Player(11), PLAYER_STATE_RESOURCE_GOLD )
endfunction
//===========================================================================
function InitTrig_anti_leave_tig takes nothing returns nothing
set gg_trg_anti_leave_tig = CreateTrigger( )
call TriggerAddCondition( gg_trg_anti_leave_tig, Condition( function Trig_anti_leave_tig_Conditions ) )
call TriggerAddAction( gg_trg_anti_leave_tig, function Trig_anti_leave_tig_Actions )
endfunction
function Trig_noob_vamp_Func006001 takes nothing returns boolean
return ( IsPlayerEnemy(Player(0), Player(10)) == true )
endfunction
function Trig_noob_vamp_Func006002 takes nothing returns boolean
return ( IsPlayerEnemy(Player(0), Player(11)) == true )
endfunction
function Trig_noob_vamp_Conditions takes nothing returns boolean
if ( not GetBooleanOr( Trig_noob_vamp_Func006001(), Trig_noob_vamp_Func006002() ) ) then
return false
endif
return true
endfunction
function Trig_noob_vamp_Actions takes nothing returns nothing
call DisplayTimedTextToForce( GetPlayersAll(), 30, ( GetPlayerName(GetTriggerPlayer()) + " has feed Vampires with 500 gold." ) )
call AdjustPlayerStateBJ( 500, Player(10), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 500, Player(11), PLAYER_STATE_RESOURCE_GOLD )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_noob_vamp takes nothing returns nothing
set gg_trg_noob_vamp = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_noob_vamp, Player(0), "-noob vamp", true )
call TriggerAddCondition( gg_trg_noob_vamp, Condition( function Trig_noob_vamp_Conditions ) )
call TriggerAddAction( gg_trg_noob_vamp, function Trig_noob_vamp_Actions )
endfunction
function Trig_noob_vamp_blue_Func006001 takes nothing returns boolean
return ( IsPlayerEnemy(Player(1), Player(10)) == true )
endfunction
function Trig_noob_vamp_blue_Func006002 takes nothing returns boolean
return ( IsPlayerEnemy(Player(1), Player(11)) == true )
endfunction
function Trig_noob_vamp_blue_Conditions takes nothing returns boolean
if ( not GetBooleanOr( Trig_noob_vamp_blue_Func006001(), Trig_noob_vamp_blue_Func006002() ) ) then
return false
endif
return true
endfunction
function Trig_noob_vamp_blue_Actions takes nothing returns nothing
call DisplayTimedTextToForce( GetPlayersAll(), 30, ( GetPlayerName(GetTriggerPlayer()) + " has feed Vampires with 500 gold." ) )
call AdjustPlayerStateBJ( 500, Player(10), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 500, Player(11), PLAYER_STATE_RESOURCE_GOLD )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_noob_vamp_blue takes nothing returns nothing
set gg_trg_noob_vamp_blue = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_noob_vamp_blue, Player(1), "-noob vamp", true )
call TriggerAddCondition( gg_trg_noob_vamp_blue, Condition( function Trig_noob_vamp_blue_Conditions ) )
call TriggerAddAction( gg_trg_noob_vamp_blue, function Trig_noob_vamp_blue_Actions )
endfunction
function Trig_noob_vamp_teal_Func006001 takes nothing returns boolean
return ( IsPlayerEnemy(Player(2), Player(10)) == true )
endfunction
function Trig_noob_vamp_teal_Func006002 takes nothing returns boolean
return ( IsPlayerEnemy(Player(2), Player(11)) == true )
endfunction
function Trig_noob_vamp_teal_Conditions takes nothing returns boolean
if ( not GetBooleanOr( Trig_noob_vamp_teal_Func006001(), Trig_noob_vamp_teal_Func006002() ) ) then
return false
endif
return true
endfunction
function Trig_noob_vamp_teal_Actions takes nothing returns nothing
call DisplayTimedTextToForce( GetPlayersAll(), 30, ( GetPlayerName(GetTriggerPlayer()) + " has feed Vampires with 500 gold." ) )
call AdjustPlayerStateBJ( 500, Player(10), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 500, Player(11), PLAYER_STATE_RESOURCE_GOLD )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_noob_vamp_teal takes nothing returns nothing
set gg_trg_noob_vamp_teal = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_noob_vamp_teal, Player(2), "-noob vamp", true )
call TriggerAddCondition( gg_trg_noob_vamp_teal, Condition( function Trig_noob_vamp_teal_Conditions ) )
call TriggerAddAction( gg_trg_noob_vamp_teal, function Trig_noob_vamp_teal_Actions )
endfunction
function Trig_noob_vamp_purp_Func006001 takes nothing returns boolean
return ( IsPlayerEnemy(Player(3), Player(10)) == true )
endfunction
function Trig_noob_vamp_purp_Func006002 takes nothing returns boolean
return ( IsPlayerEnemy(Player(3), Player(11)) == true )
endfunction
function Trig_noob_vamp_purp_Conditions takes nothing returns boolean
if ( not GetBooleanOr( Trig_noob_vamp_purp_Func006001(), Trig_noob_vamp_purp_Func006002() ) ) then
return false
endif
return true
endfunction
function Trig_noob_vamp_purp_Actions takes nothing returns nothing
call DisplayTimedTextToForce( GetPlayersAll(), 30, ( GetPlayerName(GetTriggerPlayer()) + " has feed Vampires with 500 gold." ) )
call AdjustPlayerStateBJ( 500, Player(10), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 500, Player(11), PLAYER_STATE_RESOURCE_GOLD )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_noob_vamp_purp takes nothing returns nothing
set gg_trg_noob_vamp_purp = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_noob_vamp_purp, Player(3), "-noob vamp", true )
call TriggerAddCondition( gg_trg_noob_vamp_purp, Condition( function Trig_noob_vamp_purp_Conditions ) )
call TriggerAddAction( gg_trg_noob_vamp_purp, function Trig_noob_vamp_purp_Actions )
endfunction
function Trig_noob_vamp_5_Func006001 takes nothing returns boolean
return ( IsPlayerEnemy(Player(4), Player(10)) == true )
endfunction
function Trig_noob_vamp_5_Func006002 takes nothing returns boolean
return ( IsPlayerEnemy(Player(4), Player(11)) == true )
endfunction
function Trig_noob_vamp_5_Conditions takes nothing returns boolean
if ( not GetBooleanOr( Trig_noob_vamp_5_Func006001(), Trig_noob_vamp_5_Func006002() ) ) then
return false
endif
return true
endfunction
function Trig_noob_vamp_5_Actions takes nothing returns nothing
call DisplayTimedTextToForce( GetPlayersAll(), 30, ( GetPlayerName(GetTriggerPlayer()) + " has feed Vampires with 500 gold." ) )
call AdjustPlayerStateBJ( 500, Player(10), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 500, Player(11), PLAYER_STATE_RESOURCE_GOLD )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_noob_vamp_5 takes nothing returns nothing
set gg_trg_noob_vamp_5 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_noob_vamp_5, Player(4), "-noob vamp", true )
call TriggerAddCondition( gg_trg_noob_vamp_5, Condition( function Trig_noob_vamp_5_Conditions ) )
call TriggerAddAction( gg_trg_noob_vamp_5, function Trig_noob_vamp_5_Actions )
endfunction
function Trig_noob_vamp_6_Func006001 takes nothing returns boolean
return ( IsPlayerEnemy(Player(5), Player(10)) == true )
endfunction
function Trig_noob_vamp_6_Func006002 takes nothing returns boolean
return ( IsPlayerEnemy(Player(5), Player(11)) == true )
endfunction
function Trig_noob_vamp_6_Conditions takes nothing returns boolean
if ( not GetBooleanOr( Trig_noob_vamp_6_Func006001(), Trig_noob_vamp_6_Func006002() ) ) then
return false
endif
return true
endfunction
function Trig_noob_vamp_6_Actions takes nothing returns nothing
call DisplayTimedTextToForce( GetPlayersAll(), 30, ( GetPlayerName(GetTriggerPlayer()) + " has feed Vampires with 500 gold." ) )
call AdjustPlayerStateBJ( 500, Player(10), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 500, Player(11), PLAYER_STATE_RESOURCE_GOLD )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_noob_vamp_6 takes nothing returns nothing
set gg_trg_noob_vamp_6 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_noob_vamp_6, Player(5), "-noob vamp", true )
call TriggerAddCondition( gg_trg_noob_vamp_6, Condition( function Trig_noob_vamp_6_Conditions ) )
call TriggerAddAction( gg_trg_noob_vamp_6, function Trig_noob_vamp_6_Actions )
endfunction
function Trig_noob_vamp_7_Func006001 takes nothing returns boolean
return ( IsPlayerEnemy(Player(6), Player(10)) == true )
endfunction
function Trig_noob_vamp_7_Func006002 takes nothing returns boolean
return ( IsPlayerEnemy(Player(6), Player(11)) == true )
endfunction
function Trig_noob_vamp_7_Conditions takes nothing returns boolean
if ( not GetBooleanOr( Trig_noob_vamp_7_Func006001(), Trig_noob_vamp_7_Func006002() ) ) then
return false
endif
return true
endfunction
function Trig_noob_vamp_7_Actions takes nothing returns nothing
call DisplayTimedTextToForce( GetPlayersAll(), 30, ( GetPlayerName(GetTriggerPlayer()) + " has feed Vampires with 500 gold." ) )
call AdjustPlayerStateBJ( 500, Player(10), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 500, Player(11), PLAYER_STATE_RESOURCE_GOLD )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_noob_vamp_7 takes nothing returns nothing
set gg_trg_noob_vamp_7 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_noob_vamp_7, Player(6), "-noob vamp", true )
call TriggerAddCondition( gg_trg_noob_vamp_7, Condition( function Trig_noob_vamp_7_Conditions ) )
call TriggerAddAction( gg_trg_noob_vamp_7, function Trig_noob_vamp_7_Actions )
endfunction
function Trig_noob_vamp_8_Func006001 takes nothing returns boolean
return ( IsPlayerEnemy(Player(7), Player(10)) == true )
endfunction
function Trig_noob_vamp_8_Func006002 takes nothing returns boolean
return ( IsPlayerEnemy(Player(7), Player(11)) == true )
endfunction
function Trig_noob_vamp_8_Conditions takes nothing returns boolean
if ( not GetBooleanOr( Trig_noob_vamp_8_Func006001(), Trig_noob_vamp_8_Func006002() ) ) then
return false
endif
return true
endfunction
function Trig_noob_vamp_8_Actions takes nothing returns nothing
call DisplayTimedTextToForce( GetPlayersAll(), 30, ( GetPlayerName(GetTriggerPlayer()) + " has feed Vampires with 500 gold." ) )
call AdjustPlayerStateBJ( 500, Player(10), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 500, Player(11), PLAYER_STATE_RESOURCE_GOLD )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_noob_vamp_8 takes nothing returns nothing
set gg_trg_noob_vamp_8 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_noob_vamp_8, Player(7), "-noob vamp", true )
call TriggerAddCondition( gg_trg_noob_vamp_8, Condition( function Trig_noob_vamp_8_Conditions ) )
call TriggerAddAction( gg_trg_noob_vamp_8, function Trig_noob_vamp_8_Actions )
endfunction
function Trig_noob_vamp_9_Func006001 takes nothing returns boolean
return ( IsPlayerEnemy(Player(8), Player(10)) == true )
endfunction
function Trig_noob_vamp_9_Func006002 takes nothing returns boolean
return ( IsPlayerEnemy(Player(8), Player(11)) == true )
endfunction
function Trig_noob_vamp_9_Conditions takes nothing returns boolean
if ( not GetBooleanOr( Trig_noob_vamp_9_Func006001(), Trig_noob_vamp_9_Func006002() ) ) then
return false
endif
return true
endfunction
function Trig_noob_vamp_9_Actions takes nothing returns nothing
call DisplayTimedTextToForce( GetPlayersAll(), 30, ( GetPlayerName(GetTriggerPlayer()) + " has feed Vampires with 500 gold." ) )
call AdjustPlayerStateBJ( 500, Player(10), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 500, Player(11), PLAYER_STATE_RESOURCE_GOLD )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_noob_vamp_9 takes nothing returns nothing
set gg_trg_noob_vamp_9 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_noob_vamp_9, Player(8), "-noob vamp", true )
call TriggerAddCondition( gg_trg_noob_vamp_9, Condition( function Trig_noob_vamp_9_Conditions ) )
call TriggerAddAction( gg_trg_noob_vamp_9, function Trig_noob_vamp_9_Actions )
endfunction
function Trig_noob_vamp_10_Func006001 takes nothing returns boolean
return ( IsPlayerEnemy(Player(9), Player(10)) == true )
endfunction
function Trig_noob_vamp_10_Func006002 takes nothing returns boolean
return ( IsPlayerEnemy(Player(9), Player(11)) == true )
endfunction
function Trig_noob_vamp_10_Conditions takes nothing returns boolean
if ( not GetBooleanOr( Trig_noob_vamp_10_Func006001(), Trig_noob_vamp_10_Func006002() ) ) then
return false
endif
return true
endfunction
function Trig_noob_vamp_10_Actions takes nothing returns nothing
call DisplayTimedTextToForce( GetPlayersAll(), 30, ( GetPlayerName(GetTriggerPlayer()) + " has feed Vampires with 500 gold." ) )
call AdjustPlayerStateBJ( 500, Player(10), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 500, Player(11), PLAYER_STATE_RESOURCE_GOLD )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_noob_vamp_10 takes nothing returns nothing
set gg_trg_noob_vamp_10 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_noob_vamp_10, Player(9), "-noob vamp", true )
call TriggerAddCondition( gg_trg_noob_vamp_10, Condition( function Trig_noob_vamp_10_Conditions ) )
call TriggerAddAction( gg_trg_noob_vamp_10, function Trig_noob_vamp_10_Actions )
endfunction
function Trig_anti_leave_tig_2_Conditions takes nothing returns boolean
if ( not ( GetPlayerSlotState(Player(11)) == PLAYER_SLOT_STATE_EMPTY ) ) then
return false
endif
return true
endfunction
function Trig_anti_leave_tig_2_Actions takes nothing returns nothing
call DisplayTextToForce( bj_FORCE_PLAYER[10], "TRIGSTR_1767" )
call AdjustPlayerStateBJ( 1500, Player(10), PLAYER_STATE_RESOURCE_GOLD )
endfunction
//===========================================================================
function InitTrig_anti_leave_tig_2 takes nothing returns nothing
set gg_trg_anti_leave_tig_2 = CreateTrigger( )
call TriggerAddCondition( gg_trg_anti_leave_tig_2, Condition( function Trig_anti_leave_tig_2_Conditions ) )
call TriggerAddAction( gg_trg_anti_leave_tig_2, function Trig_anti_leave_tig_2_Actions )
endfunction
function Trig_more_chance_Actions takes nothing returns nothing
call DisplayTextToForce( bj_FORCE_PLAYER[11], "TRIGSTR_1755" )
call AdjustPlayerStateBJ( 1000, Player(11), PLAYER_STATE_RESOURCE_GOLD )
endfunction
//===========================================================================
function InitTrig_more_chance takes nothing returns nothing
set gg_trg_more_chance = CreateTrigger( )
call TriggerRegisterPlayerEventLeave( gg_trg_more_chance, Player(10) )
call TriggerAddAction( gg_trg_more_chance, function Trig_more_chance_Actions )
endfunction
function Trig_more_chance_2_Actions takes nothing returns nothing
call DisplayTextToForce( bj_FORCE_PLAYER[10], "TRIGSTR_1756" )
call AdjustPlayerStateBJ( 1000, Player(10), PLAYER_STATE_RESOURCE_GOLD )
endfunction
//===========================================================================
function InitTrig_more_chance_2 takes nothing returns nothing
set gg_trg_more_chance_2 = CreateTrigger( )
call TriggerRegisterPlayerEventLeave( gg_trg_more_chance_2, Player(11) )
call TriggerAddAction( gg_trg_more_chance_2, function Trig_more_chance_2_Actions )
endfunction
function Trig_credits_Actions takes nothing returns nothing
call TriggerSleepAction( 120.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 40.00, "TRIGSTR_1942" )
endfunction
//===========================================================================
function InitTrig_credits takes nothing returns nothing
set gg_trg_credits = CreateTrigger( )
call TriggerAddAction( gg_trg_credits, function Trig_credits_Actions )
endfunction
function Trig_no_minions_11_Actions takes nothing returns nothing
call DisplayTimedTextToForce( GetPlayersAll(), 15.00, "TRIGSTR_2050" )
call EnableTrigger( gg_trg_no_minions__worksON )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_no_minions_11 takes nothing returns nothing
set gg_trg_no_minions_11 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_no_minions_11, Player(10), "-no minions", true )
call TriggerAddAction( gg_trg_no_minions_11, function Trig_no_minions_11_Actions )
endfunction
function Trig_minions_on_11_Actions takes nothing returns nothing
call DisplayTimedTextToForce( GetPlayersAll(), 15.00, "TRIGSTR_2052" )
call DisableTrigger( gg_trg_no_minions__worksON )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_minions_on_11 takes nothing returns nothing
set gg_trg_minions_on_11 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_minions_on_11, Player(10), "-minions on", true )
call TriggerAddAction( gg_trg_minions_on_11, function Trig_minions_on_11_Actions )
endfunction
function Trig_minions_on_12_Actions takes nothing returns nothing
call DisplayTimedTextToForce( GetPlayersAll(), 15.00, "TRIGSTR_2053" )
call DisableTrigger( gg_trg_no_minions__worksON )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_minions_on_12 takes nothing returns nothing
set gg_trg_minions_on_12 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_minions_on_12, Player(11), "-minions on", true )
call TriggerAddAction( gg_trg_minions_on_12, function Trig_minions_on_12_Actions )
endfunction
function Trig_no_minions_12_Actions takes nothing returns nothing
call DisplayTimedTextToForce( GetPlayersAll(), 15.00, "TRIGSTR_2051" )
call EnableTrigger( gg_trg_no_minions__worksON )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_no_minions_12 takes nothing returns nothing
set gg_trg_no_minions_12 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_no_minions_12, Player(11), "-no minions", true )
call TriggerAddAction( gg_trg_no_minions_12, function Trig_no_minions_12_Actions )
endfunction
function Trig_portals_Actions takes nothing returns nothing
call WaygateSetDestinationLocBJ( gg_unit_nwgt_0013, GetRectCenter(gg_rct_Region_023) )
endfunction
//===========================================================================
function InitTrig_portals takes nothing returns nothing
set gg_trg_portals = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_portals, gg_rct_Region_021 )
call TriggerAddAction( gg_trg_portals, function Trig_portals_Actions )
endfunction
function Trig_portals_sec_Actions takes nothing returns nothing
call WaygateSetDestinationLocBJ( gg_unit_nwgt_0000, GetRectCenter(gg_rct_Region_021) )
endfunction
//===========================================================================
function InitTrig_portals_sec takes nothing returns nothing
set gg_trg_portals_sec = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_portals_sec, gg_rct_Region_023 )
call TriggerAddAction( gg_trg_portals_sec, function Trig_portals_sec_Actions )
endfunction
function Trig_no_minions__worksON_Func002Func004001 takes nothing returns boolean
return ( IsPlayerAlly(Player(0), Player(10)) == true )
endfunction
function Trig_no_minions__worksON_Func002Func004002 takes nothing returns boolean
return ( IsPlayerAlly(Player(0), Player(11)) == true )
endfunction
function Trig_no_minions__worksON_Func002C takes nothing returns boolean
if ( not GetBooleanOr( Trig_no_minions__worksON_Func002Func004001(), Trig_no_minions__worksON_Func002Func004002() ) ) then
return false
endif
return true
endfunction
function Trig_no_minions__worksON_Func003Func004001 takes nothing returns boolean
return ( IsPlayerAlly(Player(1), Player(10)) == true )
endfunction
function Trig_no_minions__worksON_Func003Func004002 takes nothing returns boolean
return ( IsPlayerAlly(Player(1), Player(11)) == true )
endfunction
function Trig_no_minions__worksON_Func003C takes nothing returns boolean
if ( not GetBooleanOr( Trig_no_minions__worksON_Func003Func004001(), Trig_no_minions__worksON_Func003Func004002() ) ) then
return false
endif
return true
endfunction
function Trig_no_minions__worksON_Func004Func004001 takes nothing returns boolean
return ( IsPlayerAlly(Player(2), Player(10)) == true )
endfunction
function Trig_no_minions__worksON_Func004Func004002 takes nothing returns boolean
return ( IsPlayerAlly(Player(2), Player(11)) == true )
endfunction
function Trig_no_minions__worksON_Func004C takes nothing returns boolean
if ( not GetBooleanOr( Trig_no_minions__worksON_Func004Func004001(), Trig_no_minions__worksON_Func004Func004002() ) ) then
return false
endif
return true
endfunction
function Trig_no_minions__worksON_Func005Func004001 takes nothing returns boolean
return ( IsPlayerAlly(Player(3), Player(10)) == true )
endfunction
function Trig_no_minions__worksON_Func005Func004002 takes nothing returns boolean
return ( IsPlayerAlly(Player(3), Player(11)) == true )
endfunction
function Trig_no_minions__worksON_Func005C takes nothing returns boolean
if ( not GetBooleanOr( Trig_no_minions__worksON_Func005Func004001(), Trig_no_minions__worksON_Func005Func004002() ) ) then
return false
endif
return true
endfunction
function Trig_no_minions__worksON_Func006Func004001 takes nothing returns boolean
return ( IsPlayerAlly(Player(4), Player(10)) == true )
endfunction
function Trig_no_minions__worksON_Func006Func004002 takes nothing returns boolean
return ( IsPlayerAlly(Player(4), Player(11)) == true )
endfunction
function Trig_no_minions__worksON_Func006C takes nothing returns boolean
if ( not GetBooleanOr( Trig_no_minions__worksON_Func006Func004001(), Trig_no_minions__worksON_Func006Func004002() ) ) then
return false
endif
return true
endfunction
function Trig_no_minions__worksON_Func007Func004001 takes nothing returns boolean
return ( IsPlayerAlly(Player(5), Player(10)) == true )
endfunction
function Trig_no_minions__worksON_Func007Func004002 takes nothing returns boolean
return ( IsPlayerAlly(Player(5), Player(11)) == true )
endfunction
function Trig_no_minions__worksON_Func007C takes nothing returns boolean
if ( not GetBooleanOr( Trig_no_minions__worksON_Func007Func004001(), Trig_no_minions__worksON_Func007Func004002() ) ) then
return false
endif
return true
endfunction
function Trig_no_minions__worksON_Func008Func004001 takes nothing returns boolean
return ( IsPlayerAlly(Player(6), Player(10)) == true )
endfunction
function Trig_no_minions__worksON_Func008Func004002 takes nothing returns boolean
return ( IsPlayerAlly(Player(6), Player(11)) == true )
endfunction
function Trig_no_minions__worksON_Func008C takes nothing returns boolean
if ( not GetBooleanOr( Trig_no_minions__worksON_Func008Func004001(), Trig_no_minions__worksON_Func008Func004002() ) ) then
return false
endif
return true
endfunction
function Trig_no_minions__worksON_Func009Func004001 takes nothing returns boolean
return ( IsPlayerAlly(Player(7), Player(10)) == true )
endfunction
function Trig_no_minions__worksON_Func009Func004002 takes nothing returns boolean
return ( IsPlayerAlly(Player(7), Player(11)) == true )
endfunction
function Trig_no_minions__worksON_Func009C takes nothing returns boolean
if ( not GetBooleanOr( Trig_no_minions__worksON_Func009Func004001(), Trig_no_minions__worksON_Func009Func004002() ) ) then
return false
endif
return true
endfunction
function Trig_no_minions__worksON_Func010Func004001 takes nothing returns boolean
return ( IsPlayerAlly(Player(8), Player(10)) == true )
endfunction
function Trig_no_minions__worksON_Func010Func004002 takes nothing returns boolean
return ( IsPlayerAlly(Player(8), Player(11)) == true )
endfunction
function Trig_no_minions__worksON_Func010C takes nothing returns boolean
if ( not GetBooleanOr( Trig_no_minions__worksON_Func010Func004001(), Trig_no_minions__worksON_Func010Func004002() ) ) then
return false
endif
return true
endfunction
function Trig_no_minions__worksON_Func011Func004001 takes nothing returns boolean
return ( IsPlayerAlly(Player(9), Player(10)) == true )
endfunction
function Trig_no_minions__worksON_Func011Func004002 takes nothing returns boolean
return ( IsPlayerAlly(Player(9), Player(11)) == true )
endfunction
function Trig_no_minions__worksON_Func011C takes nothing returns boolean
if ( not GetBooleanOr( Trig_no_minions__worksON_Func011Func004001(), Trig_no_minions__worksON_Func011Func004002() ) ) then
return false
endif
return true
endfunction
function Trig_no_minions__worksON_Actions takes nothing returns nothing
if ( Trig_no_minions__worksON_Func002C() ) then
call CustomDefeatBJ( Player(0), "TRIGSTR_2040" )
call KillUnit( GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_no_minions__worksON_Func003C() ) then
call CustomDefeatBJ( Player(1), "TRIGSTR_2041" )
call KillUnit( GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_no_minions__worksON_Func004C() ) then
call CustomDefeatBJ( Player(2), "TRIGSTR_2042" )
call KillUnit( GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_no_minions__worksON_Func005C() ) then
call CustomDefeatBJ( Player(3), "TRIGSTR_2043" )
call KillUnit( GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_no_minions__worksON_Func006C() ) then
call CustomDefeatBJ( Player(4), "TRIGSTR_2044" )
call KillUnit( GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_no_minions__worksON_Func007C() ) then
call CustomDefeatBJ( Player(5), "TRIGSTR_2045" )
call KillUnit( GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_no_minions__worksON_Func008C() ) then
call CustomDefeatBJ( Player(6), "TRIGSTR_2046" )
call KillUnit( GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_no_minions__worksON_Func009C() ) then
call CustomDefeatBJ( Player(7), "TRIGSTR_2047" )
call KillUnit( GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_no_minions__worksON_Func010C() ) then
call CustomDefeatBJ( Player(8), "TRIGSTR_2048" )
call KillUnit( GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_no_minions__worksON_Func011C() ) then
call CustomDefeatBJ( Player(9), "TRIGSTR_2049" )
call KillUnit( GetLastCreatedUnit() )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_no_minions__worksON takes nothing returns nothing
set gg_trg_no_minions__worksON = CreateTrigger( )
call DisableTrigger( gg_trg_no_minions__worksON )
call TriggerRegisterTimerEventPeriodic( gg_trg_no_minions__worksON, 5.00 )
call TriggerAddAction( gg_trg_no_minions__worksON, function Trig_no_minions__worksON_Actions )
endfunction
function Trig_credits2_Actions takes nothing returns nothing
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_1984", "TRIGSTR_1985", "war3mapPreview.tga" )
endfunction
//===========================================================================
function InitTrig_credits2 takes nothing returns nothing
set gg_trg_credits2 = CreateTrigger( )
call TriggerAddAction( gg_trg_credits2, function Trig_credits2_Actions )
endfunction