// 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 |
buttons01 | button | Yes | |
buttons02 | button | Yes | |
buttons03 | button | Yes | |
camerasetup01 | camerasetup | No | |
camerasetup02 | camerasetup | No | |
dialog01 | dialog | No | |
dialog02 | dialog | No | |
dialog03 | dialog | No | |
dialog04 | dialog | No | |
effect01 | effect | No | |
force01 | force | No | |
force02 | force | No | |
force03 | force | No | |
force04 | force | No | |
group01 | group | No | |
integer01 | integer | No | |
integer02 | integer | No | |
integer03 | integer | No | 'U001' |
integer04 | integer | No | |
integer05 | integer | No | 'u004' |
integer06 | integer | No | 'u007' |
integer07 | integer | No | 'u00A' |
integer08 | integer | No | |
integers01 | integer | Yes | |
location01 | location | No | |
player01 | player | No | |
players01 | player | Yes | |
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 | |
sound01 | sound | No | |
sound02 | sound | No | |
sound03 | sound | No | |
sound04 | sound | No | |
sound05 | sound | No | |
sound06 | sound | No | |
sound07 | sound | No | |
sound08 | sound | No | |
strings01 | string | Yes | |
timer01 | timer | 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 | |
unit01 | unit | No | |
unit02 | unit | No | |
unit03 | unit | No | |
unit04 | unit | No | |
unit05 | unit | No | |
unit06 | unit | No | |
unit07 | unit | No | |
unit08 | unit | No | |
unit09 | unit | No |
// Map deprotected by X-deprotect (version 2006-10-02) by zibada
// http://dimon.xgm.ru/xdep/
// Visit our modmaking community at http://xgm.ru/
function Trig_Notes_and_Messages_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.,"Vampires will spawn in 1 minute.")
call TriggerSleepAction(10.)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"TRIGSTR_460")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[11],15.,"|cffffcc00With your gold, you can buy Satan's Orb of Hell which reveals an area on the map or the Gem of Shadow Step which turns you invisible for a short time.|r")
call TriggerSleepAction(10.)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"Vampires must kill all Humans in order to obtain victory. New Vampires will be stronger depending how many allies he has.")
call TriggerSleepAction(10.)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"Check in the Quest Menu for basic instructions on what to do.")
call TriggerSleepAction(60.)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"Each Vampire has its powers and weaknesses, as well as Humans using a different amount of gold to proceed.")
call TriggerSleepAction(10.)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"Anything the Vampires kill can ramdomly drop an item that can be used or sold.")
call TriggerSleepAction(10.)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"Entering the caves located on the East and West side of the map will allow you to move towards the other cave.")
call PingMinimapLocForForce(bj_FORCE_ALL_PLAYERS,GetRectCenter(udg_rect03),5.)
call PingMinimapLocForForce(bj_FORCE_ALL_PLAYERS,GetRectCenter(udg_rect04),5.)
call TriggerSleepAction(10.)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"If the Ancient One or Vampires leave, control will be given to their current allies.")
call TriggerSleepAction(10.)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"The game ends whether all Builders have been killed or left, when all Vampires have been exterminated, or when all Vampire Players have left.")
call TriggerSleepAction(10.)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"The Ancient Evil can teleport towards his Obelisk with an ability that recharges every 2 minutes.")
call TriggerSleepAction(10.)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"Slayers and Builders give Vampires alot of gold when killed, do not let them die.")
call TriggerSleepAction(10.)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"Builders can achieve gold from killing the mobs in middle, however Vampires can retreat and kill them for gold. Vampire can also upgrade their creatures for more protection.")
endfunction
function Trig_Player_Bounty_On_Actions takes nothing returns nothing
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(0))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(1))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(2))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(3))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(4))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(5))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(6))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(7))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(8))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(9))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(10))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(11))
endfunction
function Trig_Player_Groups_Func001001 takes nothing returns boolean
return(GetPlayerSlotState(Player(0))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Player_Groups_Func002001 takes nothing returns boolean
return(GetPlayerSlotState(Player(1))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Player_Groups_Func003001 takes nothing returns boolean
return(GetPlayerSlotState(Player(2))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Player_Groups_Func004001 takes nothing returns boolean
return(GetPlayerSlotState(Player(3))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Player_Groups_Func005001 takes nothing returns boolean
return(GetPlayerSlotState(Player(4))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Player_Groups_Func006001 takes nothing returns boolean
return(GetPlayerSlotState(Player(5))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Player_Groups_Func007001 takes nothing returns boolean
return(GetPlayerSlotState(Player(6))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Player_Groups_Func008001 takes nothing returns boolean
return(GetPlayerSlotState(Player(7))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Player_Groups_Func009001 takes nothing returns boolean
return(GetPlayerSlotState(Player(8))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Player_Groups_Func010001 takes nothing returns boolean
return(GetPlayerSlotState(Player(9))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Player_Groups_Func014A takes nothing returns nothing
call ForceAddPlayer(udg_force03,GetEnumPlayer())
endfunction
function Trig_Player_Groups_Actions takes nothing returns nothing
if(Trig_Player_Groups_Func001001())then
call ForceAddPlayer(udg_force01,Player(0))
endif
if(Trig_Player_Groups_Func002001())then
call ForceAddPlayer(udg_force01,Player(1))
endif
if(Trig_Player_Groups_Func003001())then
call ForceAddPlayer(udg_force01,Player(2))
endif
if(Trig_Player_Groups_Func004001())then
call ForceAddPlayer(udg_force01,Player(3))
endif
if(Trig_Player_Groups_Func005001())then
call ForceAddPlayer(udg_force01,Player(4))
endif
if(Trig_Player_Groups_Func006001())then
call ForceAddPlayer(udg_force01,Player(5))
endif
if(Trig_Player_Groups_Func007001())then
call ForceAddPlayer(udg_force01,Player(6))
endif
if(Trig_Player_Groups_Func008001())then
call ForceAddPlayer(udg_force01,Player(7))
endif
if(Trig_Player_Groups_Func009001())then
call ForceAddPlayer(udg_force01,Player(8))
endif
if(Trig_Player_Groups_Func010001())then
call ForceAddPlayer(udg_force01,Player(9))
endif
call ForceAddPlayer(udg_force02,Player(10))
call ForceAddPlayer(udg_force02,Player(11))
call ForceAddPlayer(udg_force04,Player(11))
call ForForce(udg_force01,function Trig_Player_Groups_Func014A)
endfunction
function Trig_Starting_Lumber_Func002A takes nothing returns nothing
call SetPlayerStateBJ(GetEnumPlayer(),PLAYER_STATE_RESOURCE_LUMBER,150)
endfunction
function Trig_Starting_Lumber_Actions takes nothing returns nothing
call ForForce(udg_force01,function Trig_Starting_Lumber_Func002A)
call SetPlayerStateBJ(Player(11),PLAYER_STATE_RESOURCE_GOLD,50)
endfunction
function Trig_Minute_Lumber_Func001A takes nothing returns nothing
call AdjustPlayerStateBJ(50,GetEnumPlayer(),PLAYER_STATE_RESOURCE_LUMBER)
endfunction
function Trig_Minute_Lumber_Actions takes nothing returns nothing
call ForForce(udg_force01,function Trig_Minute_Lumber_Func001A)
call AdjustPlayerStateBJ(3,Player(11),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function Trig_PreLoading_Vampires_Actions takes nothing returns nothing
call RemoveUnit(udg_unit04)
call RemoveUnit(udg_unit05)
call RemoveUnit(udg_unit06)
call RemoveUnit(udg_unit07)
call RemoveUnit(udg_unit08)
call RemoveUnit(udg_unit09)
call DisplayTextToForce(bj_FORCE_PLAYER[0],"|cff0000ffPreloading Units Complete...|r")
call SetSkyModel("Environment\\Sky\\LordaeronWinterSkyBrightGreen\\LordaeronWinterSkyBrightGreen.mdl")
endfunction
function Trig_Human_Dies_Func029C takes nothing returns boolean
return(GetUnitTypeId(GetDyingUnit())=='h002')or(GetUnitTypeId(GetDyingUnit())=='h000')or(GetUnitTypeId(GetDyingUnit())=='h01K')or(GetUnitTypeId(GetDyingUnit())=='h001')
endfunction
function Trig_Human_Dies_Conditions takes nothing returns boolean
return(Trig_Human_Dies_Func029C())
endfunction
function Trig_Human_Dies_Func006Func001C takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())!=GetUnitTypeId(GetDyingUnit()))
endfunction
function Trig_Human_Dies_Func006A takes nothing returns nothing
if(Trig_Human_Dies_Func006Func001C())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Items\\AIil\\AIilTarget.mdl")
set udg_effect01=bj_lastCreatedEffect
call DestroyEffect(udg_effect01)
call RemoveUnit(GetEnumUnit())
endif
endfunction
function Trig_Human_Dies_Func017A takes nothing returns nothing
call SetPlayerAllianceStateBJ(udg_player01,GetEnumPlayer(),0)
call SetPlayerAllianceStateBJ(GetEnumPlayer(),GetOwningPlayer(GetDyingUnit()),0)
endfunction
function Trig_Human_Dies_Func018A takes nothing returns nothing
call SetPlayerAllianceStateBJ(udg_player01,GetEnumPlayer(),3)
call SetPlayerAllianceStateBJ(GetEnumPlayer(),GetOwningPlayer(GetDyingUnit()),3)
endfunction
function Trig_Human_Dies_Actions takes nothing returns nothing
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(GetOwningPlayer(GetDyingUnit()))+" was killed..."))
set udg_player01=GetOwningPlayer(GetDyingUnit())
call PlaySoundBJ(udg_sound06)
call PlayThematicMusic("Sound\\Music\\mp3Music\\SadMystery.mp3")
set udg_group01=GetUnitsOfPlayerAll(udg_player01)
call ForGroupBJ(GetUnitsOfPlayerAll(udg_player01),function Trig_Human_Dies_Func006A)
call DestroyGroup(udg_group01)
call FogMaskEnableOff()
call FogEnableOff()
call FogEnableOn()
call SetPlayerStateBJ(GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_LUMBER,0)
call SetPlayerStateBJ(GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD,0)
call ForceRemovePlayer(udg_force01,GetOwningPlayer(GetDyingUnit()))
call ForceRemovePlayer(udg_force03,GetOwningPlayer(GetDyingUnit()))
call ForceAddPlayer(udg_force02,GetOwningPlayer(GetDyingUnit()))
call ForceAddPlayer(udg_force04,GetOwningPlayer(GetDyingUnit()))
call ForForce(udg_force01,function Trig_Human_Dies_Func017A)
call ForForce(udg_force02,function Trig_Human_Dies_Func018A)
call ConditionalTriggerExecute(udg_trigger46)
call TriggerSleepAction(2.5)
call PlaySoundBJ(udg_sound04)
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(udg_player01)+" will now be reborned as a Fearful Vampire!"))
call CreateNUnitsAtLoc(1,'U003',udg_player01,GetUnitLoc(GetDyingUnit()),bj_UNIT_FACING)
call SetHeroLevelBJ(bj_lastCreatedUnit,(0+CountPlayersInForceBJ(udg_force02)),false)
call AddSpecialEffectLocBJ(GetUnitLoc(GetDyingUnit()),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call CreateNUnitsAtLoc(1,udg_integer05,Player(10),GetRandomLocInRect(udg_rect06),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,udg_integer06,Player(10),GetRandomLocInRect(udg_rect06),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,udg_integer07,Player(10),GetRandomLocInRect(udg_rect06),bj_UNIT_FACING)
endfunction
function Trig_Vampire_Dies_Func008C takes nothing returns boolean
return(GetUnitTypeId(GetDyingUnit())=='U003')or(GetUnitTypeId(GetDyingUnit())=='U000')or(GetUnitTypeId(GetDyingUnit())=='U002')or(GetUnitTypeId(GetDyingUnit())=='U001')
endfunction
function Trig_Vampire_Dies_Conditions takes nothing returns boolean
return(Trig_Vampire_Dies_Func008C())
endfunction
function Trig_Vampire_Dies_Func003C takes nothing returns boolean
return true
endfunction
function Trig_Vampire_Dies_Actions takes nothing returns nothing
call TerrainDeformationRippleBJ(3.,false,GetUnitLoc(GetDyingUnit()),25.,1000.,90.,1.2,300.)
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(GetOwningPlayer(GetDyingUnit()))+((("("+GetUnitName(GetTriggerUnit()))+")")+" has been destroyed.")))
if(Trig_Vampire_Dies_Func003C())then
call ForceRemovePlayer(udg_force02,GetOwningPlayer(GetDyingUnit()))
endif
call PlaySoundBJ(udg_sound08)
call PlaySoundBJ(udg_sound05)
call ConditionalTriggerExecute(udg_trigger47)
call CreateItemLoc('I000',GetUnitLoc(GetDyingUnit()))
endfunction
function Trig_Vampire_Cannot_Pickup_Func004C takes nothing returns boolean
return(GetUnitTypeId(GetManipulatingUnit())!='Hpal')and(GetUnitTypeId(GetManipulatingUnit())!='Hamg')
endfunction
function Trig_Vampire_Cannot_Pickup_Conditions takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I000')and(Trig_Vampire_Cannot_Pickup_Func004C())
endfunction
function Trig_Vampire_Cannot_Pickup_Actions takes nothing returns nothing
call RemoveItem(GetManipulatedItem())
call CreateItemLoc('I000',GetUnitLoc(GetManipulatingUnit()))
endfunction
function Trig_Slayer_Pickup_Func003C takes nothing returns boolean
return(GetUnitTypeId(GetManipulatingUnit())=='Hpal')or(GetUnitTypeId(GetManipulatingUnit())=='Hamg')
endfunction
function Trig_Slayer_Pickup_Conditions takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I000')and(Trig_Slayer_Pickup_Func003C())
endfunction
function Trig_Slayer_Pickup_Actions takes nothing returns nothing
call SetHeroLevelBJ(GetManipulatingUnit(),(GetHeroLevel(GetManipulatingUnit())+3),true)
endfunction
function Trig_Stop_Vampire_Attacks_Func002Func002C takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='U003')or(GetUnitTypeId(GetTriggerUnit())=='U000')or(GetUnitTypeId(GetTriggerUnit())=='U002')or(GetUnitTypeId(GetTriggerUnit())=='U001')
endfunction
function Trig_Stop_Vampire_Attacks_Func002C takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='U003')and(Trig_Stop_Vampire_Attacks_Func002Func002C())
endfunction
function Trig_Stop_Vampire_Attacks_Conditions takes nothing returns boolean
return(Trig_Stop_Vampire_Attacks_Func002C())
endfunction
function Trig_Stop_Vampire_Attacks_Actions takes nothing returns nothing
call IssueImmediateOrderById(GetAttacker(),851972)
endfunction
function Trig_Stop_Human_Attacks_Func002C takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h002')or(GetUnitTypeId(GetTriggerUnit())=='h000')or(GetUnitTypeId(GetTriggerUnit())=='h01K')or(GetUnitTypeId(GetTriggerUnit())=='h001')
endfunction
function Trig_Stop_Human_Attacks_Func003C takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())!='U003')and(GetUnitTypeId(GetAttacker())!='U000')and(GetUnitTypeId(GetAttacker())!='U002')and(GetUnitTypeId(GetAttacker())!='U001')and(GetUnitTypeId(GetAttacker())!=udg_integer05)and(GetUnitTypeId(GetAttacker())!=udg_integer06)and(GetUnitTypeId(GetAttacker())!=udg_integer07)and(GetUnitTypeId(GetAttacker())!='uzg1')and(GetUnitTypeId(GetAttacker())!='uban')
endfunction
function Trig_Stop_Human_Attacks_Conditions takes nothing returns boolean
return(Trig_Stop_Human_Attacks_Func002C())and(Trig_Stop_Human_Attacks_Func003C())
endfunction
function Trig_Stop_Human_Attacks_Actions takes nothing returns nothing
call IssueImmediateOrderById(GetAttacker(),851972)
endfunction
function Trig_Slayer_Creation_Func001Func002C takes nothing returns boolean
return(GetUnitTypeId(GetEnteringUnit())=='Hpal')or(GetUnitTypeId(GetEnteringUnit())=='Hamg')
endfunction
function Trig_Slayer_Creation_Func001C takes nothing returns boolean
return(IsUnitIllusion(GetEnteringUnit())!=true)and(Trig_Slayer_Creation_Func001Func002C())
endfunction
function Trig_Slayer_Creation_Conditions takes nothing returns boolean
return(Trig_Slayer_Creation_Func001C())
endfunction
function Trig_Slayer_Creation_Actions takes nothing returns nothing
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"|cff0000ccA Vampire Slayer has been created, have him gather the hearts of fallen Vampires to increase his strength.|r")
endfunction
function Trig_Broken_Obelisk_Func001A takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(udg_rect02))
endfunction
function Trig_Broken_Obelisk_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRectAll(RectFromCenterSizeBJ(GetRectCenter(bj_mapInitialPlayableArea),400.,400.)),function Trig_Broken_Obelisk_Func001A)
call CreateNUnitsAtLoc(1,'uzg1',Player(11),GetRectCenter(bj_mapInitialPlayableArea),bj_UNIT_FACING)
call DisplayTextToForce(bj_FORCE_PLAYER[11],"|cffff0000The Vampire's Broken Obelisk is now activated in middle, contains upgrades for keeping the creatures nearby safe.|r")
endfunction
function Trig_Cathedral_Death_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetDyingUnit())=='h00H')
endfunction
function Trig_Cathedral_Death_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetDyingUnit()),"Objects\\Spawnmodels\\Human\\HCancelDeath\\HCancelDeath.mdl")
call RemoveUnit(GetDyingUnit())
endfunction
function Trig_Quest_Menu_Actions takes nothing returns nothing
call CreateQuestBJ(0,"|cff500075FeaR|r","TRIGSTR_1083","ReplaceableTextures\\CommandButtons\\BTNDaggerOfEscape.blp")
call CreateQuestBJ(0,"Instructions","TRIGSTR_1085","ReplaceableTextures\\CommandButtons\\BTNOrcMeleeUpThree.blp")
call CreateQuestBJ(2,"Credits","TRIGSTR_1087","ReplaceableTextures\\CommandButtons\\BTNSpiritLink.blp")
endfunction
function Trig_Lock_Resources_Actions takes nothing returns nothing
call SetMapFlag(MAP_LOCK_RESOURCE_TRADING,true)
endfunction
function Trig_Gold_Campers_Func003C takes nothing returns boolean
return(GetUnitTypeId(GetEnteringUnit())=='h002')or(GetUnitTypeId(GetEnteringUnit())=='h000')or(GetUnitTypeId(GetEnteringUnit())=='h01K')or(GetUnitTypeId(GetEnteringUnit())=='h001')
endfunction
function Trig_Gold_Campers_Conditions takes nothing returns boolean
return(Trig_Gold_Campers_Func003C())
endfunction
function Trig_Gold_Campers_Actions takes nothing returns nothing
call UnitAddAbility(GetEnteringUnit(),'ACcr')
call UnitAddAbility(GetEnteringUnit(),'Aasl')
endfunction
function Trig_Gold_Campers_Leaving_Func003C takes nothing returns boolean
return(GetUnitTypeId(GetLeavingUnit())=='h002')or(GetUnitTypeId(GetLeavingUnit())=='h000')or(GetUnitTypeId(GetLeavingUnit())=='h01K')or(GetUnitTypeId(GetLeavingUnit())=='h001')
endfunction
function Trig_Gold_Campers_Leaving_Conditions takes nothing returns boolean
return(Trig_Gold_Campers_Leaving_Func003C())
endfunction
function Trig_Gold_Campers_Leaving_Actions takes nothing returns nothing
call UnitRemoveAbility(GetLeavingUnit(),'ACcr')
call UnitRemoveAbility(GetLeavingUnit(),'Aasl')
endfunction
function Trig_Ancient_Creations_Func002C takes nothing returns boolean
return(GetUnitTypeId(GetTrainedUnit())=='h00J')or(GetUnitTypeId(GetTrainedUnit())=='h00K')
endfunction
function Trig_Ancient_Creations_Conditions takes nothing returns boolean
return(Trig_Ancient_Creations_Func002C())
endfunction
function Trig_Ancient_Creations_Actions takes nothing returns nothing
call SetUnitAnimation(GetTrainedUnit(),"stand")
endfunction
function Trig_Travel_to_East_Cave_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ(GetEnteringUnit(),OffsetLocation(GetRectCenter(udg_rect03),-150.,0),180.)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnteringUnit()),GetRectCenter(udg_rect03),.5)
endfunction
function Trig_Travel_to_West_Cave_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ(GetEnteringUnit(),OffsetLocation(GetRectCenter(udg_rect04),150.,0),.0)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnteringUnit()),GetRectCenter(udg_rect04),.5)
endfunction
function Trig_Satan_Flyer_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'n000',Player(15),GetRectCenter(udg_rect05),bj_UNIT_FACING)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,.0,50.,.0,90.)
endfunction
function Trig_Upgrade_Mobs_Lvl_2_Conditions takes nothing returns boolean
return(GetPlayerTechCountSimple('R002',Player(11))==1)
endfunction
function Trig_Upgrade_Mobs_Lvl_2_Func001A takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function Trig_Upgrade_Mobs_Lvl_2_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsOfPlayerAll(Player(10)),function Trig_Upgrade_Mobs_Lvl_2_Func001A)
set udg_integer05='u005'
set udg_integer06='u008'
set udg_integer07='u00B'
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,20.,"|cffcc0000The Vampires have upgraded their creatures in middle!|r")
endfunction
function Trig_Upgrade_Mobs_Lvl_3_Conditions takes nothing returns boolean
return(GetPlayerTechCountSimple('R002',Player(11))==2)
endfunction
function Trig_Upgrade_Mobs_Lvl_3_Func001A takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function Trig_Upgrade_Mobs_Lvl_3_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsOfPlayerAll(Player(10)),function Trig_Upgrade_Mobs_Lvl_3_Func001A)
set udg_integer05='u006'
set udg_integer06='u009'
set udg_integer07='u00C'
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,20.,"|cffcc0000The Vampires have upgraded their creatures in middle!|r")
endfunction
function Trig_Mobs_Death_Func001C takes nothing returns boolean
return(GetUnitTypeId(GetDyingUnit())==udg_integer05)or(GetUnitTypeId(GetDyingUnit())==udg_integer06)or(GetUnitTypeId(GetDyingUnit())==udg_integer07)
endfunction
function Trig_Mobs_Death_Conditions takes nothing returns boolean
return(Trig_Mobs_Death_Func001C())
endfunction
function Trig_Mobs_Death_Func004Func001Func001C takes nothing returns boolean
return(udg_integer08==3)
endfunction
function Trig_Mobs_Death_Func004Func001C takes nothing returns boolean
return(udg_integer08==2)
endfunction
function Trig_Mobs_Death_Func004C takes nothing returns boolean
return(udg_integer08==1)
endfunction
function Trig_Mobs_Death_Func006Func001Func001Func001C takes nothing returns boolean
return(udg_integer08==4)
endfunction
function Trig_Mobs_Death_Func006Func001Func001C takes nothing returns boolean
return(udg_integer08==3)
endfunction
function Trig_Mobs_Death_Func006Func001C takes nothing returns boolean
return(udg_integer08==2)
endfunction
function Trig_Mobs_Death_Func006C takes nothing returns boolean
return(udg_integer08==1)
endfunction
function Trig_Mobs_Death_Actions takes nothing returns nothing
call TriggerSleepAction(10.)
set udg_integer08=GetRandomInt(1,3)
if(Trig_Mobs_Death_Func004C())then
set udg_location01=GetRectCenter(bj_mapInitialPlayableArea)
call CreateNUnitsAtLoc(1,udg_integer05,Player(10),GetRectCenter(bj_mapInitialPlayableArea),bj_UNIT_FACING)
call RemoveLocation(udg_location01)
else
if(Trig_Mobs_Death_Func004Func001C())then
set udg_location01=GetRectCenter(bj_mapInitialPlayableArea)
call CreateNUnitsAtLoc(1,udg_integer06,Player(10),GetRectCenter(bj_mapInitialPlayableArea),bj_UNIT_FACING)
call RemoveLocation(udg_location01)
else
if(Trig_Mobs_Death_Func004Func001Func001C())then
set udg_location01=GetRectCenter(bj_mapInitialPlayableArea)
call CreateNUnitsAtLoc(1,udg_integer07,Player(10),GetRectCenter(bj_mapInitialPlayableArea),bj_UNIT_FACING)
call RemoveLocation(udg_location01)
endif
endif
endif
set udg_integer08=GetRandomInt(1,4)
if(Trig_Mobs_Death_Func006C())then
set udg_rect01=udg_rect07
else
if(Trig_Mobs_Death_Func006Func001C())then
set udg_rect01=udg_rect08
else
if(Trig_Mobs_Death_Func006Func001Func001C())then
set udg_rect01=udg_rect09
else
if(Trig_Mobs_Death_Func006Func001Func001Func001C())then
set udg_rect01=udg_rect06
endif
endif
endif
endif
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851983,GetRandomLocInRect(udg_rect01))
endfunction
function Trig_Catacomb_Blaze_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetEnteringUnit())=='uban')
endfunction
function Trig_Catacomb_Blaze_Actions takes nothing returns nothing
call SetUnitVertexColorBJ(GetEnteringUnit(),10.,10.,20.,40.)
call AddSpecialEffectTargetUnitBJ("head",GetEnteringUnit(),"Abilities\\Weapons\\NecromancerMissile\\NecromancerMissile.mdl")
call AddSpecialEffectTargetUnitBJ("hand",GetEnteringUnit(),"Abilities\\Weapons\\IllidanMissile\\IllidanMissile.mdl")
endfunction
function Trig_Suicide_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='Aroa')
endfunction
function Trig_Suicide_Actions takes nothing returns nothing
call KillUnit(GetSpellAbilityUnit())
endfunction
function Trig_Sacrifice_Ritual_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A00A')
endfunction
function Trig_Sacrifice_Ritual_Func001002003 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h01Q')
endfunction
function Trig_Sacrifice_Ritual_Func002001003 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h01Q')
endfunction
function Trig_Sacrifice_Ritual_Func002Func001C takes nothing returns boolean
return(GetOwningPlayer(GetSpellAbilityUnit())==GetOwningPlayer(GetEnumUnit()))
endfunction
function Trig_Sacrifice_Ritual_Func002A takes nothing returns nothing
if(Trig_Sacrifice_Ritual_Func002Func001C())then
call KillUnit(GetEnumUnit())
endif
endfunction
function Trig_Sacrifice_Ritual_Actions takes nothing returns nothing
set udg_group01=GetUnitsInRangeOfLocMatching(350.,GetUnitLoc(GetSpellAbilityUnit()),Condition(function Trig_Sacrifice_Ritual_Func001002003))
call ForGroupBJ(GetUnitsInRangeOfLocMatching(350.,GetUnitLoc(GetSpellAbilityUnit()),Condition(function Trig_Sacrifice_Ritual_Func002001003)),function Trig_Sacrifice_Ritual_Func002A)
call DestroyGroup(udg_group01)
endfunction
function Trig_Pillage_Func008Func002C takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h002')or(GetUnitTypeId(GetAttacker())=='h000')or(GetUnitTypeId(GetAttacker())=='h01K')or(GetUnitTypeId(GetAttacker())=='h001')
endfunction
function Trig_Pillage_Func008C takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='uzg1')and(Trig_Pillage_Func008Func002C())
endfunction
function Trig_Pillage_Conditions takes nothing returns boolean
return(Trig_Pillage_Func008C())
endfunction
function Trig_Pillage_Actions takes nothing returns nothing
call AdjustPlayerStateBJ(1,GetOwningPlayer(GetAttacker()),PLAYER_STATE_RESOURCE_GOLD)
call TriggerSleepAction(.5)
set udg_location01=GetUnitLoc(GetTriggerUnit())
call AddSpecialEffectLocBJ(udg_location01,"Abilities\\Spells\\Other\\Transmute\\PileofGold.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_location01)
call UnitRemoveAbility(GetAttacker(),'Bshs')
endfunction
function Trig_Teleport_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='ACro')
endfunction
function Trig_Teleport_Actions takes nothing returns nothing
call TriggerSleepAction(2.)
call AddSpecialEffectLocBJ(GetRectCenter(bj_mapInitialPlayableArea),"Abilities\\Spells\\Human\\CloudOfFog\\CloudOfFog.mdl")
set udg_effect01=bj_lastCreatedEffect
call TriggerSleepAction(3.)
call DestroyEffect(udg_effect01)
call AddSpecialEffectLocBJ(GetUnitLoc(GetSpellAbilityUnit()),"Objects\\Spawnmodels\\Undead\\UndeadLargeDeathExplode\\UndeadLargeDeathExplode.mdl")
call SetUnitPositionLoc(GetSpellAbilityUnit(),GetRectCenter(udg_rect02))
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect02),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
endfunction
function Trig_Experience_25_to_250_Func002C takes nothing returns boolean
return(GetUnitTypeId(GetKillingUnit())!='Hpal')and(GetUnitTypeId(GetKillingUnit())!='Hamg')
endfunction
function Trig_Experience_25_to_250_Conditions takes nothing returns boolean
return(Trig_Experience_25_to_250_Func002C())
endfunction
function Trig_Experience_25_to_250_Func001Func001C takes nothing returns boolean
return(GetUnitTypeId(GetDyingUnit())=='hfoo')or(GetUnitTypeId(GetDyingUnit())=='h003')or(GetUnitTypeId(GetDyingUnit())=='h004')or(GetUnitTypeId(GetDyingUnit())=='htow')or(GetUnitTypeId(GetDyingUnit())=='hkee')or(GetUnitTypeId(GetDyingUnit())=='hcas')or(GetUnitTypeId(GetDyingUnit())=='h01L')or(GetUnitTypeId(GetDyingUnit())=='h01R')or(GetUnitTypeId(GetDyingUnit())=='h00L')or(GetUnitTypeId(GetDyingUnit())=='h00M')or(GetUnitTypeId(GetDyingUnit())=='h00P')or(GetUnitTypeId(GetDyingUnit())=='h00Q')or(GetUnitTypeId(GetDyingUnit())=='h01D')
endfunction
function Trig_Experience_25_to_250_Func001C takes nothing returns boolean
return(Trig_Experience_25_to_250_Func001Func001C())
endfunction
function Trig_Experience_25_to_250_Func003Func001C takes nothing returns boolean
return(GetUnitTypeId(GetDyingUnit())=='ugho')or(GetUnitTypeId(GetDyingUnit())=='hpea')or(GetUnitTypeId(GetDyingUnit())=='halt')or(GetUnitTypeId(GetDyingUnit())=='hbar')or(GetUnitTypeId(GetDyingUnit())=='ebal')or(GetUnitTypeId(GetDyingUnit())=='hsor')or(GetUnitTypeId(GetDyingUnit())=='hspt')or(GetUnitTypeId(GetDyingUnit())=='h00J')or(GetUnitTypeId(GetDyingUnit())=='h00K')or(GetUnitTypeId(GetDyingUnit())=='h00N')or(GetUnitTypeId(GetDyingUnit())=='h00O')or(GetUnitTypeId(GetDyingUnit())=='h00S')or(GetUnitTypeId(GetDyingUnit())=='h00R')or(GetUnitTypeId(GetDyingUnit())=='h00X')or(GetUnitTypeId(GetDyingUnit())=='h00Y')or(GetUnitTypeId(GetDyingUnit())=='h010')or(GetUnitTypeId(GetDyingUnit())=='h01E')or(GetUnitTypeId(GetDyingUnit())=='h01Z')or(GetUnitTypeId(GetDyingUnit())=='h020')or(GetUnitTypeId(GetDyingUnit())=='h021')
endfunction
function Trig_Experience_25_to_250_Func003C takes nothing returns boolean
return(Trig_Experience_25_to_250_Func003Func001C())
endfunction
function Trig_Experience_25_to_250_Func004Func001C takes nothing returns boolean
return(GetUnitTypeId(GetDyingUnit())=='hbla')or(GetUnitTypeId(GetDyingUnit())=='harm')or(GetUnitTypeId(GetDyingUnit())=='h00E')or(GetUnitTypeId(GetDyingUnit())=='h00D')or(GetUnitTypeId(GetDyingUnit())=='h00F')or(GetUnitTypeId(GetDyingUnit())=='h01N')or(GetUnitTypeId(GetDyingUnit())=='h01P')or(GetUnitTypeId(GetDyingUnit())=='h00B')or(GetUnitTypeId(GetDyingUnit())=='h006')or(GetUnitTypeId(GetDyingUnit())=='h009')or(GetUnitTypeId(GetDyingUnit())=='h00U')or(GetUnitTypeId(GetDyingUnit())=='h00T')or(GetUnitTypeId(GetDyingUnit())=='h01B')or(GetUnitTypeId(GetDyingUnit())=='h01C')or(GetUnitTypeId(GetDyingUnit())=='h01F')or(GetUnitTypeId(GetDyingUnit())=='h01U')or(GetUnitTypeId(GetDyingUnit())=='h01V')or(GetUnitTypeId(GetDyingUnit())=='h01W')or(GetUnitTypeId(GetDyingUnit())=='h01X')or(GetUnitTypeId(GetDyingUnit())=='h01Y')
endfunction
function Trig_Experience_25_to_250_Func004C takes nothing returns boolean
return(Trig_Experience_25_to_250_Func004Func001C())
endfunction
function Trig_Experience_25_to_250_Func005Func001C takes nothing returns boolean
return(GetUnitTypeId(GetDyingUnit())=='h01Q')or(GetUnitTypeId(GetDyingUnit())=='nmpe')or(GetUnitTypeId(GetDyingUnit())=='h00C')or(GetUnitTypeId(GetDyingUnit())=='h00A')or(GetUnitTypeId(GetDyingUnit())=='h007')or(GetUnitTypeId(GetDyingUnit())=='h01S')or(GetUnitTypeId(GetDyingUnit())=='h00Z')or(GetUnitTypeId(GetDyingUnit())=='h00W')or(GetUnitTypeId(GetDyingUnit())=='h011')or(GetUnitTypeId(GetDyingUnit())=='h013')or(GetUnitTypeId(GetDyingUnit())=='h012')or(GetUnitTypeId(GetDyingUnit())=='h01G')or(GetUnitTypeId(GetDyingUnit())=='h01H')
endfunction
function Trig_Experience_25_to_250_Func005C takes nothing returns boolean
return(Trig_Experience_25_to_250_Func005Func001C())
endfunction
function Trig_Experience_25_to_250_Func006Func001C takes nothing returns boolean
return(GetUnitTypeId(GetDyingUnit())=='hlum')or(GetUnitTypeId(GetDyingUnit())=='hkni')or(GetUnitTypeId(GetDyingUnit())=='hmtm')or(GetUnitTypeId(GetDyingUnit())=='hmpr')or(GetUnitTypeId(GetDyingUnit())=='h019')or(GetUnitTypeId(GetDyingUnit())=='h017')or(GetUnitTypeId(GetDyingUnit())=='h01A')or(GetUnitTypeId(GetDyingUnit())=='h018')or(GetUnitTypeId(GetDyingUnit())=='h01I')
endfunction
function Trig_Experience_25_to_250_Func006C takes nothing returns boolean
return(Trig_Experience_25_to_250_Func006Func001C())
endfunction
function Trig_Experience_25_to_250_Func007Func001C takes nothing returns boolean
return(GetUnitTypeId(GetDyingUnit())=='h002')or(GetUnitTypeId(GetDyingUnit())=='h000')or(GetUnitTypeId(GetDyingUnit())=='h001')or(GetUnitTypeId(GetDyingUnit())=='h01K')or(GetUnitTypeId(GetDyingUnit())=='h00H')or(GetUnitTypeId(GetDyingUnit())=='h00I')or(GetUnitTypeId(GetDyingUnit())=='h00G')or(GetUnitTypeId(GetDyingUnit())=='h01T')or(GetUnitTypeId(GetDyingUnit())=='h01O')or(GetUnitTypeId(GetDyingUnit())=='h01J')
endfunction
function Trig_Experience_25_to_250_Func007C takes nothing returns boolean
return(Trig_Experience_25_to_250_Func007Func001C())
endfunction
function Trig_Experience_25_to_250_Actions takes nothing returns nothing
if(Trig_Experience_25_to_250_Func001C())then
call AddHeroXPSwapped(25,GetKillingUnit(),true)
endif
if(Trig_Experience_25_to_250_Func003C())then
call AddHeroXPSwapped(50,GetKillingUnit(),true)
endif
if(Trig_Experience_25_to_250_Func004C())then
call AddHeroXPSwapped('d',GetKillingUnit(),true)
endif
if(Trig_Experience_25_to_250_Func005C())then
call AddHeroXPSwapped(150,GetKillingUnit(),true)
endif
if(Trig_Experience_25_to_250_Func006C())then
call AddHeroXPSwapped(200,GetKillingUnit(),true)
endif
if(Trig_Experience_25_to_250_Func007C())then
call AddHeroXPSwapped(250,GetKillingUnit(),true)
endif
endfunction
function Trig_Random_Item_Drops_Func012C takes nothing returns boolean
return(GetUnitTypeId(GetKillingUnit())=='U003')or(GetUnitTypeId(GetKillingUnit())=='U000')or(GetUnitTypeId(GetKillingUnit())=='U002')or(GetUnitTypeId(GetKillingUnit())=='U001')
endfunction
function Trig_Random_Item_Drops_Conditions takes nothing returns boolean
return(Trig_Random_Item_Drops_Func012C())
endfunction
function Trig_Random_Item_Drops_Func002001 takes nothing returns boolean
return(udg_integer04==1)
endfunction
function Trig_Random_Item_Drops_Func003001 takes nothing returns boolean
return(udg_integer04==2)
endfunction
function Trig_Random_Item_Drops_Func004001 takes nothing returns boolean
return(udg_integer04==3)
endfunction
function Trig_Random_Item_Drops_Func005001 takes nothing returns boolean
return(udg_integer04==4)
endfunction
function Trig_Random_Item_Drops_Func006001 takes nothing returns boolean
return(udg_integer04==5)
endfunction
function Trig_Random_Item_Drops_Func007001 takes nothing returns boolean
return(udg_integer04==6)
endfunction
function Trig_Random_Item_Drops_Func008001 takes nothing returns boolean
return(udg_integer04==7)
endfunction
function Trig_Random_Item_Drops_Func009001 takes nothing returns boolean
return(udg_integer04==8)
endfunction
function Trig_Random_Item_Drops_Func010001 takes nothing returns boolean
return(udg_integer04==9)
endfunction
function Trig_Random_Item_Drops_Func011001 takes nothing returns boolean
return(udg_integer04==10)
endfunction
function Trig_Random_Item_Drops_Actions takes nothing returns nothing
set udg_integer04=GetRandomInt(1,200)
if(Trig_Random_Item_Drops_Func002001())then
call CreateItemLoc('sror',GetUnitLoc(GetDyingUnit()))
endif
if(Trig_Random_Item_Drops_Func003001())then
call CreateItemLoc('stel',GetUnitLoc(GetDyingUnit()))
endif
if(Trig_Random_Item_Drops_Func004001())then
call CreateItemLoc('tpow',GetUnitLoc(GetDyingUnit()))
endif
if(Trig_Random_Item_Drops_Func005001())then
call CreateItemLoc('manh',GetUnitLoc(GetDyingUnit()))
endif
if(Trig_Random_Item_Drops_Func006001())then
call CreateItemLoc('whwd',GetUnitLoc(GetDyingUnit()))
endif
if(Trig_Random_Item_Drops_Func007001())then
call CreateItemLoc('rat6',GetUnitLoc(GetDyingUnit()))
endif
if(Trig_Random_Item_Drops_Func008001())then
call CreateItemLoc('rde1',GetUnitLoc(GetDyingUnit()))
endif
if(Trig_Random_Item_Drops_Func009001())then
call CreateItemLoc('wcyc',GetUnitLoc(GetDyingUnit()))
endif
if(Trig_Random_Item_Drops_Func010001())then
call CreateItemLoc('wshs',GetUnitLoc(GetDyingUnit()))
endif
if(Trig_Random_Item_Drops_Func011001())then
call CreateItemLoc('rst1',GetUnitLoc(GetDyingUnit()))
endif
endfunction
function Trig_Gold_Timer_25_Minute_Tick_Actions takes nothing returns nothing
call StartTimerBJ(udg_timer01,false,1500.)
call CreateTimerDialogBJ(udg_timer01,"|cff00ff00Human Gold Timer|r")
endfunction
function Trig_Gold_Timer_Up_Func002A takes nothing returns nothing
call AdjustPlayerStateBJ(50,GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function Trig_Gold_Timer_Up_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"|cffccccffThe 25 Minute Gold Timer has expired! All remaining Humans recieved 50 gold!")
call ForForce(udg_force01,function Trig_Gold_Timer_Up_Func002A)
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
endfunction
function Trig_Booting_Func001C takes nothing returns boolean
return(GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED)or(GetPlayerName(GetTriggerPlayer())=="n00b_m4gn3t")or(GetPlayerName(GetTriggerPlayer())=="TRSskater")or(GetPlayerName(GetTriggerPlayer())=="Deathmachine911")or(GetPlayerName(GetTriggerPlayer())=="UGLYGIRL")or(GetPlayerName(GetTriggerPlayer())=="Usurp")
endfunction
function Trig_Booting_Conditions takes nothing returns boolean
return(Trig_Booting_Func001C())
endfunction
function Trig_Booting_Actions takes nothing returns nothing
call DialogClear(udg_dialog03)
call DialogSetMessage(udg_dialog03,"Choose Player")
call DialogAddButtonBJ(udg_dialog03,GetPlayerName(Player(0)))
set udg_buttons03[1]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog03,GetPlayerName(Player(1)))
set udg_buttons03[2]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog03,GetPlayerName(Player(2)))
set udg_buttons03[3]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog03,GetPlayerName(Player(3)))
set udg_buttons03[4]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog03,GetPlayerName(Player(4)))
set udg_buttons03[5]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog03,GetPlayerName(Player(5)))
set udg_buttons03[6]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog03,"To next page...")
set udg_buttons03[13]=bj_lastCreatedButton
call DialogClear(udg_dialog04)
call DialogSetMessage(udg_dialog04,"Choose Player")
call DialogAddButtonBJ(udg_dialog04,GetPlayerName(Player(6)))
set udg_buttons03[7]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog04,GetPlayerName(Player(7)))
set udg_buttons03[8]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog04,GetPlayerName(Player(8)))
set udg_buttons03[9]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog04,GetPlayerName(Player(9)))
set udg_buttons03[10]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog04,GetPlayerName(Player(11)))
set udg_buttons03[12]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog04,"To first page...")
set udg_buttons03[14]=bj_lastCreatedButton
call DialogDisplayBJ(true,udg_dialog03,GetTriggerPlayer())
endfunction
function Trig_Booting_2_Func001C takes nothing returns boolean
return(GetClickedButton()==udg_buttons03[13])
endfunction
function Trig_Booting_2_Func002C takes nothing returns boolean
return(GetClickedButton()==udg_buttons03[14])
endfunction
function Trig_Booting_2_Func003Func001Func002A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Booting_2_Func003Func001C takes nothing returns boolean
return(GetClickedButton()==udg_buttons03[bj_forLoopAIndex])
endfunction
function Trig_Booting_2_Actions takes nothing returns nothing
if(Trig_Booting_2_Func001C())then
call DialogSetMessage(udg_dialog04,"Choose Player")
call DialogDisplayBJ(true,udg_dialog04,GetTriggerPlayer())
return
endif
if(Trig_Booting_2_Func002C())then
call DialogSetMessage(udg_dialog03,"Choose Player")
call DialogDisplayBJ(true,udg_dialog03,GetTriggerPlayer())
return
endif
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Booting_2_Func003Func001C())then
set udg_group01=GetUnitsOfPlayerAll(Player(-1+(bj_forLoopAIndex)))
call ForGroupBJ(GetUnitsOfPlayerAll(Player(-1+(bj_forLoopAIndex))),function Trig_Booting_2_Func003Func001Func002A)
call DestroyGroup(udg_group01)
call ForceRemovePlayer(udg_force01,Player(-1+(bj_forLoopAIndex)))
call ForceRemovePlayer(udg_force03,Player(-1+(bj_forLoopAIndex)))
call ForceRemovePlayer(udg_force02,Player(-1+(bj_forLoopAIndex)))
call ForceRemovePlayer(udg_force04,Player(-1+(bj_forLoopAIndex)))
call CustomDefeatBJ(udg_players01[bj_forLoopAIndex],"You have been gang raped by yo mama.")
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_Boot_Preload_Actions takes nothing returns nothing
set udg_players01[1]=Player(0)
set udg_players01[2]=Player(1)
set udg_players01[3]=Player(2)
set udg_players01[4]=Player(3)
set udg_players01[5]=Player(4)
set udg_players01[6]=Player(5)
set udg_players01[7]=Player(6)
set udg_players01[8]=Player(7)
set udg_players01[9]=Player(8)
set udg_players01[10]=Player(9)
set udg_players01[11]=Player(10)
set udg_players01[12]=Player(11)
endfunction
function Trig_Initiate_Dialog_Buttons_Actions takes nothing returns nothing
set udg_integers01[1]='h002'
set udg_integers01[2]='h000'
set udg_integers01[3]='h01K'
set udg_integers01[4]='h001'
set udg_strings01[1]="|cffccccffYou have chosen Human. You can create towers by upgrading tents.|r"
set udg_strings01[2]="|cffccccffYou have chosen Elf. Training Elven Wagons will give you food.|r"
set udg_strings01[3]="|cffccccffYou have chosen Dark Priest. All towers are exceptional and require small amount of gold.|r"
set udg_strings01[4]="|cffccccffYou have chosen Missionary. You can get gold from killing the mobs in middle.|r"
endfunction
function Trig_Start_Dialog_Buttons_Func012A takes nothing returns nothing
call DialogDisplayBJ(true,udg_dialog01,GetEnumPlayer())
endfunction
function Trig_Start_Dialog_Buttons_Actions takes nothing returns nothing
call DialogClear(udg_dialog01)
call DialogSetMessage(udg_dialog01,"Choose Your Builder")
call DialogAddButtonBJ(udg_dialog01,"|cff00ff00Human|r")
set udg_buttons01[1]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog01,"|cffccccffElf|r")
set udg_buttons01[2]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog01,"|cffffccffDark Priest|r")
set udg_buttons01[3]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog01,"|cffffffccMissionary|r")
set udg_buttons01[4]=bj_lastCreatedButton
call ForForce(udg_force01,function Trig_Start_Dialog_Buttons_Func012A)
endfunction
function Trig_Spawn_Players_Func001Func001C takes nothing returns boolean
return(GetClickedButton()==udg_buttons01[bj_forLoopAIndex])
endfunction
function Trig_Spawn_Players_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Spawn_Players_Func001Func001C())then
call CreateNUnitsAtLoc(1,udg_integers01[bj_forLoopAIndex],GetTriggerPlayer(),GetRectCenter(udg_rect02),bj_UNIT_FACING)
call DisplayTimedTextToForce(GetForceOfPlayer(GetTriggerPlayer()),20.,udg_strings01[bj_forLoopAIndex])
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_Boot_Non_Unit_Pickers_Func001001001 takes nothing returns boolean
return(CountUnitsInGroup(GetUnitsOfPlayerAll(GetFilterPlayer()))==0)
endfunction
function Trig_Boot_Non_Unit_Pickers_Func001Func001Func001C takes nothing returns boolean
return(GetEnumPlayer()!=Player(10))and(GetPlayerSlotState(GetEnumPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Boot_Non_Unit_Pickers_Func001Func001C takes nothing returns boolean
return(Trig_Boot_Non_Unit_Pickers_Func001Func001Func001C())
endfunction
function Trig_Boot_Non_Unit_Pickers_Func001A takes nothing returns nothing
if(Trig_Boot_Non_Unit_Pickers_Func001Func001C())then
call CustomDefeatBJ(GetEnumPlayer(),"You were kicked from the game.")
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(GetEnumPlayer())+" has been booted from game for not choosing a builder with 90 seconds of the game."))
call ForceRemovePlayer(udg_force01,GetEnumPlayer())
call ForceRemovePlayer(udg_force03,GetEnumPlayer())
endif
endfunction
function Trig_Boot_Non_Unit_Pickers_Actions takes nothing returns nothing
call ForForce(GetPlayersMatching(Condition(function Trig_Boot_Non_Unit_Pickers_Func001001001)),function Trig_Boot_Non_Unit_Pickers_Func001A)
endfunction
function Trig_Vampire_Dialog_Actions takes nothing returns nothing
call DialogClear(udg_dialog02)
call DialogSetMessage(udg_dialog02,"Choose Your Vampire")
call DialogAddButtonBJ(udg_dialog02,"|cffff0000Doom (Strength)|r")
set udg_buttons02[1]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog02,"|cff00ff00Death (Agility)|r")
set udg_buttons02[2]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog02,"|cff0000ffShadows (Intellegence)|r")
set udg_buttons02[3]=bj_lastCreatedButton
call DialogDisplayBJ(true,udg_dialog02,Player(11))
endfunction
function Trig_Vamp_Type_Decision_Func001C takes nothing returns boolean
return(GetClickedButton()==udg_buttons02[1])
endfunction
function Trig_Vamp_Type_Decision_Func002C takes nothing returns boolean
return(GetClickedButton()==udg_buttons02[2])
endfunction
function Trig_Vamp_Type_Decision_Func003C takes nothing returns boolean
return(GetClickedButton()==udg_buttons02[3])
endfunction
function Trig_Vamp_Type_Decision_Actions takes nothing returns nothing
if(Trig_Vamp_Type_Decision_Func001C())then
set udg_integer03='U001'
endif
if(Trig_Vamp_Type_Decision_Func002C())then
set udg_integer03='U000'
endif
if(Trig_Vamp_Type_Decision_Func003C())then
set udg_integer03='U002'
endif
endfunction
function Trig_Vampire_Spawn_Func001A takes nothing returns nothing
call SetUnitVertexColorBJ(GetEnumUnit(),'d',20.,20.,20.)
endfunction
function Trig_Vampire_Spawn_Func005002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),CameraSetupGetDestPositionLoc(udg_camerasetup01),.01)
endfunction
function Trig_Vampire_Spawn_Func033A takes nothing returns nothing
call ExplodeUnitBJ(GetEnumUnit())
endfunction
function Trig_Vampire_Spawn_Func051002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),CameraSetupGetDestPositionLoc(udg_camerasetup02),1.)
endfunction
function Trig_Vampire_Spawn_Func058A takes nothing returns nothing
call IssuePointOrderByIdLoc(GetEnumUnit(),851983,GetRandomLocInRect(udg_rect01))
endfunction
function Trig_Vampire_Spawn_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsOfTypeIdAll('uaco'),function Trig_Vampire_Spawn_Func001A)
call PolledWait(59.)
call DialogDisplayBJ(false,udg_dialog02,Player(11))
call CinematicModeBJ(true,bj_FORCE_ALL_PLAYERS)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Vampire_Spawn_Func005002)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,udg_unit03,"Insane Wizard",udg_sound01,"|cffcc0000Hahahaha... we have summoned such an Evil Being to this world... but who could stop it now?|r",0,1.,true)
call TriggerSleepAction(2.)
call TerrainDeformationRippleBJ(9.,false,GetRectCenter(bj_mapInitialPlayableArea),1250.,800.,15.,.5,1200.)
call PlaySoundBJ(udg_sound02)
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(GetRectCenter(bj_mapInitialPlayableArea),400.,400.)),"Objects\\Spawnmodels\\Undead\\UCancelDeath\\UCancelDeath.mdl")
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(GetRectCenter(bj_mapInitialPlayableArea),400.,400.)),"Objects\\Spawnmodels\\Undead\\UCancelDeath\\UCancelDeath.mdl")
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(GetRectCenter(bj_mapInitialPlayableArea),400.,400.)),"Objects\\Spawnmodels\\Undead\\UCancelDeath\\UCancelDeath.mdl")
call TriggerSleepAction(1.3)
call PlaySoundBJ(udg_sound02)
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(GetRectCenter(bj_mapInitialPlayableArea),400.,400.)),"Objects\\Spawnmodels\\Undead\\UCancelDeath\\UCancelDeath.mdl")
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(GetRectCenter(bj_mapInitialPlayableArea),400.,400.)),"Objects\\Spawnmodels\\Undead\\UCancelDeath\\UCancelDeath.mdl")
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(GetRectCenter(bj_mapInitialPlayableArea),400.,400.)),"Objects\\Spawnmodels\\Undead\\UCancelDeath\\UCancelDeath.mdl")
call TriggerSleepAction(1.3)
call PlaySoundBJ(udg_sound03)
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(GetRectCenter(bj_mapInitialPlayableArea),400.,400.)),"Objects\\Spawnmodels\\Undead\\UCancelDeath\\UCancelDeath.mdl")
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(GetRectCenter(bj_mapInitialPlayableArea),400.,400.)),"Objects\\Spawnmodels\\Undead\\UCancelDeath\\UCancelDeath.mdl")
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(GetRectCenter(bj_mapInitialPlayableArea),400.,400.)),"Objects\\Spawnmodels\\Undead\\UCancelDeath\\UCancelDeath.mdl")
call TriggerSleepAction(1.3)
call PlaySoundBJ(udg_sound03)
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(GetRectCenter(bj_mapInitialPlayableArea),400.,400.)),"Objects\\Spawnmodels\\Undead\\UCancelDeath\\UCancelDeath.mdl")
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(GetRectCenter(bj_mapInitialPlayableArea),400.,400.)),"Objects\\Spawnmodels\\Undead\\UCancelDeath\\UCancelDeath.mdl")
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(GetRectCenter(bj_mapInitialPlayableArea),400.,400.)),"Objects\\Spawnmodels\\Undead\\UCancelDeath\\UCancelDeath.mdl")
call TriggerSleepAction(1.3)
call PlaySoundBJ(udg_sound02)
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(GetRectCenter(bj_mapInitialPlayableArea),400.,400.)),"Objects\\Spawnmodels\\Undead\\UCancelDeath\\UCancelDeath.mdl")
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(GetRectCenter(bj_mapInitialPlayableArea),400.,400.)),"Objects\\Spawnmodels\\Undead\\UCancelDeath\\UCancelDeath.mdl")
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(GetRectCenter(bj_mapInitialPlayableArea),400.,400.)),"Objects\\Spawnmodels\\Undead\\UCancelDeath\\UCancelDeath.mdl")
call ForGroupBJ(GetUnitsOfTypeIdAll('uaco'),function Trig_Vampire_Spawn_Func033A)
call TriggerSleepAction(.5)
call TerrainDeformationRippleBJ(3.,false,GetRectCenter(bj_mapInitialPlayableArea),250.,3000.,50.,.5,200.)
call PlaySoundBJ(udg_sound02)
call RemoveUnit(udg_unit02)
call AddSpecialEffectLocBJ(GetRectCenter(bj_mapInitialPlayableArea),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call CreateNUnitsAtLoc(1,udg_integer03,Player(11),GetRectCenter(bj_mapInitialPlayableArea),bj_UNIT_FACING)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,1.,1.,5.,50.)
call SetHeroLevelBJ(bj_lastCreatedUnit,5,false)
call PlaySoundBJ(udg_sound07)
call PlaySoundBJ(udg_sound02)
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(GetRectCenter(bj_mapInitialPlayableArea),400.,400.)),"Objects\\Spawnmodels\\Undead\\UCancelDeath\\UCancelDeath.mdl")
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(GetRectCenter(bj_mapInitialPlayableArea),400.,400.)),"Objects\\Spawnmodels\\Undead\\UCancelDeath\\UCancelDeath.mdl")
call TriggerSleepAction(.5)
call PlaySoundBJ(udg_sound02)
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(GetRectCenter(bj_mapInitialPlayableArea),400.,400.)),"Objects\\Spawnmodels\\Undead\\UCancelDeath\\UCancelDeath.mdl")
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(GetRectCenter(bj_mapInitialPlayableArea),400.,400.)),"Objects\\Spawnmodels\\Undead\\UCancelDeath\\UCancelDeath.mdl")
call TriggerSleepAction(5.)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Vampire_Spawn_Func051002)
call CinematicModeBJ(false,bj_FORCE_ALL_PLAYERS)
call TriggerSleepAction(15.)
call CreateNUnitsAtLoc(10,udg_integer05,Player(10),GetRandomLocInRect(udg_rect06),bj_UNIT_FACING)
call CreateNUnitsAtLoc(10,udg_integer06,Player(10),GetRandomLocInRect(udg_rect06),bj_UNIT_FACING)
call CreateNUnitsAtLoc(10,udg_integer07,Player(10),GetRandomLocInRect(udg_rect06),bj_UNIT_FACING)
set udg_location01=GetRandomLocInRect(udg_rect01)
call ForGroupBJ(GetUnitsOfPlayerAll(Player(10)),function Trig_Vampire_Spawn_Func058A)
call DestroyGroup(udg_group01)
endfunction
function Trig_Humans_Defeat_Func001Func008001001 takes nothing returns boolean
return(GetFilterPlayer()!=Player(11))
endfunction
function Trig_Humans_Defeat_Func001Func008A takes nothing returns nothing
call CustomDefeatBJ(GetEnumPlayer(),"|cffcc0000You have Failed!|r")
endfunction
function Trig_Humans_Defeat_Func001C takes nothing returns boolean
return(CountPlayersInForceBJ(udg_force01)==0)
endfunction
function Trig_Humans_Defeat_Actions takes nothing returns nothing
if(Trig_Humans_Defeat_Func001C())then
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger48)
call PlayThematicMusic("Sound\\Music\\mp3Music\\DarkVictory.mp3")
call TriggerSleepAction(2.5)
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"|cffcc0000The Vampire's have killed all the builders, the world has lost it's only hope for victory...|r")
call TriggerSleepAction(5.)
call CustomVictoryBJ(Player(11),true,true)
call ForForce(GetPlayersMatching(Condition(function Trig_Humans_Defeat_Func001Func008001001)),function Trig_Humans_Defeat_Func001Func008A)
endif
endfunction
function Trig_Vampires_Defeat_Func001Func001C takes nothing returns boolean
return(CountPlayersInForceBJ(udg_force02)==0)or(CountPlayersInForceBJ(udg_force04)==0)
endfunction
function Trig_Vampires_Defeat_Func001Func008A takes nothing returns nothing
call CustomVictoryBJ(GetEnumPlayer(),true,true)
endfunction
function Trig_Vampires_Defeat_Func001Func009A takes nothing returns nothing
call CustomDefeatBJ(GetEnumPlayer(),"|cff0000ccYou have been Defeated!|r")
endfunction
function Trig_Vampires_Defeat_Func001C takes nothing returns boolean
return(Trig_Vampires_Defeat_Func001Func001C())
endfunction
function Trig_Vampires_Defeat_Actions takes nothing returns nothing
if(Trig_Vampires_Defeat_Func001C())then
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger48)
call PlayThematicMusic("Sound\\Music\\mp3Music\\TragicConfrontation.mp3")
call TriggerSleepAction(2.5)
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"|cff0000ccThe Humans have prevailed in destroying all the Vampires, the world has been saved...|r")
call TriggerSleepAction(5.)
call ForForce(udg_force01,function Trig_Vampires_Defeat_Func001Func008A)
call ForForce(GetPlayersEnemies(ForcePickRandomPlayer(udg_force01)),function Trig_Vampires_Defeat_Func001Func009A)
endif
endfunction
function Trig_Leavers_Func002002 takes nothing returns nothing
call ShareEverythingWithTeam(GetTriggerPlayer())
endfunction
function Trig_Leavers_Func004001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())!='U003')
endfunction
function Trig_Leavers_Func004A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Items\\AIil\\AIilTarget.mdl")
set udg_effect01=bj_lastCreatedEffect
call RemoveUnit(GetEnumUnit())
call TriggerSleepAction(1.)
call DestroyEffect(udg_effect01)
endfunction
function Trig_Leavers_Actions takes nothing returns nothing
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(GetTriggerPlayer())+" has left the game."))
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetTriggerPlayer(),'U003'),function Trig_Leavers_Func002002)
set udg_group01=GetUnitsOfPlayerAll(GetTriggerPlayer())
call ForGroupBJ(GetUnitsOfPlayerMatching(GetTriggerPlayer(),Condition(function Trig_Leavers_Func004001002)),function Trig_Leavers_Func004A)
call DestroyGroup(udg_group01)
call ForceRemovePlayer(udg_force01,GetTriggerPlayer())
call ForceRemovePlayer(udg_force03,GetTriggerPlayer())
call ForceRemovePlayer(udg_force04,GetTriggerPlayer())
call ConditionalTriggerExecute(udg_trigger46)
call ConditionalTriggerExecute(udg_trigger47)
endfunction
function Trig_Ancient_Vampire_Leaves_Actions takes nothing returns nothing
call ShareEverythingWithTeam(Player(11))
call ForceRemovePlayer(udg_force04,Player(11))
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"|cff00ccccThe Ancient Fearful Vampire has left the game, the Vampire Spawns will take control of his units.|r")
call ConditionalTriggerExecute(udg_trigger47)
endfunction
function Trig_Mobs_Movement_Func003Func002Func001Func001C takes nothing returns boolean
return(udg_integer08==3)
endfunction
function Trig_Mobs_Movement_Func003Func002Func001C takes nothing returns boolean
return(udg_integer08==2)
endfunction
function Trig_Mobs_Movement_Func003Func002C takes nothing returns boolean
return(udg_integer08==1)
endfunction
function Trig_Mobs_Movement_Func003A takes nothing returns nothing
set udg_integer08=GetRandomInt(1,3)
if(Trig_Mobs_Movement_Func003Func002C())then
set udg_rect01=udg_rect07
else
if(Trig_Mobs_Movement_Func003Func002Func001C())then
set udg_rect01=udg_rect08
else
if(Trig_Mobs_Movement_Func003Func002Func001Func001C())then
set udg_rect01=udg_rect09
endif
endif
endif
set udg_location01=GetRandomLocInRect(udg_rect01)
call IssuePointOrderByIdLoc(GetEnumUnit(),851983,GetRandomLocInRect(udg_rect01))
call RemoveLocation(udg_location01)
endfunction
function Trig_Mobs_Movement_Actions takes nothing returns nothing
set udg_group01=GetUnitsOfPlayerAll(Player(10))
call ForGroupBJ(GetUnitsOfPlayerAll(Player(10)),function Trig_Mobs_Movement_Func003A)
call DestroyGroup(udg_group01)
endfunction
function Trig_Stop_Creature_Attacks_Func002Func001C takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='U003')or(GetUnitTypeId(GetAttacker())==udg_integer03)or(GetUnitTypeId(GetAttacker())=='uzg1')or(GetUnitTypeId(GetAttacker())=='uban')
endfunction
function Trig_Stop_Creature_Attacks_Func002Func002C takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==udg_integer05)or(GetUnitTypeId(GetTriggerUnit())==udg_integer06)or(GetUnitTypeId(GetTriggerUnit())==udg_integer07)
endfunction
function Trig_Stop_Creature_Attacks_Func002C takes nothing returns boolean
return(Trig_Stop_Creature_Attacks_Func002Func001C())and(Trig_Stop_Creature_Attacks_Func002Func002C())
endfunction
function Trig_Stop_Creature_Attacks_Conditions takes nothing returns boolean
return(Trig_Stop_Creature_Attacks_Func002C())
endfunction
function Trig_Stop_Creature_Attacks_Actions takes nothing returns nothing
call IssueImmediateOrderById(GetAttacker(),851972)
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
local integer i
call SetCameraBounds(-8192.+GetCameraMargin(CAMERA_MARGIN_LEFT),-8192.+GetCameraMargin(CAMERA_MARGIN_BOTTOM),8192.-GetCameraMargin(CAMERA_MARGIN_RIGHT),8192.-GetCameraMargin(CAMERA_MARGIN_TOP),-8192.+GetCameraMargin(CAMERA_MARGIN_LEFT),8192.-GetCameraMargin(CAMERA_MARGIN_TOP),8192.-GetCameraMargin(CAMERA_MARGIN_RIGHT),-8192.+GetCameraMargin(CAMERA_MARGIN_BOTTOM))
call SetDayNightModels("Environment\\DNC\\DNCAshenvale\\DNCAshenvaleTerrain\\DNCAshenvaleTerrain.mdl","Environment\\DNC\\DNCAshenvale\\DNCAshenvaleUnit\\DNCAshenvaleUnit.mdl")
call SetTerrainFogEx(0,250.,2500.,.5,.0,.196,.0)
set we=AddWeatherEffect(Rect(-8192.,-8192.,8192.,8192.),'RAlr')
call EnableWeatherEffect(we,true)
call NewSoundEnvironment("Default")
call SetAmbientDaySound("AshenvaleDay")
call SetAmbientNightSound("AshenvaleNight")
call SetMapMusic("Music",true,0)
set udg_sound01=CreateSound("Units\\Undead\\Acolyte\\AcolyteYesAttack2.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound01,"AcolyteYesAttack")
call SetSoundDuration(udg_sound01,1248)
call SetSoundChannel(udg_sound01,0)
call SetSoundPitch(udg_sound01,.7)
set udg_sound02=CreateSound("Sound\\Buildings\\Death\\UndeadBuildingDeathLarge1.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound02,"DeathUndeadLargeBuilding")
call SetSoundDuration(udg_sound02,3001)
call SetSoundChannel(udg_sound02,0)
call SetSoundVolume(udg_sound02,'d')
set udg_sound03=CreateSound("Sound\\Buildings\\Death\\UndeadBuildingDeathSmall.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound03,"DeathUndeadBuildingCancel")
call SetSoundDuration(udg_sound03,2235)
call SetSoundChannel(udg_sound03,0)
call SetSoundVolume(udg_sound03,'d')
set udg_sound04=CreateSound("Units\\Undead\\Varimathras\\VarimathrasReady1.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound04,"VarimathrasReady")
call SetSoundDuration(udg_sound04,2122)
call SetSoundChannel(udg_sound04,0)
set udg_sound05=CreateSound("Doodads\\Cinematic\\Lightningbolt\\LightningBolt1.wav",false,false,true,10,10,"SpellsEAX")
call SetSoundParamsFromLabel(udg_sound05,"CinematicLightningBolt")
call SetSoundDuration(udg_sound05,3001)
set udg_sound06=CreateSound("Units\\Undead\\HeroDreadLord\\HeroDreadlordWarcry1.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound06,"HeroDreadLordWarcry")
call SetSoundDuration(udg_sound06,1632)
call SetSoundChannel(udg_sound06,0)
call SetSoundPitch(udg_sound06,1.)
set udg_sound07=CreateSound("Units\\Creeps\\GrizzlyBear\\GrizzlyBearReady1.wav",false,false,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound07,"GrizzlyBearPissed")
call SetSoundDuration(udg_sound07,1985)
call SetSoundChannel(udg_sound07,0)
call SetSoundPitch(udg_sound07,.6)
set udg_sound08=CreateSound("Units\\Undead\\HeroLich\\HeroLichDeath1.wav",false,false,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound08,"HeroLichDeath")
call SetSoundDuration(udg_sound08,2952)
call SetSoundChannel(udg_sound08,0)
call SetSoundPitch(udg_sound08,.8)
set udg_rect02=Rect(-128.,-640.,128.,-384.)
set udg_rect03=Rect(7776.,5248.,7808.,5632.)
set udg_rect04=Rect(-7808.,256.,-7776.,640.)
set udg_rect05=Rect(-1152.,7552.,-1024.,7680.)
set udg_rect06=Rect(-512.,-512.,512.,512.)
set udg_rect07=Rect(-1920.,896.,-896.,1888.)
set udg_rect08=Rect(-1280.,-1792.,-256.,-768.)
set udg_rect09=Rect(768.,-1280.,1792.,-256.)
set udg_rect10=Rect(-1280.,-1024.,768.,1280.)
call CameraSetupSetField(udg_camerasetup01,CAMERA_FIELD_ZOFFSET,.0,.0)
call CameraSetupSetField(udg_camerasetup01,CAMERA_FIELD_ROTATION,90.,.0)
call CameraSetupSetField(udg_camerasetup01,CAMERA_FIELD_ANGLE_OF_ATTACK,320.,.0)
call CameraSetupSetField(udg_camerasetup01,CAMERA_FIELD_TARGET_DISTANCE,1200.,.0)
call CameraSetupSetField(udg_camerasetup01,CAMERA_FIELD_ROLL,.0,.0)
call CameraSetupSetField(udg_camerasetup01,CAMERA_FIELD_FIELD_OF_VIEW,70.,.0)
call CameraSetupSetField(udg_camerasetup01,CAMERA_FIELD_FARZ,10000.,.0)
call CameraSetupSetDestPosition(udg_camerasetup01,.0,.0,.0)
call CameraSetupSetField(udg_camerasetup02,CAMERA_FIELD_ZOFFSET,.0,.0)
call CameraSetupSetField(udg_camerasetup02,CAMERA_FIELD_ROTATION,90.,.0)
call CameraSetupSetField(udg_camerasetup02,CAMERA_FIELD_ANGLE_OF_ATTACK,304.,.0)
call CameraSetupSetField(udg_camerasetup02,CAMERA_FIELD_TARGET_DISTANCE,1650.,.0)
call CameraSetupSetField(udg_camerasetup02,CAMERA_FIELD_ROLL,.0,.0)
call CameraSetupSetField(udg_camerasetup02,CAMERA_FIELD_FIELD_OF_VIEW,70.,.0)
call CameraSetupSetField(udg_camerasetup02,CAMERA_FIELD_FARZ,5000.,.0)
call CameraSetupSetDestPosition(udg_camerasetup02,.0,-500.,.0)
set p=Player(15)
set udg_unit02=CreateUnit(p,'uzig',.0,.0,270.)
set u=CreateUnit(p,'nfoh',32.,992.,270.)
set u=CreateUnit(p,'ngme',480.,928.,270.)
set p=Player(15)
set udg_unit05=CreateUnit(p,'Hpal',-1343.8,7743.9,270.)
call SetHeroStr(udg_unit05,1,true)
call SetHeroAgi(udg_unit05,1,true)
call SetHeroInt(udg_unit05,1,true)
call SetUnitState(udg_unit05,UNIT_STATE_MANA,0)
set udg_unit03=CreateUnit(p,'uaco',-2.4,-256.6,90.)
set u=CreateUnit(p,'uaco',-256.3,1.4,.0)
set u=CreateUnit(p,'uaco',260.4,-.4,180.)
set u=CreateUnit(p,'uaco',3.5,254.7,270.)
set udg_unit06=CreateUnit(p,'Hamg',-1216.4,7741.8,270.)
call SetHeroStr(udg_unit06,1,true)
call SetHeroAgi(udg_unit06,1,true)
call SetHeroInt(udg_unit06,1,true)
call SetUnitState(udg_unit06,UNIT_STATE_MANA,0)
set udg_unit07=CreateUnit(p,'U003',-1084.4,7743.9,270.)
call SetHeroStr(udg_unit07,1,true)
call SetHeroAgi(udg_unit07,1,true)
call SetHeroInt(udg_unit07,1,true)
call SetUnitState(udg_unit07,UNIT_STATE_MANA,0)
set udg_unit08=CreateUnit(p,'U000',-966.6,7741.8,270.)
call SetHeroStr(udg_unit08,1,true)
call SetHeroAgi(udg_unit08,1,true)
call SetHeroInt(udg_unit08,1,true)
call SetUnitState(udg_unit08,UNIT_STATE_MANA,0)
set udg_unit09=CreateUnit(p,'U002',-826.3,7755.5,270.)
call SetHeroStr(udg_unit09,1,true)
call SetHeroAgi(udg_unit09,1,true)
call SetHeroInt(udg_unit09,1,true)
call SetUnitState(udg_unit09,UNIT_STATE_MANA,0)
set udg_unit04=CreateUnit(p,'U001',-1465.6,7733.9,270.)
call SetHeroStr(udg_unit04,1,true)
call SetHeroAgi(udg_unit04,1,true)
call SetHeroInt(udg_unit04,1,true)
call SetUnitState(udg_unit04,UNIT_STATE_MANA,0)
set i=0
set udg_dialog01=DialogCreate()
set udg_dialog02=DialogCreate()
set udg_dialog03=DialogCreate()
set udg_dialog04=DialogCreate()
set i=0
loop
exitwhen(i>3)
set udg_strings01[i]=""
set i=i+1
endloop
call TriggerAddAction(udg_trigger01,function Trig_Notes_and_Messages_Actions)
call TriggerAddAction(udg_trigger02,function Trig_Player_Bounty_On_Actions)
call TriggerAddAction(udg_trigger03,function Trig_Player_Groups_Actions)
call TriggerAddAction(udg_trigger04,function Trig_Starting_Lumber_Actions)
call TriggerRegisterTimerEventPeriodic(udg_trigger05,60.)
call TriggerAddAction(udg_trigger05,function Trig_Minute_Lumber_Actions)
call TriggerAddAction(udg_trigger06,function Trig_PreLoading_Vampires_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger07,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger07,Condition(function Trig_Human_Dies_Conditions))
call TriggerAddAction(udg_trigger07,function Trig_Human_Dies_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger08,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger08,Condition(function Trig_Vampire_Dies_Conditions))
call TriggerAddAction(udg_trigger08,function Trig_Vampire_Dies_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger09,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger09,Condition(function Trig_Vampire_Cannot_Pickup_Conditions))
call TriggerAddAction(udg_trigger09,function Trig_Vampire_Cannot_Pickup_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger10,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger10,Condition(function Trig_Slayer_Pickup_Conditions))
call TriggerAddAction(udg_trigger10,function Trig_Slayer_Pickup_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger11,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger11,Condition(function Trig_Stop_Vampire_Attacks_Conditions))
call TriggerAddAction(udg_trigger11,function Trig_Stop_Vampire_Attacks_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger12,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger12,Condition(function Trig_Stop_Human_Attacks_Conditions))
call TriggerAddAction(udg_trigger12,function Trig_Stop_Human_Attacks_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger13,bj_mapInitialPlayableArea)
call TriggerAddCondition(udg_trigger13,Condition(function Trig_Slayer_Creation_Conditions))
call TriggerAddAction(udg_trigger13,function Trig_Slayer_Creation_Actions)
call TriggerRegisterTimerEventSingle(udg_trigger14,120.)
call TriggerAddAction(udg_trigger14,function Trig_Broken_Obelisk_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger15,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger15,Condition(function Trig_Cathedral_Death_Conditions))
call TriggerAddAction(udg_trigger15,function Trig_Cathedral_Death_Actions)
call TriggerRegisterTimerEventSingle(udg_trigger16,5)
call TriggerAddAction(udg_trigger16,function Trig_Quest_Menu_Actions)
call TriggerAddAction(udg_trigger17,function Trig_Lock_Resources_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger18,RectFromCenterSizeBJ(GetRectCenter(bj_mapInitialPlayableArea),2500.,2500.))
call TriggerAddCondition(udg_trigger18,Condition(function Trig_Gold_Campers_Conditions))
call TriggerAddAction(udg_trigger18,function Trig_Gold_Campers_Actions)
call TriggerRegisterLeaveRectSimple(udg_trigger19,RectFromCenterSizeBJ(GetRectCenter(bj_mapInitialPlayableArea),3000.,3000.))
call TriggerAddCondition(udg_trigger19,Condition(function Trig_Gold_Campers_Leaving_Conditions))
call TriggerAddAction(udg_trigger19,function Trig_Gold_Campers_Leaving_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger20,EVENT_PLAYER_UNIT_TRAIN_FINISH)
call TriggerAddCondition(udg_trigger20,Condition(function Trig_Ancient_Creations_Conditions))
call TriggerAddAction(udg_trigger20,function Trig_Ancient_Creations_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger21,udg_rect04)
call TriggerAddAction(udg_trigger21,function Trig_Travel_to_East_Cave_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger22,udg_rect03)
call TriggerAddAction(udg_trigger22,function Trig_Travel_to_West_Cave_Actions)
call TriggerRegisterTimerEventSingle(udg_trigger23,1500.)
call TriggerAddAction(udg_trigger23,function Trig_Satan_Flyer_Actions)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger24,Player(11),EVENT_PLAYER_UNIT_RESEARCH_FINISH)
call TriggerAddCondition(udg_trigger24,Condition(function Trig_Upgrade_Mobs_Lvl_2_Conditions))
call TriggerAddAction(udg_trigger24,function Trig_Upgrade_Mobs_Lvl_2_Actions)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger25,Player(11),EVENT_PLAYER_UNIT_RESEARCH_FINISH)
call TriggerAddCondition(udg_trigger25,Condition(function Trig_Upgrade_Mobs_Lvl_3_Conditions))
call TriggerAddAction(udg_trigger25,function Trig_Upgrade_Mobs_Lvl_3_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger26,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger26,Condition(function Trig_Mobs_Death_Conditions))
call TriggerAddAction(udg_trigger26,function Trig_Mobs_Death_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger27,bj_mapInitialPlayableArea)
call TriggerAddCondition(udg_trigger27,Condition(function Trig_Catacomb_Blaze_Conditions))
call TriggerAddAction(udg_trigger27,function Trig_Catacomb_Blaze_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger28,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger28,Condition(function Trig_Suicide_Conditions))
call TriggerAddAction(udg_trigger28,function Trig_Suicide_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger29,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger29,Condition(function Trig_Sacrifice_Ritual_Conditions))
call TriggerAddAction(udg_trigger29,function Trig_Sacrifice_Ritual_Actions)
call DisableTrigger(udg_trigger30)
call TriggerRegisterAnyUnitEventBJ(udg_trigger30,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger30,Condition(function Trig_Pillage_Conditions))
call TriggerAddAction(udg_trigger30,function Trig_Pillage_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger31,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger31,Condition(function Trig_Teleport_Conditions))
call TriggerAddAction(udg_trigger31,function Trig_Teleport_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger32,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger32,Condition(function Trig_Experience_25_to_250_Conditions))
call TriggerAddAction(udg_trigger32,function Trig_Experience_25_to_250_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger33,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger33,Condition(function Trig_Random_Item_Drops_Conditions))
call TriggerAddAction(udg_trigger33,function Trig_Random_Item_Drops_Actions)
call TriggerRegisterTimerEventSingle(udg_trigger34,60.)
call TriggerAddAction(udg_trigger34,function Trig_Gold_Timer_25_Minute_Tick_Actions)
call TriggerRegisterTimerExpireEvent(udg_trigger35,udg_timer01)
call TriggerAddAction(udg_trigger35,function Trig_Gold_Timer_Up_Actions)
call TriggerRegisterPlayerChatEvent(udg_trigger36,Player(0),"-showkick",true)
call TriggerRegisterPlayerChatEvent(udg_trigger36,Player(1),"-showkick",true)
call TriggerRegisterPlayerChatEvent(udg_trigger36,Player(2),"-showkick",true)
call TriggerRegisterPlayerChatEvent(udg_trigger36,Player(3),"-showkick",true)
call TriggerRegisterPlayerChatEvent(udg_trigger36,Player(4),"-showkick",true)
call TriggerRegisterPlayerChatEvent(udg_trigger36,Player(5),"-showkick",true)
call TriggerRegisterPlayerChatEvent(udg_trigger36,Player(6),"-showkick",true)
call TriggerRegisterPlayerChatEvent(udg_trigger36,Player(7),"-showkick",true)
call TriggerRegisterPlayerChatEvent(udg_trigger36,Player(8),"-showkick",true)
call TriggerRegisterPlayerChatEvent(udg_trigger36,Player(9),"-showkick",true)
call TriggerRegisterPlayerChatEvent(udg_trigger36,Player(10),"-showkick",true)
call TriggerRegisterPlayerChatEvent(udg_trigger36,Player(11),"-showkick",true)
call TriggerAddCondition(udg_trigger36,Condition(function Trig_Booting_Conditions))
call TriggerAddAction(udg_trigger36,function Trig_Booting_Actions)
call TriggerRegisterDialogEvent(udg_trigger37,udg_dialog03)
call TriggerRegisterDialogEvent(udg_trigger37,udg_dialog04)
call TriggerAddAction(udg_trigger37,function Trig_Booting_2_Actions)
call TriggerRegisterTimerEventSingle(udg_trigger38,15.)
call TriggerAddAction(udg_trigger38,function Trig_Boot_Preload_Actions)
call TriggerAddAction(udg_trigger39,function Trig_Initiate_Dialog_Buttons_Actions)
call TriggerRegisterTimerEventSingle(udg_trigger40,1.)
call TriggerAddAction(udg_trigger40,function Trig_Start_Dialog_Buttons_Actions)
call TriggerRegisterDialogEvent(udg_trigger41,udg_dialog01)
call TriggerAddAction(udg_trigger41,function Trig_Spawn_Players_Actions)
call TriggerRegisterTimerEventSingle(udg_trigger42,90.)
call TriggerAddAction(udg_trigger42,function Trig_Boot_Non_Unit_Pickers_Actions)
call TriggerRegisterTimerEventSingle(udg_trigger43,1.)
call TriggerAddAction(udg_trigger43,function Trig_Vampire_Dialog_Actions)
call TriggerRegisterDialogEvent(udg_trigger44,udg_dialog02)
call TriggerAddAction(udg_trigger44,function Trig_Vamp_Type_Decision_Actions)
call TriggerRegisterTimerEventSingle(udg_trigger45,1.)
call TriggerAddAction(udg_trigger45,function Trig_Vampire_Spawn_Actions)
call TriggerAddAction(udg_trigger46,function Trig_Humans_Defeat_Actions)
call TriggerAddAction(udg_trigger47,function Trig_Vampires_Defeat_Actions)
call TriggerRegisterPlayerEventLeave(udg_trigger48,Player(0))
call TriggerRegisterPlayerEventLeave(udg_trigger48,Player(1))
call TriggerRegisterPlayerEventLeave(udg_trigger48,Player(2))
call TriggerRegisterPlayerEventLeave(udg_trigger48,Player(3))
call TriggerRegisterPlayerEventLeave(udg_trigger48,Player(4))
call TriggerRegisterPlayerEventLeave(udg_trigger48,Player(5))
call TriggerRegisterPlayerEventLeave(udg_trigger48,Player(6))
call TriggerRegisterPlayerEventLeave(udg_trigger48,Player(7))
call TriggerRegisterPlayerEventLeave(udg_trigger48,Player(8))
call TriggerRegisterPlayerEventLeave(udg_trigger48,Player(9))
call TriggerAddAction(udg_trigger48,function Trig_Leavers_Actions)
call TriggerRegisterPlayerEventLeave(udg_trigger49,Player(11))
call TriggerAddAction(udg_trigger49,function Trig_Ancient_Vampire_Leaves_Actions)
call TriggerRegisterTimerEventPeriodic(udg_trigger50,10.)
call TriggerAddAction(udg_trigger50,function Trig_Mobs_Movement_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger51,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger51,Condition(function Trig_Stop_Creature_Attacks_Conditions))
call TriggerAddAction(udg_trigger51,function Trig_Stop_Creature_Attacks_Actions)
call ConditionalTriggerExecute(udg_trigger01)
call ConditionalTriggerExecute(udg_trigger02)
call ConditionalTriggerExecute(udg_trigger03)
call ConditionalTriggerExecute(udg_trigger04)
call ConditionalTriggerExecute(udg_trigger06)
call ConditionalTriggerExecute(udg_trigger17)
call ConditionalTriggerExecute(udg_trigger39)
endfunction
function InitTrig_init takes nothing returns nothing
set udg_camerasetup01 = CreateCameraSetup()
set udg_camerasetup02 = CreateCameraSetup()
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()
call ExecuteFunc("main2")
endfunction