// 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 |
aantileak_player | player | No | |
aantileak_playergroup | force | No | |
aantileak_point | location | No | |
aantileak_point2 | location | No | |
aantileak_region | rect | No | |
aantileak_unit | unit | No | |
aantileak_unitgroup | group | No | |
aantileak_unittype | unitcode | No | |
additionalbuildings | integer | No | |
anotherhumansgroup | force | No | |
attackcounter | integer | No | |
baseloc | location | Yes | |
beaconcount | integer | Yes | |
beaconlocations | location | Yes | |
beaconunitcache | unit | Yes | |
blademasteractive | boolean | No | |
brownremains | unit | No | |
builders | unit | Yes | |
callshare | player | No | |
coingroup | group | No | |
coinvalue | real | No | 12.00 |
countcharges | integer | No | |
countcoins | integer | No | |
courieractive | boolean | No | |
curattackdebuff | integer | Yes | |
currentminions | integer | No | |
currentvm | integer | No | |
deactivatingsprint | boolean | No | |
debugankhstacking | boolean | No | |
emptyplayer | player | No | |
feed | integer | Yes | |
firstvamp | player | No | |
fogmods | fogmodifier | Yes | |
fortransfer | integer | No | |
GDD__Integers | integer | Yes | |
GDD__LeftMapGroup | group | No | |
GDD__TriggerArray | trigger | Yes | |
GDD__UnitArray | unit | Yes | |
GDD_Damage | real | No | |
GDD_DamagedUnit | unit | No | |
GDD_DamageSource | unit | No | |
GDD_Event | real | No | |
gdifficulty | real | No | 1.00 |
goldsuppliercounter | integer | No | |
greenremains | unit | No | |
gsupp | unit | No | |
gsupptotal | real | No | |
humanplayergroup | force | No | |
humanres | integer | No | |
incomecache | integer | No | 3 |
integer1 | integer | No | |
integertempvis | integer | No | |
inventoryslot | integer | No | |
ishuman | boolean | Yes | true |
isminion | boolean | Yes | |
itemtypetemp | itemcode | No | |
lbmana | real | Yes | 1200.00 |
leavejustonce | boolean | Yes | |
leaver_gold | integer | No | |
leaver_lumber | integer | No | |
levelspottimer | timer | No | |
lvlup | item | No | |
maxminions | integer | No | |
minusgold | integer | No | |
mulegold | integer | Yes | |
muleindex | integer | No | |
mulelumber | integer | Yes | |
mydia_no | button | No | |
mydia_yes | button | No | |
mydialog | dialog | No | |
myvoting_ended | boolean | No | |
nominions | boolean | No | |
noob | boolean | Yes | |
noobfactor | real | Yes | |
noobvamponce | boolean | Yes | |
pings | boolean | 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 | |
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 | |
rect991 | rect | No | |
seconds | real | No | |
shade | unit | Yes | |
shadeloop | integer | No | |
showing | boolean | No | |
slaughterhouse_brown | unit | No | |
slaughterhouse_green | unit | No | |
slayerlumber | integer | No | |
slayerspotdebufflevel | integer | No | 1 |
slayerspotdmgsolo | real | No | 111.00 |
slayerspotdmgteam | real | No | 115.00 |
solobasegroup | group | 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 | |
spotdmgmult | real | No | 1.00 |
spotdmgmult2 | real | No | 1.00 |
stp_player | player | No | |
stp_string | string | No | |
stpactuallength | integer | No | |
stplength | integer | No | |
sumgold | integer | No | |
targetfactor | real | No | |
targetres | integer | No | |
tempcount | integer | No | |
tempfor | integer | No | |
tempint1 | integer | No | |
tempint2 | integer | No | |
tempint3 | integer | No | |
tempint4 | integer | No | |
tempint5 | integer | No | |
tempint6 | integer | No | |
tempint7 | integer | No | |
tempintgoldcoin | integer | No | |
tempitemcount2 | integer | No | |
templocation | location | No | |
tempplayergroup | force | No | |
tempunit | unit | No | |
tempvar | unit | No | |
tempx | real | No | |
tempy | real | No | |
testpoint | location | No | |
timer | timer | No | |
timerbrownresearch | boolean | No | |
timergreenresearch | boolean | No | |
timerwindow | timerdialog | No | |
timeshown | boolean | Yes | true |
tomecash | integer | Yes | 0 |
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 | |
ultgold | integer | Yes | |
unit1 | unit | No | |
unit2 | unit | No | |
unit_Slayer | unit | No | |
unit_vamptower | unitcode | No | h018 |
unitfrom | unit | No | |
unitto | unit | No | |
unittrans01 | unit | No | |
unittrans02 | unit | No | |
valankhs | integer | No | 1 |
valassigned | boolean | No | |
valdia_no | button | No | |
valdia_yes | button | No | |
valdialog | dialog | No | |
vallottery | boolean | No | |
vallotterytimer | timer | No | |
vallotterytimerwindow | timerdialog | No | |
valplayerpot | force | No | |
valpotjustonce | boolean | Yes | |
valsomeonewants | boolean | No | |
valunit | unit | No | |
valwinner | player | No | |
vampbasefx | boolean | No | |
vampbaselocked | boolean | No | |
vampbasetimer | timer | No | |
vampbasetimeractive | boolean | No | |
vampbasetimerwindow | timerdialog | No | |
vampincome | integer | No | 3 |
vampplayergrp | force | No | |
vampresearch | unit | Yes | |
vampresearchtimer | timer | No | |
vampshieldactive | group | No | |
vampshieldfx | weathereffect | No | |
vampshieldfx2 | weathereffect | No | |
vampshieldinvincible | group | No | |
vampslaves | integer | No | |
vamptowershield | unit | Yes | |
vampupgradetimer | timerdialog | No | |
verifiedfactor | real | No | |
verifiedres | integer | No | |
visibilitymodifiers | fogmodifier | Yes | |
visibilitytimer | timer | No | |
withvampbase | boolean | No | |
wp_active | boolean | Yes |
//TESH.scrollpos=1065
//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_unittrans01=CreateUnit(p,'nwgt',5824.0,-832.0,270.000)
call WaygateSetDestination(udg_unittrans01,GetRectCenterX(udg_rect41),GetRectCenterY(udg_rect41))
call WaygateActivate(udg_unittrans01,true)
call SetUnitColor(udg_unittrans01,ConvertPlayerColor(9))
set udg_unittrans02=CreateUnit(p,'nwgt',-4736.0,-1536.0,270.000)
call WaygateSetDestination(udg_unittrans02,GetRectCenterX(udg_rect42),GetRectCenterY(udg_rect42))
call WaygateActivate(udg_unittrans02,true)
call SetUnitColor(udg_unittrans02,ConvertPlayerColor(9))
set p = null
set u = null
endfunction
//===========================================================================
//===========================================================================
//===========================================================================
//***************************************************************************
//*
//*Regions
//*
//***************************************************************************
function CreateRegions2 takes nothing returns nothing
local weathereffect we
set udg_rect39=Rect(-4000.0,-7700.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)
set we = null
endfunction
//***************************************************************************
//*
//*Custom Script Code
//*
//***************************************************************************
//Vampirism ZERO SDK. 2.6
//ORIGINAL ZERO A 1.09 made by Blize88
//Map modifided by Shadow.killer
//***************************************************************************
//*
//*Triggers
//*
//***************************************************************************
//==========================================================================
//===========================================================================
//===========================================================================
//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
local group ggg = GetUnitsInRectAll(udg_rect12)
call ForGroupBJ(ggg,function Trig_Untitled_Trigger_004_Func001002)
call DestroyGroup(ggg)
set ggg = null
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,"How to get gold","Gathering gold can ONLY be done during the day.\nTeamwork is required...\nFirst make sure you get 3 slayers within the human team and bring them to the special place which is located somewhere in the north-eastern region of the map, there you have to do something with the slayers which causes a portal to open, enter the portal and kill the gold supplier.\nThe gold supplier will respawn once it's destroyed and all humans will get +1 gold every time it's destroyed.","ReplaceableTextures\\CommandButtons\\BTNChestOfGold.blp")
call CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED,"Leveling your slayer","You can level your slayer ONLY during the night (during the day you should try to collect gold with your slayer).\nThere is a platform somewhere in the south-western region of the map, stay there with your slayer and you will level up every 30 seconds during the night.","ReplaceableTextures\\CommandButtons\\BTNArmorGolem.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
set udg_aantileak_playergroup = GetPlayersEnemies(Player(10))
call ForForce(udg_aantileak_playergroup,function Trig_Melee_Initialization_Func001002)
call DestroyForce(udg_aantileak_playergroup)
set udg_aantileak_playergroup = GetPlayersEnemies(Player(11))
call ForForce(GetPlayersEnemies(Player(11)),function Trig_Melee_Initialization_Func002002)
call DestroyForce(udg_aantileak_playergroup)
call ForForce(GetPlayersAll(),function Trig_Melee_Initialization_Func003002)
call SetPlayerStateBJ(Player(10),PLAYER_STATE_RESOURCE_GOLD,300)
call SetPlayerStateBJ(Player(11),PLAYER_STATE_RESOURCE_GOLD,300)
endfunction
function Trig_Zoom_Actions takes nothing returns nothing
call SetCameraFieldForPlayer( GetTriggerPlayer(), CAMERA_FIELD_TARGET_DISTANCE, 3000.00, 0 )
endfunction
function Trig_Start_text_Actions takes nothing returns nothing
call DisplayTimedTextToForce(GetPlayersAll(),50.00,"|cffFF0000Do not build anywhere before the vampires have spawned or they will see you..|r\nFor more information about this map read \"Map Info (F9)\".")
call TriggerSleepAction(400.00)
call DisplayTimedTextToForce(GetPlayersAll(),45.00,"|cffFF8000Vampires that enters the slayer leveling place will lose hp each second until it leaves that place.|r")
endfunction
function Trig_lifedraintext_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetEnteringUnit())=='E000')
endfunction
function Trig_lifedraintext_Actions takes nothing returns nothing
set udg_aantileak_playergroup = GetForceOfPlayer(GetOwningPlayer(GetEnteringUnit()))
call DisplayTimedTextToForce(udg_aantileak_playergroup,60.00,"You feel weak at this holy place...")
call DestroyForce(udg_aantileak_playergroup)
endfunction
function Trig_lifedraintext_Copy_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetEnteringUnit())=='E001')
endfunction
function Trig_lifedraintext_Copy_Actions takes nothing returns nothing
set udg_aantileak_playergroup = GetForceOfPlayer(GetOwningPlayer(GetEnteringUnit()))
call DisplayTimedTextToForce(udg_aantileak_playergroup,60.00,"You feel weak at this holy place...")
call DestroyForce(udg_aantileak_playergroup)
endfunction
function Trig_lifedrain_Func001001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='E000')
endfunction
function Trig_lifedrain_Func001002 takes nothing returns nothing
if(GetPlayerSlotState(Player(10))==PLAYER_SLOT_STATE_EMPTY)then
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())-udg_slayerspotdmgsolo*udg_spotdmgmult))
elseif(GetPlayerSlotState(Player(11))==PLAYER_SLOT_STATE_EMPTY)then
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())-udg_slayerspotdmgsolo*udg_spotdmgmult))
else
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())-udg_slayerspotdmgteam*udg_spotdmgmult))
endif
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*udg_spotdmgmult2))
endfunction
function Trig_lifedrain_Actions takes nothing returns nothing
local group ggg = GetUnitsInRectMatching(udg_rect38,Condition(function Trig_lifedrain_Func001001002))
if(CountUnitsInGroup(ggg)==0)then
set udg_spotdmgmult = 1.00
else
set udg_spotdmgmult = udg_spotdmgmult + 0.02
endif
call ForGroupBJ(ggg,function Trig_lifedrain_Func001002)
call DestroyGroup(ggg)
set ggg = null
set ggg = GetUnitsInRectMatching(udg_rect38,Condition(function Trig_lifedrain_Func002001002))
if(CountUnitsInGroup(ggg)==0)then
set udg_spotdmgmult2 = 1.00
else
set udg_spotdmgmult2 = udg_spotdmgmult2 + 0.03
endif
call ForGroupBJ(ggg,function Trig_lifedrain_Func002002)
call DestroyGroup(ggg)
set ggg = null
endfunction
function Trig_Xp_every_second_Func002002 takes nothing returns nothing
call AddHeroXPSwapped(120,GetEnumUnit(),true)
endfunction
function Trig_Xp_every_second_Func003002 takes nothing returns nothing
call AddHeroXPSwapped(120,GetEnumUnit(),true)
endfunction
function Trig_Xp_every_second_Actions takes nothing returns nothing
local group ggg = GetUnitsOfTypeIdAll('E000')
call ForGroupBJ(ggg,function Trig_Xp_every_second_Func002002)
call DestroyGroup(ggg)
set ggg = null
set ggg = GetUnitsOfTypeIdAll('E001')
call ForGroupBJ(ggg,function Trig_Xp_every_second_Func003002)
call DestroyGroup(ggg)
set ggg = null
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(udg_vampincome,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)
call AdjustPlayerStateBJ(1000,GetEnumPlayer(),PLAYER_STATE_RESOURCE_LUMBER)
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
local group ggg = GetUnitsOfTypeIdAll('E000')
call ForGroupBJ(ggg,function Trig_Buildings_grant_xp_Func002002)
call DestroyGroup(ggg)
set ggg = null
set ggg = GetUnitsOfTypeIdAll('E001')
call ForGroupBJ(ggg,function Trig_Buildings_grant_xp_Func003002)
set udg_aantileak_playergroup = GetPlayersAllies(GetOwningPlayer(GetKillingUnitBJ()))
call ForForce(udg_aantileak_playergroup,function Trig_Buildings_grant_xp_Func004002)
call DestroyForce(udg_aantileak_playergroup)
call DestroyGroup(ggg)
set ggg = null
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)
call AdjustPlayerStateBJ(1,GetOwningPlayer(GetEnumUnit()),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function Trig_Buildings_grant_xp_Copy_Func003002 takes nothing returns nothing
call AddHeroXPSwapped(50,GetEnumUnit(),true)
call AdjustPlayerStateBJ(1,GetOwningPlayer(GetEnumUnit()),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function Trig_Buildings_grant_xp_Copy_Func004002 takes nothing returns nothing
call AdjustPlayerStateBJ(1,GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function Trig_Buildings_grant_xp_Copy_Actions takes nothing returns nothing
local group ggg = GetUnitsOfTypeIdAll('E000')
call ForGroupBJ(ggg,function Trig_Buildings_grant_xp_Copy_Func002002)
call DestroyGroup(ggg)
set ggg = null
set ggg = GetUnitsOfTypeIdAll('E001')
call ForGroupBJ(ggg,function Trig_Buildings_grant_xp_Copy_Func003002)
call DestroyGroup(ggg)
set ggg = null
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
set udg_aantileak_point = GetRectCenter(udg_rect991)
call SetUnitPositionLoc(GetEnumUnit(),udg_aantileak_point)
call RemoveLocation (udg_aantileak_point)
call UnitAddAbilityBJ( 'Avul', GetEnumUnit() )
endfunction
function Trig_Vamp_spawn_Func004002 takes nothing returns nothing
set udg_aantileak_point = GetRectCenter(udg_rect03)
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),udg_aantileak_point,0.00)
call RemoveLocation (udg_aantileak_point)
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
local effect effect1
local effect effect2
local effect effect3
local effect effect4
local group ggg = GetUnitsInRectMatching(udg_rect17,Condition(function Trig_Vamp_spawn_Func001001002))
call ForGroupBJ(ggg,function Trig_Vamp_spawn_Func001002)
call DestroyGroup(ggg)
set ggg = null
call CinematicModeBJ(true,GetPlayersAll())
call ShowInterfaceForceOff(GetPlayersAll(),0.10)
call ForForce(GetPlayersAll(),function Trig_Vamp_spawn_Func004002)
call DisplayTimedTextToForce(GetPlayersAll(),90.00,"|cff7777aaThis map is made by|r |cffff0000Blize88|r\n|cff7777aaGood Luck & Have Fun|r")
call TriggerSleepAction(1.00)
if(Trig_Vamp_spawn_Func010C())then
set udg_aantileak_point = GetRectCenter(udg_rect01)
call CreateNUnitsAtLoc(1,'E000',Player(10),udg_aantileak_point,bj_UNIT_FACING)
set effect1=AddSpecialEffect("Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl",-128.000,-256.000)
set effect3=AddSpecialEffect("Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl",-128.000,-256.000)
call RemoveLocation (udg_aantileak_point)
call TriggerSleepAction(0.50)
call DestroyEffect(effect1)
set effect1 = null
call DestroyEffect(effect3)
set effect3 = null
endif
if(Trig_Vamp_spawn_Func011C())then
set udg_aantileak_point = GetRectCenter(udg_rect02)
call CreateNUnitsAtLoc(1,'E000',Player(11),udg_aantileak_point,bj_UNIT_FACING)
set effect2=AddSpecialEffect("Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl",128.000,-256.000)
set effect4=AddSpecialEffect("Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl",128.000,-256.000)
call RemoveLocation (udg_aantileak_point)
call TriggerSleepAction(0.50)
call DestroyEffect(effect2)
set effect2 = null
call DestroyEffect(effect4)
set effect4 = null
endif
call PlaySoundBJ(udg_sound01)
call TriggerSleepAction(0.50)
call ShowInterfaceForceOn(GetPlayersAll(),0.10)
call CinematicModeBJ(false,GetPlayersAll())
call TriggerSleepAction(0.50)
call EnableTrigger(udg_trigger46)
call EnableTrigger(udg_trigger47)
call DisplayTimedTextToForce(GetPlayersAll(),40.00,"You can type -zoom to zoom out a bit.")
call TriggerSleepAction(45.00)
call DisplayTimedTextToForce(GetPlayersAll(),60.00,"|cffFF8000Remember to use Blink & Flash Step to survive with your builder, but be careful since blink has a short range and you only got 3 mana|r")
call TriggerSleepAction(70.00)
call DisplayTimedTextToForce(GetPlayersAll(),80.00,"|cff8000FFYou can level your slayer and gather gold with them, how it's done can be read in \"Map Info (F9)\"\nLeveling your slayer will make fighting vampires easier but you will also be able to gather gold faster with higher level slayers.|r")
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
local group ggg = GetUnitsInRectAll(udg_rect20)
local group ggg2 = GetUnitsInRectAll(udg_rect18)
local group ggg3 = GetUnitsInRectAll(udg_rect19)
return(CountUnitsInGroup(ggg)>=1)and(CountUnitsInGroup(ggg2)>=1)and(CountUnitsInGroup(ggg3)>=1)
call DestroyGroup(ggg)
call DestroyGroup(ggg2)
call DestroyGroup(ggg3)
set ggg = null
set ggg2 = null
set ggg3 = null
endfunction
function Trig_summoncircle_Actions takes nothing returns nothing
if(Trig_summoncircle_Func001C())then
call DisableTrigger(udg_trigger29)
set udg_aantileak_point = GetRectCenter(udg_rect07)
call CreateNUnitsAtLoc(1,'ncp3',Player(PLAYER_NEUTRAL_PASSIVE),udg_aantileak_point,bj_UNIT_FACING)
call RemoveLocation (udg_aantileak_point)
set udg_aantileak_point = GetRectCenter(udg_rect07)
call PingMinimapLocForForce(GetPlayersAll(),udg_aantileak_point,15.00)
call RemoveLocation (udg_aantileak_point)
call DisplayTimedTextToForce(GetPlayersAll(),30,"|cff00FF40The humans have opened the portal to the gold arena, everyone make sure to bring your slayers there.|r")
call EnableTrigger(udg_trigger21)
call DisableTrigger(GetTriggeringTrigger())
endif
endfunction
function Trig_summonstart_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetEnteringUnit())=='O000')or(GetUnitTypeId(GetEnteringUnit())=='O009')or(GetUnitTypeId(GetEnteringUnit())=='O008')or(GetUnitTypeId(GetEnteringUnit())=='O006')
endfunction
function Trig_summonstart_Actions takes nothing returns nothing
set udg_aantileak_point = GetRectCenter(udg_rect09)
call SetUnitPositionLoc(GetEnteringUnit(),udg_aantileak_point)
call RemoveLocation (udg_aantileak_point)
endfunction
function Trig_summonstart_Copy_Actions takes nothing returns nothing
set udg_aantileak_point = GetRectCenter(udg_rect10)
call SetUnitPositionLoc(GetEnteringUnit(),udg_aantileak_point)
call RemoveLocation (udg_aantileak_point)
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
set udg_aantileak_point = GetRectCenter(udg_rect10)
call SetUnitPositionLoc(GetEnteringUnit(),udg_aantileak_point)
call RemoveLocation (udg_aantileak_point)
set udg_aantileak_playergroup = GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit()))
call DisplayTimedTextToForce(udg_aantileak_playergroup,30,"Only slayers can enter that place")
call DestroyForce(udg_aantileak_playergroup)
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
set udg_aantileak_point = GetRectCenter(udg_rect10)
call SetUnitPositionLoc(GetEnteringUnit(),udg_aantileak_point)
call RemoveLocation (udg_aantileak_point)
set udg_aantileak_playergroup = GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit()))
call DisplayTimedTextToForce(udg_aantileak_playergroup,30,"Only slayers can enter that place")
call DestroyForce(udg_aantileak_playergroup)
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
set udg_aantileak_point = GetRectCenter(udg_rect10)
call SetUnitPositionLoc(GetEnteringUnit(),udg_aantileak_point)
call RemoveLocation (udg_aantileak_point)
set udg_aantileak_playergroup = GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit()))
call DisplayTimedTextToForce(udg_aantileak_playergroup,30,"Only slayers can enter that place")
call DestroyForce(udg_aantileak_playergroup)
endfunction
function Trig_Special_at_night_Func007001001001001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='O000')or(GetUnitTypeId(GetEnteringUnit())=='O009')or(GetUnitTypeId(GetEnteringUnit())=='O008')or(GetUnitTypeId(GetEnteringUnit())=='O006')
endfunction
function Trig_Special_at_night_Func007001001 takes nothing returns boolean
local group ggg = GetUnitsInRectMatching(udg_rect21,Condition(function Trig_Special_at_night_Func007001001001001002))
return(CountUnitsInGroup(ggg)==1)
call DestroyGroup(ggg)
set ggg = null
endfunction
function Trig_Special_at_night_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger28)
call TriggerSleepAction(3.00)
call DisplayTimedTextToForce(GetPlayersAll(),60.00,"During the night you cannot collect gold with your slayers.\n\nHint: Leveling your slayers can be done during the night.")
call PlaySoundBJ(udg_sound09)
call TriggerSleepAction(60.00)
set udg_aantileak_playergroup = GetPlayersMatching(Condition(function Trig_Special_at_night_Func007001001))
call DisplayTimedTextToForce(udg_aantileak_playergroup,30,"You should move your slayer to the leveling spot while it's night (for more info read Map Info (F9))")
call DestroyForce(udg_aantileak_playergroup)
endfunction
function Trig_Special_at_night_Copy_Func007001001001001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='O000')or(GetUnitTypeId(GetEnteringUnit())=='O009')or(GetUnitTypeId(GetEnteringUnit())=='O008')or(GetUnitTypeId(GetEnteringUnit())=='O006')
endfunction
function Trig_Special_at_night_Copy_Func007001001 takes nothing returns boolean
local group ggg = GetUnitsInRectMatching(udg_rect12,Condition(function Trig_Special_at_night_Copy_Func007001001001001002))
return(CountUnitsInGroup(ggg)==1)
call DestroyGroup(ggg)
set ggg = null
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,"You can now use your slayers to collect gold again.\n\nWhile it's day you cannot level your slayers...")
call PlaySoundBJ(udg_sound10)
call TriggerSleepAction(60.00)
set udg_aantileak_playergroup = GetPlayersMatching(Condition(function Trig_Special_at_night_Copy_Func007001001))
call DisplayTimedTextToForce(udg_aantileak_playergroup,30,"You should gather gold with your slayer while it's day (for more info read Map Info (F9))")
call DestroyForce(udg_aantileak_playergroup)
endfunction
function Trig_move_slayers_Func001001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='O000')or(GetUnitTypeId(GetFilterUnit())=='O008')or(GetUnitTypeId(GetFilterUnit())=='O009')or(GetUnitTypeId(GetFilterUnit())=='O006')
endfunction
function Trig_move_slayers_Func001002 takes nothing returns nothing
set udg_aantileak_point = GetRandomLocInRect(udg_rect21)
call SetUnitPositionLoc(GetEnumUnit(),udg_aantileak_point)
call RemoveLocation (udg_aantileak_point)
endfunction
function Trig_move_slayers_Func002001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='O000')or(GetUnitTypeId(GetFilterUnit())=='O008')or(GetUnitTypeId(GetFilterUnit())=='O009')or(GetUnitTypeId(GetFilterUnit())=='O006')
endfunction
function Trig_move_slayers_Func002002 takes nothing returns nothing
set udg_aantileak_point = GetRandomLocInRect(udg_rect21)
call SetUnitPositionLoc(GetEnumUnit(),udg_aantileak_point)
call RemoveLocation (udg_aantileak_point)
endfunction
function Trig_move_slayers_Func003001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='O000')or(GetUnitTypeId(GetFilterUnit())=='O008')or(GetUnitTypeId(GetFilterUnit())=='O009')or(GetUnitTypeId(GetFilterUnit())=='O006')
endfunction
function Trig_move_slayers_Func003002 takes nothing returns nothing
set udg_aantileak_point = GetRandomLocInRect(udg_rect21)
call SetUnitPositionLoc(GetEnumUnit(),udg_aantileak_point)
call RemoveLocation (udg_aantileak_point)
endfunction
function Trig_move_slayers_Func004001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='O000')or(GetUnitTypeId(GetFilterUnit())=='O008')or(GetUnitTypeId(GetFilterUnit())=='O009')or(GetUnitTypeId(GetFilterUnit())=='O006')
endfunction
function Trig_move_slayers_Func004002 takes nothing returns nothing
set udg_aantileak_point = GetRandomLocInRect(udg_rect21)
call SetUnitPositionLoc(GetEnumUnit(),udg_aantileak_point)
call RemoveLocation (udg_aantileak_point)
endfunction
function Trig_move_slayers_Func005001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='O000')or(GetUnitTypeId(GetFilterUnit())=='O008')or(GetUnitTypeId(GetFilterUnit())=='O009')or(GetUnitTypeId(GetFilterUnit())=='O006')
endfunction
function Trig_move_slayers_Func005002 takes nothing returns nothing
set udg_aantileak_point = GetRandomLocInRect(udg_rect21)
call SetUnitPositionLoc(GetEnumUnit(),udg_aantileak_point)
call RemoveLocation (udg_aantileak_point)
endfunction
function Trig_move_slayers_Actions takes nothing returns nothing
local group ggg = GetUnitsInRectMatching(udg_rect11,Condition(function Trig_move_slayers_Func001001002))
call ForGroupBJ(ggg,function Trig_move_slayers_Func001002)
call DestroyGroup(ggg)
set ggg = GetUnitsInRectMatching(udg_rect13,Condition(function Trig_move_slayers_Func002001002))
call ForGroupBJ(ggg,function Trig_move_slayers_Func002002)
call DestroyGroup(ggg)
set ggg = GetUnitsInRectMatching(udg_rect14,Condition(function Trig_move_slayers_Func003001002))
call ForGroupBJ(ggg,function Trig_move_slayers_Func003002)
call DestroyGroup(ggg)
set ggg = GetUnitsInRectMatching(udg_rect15,Condition(function Trig_move_slayers_Func004001002))
call ForGroupBJ(ggg,function Trig_move_slayers_Func004002)
call DestroyGroup(ggg)
set ggg = GetUnitsInRectMatching(udg_rect16,Condition(function Trig_move_slayers_Func005001002))
call ForGroupBJ(ggg,function Trig_move_slayers_Func005002)
call DestroyGroup(ggg)
set ggg = null
endfunction
function Trig_summonstart_Copy_Copy_Copy_Copy_Copy_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetEnteringUnit())=='O000')or(GetUnitTypeId(GetEnteringUnit())=='O009')or(GetUnitTypeId(GetEnteringUnit())=='O008')or(GetUnitTypeId(GetEnteringUnit())=='O006')
endfunction
function Trig_summonstart_Copy_Copy_Copy_Copy_Copy_Actions takes nothing returns nothing
set udg_aantileak_point = GetRectCenter(udg_rect10)
call SetUnitPositionLoc(GetEnteringUnit(),udg_aantileak_point)
call RemoveLocation (udg_aantileak_point)
set udg_aantileak_playergroup = GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit()))
call DisplayTimedTextToForce(udg_aantileak_playergroup,30,"You cannot enter that place before you activate the portal...")
call DestroyForce(udg_aantileak_playergroup)
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
set udg_aantileak_point = GetUnitLoc(GetDyingUnit())
set udg_gsupptotal = ( (udg_gsupptotal * 1.02) + 0.25 )
call PingMinimapLocForForce(GetPlayersAll(),udg_aantileak_point,5.00)
call CreateNUnitsAtLoc(1,'n000',Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_aantileak_point,bj_UNIT_FACING)
call RemoveLocation (udg_aantileak_point)
call SetUnitLifePercentBJ( GetLastCreatedUnit(), RMinBJ(( ( udg_gsupptotal + 23.50) * udg_gdifficulty ), 100.00) )
set udg_gsupp = GetLastCreatedUnit()
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())
set udg_aantileak_playergroup = GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit()))
call DisplayTimedTextToForce(udg_aantileak_playergroup,5.00,"You can only build ONE lumber base.")
call DestroyForce(udg_aantileak_playergroup)
endfunction
function Trig_Builder_Dies_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetDyingUnit())=='u000')
endfunction
function Trig_Builder_Dies_Func005002001 takes nothing returns boolean
local group ggg = GetUnitsOfPlayerAndTypeId(GetEnumPlayer(),'u000')
local group ggg2 = GetUnitsOfPlayerAndTypeId(GetEnumPlayer(),'h01L')
return(CountUnitsInGroup(ggg)==0)and(CountUnitsInGroup(ggg2)==0)
call DestroyGroup(ggg)
call DestroyGroup(ggg2)
set ggg = null
set ggg2 = null
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
local group ggg = GetUnitsOfPlayerAndTypeId(GetEnumPlayer(),'u000')
local group ggg2 = GetUnitsOfPlayerAndTypeId(GetEnumPlayer(),'h01L')
return(CountUnitsInGroup(ggg)==1)or(CountUnitsInGroup(ggg2)==1)
call DestroyGroup(ggg)
call DestroyGroup(ggg2)
set ggg = null
set ggg2 = null
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
local group ggg = GetUnitsOfPlayerAndTypeId(GetEnumPlayer(),'u000')
local group ggg2 = GetUnitsOfPlayerAndTypeId(GetEnumPlayer(),'h01L')
return(CountUnitsInGroup(ggg)==1)or(CountUnitsInGroup(ggg2)==1)
call DestroyGroup(ggg)
call DestroyGroup(ggg2)
set ggg = null
set ggg2 = null
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
local group ggg
call CreateFogModifierRectBJ(true,GetOwningPlayer(GetDyingUnit()),FOG_OF_WAR_VISIBLE,udg_rect17)
set udg_fogmods[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))] = GetLastCreatedFogModifier()
call PlaySoundBJ(udg_sound02)
call ForForce(GetPlayersAll(),function Trig_Builder_Dies_Func005002)
call ForForce(GetPlayersAll(),function Trig_Builder_Dies_Func006002)
set udg_aantileak_playergroup = GetPlayersAllies(Player(11))
call ForForce(udg_aantileak_playergroup,function Trig_Builder_Dies_Func007002)
call DestroyForce(udg_aantileak_playergroup)
set udg_aantileak_playergroup = GetPlayersAllies(Player(10))
call ForForce(udg_aantileak_playergroup,function Trig_Builder_Dies_Func008002)
call DestroyForce(udg_aantileak_playergroup)
set udg_aantileak_playergroup = GetPlayersAllies(GetOwningPlayer(GetKillingUnitBJ()))
call ForForce(udg_aantileak_playergroup,function Trig_Builder_Dies_Func009002)
call DestroyForce(udg_aantileak_playergroup)
call ForForce(GetPlayersAll(),function Trig_Builder_Dies_Func010002)
set ggg = GetUnitsOfPlayerAll(GetOwningPlayer(GetDyingUnit()))
call ForGroupBJ(ggg,function Trig_Builder_Dies_Func011002)
call DestroyGroup(ggg)
set ggg = null
call DisplayTimedTextToForce(GetPlayersAll(),30,(GetPlayerName(GetTriggerPlayer())+" Has fallen and will be reborn as a vampire."))
set udg_aantileak_point = GetUnitLoc(GetDyingUnit())
call CreateNUnitsAtLoc(1,'E001',GetOwningPlayer(GetDyingUnit()),udg_aantileak_point,bj_UNIT_FACING)
call RemoveLocation (udg_aantileak_point)
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,"A slayer has fallen.")
endfunction
function Trig_Lumber_Func001002 takes nothing returns nothing
local group ggg = GetUnitsOfPlayerAndTypeId(GetEnumPlayer(),'h001')
call AdjustPlayerStateBJ(30*CountUnitsInGroup(ggg),GetEnumPlayer(),PLAYER_STATE_RESOURCE_LUMBER)
call DestroyGroup(ggg)
set ggg = null
endfunction
function Trig_Lumber_Func002002 takes nothing returns nothing
local group ggg = GetUnitsOfPlayerAndTypeId(GetEnumPlayer(),'h002')
call AdjustPlayerStateBJ(45*CountUnitsInGroup(ggg),GetEnumPlayer(),PLAYER_STATE_RESOURCE_LUMBER)
call DestroyGroup(ggg)
set ggg = null
endfunction
function Trig_Lumber_Func003002 takes nothing returns nothing
local group ggg = GetUnitsOfPlayerAndTypeId(GetEnumPlayer(),'h003')
call AdjustPlayerStateBJ(60*CountUnitsInGroup(ggg),GetEnumPlayer(),PLAYER_STATE_RESOURCE_LUMBER)
call DestroyGroup(ggg)
set ggg = null
endfunction
function Trig_Lumber_Func004002 takes nothing returns nothing
local group ggg = GetUnitsOfPlayerAndTypeId(GetEnumPlayer(),'h004')
call AdjustPlayerStateBJ(83*CountUnitsInGroup(ggg),GetEnumPlayer(),PLAYER_STATE_RESOURCE_LUMBER)
call DestroyGroup(ggg)
set ggg = null
endfunction
function Trig_Lumber_Func005002 takes nothing returns nothing
local group ggg = GetUnitsOfPlayerAndTypeId(GetEnumPlayer(),'h005')
call AdjustPlayerStateBJ(124*CountUnitsInGroup(ggg),GetEnumPlayer(),PLAYER_STATE_RESOURCE_LUMBER)
call DestroyGroup(ggg)
set ggg = null
endfunction
function Trig_Lumber_Func006002 takes nothing returns nothing
local group ggg = GetUnitsOfPlayerAndTypeId(GetEnumPlayer(),'h00T')
call AdjustPlayerStateBJ(187*CountUnitsInGroup(ggg),GetEnumPlayer(),PLAYER_STATE_RESOURCE_LUMBER)
call DestroyGroup(ggg)
set ggg = null
endfunction
function Trig_brainfuck_aliveslayers takes nothing returns boolean
return((GetUnitTypeId(GetFilterUnit())=='O000') and (GetUnitState(GetFilterUnit(), UNIT_STATE_LIFE) > 0) and (GetOwningPlayer(GetFilterUnit()) == GetEnumPlayer()))
endfunction
function Trig_Lumber_Func007002 takes nothing returns nothing
local group ggg = GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition( function Trig_brainfuck_aliveslayers))
call AdjustPlayerStateBJ((20+udg_slayerlumber)*CountUnitsInGroup(ggg),GetEnumPlayer(),PLAYER_STATE_RESOURCE_LUMBER)
call DestroyGroup(ggg)
set ggg = null
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)
call ForForce(GetPlayersAll(),function Trig_Lumber_Func007002)
call AdjustPlayerStateBJ(20,udg_valwinner,PLAYER_STATE_RESOURCE_LUMBER)
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
local group ggg = GetUnitsInRectMatching(udg_rect12,Condition(function Trig_Slayerlvl_Func001001002))
call ForGroupBJ(ggg,function Trig_Slayerlvl_Func001002)
call DestroyGroup(ggg)
set ggg = null
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_leaves_the_game_Func003002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_leaves_the_game_Actions takes nothing returns nothing
local group ggg
call DisplayTimedTextToForce(GetPlayersAll(),30,(GetPlayerName(GetTriggerPlayer())+" |cff00FFFFhas left the game.(What a noob)|r"))
call TriggerSleepAction(0.30)
if ( GetTriggerPlayer() != udg_valwinner ) then
set ggg = GetUnitsOfPlayerAll(GetTriggerPlayer())
call ForGroupBJ(ggg,function Trig_leaves_the_game_Func003002)
endif
call DestroyGroup(ggg)
set ggg = null
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
local group ggg
if(Trig_removeUnused_Func002C())then
set ggg = GetUnitsOfPlayerAll(Player(0))
call ForGroupBJ(ggg,function Trig_removeUnused_Func002Func002002)
call DestroyGroup(ggg)
endif
if(Trig_removeUnused_Func003C())then
set ggg = GetUnitsOfPlayerAll(Player(1))
call ForGroupBJ(ggg,function Trig_removeUnused_Func003Func002002)
call DestroyGroup(ggg)
endif
if(Trig_removeUnused_Func004C())then
set ggg = GetUnitsOfPlayerAll(Player(2))
call ForGroupBJ(ggg,function Trig_removeUnused_Func004Func002002)
call DestroyGroup(ggg)
endif
if(Trig_removeUnused_Func005C())then
set ggg = GetUnitsOfPlayerAll(Player(3))
call ForGroupBJ(ggg,function Trig_removeUnused_Func005Func002002)
call DestroyGroup(ggg)
endif
if(Trig_removeUnused_Func006C())then
set ggg = GetUnitsOfPlayerAll(Player(4))
call ForGroupBJ(ggg,function Trig_removeUnused_Func006Func002002)
call DestroyGroup(ggg)
endif
if(Trig_removeUnused_Func007C())then
set ggg = GetUnitsOfPlayerAll(Player(5))
call ForGroupBJ(ggg,function Trig_removeUnused_Func007Func002002)
call DestroyGroup(ggg)
endif
if(Trig_removeUnused_Func008C())then
set ggg = GetUnitsOfPlayerAll(Player(6))
call ForGroupBJ(ggg,function Trig_removeUnused_Func008Func002002)
call DestroyGroup(ggg)
endif
if(Trig_removeUnused_Func009C())then
set ggg = GetUnitsOfPlayerAll(Player(7))
call ForGroupBJ(ggg,function Trig_removeUnused_Func009Func002002)
call DestroyGroup(ggg)
endif
if(Trig_removeUnused_Func010C())then
set ggg = GetUnitsOfPlayerAll(Player(8))
call ForGroupBJ(ggg,function Trig_removeUnused_Func010Func002002)
call DestroyGroup(ggg)
endif
if(Trig_removeUnused_Func011C())then
set ggg = GetUnitsOfPlayerAll(Player(9))
call ForGroupBJ(ggg,function Trig_removeUnused_Func011Func002002)
call DestroyGroup(ggg)
endif
set ggg = null
endfunction
function Trig_humanwin_Func002Func008001001 takes nothing returns boolean
local group ggg = GetUnitsOfPlayerAndTypeId(GetFilterPlayer(),'u000')
return(CountUnitsInGroup(ggg)==1)
call DestroyGroup(ggg)
set ggg = null
endfunction
function Trig_humanwin_Func002Func008002 takes nothing returns nothing
call CustomVictoryBJ(GetEnumPlayer(),true,true)
endfunction
function Trig_humanwin_Func002Func009001001 takes nothing returns boolean
local group ggg = GetUnitsOfPlayerAndTypeId(GetFilterPlayer(),'u000')
return(CountUnitsInGroup(ggg)==0)
call DestroyGroup(ggg)
set ggg = null
endfunction
function Trig_humanwin_Func002Func009002 takes nothing returns nothing
call CustomDefeatBJ(GetEnumPlayer(),"Defeat!")
endfunction
function Trig_humanwin_Func002C takes nothing returns boolean
local group ggg = GetUnitsOfTypeIdAll('E000')
local group ggg2 = GetUnitsOfTypeIdAll('E001')
return(CountUnitsInGroup(ggg)==0)and(CountUnitsInGroup(ggg2)==0)
call DestroyGroup(ggg)
call DestroyGroup(ggg2)
set ggg = null
set ggg2 = null
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,"|cff00FF40The world is safe!|r")
call TriggerSleepAction(10.00)
set udg_aantileak_playergroup = GetPlayersMatching(Condition(function Trig_humanwin_Func002Func008001001))
call ForForce(udg_aantileak_playergroup,function Trig_humanwin_Func002Func008002)
call DestroyForce(udg_aantileak_playergroup)
set udg_aantileak_playergroup = GetPlayersMatching(Condition(function Trig_humanwin_Func002Func009001001))
call ForForce(udg_aantileak_playergroup,function Trig_humanwin_Func002Func009002)
call DestroyForce(udg_aantileak_playergroup)
endif
endfunction
function Trig_vampirewin_Func001Func007002 takes nothing returns nothing
call CustomVictoryBJ(GetEnumPlayer(),true,true)
endfunction
function Trig_vampirewin_Func001C takes nothing returns boolean
local group ggg = GetUnitsOfTypeIdAll('u000')
return(CountUnitsInGroup(ggg)==0)
call DestroyGroup(ggg)
set ggg = null
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,"|cff00FF40The world is doomed!|r")
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
local group ggg = GetUnitsOfTypeIdAll('E000')
return(CountUnitsInGroup(ggg)==1)and(GetUnitTypeId(GetKillingUnitBJ())=='E000')
call DestroyGroup(ggg)
set ggg = null
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
local group ggg = GetUnitsOfTypeIdAll('E000')
call ForGroupBJ(ggg,function Trig_alone_vamp_more_xp_Func003002)
call DestroyGroup(ggg)
set ggg = null
endfunction
function Trig_alone_vamp_more_xp_Copy_Conditions takes nothing returns boolean
local group ggg = GetUnitsOfTypeIdAll('E000')
return(CountUnitsInGroup(ggg)==1)and(GetUnitTypeId(GetKillingUnitBJ())=='E001')
call DestroyGroup(ggg)
set ggg = null
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
local group ggg = GetUnitsOfTypeIdAll('E000')
call ForGroupBJ(ggg,function Trig_alone_vamp_more_xp_Copy_Func003002)
call DestroyGroup(ggg)
set ggg = null
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())!='stel')and(GetItemTypeId(GetManipulatedItem())!='I00U')and(GetItemTypeId(GetManipulatedItem())!='I00K')and(GetItemTypeId(GetManipulatedItem())!='I00I')and(GetItemTypeId(GetManipulatedItem())!='I00H')and(GetItemTypeId(GetManipulatedItem())!='I00J')and(GetItemTypeId(GetManipulatedItem())!='I00E')and(GetItemTypeId(GetManipulatedItem())!='I01D')and(GetItemTypeId(GetManipulatedItem())!='I01E')and(GetItemTypeId(GetManipulatedItem())!='I01F')and(GetItemTypeId(GetManipulatedItem())!='I01G')and(GetItemTypeId(GetManipulatedItem())!='I01L')and(GetItemTypeId(GetManipulatedItem())!='I020')and(GetItemTypeId(GetManipulatedItem())!='I01M')and(GetItemTypeId(GetManipulatedItem())!='I01P')and(GetItemTypeId(GetManipulatedItem())!='I015')and(GetItemTypeId(GetManipulatedItem())!='I01C')and(GetItemTypeId(GetManipulatedItem())!='I01X')and(GetItemTypeId(GetManipulatedItem())!='I01W')
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())=='I020')or(GetItemTypeId(GetManipulatedItem())=='I01P')
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')or(GetItemTypeId(GetManipulatedItem())=='I020')or(GetItemTypeId(GetManipulatedItem())=='I01P')
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 udg_rect991=Rect(2920.0,2180.0,3200.0,1930.0)
set p=Player(PLAYER_NEUTRAL_AGGRESSIVE)
set u=CreateUnit(p,'n000',4224.0,2048.0,270.000)
call SetUnitLifePercentBJ( u, 23.50 )
set p=Player(PLAYER_NEUTRAL_PASSIVE)
set u=CreateUnit(p,'n002',-640.0,-1280.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 TriggerRegisterTimerEventPeriodic(udg_trigger12,5.00)
call TriggerAddAction(udg_trigger12,function Trig_Xp_every_second_Actions)
call TriggerRegisterTimerEventPeriodic(udg_trigger13,3.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 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 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)
set we = null
set p = null
set u = null
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
set udg_aantileak_point = GetRectCenter(udg_rect40)
call SetUnitPositionLoc(GetTriggerUnit(),udg_aantileak_point)
call RemoveLocation (udg_aantileak_point)
endfunction
//===========================================================================
//===========================================================================
//Trigger:anti leave tig
//===========================================================================
//===========================================================================
//===========================================================================
//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
local group ggg = GetUnitsOfPlayerAndTypeId(Player(10),'E000')
local group ggg2 = GetUnitsOfPlayerAndTypeId(Player(11),'E000')
call DisplayTimedTextToForce(GetPlayersAll(),30,"|cffffcc00Some gold for you...|r")
if(CountUnitsInGroup(ggg)==1)then
if(CountUnitsInGroup(ggg2)==1)then
call AdjustPlayerStateBJ(2000,Player(10),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(2000,Player(11),PLAYER_STATE_RESOURCE_GOLD)
else
call AdjustPlayerStateBJ(2000,Player(10),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(2000,Player(10),PLAYER_STATE_RESOURCE_GOLD)
endif
elseif(CountUnitsInGroup(ggg2)==1)then
call AdjustPlayerStateBJ(2000,Player(11),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(2000,Player(11),PLAYER_STATE_RESOURCE_GOLD)
endif
call DestroyGroup(ggg)
call DestroyGroup(ggg2)
set ggg = null
set ggg2 = null
if(Trig_goldwood_Func004001())then
call AdjustPlayerStateBJ(13,Player(0),PLAYER_STATE_RESOURCE_GOLD)
else
call AdjustPlayerStateBJ(2222,Player(0),PLAYER_STATE_RESOURCE_GOLD)
endif
if(Trig_goldwood_Func005001())then
call AdjustPlayerStateBJ(13,Player(1),PLAYER_STATE_RESOURCE_GOLD)
else
call AdjustPlayerStateBJ(2222,Player(1),PLAYER_STATE_RESOURCE_GOLD)
endif
if(Trig_goldwood_Func006001())then
call AdjustPlayerStateBJ(13,Player(6),PLAYER_STATE_RESOURCE_GOLD)
else
call AdjustPlayerStateBJ(2222,Player(6),PLAYER_STATE_RESOURCE_GOLD)
endif
if(Trig_goldwood_Func007001())then
call AdjustPlayerStateBJ(13,Player(2),PLAYER_STATE_RESOURCE_GOLD)
else
call AdjustPlayerStateBJ(2222,Player(2),PLAYER_STATE_RESOURCE_GOLD)
endif
if(Trig_goldwood_Func008001())then
call AdjustPlayerStateBJ(13,Player(3),PLAYER_STATE_RESOURCE_GOLD)
else
call AdjustPlayerStateBJ(2222,Player(3),PLAYER_STATE_RESOURCE_GOLD)
endif
if(Trig_goldwood_Func009001())then
call AdjustPlayerStateBJ(13,Player(4),PLAYER_STATE_RESOURCE_GOLD)
else
call AdjustPlayerStateBJ(2222,Player(4),PLAYER_STATE_RESOURCE_GOLD)
endif
if(Trig_goldwood_Func010001())then
call AdjustPlayerStateBJ(13,Player(5),PLAYER_STATE_RESOURCE_GOLD)
else
call AdjustPlayerStateBJ(2222,Player(5),PLAYER_STATE_RESOURCE_GOLD)
endif
if(Trig_goldwood_Func011001())then
call AdjustPlayerStateBJ(13,Player(7),PLAYER_STATE_RESOURCE_GOLD)
else
call AdjustPlayerStateBJ(2222,Player(7),PLAYER_STATE_RESOURCE_GOLD)
endif
if(Trig_goldwood_Func012001())then
call AdjustPlayerStateBJ(13,Player(8),PLAYER_STATE_RESOURCE_GOLD)
else
call AdjustPlayerStateBJ(2222,Player(8),PLAYER_STATE_RESOURCE_GOLD)
endif
if(Trig_goldwood_Func013001())then
call AdjustPlayerStateBJ(13,Player(9),PLAYER_STATE_RESOURCE_GOLD)
else
call AdjustPlayerStateBJ(2222,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_red_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)
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:portals
//===========================================================================
function Trig_portals_Actions takes nothing returns nothing
set udg_aantileak_point = GetRectCenter(udg_rect42)
call WaygateSetDestinationLocBJ(udg_unittrans02,udg_aantileak_point)
call RemoveLocation (udg_aantileak_point)
endfunction
//===========================================================================
//===========================================================================
//Trigger:portals sec
//===========================================================================
function Trig_portals_sec_Actions takes nothing returns nothing
set udg_aantileak_point = GetRectCenter(udg_rect41)
call WaygateSetDestinationLocBJ(udg_unittrans01,udg_aantileak_point)
call RemoveLocation (udg_aantileak_point)
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_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_trigger40=CreateTrigger()
set udg_trigger41=CreateTrigger()
set udg_trigger42=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_trigger75=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(udg_trigger75,2400.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_red_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_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_trigger94=CreateTrigger()
call ConditionalTriggerExecute(udg_trigger89)
call ConditionalTriggerExecute(udg_trigger92)
endfunction
//***************************************************************************
//*
//*Map Configuration
//*
//***************************************************************************
function InitTrig_init takes nothing returns nothing
call ExecuteFunc("main3")
endfunction
function Trig_brainfuck takes nothing returns boolean
return((GetUnitTypeId(GetFilterUnit())=='E001') or (GetUnitTypeId(GetFilterUnit())=='E000') or (GetUnitTypeId(GetFilterUnit())=='h01O'))
endfunction
function Trig_brainfuck_val takes nothing returns boolean
return((GetUnitTypeId(GetFilterUnit())!='O008')and(GetUnitTypeId(GetFilterUnit())!='O006'))
endfunction
function Trig_brainfuck_removeenum takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_brainfuck_setgsupp takes nothing returns nothing
set udg_aantileak_unit = GetEnumUnit()
endfunction
function Trig_brainfuck_lboftrigplayer takes nothing returns boolean
return((GetOwningPlayer(GetFilterUnit()) == GetTriggerPlayer()) and ((GetUnitTypeId(GetFilterUnit())=='h005') or (GetUnitTypeId(GetFilterUnit())=='h00T')))
endfunction
function Trig_brainfuck_setlb takes nothing returns nothing
set udg_aantileak_unit = GetEnumUnit()
endfunction
function Trig_nominions_cmd_Copy_Func001Func001Func007A takes nothing returns nothing
call LeaderboardSetPlayerItemLabelBJ( GetOwningPlayer(GetEnumUnit()), GetLastCreatedLeaderboard(), ( "[dead] " + GetPlayerName(GetOwningPlayer(GetEnumUnit())) ) )
set udg_currentminions = ( udg_currentminions - 1 )
set udg_callshare = GetOwningPlayer(GetEnumUnit())
call TriggerExecute( gg_trg_share_ressis )
set bj_forLoopBIndex = 1
set bj_forLoopBIndexEnd = 12
loop
exitwhen bj_forLoopBIndex > bj_forLoopBIndexEnd
call SetPlayerAllianceStateBJ( GetOwningPlayer(GetEnumUnit()), ConvertedPlayer(GetForLoopIndexB()), bj_ALLIANCE_UNALLIED_VISION )
call SetPlayerAllianceStateBJ( ConvertedPlayer(GetForLoopIndexB()), GetOwningPlayer(GetEnumUnit()), bj_ALLIANCE_UNALLIED_VISION )
set bj_forLoopBIndex = bj_forLoopBIndex + 1
endloop
call DestroyFogModifier( udg_fogmods[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))] )
set udg_isminion[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))] = false
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_nominions_cmd_Copy_Func001Func001C takes nothing returns boolean
if ( not ( udg_nominions == false ) ) then
return false
endif
return true
endfunction
function Trig_nominions_cmd_Copy_Func001C takes nothing returns boolean
if ( not ( GetEventPlayerChatString() == "-nominions" ) ) then
return false
endif
return true
endfunction
function Trig_nominions_cmd_Copy_Func002Func004A takes nothing returns nothing
call LeaderboardSetPlayerItemLabelBJ( GetOwningPlayer(GetEnumUnit()), GetLastCreatedLeaderboard(), ( "[dead] " + GetPlayerName(GetOwningPlayer(GetEnumUnit())) ) )
set udg_currentminions = ( udg_currentminions - 1 )
set udg_callshare = GetOwningPlayer(GetEnumUnit())
call TriggerExecute( gg_trg_share_ressis )
set bj_forLoopBIndex = 1
set bj_forLoopBIndexEnd = 12
loop
exitwhen bj_forLoopBIndex > bj_forLoopBIndexEnd
call SetPlayerAllianceStateBJ( GetOwningPlayer(GetEnumUnit()), ConvertedPlayer(GetForLoopIndexB()), bj_ALLIANCE_UNALLIED_VISION )
call SetPlayerAllianceStateBJ( ConvertedPlayer(GetForLoopIndexB()), GetOwningPlayer(GetEnumUnit()), bj_ALLIANCE_UNALLIED_VISION )
set bj_forLoopBIndex = bj_forLoopBIndex + 1
endloop
call DestroyFogModifier( udg_fogmods[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))] )
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_nominions_cmd_Copy_Func002C takes nothing returns boolean
if ( not ( GetEventPlayerChatString() == "-nominions on" ) ) then
return false
endif
return true
endfunction
function Trig_nominions_cmd_Copy_Func003C takes nothing returns boolean
if ( not ( GetEventPlayerChatString() == "-nominions off" ) ) then
return false
endif
return true
endfunction
function Trig_nominions_cmd_Copy_Actions takes nothing returns nothing
local group ggg = GetUnitsOfTypeIdAll('E001')
if ( Trig_nominions_cmd_Copy_Func001C() ) then
if ( Trig_nominions_cmd_Copy_Func001Func001C() ) then
set udg_maxminions = 0
set udg_nominions = true
call DisplayTextToForce( GetPlayersAll(), "No minions mode is now turned ON!" )
call ForGroupBJ( ggg, function Trig_nominions_cmd_Copy_Func001Func001Func007A )
else
set udg_maxminions = 99
set udg_nominions = false
call DisplayTextToForce( GetPlayersAll(), "No minions mode is now turned OFF!" )
endif
else
endif
if ( Trig_nominions_cmd_Copy_Func002C() ) then
set udg_maxminions = 0
set udg_nominions = true
call DisplayTextToForce( GetPlayersAll(), "No minions mode is now turned ON!" )
call ForGroupBJ( ggg, function Trig_nominions_cmd_Copy_Func002Func004A )
else
endif
if ( Trig_nominions_cmd_Copy_Func003C() ) then
set udg_maxminions = 99
set udg_nominions = false
call DisplayTextToForce( GetPlayersAll(), "No minions mode is now turned OFF!" )
else
endif
call TriggerSleepAction( 1.00 )
call TriggerExecute( gg_trg_leavers )
call DestroyGroup(ggg)
set ggg = null
endfunction
//===========================================================================
function InitTrig_nominions_cmd_Copy takes nothing returns nothing
set gg_trg_nominions_cmd_Copy = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_nominions_cmd_Copy, Player(10), "-nominions", false )
call TriggerRegisterPlayerChatEvent( gg_trg_nominions_cmd_Copy, Player(0), "-nominions", false )
call TriggerRegisterPlayerChatEvent( gg_trg_nominions_cmd_Copy, Player(11), "-nominions", false )
call TriggerAddAction( gg_trg_nominions_cmd_Copy, function Trig_nominions_cmd_Copy_Actions )
endfunction
function Trig_maxminions_cmd_Copy_Conditions takes nothing returns boolean
if ( not ( S2I(SubStringBJ(GetEventPlayerChatString(), 13, 13)) >= 1 ) ) then
return false
endif
if ( not ( S2I(SubStringBJ(GetEventPlayerChatString(), 13, 13)) <= 9 ) ) then
return false
endif
return true
endfunction
function Trig_maxminions_cmd_Copy_Func006Func001C takes nothing returns boolean
if ( not ( udg_currentminions <= udg_maxminions ) ) then
return false
endif
return true
endfunction
function Trig_maxminions_cmd_Copy_Func006A takes nothing returns nothing
if ( Trig_maxminions_cmd_Copy_Func006Func001C() ) then
else
call LeaderboardSetPlayerItemLabelBJ( GetOwningPlayer(GetEnumUnit()), GetLastCreatedLeaderboard(), ( "[dead] " + GetPlayerName(GetOwningPlayer(GetEnumUnit())) ) )
set udg_currentminions = ( udg_currentminions - 1 )
set udg_callshare = GetOwningPlayer(GetEnumUnit())
call TriggerExecute( gg_trg_share_ressis )
set bj_forLoopBIndex = 1
set bj_forLoopBIndexEnd = 12
loop
exitwhen bj_forLoopBIndex > bj_forLoopBIndexEnd
call SetPlayerAllianceStateBJ( GetOwningPlayer(GetEnumUnit()), ConvertedPlayer(GetForLoopIndexB()), bj_ALLIANCE_UNALLIED_VISION )
call SetPlayerAllianceStateBJ( ConvertedPlayer(GetForLoopIndexB()), GetOwningPlayer(GetEnumUnit()), bj_ALLIANCE_UNALLIED_VISION )
set bj_forLoopBIndex = bj_forLoopBIndex + 1
endloop
call DestroyFogModifier( udg_fogmods[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))] )
set udg_isminion[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))] = false
call RemoveUnit( GetEnumUnit() )
endif
endfunction
function Trig_maxminions_cmd_Copy_Actions takes nothing returns nothing
local group ggg = GetUnitsOfTypeIdAll('E001')
set udg_maxminions = S2I(SubStringBJ(GetEventPlayerChatString(), 13, 13))
set udg_nominions = true
call DisplayTextToForce( GetPlayersAll(), ( "Max minions mode is now turned ON! Current minion limit: " + I2S(udg_maxminions) ) )
call ForGroupBJ( ggg, function Trig_maxminions_cmd_Copy_Func006A )
call TriggerSleepAction( 1.00 )
call TriggerExecute( gg_trg_leavers )
call DestroyGroup(ggg)
set ggg = null
endfunction
//===========================================================================
function InitTrig_maxminions_cmd_Copy takes nothing returns nothing
set gg_trg_maxminions_cmd_Copy = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_maxminions_cmd_Copy, Player(10), "-maxminions", false )
call TriggerRegisterPlayerChatEvent( gg_trg_maxminions_cmd_Copy, Player(0), "-maxminions", false )
call TriggerRegisterPlayerChatEvent( gg_trg_maxminions_cmd_Copy, Player(11), "-maxminions", false )
call TriggerAddCondition( gg_trg_maxminions_cmd_Copy, Condition( function Trig_maxminions_cmd_Copy_Conditions ) )
call TriggerAddAction( gg_trg_maxminions_cmd_Copy, function Trig_maxminions_cmd_Copy_Actions )
endfunction
function Trig_orderwaypoints_zero takes nothing returns nothing
local unit u = udg_shade[0]
local integer loopstart
local integer loopend
set udg_wp_active[0] = true
set loopstart = 0
set loopend = 38
loop
exitwhen loopstart > loopend
call IssuePointOrderLocBJ( u, "move", udg_baseloc[loopstart] )
loop
exitwhen ( (GetUnitCurrentOrder(u) == 0) or (GetUnitCurrentOrder(u) == 851971)) or (GetUnitState(u, UNIT_STATE_LIFE) == 0)
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL, 2))
endloop
if (GetUnitCurrentOrder(u) == 851971) or (GetUnitState(u, UNIT_STATE_LIFE) == 0) then
set loopstart = 38
endif
set udg_aantileak_point = GetUnitLoc(u)
call UnitAddAbilityBJ( 'A054', u )
call IssuePointOrderLocBJ( u, "farsight", udg_aantileak_point )
call RemoveLocation (udg_aantileak_point)
call TriggerSleepAction( 1.00 )
call UnitRemoveAbilityBJ( 'A054', u )
set loopstart = loopstart + 1
endloop
set u = null
set udg_wp_active[0] = false
endfunction
function Trig_order_Func001A takes nothing returns nothing
if (udg_wp_active[udg_shadeloop] == false) then
set udg_shade[udg_shadeloop] = GetEnumUnit()
else
if (udg_wp_active[udg_shadeloop+1] == false) then
set udg_shade[udg_shadeloop+1] = GetEnumUnit()
endif
endif
set udg_shadeloop=udg_shadeloop+1
endfunction
function Trig_orderwaypoints_a_Actions takes nothing returns nothing
local group ggg = GetUnitsOfPlayerAndTypeId(GetTriggerPlayer(),'ushd')
set udg_shadeloop = 0
call ForGroupBJ( ggg, function Trig_order_Func001A )
call DestroyGroup(ggg)
set ggg = null
if (udg_wp_active[0] == false) then
call Trig_orderwaypoints_zero()
endif
endfunction
//===========================================================================
function InitTrig_orderwaypoints_zero takes nothing returns nothing
set gg_trg_orderwaypoints_zero = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_orderwaypoints_zero, Player(0), "-wp", true )
call TriggerRegisterPlayerChatEvent( gg_trg_orderwaypoints_zero, Player(10), "-wp", true )
call TriggerRegisterPlayerChatEvent( gg_trg_orderwaypoints_zero, Player(10), "-waypoints", true )
call TriggerRegisterPlayerChatEvent( gg_trg_orderwaypoints_zero, Player(11), "-wp", true )
call TriggerRegisterPlayerChatEvent( gg_trg_orderwaypoints_zero, Player(11), "-waypoints", true )
call TriggerAddAction( gg_trg_orderwaypoints_zero, function Trig_orderwaypoints_a_Actions )
endfunction
function Trig_orderwaypoints_one takes nothing returns nothing
local unit u = udg_shade[1]
local integer loopstart
local integer loopend
set udg_wp_active[1] = true
set loopstart = 38
set loopend = 0
loop
exitwhen loopstart < loopend
call IssuePointOrderLocBJ( u, "move", udg_baseloc[loopstart] )
loop
exitwhen ( (GetUnitCurrentOrder(u) == 0) or (GetUnitCurrentOrder(u) == 851971)) or (GetUnitState(u, UNIT_STATE_LIFE) == 0)
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL, 2))
endloop
if (GetUnitCurrentOrder(u) == 851971) or (GetUnitState(u, UNIT_STATE_LIFE) == 0) then
set loopstart = 0
endif
set udg_aantileak_point = GetUnitLoc(u)
call UnitAddAbilityBJ( 'A054', u )
call IssuePointOrderLocBJ( u, "farsight", udg_aantileak_point )
call RemoveLocation (udg_aantileak_point)
call TriggerSleepAction( 1.00 )
call UnitRemoveAbilityBJ( 'A054', u )
set loopstart = loopstart - 1
endloop
set u = null
set udg_wp_active[1] = false
endfunction
function Trig_orderwaypoints_b_Actions takes nothing returns nothing
call TriggerSleepAction(0.10)
if (udg_wp_active[1] == false) then
call Trig_orderwaypoints_one()
endif
endfunction
//===========================================================================
function InitTrig_orderwaypoints_one takes nothing returns nothing
set gg_trg_orderwaypoints_one = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_orderwaypoints_one, Player(10), "-wp", true )
call TriggerRegisterPlayerChatEvent( gg_trg_orderwaypoints_one, Player(10), "-waypoints", true )
call TriggerRegisterPlayerChatEvent( gg_trg_orderwaypoints_one, Player(11), "-wp", true )
call TriggerRegisterPlayerChatEvent( gg_trg_orderwaypoints_one, Player(11), "-waypoints", true )
call TriggerAddAction( gg_trg_orderwaypoints_one, function Trig_orderwaypoints_b_Actions )
endfunction
function Trig_remove_all_servant_stones_Func002A takes nothing returns nothing
call SetPlayerStateBJ( GetOwningPlayer(GetEnumUnit()), PLAYER_STATE_RESOURCE_LUMBER, 150000 )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetEnumUnit(), 'I025') )
endfunction
function Trig_remove_all_servant_stones_Func005Func001C takes nothing returns boolean
if ( not ( GetItemTypeId(GetEnumItem()) == 'I025' ) ) then
return false
endif
return true
endfunction
function Trig_remove_all_servant_stones_Func005A takes nothing returns nothing
if ( Trig_remove_all_servant_stones_Func005Func001C() ) then
call RemoveItem( GetEnumItem() )
else
endif
endfunction
function Trig_remove_all_servant_stones_Actions takes nothing returns nothing
local group ggg = GetUnitsOfTypeIdAll('E001')
call ForGroupBJ( ggg, function Trig_remove_all_servant_stones_Func002A )
call DestroyGroup(ggg)
set ggg=null
call EnumItemsInRectBJ( GetPlayableMapRect(), function Trig_remove_all_servant_stones_Func005A )
endfunction
//===========================================================================
function InitTrig_remove_all_servant_stones takes nothing returns nothing
set gg_trg_remove_all_servant_stones = CreateTrigger( )
call TriggerAddAction( gg_trg_remove_all_servant_stones, function Trig_remove_all_servant_stones_Actions )
endfunction
// GUI-Friendly Damage Detection -- v1.2.1 -- by Weep
// http:// www.thehelper.net/forums/showthread.php?t=137957
//
// Requires: only this trigger and its variables.
//
// -- What? --
// This snippet provides a leak-free, GUI-friendly implementation of an "any unit takes
// damage" event. It requires no JASS knowledge to use.
//
// It uses the Game - Value Of Real Variable event as its method of activating other
// triggers, and passes the event responses through a few globals.
//
// -- Why? --
// The traditional GUI method of setting up a trigger than runs when any unit is damaged
// leaks trigger events. This snippet is easy to implement and removes the need to do
// you own GUI damage detection setup.
//
// -- How To Implement --
// 0. Before you copy triggers that use GDD into a new map, you need to copy over GDD
// with its GDD Variable Creator trigger, or there will be a problem: the variables
// won't be automatically created correctly.
//
// 1. Be sure "Automatically create unknown variables while pasting trigger data" is
// enabled in the World Editor general preferences.
// 2. Copy this trigger category ("GDD") and paste it into your map.
// (Alternately: create the variables listed in the globals block below, create a
// trigger named "GUI Friendly Damage Detection", and paste in this entire text.)
// 3. Create your damage triggers using Game - Value Of Real Variable as the event,
// select GDD_Event as the variable, and leave the rest of the settings to the default
// "becomes Equal to 0.00".
// The event responses are the following variables:
// GDD_Damage is the amount of damage, replacing Event Response - Damage Taken.
// GDD_DamagedUnit is the damaged unit, replacing Event Response - Triggering Unit.
// Triggering Unit can still be used, if you need to use waits.
// Read the -- Notes -- section below for more info.
// GDD_DamageSource is the damaging unit, replacing Event Response - Damage Source.
//
// -- Notes --
// GDD's event response variables are not wait-safe; you can't use them after a wait in
// a trigger. If you need to use waits, Triggering Unit (a.k.a. GetTriggerUnit()) can
// be used in place of GDD_DamageSource. There is no usable wait-safe equivalent to
// Event Damage or Damage Source; you'll need to save the values yourself.
//
// Don't write any values to the variables used as the event responses, or it will mess
// up any other triggers using this snippet for their triggering. Only use their values.
//
// This uses arrays, so can detect damage for a maximum of 8190 units at a time, and
// cleans up data at a rate of 33.33 per second, by default. This should be enough for
// most maps, but if you want to change the rate, change the value returned in the
// GDD_RecycleRate function at the top of the code, below.
//
// By default, GDD will not register units that have Locust at the moment of their
// entering the game, and will not recognize when they take damage (which can only
// happen if the Locust ability is later removed from the unit.) To allow a unit to have
// Locust yet still cause GDD damage events if Locust is removed, you can either design
// the unit to not have Locust by default and add it via triggers after creation, or
// edit the GDD_Filter function at the top of the code, below.
//
// -- Credits --
// Captain Griffin on wc3c.net for the research and concept of GroupRefresh.
//
// Credit in your map not needed, but please include this README.
//
// -- Version History --
// 1.2.1: Minor code cleaning. Added configuration functions. Updated documentation.
// 1.2.0: Made this snippet work properly with recursive damage.
// 1.1.1: Added a check in order to not index units with the Locust ability (dummy units).
// If you wish to check for damage taken by a unit that is unselectable, do not
// give the unit-type Locust in the object editor; instead, add the Locust ability
// 'Aloc' via a trigger after its creation, then remove it.
// 1.1.0: Added a check in case a unit gets moved out of the map and back.
// 1.0.0: First release.
//===================================================================
// Configurables.
function GDD_RecycleRate takes nothing returns real //The rate at which the system checks units to see if they've been removed from the game
return 0.03
endfunction
function GDD_Filter takes unit u returns boolean //The condition a unit has to pass to have it registered for damage detection
return GetUnitAbilityLevel(u, 'Aloc') == 0 //By default, the system ignores Locust units, because they normally can't take damage anyway
endfunction
//===================================================================
// This is just for reference.
// If you use JassHelper, you could uncomment this section instead of creating the variables in the trigger editor.
// globals
// real udg_GDD_Event = 0.
// real udg_GDD_Damage = 0.
// unit udg_GDD_DamagedUnit
// unit udg_GDD_DamageSource
// trigger array udg_GDD__TriggerArray
// integer array udg_GDD__Integers
// unit array udg_GDD__UnitArray
// group udg_GDD__LeftMapGroup = CreateGroup()
// endglobals
//===================================================================
// System code follows. Don't touch!
function GDD_Event takes nothing returns boolean
local unit damagedcache = udg_GDD_DamagedUnit
local unit damagingcache = udg_GDD_DamageSource
local real damagecache = udg_GDD_Damage
set udg_GDD_DamagedUnit = GetTriggerUnit()
set udg_GDD_DamageSource = GetEventDamageSource()
set udg_GDD_Damage = GetEventDamage()
set udg_GDD_Event = 1.
set udg_GDD_Event = 0.
set udg_GDD_DamagedUnit = damagedcache
set udg_GDD_DamageSource = damagingcache
set udg_GDD_Damage = damagecache
set damagedcache = null
set damagingcache = null
return false
endfunction
function GDD_AddDetection takes nothing returns boolean
// if(udg_GDD__Integers[0] > 8190) then
// call BJDebugMsg("GDD: Too many damage events! Decrease number of units present in the map or increase recycle rate.")
// ***Recycle rate is specified in the GDD_RecycleRate function at the top of the code. Smaller is faster.***
// return
// endif
if(IsUnitInGroup(GetFilterUnit(), udg_GDD__LeftMapGroup)) then
call GroupRemoveUnit(udg_GDD__LeftMapGroup, GetFilterUnit())
elseif(GDD_Filter(GetFilterUnit())) then
set udg_GDD__Integers[0] = udg_GDD__Integers[0]+1
set udg_GDD__UnitArray[udg_GDD__Integers[0]] = GetFilterUnit()
set udg_GDD__TriggerArray[udg_GDD__Integers[0]] = CreateTrigger()
call TriggerRegisterUnitEvent(udg_GDD__TriggerArray[udg_GDD__Integers[0]], udg_GDD__UnitArray[udg_GDD__Integers[0]], EVENT_UNIT_DAMAGED)
call TriggerAddCondition(udg_GDD__TriggerArray[udg_GDD__Integers[0]], Condition(function GDD_Event))
endif
return false
endfunction
function GDD_PreplacedDetection takes nothing returns nothing
local group g = CreateGroup()
local integer i = 0
loop
call GroupEnumUnitsOfPlayer(g, Player(i), Condition(function GDD_AddDetection))
set i = i+1
exitwhen i == bj_MAX_PLAYER_SLOTS
endloop
call DestroyGroup(g)
set g = null
endfunction
function GDD_GroupRefresh takes nothing returns nothing
// Based on GroupRefresh by Captain Griffen on wc3c.net
if (bj_slotControlUsed[5063] == true) then
call GroupClear(udg_GDD__LeftMapGroup)
set bj_slotControlUsed[5063] = false
endif
call GroupAddUnit(udg_GDD__LeftMapGroup, GetEnumUnit())
endfunction
function GDD_Recycle takes nothing returns nothing
if(udg_GDD__Integers[0] <= 0) then
return
elseif(udg_GDD__Integers[1] <= 0) then
set udg_GDD__Integers[1] = udg_GDD__Integers[0]
endif
if(GetUnitTypeId(udg_GDD__UnitArray[udg_GDD__Integers[1]]) == 0) then
call DestroyTrigger(udg_GDD__TriggerArray[udg_GDD__Integers[1]])
set udg_GDD__TriggerArray[udg_GDD__Integers[1]] = null
set udg_GDD__TriggerArray[udg_GDD__Integers[1]] = udg_GDD__TriggerArray[udg_GDD__Integers[0]]
set udg_GDD__UnitArray[udg_GDD__Integers[1]] = udg_GDD__UnitArray[udg_GDD__Integers[0]]
set udg_GDD__UnitArray[udg_GDD__Integers[0]] = null
set udg_GDD__Integers[0] = udg_GDD__Integers[0]-1
endif
set udg_GDD__Integers[1] = udg_GDD__Integers[1]-1
endfunction
function GDD_LeaveMap takes nothing returns boolean
local boolean cached = bj_slotControlUsed[5063]
if(udg_GDD__Integers[2] < 64) then
set udg_GDD__Integers[2] = udg_GDD__Integers[2]+1
else
set bj_slotControlUsed[5063] = true
call ForGroup(udg_GDD__LeftMapGroup, function GDD_GroupRefresh)
set udg_GDD__Integers[2] = 0
endif
call GroupAddUnit(udg_GDD__LeftMapGroup, GetFilterUnit())
set bj_slotControlUsed[5063] = cached
return false
endfunction
// ===========================================================================
function InitTrig_GUI_Friendly_Damage_Detection takes nothing returns nothing
local region r = CreateRegion()
call RegionAddRect(r, GetWorldBounds())
call TriggerRegisterEnterRegion(CreateTrigger(), r, Condition(function GDD_AddDetection))
call TriggerRegisterLeaveRegion(CreateTrigger(), r, Condition(function GDD_LeaveMap))
call GDD_PreplacedDetection()
call TimerStart(CreateTimer(), GDD_RecycleRate(), true, function GDD_Recycle)
set r = null
endfunction
function Trig_bless_invul_Func001C takes nothing returns boolean
if ( ( GetUnitTypeId(udg_GDD_DamageSource) == 'h001' ) ) then
return true
endif
if ( ( GetUnitTypeId(udg_GDD_DamageSource) == 'h002' ) ) then
return true
endif
if ( ( GetUnitTypeId(udg_GDD_DamageSource) == 'h003' ) ) then
return true
endif
if ( ( GetUnitTypeId(udg_GDD_DamageSource) == 'h004' ) ) then
return true
endif
if ( ( GetUnitTypeId(udg_GDD_DamageSource) == 'h005' ) ) then
return true
endif
if ( ( GetUnitTypeId(udg_GDD_DamageSource) == 'h00T' ) ) then
return true
endif
return false
endfunction
function Trig_bless_invul_Conditions takes nothing returns boolean
if ( not Trig_bless_invul_Func001C() ) then
return false
endif
return true
endfunction
function Trig_bless_invul_Actions takes nothing returns nothing
local unit u = udg_GDD_DamagedUnit
if (GetUnitTypeId(u) == 'h00J' ) or (GetUnitTypeId(u) == 'h00P' ) or (GetUnitTypeId(u) == 'h00Q' ) or (GetUnitTypeId(u) == 'h012' ) or (GetUnitTypeId(u) == 'h013' ) or (GetUnitTypeId(u) == 'h01A' ) or (GetUnitTypeId(u) == 'u000' ) then
if (GetUnitTypeId(u) != 'u000' ) then
if ( GetUnitLifePercent(udg_GDD_DamagedUnit) > 50.00 ) then
call SetUnitLifeBJ( udg_GDD_DamagedUnit, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_GDD_DamagedUnit) - ( GetUnitStateSwap(UNIT_STATE_MAX_LIFE, udg_GDD_DamagedUnit) / 2.00 ) ) )
call UnitAddAbilityBJ( 'A051', u )
call TriggerSleepAction( 180.00 )
call UnitRemoveAbilityBJ( 'A051', u )
else
call KillUnit( udg_GDD_DamagedUnit )
endif
else
call UnitAddAbilityBJ( 'A051', u )
call TriggerSleepAction( 180.00 )
call UnitRemoveAbilityBJ( 'A051', u )
endif
else
call SetUnitManaBJ( udg_GDD_DamageSource, ( GetUnitStateSwap(UNIT_STATE_MANA, udg_GDD_DamageSource) + 2400.00 ) )
endif
set u = null
endfunction
//===========================================================================
function InitTrig_bless_invul takes nothing returns nothing
set gg_trg_bless_invul = CreateTrigger( )
call TriggerRegisterVariableEvent( gg_trg_bless_invul, "udg_GDD_Event", EQUAL, 0 )
call TriggerAddCondition( gg_trg_bless_invul, Condition( function Trig_bless_invul_Conditions ) )
call TriggerAddAction( gg_trg_bless_invul, function Trig_bless_invul_Actions )
endfunction