// Map deprotected by X-deprotect (version 2006-10-02) by zibada
// http://dimon.xgm.ru/xdep/
// Visit our modmaking community at http://xgm.ru/
Name | Type | is_array | initial_value |
lvlup | item | No | |
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 | |
rect39 | rect | No | |
rect40 | rect | No | |
rect41 | rect | No | |
rect42 | rect | No | |
rect43 | 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 | |
trigger70 | trigger | No | |
trigger71 | trigger | No | |
trigger72 | trigger | No | |
trigger73 | trigger | No | |
trigger74 | trigger | No | |
trigger75 | trigger | No | |
trigger76 | trigger | No | |
trigger77 | trigger | No | |
trigger78 | trigger | No | |
trigger79 | trigger | No | |
trigger80 | trigger | No | |
trigger81 | trigger | No | |
trigger82 | trigger | No | |
trigger83 | trigger | No | |
trigger84 | trigger | No | |
trigger85 | trigger | No | |
trigger86 | trigger | No | |
trigger87 | trigger | No | |
trigger88 | trigger | No | |
trigger89 | trigger | No | |
trigger90 | trigger | No | |
trigger91 | trigger | No | |
trigger92 | trigger | No | |
trigger93 | trigger | No | |
trigger94 | trigger | No | |
trigger95 | trigger | No | |
trigger96 | trigger | No | |
trigger97 | trigger | No | |
unit01 | unit | No | |
unit02 | unit | No | |
unit_Slayer | unit | No |
//TESH.scrollpos=2076
//TESH.alwaysfold=0
// Map deprotected by X-deprotect (version 2006-10-02) by zibada
// http://dimon.xgm.ru/xdep/
// Visit our modmaking community at http://xgm.ru/
//***************************************************************************
//*
//*Unit Creation
//*
//***************************************************************************
//===========================================================================
function CreateNeutralPassiveBuildings2 takes nothing returns nothing
local player p=Player(PLAYER_NEUTRAL_PASSIVE)
local unit u
local integer unitID
local trigger t
local real life
set udg_unit01=CreateUnit(p,'nwgt',5824.0,-832.0,270.000)
call WaygateSetDestination(udg_unit01,GetRectCenterX(udg_rect41),GetRectCenterY(udg_rect41))
call WaygateActivate(udg_unit01,true)
call SetUnitColor(udg_unit01,ConvertPlayerColor(9))
set udg_unit02=CreateUnit(p,'nwgt',-4736.0,-1536.0,270.000)
call WaygateSetDestination(udg_unit02,GetRectCenterX(udg_rect42),GetRectCenterY(udg_rect42))
call WaygateActivate(udg_unit02,true)
call SetUnitColor(udg_unit02,ConvertPlayerColor(9))
endfunction
//===========================================================================
//===========================================================================
//===========================================================================
//***************************************************************************
//*
//*Regions
//*
//***************************************************************************
function CreateRegions2 takes nothing returns nothing
local weathereffect we
set udg_rect39=Rect(-4000.0,-6304.0,-3200.0,-5632.0)
set udg_rect40=Rect(-3776.0,-8160.0,-3392.0,-7872.0)
set udg_rect41=Rect(-5024.0,-1824.0,-4480.0,-1280.0)
set udg_rect42=Rect(5536.0,-1184.0,6048.0,-608.0)
set udg_rect43=Rect(-5760.0,5120.0,-5408.0,5536.0)
endfunction
//***************************************************************************
//*
//*Custom Script Code
//*
//***************************************************************************
//Vampirism ZERO SDK. 2.6
//ORIGINAL ZERO A 1.09 made by Blize88
//Map modifided by Shadow.killer
//***************************************************************************
//*
//*Triggers
//*
//***************************************************************************
//===========================================================================
//Trigger:chance1
//===========================================================================
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
//===========================================================================
//===========================================================================
//Trigger:chance2
//===========================================================================
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
//===========================================================================
//===========================================================================
//Trigger:init
//===========================================================================
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.(What a noob)|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(-10235.0+GetCameraMargin(CAMERA_MARGIN_LEFT),-10745.0+GetCameraMargin(CAMERA_MARGIN_BOTTOM),10239.0-GetCameraMargin(CAMERA_MARGIN_RIGHT),9722.0-GetCameraMargin(CAMERA_MARGIN_TOP),-10235.0+GetCameraMargin(CAMERA_MARGIN_LEFT),9722.0-GetCameraMargin(CAMERA_MARGIN_TOP),10239.0-GetCameraMargin(CAMERA_MARGIN_RIGHT),-10745.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
//===========================================================================
//Trigger:no workers in slayer exp
//===========================================================================
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(udg_rect40))
endfunction
//===========================================================================
//===========================================================================
//Trigger:anti leave tig
//===========================================================================
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
//===========================================================================
//===========================================================================
//Trigger:goldwood
//
//make 45 min!!!
//===========================================================================
function Trig_goldwood_Func004001001 takes nothing returns boolean
return(IsPlayerEnemy(Player(0),Player(10))==true)
endfunction
function Trig_goldwood_Func004001002 takes nothing returns boolean
return(IsPlayerEnemy(Player(0),Player(11))==true)
endfunction
function Trig_goldwood_Func004001 takes nothing returns boolean
return GetBooleanOr(Trig_goldwood_Func004001001(),Trig_goldwood_Func004001002())
endfunction
function Trig_goldwood_Func005001001 takes nothing returns boolean
return(IsPlayerEnemy(Player(1),Player(10))==true)
endfunction
function Trig_goldwood_Func005001002 takes nothing returns boolean
return(IsPlayerEnemy(Player(1),Player(11))==true)
endfunction
function Trig_goldwood_Func005001 takes nothing returns boolean
return GetBooleanOr(Trig_goldwood_Func005001001(),Trig_goldwood_Func005001002())
endfunction
function Trig_goldwood_Func006001001 takes nothing returns boolean
return(IsPlayerEnemy(Player(6),Player(10))==true)
endfunction
function Trig_goldwood_Func006001002 takes nothing returns boolean
return(IsPlayerEnemy(Player(6),Player(11))==true)
endfunction
function Trig_goldwood_Func006001 takes nothing returns boolean
return GetBooleanOr(Trig_goldwood_Func006001001(),Trig_goldwood_Func006001002())
endfunction
function Trig_goldwood_Func007001001 takes nothing returns boolean
return(IsPlayerEnemy(Player(2),Player(10))==true)
endfunction
function Trig_goldwood_Func007001002 takes nothing returns boolean
return(IsPlayerEnemy(Player(2),Player(11))==true)
endfunction
function Trig_goldwood_Func007001 takes nothing returns boolean
return GetBooleanOr(Trig_goldwood_Func007001001(),Trig_goldwood_Func007001002())
endfunction
function Trig_goldwood_Func008001001 takes nothing returns boolean
return(IsPlayerEnemy(Player(3),Player(10))==true)
endfunction
function Trig_goldwood_Func008001002 takes nothing returns boolean
return(IsPlayerEnemy(Player(3),Player(11))==true)
endfunction
function Trig_goldwood_Func008001 takes nothing returns boolean
return GetBooleanOr(Trig_goldwood_Func008001001(),Trig_goldwood_Func008001002())
endfunction
function Trig_goldwood_Func009001001 takes nothing returns boolean
return(IsPlayerEnemy(Player(4),Player(10))==true)
endfunction
function Trig_goldwood_Func009001002 takes nothing returns boolean
return(IsPlayerEnemy(Player(4),Player(11))==true)
endfunction
function Trig_goldwood_Func009001 takes nothing returns boolean
return GetBooleanOr(Trig_goldwood_Func009001001(),Trig_goldwood_Func009001002())
endfunction
function Trig_goldwood_Func010001001 takes nothing returns boolean
return(IsPlayerEnemy(Player(5),Player(10))==true)
endfunction
function Trig_goldwood_Func010001002 takes nothing returns boolean
return(IsPlayerEnemy(Player(5),Player(11))==true)
endfunction
function Trig_goldwood_Func010001 takes nothing returns boolean
return GetBooleanOr(Trig_goldwood_Func010001001(),Trig_goldwood_Func010001002())
endfunction
function Trig_goldwood_Func011001001 takes nothing returns boolean
return(IsPlayerEnemy(Player(7),Player(10))==true)
endfunction
function Trig_goldwood_Func011001002 takes nothing returns boolean
return(IsPlayerEnemy(Player(7),Player(11))==true)
endfunction
function Trig_goldwood_Func011001 takes nothing returns boolean
return GetBooleanOr(Trig_goldwood_Func011001001(),Trig_goldwood_Func011001002())
endfunction
function Trig_goldwood_Func012001001 takes nothing returns boolean
return(IsPlayerEnemy(Player(8),Player(10))==true)
endfunction
function Trig_goldwood_Func012001002 takes nothing returns boolean
return(IsPlayerEnemy(Player(8),Player(11))==true)
endfunction
function Trig_goldwood_Func012001 takes nothing returns boolean
return GetBooleanOr(Trig_goldwood_Func012001001(),Trig_goldwood_Func012001002())
endfunction
function Trig_goldwood_Func013001001 takes nothing returns boolean
return(IsPlayerEnemy(Player(9),Player(10))==true)
endfunction
function Trig_goldwood_Func013001002 takes nothing returns boolean
return(IsPlayerEnemy(Player(9),Player(11))==true)
endfunction
function Trig_goldwood_Func013001 takes nothing returns boolean
return GetBooleanOr(Trig_goldwood_Func013001001(),Trig_goldwood_Func013001002())
endfunction
function Trig_goldwood_Actions takes nothing returns nothing
call DisplayTimedTextToForce(GetPlayersAll(),30,"TRIGSTR_1967")
call AdjustPlayerStateBJ(3000,Player(10),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(3000,Player(10),PLAYER_STATE_RESOURCE_GOLD)
if(Trig_goldwood_Func004001())then
call AdjustPlayerStateBJ(15,Player(0),PLAYER_STATE_RESOURCE_GOLD)
else
call AdjustPlayerStateBJ(2500,Player(0),PLAYER_STATE_RESOURCE_GOLD)
endif
if(Trig_goldwood_Func005001())then
call AdjustPlayerStateBJ(15,Player(1),PLAYER_STATE_RESOURCE_GOLD)
else
call AdjustPlayerStateBJ(2500,Player(1),PLAYER_STATE_RESOURCE_GOLD)
endif
if(Trig_goldwood_Func006001())then
call AdjustPlayerStateBJ(15,Player(6),PLAYER_STATE_RESOURCE_GOLD)
else
call AdjustPlayerStateBJ(2500,Player(6),PLAYER_STATE_RESOURCE_GOLD)
endif
if(Trig_goldwood_Func007001())then
call AdjustPlayerStateBJ(15,Player(2),PLAYER_STATE_RESOURCE_GOLD)
else
call AdjustPlayerStateBJ(2500,Player(2),PLAYER_STATE_RESOURCE_GOLD)
endif
if(Trig_goldwood_Func008001())then
call AdjustPlayerStateBJ(15,Player(3),PLAYER_STATE_RESOURCE_GOLD)
else
call AdjustPlayerStateBJ(2500,Player(3),PLAYER_STATE_RESOURCE_GOLD)
endif
if(Trig_goldwood_Func009001())then
call AdjustPlayerStateBJ(15,Player(4),PLAYER_STATE_RESOURCE_GOLD)
else
call AdjustPlayerStateBJ(2500,Player(4),PLAYER_STATE_RESOURCE_GOLD)
endif
if(Trig_goldwood_Func010001())then
call AdjustPlayerStateBJ(15,Player(5),PLAYER_STATE_RESOURCE_GOLD)
else
call AdjustPlayerStateBJ(2500,Player(5),PLAYER_STATE_RESOURCE_GOLD)
endif
if(Trig_goldwood_Func011001())then
call AdjustPlayerStateBJ(15,Player(7),PLAYER_STATE_RESOURCE_GOLD)
else
call AdjustPlayerStateBJ(2500,Player(7),PLAYER_STATE_RESOURCE_GOLD)
endif
if(Trig_goldwood_Func012001())then
call AdjustPlayerStateBJ(15,Player(8),PLAYER_STATE_RESOURCE_GOLD)
else
call AdjustPlayerStateBJ(2500,Player(8),PLAYER_STATE_RESOURCE_GOLD)
endif
if(Trig_goldwood_Func013001())then
call AdjustPlayerStateBJ(15,Player(9),PLAYER_STATE_RESOURCE_GOLD)
else
call AdjustPlayerStateBJ(2500,Player(9),PLAYER_STATE_RESOURCE_GOLD)
endif
endfunction
//===========================================================================
//===========================================================================
//Trigger:noob vamp
//===========================================================================
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
//===========================================================================
//===========================================================================
//Trigger:noob vamp blue
//===========================================================================
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
//===========================================================================
//===========================================================================
//Trigger:noob vamp teal
//===========================================================================
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
//===========================================================================
//===========================================================================
//Trigger:noob vamp purp
//===========================================================================
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
//===========================================================================
//===========================================================================
//Trigger:noob vamp 5
//===========================================================================
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
//===========================================================================
//===========================================================================
//Trigger:noob vamp 6
//===========================================================================
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
//===========================================================================
//===========================================================================
//Trigger:noob vamp 7
//===========================================================================
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
//===========================================================================
//===========================================================================
//Trigger:noob vamp 8
//===========================================================================
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
//===========================================================================
//===========================================================================
//Trigger:noob vamp 9
//===========================================================================
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
//===========================================================================
//===========================================================================
//Trigger:noob vamp 10
//===========================================================================
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
//===========================================================================
//===========================================================================
//Trigger:anti leave tig 2
//===========================================================================
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
//===========================================================================
//===========================================================================
//Trigger:more chance
//===========================================================================
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
//===========================================================================
//===========================================================================
//Trigger:more chance 2
//===========================================================================
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
//===========================================================================
//===========================================================================
//Trigger:credits
//===========================================================================
function Trig_credits_Actions takes nothing returns nothing
call TriggerSleepAction(120.00)
call DisplayTimedTextToForce(GetPlayersAll(),40.00,"TRIGSTR_1942")
endfunction
//===========================================================================
//===========================================================================
//Trigger:portals
//===========================================================================
function Trig_portals_Actions takes nothing returns nothing
call WaygateSetDestinationLocBJ(udg_unit02,GetRectCenter(udg_rect42))
endfunction
//===========================================================================
//===========================================================================
//Trigger:portals sec
//===========================================================================
function Trig_portals_sec_Actions takes nothing returns nothing
call WaygateSetDestinationLocBJ(udg_unit01,GetRectCenter(udg_rect41))
endfunction
//===========================================================================
//===========================================================================
//Trigger:credits2
//===========================================================================
function Trig_credits2_Actions takes nothing returns nothing
call CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED,"TRIGSTR_1984","TRIGSTR_1985","war3mapPreview.tga")
endfunction
//===========================================================================
//===========================================================================
//Trigger:no minions worksON
//===========================================================================
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
//===========================================================================
//===========================================================================
//Trigger:no minions 11
//===========================================================================
function Trig_no_minions_11_Actions takes nothing returns nothing
call DisplayTimedTextToForce(GetPlayersAll(),15.00,"TRIGSTR_2050")
call EnableTrigger(udg_trigger93)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
//===========================================================================
//Trigger:no minions 12
//===========================================================================
function Trig_no_minions_12_Actions takes nothing returns nothing
call DisplayTimedTextToForce(GetPlayersAll(),15.00,"TRIGSTR_2051")
call EnableTrigger(udg_trigger93)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
//===========================================================================
//Trigger:minions on 11
//===========================================================================
function Trig_minions_on_11_Actions takes nothing returns nothing
call DisplayTimedTextToForce(GetPlayersAll(),15.00,"TRIGSTR_2052")
call DisableTrigger(udg_trigger93)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
//===========================================================================
//Trigger:minions on 12
//===========================================================================
function Trig_minions_on_12_Actions takes nothing returns nothing
call DisplayTimedTextToForce(GetPlayersAll(),15.00,"TRIGSTR_2053")
call DisableTrigger(udg_trigger93)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
//===========================================================================
//===========================================================================
//***************************************************************************
//*
//*Players
//*
//***************************************************************************
//***************************************************************************
//*
//*Main Initialization
//*
//***************************************************************************
//===========================================================================
function main3 takes nothing returns nothing
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)
call CreateRegions2()
call CreateNeutralPassiveBuildings2()
set udg_trigger70=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trigger70,Player(10),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddAction(udg_trigger70,function Trig_chance1_Actions)
set udg_trigger71=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trigger71,Player(11),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddAction(udg_trigger71,function Trig_chance2_Actions)
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")
set udg_trigger73=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger73,udg_rect39)
call TriggerAddCondition(udg_trigger73,Condition(function Trig_no_workers_in_slayer_exp_Conditions))
call TriggerAddAction(udg_trigger73,function Trig_no_workers_in_slayer_exp_Actions)
set udg_trigger74=CreateTrigger()
call TriggerAddCondition(udg_trigger74,Condition(function Trig_anti_leave_tig_Conditions))
call TriggerAddAction(udg_trigger74,function Trig_anti_leave_tig_Actions)
set udg_trigger75=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(udg_trigger75,2700.00)
call TriggerAddAction(udg_trigger75,function Trig_goldwood_Actions)
set udg_trigger76=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger76,Player(0),"-noob vamp",true)
call TriggerAddCondition(udg_trigger76,Condition(function Trig_noob_vamp_Conditions))
call TriggerAddAction(udg_trigger76,function Trig_noob_vamp_Actions)
set udg_trigger77=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger77,Player(1),"-noob vamp",true)
call TriggerAddCondition(udg_trigger77,Condition(function Trig_noob_vamp_blue_Conditions))
call TriggerAddAction(udg_trigger77,function Trig_noob_vamp_blue_Actions)
set udg_trigger78=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger78,Player(2),"-noob vamp",true)
call TriggerAddCondition(udg_trigger78,Condition(function Trig_noob_vamp_teal_Conditions))
call TriggerAddAction(udg_trigger78,function Trig_noob_vamp_teal_Actions)
set udg_trigger79=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger79,Player(3),"-noob vamp",true)
call TriggerAddCondition(udg_trigger79,Condition(function Trig_noob_vamp_purp_Conditions))
call TriggerAddAction(udg_trigger79,function Trig_noob_vamp_purp_Actions)
set udg_trigger80=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger80,Player(4),"-noob vamp",true)
call TriggerAddCondition(udg_trigger80,Condition(function Trig_noob_vamp_5_Conditions))
call TriggerAddAction(udg_trigger80,function Trig_noob_vamp_5_Actions)
set udg_trigger81=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger81,Player(5),"-noob vamp",true)
call TriggerAddCondition(udg_trigger81,Condition(function Trig_noob_vamp_6_Conditions))
call TriggerAddAction(udg_trigger81,function Trig_noob_vamp_6_Actions)
set udg_trigger82=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger82,Player(6),"-noob vamp",true)
call TriggerAddCondition(udg_trigger82,Condition(function Trig_noob_vamp_7_Conditions))
call TriggerAddAction(udg_trigger82,function Trig_noob_vamp_7_Actions)
set udg_trigger83=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger83,Player(7),"-noob vamp",true)
call TriggerAddCondition(udg_trigger83,Condition(function Trig_noob_vamp_8_Conditions))
call TriggerAddAction(udg_trigger83,function Trig_noob_vamp_8_Actions)
set udg_trigger84=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger84,Player(8),"-noob vamp",true)
call TriggerAddCondition(udg_trigger84,Condition(function Trig_noob_vamp_9_Conditions))
call TriggerAddAction(udg_trigger84,function Trig_noob_vamp_9_Actions)
set udg_trigger85=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger85,Player(9),"-noob vamp",true)
call TriggerAddCondition(udg_trigger85,Condition(function Trig_noob_vamp_10_Conditions))
call TriggerAddAction(udg_trigger85,function Trig_noob_vamp_10_Actions)
set udg_trigger86=CreateTrigger()
call TriggerAddCondition(udg_trigger86,Condition(function Trig_anti_leave_tig_2_Conditions))
call TriggerAddAction(udg_trigger86,function Trig_anti_leave_tig_2_Actions)
set udg_trigger87=CreateTrigger()
call TriggerRegisterPlayerEventLeave(udg_trigger87,Player(10))
call TriggerAddAction(udg_trigger87,function Trig_more_chance_Actions)
set udg_trigger88=CreateTrigger()
call TriggerRegisterPlayerEventLeave(udg_trigger88,Player(11))
call TriggerAddAction(udg_trigger88,function Trig_more_chance_2_Actions)
set udg_trigger89=CreateTrigger()
call TriggerAddAction(udg_trigger89,function Trig_credits_Actions)
set udg_trigger90=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger90,udg_rect41)
call TriggerAddAction(udg_trigger90,function Trig_portals_Actions)
set udg_trigger91=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger91,udg_rect42)
call TriggerAddAction(udg_trigger91,function Trig_portals_sec_Actions)
set udg_trigger92=CreateTrigger()
call TriggerAddAction(udg_trigger92,function Trig_credits2_Actions)
set udg_trigger93=CreateTrigger()
call DisableTrigger(udg_trigger93)
call TriggerRegisterTimerEventPeriodic(udg_trigger93,5.00)
call TriggerAddAction(udg_trigger93,function Trig_no_minions__worksON_Actions)
set udg_trigger94=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger94,Player(10),"-no minions",true)
call TriggerAddAction(udg_trigger94,function Trig_no_minions_11_Actions)
set udg_trigger95=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger95,Player(11),"-no minions",true)
call TriggerAddAction(udg_trigger95,function Trig_no_minions_12_Actions)
set udg_trigger96=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger96,Player(10),"-minions on",true)
call TriggerAddAction(udg_trigger96,function Trig_minions_on_11_Actions)
set udg_trigger97=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger97,Player(11),"-minions on",true)
call TriggerAddAction(udg_trigger97,function Trig_minions_on_12_Actions)
call ConditionalTriggerExecute(udg_trigger74)
call ConditionalTriggerExecute(udg_trigger86)
call ConditionalTriggerExecute(udg_trigger89)
call ConditionalTriggerExecute(udg_trigger92)
endfunction
//***************************************************************************
//*
//*Map Configuration
//*
//***************************************************************************
function InitTrig_init takes nothing returns nothing
call ExecuteFunc("main3")
endfunction