// 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 |
boolean01 | boolean | No | |
boolean02 | boolean | No | |
boolean03 | boolean | No | |
boolean04 | boolean | No | |
booleans01 | boolean | Yes | |
booleans02 | boolean | Yes | |
booleans03 | boolean | Yes | |
booleans04 | boolean | Yes | |
booleans05 | boolean | Yes | |
booleans06 | boolean | Yes | |
booleans07 | boolean | Yes | |
booleans08 | boolean | Yes | |
booleans09 | boolean | Yes | |
button01 | button | No | |
button02 | button | No | |
button03 | button | No | |
buttons01 | button | Yes | |
buttons02 | button | Yes | |
buttons03 | button | Yes | |
buttons04 | button | Yes | |
camerasetup01 | camerasetup | No | |
camerasetup02 | camerasetup | No | |
camerasetup03 | camerasetup | No | |
camerasetup04 | camerasetup | No | |
camerasetup05 | camerasetup | No | |
destructable01 | destructable | No | |
destructable02 | destructable | No | |
destructable03 | destructable | No | |
destructable04 | destructable | No | |
destructable05 | destructable | No | |
destructable06 | destructable | No | |
destructable07 | destructable | No | |
destructable08 | destructable | No | |
destructable09 | destructable | No | |
destructable10 | destructable | No | |
destructable11 | destructable | No | |
destructable12 | destructable | No | |
destructable13 | destructable | No | |
destructable14 | destructable | No | |
destructable15 | destructable | No | |
destructable16 | destructable | No | |
destructable17 | destructable | No | |
dialog01 | dialog | No | |
dialog02 | dialog | No | |
dialog03 | dialog | No | |
dialog04 | dialog | No | |
dialog05 | dialog | No | |
effect01 | effect | No | |
effects01 | effect | Yes | |
fogmodifiers01 | fogmodifier | Yes | |
force01 | force | No | |
group01 | group | No | |
group02 | group | No | |
group03 | group | No | |
group04 | group | No | |
group05 | group | No | |
group06 | group | No | |
integer01 | integer | No | |
integer02 | integer | No | |
integer03 | integer | No | |
integer04 | integer | No | |
integer05 | integer | No | |
integer06 | integer | No | |
integer07 | integer | No | 1 |
integer08 | integer | No | 3 |
integer09 | integer | No | 1 |
integer10 | integer | No | |
integer11 | integer | No | |
integer12 | integer | No | |
integer13 | integer | No | |
integers01 | integer | Yes | |
integers02 | integer | Yes | |
integers03 | integer | Yes | |
integers04 | integer | Yes | |
integers05 | integer | Yes | |
integers06 | integer | Yes | |
integers07 | integer | Yes | |
integers08 | integer | Yes | |
integers09 | integer | Yes | |
integers10 | integer | Yes | |
integers11 | integer | Yes | |
integers12 | integer | Yes | |
integers13 | integer | Yes | |
integers14 | integer | Yes | |
integers15 | integer | Yes | |
integers16 | integer | Yes | |
integers17 | integer | Yes | |
integers18 | integer | Yes | |
integers19 | integer | Yes | |
location01 | location | No | |
location02 | location | No | |
locations01 | location | Yes | |
locations02 | location | Yes | |
player01 | player | No | |
players01 | player | Yes | |
quests01 | quest | Yes | |
real01 | real | No | |
reals01 | real | 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 | |
rect44 | rect | No | |
rect45 | rect | No | |
rect46 | rect | No | |
rect47 | rect | No | |
rect48 | rect | No | |
rects01 | rect | Yes | |
rects02 | rect | Yes | |
rects03 | rect | Yes | |
rects04 | rect | Yes | |
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 | |
sound11 | sound | No | |
sound12 | sound | No | |
sound13 | sound | No | |
sound14 | sound | No | |
sound15 | sound | No | |
sound16 | sound | No | |
sound17 | sound | No | |
sound18 | sound | No | |
sound19 | sound | No | |
string01 | string | No | Sound\\Music\\mp3Music\\Doom.mp3 |
string02 | string | No | Sound\\Music\\mp3Music\\ArthasTheme.mp3 |
string03 | string | No | Sound\\Music\\mp3Music\\Credits.mp3 |
string04 | string | No | Sound\\Music\\mp3Music\\Tension.mp3 |
string05 | string | No | Sound\\Music\\mp3Music\\Mainscreen.mp3 |
string06 | string | No | Sound\\Music\\mp3Music\\Human1.mp3 |
string07 | string | No | Sound\\Music\\mp3Music\\Orc1.mp3 |
string08 | string | No | Sound\\Music\\mp3Music\\NightElf2.mp3 |
string09 | string | No | Sound\\Music\\mp3Music\\OrcVictory.mp3 |
string10 | string | No | Sound\\Music\\mp3Music\\PH1.mp3 |
string11 | string | No | Sound\\Music\\mp3Music\\PursuitTheme.mp3 |
string12 | string | No | Sound\\Music\\mp3Music\\War2IntroMusic.mp3 |
string13 | string | No | Sound\\Music\\mp3Music\\HeroicVictory.mp3 |
strings01 | string | Yes | |
strings02 | string | Yes | |
strings03 | string | Yes | |
timer01 | timer | No | |
timer02 | timer | No | |
timer03 | timer | No | |
timer04 | timer | No | |
timer05 | timer | No | |
timer06 | timer | No | |
timerdialog01 | timerdialog | No | |
timerdialog02 | timerdialog | No | |
timerdialog03 | timerdialog | No | |
timerdialogs01 | timerdialog | Yes | |
timers01 | timer | Yes | |
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 | |
trigger100 | trigger | No | |
trigger101 | trigger | No | |
trigger102 | trigger | No | |
trigger103 | trigger | No | |
trigger104 | trigger | No | |
trigger105 | trigger | No | |
trigger106 | trigger | No | |
trigger107 | trigger | No | |
trigger108 | trigger | No | |
trigger109 | trigger | No | |
trigger11 | trigger | No | |
trigger110 | trigger | No | |
trigger111 | trigger | No | |
trigger112 | trigger | No | |
trigger113 | trigger | No | |
trigger114 | trigger | No | |
trigger115 | trigger | No | |
trigger116 | trigger | No | |
trigger117 | trigger | No | |
trigger118 | trigger | No | |
trigger119 | trigger | No | |
trigger12 | trigger | No | |
trigger120 | trigger | No | |
trigger121 | trigger | No | |
trigger122 | trigger | No | |
trigger123 | trigger | No | |
trigger124 | trigger | No | |
trigger125 | trigger | No | |
trigger126 | trigger | No | |
trigger127 | trigger | No | |
trigger128 | trigger | No | |
trigger129 | trigger | No | |
trigger13 | trigger | No | |
trigger130 | trigger | No | |
trigger131 | trigger | No | |
trigger132 | trigger | No | |
trigger133 | trigger | No | |
trigger134 | trigger | No | |
trigger135 | trigger | No | |
trigger136 | trigger | No | |
trigger137 | trigger | No | |
trigger138 | trigger | No | |
trigger139 | trigger | No | |
trigger14 | trigger | No | |
trigger140 | trigger | No | |
trigger141 | trigger | No | |
trigger142 | trigger | No | |
trigger143 | trigger | No | |
trigger144 | trigger | No | |
trigger145 | trigger | No | |
trigger146 | trigger | No | |
trigger147 | trigger | No | |
trigger148 | trigger | No | |
trigger149 | trigger | No | |
trigger15 | trigger | No | |
trigger150 | trigger | No | |
trigger151 | trigger | No | |
trigger152 | trigger | No | |
trigger153 | trigger | No | |
trigger154 | trigger | No | |
trigger155 | trigger | No | |
trigger156 | trigger | No | |
trigger157 | trigger | No | |
trigger158 | trigger | No | |
trigger159 | trigger | No | |
trigger16 | trigger | No | |
trigger160 | trigger | No | |
trigger161 | trigger | No | |
trigger162 | trigger | No | |
trigger163 | trigger | No | |
trigger164 | trigger | No | |
trigger165 | trigger | No | |
trigger166 | trigger | No | |
trigger167 | trigger | No | |
trigger168 | trigger | No | |
trigger169 | trigger | No | |
trigger17 | trigger | No | |
trigger170 | trigger | No | |
trigger171 | trigger | No | |
trigger172 | trigger | No | |
trigger173 | trigger | No | |
trigger174 | trigger | No | |
trigger175 | trigger | No | |
trigger176 | 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 | |
trigger98 | trigger | No | |
trigger99 | trigger | No | |
unit01 | unit | No | |
unit02 | unit | No | |
unit03 | unit | No | |
unit04 | unit | No | |
unit05 | unit | No | |
unit06 | unit | No | |
unit07 | unit | No | |
unit08 | unit | No | |
unit09 | unit | No | |
unit10 | unit | No | |
unit11 | unit | No | |
unit12 | unit | No | |
unit13 | unit | No | |
unit14 | unit | No | |
unit15 | unit | No | |
unit16 | unit | No | |
unit17 | unit | No | |
unit18 | unit | No | |
unit19 | unit | No | |
unit20 | unit | No | |
unit21 | unit | No | |
unit22 | unit | No | |
unit23 | unit | No | |
unit24 | unit | No | |
unit25 | unit | No | |
unit26 | unit | No | |
unit27 | unit | No | |
unit28 | unit | No | |
unit29 | unit | No | |
unit30 | unit | No | |
unit31 | unit | No | |
unit32 | unit | No | |
unit33 | unit | No | |
unit34 | unit | No | |
unit35 | unit | No | |
unit36 | unit | No | |
unit37 | unit | No | |
unit38 | unit | No | |
unit39 | unit | No | |
unit40 | unit | No | |
unit41 | unit | No | |
unit42 | unit | No | |
unit43 | unit | No | |
unit44 | unit | No | |
unit45 | unit | No | |
unit46 | unit | No | |
unit47 | unit | No | |
unit48 | unit | No | |
unit49 | unit | No | |
unit50 | unit | No | |
unit51 | unit | No | |
unit52 | unit | No | |
unit53 | unit | No | |
unit54 | unit | No | |
unit55 | unit | No | |
unit56 | unit | No | |
unit57 | unit | No | |
units01 | unit | Yes | |
units02 | unit | Yes | |
units03 | unit | Yes |
// Map deprotected by X-deprotect (version 2010-02-10) by Computer_et
// http://dimon.xgm.ru/xdep/
// Visit our modmaking community at http://xgm.ru/
function Unit000029_DropItems takes nothing returns nothing
local widget trigWidget=null
local unit trigUnit=null
local integer itemID=0
local boolean canDrop=true
set trigWidget=bj_lastDyingWidget
if(trigWidget==null)then
set trigUnit=GetTriggerUnit()
endif
if(trigUnit!=null)then
set canDrop=not IsUnitHidden(trigUnit)
if(canDrop and GetChangingUnit()!=null)then
set canDrop=(GetChangingUnitPrevOwner()==Player(12))
endif
endif
if(canDrop)then
call RandomDistReset()
call RandomDistAddItem('I008','d')
set itemID=RandomDistChoose()
if(trigUnit!=null)then
call UnitDropItem(trigUnit,itemID)
else
call WidgetDropItem(trigWidget,itemID)
endif
endif
set bj_lastDyingWidget=null
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Unit000039_DropItems takes nothing returns nothing
local widget trigWidget=null
local unit trigUnit=null
local integer itemID=0
local boolean canDrop=true
set trigWidget=bj_lastDyingWidget
if(trigWidget==null)then
set trigUnit=GetTriggerUnit()
endif
if(trigUnit!=null)then
set canDrop=not IsUnitHidden(trigUnit)
if(canDrop and GetChangingUnit()!=null)then
set canDrop=(GetChangingUnitPrevOwner()==Player(12))
endif
endif
if(canDrop)then
call RandomDistReset()
call RandomDistAddItem('I003','d')
set itemID=RandomDistChoose()
if(trigUnit!=null)then
call UnitDropItem(trigUnit,itemID)
else
call WidgetDropItem(trigWidget,itemID)
endif
endif
set bj_lastDyingWidget=null
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Unit000040_DropItems takes nothing returns nothing
local widget trigWidget=null
local unit trigUnit=null
local integer itemID=0
local boolean canDrop=true
set trigWidget=bj_lastDyingWidget
if(trigWidget==null)then
set trigUnit=GetTriggerUnit()
endif
if(trigUnit!=null)then
set canDrop=not IsUnitHidden(trigUnit)
if(canDrop and GetChangingUnit()!=null)then
set canDrop=(GetChangingUnitPrevOwner()==Player(12))
endif
endif
if(canDrop)then
call RandomDistReset()
call RandomDistAddItem('I000','d')
set itemID=RandomDistChoose()
if(trigUnit!=null)then
call UnitDropItem(trigUnit,itemID)
else
call WidgetDropItem(trigWidget,itemID)
endif
endif
set bj_lastDyingWidget=null
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Unit000092_DropItems takes nothing returns nothing
local widget trigWidget=null
local unit trigUnit=null
local integer itemID=0
local boolean canDrop=true
set trigWidget=bj_lastDyingWidget
if(trigWidget==null)then
set trigUnit=GetTriggerUnit()
endif
if(trigUnit!=null)then
set canDrop=not IsUnitHidden(trigUnit)
if(canDrop and GetChangingUnit()!=null)then
set canDrop=(GetChangingUnitPrevOwner()==Player(12))
endif
endif
if(canDrop)then
call RandomDistReset()
call RandomDistAddItem('I00C','d')
set itemID=RandomDistChoose()
if(trigUnit!=null)then
call UnitDropItem(trigUnit,itemID)
else
call WidgetDropItem(trigWidget,itemID)
endif
endif
set bj_lastDyingWidget=null
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Unit000093_DropItems takes nothing returns nothing
local widget trigWidget=null
local unit trigUnit=null
local integer itemID=0
local boolean canDrop=true
set trigWidget=bj_lastDyingWidget
if(trigWidget==null)then
set trigUnit=GetTriggerUnit()
endif
if(trigUnit!=null)then
set canDrop=not IsUnitHidden(trigUnit)
if(canDrop and GetChangingUnit()!=null)then
set canDrop=(GetChangingUnitPrevOwner()==Player(12))
endif
endif
if(canDrop)then
call RandomDistReset()
call RandomDistAddItem('I009','d')
set itemID=RandomDistChoose()
if(trigUnit!=null)then
call UnitDropItem(trigUnit,itemID)
else
call WidgetDropItem(trigWidget,itemID)
endif
endif
set bj_lastDyingWidget=null
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_Units_Actions takes nothing returns nothing
set udg_integers01[1]='ugho'
set udg_integers01[2]='ucry'
set udg_integers01[3]='unec'
set udg_integers01[4]='uabo'
set udg_integers01[5]='ufro'
set udg_integers01[6]='ogru'
set udg_integers01[7]='ohun'
set udg_integers01[8]='oshm'
set udg_integers01[9]='otau'
set udg_integers01[10]='okod'
set udg_integers01[11]='earc'
set udg_integers01[12]='esen'
set udg_integers01[13]='edoc'
set udg_integers01[14]='echm'
set udg_integers01[15]='emtg'
set udg_integers01[16]='hfoo'
set udg_integers01[17]='hrif'
set udg_integers01[18]='hmpr'
set udg_integers01[19]='hkni'
set udg_integers01[20]='hspt'
set udg_integers14[1]='Uear'
set udg_integers14[2]='Othr'
set udg_integers14[3]='Ekgg'
set udg_integers14[4]='Hlgr'
set udg_integers02[1]='nmmu'
set udg_integers02[2]='nowb'
set udg_integers02[3]='ngst'
set udg_integers02[4]='nfpu'
set udg_integers02[5]='ncnk'
set udg_integers02[6]='nrzg'
set udg_integers02[7]='nrvi'
set udg_integers02[8]='ntkc'
set udg_integers02[9]='nsth'
set udg_integers02[10]='nogl'
set udg_integers09[1]='uktn'
set udg_integers09[2]='nnsw'
set udg_integers09[3]='nwat'
set udg_integers09[4]='hcth'
set udg_integers09[5]='nmyr'
set udg_integers09[6]='nchr'
set udg_integers09[7]='ensh'
set udg_integers09[8]='zcso'
set udg_integers09[9]='uswb'
set udg_integers09[10]='odkt'
set udg_integers09[11]='nssn'
set udg_integers09[12]='nbel'
set udg_integers12[1]='Hpal'
set udg_integers12[2]='Obla'
set udg_integers12[3]='Oshd'
set udg_integers12[4]='Otch'
set udg_integers12[5]='Emoo'
set udg_integers12[6]='Harf'
set udg_integers12[7]='Nbst'
set udg_integers12[8]='Udre'
set udg_integers12[9]='Ulic'
set udg_integers12[10]='Ucrl'
set udg_integers12[11]='Nplh'
set udg_integers12[12]='N00W'
set udg_integers12[13]='Npbm'
set udg_integers12[14]='Nklj'
set udg_integers12[15]='Hamg'
set udg_integers12[16]='H002'
set udg_integers12[17]='Hblm'
set udg_integers12[18]='Hvwd'
set udg_integers12[19]='Ewar'
set udg_integers12[20]='Edem'
set udg_integers12[21]='H000'
set udg_integers12[22]='H007'
set udg_integers12[23]='Hjai'
set udg_integers12[24]='H009'
set udg_integers12[25]='Hmkg'
set udg_integers12[26]='H008'
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_Regions_Actions takes nothing returns nothing
set udg_rects01[1]=udg_rect03
set udg_rects01[2]=udg_rect04
set udg_rects01[3]=udg_rect05
set udg_rects01[4]=udg_rect06
set udg_rects01[5]=udg_rect07
set udg_rects01[6]=udg_rect08
set udg_rects01[7]=udg_rect09
set udg_rects01[8]=udg_rect10
set udg_rects02[1]=udg_rect15
set udg_rects02[2]=udg_rect16
set udg_rects02[3]=udg_rect17
set udg_rects02[4]=udg_rect18
set udg_rects02[5]=udg_rect19
set udg_rects02[6]=udg_rect20
set udg_rects02[7]=udg_rect21
set udg_rects02[8]=udg_rect22
set udg_rects04[1]=udg_rect39
set udg_rects04[2]=udg_rect40
set udg_rects04[3]=udg_rect41
set udg_rects04[4]=udg_rect42
set udg_rects03[1]=udg_rect45
set udg_rects03[2]=udg_rect46
set udg_rects03[3]=udg_rect47
set udg_rects03[4]=udg_rect48
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_Invulnerables_Actions takes nothing returns nothing
call SetDestructableInvulnerable(udg_destructable14,true)
call SetDestructableInvulnerable(udg_destructable13,true)
call SetDestructableInvulnerable(udg_destructable10,true)
call SetDestructableInvulnerable(udg_destructable11,true)
call SetDestructableInvulnerable(udg_destructable12,true)
call SetDestructableInvulnerable(udg_destructable15,true)
call SetDestructableInvulnerable(udg_destructable17,true)
call SetDestructableInvulnerable(udg_destructable09,true)
call SetDestructableInvulnerable(udg_destructable16,true)
call SetUnitInvulnerable(udg_unit47,true)
call SetUnitInvulnerable(udg_unit48,true)
call SetUnitInvulnerable(udg_unit08,true)
call SetUnitInvulnerable(udg_unit07,true)
call SetUnitInvulnerable(udg_unit54,true)
call SetUnitInvulnerable(udg_unit50,true)
call SetUnitInvulnerable(udg_unit05,true)
call SetUnitInvulnerable(udg_unit04,true)
call SetUnitInvulnerable(udg_unit06,true)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_Alliance_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetPlayerAllianceStateBJ(Player(-1+(bj_forLoopAIndex)),Player(8),3)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetPlayerAllianceStateBJ(Player(8),Player(-1+(bj_forLoopAIndex)),3)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=11
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetPlayerAllianceStateBJ(Player(-1+(bj_forLoopAIndex)),Player(9),3)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=11
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetPlayerAllianceStateBJ(Player(9),Player(-1+(bj_forLoopAIndex)),3)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetPlayerAllianceStateBJ(Player(-1+(bj_forLoopAIndex)),Player(10),0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetPlayerAllianceStateBJ(Player(-1+(bj_forLoopAIndex)),Player(11),0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetPlayerAllianceStateBJ(Player(10),Player(-1+(bj_forLoopAIndex)),0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetPlayerAllianceStateBJ(Player(11),Player(-1+(bj_forLoopAIndex)),0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=10
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetPlayerAllianceStateBJ(Player(8),Player(-1+(bj_forLoopAIndex)),0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=10
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetPlayerAllianceStateBJ(Player(-1+(bj_forLoopAIndex)),Player(8),0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_Heroes_Func008002002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='e007')
endfunction
function Trig_Heroes_Func009002 takes nothing returns nothing
call SetUnitColor(GetEnumUnit(),PLAYER_COLOR_BLUE)
endfunction
function Trig_Heroes_Func010002 takes nothing returns nothing
call UnitAddAbility(GetEnumUnit(),'Aloc')
endfunction
function Trig_Heroes_Func011002002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_Heroes_Func012002 takes nothing returns nothing
call SetUnitColor(GetEnumUnit(),PLAYER_COLOR_RED)
endfunction
function Trig_Heroes_Func014002 takes nothing returns nothing
call SetUnitInvulnerable(GetEnumUnit(),true)
endfunction
function Trig_Heroes_Actions takes nothing returns nothing
set udg_location01=GetRectCenter(udg_rect22)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,udg_integers01[bj_forLoopAIndex],Player(11),udg_location01,.0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,udg_integers14[bj_forLoopAIndex],Player(11),udg_location01,.0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_location01=GetRectCenter(udg_rect14)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=16
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLocFacingLocBJ(1,'e007',Player(8),PolarProjectionBJ(udg_location01,705.,(-22.5+(I2R(bj_forLoopAIndex)*22.5))),udg_location01)
call CreateNUnitsAtLocFacingLocBJ(1,udg_integers12[bj_forLoopAIndex],Player(8),PolarProjectionBJ(udg_location01,705.,(-22.5+(I2R(bj_forLoopAIndex)*22.5))),udg_location01)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLocFacingLocBJ(1,'e007',Player(8),PolarProjectionBJ(udg_location01,410.,(-36.+(I2R(bj_forLoopAIndex)*36.))),udg_location01)
call CreateNUnitsAtLocFacingLocBJ(1,udg_integers12[(bj_forLoopAIndex+16)],Player(8),PolarProjectionBJ(udg_location01,410.,(-36.+(I2R(bj_forLoopAIndex)*36.))),udg_location01)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_location01)
set udg_group05=GetUnitsInRectMatching(udg_rect14,Condition(function Trig_Heroes_Func008002002))
call ForGroupBJ(udg_group05,function Trig_Heroes_Func009002)
call ForGroupBJ(udg_group05,function Trig_Heroes_Func010002)
set udg_group05=GetUnitsInRectMatching(udg_rect14,Condition(function Trig_Heroes_Func011002002))
call ForGroupBJ(udg_group05,function Trig_Heroes_Func012002)
set udg_group05=GetUnitsInRectOfPlayer(udg_rect14,Player(8))
call ForGroupBJ(udg_group05,function Trig_Heroes_Func014002)
call DestroyGroup(udg_group05)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_Flags_Actions takes nothing returns nothing
call FogEnableOn()
call FogMaskEnableOn()
call SetMapFlag(MAP_CHEATS,false)
call SetTimeOfDay(12.)
call SetMapFlag(MAP_USE_HANDICAPS,false)
call VolumeGroupResetBJ()
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(9))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(10))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(11))
call SetPlayerColorBJ(Player(10),PLAYER_COLOR_LIGHT_BLUE,true)
call SetPlayerColorBJ(Player(11),PLAYER_COLOR_LIGHT_BLUE,true)
call SetPlayerOnScoreScreen(Player(8),false)
call SetPlayerOnScoreScreen(Player(9),false)
call SetPlayerOnScoreScreen(Player(10),false)
call SetPlayerOnScoreScreen(Player(11),false)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_Quests_Actions takes nothing returns nothing
call CreateQuestBJ(0,"Castle","Defend the castle in the middle to have a chance to win.","ReplaceableTextures\\CommandButtons\\BTNCastle.blp")
set udg_quests01[1]=bj_lastCreatedQuest
call CreateQuestBJ(0,"Magtheridon","Kill Magtheridon to enter the dark hero area.","ReplaceableTextures\\CommandButtons\\BTNPitLord.blp")
set udg_quests01[2]=bj_lastCreatedQuest
call CreateQuestBJ(0,"Dark Forces","Kill all dark forces to win.","ReplaceableTextures\\CommandButtons\\BTNShade.blp")
set udg_quests01[3]=bj_lastCreatedQuest
call CreateQuestBJ(2,"Special Events","TRIGSTR_950","ReplaceableTextures\\CommandButtons\\BTNLament.blp")
set udg_quests01[4]=bj_lastCreatedQuest
call CreateQuestBJ(2,"Commands","TRIGSTR_953","ReplaceableTextures\\CommandButtons\\BTNVengeanceIncarnate.tga")
set udg_quests01[5]=bj_lastCreatedQuest
call CreateQuestBJ(2,"General Tips","TRIGSTR_962","ReplaceableTextures\\CommandButtons\\BTNAmbush.blp")
set udg_quests01[6]=bj_lastCreatedQuest
call CreateQuestItemBJ(udg_quests01[6],"Download current version: http://www.hiveworkshop.com")
call CreateQuestItemBJ(udg_quests01[6],"If you have any suggestion: [email protected]")
call CreateQuestItemBJ(udg_quests01[6],"2007/03/12 by Sogat")
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_StartGame_Func001003001 takes nothing returns boolean
return(GetPlayerSlotState(Player(-1+(bj_forLoopAIndex)))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_StartGame_Func002Func001C takes nothing returns boolean
return(GetPlayerSlotState(Player(-1+(bj_forLoopAIndex)))==PLAYER_SLOT_STATE_PLAYING)and(GetPlayerController(Player(-1+(bj_forLoopAIndex)))==MAP_CONTROL_USER)
endfunction
function Trig_StartGame_Func003001 takes nothing returns boolean
return(1<=udg_integer01)
endfunction
function Trig_StartGame_Func004001 takes nothing returns boolean
return(2<=udg_integer01)
endfunction
function Trig_StartGame_Func005001 takes nothing returns boolean
return(3<=udg_integer01)
endfunction
function Trig_StartGame_Func006001 takes nothing returns boolean
return(4<=udg_integer01)
endfunction
function Trig_StartGame_Func007001 takes nothing returns boolean
return(5<=udg_integer01)
endfunction
function Trig_StartGame_Func008001 takes nothing returns boolean
return(6<=udg_integer01)
endfunction
function Trig_StartGame_Func009001 takes nothing returns boolean
return(7<=udg_integer01)
endfunction
function Trig_StartGame_Func010001 takes nothing returns boolean
return(8<=udg_integer01)
endfunction
function Trig_StartGame_Func012002 takes nothing returns nothing
call SetPlayerHandicapXPBJ(GetEnumPlayer(),21.)
endfunction
function Trig_StartGame_Func013002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),GetRectCenter(udg_rect14),0)
endfunction
function Trig_StartGame_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_StartGame_Func001003001())then
set udg_integer01=(udg_integer01+1)
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_StartGame_Func002Func001C())then
set udg_integer06=(udg_integer06+1)
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_StartGame_Func003001())then
call RemoveDestructable(udg_destructable01)
else
call SetDestructableInvulnerable(udg_destructable01,true)
endif
if(Trig_StartGame_Func004001())then
call RemoveDestructable(udg_destructable02)
else
call SetDestructableInvulnerable(udg_destructable02,true)
endif
if(Trig_StartGame_Func005001())then
call RemoveDestructable(udg_destructable03)
else
call SetDestructableInvulnerable(udg_destructable03,true)
endif
if(Trig_StartGame_Func006001())then
call RemoveDestructable(udg_destructable04)
else
call SetDestructableInvulnerable(udg_destructable04,true)
endif
if(Trig_StartGame_Func007001())then
call RemoveDestructable(udg_destructable05)
else
call SetDestructableInvulnerable(udg_destructable05,true)
endif
if(Trig_StartGame_Func008001())then
call RemoveDestructable(udg_destructable06)
else
call SetDestructableInvulnerable(udg_destructable06,true)
endif
if(Trig_StartGame_Func009001())then
call RemoveDestructable(udg_destructable07)
else
call SetDestructableInvulnerable(udg_destructable07,true)
endif
if(Trig_StartGame_Func010001())then
call RemoveDestructable(udg_destructable08)
else
call SetDestructableInvulnerable(udg_destructable08,true)
endif
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_StartGame_Func012002)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_StartGame_Func013002)
call TriggerExecute(udg_trigger58)
call TriggerExecute(udg_trigger43)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_OptionsGame_Func002001001 takes nothing returns boolean
return(udg_integer06==1)
endfunction
function Trig_OptionsGame_Func002001002 takes nothing returns boolean
return(GetPlayerName(Player(0))=="WorldEdit")
endfunction
function Trig_OptionsGame_Func002001 takes nothing returns boolean
return GetBooleanAnd(Trig_OptionsGame_Func002001001(),Trig_OptionsGame_Func002001002())
endfunction
function Trig_OptionsGame_Func006002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_OptionsGame_Func007Func002001001 takes nothing returns boolean
return(GetFilterPlayer()!=Player(0))
endfunction
function Trig_OptionsGame_Func007C takes nothing returns boolean
return(GetPlayerController(Player(0))==MAP_CONTROL_USER)and(GetPlayerSlotState(Player(0))==PLAYER_SLOT_STATE_PLAYING)and(CountUnitsInGroup(GetUnitsInRectAll(GetWorldBounds()))=='x')
endfunction
function Trig_OptionsGame_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
if(Trig_OptionsGame_Func002001())then
call CustomVictoryBJ(Player(0),false,false)
endif
set udg_integer05=1
call TriggerExecute(udg_trigger127)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAll(Player(11)),function Trig_OptionsGame_Func006002)
if(Trig_OptionsGame_Func007C())then
call EnableTrigger(udg_trigger10)
call DisplayTimedTextToForce(GetPlayersMatching(Condition(function Trig_OptionsGame_Func007Func002001001)),10.,"Please wait 15 seconds for options.")
call DialogSetMessage(udg_dialog03,"Game Mode")
call DialogAddButtonBJ(udg_dialog03,"Normal")
set udg_buttons01[1]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog03,"Extreme")
set udg_buttons01[2]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog03,"Easy")
set udg_buttons01[3]=bj_lastCreatedButton
call DialogDisplayBJ(true,udg_dialog03,Player(0))
else
call TriggerExecute(udg_trigger14)
call DestroyTrigger(udg_trigger10)
call DestroyTrigger(udg_trigger11)
endif
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_OptionsDifficulty_Func002C takes nothing returns boolean
return(GetClickedButton()==udg_buttons01[2])
endfunction
function Trig_OptionsDifficulty_Func003Func001001 takes nothing returns boolean
return(GetClickedButton()==udg_buttons01[1])
endfunction
function Trig_OptionsDifficulty_Func003Func001002 takes nothing returns boolean
return(GetClickedButton()==udg_buttons01[3])
endfunction
function Trig_OptionsDifficulty_Func003C takes nothing returns boolean
return(GetBooleanOr(Trig_OptionsDifficulty_Func003Func001001(),Trig_OptionsDifficulty_Func003Func001002()))
endfunction
function Trig_OptionsDifficulty_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
if(Trig_OptionsDifficulty_Func002C())then
call EnableTrigger(udg_trigger11)
call DialogSetMessage(udg_dialog01,"Difficulty Level")
call DialogAddButtonBJ(udg_dialog01,"Level 1 Extreme")
set udg_buttons03[1]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog01,"Level 2 Crazy")
set udg_buttons03[2]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog01,"Level 3 Frenzy")
set udg_buttons03[3]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog01,"Level 4 Impossible")
set udg_buttons03[4]=bj_lastCreatedButton
call DialogDisplayBJ(true,udg_dialog01,Player(0))
endif
if(Trig_OptionsDifficulty_Func003C())then
call TriggerExecute(udg_trigger11)
endif
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_OptionsHeroes_Func002001 takes nothing returns boolean
return(GetClickedButton()==udg_buttons03[1])
endfunction
function Trig_OptionsHeroes_Func003001 takes nothing returns boolean
return(GetClickedButton()==udg_buttons03[2])
endfunction
function Trig_OptionsHeroes_Func004001 takes nothing returns boolean
return(GetClickedButton()==udg_buttons03[3])
endfunction
function Trig_OptionsHeroes_Func005001 takes nothing returns boolean
return(GetClickedButton()==udg_buttons03[4])
endfunction
function Trig_OptionsHeroes_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
if(Trig_OptionsHeroes_Func002001())then
set udg_integer07=2
endif
if(Trig_OptionsHeroes_Func003001())then
set udg_integer07=3
endif
if(Trig_OptionsHeroes_Func004001())then
set udg_integer07=4
endif
if(Trig_OptionsHeroes_Func005001())then
set udg_integer07=5
endif
call DialogSetMessage(udg_dialog04,"Hero Selection Mode")
call DialogAddButtonBJ(udg_dialog04,"Normal")
set udg_buttons02[1]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog04,"Same Heroes")
set udg_buttons02[2]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog04,"Random Heroes")
set udg_buttons02[3]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog04,"Dual Heroes")
set udg_buttons02[4]=bj_lastCreatedButton
call DialogDisplayBJ(true,udg_dialog04,Player(0))
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_OptionsTimeOut_Conditions takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger14))
endfunction
function Trig_OptionsTimeOut_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DialogDisplayBJ(false,udg_dialog03,Player(0))
call DialogDisplayBJ(false,udg_dialog01,Player(0))
call DialogDisplayBJ(false,udg_dialog04,Player(0))
call ConditionalTriggerExecute(udg_trigger15)
call TriggerExecute(udg_trigger14)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_ModeRandom_Conditions takes nothing returns boolean
return(GetClickedButton()==udg_buttons02[3])
endfunction
function Trig_ModeRandom_Func009Func001002 takes nothing returns boolean
return(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)>=5000)
endfunction
function Trig_ModeRandom_Func009Func002002 takes nothing returns boolean
return(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)>=125000)
endfunction
function Trig_ModeRandom_Func009C takes nothing returns boolean
return(udg_boolean04)
endfunction
function Trig_ModeRandom_Func010Func001C takes nothing returns boolean
return(udg_boolean04)
endfunction
function Trig_ModeRandom_Func010C takes nothing returns boolean
return(udg_integer07>1)
endfunction
function Trig_ModeRandom_Func012Func001Func003002002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(8))
endfunction
function Trig_ModeRandom_Func012Func001Func003002002002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_ModeRandom_Func012Func001Func003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_ModeRandom_Func012Func001Func003002002001(),Trig_ModeRandom_Func012Func001Func003002002002())
endfunction
function Trig_ModeRandom_Func012Func001Func008002002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(8))
endfunction
function Trig_ModeRandom_Func012Func001Func008002002002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==GetUnitTypeId(udg_units01[bj_forLoopAIndex]))
endfunction
function Trig_ModeRandom_Func012Func001Func008002002 takes nothing returns boolean
return GetBooleanAnd(Trig_ModeRandom_Func012Func001Func008002002001(),Trig_ModeRandom_Func012Func001Func008002002002())
endfunction
function Trig_ModeRandom_Func012Func001Func009002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_ModeRandom_Func012Func001Func015001 takes nothing returns boolean
return(udg_boolean04)
endfunction
function Trig_ModeRandom_Func012Func001C takes nothing returns boolean
return(GetPlayerSlotState(Player(-1+(bj_forLoopAIndex)))==PLAYER_SLOT_STATE_PLAYING)and(CountUnitsInGroup(GetUnitsOfPlayerAll(Player(-1+(bj_forLoopAIndex))))==0)and(GetPlayerController(Player(-1+(bj_forLoopAIndex)))==MAP_CONTROL_USER)
endfunction
function Trig_ModeRandom_Func014001 takes nothing returns boolean
return(udg_integer07==1)
endfunction
function Trig_ModeRandom_Func015001 takes nothing returns boolean
return(udg_integer07==5)
endfunction
function Trig_ModeRandom_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger137)
call DisableTrigger(udg_trigger138)
call DisableTrigger(udg_trigger12)
call TriggerExecute(udg_trigger38)
set udg_boolean03=true
if(Trig_ModeRandom_Func009C())then
call TriggerAddCondition(udg_trigger139,Condition(function Trig_ModeRandom_Func009Func002002))
else
call TriggerAddCondition(udg_trigger139,Condition(function Trig_ModeRandom_Func009Func001002))
endif
if(Trig_ModeRandom_Func010C())then
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,20.,("|c0061FFFFGame mode|c00FFFFFF: Extreme level "+I2S((udg_integer07-1))))
else
if(Trig_ModeRandom_Func010Func001C())then
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,20.,"|c0061FFFFGame mode|c00FFFFFF: Easy")
else
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,20.,"|c0061FFFFGame mode|c00FFFFFF: Normal")
endif
endif
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,20.,"|c0061FFFFHero mode|c00FFFFFF: Random heroes")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_ModeRandom_Func012Func001C())then
set udg_group05=GetUnitsInRectMatching(udg_rect14,Condition(function Trig_ModeRandom_Func012Func001Func003002002))
call PanCameraToTimedLocForPlayer(Player(-1+(bj_forLoopAIndex)),GetRectCenter(udg_rect33),0)
call CreateNUnitsAtLoc(1,GetUnitTypeId(GroupPickRandomUnit(udg_group05)),Player(-1+(bj_forLoopAIndex)),GetRectCenter(udg_rect33),225.)
set udg_units01[bj_forLoopAIndex]=bj_lastCreatedUnit
set udg_integers16[bj_forLoopAIndex]=1
set udg_group05=GetUnitsInRectMatching(udg_rect14,Condition(function Trig_ModeRandom_Func012Func001Func008002002))
call ForGroupBJ(udg_group05,function Trig_ModeRandom_Func012Func001Func009002)
call SelectUnitForPlayerSingle(udg_units01[bj_forLoopAIndex],Player(-1+(bj_forLoopAIndex)))
call UnitAddItemByIdSwapped('stwp',udg_units01[bj_forLoopAIndex])
call UnitAddItemByIdSwapped('ankh',udg_units01[bj_forLoopAIndex])
call UnitAddItemByIdSwapped('pghe',udg_units01[bj_forLoopAIndex])
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=udg_integer08
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call UnitAddItemByIdSwapped('tpow',udg_units01[bj_forLoopAIndex])
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
if(Trig_ModeRandom_Func012Func001Func015001())then
call SetPlayerStateBJ(Player(-1+(bj_forLoopAIndex)),PLAYER_STATE_RESOURCE_GOLD,125000)
else
call SetPlayerStateBJ(Player(-1+(bj_forLoopAIndex)),PLAYER_STATE_RESOURCE_GOLD,5000)
endif
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DestroyGroup(udg_group05)
if(Trig_ModeRandom_Func014001())then
call DestroyTrigger(udg_trigger15)
endif
if(Trig_ModeRandom_Func015001())then
else
call DestroyTrigger(udg_trigger143)
endif
call DestroyTrigger(udg_trigger12)
call DestroyTrigger(udg_trigger14)
call DestroyTrigger(udg_trigger137)
call DestroyTrigger(udg_trigger138)
call DestroyTrigger(udg_trigger16)
call DestroyTrigger(udg_trigger33)
call DestroyTrigger(udg_trigger34)
call DestroyTrigger(udg_trigger35)
call DestroyTrigger(udg_trigger36)
call DestroyTrigger(udg_trigger37)
call DestroyTrigger(udg_trigger17)
call DestroyTrigger(udg_trigger18)
call DestroyTrigger(udg_trigger19)
call DestroyTrigger(udg_trigger20)
call DestroyTrigger(udg_trigger21)
call DestroyTrigger(udg_trigger22)
call DestroyTrigger(udg_trigger23)
call DestroyTrigger(udg_trigger24)
call DestroyTrigger(udg_trigger25)
call DestroyTrigger(udg_trigger26)
call DestroyTrigger(udg_trigger27)
call DestroyTrigger(udg_trigger28)
call DestroyTrigger(udg_trigger29)
call DestroyTrigger(udg_trigger30)
call DestroyTrigger(udg_trigger31)
call DestroyTrigger(udg_trigger32)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_ModeNormal_Conditions takes nothing returns boolean
return(GetClickedButton()!=udg_buttons02[3])
endfunction
function Trig_ModeNormal_Func004Func001002 takes nothing returns boolean
return(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)>=5000)
endfunction
function Trig_ModeNormal_Func004Func002002 takes nothing returns boolean
return(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)>=125000)
endfunction
function Trig_ModeNormal_Func004C takes nothing returns boolean
return(udg_boolean04)
endfunction
function Trig_ModeNormal_Func005Func001C takes nothing returns boolean
return(udg_boolean04)
endfunction
function Trig_ModeNormal_Func005C takes nothing returns boolean
return(udg_integer07>1)
endfunction
function Trig_ModeNormal_Func006Func001C takes nothing returns boolean
return(GetPlayerController(Player(0))==MAP_CONTROL_USER)and(GetPlayerSlotState(Player(0))==PLAYER_SLOT_STATE_PLAYING)and(IsTriggerEnabled(udg_trigger12))and(GetClickedButton()==udg_buttons02[2])
endfunction
function Trig_ModeNormal_Func006Func004002 takes nothing returns boolean
return(GetTriggerUnit()!=udg_units01[((1+GetPlayerId(GetTriggerPlayer()))+8)])
endfunction
function Trig_ModeNormal_Func006C takes nothing returns boolean
return(GetPlayerController(Player(0))==MAP_CONTROL_USER)and(GetPlayerSlotState(Player(0))==PLAYER_SLOT_STATE_PLAYING)and(IsTriggerEnabled(udg_trigger12))and(GetClickedButton()==udg_buttons02[4])
endfunction
function Trig_ModeNormal_Func007001 takes nothing returns boolean
return(GetPlayerSlotState(Player(0))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_ModeNormal_Func008001 takes nothing returns boolean
return(GetPlayerSlotState(Player(1))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_ModeNormal_Func009001 takes nothing returns boolean
return(GetPlayerSlotState(Player(2))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_ModeNormal_Func010001 takes nothing returns boolean
return(GetPlayerSlotState(Player(3))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_ModeNormal_Func011001 takes nothing returns boolean
return(GetPlayerSlotState(Player(4))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_ModeNormal_Func012001 takes nothing returns boolean
return(GetPlayerSlotState(Player(5))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_ModeNormal_Func013001 takes nothing returns boolean
return(GetPlayerSlotState(Player(6))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_ModeNormal_Func014001 takes nothing returns boolean
return(GetPlayerSlotState(Player(7))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_ModeNormal_Func017001 takes nothing returns boolean
return(udg_integer07==1)
endfunction
function Trig_ModeNormal_Func018001 takes nothing returns boolean
return(udg_integer07==5)
endfunction
function Trig_ModeNormal_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call TriggerExecute(udg_trigger38)
if(Trig_ModeNormal_Func004C())then
call TriggerAddCondition(udg_trigger139,Condition(function Trig_ModeNormal_Func004Func002002))
else
call TriggerAddCondition(udg_trigger139,Condition(function Trig_ModeNormal_Func004Func001002))
endif
if(Trig_ModeNormal_Func005C())then
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,20.,("|c0061FFFFGame mode|c00FFFFFF: Extreme level "+I2S((udg_integer07-1))))
else
if(Trig_ModeNormal_Func005Func001C())then
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,20.,"|c0061FFFFGame mode|c00FFFFFF: Easy")
else
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,20.,"|c0061FFFFGame mode|c00FFFFFF: Normal")
endif
endif
if(Trig_ModeNormal_Func006C())then
call RemoveUnit(udg_unit56)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,20.,"|c0061FFFFHero mode|c00FFFFFF: Dual heroes")
call TriggerAddCondition(udg_trigger122,Condition(function Trig_ModeNormal_Func006Func004002))
call EnableTrigger(udg_trigger33)
call EnableTrigger(udg_trigger34)
call EnableTrigger(udg_trigger35)
call EnableTrigger(udg_trigger36)
call EnableTrigger(udg_trigger37)
call DestroyTrigger(udg_trigger137)
call DestroyTrigger(udg_trigger139)
call DestroyTrigger(udg_trigger138)
else
if(Trig_ModeNormal_Func006Func001C())then
set udg_boolean01=true
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,20.,"|c0061FFFFHero mode|c00FFFFFF: Same heroes")
else
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,20.,"|c0061FFFFHero mode|c00FFFFFF: Normal")
endif
call EnableTrigger(udg_trigger138)
call DestroyTrigger(udg_trigger33)
call DestroyTrigger(udg_trigger34)
call DestroyTrigger(udg_trigger35)
call DestroyTrigger(udg_trigger36)
call DestroyTrigger(udg_trigger37)
endif
if(Trig_ModeNormal_Func007001())then
call EnableTrigger(udg_trigger17)
endif
if(Trig_ModeNormal_Func008001())then
call EnableTrigger(udg_trigger19)
endif
if(Trig_ModeNormal_Func009001())then
call EnableTrigger(udg_trigger21)
endif
if(Trig_ModeNormal_Func010001())then
call EnableTrigger(udg_trigger23)
endif
if(Trig_ModeNormal_Func011001())then
call EnableTrigger(udg_trigger25)
endif
if(Trig_ModeNormal_Func012001())then
call EnableTrigger(udg_trigger27)
endif
if(Trig_ModeNormal_Func013001())then
call EnableTrigger(udg_trigger29)
endif
if(Trig_ModeNormal_Func014001())then
call EnableTrigger(udg_trigger31)
endif
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,20.,"Please choose hero and go to one way what you want guard.")
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,20.,"Double click a hero to select him.")
if(Trig_ModeNormal_Func017001())then
call DestroyTrigger(udg_trigger15)
endif
if(Trig_ModeNormal_Func018001())then
else
call DestroyTrigger(udg_trigger143)
endif
call DestroyTrigger(udg_trigger13)
call DestroyTrigger(udg_trigger12)
call DestroyTrigger(udg_trigger16)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_ModeExtreme_Conditions takes nothing returns boolean
return(udg_integer07>=2)
endfunction
function Trig_ModeExtreme_Func005001 takes nothing returns boolean
return(udg_integer07==2)
endfunction
function Trig_ModeExtreme_Func006001 takes nothing returns boolean
return(udg_integer07==3)
endfunction
function Trig_ModeExtreme_Func007001 takes nothing returns boolean
return(udg_integer07==4)
endfunction
function Trig_ModeExtreme_Func008001 takes nothing returns boolean
return(udg_integer07==5)
endfunction
function Trig_ModeExtreme_Func010001 takes nothing returns boolean
return(udg_integer07==2)
endfunction
function Trig_ModeExtreme_Func011001 takes nothing returns boolean
return(udg_integer07==3)
endfunction
function Trig_ModeExtreme_Func012001 takes nothing returns boolean
return(udg_integer07==4)
endfunction
function Trig_ModeExtreme_Func013001 takes nothing returns boolean
return(udg_integer07==5)
endfunction
function Trig_ModeExtreme_Func015001001 takes nothing returns boolean
return(udg_integer07==2)
endfunction
function Trig_ModeExtreme_Func015001002 takes nothing returns boolean
return(udg_integer07==3)
endfunction
function Trig_ModeExtreme_Func015001 takes nothing returns boolean
return GetBooleanOr(Trig_ModeExtreme_Func015001001(),Trig_ModeExtreme_Func015001002())
endfunction
function Trig_ModeExtreme_Func016001001 takes nothing returns boolean
return(udg_integer07==4)
endfunction
function Trig_ModeExtreme_Func016001002 takes nothing returns boolean
return(udg_integer07==5)
endfunction
function Trig_ModeExtreme_Func016001 takes nothing returns boolean
return GetBooleanOr(Trig_ModeExtreme_Func016001001(),Trig_ModeExtreme_Func016001002())
endfunction
function Trig_ModeExtreme_Func035002 takes nothing returns nothing
call ModifyHeroStat(0,GetEnumUnit(),0,(udg_integer07*500))
endfunction
function Trig_ModeExtreme_Func036002 takes nothing returns nothing
call ModifyHeroStat(1,GetEnumUnit(),0,(udg_integer07*500))
endfunction
function Trig_ModeExtreme_Func037002 takes nothing returns nothing
call ModifyHeroStat(2,GetEnumUnit(),0,(udg_integer07*500))
endfunction
function Trig_ModeExtreme_Func055A takes nothing returns nothing
call ModifyHeroStat(0,GetEnumUnit(),0,(udg_integer07*500))
call ModifyHeroStat(1,GetEnumUnit(),0,(udg_integer07*500))
call ModifyHeroStat(2,GetEnumUnit(),0,(udg_integer07*500))
endfunction
function Trig_ModeExtreme_Func059001 takes nothing returns boolean
return(udg_integer07>=3)
endfunction
function Trig_ModeExtreme_Func060001 takes nothing returns boolean
return(udg_integer07>=4)
endfunction
function Trig_ModeExtreme_Func061001 takes nothing returns boolean
return(udg_integer07>=5)
endfunction
function Trig_ModeExtreme_Func062001 takes nothing returns boolean
return(udg_integer07>=3)
endfunction
function Trig_ModeExtreme_Func063001 takes nothing returns boolean
return(udg_integer07>=4)
endfunction
function Trig_ModeExtreme_Func064001 takes nothing returns boolean
return(udg_integer07>=5)
endfunction
function Trig_ModeExtreme_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
if(Trig_ModeExtreme_Func005001())then
call TriggerRegisterTimerEventPeriodic(udg_trigger39,15.)
endif
if(Trig_ModeExtreme_Func006001())then
call TriggerRegisterTimerEventPeriodic(udg_trigger39,14.)
endif
if(Trig_ModeExtreme_Func007001())then
call TriggerRegisterTimerEventPeriodic(udg_trigger39,13.)
endif
if(Trig_ModeExtreme_Func008001())then
call TriggerRegisterTimerEventPeriodic(udg_trigger39,12.)
endif
if(Trig_ModeExtreme_Func010001())then
call TriggerRegisterTimerEventPeriodic(udg_trigger48,75.)
endif
if(Trig_ModeExtreme_Func011001())then
call TriggerRegisterTimerEventPeriodic(udg_trigger48,70.)
endif
if(Trig_ModeExtreme_Func012001())then
call TriggerRegisterTimerEventPeriodic(udg_trigger48,65.)
endif
if(Trig_ModeExtreme_Func013001())then
call TriggerRegisterTimerEventPeriodic(udg_trigger48,60.)
endif
if(Trig_ModeExtreme_Func015001())then
set udg_integer08=2
endif
if(Trig_ModeExtreme_Func016001())then
set udg_integer08=1
endif
set udg_integers15[1]='AUdc'
set udg_integers15[2]='AOhw'
set udg_integers15[3]='AEmb'
set udg_integers15[4]='A02R'
set udg_integers15[5]='A018'
set udg_integers15[6]='AOr2'
set udg_integers15[7]='A02Q'
set udg_integers15[8]='A02X'
set udg_integers15[9]='AUan'
set udg_integers15[10]='AOvd'
set udg_integers15[11]='AEtq'
set udg_integers15[12]='AHre'
call UnitAddAbility(udg_unit57,'A026')
call SelectHeroSkill(udg_unit57,'A026')
set udg_group05=GetUnitsInRectAll(udg_rect01)
call ForGroupBJ(udg_group05,function Trig_ModeExtreme_Func035002)
call ForGroupBJ(udg_group05,function Trig_ModeExtreme_Func036002)
call ForGroupBJ(udg_group05,function Trig_ModeExtreme_Func037002)
call DestroyGroup(udg_group05)
call SelectHeroSkill(udg_unit08,'AOcr')
call SelectHeroSkill(udg_unit54,'AEev')
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=2
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SelectHeroSkill(udg_unit54,'AHhb')
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SelectHeroSkill(udg_unit07,'AOcr')
call ModifyHeroStat(0,udg_unit03,0,((udg_integer07-1)*500))
call ModifyHeroStat(1,udg_unit03,0,((udg_integer07-1)*500))
call ModifyHeroStat(2,udg_unit03,0,((udg_integer07-1)*500))
call ModifyHeroStat(0,udg_unit55,0,((udg_integer07-1)*500))
call ModifyHeroStat(1,udg_unit55,0,((udg_integer07-1)*500))
call ModifyHeroStat(2,udg_unit55,0,((udg_integer07-1)*500))
call GroupClear(udg_group02)
call GroupAddUnit(udg_group02,udg_unit49)
call GroupAddUnit(udg_group02,udg_unit52)
call GroupAddUnit(udg_group02,udg_unit53)
call GroupAddUnit(udg_group02,udg_unit44)
call ForGroupBJ(udg_group02,function Trig_ModeExtreme_Func055A)
call UnitAddAbility(udg_unit43,'A016')
if(Trig_ModeExtreme_Func059001())then
call SelectHeroSkill(udg_unit51,'AHhb')
endif
if(Trig_ModeExtreme_Func060001())then
call SelectHeroSkill(udg_unit51,'AHhb')
endif
if(Trig_ModeExtreme_Func061001())then
call SelectHeroSkill(udg_unit51,'AHhb')
endif
if(Trig_ModeExtreme_Func062001())then
call SelectHeroSkill(udg_unit51,'AHds')
endif
if(Trig_ModeExtreme_Func063001())then
call SelectHeroSkill(udg_unit51,'AHds')
endif
if(Trig_ModeExtreme_Func064001())then
call SelectHeroSkill(udg_unit51,'AHds')
endif
call DestroyTrigger(udg_trigger123)
call DestroyTrigger(udg_trigger124)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_ModeEasy_Conditions takes nothing returns boolean
return(GetClickedButton()==udg_buttons01[3])
endfunction
function Trig_ModeEasy_Func005002 takes nothing returns boolean
return(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)>=100000)
endfunction
function Trig_ModeEasy_Func009C takes nothing returns boolean
return(udg_integer06==1)
endfunction
function Trig_ModeEasy_Actions takes nothing returns nothing
set udg_boolean04=true
set udg_integer08=5
call TriggerAddCondition(udg_trigger137,Condition(function Trig_ModeEasy_Func005002))
call SetItemCharges(GetItemOfTypeFromUnitBJ(udg_unit41,'ankh'),1)
call UnitRemoveAbility(udg_unit51,'AHds')
set udg_integers02[3]='n00Y'
if(Trig_ModeEasy_Func009C())then
set udg_boolean02=true
call RemoveUnit(udg_unit52)
call RemoveUnit(udg_unit53)
call RemoveUnit(udg_unit49)
call RemoveUnit(udg_unit44)
else
call UnitRemoveAbility(udg_unit44,'ACpy')
call UnitRemoveAbility(udg_unit45,'ACpy')
call UnitRemoveAbility(udg_unit49,'ACsl')
call UnitRemoveAbility(udg_unit46,'ACsl')
endif
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_HeroSelect1a_Conditions takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO))and(GetOwningPlayer(GetTriggerUnit())==Player(8))and(RectContainsUnit(udg_rect14,GetTriggerUnit()))and(CountUnitsInGroup(GetUnitsOfPlayerAll(Player(0)))==0)
endfunction
function Trig_HeroSelect1a_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_units02[1]=GetTriggerUnit()
call TriggerSleepAction(.03)
call EnableTrigger(udg_trigger18)
call TriggerSleepAction(.3)
call DisableTrigger(udg_trigger18)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_HeroSelect1b_Conditions takes nothing returns boolean
return(udg_units02[1]==GetTriggerUnit())
endfunction
function Trig_HeroSelect1b_Func003001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_HeroSelect1b_Func003002 takes nothing returns nothing
set udg_units01[1]=GetEnumUnit()
endfunction
function Trig_HeroSelect1b_Func004C takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger34))
endfunction
function Trig_HeroSelect1b_Func005001 takes nothing returns boolean
return(udg_boolean01)
endfunction
function Trig_HeroSelect1b_Func010001 takes nothing returns boolean
return(udg_boolean04)
endfunction
function Trig_HeroSelect1b_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call CreateNUnitsAtLoc(1,GetUnitTypeId(GetTriggerUnit()),Player(0),GetRectCenter(udg_rect33),bj_UNIT_FACING)
call ForGroupBJ(GetUnitsOfPlayerMatching(Player(0),Condition(function Trig_HeroSelect1b_Func003001002)),function Trig_HeroSelect1b_Func003002)
if(Trig_HeroSelect1b_Func004C())then
set udg_booleans04[1]=true
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger33,Player(0),true)
call DisplayTimedTextToPlayer(Player(0),0,0,20.,"Please choose your second hero.")
else
call PanCameraToTimedLocForPlayer(Player(0),GetRectCenter(udg_rect33),0)
call SelectUnitForPlayerSingle(udg_units01[1],Player(0))
endif
if(Trig_HeroSelect1b_Func005001())then
else
call RemoveUnit(GetTriggerUnit())
endif
call UnitAddItemByIdSwapped('stwp',udg_units01[1])
call UnitAddItemByIdSwapped('ankh',udg_units01[1])
call UnitAddItemByIdSwapped('pghe',udg_units01[1])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer08
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call UnitAddItemByIdSwapped('tpow',udg_units01[1])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_HeroSelect1b_Func010001())then
call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_GOLD,100000)
else
call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_GOLD,1000)
endif
call TriggerSleepAction(1.)
call DisableTrigger(udg_trigger17)
endfunction
function Trig_HeroSelect2a_Conditions takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO))and(GetOwningPlayer(GetTriggerUnit())==Player(8))and(RectContainsUnit(udg_rect14,GetTriggerUnit()))and(CountUnitsInGroup(GetUnitsOfPlayerAll(Player(1)))==0)
endfunction
function Trig_HeroSelect2a_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_units02[2]=GetTriggerUnit()
call TriggerSleepAction(.03)
call EnableTrigger(udg_trigger20)
call TriggerSleepAction(.3)
call DisableTrigger(udg_trigger20)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_HeroSelect2b_Conditions takes nothing returns boolean
return(udg_units02[2]==GetTriggerUnit())
endfunction
function Trig_HeroSelect2b_Func003001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_HeroSelect2b_Func003002 takes nothing returns nothing
set udg_units01[2]=GetEnumUnit()
endfunction
function Trig_HeroSelect2b_Func004C takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger34))
endfunction
function Trig_HeroSelect2b_Func005001 takes nothing returns boolean
return(udg_boolean01)
endfunction
function Trig_HeroSelect2b_Func010001 takes nothing returns boolean
return(udg_boolean04)
endfunction
function Trig_HeroSelect2b_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call CreateNUnitsAtLoc(1,GetUnitTypeId(GetTriggerUnit()),Player(1),GetRectCenter(udg_rect33),bj_UNIT_FACING)
call ForGroupBJ(GetUnitsOfPlayerMatching(Player(1),Condition(function Trig_HeroSelect2b_Func003001002)),function Trig_HeroSelect2b_Func003002)
if(Trig_HeroSelect2b_Func004C())then
set udg_booleans04[2]=true
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger33,Player(1),true)
call DisplayTimedTextToPlayer(Player(1),0,0,20.,"Please choose your second hero.")
else
call PanCameraToTimedLocForPlayer(Player(1),GetRectCenter(udg_rect33),0)
call SelectUnitForPlayerSingle(udg_units01[2],Player(1))
endif
if(Trig_HeroSelect2b_Func005001())then
else
call RemoveUnit(GetTriggerUnit())
endif
call UnitAddItemByIdSwapped('stwp',udg_units01[2])
call UnitAddItemByIdSwapped('ankh',udg_units01[2])
call UnitAddItemByIdSwapped('pghe',udg_units01[2])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer08
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call UnitAddItemByIdSwapped('tpow',udg_units01[2])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_HeroSelect2b_Func010001())then
call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_GOLD,100000)
else
call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_GOLD,1000)
endif
call TriggerSleepAction(1.)
call DisableTrigger(udg_trigger19)
endfunction
function Trig_HeroSelect3a_Conditions takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO))and(GetOwningPlayer(GetTriggerUnit())==Player(8))and(RectContainsUnit(udg_rect14,GetTriggerUnit()))and(CountUnitsInGroup(GetUnitsOfPlayerAll(Player(2)))==0)
endfunction
function Trig_HeroSelect3a_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_units02[3]=GetTriggerUnit()
call TriggerSleepAction(.03)
call EnableTrigger(udg_trigger22)
call TriggerSleepAction(.3)
call DisableTrigger(udg_trigger22)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_HeroSelect3b_Conditions takes nothing returns boolean
return(udg_units02[3]==GetTriggerUnit())
endfunction
function Trig_HeroSelect3b_Func003001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_HeroSelect3b_Func003002 takes nothing returns nothing
set udg_units01[3]=GetEnumUnit()
endfunction
function Trig_HeroSelect3b_Func004C takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger34))
endfunction
function Trig_HeroSelect3b_Func005001 takes nothing returns boolean
return(udg_boolean01)
endfunction
function Trig_HeroSelect3b_Func010001 takes nothing returns boolean
return(udg_boolean04)
endfunction
function Trig_HeroSelect3b_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call CreateNUnitsAtLoc(1,GetUnitTypeId(GetTriggerUnit()),Player(2),GetRectCenter(udg_rect33),bj_UNIT_FACING)
call ForGroupBJ(GetUnitsOfPlayerMatching(Player(2),Condition(function Trig_HeroSelect3b_Func003001002)),function Trig_HeroSelect3b_Func003002)
if(Trig_HeroSelect3b_Func004C())then
set udg_booleans04[3]=true
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger33,Player(2),true)
call DisplayTimedTextToPlayer(Player(2),0,0,20.,"Please choose your second hero.")
else
call PanCameraToTimedLocForPlayer(Player(2),GetRectCenter(udg_rect33),0)
call SelectUnitForPlayerSingle(udg_units01[3],Player(2))
endif
if(Trig_HeroSelect3b_Func005001())then
else
call RemoveUnit(GetTriggerUnit())
endif
call UnitAddItemByIdSwapped('stwp',udg_units01[3])
call UnitAddItemByIdSwapped('ankh',udg_units01[3])
call UnitAddItemByIdSwapped('pghe',udg_units01[3])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer08
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call UnitAddItemByIdSwapped('tpow',udg_units01[3])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_HeroSelect3b_Func010001())then
call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_GOLD,100000)
else
call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_GOLD,1000)
endif
call TriggerSleepAction(1.)
call DisableTrigger(udg_trigger21)
endfunction
function Trig_HeroSelect4a_Conditions takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO))and(GetOwningPlayer(GetTriggerUnit())==Player(8))and(RectContainsUnit(udg_rect14,GetTriggerUnit()))and(CountUnitsInGroup(GetUnitsOfPlayerAll(Player(3)))==0)
endfunction
function Trig_HeroSelect4a_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_units02[4]=GetTriggerUnit()
call TriggerSleepAction(.03)
call EnableTrigger(udg_trigger24)
call TriggerSleepAction(.3)
call DisableTrigger(udg_trigger24)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_HeroSelect4b_Conditions takes nothing returns boolean
return(udg_units02[4]==GetTriggerUnit())
endfunction
function Trig_HeroSelect4b_Func003001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_HeroSelect4b_Func003002 takes nothing returns nothing
set udg_units01[4]=GetEnumUnit()
endfunction
function Trig_HeroSelect4b_Func004C takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger34))
endfunction
function Trig_HeroSelect4b_Func005001 takes nothing returns boolean
return(udg_boolean01)
endfunction
function Trig_HeroSelect4b_Func010001 takes nothing returns boolean
return(udg_boolean04)
endfunction
function Trig_HeroSelect4b_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call CreateNUnitsAtLoc(1,GetUnitTypeId(GetTriggerUnit()),Player(3),GetRectCenter(udg_rect33),bj_UNIT_FACING)
call ForGroupBJ(GetUnitsOfPlayerMatching(Player(3),Condition(function Trig_HeroSelect4b_Func003001002)),function Trig_HeroSelect4b_Func003002)
if(Trig_HeroSelect4b_Func004C())then
set udg_booleans04[4]=true
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger33,Player(3),true)
call DisplayTimedTextToPlayer(Player(3),0,0,20.,"Please choose your second hero.")
else
call PanCameraToTimedLocForPlayer(Player(3),GetRectCenter(udg_rect33),0)
call SelectUnitForPlayerSingle(udg_units01[4],Player(3))
endif
if(Trig_HeroSelect4b_Func005001())then
else
call RemoveUnit(GetTriggerUnit())
endif
call UnitAddItemByIdSwapped('stwp',udg_units01[4])
call UnitAddItemByIdSwapped('ankh',udg_units01[4])
call UnitAddItemByIdSwapped('pghe',udg_units01[4])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer08
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call UnitAddItemByIdSwapped('tpow',udg_units01[4])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_HeroSelect4b_Func010001())then
call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_GOLD,100000)
else
call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_GOLD,1000)
endif
call TriggerSleepAction(1.)
call DisableTrigger(udg_trigger23)
endfunction
function Trig_HeroSelect5a_Conditions takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO))and(GetOwningPlayer(GetTriggerUnit())==Player(8))and(RectContainsUnit(udg_rect14,GetTriggerUnit()))and(CountUnitsInGroup(GetUnitsOfPlayerAll(Player(4)))==0)
endfunction
function Trig_HeroSelect5a_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_units02[5]=GetTriggerUnit()
call TriggerSleepAction(.03)
call EnableTrigger(udg_trigger26)
call TriggerSleepAction(.3)
call DisableTrigger(udg_trigger26)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_HeroSelect5b_Conditions takes nothing returns boolean
return(udg_units02[5]==GetTriggerUnit())
endfunction
function Trig_HeroSelect5b_Func003001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_HeroSelect5b_Func003002 takes nothing returns nothing
set udg_units01[5]=GetEnumUnit()
endfunction
function Trig_HeroSelect5b_Func004C takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger34))
endfunction
function Trig_HeroSelect5b_Func005001 takes nothing returns boolean
return(udg_boolean01)
endfunction
function Trig_HeroSelect5b_Func010001 takes nothing returns boolean
return(udg_boolean04)
endfunction
function Trig_HeroSelect5b_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call CreateNUnitsAtLoc(1,GetUnitTypeId(GetTriggerUnit()),Player(4),GetRectCenter(udg_rect33),bj_UNIT_FACING)
call ForGroupBJ(GetUnitsOfPlayerMatching(Player(4),Condition(function Trig_HeroSelect5b_Func003001002)),function Trig_HeroSelect5b_Func003002)
if(Trig_HeroSelect5b_Func004C())then
set udg_booleans04[5]=true
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger33,Player(4),true)
call DisplayTimedTextToPlayer(Player(4),0,0,20.,"Please choose your second hero.")
else
call PanCameraToTimedLocForPlayer(Player(4),GetRectCenter(udg_rect33),0)
call SelectUnitForPlayerSingle(udg_units01[5],Player(4))
endif
if(Trig_HeroSelect5b_Func005001())then
else
call RemoveUnit(GetTriggerUnit())
endif
call UnitAddItemByIdSwapped('stwp',udg_units01[5])
call UnitAddItemByIdSwapped('ankh',udg_units01[5])
call UnitAddItemByIdSwapped('pghe',udg_units01[5])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer08
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call UnitAddItemByIdSwapped('tpow',udg_units01[5])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_HeroSelect5b_Func010001())then
call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_GOLD,100000)
else
call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_GOLD,1000)
endif
call TriggerSleepAction(1.)
call DisableTrigger(udg_trigger25)
endfunction
function Trig_HeroSelect6a_Conditions takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO))and(GetOwningPlayer(GetTriggerUnit())==Player(8))and(RectContainsUnit(udg_rect14,GetTriggerUnit()))and(CountUnitsInGroup(GetUnitsOfPlayerAll(Player(5)))==0)
endfunction
function Trig_HeroSelect6a_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_units02[6]=GetTriggerUnit()
call TriggerSleepAction(.03)
call EnableTrigger(udg_trigger28)
call TriggerSleepAction(.3)
call DisableTrigger(udg_trigger28)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_HeroSelect6b_Conditions takes nothing returns boolean
return(udg_units02[6]==GetTriggerUnit())
endfunction
function Trig_HeroSelect6b_Func003001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_HeroSelect6b_Func003002 takes nothing returns nothing
set udg_units01[6]=GetEnumUnit()
endfunction
function Trig_HeroSelect6b_Func004C takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger34))
endfunction
function Trig_HeroSelect6b_Func005001 takes nothing returns boolean
return(udg_boolean01)
endfunction
function Trig_HeroSelect6b_Func010001 takes nothing returns boolean
return(udg_boolean04)
endfunction
function Trig_HeroSelect6b_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call CreateNUnitsAtLoc(1,GetUnitTypeId(GetTriggerUnit()),Player(5),GetRectCenter(udg_rect33),bj_UNIT_FACING)
call ForGroupBJ(GetUnitsOfPlayerMatching(Player(5),Condition(function Trig_HeroSelect6b_Func003001002)),function Trig_HeroSelect6b_Func003002)
if(Trig_HeroSelect6b_Func004C())then
set udg_booleans04[6]=true
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger33,Player(5),true)
call DisplayTimedTextToPlayer(Player(5),0,0,20.,"Please choose your second hero.")
else
call PanCameraToTimedLocForPlayer(Player(5),GetRectCenter(udg_rect33),0)
call SelectUnitForPlayerSingle(udg_units01[6],Player(5))
endif
if(Trig_HeroSelect6b_Func005001())then
else
call RemoveUnit(GetTriggerUnit())
endif
call UnitAddItemByIdSwapped('stwp',udg_units01[6])
call UnitAddItemByIdSwapped('ankh',udg_units01[6])
call UnitAddItemByIdSwapped('pghe',udg_units01[6])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer08
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call UnitAddItemByIdSwapped('tpow',udg_units01[6])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_HeroSelect6b_Func010001())then
call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_GOLD,100000)
else
call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_GOLD,1000)
endif
call TriggerSleepAction(1.)
call DisableTrigger(udg_trigger27)
endfunction
function Trig_HeroSelect7a_Conditions takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO))and(GetOwningPlayer(GetTriggerUnit())==Player(8))and(RectContainsUnit(udg_rect14,GetTriggerUnit()))and(CountUnitsInGroup(GetUnitsOfPlayerAll(Player(6)))==0)
endfunction
function Trig_HeroSelect7a_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_units02[7]=GetTriggerUnit()
call TriggerSleepAction(.03)
call EnableTrigger(udg_trigger30)
call TriggerSleepAction(.3)
call DisableTrigger(udg_trigger30)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_HeroSelect7b_Conditions takes nothing returns boolean
return(udg_units02[7]==GetTriggerUnit())
endfunction
function Trig_HeroSelect7b_Func003001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_HeroSelect7b_Func003002 takes nothing returns nothing
set udg_units01[7]=GetEnumUnit()
endfunction
function Trig_HeroSelect7b_Func004C takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger34))
endfunction
function Trig_HeroSelect7b_Func005001 takes nothing returns boolean
return(udg_boolean01)
endfunction
function Trig_HeroSelect7b_Func010001 takes nothing returns boolean
return(udg_boolean04)
endfunction
function Trig_HeroSelect7b_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call CreateNUnitsAtLoc(1,GetUnitTypeId(GetTriggerUnit()),Player(6),GetRectCenter(udg_rect33),bj_UNIT_FACING)
call ForGroupBJ(GetUnitsOfPlayerMatching(Player(6),Condition(function Trig_HeroSelect7b_Func003001002)),function Trig_HeroSelect7b_Func003002)
if(Trig_HeroSelect7b_Func004C())then
set udg_booleans04[7]=true
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger33,Player(6),true)
call DisplayTimedTextToPlayer(Player(6),0,0,20.,"Please choose your second hero.")
else
call PanCameraToTimedLocForPlayer(Player(6),GetRectCenter(udg_rect33),0)
call SelectUnitForPlayerSingle(udg_units01[7],Player(6))
endif
if(Trig_HeroSelect7b_Func005001())then
else
call RemoveUnit(GetTriggerUnit())
endif
call UnitAddItemByIdSwapped('stwp',udg_units01[7])
call UnitAddItemByIdSwapped('ankh',udg_units01[7])
call UnitAddItemByIdSwapped('pghe',udg_units01[7])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer08
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call UnitAddItemByIdSwapped('tpow',udg_units01[7])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_HeroSelect7b_Func010001())then
call SetPlayerStateBJ(Player(6),PLAYER_STATE_RESOURCE_GOLD,100000)
else
call SetPlayerStateBJ(Player(6),PLAYER_STATE_RESOURCE_GOLD,1000)
endif
call TriggerSleepAction(1.)
call DisableTrigger(udg_trigger29)
endfunction
function Trig_HeroSelect8a_Conditions takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO))and(GetOwningPlayer(GetTriggerUnit())==Player(8))and(RectContainsUnit(udg_rect14,GetTriggerUnit()))and(CountUnitsInGroup(GetUnitsOfPlayerAll(Player(7)))==0)
endfunction
function Trig_HeroSelect8a_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_units02[8]=GetTriggerUnit()
call TriggerSleepAction(.03)
call EnableTrigger(udg_trigger32)
call TriggerSleepAction(.3)
call DisableTrigger(udg_trigger32)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_HeroSelect8b_Conditions takes nothing returns boolean
return(udg_units02[8]==GetTriggerUnit())
endfunction
function Trig_HeroSelect8b_Func003001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_HeroSelect8b_Func003002 takes nothing returns nothing
set udg_units01[8]=GetEnumUnit()
endfunction
function Trig_HeroSelect8b_Func004C takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger34))
endfunction
function Trig_HeroSelect8b_Func005001 takes nothing returns boolean
return(udg_boolean01)
endfunction
function Trig_HeroSelect8b_Func010001 takes nothing returns boolean
return(udg_boolean04)
endfunction
function Trig_HeroSelect8b_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call CreateNUnitsAtLoc(1,GetUnitTypeId(GetTriggerUnit()),Player(7),GetRectCenter(udg_rect33),bj_UNIT_FACING)
call ForGroupBJ(GetUnitsOfPlayerMatching(Player(7),Condition(function Trig_HeroSelect8b_Func003001002)),function Trig_HeroSelect8b_Func003002)
if(Trig_HeroSelect8b_Func004C())then
set udg_booleans04[8]=true
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger33,Player(7),true)
call DisplayTimedTextToPlayer(Player(7),0,0,20.,"Please choose your second hero.")
else
call PanCameraToTimedLocForPlayer(Player(7),GetRectCenter(udg_rect33),0)
call SelectUnitForPlayerSingle(udg_units01[8],Player(7))
endif
if(Trig_HeroSelect8b_Func005001())then
else
call RemoveUnit(GetTriggerUnit())
endif
call UnitAddItemByIdSwapped('stwp',udg_units01[8])
call UnitAddItemByIdSwapped('ankh',udg_units01[8])
call UnitAddItemByIdSwapped('pghe',udg_units01[8])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer08
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call UnitAddItemByIdSwapped('tpow',udg_units01[8])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_HeroSelect8b_Func010001())then
call SetPlayerStateBJ(Player(7),PLAYER_STATE_RESOURCE_GOLD,100000)
else
call SetPlayerStateBJ(Player(7),PLAYER_STATE_RESOURCE_GOLD,1000)
endif
call TriggerSleepAction(1.)
call DisableTrigger(udg_trigger31)
endfunction
function Trig_DualHeroSelect_Func014001001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_DualHeroSelect_Conditions takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO))and(GetOwningPlayer(GetTriggerUnit())==Player(8))and(RectContainsUnit(udg_rect14,GetTriggerUnit()))and(CountUnitsInGroup(GetUnitsOfPlayerMatching(GetTriggerPlayer(),Condition(function Trig_DualHeroSelect_Func014001001002)))==1)and(GetUnitTypeId(GetTriggerUnit())!=GetUnitTypeId(udg_units01[(1+GetPlayerId(GetTriggerPlayer()))]))and(GetPlayerController(GetTriggerPlayer())==MAP_CONTROL_USER)
endfunction
function Trig_DualHeroSelect_Func009Func001Func004001001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_DualHeroSelect_Func009Func001C takes nothing returns boolean
return(GetPlayerSlotState(Player(-1+(bj_forLoopAIndex)))==PLAYER_SLOT_STATE_PLAYING)and(GetPlayerController(Player(-1+(bj_forLoopAIndex)))==MAP_CONTROL_USER)and(CountUnitsInGroup(GetUnitsOfPlayerMatching(Player(-1+(bj_forLoopAIndex)),Condition(function Trig_DualHeroSelect_Func009Func001Func004001001002)))!=2)
endfunction
function Trig_DualHeroSelect_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,GetUnitTypeId(GetTriggerUnit()),GetTriggerPlayer(),GetRectCenter(udg_rect14),bj_UNIT_FACING)
set udg_units01[((1+GetPlayerId(GetTriggerPlayer()))+8)]=bj_lastCreatedUnit
call RemoveUnit(GetTriggerUnit())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer08
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call UnitAddItemByIdSwapped('tpow',udg_units01[((1+GetPlayerId(GetTriggerPlayer()))+8)])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call IssueImmediateOrderById(udg_units01[((1+GetPlayerId(GetTriggerPlayer()))+8)],851993)
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetUnitLoc(udg_units01[(1+GetPlayerId(GetTriggerPlayer()))]),0)
call SelectUnitForPlayerSingle(udg_units01[(1+GetPlayerId(GetTriggerPlayer()))],GetTriggerPlayer())
call TriggerSleepAction(2)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_DualHeroSelect_Func009Func001C())then
return
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_DualHeroChange_Conditions takes nothing returns boolean
return(GetTriggerUnit()==udg_units01[((1+GetPlayerId(GetTriggerPlayer()))+8)])and(GetPlayerController(GetTriggerPlayer())==MAP_CONTROL_USER)and(udg_booleans04[(1+GetPlayerId(GetTriggerPlayer()))])and(IsUnitPaused(udg_units01[(1+GetPlayerId(GetTriggerPlayer()))])==false)and(IsUnitDeadBJ(udg_units01[(1+GetPlayerId(GetTriggerPlayer()))])==false)
endfunction
function Trig_DualHeroChange_Actions takes nothing returns nothing
set udg_booleans04[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=false
set udg_locations02[(1+GetPlayerId(GetTriggerPlayer()))]=GetUnitLoc(udg_units01[(1+GetPlayerId(GetTriggerPlayer()))])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call UnitAddItem(udg_units01[((1+GetPlayerId(GetTriggerPlayer()))+8)],UnitItemInSlotBJ(udg_units01[(1+GetPlayerId(GetTriggerPlayer()))],bj_forLoopAIndex))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitPositionLoc(udg_units01[(1+GetPlayerId(GetTriggerPlayer()))],GetRectCenter(udg_rect14))
call PauseUnit(udg_units01[(1+GetPlayerId(GetTriggerPlayer()))],true)
call AddSpecialEffectLocBJ(udg_locations02[(1+GetPlayerId(GetTriggerPlayer()))],"Abilities\\Spells\\Orc\\FeralSpirit\\feralspiritdone.mdl")
set udg_units01[((1+GetPlayerId(GetTriggerPlayer()))+8)]=udg_units01[(1+GetPlayerId(GetTriggerPlayer()))]
set udg_units01[(1+GetPlayerId(GetTriggerPlayer()))]=GetTriggerUnit()
call SetUnitPositionLoc(udg_units01[(1+GetPlayerId(GetTriggerPlayer()))],udg_locations02[(1+GetPlayerId(GetTriggerPlayer()))])
call PauseUnit(GetTriggerUnit(),false)
call SelectUnitForPlayerSingle(udg_units01[(1+GetPlayerId(GetTriggerPlayer()))],GetTriggerPlayer())
call DestroyEffect(bj_lastCreatedEffect)
call TriggerSleepAction(1.)
set udg_booleans04[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=true
endfunction
function Trig_DualHeroStats_Func001001 takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='tpow')
endfunction
function Trig_DualHeroStats_Func001002 takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I00C')
endfunction
function Trig_DualHeroStats_Conditions takes nothing returns boolean
return(GetBooleanOr(Trig_DualHeroStats_Func001001(),Trig_DualHeroStats_Func001002()))and(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_USER)and(GetTriggerUnit()==udg_units01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
endfunction
function Trig_DualHeroStats_Func003C takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I00C')
endfunction
function Trig_DualHeroStats_Actions takes nothing returns nothing
if(Trig_DualHeroStats_Func003C())then
call ModifyHeroStat(0,udg_units01[((1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))+8)],0,'d')
call ModifyHeroStat(1,udg_units01[((1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))+8)],0,'d')
call ModifyHeroStat(2,udg_units01[((1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))+8)],0,'d')
else
call ModifyHeroStat(0,udg_units01[((1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))+8)],0,10)
call ModifyHeroStat(1,udg_units01[((1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))+8)],0,10)
call ModifyHeroStat(2,udg_units01[((1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))+8)],0,10)
endif
endfunction
function Trig_DualHeroLevel_Conditions takes nothing returns boolean
return(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_USER)and(GetTriggerUnit()==udg_units01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
endfunction
function Trig_DualHeroLevel_Actions takes nothing returns nothing
call SetHeroLevelBJ(udg_units01[((1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))+8)],GetUnitLevel(GetTriggerUnit()),true)
endfunction
function Trig_DualHeroDead_Conditions takes nothing returns boolean
return(GetTriggerUnit()==udg_units01[((1+GetPlayerId(GetTriggerPlayer()))+8)])
endfunction
function Trig_DualHeroDead_Actions takes nothing returns nothing
set udg_location01=GetRectCenter(udg_rect14)
set udg_integer11=(1+GetPlayerId(GetTriggerPlayer()))
call ReviveHeroLoc(udg_units01[(udg_integer11+8)],udg_location01,false)
call PauseUnit(udg_units01[(udg_integer11+8)],true)
endfunction
function Trig_AttackStart_Func003Func001001 takes nothing returns boolean
return(bj_forLoopAIndex<=udg_integer01)
endfunction
function Trig_AttackStart_Func004001 takes nothing returns boolean
return(udg_integer07>12)
endfunction
function Trig_AttackStart_Func005C takes nothing returns boolean
return(udg_integer07>=2)
endfunction
function Trig_AttackStart_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_location02=GetRectCenter(udg_rect11)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_AttackStart_Func003Func001001())then
set udg_booleans01[bj_forLoopAIndex]=true
else
set udg_booleans01[bj_forLoopAIndex]=false
endif
set udg_integers03[bj_forLoopAIndex]=0
set udg_integers05[bj_forLoopAIndex]=1
set udg_integers06[bj_forLoopAIndex]=1
set udg_integers07[bj_forLoopAIndex]=3
set udg_integers08[bj_forLoopAIndex]=0
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_AttackStart_Func004001())then
set udg_integer10=12
else
set udg_integer10=udg_integer07
endif
if(Trig_AttackStart_Func005C())then
call StartTimerBJ(udg_timer05,true,320.)
call StartTimerBJ(udg_timer06,true,350.)
call EnableTrigger(udg_trigger47)
call EnableTrigger(udg_trigger50)
call EnableTrigger(udg_trigger48)
call EnableTrigger(udg_trigger49)
else
call TriggerRegisterTimerEventPeriodic(udg_trigger39,15.)
call DestroyTrigger(udg_trigger15)
call DestroyTrigger(udg_trigger47)
call DestroyTrigger(udg_trigger51)
call DestroyTrigger(udg_trigger50)
call DestroyTrigger(udg_trigger48)
call DestroyTrigger(udg_trigger49)
call TriggerSleepAction(20.)
endif
call EnableTrigger(udg_trigger41)
call EnableTrigger(udg_trigger42)
call EnableTrigger(udg_trigger39)
call EnableTrigger(udg_trigger40)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_AttackCome_Func001Func002001 takes nothing returns boolean
return(udg_integers08[bj_forLoopAIndex]>=4)
endfunction
function Trig_AttackCome_Func001Func003001 takes nothing returns boolean
return(udg_integers05[bj_forLoopAIndex]>2)
endfunction
function Trig_AttackCome_Func001Func004003001 takes nothing returns boolean
return(udg_integers05[bj_forLoopAIndex]==(bj_forLoopBIndex+2))
endfunction
function Trig_AttackCome_Func001Func006C takes nothing returns boolean
return(udg_booleans01[bj_forLoopAIndex])
endfunction
function Trig_AttackCome_Func001Func007C takes nothing returns boolean
return(udg_integers05[bj_forLoopAIndex]>1)and(udg_booleans01[bj_forLoopAIndex])
endfunction
function Trig_AttackCome_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer01
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_integers06[bj_forLoopAIndex]=1
if(Trig_AttackCome_Func001Func002001())then
set udg_integers08[bj_forLoopAIndex]=1
else
set udg_integers08[bj_forLoopAIndex]=(udg_integers08[bj_forLoopAIndex]+1)
endif
if(Trig_AttackCome_Func001Func003001())then
set udg_integers07[bj_forLoopAIndex]=4
endif
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=2
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
if(Trig_AttackCome_Func001Func004003001())then
set udg_integers06[bj_forLoopAIndex]=(bj_forLoopBIndex+1)
endif
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
set udg_integers06[bj_forLoopAIndex]=(udg_integers06[bj_forLoopAIndex]+((udg_integers08[bj_forLoopAIndex]*5)-5))
if(Trig_AttackCome_Func001Func006C())then
call CreateNUnitsAtLocFacingLocBJ(udg_integers07[bj_forLoopAIndex],udg_integers01[udg_integers06[bj_forLoopAIndex]],Player(11),GetRectCenter(udg_rects01[bj_forLoopAIndex]),udg_location02)
call GroupPointOrderByIdLoc(GetLastCreatedGroup(),851983,udg_location02)
call CreateNUnitsAtLocFacingLocBJ(udg_integers07[bj_forLoopAIndex],udg_integers01[(udg_integers06[bj_forLoopAIndex]+1)],Player(11),GetRectCenter(udg_rects01[bj_forLoopAIndex]),udg_location02)
call GroupPointOrderByIdLoc(GetLastCreatedGroup(),851983,udg_location02)
endif
if(Trig_AttackCome_Func001Func007C())then
call CreateNUnitsAtLocFacingLocBJ(udg_integers07[bj_forLoopAIndex],udg_integers01[(udg_integers06[bj_forLoopAIndex]+2)],Player(11),GetRectCenter(udg_rects01[bj_forLoopAIndex]),udg_location02)
call GroupPointOrderByIdLoc(GetLastCreatedGroup(),851983,udg_location02)
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_AttackCheck_Func002002 takes nothing returns nothing
call IssuePointOrderByIdLoc(GetEnumUnit(),851983,udg_location02)
endfunction
function Trig_AttackCheck_Actions takes nothing returns nothing
set udg_group05=GetUnitsOfPlayerAll(Player(11))
call ForGroupBJ(udg_group05,function Trig_AttackCheck_Func002002)
call DestroyGroup(udg_group05)
endfunction
function Trig_AttackNecropolis_Func001001 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit12)
endfunction
function Trig_AttackNecropolis_Func002001 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit13)
endfunction
function Trig_AttackNecropolis_Func003001 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit17)
endfunction
function Trig_AttackNecropolis_Func004001 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit21)
endfunction
function Trig_AttackNecropolis_Func005001 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit25)
endfunction
function Trig_AttackNecropolis_Func006001 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit26)
endfunction
function Trig_AttackNecropolis_Func007001 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit27)
endfunction
function Trig_AttackNecropolis_Func008001 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit28)
endfunction
function Trig_AttackNecropolis_Func014Func006Func001002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_AttackNecropolis_Func014Func006C takes nothing returns boolean
return(udg_integer07>1)
endfunction
function Trig_AttackNecropolis_Func014C takes nothing returns boolean
return(udg_booleans01[1]==false)and(udg_booleans01[2]==false)and(udg_booleans01[3]==false)and(udg_booleans01[4]==false)and(udg_booleans01[5]==false)and(udg_booleans01[6]==false)and(udg_booleans01[7]==false)and(udg_booleans01[8]==false)
endfunction
function Trig_AttackNecropolis_Actions takes nothing returns nothing
if(Trig_AttackNecropolis_Func001001())then
set udg_booleans01[1]=false
endif
if(Trig_AttackNecropolis_Func002001())then
set udg_booleans01[2]=false
endif
if(Trig_AttackNecropolis_Func003001())then
set udg_booleans01[3]=false
endif
if(Trig_AttackNecropolis_Func004001())then
set udg_booleans01[4]=false
endif
if(Trig_AttackNecropolis_Func005001())then
set udg_booleans01[5]=false
endif
if(Trig_AttackNecropolis_Func006001())then
set udg_booleans01[6]=false
endif
if(Trig_AttackNecropolis_Func007001())then
set udg_booleans01[7]=false
endif
if(Trig_AttackNecropolis_Func008001())then
set udg_booleans01[8]=false
endif
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"|c0061FFFFDarkness boss|c00FFFFFF: Magnataurus-Destroyer appears.")
call CreateItemLoc('flag',GetUnitLoc(GetTriggerUnit()))
call CreateNUnitsAtLocFacingLocBJ(udg_integer10,'nmgd',Player(11),GetUnitLoc(GetTriggerUnit()),udg_location02)
call GroupPointOrderByIdLoc(GetLastCreatedGroup(),851983,udg_location02)
call TriggerSleepAction(3.)
if(Trig_AttackNecropolis_Func014C())then
call DisableTrigger(GetTriggeringTrigger())
call ModifyGateBJ(1,udg_destructable14)
call ModifyGateBJ(1,udg_destructable13)
call DestroyTimerDialog(udg_timerdialog01)
if(Trig_AttackNecropolis_Func014Func006C())then
call ForGroupBJ(udg_group06,function Trig_AttackNecropolis_Func014Func006Func001002)
call GroupClear(udg_group06)
call DestroyTrigger(udg_trigger51)
endif
call DisableTrigger(udg_trigger141)
call DisableTrigger(udg_trigger142)
call DisableTrigger(udg_trigger42)
call DisableTrigger(udg_trigger39)
call DisableTrigger(udg_trigger118)
call DisableTrigger(udg_trigger119)
call DisableTrigger(udg_trigger120)
call EnableTrigger(udg_trigger52)
call DestroyTrigger(udg_trigger141)
call DestroyTrigger(udg_trigger142)
call DestroyTrigger(udg_trigger42)
call DestroyTrigger(udg_trigger39)
call DestroyTrigger(udg_trigger40)
call DestroyTrigger(GetTriggeringTrigger())
endif
endfunction
function Trig_AttackTower_Func001001 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit11)
endfunction
function Trig_AttackTower_Func002001 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit10)
endfunction
function Trig_AttackTower_Func003001 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit09)
endfunction
function Trig_AttackTower_Func004001 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit14)
endfunction
function Trig_AttackTower_Func005001 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit15)
endfunction
function Trig_AttackTower_Func006001 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit16)
endfunction
function Trig_AttackTower_Func007001 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit18)
endfunction
function Trig_AttackTower_Func008001 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit19)
endfunction
function Trig_AttackTower_Func009001 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit20)
endfunction
function Trig_AttackTower_Func010001 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit22)
endfunction
function Trig_AttackTower_Func011001 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit23)
endfunction
function Trig_AttackTower_Func012001 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit24)
endfunction
function Trig_AttackTower_Func013001 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit38)
endfunction
function Trig_AttackTower_Func014001 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit39)
endfunction
function Trig_AttackTower_Func015001 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit40)
endfunction
function Trig_AttackTower_Func016001 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit35)
endfunction
function Trig_AttackTower_Func017001 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit36)
endfunction
function Trig_AttackTower_Func018001 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit37)
endfunction
function Trig_AttackTower_Func019001 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit32)
endfunction
function Trig_AttackTower_Func020001 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit33)
endfunction
function Trig_AttackTower_Func021001 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit34)
endfunction
function Trig_AttackTower_Func022001 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit29)
endfunction
function Trig_AttackTower_Func023001 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit30)
endfunction
function Trig_AttackTower_Func024001 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit31)
endfunction
function Trig_AttackTower_Func025Func001001 takes nothing returns boolean
return(udg_integers05[bj_forLoopAIndex]<(udg_integers03[bj_forLoopAIndex]+1))
endfunction
function Trig_AttackTower_Actions takes nothing returns nothing
if(Trig_AttackTower_Func001001())then
set udg_integers03[1]=(udg_integers03[1]+1)
endif
if(Trig_AttackTower_Func002001())then
set udg_integers03[1]=(udg_integers03[1]+1)
endif
if(Trig_AttackTower_Func003001())then
set udg_integers03[1]=(udg_integers03[1]+1)
endif
if(Trig_AttackTower_Func004001())then
set udg_integers03[2]=(udg_integers03[2]+1)
endif
if(Trig_AttackTower_Func005001())then
set udg_integers03[2]=(udg_integers03[2]+1)
endif
if(Trig_AttackTower_Func006001())then
set udg_integers03[2]=(udg_integers03[2]+1)
endif
if(Trig_AttackTower_Func007001())then
set udg_integers03[3]=(udg_integers03[3]+1)
endif
if(Trig_AttackTower_Func008001())then
set udg_integers03[3]=(udg_integers03[3]+1)
endif
if(Trig_AttackTower_Func009001())then
set udg_integers03[3]=(udg_integers03[3]+1)
endif
if(Trig_AttackTower_Func010001())then
set udg_integers03[4]=(udg_integers03[4]+1)
endif
if(Trig_AttackTower_Func011001())then
set udg_integers03[4]=(udg_integers03[4]+1)
endif
if(Trig_AttackTower_Func012001())then
set udg_integers03[4]=(udg_integers03[4]+1)
endif
if(Trig_AttackTower_Func013001())then
set udg_integers03[5]=(udg_integers03[5]+1)
endif
if(Trig_AttackTower_Func014001())then
set udg_integers03[5]=(udg_integers03[5]+1)
endif
if(Trig_AttackTower_Func015001())then
set udg_integers03[5]=(udg_integers03[5]+1)
endif
if(Trig_AttackTower_Func016001())then
set udg_integers03[6]=(udg_integers03[6]+1)
endif
if(Trig_AttackTower_Func017001())then
set udg_integers03[6]=(udg_integers03[6]+1)
endif
if(Trig_AttackTower_Func018001())then
set udg_integers03[6]=(udg_integers03[6]+1)
endif
if(Trig_AttackTower_Func019001())then
set udg_integers03[7]=(udg_integers03[7]+1)
endif
if(Trig_AttackTower_Func020001())then
set udg_integers03[7]=(udg_integers03[7]+1)
endif
if(Trig_AttackTower_Func021001())then
set udg_integers03[7]=(udg_integers03[7]+1)
endif
if(Trig_AttackTower_Func022001())then
set udg_integers03[8]=(udg_integers03[8]+1)
endif
if(Trig_AttackTower_Func023001())then
set udg_integers03[8]=(udg_integers03[8]+1)
endif
if(Trig_AttackTower_Func024001())then
set udg_integers03[8]=(udg_integers03[8]+1)
endif
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_AttackTower_Func025Func001001())then
set udg_integers05[bj_forLoopAIndex]=(udg_integers03[bj_forLoopAIndex]+1)
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call CreateNUnitsAtLocFacingLocBJ(udg_integer10,'nrvd',Player(11),GetUnitLoc(GetTriggerUnit()),udg_location02)
call GroupPointOrderByIdLoc(GetLastCreatedGroup(),851983,udg_location02)
endfunction
function Trig_WaveTimer_Actions takes nothing returns nothing
call TriggerSleepAction(2)
call StartTimerBJ(udg_timer04,false,240.)
call CreateTimerDialogBJ(udg_timer04,"Next Wave:")
call TimerDialogDisplay(bj_lastCreatedTimerDialog,true)
set udg_timerdialog03=bj_lastCreatedTimerDialog
endfunction
function Trig_WaveAttack_Func003001 takes nothing returns boolean
return(udg_integer03==12)
endfunction
function Trig_WaveAttack_Func007001001 takes nothing returns boolean
return(udg_integer03==1)
endfunction
function Trig_WaveAttack_Func007001002001 takes nothing returns boolean
return(udg_integer03==5)
endfunction
function Trig_WaveAttack_Func007001002002 takes nothing returns boolean
return(udg_integer03==9)
endfunction
function Trig_WaveAttack_Func007001002 takes nothing returns boolean
return GetBooleanOr(Trig_WaveAttack_Func007001002001(),Trig_WaveAttack_Func007001002002())
endfunction
function Trig_WaveAttack_Func007001 takes nothing returns boolean
return GetBooleanOr(Trig_WaveAttack_Func007001001(),Trig_WaveAttack_Func007001002())
endfunction
function Trig_WaveAttack_Func008001001 takes nothing returns boolean
return(udg_integer03==2)
endfunction
function Trig_WaveAttack_Func008001002001 takes nothing returns boolean
return(udg_integer03==6)
endfunction
function Trig_WaveAttack_Func008001002002 takes nothing returns boolean
return(udg_integer03==10)
endfunction
function Trig_WaveAttack_Func008001002 takes nothing returns boolean
return GetBooleanOr(Trig_WaveAttack_Func008001002001(),Trig_WaveAttack_Func008001002002())
endfunction
function Trig_WaveAttack_Func008001 takes nothing returns boolean
return GetBooleanOr(Trig_WaveAttack_Func008001001(),Trig_WaveAttack_Func008001002())
endfunction
function Trig_WaveAttack_Func009001001 takes nothing returns boolean
return(udg_integer03==3)
endfunction
function Trig_WaveAttack_Func009001002001 takes nothing returns boolean
return(udg_integer03==7)
endfunction
function Trig_WaveAttack_Func009001002002 takes nothing returns boolean
return(udg_integer03==11)
endfunction
function Trig_WaveAttack_Func009001002 takes nothing returns boolean
return GetBooleanOr(Trig_WaveAttack_Func009001002001(),Trig_WaveAttack_Func009001002002())
endfunction
function Trig_WaveAttack_Func009001 takes nothing returns boolean
return GetBooleanOr(Trig_WaveAttack_Func009001001(),Trig_WaveAttack_Func009001002())
endfunction
function Trig_WaveAttack_Func010001001 takes nothing returns boolean
return(udg_integer03==4)
endfunction
function Trig_WaveAttack_Func010001002001 takes nothing returns boolean
return(udg_integer03==8)
endfunction
function Trig_WaveAttack_Func010001002002 takes nothing returns boolean
return(udg_integer03==12)
endfunction
function Trig_WaveAttack_Func010001002 takes nothing returns boolean
return GetBooleanOr(Trig_WaveAttack_Func010001002001(),Trig_WaveAttack_Func010001002002())
endfunction
function Trig_WaveAttack_Func010001 takes nothing returns boolean
return GetBooleanOr(Trig_WaveAttack_Func010001001(),Trig_WaveAttack_Func010001002())
endfunction
function Trig_WaveAttack_Func013001 takes nothing returns boolean
return(IsUnitPaused(udg_unit02)==false)
endfunction
function Trig_WaveAttack_Func014Func001Func003002 takes nothing returns nothing
call IssuePointOrderByIdLoc(GetEnumUnit(),851983,GetRectCenter(udg_rect11))
endfunction
function Trig_WaveAttack_Func014Func001Func004001 takes nothing returns boolean
return(udg_integer03==bj_forLoopAIndex)
endfunction
function Trig_WaveAttack_Func014Func001Func004002001 takes nothing returns boolean
return(udg_integer03==(bj_forLoopAIndex+4))
endfunction
function Trig_WaveAttack_Func014Func001Func004002002 takes nothing returns boolean
return(udg_integer03==(bj_forLoopAIndex+8))
endfunction
function Trig_WaveAttack_Func014Func001Func004002 takes nothing returns boolean
return GetBooleanOr(Trig_WaveAttack_Func014Func001Func004002001(),Trig_WaveAttack_Func014Func001Func004002002())
endfunction
function Trig_WaveAttack_Func014Func001C takes nothing returns boolean
return(GetBooleanOr(Trig_WaveAttack_Func014Func001Func004001(),Trig_WaveAttack_Func014Func001Func004002()))
endfunction
function Trig_WaveAttack_Func014Func002Func004002 takes nothing returns nothing
call IssuePointOrderByIdLoc(GetEnumUnit(),851983,GetRectCenter(udg_rect11))
endfunction
function Trig_WaveAttack_Func014Func002Func005001 takes nothing returns boolean
return(udg_integer03==bj_forLoopAIndex)
endfunction
function Trig_WaveAttack_Func014Func002Func005002001 takes nothing returns boolean
return(udg_integer03==(bj_forLoopAIndex+4))
endfunction
function Trig_WaveAttack_Func014Func002Func005002002 takes nothing returns boolean
return(udg_integer03==(bj_forLoopAIndex+8))
endfunction
function Trig_WaveAttack_Func014Func002Func005002 takes nothing returns boolean
return GetBooleanOr(Trig_WaveAttack_Func014Func002Func005002001(),Trig_WaveAttack_Func014Func002Func005002002())
endfunction
function Trig_WaveAttack_Func014Func002C takes nothing returns boolean
return(udg_boolean02==false)and(GetBooleanOr(Trig_WaveAttack_Func014Func002Func005001(),Trig_WaveAttack_Func014Func002Func005002()))
endfunction
function Trig_WaveAttack_Actions takes nothing returns nothing
set udg_integer03=(udg_integer03+1)
call DestroyTimerDialog(udg_timerdialog03)
if(Trig_WaveAttack_Func003001())then
call DisableTrigger(GetTriggeringTrigger())
else
call TriggerExecute(udg_trigger43)
endif
call CreateNUnitsAtLoc(1,'N012',Player(8),GetRectCenter(udg_rect13),270.)
call UnitAddItemByIdSwapped('rspd',bj_lastCreatedUnit)
call RemoveUnit(bj_lastCreatedUnit)
if(Trig_WaveAttack_Func007001())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"|c0061FFFFWARNING|c00FFFFFF: A huge darkness wave attacks from |c0061FFFFWEST|c00FFFFFF.")
endif
if(Trig_WaveAttack_Func008001())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"|c0061FFFFWARNING|c00FFFFFF: A huge darkness wave attacks from |c0061FFFFNORTH|c00FFFFFF.")
endif
if(Trig_WaveAttack_Func009001())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"|c0061FFFFWARNING|c00FFFFFF: A huge darkness wave attacks from |c0061FFFFEAST|c00FFFFFF.")
endif
if(Trig_WaveAttack_Func010001())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"|c0061FFFFWARNING|c00FFFFFF: A huge darkness wave attacks from |c0061FFFFSOUTH|c00FFFFFF.")
endif
call PlaySoundBJ(udg_sound01)
call TriggerSleepAction(5.)
loop
exitwhen(Trig_WaveAttack_Func013001())
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL,1))
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_WaveAttack_Func014Func001C())then
call CreateNUnitsAtLocFacingLocBJ((5+udg_integer03),udg_integers09[udg_integer03],Player(10),GetRectCenter(udg_rects03[bj_forLoopAIndex]),GetRectCenter(udg_rect11))
call ForGroupBJ(GetLastCreatedGroup(),function Trig_WaveAttack_Func014Func001Func003002)
endif
if(Trig_WaveAttack_Func014Func002C())then
call CreateNUnitsAtLocFacingLocBJ((5+udg_integer03),udg_integers09[udg_integer03],Player(10),GetRectCenter(udg_rects03[bj_forLoopAIndex]),GetRectCenter(udg_rect11))
call ForGroupBJ(GetLastCreatedGroup(),function Trig_WaveAttack_Func014Func002Func004002)
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_FinalWaveTimer_Conditions takes nothing returns boolean
return(IsUnitDeadBJ(udg_unit47))and(IsUnitDeadBJ(udg_unit48))
endfunction
function Trig_FinalWaveTimer_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger53)
call DisableTrigger(udg_trigger44)
call DisableTrigger(udg_trigger43)
call DisableTrigger(udg_trigger134)
call DisableTrigger(udg_trigger47)
call DestroyTimerDialog(udg_timerdialog03)
call TriggerSleepAction(2)
call UnitAddAbility(udg_unit02,'Amim')
call EnableTrigger(udg_trigger46)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,("|c0061FFFFWARNING|c00FFFFFF: "+"Final wave in 60 seconds."))
call StartTimerBJ(udg_timer04,false,60.)
call CreateTimerDialogBJ(udg_timer04,"Final Wave:")
call TimerDialogDisplay(bj_lastCreatedTimerDialog,true)
set udg_timerdialog03=bj_lastCreatedTimerDialog
call DestroyTrigger(udg_trigger53)
call DestroyTrigger(udg_trigger44)
call DestroyTrigger(udg_trigger43)
call DestroyTrigger(udg_trigger47)
call DestroyTrigger(udg_trigger134)
call DestroyTrigger(udg_trigger113)
call DestroyTrigger(udg_trigger114)
call DestroyTrigger(udg_trigger115)
call DestroyTrigger(udg_trigger116)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_FinalWaveStart_Func010001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_SUMMONED)!=null)
endfunction
function Trig_FinalWaveStart_Func010002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_FinalWaveStart_Func011001002 takes nothing returns boolean
return(IsUnitIllusion(GetFilterUnit()))
endfunction
function Trig_FinalWaveStart_Func011002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_FinalWaveStart_Func012002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_FinalWaveStart_Func016002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),GetRectCenter(udg_rect33),0)
endfunction
function Trig_FinalWaveStart_Func046003001 takes nothing returns boolean
return(GetUnitTypeId(udg_units01[bj_forLoopAIndex])=='Edmm')
endfunction
function Trig_FinalWaveStart_Func052002 takes nothing returns nothing
call SetUnitInvulnerable(GetEnumUnit(),true)
endfunction
function Trig_FinalWaveStart_Func055002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),GetRectCenter(udg_rects03[1]),2.)
endfunction
function Trig_FinalWaveStart_Func058002 takes nothing returns nothing
call CameraSetupApplyForPlayer(true,udg_camerasetup02,GetEnumPlayer(),3.)
endfunction
function Trig_FinalWaveStart_Func060002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),OffsetLocation(GetRectCenter(udg_rects03[1]),-1050.,0),2.)
endfunction
function Trig_FinalWaveStart_Func064002 takes nothing returns nothing
call CameraSetupApplyForPlayer(true,udg_camerasetup02,GetEnumPlayer(),3.)
endfunction
function Trig_FinalWaveStart_Func065002 takes nothing returns nothing
call PauseUnit(GetEnumUnit(),false)
endfunction
function Trig_FinalWaveStart_Func068002 takes nothing returns nothing
call IssueTargetOrderById(GetEnumUnit(),852209,GetEnumUnit())
endfunction
function Trig_FinalWaveStart_Func070002 takes nothing returns nothing
call PauseUnit(GetEnumUnit(),true)
endfunction
function Trig_FinalWaveStart_Func072002 takes nothing returns nothing
call CameraSetupApplyForPlayer(true,udg_camerasetup03,GetEnumPlayer(),3.)
endfunction
function Trig_FinalWaveStart_Func074002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),OffsetLocation(GetRectCenter(udg_rects03[2]),.0,1050.),2.)
endfunction
function Trig_FinalWaveStart_Func078002 takes nothing returns nothing
call CameraSetupApplyForPlayer(true,udg_camerasetup03,GetEnumPlayer(),3.)
endfunction
function Trig_FinalWaveStart_Func079002 takes nothing returns nothing
call PauseUnit(GetEnumUnit(),false)
endfunction
function Trig_FinalWaveStart_Func082002 takes nothing returns nothing
call IssueTargetOrderById(GetEnumUnit(),852101,GetEnumUnit())
endfunction
function Trig_FinalWaveStart_Func084002 takes nothing returns nothing
call PauseUnit(GetEnumUnit(),true)
endfunction
function Trig_FinalWaveStart_Func086002 takes nothing returns nothing
call CameraSetupApplyForPlayer(true,udg_camerasetup04,GetEnumPlayer(),3.)
endfunction
function Trig_FinalWaveStart_Func088002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),OffsetLocation(GetRectCenter(udg_rects03[3]),1050.,0),2.)
endfunction
function Trig_FinalWaveStart_Func092002 takes nothing returns nothing
call CameraSetupApplyForPlayer(true,udg_camerasetup04,GetEnumPlayer(),3.)
endfunction
function Trig_FinalWaveStart_Func093002 takes nothing returns nothing
call PauseUnit(GetEnumUnit(),false)
endfunction
function Trig_FinalWaveStart_Func098002 takes nothing returns nothing
call PauseUnit(GetEnumUnit(),true)
endfunction
function Trig_FinalWaveStart_Func100002 takes nothing returns nothing
call CameraSetupApplyForPlayer(true,udg_camerasetup05,GetEnumPlayer(),3.)
endfunction
function Trig_FinalWaveStart_Func102002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),OffsetLocation(GetRectCenter(udg_rects03[4]),.0,-1050.),2.)
endfunction
function Trig_FinalWaveStart_Func106002 takes nothing returns nothing
call CameraSetupApplyForPlayer(true,udg_camerasetup05,GetEnumPlayer(),3.)
endfunction
function Trig_FinalWaveStart_Func107002 takes nothing returns nothing
call PauseUnit(GetEnumUnit(),false)
endfunction
function Trig_FinalWaveStart_Func112002 takes nothing returns nothing
call PauseUnit(GetEnumUnit(),true)
endfunction
function Trig_FinalWaveStart_Func114002 takes nothing returns nothing
call ResetToGameCameraForPlayer(GetEnumPlayer(),3.)
endfunction
function Trig_FinalWaveStart_Func119002 takes nothing returns nothing
call SetUnitInvulnerable(GetEnumUnit(),false)
endfunction
function Trig_FinalWaveStart_Func126A takes nothing returns nothing
call IssuePointOrderByIdLoc(GetEnumUnit(),851983,GetRectCenter(udg_rect11))
endfunction
function Trig_FinalWaveStart_Actions takes nothing returns nothing
call PauseAllUnitsBJ(true)
call DestroyTimerDialog(udg_timerdialog03)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"|c0061FFFFFinal Wave")
call StopMusic(false)
call PlaySoundAtPointBJ(udg_sound11,'d',GetRectCenter(udg_rect11),0)
call TriggerSleepAction(1.)
call UnitRemoveAbility(udg_unit02,'Amim')
call TriggerSleepAction(1.)
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_FinalWaveStart_Func010001002)),function Trig_FinalWaveStart_Func010002)
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_FinalWaveStart_Func011001002)),function Trig_FinalWaveStart_Func011002)
call ForGroupBJ(GetUnitsOfTypeIdAll('n00G'),function Trig_FinalWaveStart_Func012002)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call UnitRemoveBuffsBJ(2,udg_units01[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call UnitResetCooldown(udg_units01[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitPositionLoc(udg_units01[bj_forLoopAIndex],GetRectCenter(udg_rect33))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_FinalWaveStart_Func016002)
call TriggerSleepAction(2)
call CinematicFadeBJ(1,5.,"ReplaceableTextures\\CameraMasks\\Scope_Mask.blp",0,0,0,0)
call TriggerSleepAction(5.)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateFogModifierRadiusLocBJ(true,Player(-1+(bj_forLoopAIndex)),FOG_OF_WAR_VISIBLE,udg_location02,3000.)
set udg_fogmodifiers01[bj_forLoopAIndex]=bj_lastCreatedFogModifier
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(3.)
set bj_forLoopAIndex=14
set bj_forLoopAIndexEnd=22
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLocFacingLocBJ(1,'u003',Player(11),PolarProjectionBJ(GetRectCenter(udg_rect11),900.,(I2R(bj_forLoopAIndex)*10.)),GetRectCenter(udg_rect11))
call CreateNUnitsAtLocFacingLocBJ(1,'uswb',Player(11),PolarProjectionBJ(GetRectCenter(udg_rect11),1050.,(I2R(bj_forLoopAIndex)*10.)),GetRectCenter(udg_rect11))
call CreateNUnitsAtLocFacingLocBJ(1,'u004',Player(11),PolarProjectionBJ(GetRectCenter(udg_rect11),1200.,(I2R(bj_forLoopAIndex)*10.)),GetRectCenter(udg_rect11))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=5
set bj_forLoopAIndexEnd=13
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLocFacingLocBJ(1,'o002',Player(11),PolarProjectionBJ(GetRectCenter(udg_rect11),900.,(I2R(bj_forLoopAIndex)*10.)),GetRectCenter(udg_rect11))
call CreateNUnitsAtLocFacingLocBJ(1,'z000',Player(11),PolarProjectionBJ(GetRectCenter(udg_rect11),1050.,(I2R(bj_forLoopAIndex)*10.)),GetRectCenter(udg_rect11))
call CreateNUnitsAtLocFacingLocBJ(1,'odkt',Player(11),PolarProjectionBJ(GetRectCenter(udg_rect11),1200.,(I2R(bj_forLoopAIndex)*10.)),GetRectCenter(udg_rect11))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=32
set bj_forLoopAIndexEnd=40
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLocFacingLocBJ(1,'e002',Player(11),PolarProjectionBJ(GetRectCenter(udg_rect11),900.,(I2R(bj_forLoopAIndex)*10.)),GetRectCenter(udg_rect11))
call CreateNUnitsAtLocFacingLocBJ(1,'n00H',Player(11),PolarProjectionBJ(GetRectCenter(udg_rect11),1050.,(I2R(bj_forLoopAIndex)*10.)),GetRectCenter(udg_rect11))
call CreateNUnitsAtLocFacingLocBJ(1,'nssn',Player(11),PolarProjectionBJ(GetRectCenter(udg_rect11),1200.,(I2R(bj_forLoopAIndex)*10.)),GetRectCenter(udg_rect11))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=23
set bj_forLoopAIndexEnd=31
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLocFacingLocBJ(1,'h005',Player(11),PolarProjectionBJ(GetRectCenter(udg_rect11),900.,(I2R(bj_forLoopAIndex)*10.)),GetRectCenter(udg_rect11))
call CreateNUnitsAtLocFacingLocBJ(1,'zmar',Player(11),PolarProjectionBJ(GetRectCenter(udg_rect11),1050.,(I2R(bj_forLoopAIndex)*10.)),GetRectCenter(udg_rect11))
call CreateNUnitsAtLocFacingLocBJ(1,'nbel',Player(11),PolarProjectionBJ(GetRectCenter(udg_rect11),1200.,(I2R(bj_forLoopAIndex)*10.)),GetRectCenter(udg_rect11))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call CreateNUnitsAtLocFacingLocBJ(1,'ubdd',Player(11),PolarProjectionBJ(GetRectCenter(udg_rect11),1500.,135.),GetRectCenter(udg_rect11))
call CreateNUnitsAtLocFacingLocBJ(1,'ubdd',Player(11),PolarProjectionBJ(GetRectCenter(udg_rect11),1500.,45.),GetRectCenter(udg_rect11))
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set bj_forLoopBIndex=0
set bj_forLoopBIndexEnd=4
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CreateNUnitsAtLoc(1,'nmgr',Player(11),OffsetLocation(GetRectCenter(udg_rects03[1]),(-300.-(I2R(bj_forLoopAIndex)*150.)),(-300.+(I2R(bj_forLoopBIndex)*150.))),.0)
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set bj_forLoopBIndex=0
set bj_forLoopBIndexEnd=4
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CreateNUnitsAtLoc(1,'n00I',Player(11),OffsetLocation(GetRectCenter(udg_rects03[2]),(-300.+(I2R(bj_forLoopBIndex)*150.)),(300.+(I2R(bj_forLoopAIndex)*150.))),270.)
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set bj_forLoopBIndex=0
set bj_forLoopBIndexEnd=4
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CreateNUnitsAtLoc(1,'e003',Player(11),OffsetLocation(GetRectCenter(udg_rects03[3]),(300.+(I2R(bj_forLoopAIndex)*150.)),(-300.+(I2R(bj_forLoopBIndex)*150.))),180.)
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set bj_forLoopBIndex=0
set bj_forLoopBIndexEnd=4
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CreateNUnitsAtLoc(1,'h006',Player(11),OffsetLocation(GetRectCenter(udg_rects03[4]),(-300.+(I2R(bj_forLoopBIndex)*150.)),(-300.-(I2R(bj_forLoopAIndex)*150.))),90.)
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call PauseAllUnitsBJ(true)
call TriggerSleepAction(2)
call SetUnitPositionLocFacingLocBJ(udg_unit49,OffsetLocation(GetRectCenter(udg_rects03[1]),-1050.,0),GetRectCenter(udg_rect11))
call SetUnitPositionLocFacingLocBJ(udg_unit52,OffsetLocation(GetRectCenter(udg_rects03[2]),0,1050.),GetRectCenter(udg_rect11))
call SetUnitPositionLocFacingLocBJ(udg_unit53,OffsetLocation(GetRectCenter(udg_rects03[3]),1050.,0),GetRectCenter(udg_rect11))
call SetUnitPositionLocFacingLocBJ(udg_unit44,OffsetLocation(GetRectCenter(udg_rects03[4]),0,-1050.),GetRectCenter(udg_rect11))
call CinematicFadeBJ(0,5.,"ReplaceableTextures\\CameraMasks\\Scope_Mask.blp",0,0,0,0)
call TriggerSleepAction(1.)
set udg_integer05=12
call TriggerExecute(udg_trigger127)
call SetUserControlForceOff(bj_FORCE_ALL_PLAYERS)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_FinalWaveStart_Func046003001())then
call UnitRemoveAbility(udg_units01[bj_forLoopAIndex],'BEme')
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(2)
call GroupClear(udg_group02)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=9
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call GroupAddGroup(GetUnitsOfPlayerAll(Player(-1+(bj_forLoopAIndex))),udg_group02)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call GroupRemoveGroup(GetUnitsInRectOfPlayer(udg_rect14,Player(8)),udg_group02)
call TriggerSleepAction(1.)
call ForGroupBJ(udg_group02,function Trig_FinalWaveStart_Func052002)
call TriggerSleepAction(3.)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_FinalWaveStart_Func055002)
call TriggerSleepAction(4.)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_FinalWaveStart_Func058002)
call TriggerSleepAction(5.)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_FinalWaveStart_Func060002)
call TriggerSleepAction(2)
call SetUnitAnimation(udg_unit49,"third")
call TriggerSleepAction(2)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_FinalWaveStart_Func064002)
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(Player(11),'u003'),function Trig_FinalWaveStart_Func065002)
call TriggerSleepAction(3.)
call ResetUnitAnimation(udg_unit49)
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(Player(11),'u003'),function Trig_FinalWaveStart_Func068002)
call TriggerSleepAction(2)
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(Player(11),'u003'),function Trig_FinalWaveStart_Func070002)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_FinalWaveStart_Func072002)
call TriggerSleepAction(5.)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_FinalWaveStart_Func074002)
call TriggerSleepAction(2)
call SetUnitAnimation(udg_unit52,"victory")
call TriggerSleepAction(2)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_FinalWaveStart_Func078002)
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(Player(11),'o002'),function Trig_FinalWaveStart_Func079002)
call TriggerSleepAction(3.)
call ResetUnitAnimation(udg_unit52)
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(Player(11),'o002'),function Trig_FinalWaveStart_Func082002)
call TriggerSleepAction(2)
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(Player(11),'o002'),function Trig_FinalWaveStart_Func084002)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_FinalWaveStart_Func086002)
call TriggerSleepAction(5.)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_FinalWaveStart_Func088002)
call TriggerSleepAction(2.)
call SetUnitAnimation(udg_unit53,"channel")
call TriggerSleepAction(2)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_FinalWaveStart_Func092002)
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(Player(11),'e002'),function Trig_FinalWaveStart_Func093002)
call TriggerSleepAction(3.)
call ResetUnitAnimation(udg_unit53)
call GroupImmediateOrderById(GetUnitsOfPlayerAndTypeId(Player(11),'e002'),852164)
call TriggerSleepAction(2)
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(Player(11),'e002'),function Trig_FinalWaveStart_Func098002)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_FinalWaveStart_Func100002)
call TriggerSleepAction(5.)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_FinalWaveStart_Func102002)
call TriggerSleepAction(2)
call SetUnitAnimation(udg_unit44,"victory")
call TriggerSleepAction(2)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_FinalWaveStart_Func106002)
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(Player(11),'h005'),function Trig_FinalWaveStart_Func107002)
call TriggerSleepAction(2)
call ResetUnitAnimation(udg_unit44)
call GroupImmediateOrderById(GetUnitsOfPlayerAndTypeId(Player(11),'h005'),852055)
call TriggerSleepAction(2)
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(Player(11),'h005'),function Trig_FinalWaveStart_Func112002)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_FinalWaveStart_Func114002)
call TriggerSleepAction(4.)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_units01[bj_forLoopAIndex]),GetRectCenter(udg_rect33),2.)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnableTrigger(udg_trigger94)
call TriggerSleepAction(2)
call ForGroupBJ(udg_group02,function Trig_FinalWaveStart_Func119002)
call TriggerSleepAction(1.)
call GroupClear(udg_group02)
call SetUserControlForceOn(bj_FORCE_ALL_PLAYERS)
call TriggerSleepAction(3.)
call PauseAllUnitsBJ(false)
call ForGroupBJ(GetUnitsInRectOfPlayer(bj_mapInitialPlayableArea,Player(11)),function Trig_FinalWaveStart_Func126A)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"|c0061FFFFWARNING|c00FFFFFF: Darkness hero attack in 30 seconds.")
call DisableTrigger(GetTriggeringTrigger())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call DestroyFogModifier(udg_fogmodifiers01[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(20.)
call IssuePointOrderByIdLoc(udg_unit49,851983,GetRectCenter(udg_rect11))
call IssuePointOrderByIdLoc(udg_unit52,851983,GetRectCenter(udg_rect11))
call IssuePointOrderByIdLoc(udg_unit53,851983,GetRectCenter(udg_rect11))
call IssuePointOrderByIdLoc(udg_unit44,851983,GetRectCenter(udg_rect11))
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_DragonAttack_Func001001 takes nothing returns boolean
return(GetTriggerExecCount(GetTriggeringTrigger())==5)
endfunction
function Trig_DragonAttack_Func004C takes nothing returns boolean
return(GetTriggerExecCount(GetTriggeringTrigger())==1)
endfunction
function Trig_DragonAttack_Func005C takes nothing returns boolean
return(GetTriggerExecCount(GetTriggeringTrigger())==2)
endfunction
function Trig_DragonAttack_Func006C takes nothing returns boolean
return(GetTriggerExecCount(GetTriggeringTrigger())==3)
endfunction
function Trig_DragonAttack_Func007C takes nothing returns boolean
return(GetTriggerExecCount(GetTriggeringTrigger())==4)
endfunction
function Trig_DragonAttack_Func008C takes nothing returns boolean
return(GetTriggerExecCount(GetTriggeringTrigger())==5)
endfunction
function Trig_DragonAttack_Actions takes nothing returns nothing
if(Trig_DragonAttack_Func001001())then
call DisableTrigger(GetTriggeringTrigger())
endif
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"|c0061FFFFWARNING|c00FFFFFF: Dragon Attack.")
if(Trig_DragonAttack_Func004C())then
call CreateNUnitsAtLocFacingLocBJ((udg_integer10-1),'nrdr',Player(11),GetRectCenter(udg_rect17),GetRectCenter(udg_rect11))
call CreateNUnitsAtLocFacingLocBJ((udg_integer10-1),'nrdr',Player(11),GetRectCenter(udg_rect19),GetRectCenter(udg_rect11))
endif
if(Trig_DragonAttack_Func005C())then
call CreateNUnitsAtLocFacingLocBJ((udg_integer10-1),'nser',Player(11),GetRectCenter(udg_rect17),GetRectCenter(udg_rect11))
call CreateNUnitsAtLocFacingLocBJ((udg_integer10-1),'nser',Player(11),GetRectCenter(udg_rect19),GetRectCenter(udg_rect11))
endif
if(Trig_DragonAttack_Func006C())then
call CreateNUnitsAtLocFacingLocBJ((udg_integer10-1),'nthr',Player(11),GetRectCenter(udg_rect17),GetRectCenter(udg_rect11))
call CreateNUnitsAtLocFacingLocBJ((udg_integer10-1),'nthr',Player(11),GetRectCenter(udg_rect19),GetRectCenter(udg_rect11))
endif
if(Trig_DragonAttack_Func007C())then
call CreateNUnitsAtLocFacingLocBJ((udg_integer10-1),'nadr',Player(11),GetRectCenter(udg_rect17),GetRectCenter(udg_rect11))
call CreateNUnitsAtLocFacingLocBJ((udg_integer10-1),'nadr',Player(11),GetRectCenter(udg_rect19),GetRectCenter(udg_rect11))
endif
if(Trig_DragonAttack_Func008C())then
call CreateNUnitsAtLocFacingLocBJ((udg_integer10-1),'ubdd',Player(11),GetRectCenter(udg_rect17),GetRectCenter(udg_rect11))
call CreateNUnitsAtLocFacingLocBJ((udg_integer10-1),'ubdd',Player(11),GetRectCenter(udg_rect19),GetRectCenter(udg_rect11))
endif
call PlaySoundBJ(udg_sound18)
call CreateNUnitsAtLoc(1,'N012',Player(8),GetRectCenter(udg_rect13),270.)
call UnitAddItemByIdSwapped('rspd',bj_lastCreatedUnit)
call RemoveUnit(bj_lastCreatedUnit)
call GroupPointOrderByIdLoc(GetUnitsInRectOfPlayer(udg_rect17,Player(11)),851983,GetRectCenter(udg_rect11))
call GroupPointOrderByIdLoc(GetUnitsInRectOfPlayer(udg_rect19,Player(11)),851983,GetRectCenter(udg_rect11))
endfunction
function Trig_HeroAttack_Conditions takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger39))
endfunction
function Trig_HeroAttack_Func001Func006001 takes nothing returns boolean
return(udg_integers05[udg_integer09]==2)
endfunction
function Trig_HeroAttack_Func001Func007001 takes nothing returns boolean
return(udg_integers05[udg_integer09]==3)
endfunction
function Trig_HeroAttack_Func001Func008001 takes nothing returns boolean
return(udg_integers05[udg_integer09]==4)
endfunction
function Trig_HeroAttack_Func001C takes nothing returns boolean
return(udg_booleans01[udg_integer09])
endfunction
function Trig_HeroAttack_Func003C takes nothing returns boolean
return(udg_integer09==udg_integer01)
endfunction
function Trig_HeroAttack_Actions takes nothing returns nothing
if(Trig_HeroAttack_Func001C())then
call CreateNUnitsAtLocFacingLocBJ(1,udg_integers14[udg_integers08[udg_integer09]],Player(11),GetRectCenter(udg_rects01[udg_integer09]),GetUnitLoc(GetTriggerUnit()))
call ModifyHeroStat(0,bj_lastCreatedUnit,2,(udg_integers05[udg_integer09]*(25+(udg_integer07*25))))
call ModifyHeroStat(1,bj_lastCreatedUnit,2,(udg_integers05[udg_integer09]*(25+(udg_integer07*25))))
call ModifyHeroStat(2,bj_lastCreatedUnit,2,(udg_integers05[udg_integer09]*(25+(udg_integer07*25))))
if(Trig_HeroAttack_Func001Func006001())then
call SetHeroLevelBJ(bj_lastCreatedUnit,2,false)
endif
if(Trig_HeroAttack_Func001Func007001())then
call SetHeroLevelBJ(bj_lastCreatedUnit,4,false)
endif
if(Trig_HeroAttack_Func001Func008001())then
call SetHeroLevelBJ(bj_lastCreatedUnit,7,false)
endif
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integers05[udg_integer09]
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SelectHeroSkill(bj_lastCreatedUnit,udg_integers15[udg_integers08[udg_integer09]])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integers05[udg_integer09]
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SelectHeroSkill(bj_lastCreatedUnit,udg_integers15[(udg_integers08[udg_integer09]+4)])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SelectHeroSkill(bj_lastCreatedUnit,udg_integers15[(udg_integers08[udg_integer09]+8)])
call GroupPointOrderByIdLoc(GetUnitsInRectAll(udg_rects01[udg_integer09]),851983,GetRectCenter(udg_rect11))
endif
call TriggerSleepAction(.1)
if(Trig_HeroAttack_Func003C())then
set udg_integer09=1
else
set udg_integer09=(udg_integer09+1)
call ConditionalTriggerExecute(GetTriggeringTrigger())
endif
endfunction
function Trig_LightningAttack_Func002Func001Func001C takes nothing returns boolean
return(GetUnitTypeId(udg_units01[bj_forLoopAIndex])=='H007')and(GetUnitLevel(udg_units01[bj_forLoopAIndex])>=20)
endfunction
function Trig_LightningAttack_Func002Func001C takes nothing returns boolean
return(IsUnitDeadBJ(udg_units01[bj_forLoopAIndex])==false)and(UnitHasBuffBJ(udg_units01[bj_forLoopAIndex],'BHav')==false)and(UnitHasBuffBJ(udg_units01[bj_forLoopAIndex],'B00G')==false)and(UnitHasItemOfTypeBJ(udg_units01[bj_forLoopAIndex],'nspi')==false)
endfunction
function Trig_LightningAttack_Func003001 takes nothing returns boolean
return(IsUnitGroupEmptyBJ(udg_group02))
endfunction
function Trig_LightningAttack_Func008001 takes nothing returns boolean
return(udg_integer07==2)
endfunction
function Trig_LightningAttack_Func009001 takes nothing returns boolean
return(udg_integer07==2)
endfunction
function Trig_LightningAttack_Func017001 takes nothing returns boolean
return(udg_integer07==3)
endfunction
function Trig_LightningAttack_Func018001 takes nothing returns boolean
return(udg_integer07==3)
endfunction
function Trig_LightningAttack_Func026001 takes nothing returns boolean
return(udg_integer07==4)
endfunction
function Trig_LightningAttack_Func027001 takes nothing returns boolean
return(udg_integer07==4)
endfunction
function Trig_LightningAttack_Actions takes nothing returns nothing
call GroupClear(udg_group02)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_LightningAttack_Func002Func001C())then
if(Trig_LightningAttack_Func002Func001Func001C())then
else
call GroupAddUnit(udg_group02,udg_units01[bj_forLoopAIndex])
endif
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_LightningAttack_Func003001())then
return
endif
call TriggerSleepAction(1.)
call IssueTargetOrderById(udg_unit57,852119,GroupPickRandomUnit(udg_group02))
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit57),"Abilities\\Spells\\Orc\\FeralSpirit\\feralspiritdone.mdl")
if(Trig_LightningAttack_Func008001())then
call GroupClear(udg_group02)
endif
if(Trig_LightningAttack_Func009001())then
return
endif
call TriggerSleepAction(1.)
call DestroyEffect(bj_lastCreatedEffect)
call UnitResetCooldown(udg_unit57)
call TriggerSleepAction(1.)
call IssueTargetOrderById(udg_unit57,852119,GroupPickRandomUnit(udg_group02))
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit57),"Abilities\\Spells\\Orc\\FeralSpirit\\feralspiritdone.mdl")
if(Trig_LightningAttack_Func017001())then
call GroupClear(udg_group02)
endif
if(Trig_LightningAttack_Func018001())then
return
endif
call TriggerSleepAction(1.)
call DestroyEffect(bj_lastCreatedEffect)
call UnitResetCooldown(udg_unit57)
call TriggerSleepAction(1.)
call IssueTargetOrderById(udg_unit57,852119,GroupPickRandomUnit(udg_group02))
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit57),"Abilities\\Spells\\Orc\\FeralSpirit\\feralspiritdone.mdl")
if(Trig_LightningAttack_Func026001())then
call GroupClear(udg_group02)
endif
if(Trig_LightningAttack_Func027001())then
return
endif
call TriggerSleepAction(1.)
call DestroyEffect(bj_lastCreatedEffect)
call UnitResetCooldown(udg_unit57)
call TriggerSleepAction(1.)
call IssueTargetOrderById(udg_unit57,852119,GroupPickRandomUnit(udg_group02))
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit57),"Abilities\\Spells\\Orc\\FeralSpirit\\feralspiritdone.mdl")
call TriggerSleepAction(1.)
call DestroyEffect(bj_lastCreatedEffect)
endfunction
function Trig_SilentAssassin_Func002Func001C takes nothing returns boolean
return(IsUnitDeadBJ(udg_units01[bj_forLoopAIndex])==false)and(RectContainsUnit(udg_rect23,udg_units01[bj_forLoopAIndex])==false)and(RectContainsUnit(udg_rect25,udg_units01[bj_forLoopAIndex])==false)and(RectContainsUnit(udg_rect27,udg_units01[bj_forLoopAIndex])==false)and(RectContainsUnit(udg_rect29,udg_units01[bj_forLoopAIndex])==false)
endfunction
function Trig_SilentAssassin_Func003Func003002 takes nothing returns nothing
set udg_unit01=GetEnumUnit()
endfunction
function Trig_SilentAssassin_Func003C takes nothing returns boolean
return(IsUnitGroupEmptyBJ(udg_group02))
endfunction
function Trig_SilentAssassin_Func004C takes nothing returns boolean
return(GetTriggerExecCount(GetTriggeringTrigger())==1)
endfunction
function Trig_SilentAssassin_Func005C takes nothing returns boolean
return(GetTriggerExecCount(GetTriggeringTrigger())==2)
endfunction
function Trig_SilentAssassin_Func006C takes nothing returns boolean
return(GetTriggerExecCount(GetTriggeringTrigger())==3)
endfunction
function Trig_SilentAssassin_Func007C takes nothing returns boolean
return(GetTriggerExecCount(GetTriggeringTrigger())==4)
endfunction
function Trig_SilentAssassin_Func008C takes nothing returns boolean
return(GetTriggerExecCount(GetTriggeringTrigger())==5)
endfunction
function Trig_SilentAssassin_Actions takes nothing returns nothing
call GroupClear(udg_group02)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_SilentAssassin_Func002Func001C())then
call GroupAddUnit(udg_group02,udg_units01[bj_forLoopAIndex])
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_SilentAssassin_Func003C())then
set udg_unit01=udg_unit02
else
call ForGroupBJ(GetRandomSubGroup(1,udg_group02),function Trig_SilentAssassin_Func003Func003002)
call GroupClear(udg_group02)
endif
if(Trig_SilentAssassin_Func004C())then
call CreateNUnitsAtLocFacingLocBJ((5*udg_integer10),'n00V',Player(11),GetUnitLoc(udg_unit01),GetUnitLoc(udg_unit01))
endif
if(Trig_SilentAssassin_Func005C())then
call CreateNUnitsAtLocFacingLocBJ((5*udg_integer10),'n00T',Player(11),GetUnitLoc(udg_unit01),GetUnitLoc(udg_unit01))
endif
if(Trig_SilentAssassin_Func006C())then
call CreateNUnitsAtLocFacingLocBJ((5*udg_integer10),'n00U',Player(11),GetUnitLoc(udg_unit01),GetUnitLoc(udg_unit01))
endif
if(Trig_SilentAssassin_Func007C())then
call CreateNUnitsAtLocFacingLocBJ((5*udg_integer10),'n00R',Player(11),GetUnitLoc(udg_unit01),GetUnitLoc(udg_unit01))
endif
if(Trig_SilentAssassin_Func008C())then
call DisableTrigger(GetTriggeringTrigger())
call CreateNUnitsAtLocFacingLocBJ((5*udg_integer10),'n00S',Player(11),GetUnitLoc(udg_unit01),GetUnitLoc(udg_unit01))
call DestroyTrigger(GetTriggeringTrigger())
endif
endfunction
function Trig_ExtremePowerUp_Func002Func003002 takes nothing returns nothing
call UnitAddAbility(GetEnumUnit(),'S000')
endfunction
function Trig_ExtremePowerUp_Func002C takes nothing returns boolean
return(GetTriggerExecCount(GetTriggeringTrigger())==1)
endfunction
function Trig_ExtremePowerUp_Func003Func001002 takes nothing returns nothing
call UnitAddAbility(GetEnumUnit(),'A037')
endfunction
function Trig_ExtremePowerUp_Func003C takes nothing returns boolean
return(GetTriggerExecCount(GetTriggeringTrigger())==2)
endfunction
function Trig_ExtremePowerUp_Func004Func001002 takes nothing returns nothing
call UnitAddAbility(GetEnumUnit(),'A01Y')
endfunction
function Trig_ExtremePowerUp_Func004C takes nothing returns boolean
return(GetTriggerExecCount(GetTriggeringTrigger())==3)
endfunction
function Trig_ExtremePowerUp_Func005Func001002 takes nothing returns nothing
call UnitAddAbility(GetEnumUnit(),'A01Z')
endfunction
function Trig_ExtremePowerUp_Func005C takes nothing returns boolean
return(GetTriggerExecCount(GetTriggeringTrigger())==4)
endfunction
function Trig_ExtremePowerUp_Actions takes nothing returns nothing
call DestroyTimerDialog(udg_timerdialog01)
if(Trig_ExtremePowerUp_Func002C())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'N012',Player(9),GetRectCenter(udg_rects03[bj_forLoopAIndex]),270.)
call GroupAddUnit(udg_group06,bj_lastCreatedUnit)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(udg_group06,function Trig_ExtremePowerUp_Func002Func003002)
endif
if(Trig_ExtremePowerUp_Func003C())then
call ForGroupBJ(udg_group06,function Trig_ExtremePowerUp_Func003Func001002)
endif
if(Trig_ExtremePowerUp_Func004C())then
call ForGroupBJ(udg_group06,function Trig_ExtremePowerUp_Func004Func001002)
endif
if(Trig_ExtremePowerUp_Func005C())then
call ForGroupBJ(udg_group06,function Trig_ExtremePowerUp_Func005Func001002)
call DestroyTrigger(GetTriggeringTrigger())
else
call StartTimerBJ(udg_timer01,false,300.)
call CreateTimerDialogBJ(udg_timer01,"Power Up:")
call TimerDialogDisplay(bj_lastCreatedTimerDialog,true)
set udg_timerdialog01=bj_lastCreatedTimerDialog
endif
endfunction
function Trig_Survival1Start_Conditions takes nothing returns boolean
return(IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO))and(GetOwningPlayer(GetTriggerUnit())!=Player(9))and(GetOwningPlayer(GetTriggerUnit())!=Player(10))and(GetOwningPlayer(GetTriggerUnit())!=Player(11))
endfunction
function Trig_Survival1Start_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_integer05=6
call TriggerExecute(udg_trigger127)
call SetUnitInvulnerable(udg_unit47,false)
call SetUnitInvulnerable(udg_unit48,false)
call EnableTrigger(udg_trigger45)
call EnableTrigger(udg_trigger53)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_Survival1Attack_Func002Func003Func001001 takes nothing returns boolean
return(udg_integer07>1)
endfunction
function Trig_Survival1Attack_Func002Func003Func002001 takes nothing returns boolean
return(udg_integer07>3)
endfunction
function Trig_Survival1Attack_Func002Func003A takes nothing returns nothing
if(Trig_Survival1Attack_Func002Func003Func001001())then
call UnitAddAbility(GetEnumUnit(),'ACac')
endif
if(Trig_Survival1Attack_Func002Func003Func002001())then
call UnitAddAbility(GetEnumUnit(),'ACvp')
endif
call IssuePointOrderByIdLoc(GetEnumUnit(),851983,GetRectCenter(udg_rect11))
endfunction
function Trig_Survival1Attack_Func002C takes nothing returns boolean
return(IsUnitDeadBJ(udg_unit47))
endfunction
function Trig_Survival1Attack_Func003Func001001 takes nothing returns boolean
return(udg_boolean02)
endfunction
function Trig_Survival1Attack_Func003Func001002 takes nothing returns boolean
return(IsUnitDeadBJ(udg_unit48))
endfunction
function Trig_Survival1Attack_Func003Func004Func001001 takes nothing returns boolean
return(udg_integer07>1)
endfunction
function Trig_Survival1Attack_Func003Func004Func002001 takes nothing returns boolean
return(udg_integer07>3)
endfunction
function Trig_Survival1Attack_Func003Func004A takes nothing returns nothing
if(Trig_Survival1Attack_Func003Func004Func001001())then
call UnitAddAbility(GetEnumUnit(),'ACac')
endif
if(Trig_Survival1Attack_Func003Func004Func002001())then
call UnitAddAbility(GetEnumUnit(),'ACvp')
endif
call IssuePointOrderByIdLoc(GetEnumUnit(),851983,GetRectCenter(udg_rect11))
endfunction
function Trig_Survival1Attack_Func003C takes nothing returns boolean
return(GetBooleanOr(Trig_Survival1Attack_Func003Func001001(),Trig_Survival1Attack_Func003Func001002()))
endfunction
function Trig_Survival1Attack_Actions takes nothing returns nothing
if(Trig_Survival1Attack_Func002C())then
else
call CreateNUnitsAtLocFacingLocBJ((9+udg_integer06),'u000',Player(11),GetRectCenter(udg_rect34),GetUnitLoc(GetTriggerUnit()))
call ForGroupBJ(GetUnitsInRectOfPlayer(udg_rect34,Player(11)),function Trig_Survival1Attack_Func002Func003A)
endif
if(Trig_Survival1Attack_Func003C())then
else
call CreateNUnitsAtLocFacingLocBJ((9+udg_integer06),'n000',Player(11),GetRectCenter(udg_rect35),GetUnitLoc(GetTriggerUnit()))
call ForGroupBJ(GetUnitsInRectOfPlayer(udg_rect35,Player(11)),function Trig_Survival1Attack_Func003Func004A)
endif
endfunction
function Trig_Survival2Start_Conditions takes nothing returns boolean
return(IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO))and(GetOwningPlayer(GetTriggerUnit())!=Player(9))and(GetOwningPlayer(GetTriggerUnit())!=Player(10))and(GetOwningPlayer(GetTriggerUnit())!=Player(11))
endfunction
function Trig_Survival2Start_Func006002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),GetRectCenter(udg_rect38),0)
endfunction
function Trig_Survival2Start_Func008002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),GetDestructableLoc(udg_destructable10),1.)
endfunction
function Trig_Survival2Start_Func013002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),GetRectCenter(udg_rect38),1.)
endfunction
function Trig_Survival2Start_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitPositionLoc(udg_units01[bj_forLoopAIndex],GetRectCenter(udg_rect38))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_integer05=7
call TriggerExecute(udg_trigger127)
call PauseAllUnitsBJ(true)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Survival2Start_Func006002)
call TriggerSleepAction(5.)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Survival2Start_Func008002)
call TriggerSleepAction(2)
call ModifyGateBJ(0,udg_destructable10)
call PlaySoundAtPointBJ(udg_sound03,'d',GetDestructableLoc(udg_destructable10),0)
call TriggerWaitForSound(bj_lastPlayedSound,1.)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Survival2Start_Func013002)
set udg_integer02=0
call TriggerExecute(udg_trigger55)
call TriggerSleepAction(3.)
call PauseAllUnitsBJ(false)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_Survival2Attack_Func002Func003Func002Func002001 takes nothing returns boolean
return(udg_integer07>1)
endfunction
function Trig_Survival2Attack_Func002Func003Func002Func003001 takes nothing returns boolean
return(udg_integer07>3)
endfunction
function Trig_Survival2Attack_Func002Func003Func002A takes nothing returns nothing
call UnitAddAbility(GetEnumUnit(),'ACac')
if(Trig_Survival2Attack_Func002Func003Func002Func002001())then
call UnitAddAbility(GetEnumUnit(),'AItj')
endif
if(Trig_Survival2Attack_Func002Func003Func002Func003001())then
call UnitAddAbility(GetEnumUnit(),'ACav')
endif
call IssuePointOrderByIdLoc(GetEnumUnit(),851983,GetRectCenter(udg_rect38))
endfunction
function Trig_Survival2Attack_Func002Func006Func002Func002001 takes nothing returns boolean
return(udg_integer07>1)
endfunction
function Trig_Survival2Attack_Func002Func006Func002Func003001 takes nothing returns boolean
return(udg_integer07>3)
endfunction
function Trig_Survival2Attack_Func002Func006Func002A takes nothing returns nothing
call UnitAddAbility(GetEnumUnit(),'ACac')
if(Trig_Survival2Attack_Func002Func006Func002Func002001())then
call UnitAddAbility(GetEnumUnit(),'ACvp')
endif
if(Trig_Survival2Attack_Func002Func006Func002Func003001())then
call UnitAddAbility(GetEnumUnit(),'ACav')
endif
call IssuePointOrderByIdLoc(GetEnumUnit(),851983,GetRectCenter(udg_rect38))
endfunction
function Trig_Survival2Attack_Func002C takes nothing returns boolean
return(udg_integer02>=5)
endfunction
function Trig_Survival2Attack_Actions takes nothing returns nothing
set udg_integer02=(udg_integer02+1)
if(Trig_Survival2Attack_Func002C())then
call DisableTrigger(GetTriggeringTrigger())
call TriggerSleepAction(10.)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLocFacingLocBJ(5,'nrvd',Player(11),GetRectCenter(udg_rects04[bj_forLoopAIndex]),GetUnitLoc(GetTriggerUnit()))
call ForGroupBJ(GetLastCreatedGroup(),function Trig_Survival2Attack_Func002Func003Func002A)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(10.)
call ModifyGateBJ(1,udg_destructable10)
call ModifyGateBJ(1,udg_destructable11)
call ModifyHeroStat(0,udg_unit42,2,(2500+(udg_integer07*(udg_integer06*200))))
call ModifyHeroStat(1,udg_unit42,2,(2500+(udg_integer07*(udg_integer06*200))))
call ModifyHeroStat(2,udg_unit42,2,(2500+(udg_integer07*(udg_integer06*200))))
call EnableTrigger(udg_trigger96)
call EnableTrigger(udg_trigger97)
call EnableTrigger(udg_trigger98)
call EnableTrigger(udg_trigger99)
call TriggerSleepAction(2)
call DestroyTrigger(GetTriggeringTrigger())
else
call TriggerSleepAction(6.)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLocFacingLocBJ(10,'u000',Player(11),GetRectCenter(udg_rects04[bj_forLoopAIndex]),GetUnitLoc(GetTriggerUnit()))
call ForGroupBJ(GetLastCreatedGroup(),function Trig_Survival2Attack_Func002Func006Func002A)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerExecute(GetTriggeringTrigger())
endif
endfunction
function Trig_Survival3Start_Conditions takes nothing returns boolean
return(IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO))and(GetOwningPlayer(GetTriggerUnit())!=Player(9))and(GetOwningPlayer(GetTriggerUnit())!=Player(10))and(GetOwningPlayer(GetTriggerUnit())!=Player(11))
endfunction
function Trig_Survival3Start_Func004002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),GetRectCenter(udg_rect38),0)
endfunction
function Trig_Survival3Start_Func006002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),GetDestructableLoc(udg_destructable12),1.)
endfunction
function Trig_Survival3Start_Func011002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),GetDestructableLoc(udg_destructable10),1.)
endfunction
function Trig_Survival3Start_Func016002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),GetDestructableLoc(udg_destructable11),1.)
endfunction
function Trig_Survival3Start_Func021002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),GetRectCenter(udg_rect38),1.)
endfunction
function Trig_Survival3Start_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitPositionLoc(udg_units01[bj_forLoopAIndex],GetRectCenter(udg_rect38))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call PauseAllUnitsBJ(true)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Survival3Start_Func004002)
call TriggerSleepAction(5.)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Survival3Start_Func006002)
call TriggerSleepAction(5.)
call ModifyGateBJ(0,udg_destructable12)
call PlaySoundAtPointBJ(udg_sound03,'d',GetDestructableLoc(udg_destructable10),0)
call TriggerWaitForSound(bj_lastPlayedSound,1.)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Survival3Start_Func011002)
call TriggerSleepAction(2)
call ModifyGateBJ(0,udg_destructable10)
call PlaySoundAtPointBJ(udg_sound03,'d',GetDestructableLoc(udg_destructable10),0)
call TriggerWaitForSound(bj_lastPlayedSound,1.)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Survival3Start_Func016002)
call TriggerSleepAction(2)
call ModifyGateBJ(0,udg_destructable11)
call PlaySoundAtPointBJ(udg_sound03,'d',GetDestructableLoc(udg_destructable10),0)
call TriggerWaitForSound(bj_lastPlayedSound,1.)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Survival3Start_Func021002)
set udg_integer02=0
call TriggerExecute(udg_trigger57)
call TriggerSleepAction(3.)
call PauseAllUnitsBJ(false)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_Survival3Attack_Func002Func003Func002Func002001 takes nothing returns boolean
return(udg_integer07>1)
endfunction
function Trig_Survival3Attack_Func002Func003Func002Func003001 takes nothing returns boolean
return(udg_integer07>3)
endfunction
function Trig_Survival3Attack_Func002Func003Func002A takes nothing returns nothing
call UnitAddAbility(GetEnumUnit(),'SCae')
if(Trig_Survival3Attack_Func002Func003Func002Func002001())then
call UnitAddAbility(GetEnumUnit(),'ACah')
endif
if(Trig_Survival3Attack_Func002Func003Func002Func003001())then
call UnitAddAbility(GetEnumUnit(),'ACav')
endif
call IssuePointOrderByIdLoc(GetEnumUnit(),851983,GetRectCenter(udg_rect38))
endfunction
function Trig_Survival3Attack_Func002Func006Func002Func002001 takes nothing returns boolean
return(udg_integer07>1)
endfunction
function Trig_Survival3Attack_Func002Func006Func002Func003001 takes nothing returns boolean
return(udg_integer07>3)
endfunction
function Trig_Survival3Attack_Func002Func006Func002A takes nothing returns nothing
call UnitAddAbility(GetEnumUnit(),'ACac')
if(Trig_Survival3Attack_Func002Func006Func002Func002001())then
call UnitAddAbility(GetEnumUnit(),'ACvp')
endif
if(Trig_Survival3Attack_Func002Func006Func002Func003001())then
call UnitAddAbility(GetEnumUnit(),'ACav')
endif
call IssuePointOrderByIdLoc(GetEnumUnit(),851983,GetRectCenter(udg_rect38))
endfunction
function Trig_Survival3Attack_Func002C takes nothing returns boolean
return(udg_integer02>=5)
endfunction
function Trig_Survival3Attack_Actions takes nothing returns nothing
set udg_integer02=(udg_integer02+1)
if(Trig_Survival3Attack_Func002C())then
call DisableTrigger(GetTriggeringTrigger())
call TriggerSleepAction(10.)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLocFacingLocBJ(5,'nmgd',Player(11),GetRectCenter(udg_rects04[bj_forLoopAIndex]),GetUnitLoc(GetTriggerUnit()))
call ForGroupBJ(GetLastCreatedGroup(),function Trig_Survival3Attack_Func002Func003Func002A)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(10.)
call ModifyGateBJ(1,udg_destructable10)
call ModifyGateBJ(1,udg_destructable11)
call ModifyGateBJ(1,udg_destructable12)
call ModifyGateBJ(1,udg_destructable15)
call EnableTrigger(udg_trigger102)
call EnableTrigger(udg_trigger100)
call EnableTrigger(udg_trigger101)
call TriggerSleepAction(1.)
call EndThematicMusicBJ()
call StopMusic(false)
call TriggerSleepAction(1.)
call DestroyTrigger(GetTriggeringTrigger())
else
call TriggerSleepAction(6.)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLocFacingLocBJ(10,'n000',Player(11),GetRectCenter(udg_rects04[bj_forLoopAIndex]),GetUnitLoc(GetTriggerUnit()))
call ForGroupBJ(GetLastCreatedGroup(),function Trig_Survival3Attack_Func002Func006Func002A)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerExecute(GetTriggeringTrigger())
endif
endfunction
function Trig_Special1Timer_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call TriggerSleepAction(1.)
call StartTimerBJ(udg_timer02,false,750.)
call CreateTimerDialogBJ(udg_timer02,"Special Event:")
call TimerDialogDisplay(bj_lastCreatedTimerDialog,true)
set udg_timerdialog02=bj_lastCreatedTimerDialog
call EnableTrigger(udg_trigger87)
endfunction
function Trig_Special1Start_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger39)
call DisableTrigger(udg_trigger40)
call DisableTrigger(udg_trigger122)
call DisableTrigger(udg_trigger108)
call DisableTrigger(udg_trigger71)
call TriggerExecute(udg_trigger80)
call PauseTimerBJ(true,udg_timer05)
call PauseTimerBJ(true,udg_timer06)
call DestroyTimerDialog(udg_timerdialog02)
call DestroyTimerDialog(udg_timerdialog01)
call PauseTimerBJ(true,udg_timer04)
call DestroyTimerDialog(udg_timerdialog03)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"|c0061FFFFSpecial Event")
call TriggerSleepAction(3.)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations01[bj_forLoopAIndex]=GetUnitLoc(udg_units01[bj_forLoopAIndex])
set udg_reals01[bj_forLoopAIndex]=GetUnitFacing(udg_units01[bj_forLoopAIndex])
call SetUnitPositionLocFacingBJ(udg_units01[bj_forLoopAIndex],GetRectCenter(udg_rects02[bj_forLoopAIndex]),240.)
call SetUnitLifePercentBJ(udg_units01[bj_forLoopAIndex],'d')
call SetUnitManaPercentBJ(udg_units01[bj_forLoopAIndex],'d')
call UnitRemoveBuffsBJ(2,udg_units01[bj_forLoopAIndex])
call UnitResetCooldown(udg_units01[bj_forLoopAIndex])
call PanCameraToTimedLocForPlayer(Player(-1+(bj_forLoopAIndex)),GetRectCenter(udg_rects02[bj_forLoopAIndex]),0)
set udg_integers04[bj_forLoopAIndex]=1
call LeaderboardSetPlayerItemValueBJ(Player(-1+(bj_forLoopAIndex)),bj_lastCreatedLeaderboard,GetPlayerState(Player(-1+(bj_forLoopAIndex)),PLAYER_STATE_RESOURCE_LUMBER))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call LeaderboardSetLabelBJ(bj_lastCreatedLeaderboard,"Special Event Kills")
set udg_integer05=13
call TriggerExecute(udg_trigger127)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"|c00FFFFFFCount 3 minutes")
call TriggerSleepAction(6.)
call StartTimerBJ(udg_timer03,false,180.)
call CreateTimerDialogBJ(udg_timer03,"Countdown:")
call TimerDialogDisplay(bj_lastCreatedTimerDialog,true)
set udg_timerdialog02=bj_lastCreatedTimerDialog
call TriggerSleepAction(.1)
call EnableTrigger(udg_trigger62)
call EnableTrigger(udg_trigger60)
call EnableTrigger(udg_trigger61)
call EnableTrigger(udg_trigger63)
call TriggerExecute(udg_trigger61)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLocFacingLocBJ(10,udg_integers02[udg_integers04[bj_forLoopAIndex]],Player(9),GetRectCenter(udg_rects02[bj_forLoopAIndex]),GetUnitLoc(GetTriggerUnit()))
call PauseUnit(udg_units01[bj_forLoopAIndex],false)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_Special1Attack_Func006Func003001 takes nothing returns boolean
return(udg_integers04[udg_integer04]>=10)
endfunction
function Trig_Special1Attack_Func006C takes nothing returns boolean
return(CountUnitsInGroup(GetUnitsInRectOfPlayer(udg_rects02[udg_integer04],Player(9)))<=1)
endfunction
function Trig_Special1Attack_Actions takes nothing returns nothing
set udg_integer04=(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))
call RemoveUnit(GetTriggerUnit())
call AdjustPlayerStateBJ(1,Player(-1+(udg_integer04)),PLAYER_STATE_RESOURCE_LUMBER)
call LeaderboardSetPlayerItemValueBJ(Player(-1+(udg_integer04)),bj_lastCreatedLeaderboard,GetPlayerState(Player(-1+(udg_integer04)),PLAYER_STATE_RESOURCE_LUMBER))
call LeaderboardSortItemsBJ(bj_lastCreatedLeaderboard,0,false)
if(Trig_Special1Attack_Func006C())then
set udg_integers04[udg_integer04]=(udg_integers04[udg_integer04]+1)
if(Trig_Special1Attack_Func006Func003001())then
set udg_integers04[udg_integer04]=1
endif
call CreateNUnitsAtLocFacingLocBJ(10,udg_integers02[udg_integers04[udg_integer04]],Player(9),GetRectCenter(udg_rects02[udg_integer04]),GetUnitLoc(GetTriggerUnit()))
endif
endfunction
function Trig_Special1Corpse_Func001Func001Func001002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Special1Corpse_Func001Func001Func004001 takes nothing returns boolean
return(GetUnitTypeId(udg_units01[bj_forLoopAIndex])=='Ewar')
endfunction
function Trig_Special1Corpse_Func001Func001Func004002 takes nothing returns boolean
return(GetUnitTypeId(udg_units01[bj_forLoopAIndex])=='Ucrl')
endfunction
function Trig_Special1Corpse_Func001Func001C takes nothing returns boolean
return(GetBooleanOr(Trig_Special1Corpse_Func001Func001Func004001(),Trig_Special1Corpse_Func001Func001Func004002()))
endfunction
function Trig_Special1Corpse_Func002Func001Func001002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Special1Corpse_Func002Func001C takes nothing returns boolean
return(GetUnitTypeId(udg_units01[bj_forLoopAIndex])=='Nplh')
endfunction
function Trig_Special1Corpse_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Special1Corpse_Func001Func001C())then
call ForGroupBJ(GetUnitsInRectOfPlayer(udg_rects02[bj_forLoopAIndex],Player(8)),function Trig_Special1Corpse_Func001Func001Func001002)
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=8
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CreateCorpseLocBJ('ugho',Player(8),PolarProjectionBJ(GetRectCenter(udg_rects02[bj_forLoopAIndex]),300.,(45.*I2R(bj_forLoopBIndex))))
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Special1Corpse_Func002Func001C())then
call ForGroupBJ(GetUnitsInRectOfPlayer(udg_rects02[bj_forLoopAIndex],Player(8)),function Trig_Special1Corpse_Func002Func001Func001002)
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=6
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CreateNUnitsAtLocFacingLocBJ(1,'nsha',Player(8),PolarProjectionBJ(GetRectCenter(udg_rects02[bj_forLoopAIndex]),300.,(60.*I2R(bj_forLoopBIndex))),GetRectCenter(udg_rects02[bj_forLoopAIndex]))
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_Special1Stop_Func005Func007002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Special1Stop_Func005Func008002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Special1Stop_Func012Func005001 takes nothing returns boolean
return(IsUnitDeadBJ(udg_unit47)!=true)
endfunction
function Trig_Special1Stop_Func012Func005002 takes nothing returns boolean
return(IsUnitDeadBJ(udg_unit48)!=true)
endfunction
function Trig_Special1Stop_Func012C takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger52)!=true)and(IsTriggerEnabled(udg_trigger41)!=true)and(GetBooleanOr(Trig_Special1Stop_Func012Func005001(),Trig_Special1Stop_Func012Func005002()))
endfunction
function Trig_Special1Stop_Func013001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger47))
endfunction
function Trig_Special1Stop_Func014001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger50))
endfunction
function Trig_Special1Stop_Func027001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger41))
endfunction
function Trig_Special1Stop_Func028001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger41))
endfunction
function Trig_Special1Stop_Actions takes nothing returns nothing
call DestroyTimerDialog(udg_timerdialog02)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"|c0061FFFFTime Out")
call PauseAllUnitsBJ(true)
call TriggerSleepAction(5.)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitPositionLocFacingBJ(udg_units01[bj_forLoopAIndex],udg_locations01[bj_forLoopAIndex],udg_reals01[bj_forLoopAIndex])
call SetUnitLifePercentBJ(udg_units01[bj_forLoopAIndex],'d')
call SetUnitManaPercentBJ(udg_units01[bj_forLoopAIndex],'d')
call UnitRemoveBuffsBJ(2,udg_units01[bj_forLoopAIndex])
call UnitResetCooldown(udg_units01[bj_forLoopAIndex])
call PanCameraToTimedLocForPlayer(Player(-1+(bj_forLoopAIndex)),udg_locations01[bj_forLoopAIndex],0)
call ForGroupBJ(GetUnitsInRectOfPlayer(udg_rects02[bj_forLoopAIndex],Player(9)),function Trig_Special1Stop_Func005Func007002)
call ForGroupBJ(GetUnitsInRectOfPlayer(udg_rects02[bj_forLoopAIndex],Player(8)),function Trig_Special1Stop_Func005Func008002)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call StopMusic(false)
call DisableTrigger(udg_trigger59)
call DisableTrigger(udg_trigger60)
call DisableTrigger(udg_trigger61)
call DisableTrigger(udg_trigger63)
call DisableTrigger(udg_trigger58)
if(Trig_Special1Stop_Func012C())then
call EnableTrigger(udg_trigger53)
endif
if(Trig_Special1Stop_Func013001())then
call PauseTimerBJ(false,udg_timer05)
endif
if(Trig_Special1Stop_Func014001())then
call PauseTimerBJ(false,udg_timer06)
endif
call EnableTrigger(udg_trigger122)
call LeaderboardSetLabelBJ(bj_lastCreatedLeaderboard,"Kills")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call LeaderboardSetPlayerItemValueBJ(Player(-1+(bj_forLoopAIndex)),bj_lastCreatedLeaderboard,udg_integers11[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call LeaderboardSortItemsBJ(bj_lastCreatedLeaderboard,0,false)
call EnableTrigger(udg_trigger108)
call EnableTrigger(udg_trigger71)
call TriggerSleepAction(5.)
call PauseAllUnitsBJ(false)
call CreateTimerDialogBJ(udg_timer04,"Next Wave:")
call TimerDialogDisplay(bj_lastCreatedTimerDialog,true)
set udg_timerdialog03=bj_lastCreatedTimerDialog
call PauseTimerBJ(false,udg_timer04)
if(Trig_Special1Stop_Func027001())then
call EnableTrigger(udg_trigger39)
endif
if(Trig_Special1Stop_Func028001())then
call EnableTrigger(udg_trigger40)
endif
call TriggerExecute(udg_trigger120)
call DisableTrigger(GetTriggeringTrigger())
call DestroyTrigger(udg_trigger58)
call DestroyTrigger(udg_trigger59)
call DestroyTrigger(udg_trigger60)
call DestroyTrigger(udg_trigger61)
call DestroyTrigger(udg_trigger63)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_Special1Dead_Conditions takes nothing returns boolean
return(GetTriggerUnit()==udg_units01[(1+GetPlayerId(GetTriggerPlayer()))])and(GetPlayerSlotState(GetTriggerPlayer())!=PLAYER_SLOT_STATE_LEFT)
endfunction
function Trig_Special1Dead_Actions takes nothing returns nothing
call ReviveHeroLoc(GetTriggerUnit(),GetRectCenter(udg_rect33),true)
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetRectCenter(udg_rect33),0)
call UnitAddItemByIdSwapped('ankh',GetTriggerUnit())
call PauseUnit(GetTriggerUnit(),true)
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,10.,"You hero is revived and paused. Wait for time out of special event.")
endfunction
function Trig_Special2Start_Conditions takes nothing returns boolean
return(IsUnitDeadBJ(udg_unit08)!=true)
endfunction
function Trig_Special2Start_Func009001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger118))
endfunction
function Trig_Special2Start_Func010001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger119))
endfunction
function Trig_Special2Start_Func011001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger120))
endfunction
function Trig_Special2Start_Func012001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger59))
endfunction
function Trig_Special2Start_Func013001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger44))
endfunction
function Trig_Special2Start_Func014001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger51))
endfunction
function Trig_Special2Start_Func025002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),GetRectCenter(udg_rect31),0)
endfunction
function Trig_Special2Start_Func032002 takes nothing returns nothing
call RotateCameraAroundLocBJ(360.,GetRectCenter(udg_rect31),GetEnumPlayer(),7.)
endfunction
function Trig_Special2Start_Func034002 takes nothing returns nothing
call ResetToGameCameraForPlayer(GetEnumPlayer(),.0)
endfunction
function Trig_Special2Start_Func045002 takes nothing returns nothing
call PauseUnit(GetEnumUnit(),false)
endfunction
function Trig_Special2Start_Actions takes nothing returns nothing
set udg_integer04=(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))
call PauseAllUnitsBJ(true)
call DisableTrigger(udg_trigger39)
call DisableTrigger(udg_trigger40)
call DisableTrigger(udg_trigger53)
call PauseTimerBJ(true,udg_timer05)
call PauseTimerBJ(true,udg_timer06)
if(Trig_Special2Start_Func009001())then
call PauseTimerBJ(true,udg_timer01)
endif
if(Trig_Special2Start_Func010001())then
call PauseTimerBJ(true,udg_timer01)
endif
if(Trig_Special2Start_Func011001())then
call PauseTimerBJ(true,udg_timer01)
endif
if(Trig_Special2Start_Func012001())then
call PauseTimerBJ(true,udg_timer02)
endif
if(Trig_Special2Start_Func013001())then
call PauseTimerBJ(true,udg_timer04)
endif
if(Trig_Special2Start_Func014001())then
else
call DestroyTimerDialog(udg_timerdialog01)
endif
call DestroyTimerDialog(udg_timerdialog02)
call DestroyTimerDialog(udg_timerdialog03)
call StopMusic(true)
set udg_locations01[udg_integer04]=GetUnitLoc(udg_units01[udg_integer04])
set udg_reals01[udg_integer04]=GetUnitFacing(udg_units01[udg_integer04])
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"|c0061FFFFSpecial Arena")
call TriggerSleepAction(3.)
call SetUnitPositionLocFacingLocBJ(udg_unit08,OffsetLocation(GetRectCenter(udg_rect31),.0,200.),GetRectCenter(udg_rect31))
call SetUnitInvulnerable(udg_unit08,false)
call SetUnitPositionLocFacingLocBJ(udg_units01[udg_integer04],OffsetLocation(GetRectCenter(udg_rect31),0,-200.),GetRectCenter(udg_rect31))
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Special2Start_Func025002)
call SetUnitLifePercentBJ(udg_units01[udg_integer04],'d')
call SetUnitManaPercentBJ(udg_units01[udg_integer04],'d')
call UnitRemoveBuffsBJ(2,udg_units01[udg_integer04])
call UnitResetCooldown(udg_units01[udg_integer04])
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"|c00FFFFFFCount 3 minutes")
call TriggerSleepAction(1.)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Special2Start_Func032002)
call TriggerSleepAction(8.)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Special2Start_Func034002)
call StartTimerBJ(udg_timer03,false,180.)
call CreateTimerDialogBJ(udg_timer03,"Countdown:")
call TimerDialogDisplay(bj_lastCreatedTimerDialog,true)
set udg_timerdialog02=bj_lastCreatedTimerDialog
call TriggerSleepAction(1.)
call EnableTrigger(udg_trigger65)
call EnableTrigger(udg_trigger66)
call EnableTrigger(udg_trigger67)
call EnableTrigger(udg_trigger68)
call TriggerSleepAction(1.)
call ForGroupBJ(GetUnitsInRectAll(udg_rect31),function Trig_Special2Start_Func045002)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Special2Stop_Conditions takes nothing returns boolean
return(GetTriggerUnit()==udg_units01[udg_integer04])and(IsUnitDeadBJ(GetTriggerUnit())==false)
endfunction
function Trig_Special2Stop_Func006C takes nothing returns boolean
return(IsUnitDeadBJ(udg_unit08)!=true)
endfunction
function Trig_Special2Stop_Func008001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger47))
endfunction
function Trig_Special2Stop_Func009001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger50))
endfunction
function Trig_Special2Stop_Func012001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger41))
endfunction
function Trig_Special2Stop_Func013001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger41))
endfunction
function Trig_Special2Stop_Func014Func005001 takes nothing returns boolean
return(IsUnitDeadBJ(udg_unit47)!=true)
endfunction
function Trig_Special2Stop_Func014Func005002 takes nothing returns boolean
return(IsUnitDeadBJ(udg_unit48)!=true)
endfunction
function Trig_Special2Stop_Func014C takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger52)!=true)and(IsTriggerEnabled(udg_trigger41)!=true)and(GetBooleanOr(Trig_Special2Stop_Func014Func005001(),Trig_Special2Stop_Func014Func005002()))
endfunction
function Trig_Special2Stop_Func018C takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger59))
endfunction
function Trig_Special2Stop_Func019Func001001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger118))
endfunction
function Trig_Special2Stop_Func019Func002001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger119))
endfunction
function Trig_Special2Stop_Func019Func003001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger120))
endfunction
function Trig_Special2Stop_Func019Func004001001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger118))
endfunction
function Trig_Special2Stop_Func019Func004001002 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger119))
endfunction
function Trig_Special2Stop_Func019Func004001 takes nothing returns boolean
return GetBooleanOr(Trig_Special2Stop_Func019Func004001001(),Trig_Special2Stop_Func019Func004001002())
endfunction
function Trig_Special2Stop_Func019Func004002 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger120))
endfunction
function Trig_Special2Stop_Func019C takes nothing returns boolean
return(GetBooleanOr(Trig_Special2Stop_Func019Func004001(),Trig_Special2Stop_Func019Func004002()))
endfunction
function Trig_Special2Stop_Func020C takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger44))
endfunction
function Trig_Special2Stop_Func021C takes nothing returns boolean
return(IsUnitDeadBJ(udg_unit08)!=true)
endfunction
function Trig_Special2Stop_Actions takes nothing returns nothing
call DisableTrigger(udg_trigger66)
call DisableTrigger(udg_trigger67)
if(Trig_Special2Stop_Func006C())then
call DisableTrigger(udg_trigger68)
call SetUnitLifePercentBJ(udg_unit08,'d')
call SetUnitManaPercentBJ(udg_unit08,'d')
call SetUnitPositionLocFacingBJ(udg_unit08,OffsetLocation(GetRectCenter(udg_rect01),-400.,0),270.)
call SetUnitInvulnerable(udg_unit08,true)
endif
call DestroyTimerDialog(udg_timerdialog02)
if(Trig_Special2Stop_Func008001())then
call PauseTimerBJ(false,udg_timer05)
endif
if(Trig_Special2Stop_Func009001())then
call PauseTimerBJ(false,udg_timer06)
endif
call TriggerSleepAction(3.)
call PauseAllUnitsBJ(false)
if(Trig_Special2Stop_Func012001())then
call EnableTrigger(udg_trigger39)
endif
if(Trig_Special2Stop_Func013001())then
call EnableTrigger(udg_trigger40)
endif
if(Trig_Special2Stop_Func014C())then
call EnableTrigger(udg_trigger53)
endif
call ResumeMusic()
call DisableTrigger(GetTriggeringTrigger())
call TriggerSleepAction(3.)
if(Trig_Special2Stop_Func018C())then
call CreateTimerDialogBJ(udg_timer02,"Special Event:")
call TimerDialogDisplay(bj_lastCreatedTimerDialog,true)
set udg_timerdialog02=bj_lastCreatedTimerDialog
call PauseTimerBJ(false,udg_timer02)
endif
if(Trig_Special2Stop_Func019C())then
if(Trig_Special2Stop_Func019Func001001())then
call CreateTimerDialogBJ(udg_timer01,"Level 2 Time:")
endif
if(Trig_Special2Stop_Func019Func002001())then
call CreateTimerDialogBJ(udg_timer01,"Level 3 Time:")
endif
if(Trig_Special2Stop_Func019Func003001())then
call CreateTimerDialogBJ(udg_timer01,"Level 4 Time:")
endif
call TimerDialogDisplay(bj_lastCreatedTimerDialog,true)
set udg_timerdialog01=bj_lastCreatedTimerDialog
call PauseTimerBJ(false,udg_timer01)
endif
if(Trig_Special2Stop_Func020C())then
call CreateTimerDialogBJ(udg_timer04,"Next Wave:")
call TimerDialogDisplay(bj_lastCreatedTimerDialog,true)
set udg_timerdialog03=bj_lastCreatedTimerDialog
call PauseTimerBJ(false,udg_timer04)
endif
if(Trig_Special2Stop_Func021C())then
else
call DestroyTrigger(udg_trigger64)
call DestroyTrigger(udg_trigger66)
call DestroyTrigger(udg_trigger67)
call DestroyTrigger(GetTriggeringTrigger())
endif
endfunction
function Trig_Special2Dead_Conditions takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_Special2Dead_Func004Func008001 takes nothing returns boolean
return(GetUnitTypeId(udg_units01[udg_integer04])=='Nbst')
endfunction
function Trig_Special2Dead_Func004Func008002 takes nothing returns boolean
return(GetUnitTypeId(udg_units01[udg_integer04])=='Obla')
endfunction
function Trig_Special2Dead_Func004C takes nothing returns boolean
return(GetTriggerUnit()==udg_unit08)and(GetBooleanOr(Trig_Special2Dead_Func004Func008001(),Trig_Special2Dead_Func004Func008002()))
endfunction
function Trig_Special2Dead_Func005Func001001 takes nothing returns boolean
return(udg_integer04!=bj_forLoopAIndex)
endfunction
function Trig_Special2Dead_Actions takes nothing returns nothing
call DisableTrigger(udg_trigger65)
call DisableTrigger(udg_trigger67)
if(Trig_Special2Dead_Func004C())then
call TriggerSleepAction(1.)
call PauseUnit(udg_units01[udg_integer04],true)
call TriggerSleepAction(1.)
call PauseUnit(udg_units01[udg_integer04],false)
call TriggerSleepAction(1.)
else
call TriggerSleepAction(3.)
endif
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Special2Dead_Func005Func001001())then
call PanCameraToTimedLocForPlayer(Player(-1+(bj_forLoopAIndex)),GetUnitLoc(udg_units01[bj_forLoopAIndex]),0)
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerExecute(udg_trigger65)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Special2TimeOut_Actions takes nothing returns nothing
call DisableTrigger(udg_trigger65)
call DisableTrigger(udg_trigger66)
call PauseAllUnitsBJ(true)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"|c0061FFFFTime Out")
call TriggerSleepAction(3.)
call SetUnitPositionLocFacingBJ(udg_units01[udg_integer04],udg_locations01[udg_integer04],udg_reals01[udg_integer04])
call SetUnitLifePercentBJ(udg_units01[udg_integer04],'d')
call SetUnitManaPercentBJ(udg_units01[udg_integer04],'d')
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PanCameraToTimedLocForPlayer(Player(-1+(bj_forLoopAIndex)),GetUnitLoc(udg_units01[bj_forLoopAIndex]),0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerExecute(udg_trigger65)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Special2Teleport_Conditions takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I000')and(RectContainsUnit(udg_rect31,GetTriggerUnit()))
endfunction
function Trig_Special2Teleport_Actions takes nothing returns nothing
set udg_integer04=(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))
call PauseUnit(udg_units01[udg_integer04],true)
call TriggerSleepAction(1.)
call SetUnitPositionLocFacingBJ(udg_units01[udg_integer04],udg_locations01[udg_integer04],udg_reals01[udg_integer04])
call PanCameraToTimedLocForPlayer(Player(-1+(udg_integer04)),udg_locations01[udg_integer04],0)
call SetUnitLifePercentBJ(udg_units01[udg_integer04],'d')
call SetUnitManaPercentBJ(udg_units01[udg_integer04],'d')
call UnitResetCooldown(udg_units01[udg_integer04])
call UnitRemoveBuffsBJ(2,udg_units01[udg_integer04])
call TriggerSleepAction(1.)
call PauseUnit(udg_units01[udg_integer04],false)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_Special3Start_Conditions takes nothing returns boolean
return(IsUnitDeadBJ(udg_unit07)!=true)and(udg_integers13[udg_integer04]>=80)
endfunction
function Trig_Special3Start_Func009001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger118))
endfunction
function Trig_Special3Start_Func010001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger119))
endfunction
function Trig_Special3Start_Func011001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger120))
endfunction
function Trig_Special3Start_Func012001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger59))
endfunction
function Trig_Special3Start_Func013001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger44))
endfunction
function Trig_Special3Start_Func014001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger51))
endfunction
function Trig_Special3Start_Func027002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),GetRectCenter(udg_rect31),0)
endfunction
function Trig_Special3Start_Func034002 takes nothing returns nothing
call RotateCameraAroundLocBJ(360.,GetRectCenter(udg_rect31),GetEnumPlayer(),7.)
endfunction
function Trig_Special3Start_Func036002 takes nothing returns nothing
call ResetToGameCameraForPlayer(GetEnumPlayer(),.0)
endfunction
function Trig_Special3Start_Func047002 takes nothing returns nothing
call PauseUnit(GetEnumUnit(),false)
endfunction
function Trig_Special3Start_Actions takes nothing returns nothing
call PauseAllUnitsBJ(true)
call DisableTrigger(udg_trigger39)
call DisableTrigger(udg_trigger40)
call DisableTrigger(udg_trigger53)
call PauseTimerBJ(true,udg_timer05)
call PauseTimerBJ(true,udg_timer06)
if(Trig_Special3Start_Func009001())then
call PauseTimerBJ(true,udg_timer01)
endif
if(Trig_Special3Start_Func010001())then
call PauseTimerBJ(true,udg_timer01)
endif
if(Trig_Special3Start_Func011001())then
call PauseTimerBJ(true,udg_timer01)
endif
if(Trig_Special3Start_Func012001())then
call PauseTimerBJ(true,udg_timer02)
endif
if(Trig_Special3Start_Func013001())then
call PauseTimerBJ(true,udg_timer04)
endif
if(Trig_Special3Start_Func014001())then
else
call DestroyTimerDialog(udg_timerdialog01)
endif
call DestroyTimerDialog(udg_timerdialog02)
call DestroyTimerDialog(udg_timerdialog03)
set udg_locations01[udg_integer04]=GetUnitLoc(udg_units01[udg_integer04])
set udg_reals01[udg_integer04]=GetUnitFacing(udg_units01[udg_integer04])
call StopMusic(true)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"|c0061FFFFSpecial Arena")
call TriggerSleepAction(3.)
call SetUnitPositionLocFacingLocBJ(udg_unit07,OffsetLocation(GetRectCenter(udg_rect31),-250.,-250.),GetRectCenter(udg_rect31))
call SetUnitInvulnerable(udg_unit07,false)
call SetUnitPositionLocFacingLocBJ(udg_unit54,OffsetLocation(GetRectCenter(udg_rect31),250.,250.),GetRectCenter(udg_rect31))
call SetUnitInvulnerable(udg_unit54,false)
call SetUnitPositionLocFacingBJ(udg_units01[udg_integer04],GetRectCenter(udg_rect31),225.)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Special3Start_Func027002)
call SetUnitLifePercentBJ(udg_units01[udg_integer04],'d')
call SetUnitManaPercentBJ(udg_units01[udg_integer04],'d')
call UnitRemoveBuffsBJ(2,udg_units01[udg_integer04])
call UnitResetCooldown(udg_units01[udg_integer04])
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"|c00FFFFFFCount 3 minutes")
call TriggerSleepAction(1.)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Special3Start_Func034002)
call TriggerSleepAction(8.)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Special3Start_Func036002)
call StartTimerBJ(udg_timer03,false,180.)
call CreateTimerDialogBJ(udg_timer03,"Countdown:")
call TimerDialogDisplay(bj_lastCreatedTimerDialog,true)
set udg_timerdialog02=bj_lastCreatedTimerDialog
call TriggerSleepAction(1.)
call EnableTrigger(udg_trigger70)
call EnableTrigger(udg_trigger72)
call EnableTrigger(udg_trigger73)
call EnableTrigger(udg_trigger74)
call TriggerSleepAction(1.)
call ForGroupBJ(GetUnitsInRectAll(udg_rect31),function Trig_Special3Start_Func047002)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Special3Stop_Conditions takes nothing returns boolean
return(GetTriggerUnit()==udg_units01[udg_integer04])and(IsUnitDeadBJ(GetTriggerUnit())==false)
endfunction
function Trig_Special3Stop_Func006C takes nothing returns boolean
return(IsUnitDeadBJ(udg_unit07)!=true)
endfunction
function Trig_Special3Stop_Func007C takes nothing returns boolean
return(IsUnitDeadBJ(udg_unit54)!=true)
endfunction
function Trig_Special3Stop_Func009001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger47))
endfunction
function Trig_Special3Stop_Func010001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger50))
endfunction
function Trig_Special3Stop_Func013001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger41))
endfunction
function Trig_Special3Stop_Func014001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger41))
endfunction
function Trig_Special3Stop_Func015Func005001 takes nothing returns boolean
return(IsUnitDeadBJ(udg_unit47)!=true)
endfunction
function Trig_Special3Stop_Func015Func005002 takes nothing returns boolean
return(IsUnitDeadBJ(udg_unit48)!=true)
endfunction
function Trig_Special3Stop_Func015C takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger52)!=true)and(IsTriggerEnabled(udg_trigger41)!=true)and(GetBooleanOr(Trig_Special3Stop_Func015Func005001(),Trig_Special3Stop_Func015Func005002()))
endfunction
function Trig_Special3Stop_Func019C takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger59))
endfunction
function Trig_Special3Stop_Func020Func001001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger118))
endfunction
function Trig_Special3Stop_Func020Func002001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger119))
endfunction
function Trig_Special3Stop_Func020Func003001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger120))
endfunction
function Trig_Special3Stop_Func020Func004001001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger118))
endfunction
function Trig_Special3Stop_Func020Func004001002 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger119))
endfunction
function Trig_Special3Stop_Func020Func004001 takes nothing returns boolean
return GetBooleanOr(Trig_Special3Stop_Func020Func004001001(),Trig_Special3Stop_Func020Func004001002())
endfunction
function Trig_Special3Stop_Func020Func004002 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger120))
endfunction
function Trig_Special3Stop_Func020C takes nothing returns boolean
return(GetBooleanOr(Trig_Special3Stop_Func020Func004001(),Trig_Special3Stop_Func020Func004002()))
endfunction
function Trig_Special3Stop_Func021C takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger44))
endfunction
function Trig_Special3Stop_Func022C takes nothing returns boolean
return(IsUnitDeadBJ(udg_unit07)!=true)
endfunction
function Trig_Special3Stop_Actions takes nothing returns nothing
call DisableTrigger(udg_trigger72)
call DisableTrigger(udg_trigger73)
if(Trig_Special3Stop_Func006C())then
call DisableTrigger(udg_trigger74)
call SetUnitLifePercentBJ(udg_unit07,'d')
call SetUnitManaPercentBJ(udg_unit07,'d')
call SetUnitPositionLocFacingBJ(udg_unit07,OffsetLocation(GetRectCenter(udg_rect01),400.,0),270.)
call SetUnitInvulnerable(udg_unit07,true)
endif
if(Trig_Special3Stop_Func007C())then
call SetUnitLifePercentBJ(udg_unit54,'d')
call SetUnitManaPercentBJ(udg_unit54,'d')
call SetUnitPositionLocFacingBJ(udg_unit54,GetRectCenter(udg_rect01),270.)
call SetUnitInvulnerable(udg_unit54,true)
endif
call DestroyTimerDialog(udg_timerdialog02)
if(Trig_Special3Stop_Func009001())then
call PauseTimerBJ(false,udg_timer05)
endif
if(Trig_Special3Stop_Func010001())then
call PauseTimerBJ(false,udg_timer06)
endif
call TriggerSleepAction(3.)
call PauseAllUnitsBJ(false)
if(Trig_Special3Stop_Func013001())then
call EnableTrigger(udg_trigger39)
endif
if(Trig_Special3Stop_Func014001())then
call EnableTrigger(udg_trigger40)
endif
if(Trig_Special3Stop_Func015C())then
call EnableTrigger(udg_trigger53)
endif
call ResumeMusic()
call DisableTrigger(GetTriggeringTrigger())
call TriggerSleepAction(2)
if(Trig_Special3Stop_Func019C())then
call CreateTimerDialogBJ(udg_timer02,"Special Event:")
call TimerDialogDisplay(bj_lastCreatedTimerDialog,true)
set udg_timerdialog02=bj_lastCreatedTimerDialog
call PauseTimerBJ(false,udg_timer02)
endif
if(Trig_Special3Stop_Func020C())then
if(Trig_Special3Stop_Func020Func001001())then
call CreateTimerDialogBJ(udg_timer01,"Level 2 Time:")
endif
if(Trig_Special3Stop_Func020Func002001())then
call CreateTimerDialogBJ(udg_timer01,"Level 3 Time:")
endif
if(Trig_Special3Stop_Func020Func003001())then
call CreateTimerDialogBJ(udg_timer01,"Level 4 Time:")
endif
call TimerDialogDisplay(bj_lastCreatedTimerDialog,true)
set udg_timerdialog01=bj_lastCreatedTimerDialog
call PauseTimerBJ(false,udg_timer01)
endif
if(Trig_Special3Stop_Func021C())then
call CreateTimerDialogBJ(udg_timer04,"Next Wave:")
call TimerDialogDisplay(bj_lastCreatedTimerDialog,true)
set udg_timerdialog03=bj_lastCreatedTimerDialog
call PauseTimerBJ(false,udg_timer04)
endif
if(Trig_Special3Stop_Func022C())then
else
call DestroyTrigger(udg_trigger69)
call DestroyTrigger(udg_trigger72)
call DestroyTrigger(udg_trigger73)
call DestroyTrigger(GetTriggeringTrigger())
endif
endfunction
function Trig_Special3Count_Func002C takes nothing returns boolean
return(udg_integers13[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]==80)
endfunction
function Trig_Special3Count_Actions takes nothing returns nothing
set udg_integers13[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]=(udg_integers13[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+1)
if(Trig_Special3Count_Func002C())then
set udg_integer04=(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))
call ConditionalTriggerExecute(udg_trigger69)
endif
endfunction
function Trig_Special3Dead_Conditions takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_Special3Dead_Func002Func003Func007001 takes nothing returns boolean
return(GetUnitTypeId(udg_units01[udg_integer04])=='Nbst')
endfunction
function Trig_Special3Dead_Func002Func003Func007002 takes nothing returns boolean
return(GetUnitTypeId(udg_units01[udg_integer04])=='Obla')
endfunction
function Trig_Special3Dead_Func002Func003C takes nothing returns boolean
return(GetBooleanOr(Trig_Special3Dead_Func002Func003Func007001(),Trig_Special3Dead_Func002Func003Func007002()))
endfunction
function Trig_Special3Dead_Func002Func004001 takes nothing returns boolean
return(GetTriggerUnit()==udg_units01[udg_integer04])
endfunction
function Trig_Special3Dead_Func002Func005001 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit07)
endfunction
function Trig_Special3Dead_Func002Func005002 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit54)
endfunction
function Trig_Special3Dead_Func002Func007Func001001 takes nothing returns boolean
return(udg_integer04!=bj_forLoopAIndex)
endfunction
function Trig_Special3Dead_Func002C takes nothing returns boolean
return(GetBooleanOr(Trig_Special3Dead_Func002Func005001(),Trig_Special3Dead_Func002Func005002()))and(IsUnitGroupDeadBJ(GetUnitsInRectOfPlayer(udg_rect31,Player(9))))
endfunction
function Trig_Special3Dead_Actions takes nothing returns nothing
if(Trig_Special3Dead_Func002C())then
call DisableTrigger(udg_trigger70)
call DisableTrigger(udg_trigger73)
if(Trig_Special3Dead_Func002Func003C())then
call TriggerSleepAction(1.)
call PauseUnit(udg_units01[udg_integer04],true)
call TriggerSleepAction(1.)
call PauseUnit(udg_units01[udg_integer04],false)
call TriggerSleepAction(1.)
else
call TriggerSleepAction(3.)
endif
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Special3Dead_Func002Func007Func001001())then
call PanCameraToTimedLocForPlayer(Player(-1+(bj_forLoopAIndex)),GetUnitLoc(udg_units01[bj_forLoopAIndex]),0)
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerExecute(udg_trigger70)
else
if(Trig_Special3Dead_Func002Func004001())then
call TriggerExecute(udg_trigger70)
endif
endif
endfunction
function Trig_Special3TimeOut_Actions takes nothing returns nothing
call DisableTrigger(udg_trigger70)
call DisableTrigger(udg_trigger72)
call PauseAllUnitsBJ(true)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"|c0061FFFFTime Out")
call TriggerSleepAction(3.)
call SetUnitPositionLocFacingBJ(udg_units01[udg_integer04],udg_locations01[udg_integer04],udg_reals01[udg_integer04])
call SetUnitLifePercentBJ(udg_units01[udg_integer04],'d')
call SetUnitManaPercentBJ(udg_units01[udg_integer04],'d')
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PanCameraToTimedLocForPlayer(Player(-1+(bj_forLoopAIndex)),GetUnitLoc(udg_units01[bj_forLoopAIndex]),0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerExecute(udg_trigger70)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Special3Teleport_Conditions takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I003')and(RectContainsUnit(udg_rect31,GetTriggerUnit()))
endfunction
function Trig_Special3Teleport_Actions takes nothing returns nothing
set udg_integer04=(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))
call PauseUnit(udg_units01[udg_integer04],true)
call TriggerSleepAction(1.)
call SetUnitPositionLocFacingBJ(udg_units01[udg_integer04],udg_locations01[udg_integer04],udg_reals01[udg_integer04])
call PanCameraToTimedLocForPlayer(Player(-1+(udg_integer04)),udg_locations01[udg_integer04],0)
call SetUnitLifePercentBJ(udg_units01[udg_integer04],'d')
call SetUnitManaPercentBJ(udg_units01[udg_integer04],'d')
call UnitResetCooldown(udg_units01[udg_integer04])
call UnitRemoveBuffsBJ(2,udg_units01[udg_integer04])
call TriggerSleepAction(1.)
call PauseUnit(udg_units01[udg_integer04],false)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_SpecialXDialog_Conditions takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO))and(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_USER)and(CountUnitsInGroup(GetUnitsInRectAll(udg_rect32))==1)
endfunction
function Trig_SpecialXDialog_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call EnableTrigger(udg_trigger76)
call EnableTrigger(udg_trigger78)
call DialogClear(udg_dialog01)
call DialogSetMessage(udg_dialog01,"Special Events")
call DialogAddButtonBJ(udg_dialog01,"Hero Image")
set udg_buttons03[1]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog01,"All Hero Imgaes")
set udg_buttons03[2]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog01,"Spirit Beast")
set udg_buttons03[3]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog01,"Frost Infernal")
set udg_buttons03[4]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog01,"Exit")
set udg_button01=bj_lastCreatedButton
call DialogDisplayBJ(true,udg_dialog01,GetOwningPlayer(GetTriggerUnit()))
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_SpecialXStart_Func002001 takes nothing returns boolean
return(GetClickedButton()==udg_button01)
endfunction
function Trig_SpecialXStart_Func003001 takes nothing returns boolean
return(GetClickedButton()==udg_button01)
endfunction
function Trig_SpecialXStart_Func004001 takes nothing returns boolean
return(GetClickedButton()==udg_buttons03[1])
endfunction
function Trig_SpecialXStart_Func005001 takes nothing returns boolean
return(GetClickedButton()==udg_buttons03[2])
endfunction
function Trig_SpecialXStart_Func006001 takes nothing returns boolean
return(GetClickedButton()==udg_buttons03[3])
endfunction
function Trig_SpecialXStart_Func007001 takes nothing returns boolean
return(GetClickedButton()==udg_buttons03[4])
endfunction
function Trig_SpecialXStart_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
if(Trig_SpecialXStart_Func002001())then
call DisableTrigger(udg_trigger78)
endif
if(Trig_SpecialXStart_Func003001())then
return
endif
if(Trig_SpecialXStart_Func004001())then
call EnableTrigger(udg_trigger81)
endif
if(Trig_SpecialXStart_Func005001())then
call EnableTrigger(udg_trigger83)
endif
if(Trig_SpecialXStart_Func006001())then
call EnableTrigger(udg_trigger85)
endif
if(Trig_SpecialXStart_Func007001())then
call EnableTrigger(udg_trigger86)
endif
call DialogClear(udg_dialog02)
call DialogSetMessage(udg_dialog02,"Are you sure?")
call DialogAddButtonBJ(udg_dialog02,"Yes")
set udg_button02=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog02,"No")
set udg_button03=bj_lastCreatedButton
call DialogDisplayBJ(true,udg_dialog02,GetTriggerPlayer())
endfunction
function Trig_SpecialXExit_Func006001 takes nothing returns boolean
return(udg_integer11==55)
endfunction
function Trig_SpecialXExit_Func007001 takes nothing returns boolean
return(CountUnitsInGroup(GetUnitsInRectAll(GetWorldBounds()))==144)
endfunction
function Trig_SpecialXExit_Actions takes nothing returns nothing
set udg_integer11=GetPlayerStructureCount(Player(8),false)
set udg_integer11=(udg_integer11+GetPlayerStructureCount(Player(9),false))
set udg_integer11=(udg_integer11+GetPlayerStructureCount(Player(10),false))
set udg_integer11=(udg_integer11+GetPlayerStructureCount(Player(11),false))
if(Trig_SpecialXExit_Func006001())then
else
call DestroyTrigger(udg_trigger38)
endif
if(Trig_SpecialXExit_Func007001())then
else
call DestroyTrigger(udg_trigger118)
endif
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_SpecialXDisagree_Conditions takes nothing returns boolean
return(GetClickedButton()==udg_button03)
endfunction
function Trig_SpecialXDisagree_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger81)
call DisableTrigger(udg_trigger83)
call DisableTrigger(udg_trigger85)
call DisableTrigger(udg_trigger86)
call EnableTrigger(udg_trigger76)
call DialogClear(udg_dialog01)
call DialogSetMessage(udg_dialog01,"Special Events")
call DialogAddButtonBJ(udg_dialog01,"Hero Image")
set udg_buttons03[1]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog01,"All Hero Imgaes")
set udg_buttons03[2]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog01,"Spirit Beast")
set udg_buttons03[3]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog01,"Frost Infernal")
set udg_buttons03[4]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog01,"Exit")
set udg_button01=bj_lastCreatedButton
call DialogDisplayBJ(true,udg_dialog01,GetTriggerPlayer())
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_SpecialXTeleport_Conditions takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO))and(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_USER)
endfunction
function Trig_SpecialXTeleport_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ(GetTriggerUnit(),GetRectCenter(udg_rect33),225.)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rect33),0)
endfunction
function Trig_SpecialXRevive_Func001Func001Func005C takes nothing returns boolean
return(IsUnitAliveBJ(udg_units01[bj_forLoopAIndex]))
endfunction
function Trig_SpecialXRevive_Func001Func001C takes nothing returns boolean
return(IsUnitDeadBJ(udg_units01[bj_forLoopAIndex]))and(GetPlayerSlotState(Player(-1+(bj_forLoopAIndex)))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_SpecialXRevive_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_SpecialXRevive_Func001Func001C())then
set udg_location01=GetRectCenter(udg_rect33)
call DestroyTimerDialog(udg_timerdialogs01[bj_forLoopAIndex])
call ReviveHeroLoc(udg_units01[bj_forLoopAIndex],udg_location01,true)
call SelectUnitForPlayerSingle(udg_units01[bj_forLoopAIndex],Player(-1+(bj_forLoopAIndex)))
if(Trig_SpecialXRevive_Func001Func001Func005C())then
call AdjustPlayerStateBJ(-5000,Player(-1+(bj_forLoopAIndex)),PLAYER_STATE_RESOURCE_GOLD)
call UnitAddItemByIdSwapped('ankh',udg_units01[bj_forLoopAIndex])
endif
call RemoveLocation(udg_location01)
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(.1)
call PauseAllUnitsBJ(true)
endfunction
function Trig_Special4Agree_Conditions takes nothing returns boolean
return(GetClickedButton()==udg_button02)
endfunction
function Trig_Special4Agree_Func005C takes nothing returns boolean
return(udg_booleans02[(1+GetPlayerId(GetTriggerPlayer()))])
endfunction
function Trig_Special4Agree_Func006Func004001001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_Special4Agree_Func006C takes nothing returns boolean
return(IsUnitGroupEmptyBJ(GetUnitsInRectMatching(udg_rect23,Condition(function Trig_Special4Agree_Func006Func004001001002)))==false)
endfunction
function Trig_Special4Agree_Func007Func003001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_SUMMONED)!=null)
endfunction
function Trig_Special4Agree_Func007Func003002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Special4Agree_Func007Func015001 takes nothing returns boolean
return(udg_integer07>1)
endfunction
function Trig_Special4Agree_Func007Func017001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_Special4Agree_Func007Func020002 takes nothing returns nothing
call PauseUnit(GetEnumUnit(),false)
endfunction
function Trig_Special4Agree_Func007Func021001001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_Special4Agree_Func007C takes nothing returns boolean
return(IsUnitGroupEmptyBJ(GetUnitsInRectMatching(udg_rect23,Condition(function Trig_Special4Agree_Func007Func021001001002))))and(udg_booleans02[(1+GetPlayerId(GetTriggerPlayer()))]==false)
endfunction
function Trig_Special4Agree_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger76)
call DisableTrigger(udg_trigger78)
if(Trig_Special4Agree_Func005C())then
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,10.,"You can enter this special arena only once.")
return
endif
if(Trig_Special4Agree_Func006C())then
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,10.,"Arena for this special event is not free at the moment.")
return
endif
if(Trig_Special4Agree_Func007C())then
call EnableTrigger(udg_trigger82)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect23,Condition(function Trig_Special4Agree_Func007Func003001002)),function Trig_Special4Agree_Func007Func003002)
call GroupClear(udg_group03)
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,10.,"|c0061FFFFSpecial Event")
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,10.,"Reward: +100 to all stats.")
call PauseUnit(udg_units01[(1+GetPlayerId(GetTriggerPlayer()))],true)
call SetUnitPositionLocFacingLocBJ(udg_units01[(1+GetPlayerId(GetTriggerPlayer()))],OffsetLocation(GetRectCenter(udg_rect23),-150.,-150.),GetRectCenter(udg_rect23))
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetRectCenter(udg_rect23),0)
call CreateNUnitsAtLocFacingLocBJ(1,GetUnitTypeId(udg_units01[(1+GetPlayerId(GetTriggerPlayer()))]),Player(9),OffsetLocation(GetRectCenter(udg_rect23),150.,150.),GetRectCenter(udg_rect23))
call SetHeroLevelBJ(bj_lastCreatedUnit,GetHeroLevel(udg_units01[(1+GetPlayerId(GetTriggerPlayer()))]),false)
call ModifyHeroStat(0,bj_lastCreatedUnit,2,(4*GetHeroStatBJ(0,udg_units01[(1+GetPlayerId(GetTriggerPlayer()))],true)))
call ModifyHeroStat(1,bj_lastCreatedUnit,2,(4*GetHeroStatBJ(1,udg_units01[(1+GetPlayerId(GetTriggerPlayer()))],true)))
call ModifyHeroStat(2,bj_lastCreatedUnit,2,(4*GetHeroStatBJ(2,udg_units01[(1+GetPlayerId(GetTriggerPlayer()))],true)))
if(Trig_Special4Agree_Func007Func015001())then
call UnitAddAbility(bj_lastCreatedUnit,'A01Y')
endif
call PauseUnit(bj_lastCreatedUnit,true)
call GroupAddGroup(GetUnitsInRectMatching(udg_rect23,Condition(function Trig_Special4Agree_Func007Func017001002)),udg_group03)
set udg_booleans02[(1+GetPlayerId(GetTriggerPlayer()))]=true
call TriggerSleepAction(6.)
call ForGroupBJ(GetUnitsInRectAll(udg_rect23),function Trig_Special4Agree_Func007Func020002)
endif
endfunction
function Trig_Special4Dead_Conditions takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO))and(IsUnitInGroup(GetTriggerUnit(),udg_group03))and(GetTriggerUnit()!=udg_units01[((1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))+8)])and(IsUnitPaused(GetTriggerUnit())==false)
endfunction
function Trig_Special4Dead_Func002Func001002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Special4Dead_Func002Func005001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger34))
endfunction
function Trig_Special4Dead_Func002Func006001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger34))
endfunction
function Trig_Special4Dead_Func002Func007001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger34))
endfunction
function Trig_Special4Dead_Func002C takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(9))and(IsUnitDeadBJ(GetTriggerUnit()))
endfunction
function Trig_Special4Dead_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
if(Trig_Special4Dead_Func002C())then
call ModifyHeroStat(0,udg_units01[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))],0,'d')
call ModifyHeroStat(1,udg_units01[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))],0,'d')
call ModifyHeroStat(2,udg_units01[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))],0,'d')
if(Trig_Special4Dead_Func002Func005001())then
call ModifyHeroStat(0,udg_units01[((1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))+8)],0,'d')
endif
if(Trig_Special4Dead_Func002Func006001())then
call ModifyHeroStat(1,udg_units01[((1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))+8)],0,'d')
endif
if(Trig_Special4Dead_Func002Func007001())then
call ModifyHeroStat(2,udg_units01[((1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))+8)],0,'d')
endif
call AddSpecialEffectTargetUnitBJ("origin",udg_units01[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))],"Abilities\\Spells\\Items\\AIlm\\AIlmTarget.mdl")
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,(GetPlayerName(GetOwningPlayer(GetKillingUnit()))+"|c0061FFFF!"))
else
call ForGroupBJ(GetUnitsInRectOfPlayer(udg_rect23,Player(9)),function Trig_Special4Dead_Func002Func001002)
endif
endfunction
function Trig_Special5Agree_Conditions takes nothing returns boolean
return(GetClickedButton()==udg_button02)
endfunction
function Trig_Special5Agree_Func005C takes nothing returns boolean
return(udg_booleans03[(1+GetPlayerId(GetTriggerPlayer()))])
endfunction
function Trig_Special5Agree_Func006Func004001001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_Special5Agree_Func006C takes nothing returns boolean
return(IsUnitGroupEmptyBJ(GetUnitsInRectMatching(udg_rect25,Condition(function Trig_Special5Agree_Func006Func004001001002)))==false)
endfunction
function Trig_Special5Agree_Func007Func002001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_SUMMONED)!=null)
endfunction
function Trig_Special5Agree_Func007Func002002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Special5Agree_Func007Func009Func001C takes nothing returns boolean
return(GetPlayerSlotState(Player(-1+(bj_forLoopAIndex)))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Special5Agree_Func007Func009Func002001 takes nothing returns boolean
return(udg_integer07>1)
endfunction
function Trig_Special5Agree_Func007Func010001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_Special5Agree_Func007Func013002 takes nothing returns nothing
call PauseUnit(GetEnumUnit(),false)
endfunction
function Trig_Special5Agree_Func007Func015001001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_Special5Agree_Func007C takes nothing returns boolean
return(IsUnitGroupEmptyBJ(GetUnitsInRectMatching(udg_rect25,Condition(function Trig_Special5Agree_Func007Func015001001002))))and(udg_booleans03[(1+GetPlayerId(GetTriggerPlayer()))]==false)
endfunction
function Trig_Special5Agree_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger76)
call DisableTrigger(udg_trigger78)
if(Trig_Special5Agree_Func005C())then
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,10.,"You can enter this special arena only once.")
return
endif
if(Trig_Special5Agree_Func006C())then
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,10.,"Arena for this special event is not free at the moment.")
return
endif
if(Trig_Special5Agree_Func007C())then
call EnableTrigger(udg_trigger84)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect25,Condition(function Trig_Special5Agree_Func007Func002001002)),function Trig_Special5Agree_Func007Func002002)
call GroupClear(udg_group04)
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,10.,"|c0061FFFFSpecial Event")
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,10.,"Reward: Necklace of Spell Immunity.")
call PauseUnit(udg_units01[(1+GetPlayerId(GetTriggerPlayer()))],true)
call SetUnitPositionLocFacingBJ(udg_units01[(1+GetPlayerId(GetTriggerPlayer()))],GetRectCenter(udg_rect25),225.)
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetRectCenter(udg_rect25),0)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Special5Agree_Func007Func009Func001C())then
call CreateNUnitsAtLocFacingLocBJ(1,GetUnitTypeId(udg_units01[bj_forLoopAIndex]),Player(9),PolarProjectionBJ(GetRectCenter(udg_rect25),300.,(45.*I2R(bj_forLoopAIndex))),GetRectCenter(udg_rect25))
call SetHeroLevelBJ(bj_lastCreatedUnit,GetHeroLevel(udg_units01[bj_forLoopAIndex]),false)
call ModifyHeroStat(0,bj_lastCreatedUnit,2,(2*GetHeroStatBJ(0,udg_units01[bj_forLoopAIndex],true)))
call ModifyHeroStat(1,bj_lastCreatedUnit,2,(2*GetHeroStatBJ(1,udg_units01[bj_forLoopAIndex],true)))
call ModifyHeroStat(2,bj_lastCreatedUnit,2,(2*GetHeroStatBJ(2,udg_units01[bj_forLoopAIndex],true)))
else
call CreateNUnitsAtLocFacingLocBJ(1,udg_integers12[GetRandomInt(1,26)],Player(9),PolarProjectionBJ(GetRectCenter(udg_rect25),300.,(45.*I2R(bj_forLoopAIndex))),GetRectCenter(udg_rect25))
call SetHeroLevelBJ(bj_lastCreatedUnit,GetHeroLevel(udg_units01[(1+GetPlayerId(GetTriggerPlayer()))]),false)
call ModifyHeroStat(0,bj_lastCreatedUnit,2,(2*GetHeroStatBJ(0,udg_units01[(1+GetPlayerId(GetTriggerPlayer()))],true)))
call ModifyHeroStat(1,bj_lastCreatedUnit,2,(2*GetHeroStatBJ(1,udg_units01[(1+GetPlayerId(GetTriggerPlayer()))],true)))
call ModifyHeroStat(2,bj_lastCreatedUnit,2,(2*GetHeroStatBJ(2,udg_units01[(1+GetPlayerId(GetTriggerPlayer()))],true)))
endif
if(Trig_Special5Agree_Func007Func009Func002001())then
call UnitAddAbility(bj_lastCreatedUnit,'A01Y')
endif
call PauseUnit(bj_lastCreatedUnit,true)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call GroupAddGroup(GetUnitsInRectMatching(udg_rect25,Condition(function Trig_Special5Agree_Func007Func010001002)),udg_group04)
set udg_booleans03[(1+GetPlayerId(GetTriggerPlayer()))]=true
call TriggerSleepAction(6.)
call ForGroupBJ(GetUnitsInRectAll(udg_rect25),function Trig_Special5Agree_Func007Func013002)
endif
endfunction
function Trig_Special5Dead_Conditions takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO))and(IsUnitInGroup(GetTriggerUnit(),udg_group04))and(GetTriggerUnit()!=udg_units01[((1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))+8)])and(IsUnitPaused(GetTriggerUnit())==false)
endfunction
function Trig_Special5Dead_Func001Func007001001002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(9))
endfunction
function Trig_Special5Dead_Func001Func007001001002002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_Special5Dead_Func001Func007001001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Special5Dead_Func001Func007001001002001(),Trig_Special5Dead_Func001Func007001001002002())
endfunction
function Trig_Special5Dead_Func001C takes nothing returns boolean
return(IsUnitDeadBJ(GetTriggerUnit()))and(GetOwningPlayer(GetTriggerUnit())==Player(9))and(IsUnitGroupDeadBJ(GetUnitsInRectMatching(udg_rect25,Condition(function Trig_Special5Dead_Func001Func007001001002))))
endfunction
function Trig_Special5Dead_Func002Func003002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Special5Dead_Func002C takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())!=Player(9))
endfunction
function Trig_Special5Dead_Actions takes nothing returns nothing
if(Trig_Special5Dead_Func001C())then
call CreateItemLoc('nspi',GetUnitLoc(GetTriggerUnit()))
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,(GetPlayerName(GetOwningPlayer(GetKillingUnit()))+"|c0061FFFF!"))
call DisableTrigger(GetTriggeringTrigger())
endif
if(Trig_Special5Dead_Func002C())then
call ForGroupBJ(GetUnitsInRectOfPlayer(udg_rect25,Player(9)),function Trig_Special5Dead_Func002Func003002)
call DisableTrigger(GetTriggeringTrigger())
endif
endfunction
function Trig_Special6Agree_Conditions takes nothing returns boolean
return(GetClickedButton()==udg_button02)
endfunction
function Trig_Special6Agree_Func005C takes nothing returns boolean
return(IsUnitDeadBJ(udg_unit03))
endfunction
function Trig_Special6Agree_Func006Func003001001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_Special6Agree_Func006C takes nothing returns boolean
return(CountUnitsInGroup(GetUnitsInRectMatching(udg_rect27,Condition(function Trig_Special6Agree_Func006Func003001001002)))>=2)
endfunction
function Trig_Special6Agree_Func007001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_SUMMONED)!=null)
endfunction
function Trig_Special6Agree_Func007002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Special6Agree_Func016002 takes nothing returns nothing
call PauseUnit(GetEnumUnit(),false)
endfunction
function Trig_Special6Agree_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger76)
call DisableTrigger(udg_trigger78)
if(Trig_Special6Agree_Func005C())then
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,10.,"This special event is already completed.")
return
endif
if(Trig_Special6Agree_Func006C())then
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,10.,"Arena for this special event is not free at the moment.")
return
endif
call ForGroupBJ(GetUnitsInRectMatching(udg_rect27,Condition(function Trig_Special6Agree_Func007001002)),function Trig_Special6Agree_Func007002)
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,10.,"|c0061FFFFSpecial Event")
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,10.,"Reward: Shild of Invincibility.")
call PauseUnit(udg_unit03,true)
call SetUnitPositionLocFacingLocBJ(udg_unit03,OffsetLocation(GetRectCenter(udg_rect27),233.,233.),GetRectCenter(udg_rect27))
call PauseUnit(udg_units01[(1+GetPlayerId(GetTriggerPlayer()))],true)
call SetUnitPositionLocFacingLocBJ(udg_units01[(1+GetPlayerId(GetTriggerPlayer()))],OffsetLocation(GetRectCenter(udg_rect27),-233.,-233.),GetRectCenter(udg_rect27))
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetRectCenter(udg_rect27),0)
call TriggerSleepAction(6.)
call ForGroupBJ(GetUnitsInRectAll(udg_rect27),function Trig_Special6Agree_Func016002)
endfunction
function Trig_Special7Agree_Conditions takes nothing returns boolean
return(GetClickedButton()==udg_button02)
endfunction
function Trig_Special7Agree_Func004C takes nothing returns boolean
return(IsUnitDeadBJ(udg_unit55))
endfunction
function Trig_Special7Agree_Func005Func003001001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_Special7Agree_Func005C takes nothing returns boolean
return(CountUnitsInGroup(GetUnitsInRectMatching(udg_rect29,Condition(function Trig_Special7Agree_Func005Func003001001002)))>=2)
endfunction
function Trig_Special7Agree_Func006001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_SUMMONED)!=null)
endfunction
function Trig_Special7Agree_Func006002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Special7Agree_Func015002 takes nothing returns nothing
call PauseUnit(GetEnumUnit(),false)
endfunction
function Trig_Special7Agree_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger76)
call DisableTrigger(udg_trigger78)
if(Trig_Special7Agree_Func004C())then
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,10.,"This special event is already completed.")
return
endif
if(Trig_Special7Agree_Func005C())then
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,10.,"Arena for this special event is not free at the moment.")
return
endif
call ForGroupBJ(GetUnitsInRectMatching(udg_rect29,Condition(function Trig_Special7Agree_Func006001002)),function Trig_Special7Agree_Func006002)
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,10.,"|c0061FFFFSpecial Event")
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,10.,"Reward: Key of Three Moons.")
call PauseUnit(udg_unit55,true)
call SetUnitPositionLocFacingLocBJ(udg_unit55,OffsetLocation(GetRectCenter(udg_rect29),233.,233.),GetRectCenter(udg_rect29))
call PauseUnit(udg_units01[(1+GetPlayerId(GetTriggerPlayer()))],true)
call SetUnitPositionLocFacingLocBJ(udg_units01[(1+GetPlayerId(GetTriggerPlayer()))],OffsetLocation(GetRectCenter(udg_rect29),-233.,-233.),GetRectCenter(udg_rect29))
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetRectCenter(udg_rect29),0)
call TriggerSleepAction(6.)
call ForGroupBJ(GetUnitsInRectAll(udg_rect29),function Trig_Special7Agree_Func015002)
endfunction
function Trig_Special8Start_Func010001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger118))
endfunction
function Trig_Special8Start_Func011001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger119))
endfunction
function Trig_Special8Start_Func012001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger120))
endfunction
function Trig_Special8Start_Func013001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger44))
endfunction
function Trig_Special8Start_Func034001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger34))
endfunction
function Trig_Special8Start_Func035002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),GetRectCenter(udg_rect31),0)
endfunction
function Trig_Special8Start_Func056002 takes nothing returns nothing
call PauseUnit(GetEnumUnit(),false)
endfunction
function Trig_Special8Start_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger39)
call DisableTrigger(udg_trigger40)
call DisableTrigger(udg_trigger122)
call DisableTrigger(udg_trigger53)
call DisableTrigger(udg_trigger71)
call TriggerExecute(udg_trigger80)
call PauseTimerBJ(true,udg_timer05)
call PauseTimerBJ(true,udg_timer06)
if(Trig_Special8Start_Func010001())then
call PauseTimerBJ(true,udg_timer01)
endif
if(Trig_Special8Start_Func011001())then
call PauseTimerBJ(true,udg_timer01)
endif
if(Trig_Special8Start_Func012001())then
call PauseTimerBJ(true,udg_timer01)
endif
if(Trig_Special8Start_Func013001())then
call PauseTimerBJ(true,udg_timer04)
endif
call DestroyTimerDialog(udg_timerdialog01)
call DestroyTimerDialog(udg_timerdialog02)
call DestroyTimerDialog(udg_timerdialog03)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"|c0061FFFFSpecial Event")
call TriggerSleepAction(3.)
call CreateNUnitsAtLoc(1,'Hmbr',Player(9),GetRectCenter(udg_rect31),225.)
call SetHeroLevelBJ(bj_lastCreatedUnit,30,false)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=2
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SelectHeroSkill(bj_lastCreatedUnit,'AHtb')
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SelectHeroSkill(bj_lastCreatedUnit,'AHtc')
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SelectHeroSkill(bj_lastCreatedUnit,'AHbh')
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=2
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SelectHeroSkill(bj_lastCreatedUnit,'AHav')
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ModifyHeroStat(0,bj_lastCreatedUnit,2,2000)
call ModifyHeroStat(1,bj_lastCreatedUnit,2,2000)
call ModifyHeroStat(2,bj_lastCreatedUnit,2,2000)
call UnitAddAbility(bj_lastCreatedUnit,'A02P')
call PauseUnit(bj_lastCreatedUnit,true)
call TriggerSleepAction(3.)
call TriggerExecute(udg_trigger88)
set udg_integer05=13
call TriggerExecute(udg_trigger127)
if(Trig_Special8Start_Func034001())then
set bj_forLoopAIndex=9
set bj_forLoopAIndexEnd=16
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call GroupAddUnit(udg_group01,udg_units01[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endif
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Special8Start_Func035002)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"|c00FFFFFFCount 2 minutes")
call TriggerSleepAction(3.)
call PlaySoundAtPointBJ(udg_sound13,'d',GetRectCenter(udg_rect31),0)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,30.,"TRIGSTR_1377")
call StartTimerBJ(udg_timer03,false,120.)
call CreateTimerDialogBJ(udg_timer03,"Countdown:")
call TimerDialogDisplay(bj_lastCreatedTimerDialog,true)
set udg_timerdialog02=bj_lastCreatedTimerDialog
call TriggerSleepAction(5.)
call EnableTrigger(udg_trigger90)
call EnableTrigger(udg_trigger91)
call EnableTrigger(udg_trigger92)
call EnableTrigger(udg_trigger93)
call EnableTrigger(udg_trigger169)
call EnableTrigger(udg_trigger171)
call EnableTrigger(udg_trigger168)
call EnableTrigger(udg_trigger170)
call TriggerExecute(udg_trigger89)
call TriggerSleepAction(1.)
call PlaySoundAtPointBJ(udg_sound12,'d',GetRectCenter(udg_rect31),0)
call ForGroupBJ(GetUnitsInRectAll(udg_rect31),function Trig_Special8Start_Func056002)
endfunction
function Trig_Special8Move_Actions takes nothing returns nothing
call GroupClear(udg_group01)
set udg_location01=GetRectCenter(udg_rect31)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations01[bj_forLoopAIndex]=GetUnitLoc(udg_units01[bj_forLoopAIndex])
set udg_reals01[bj_forLoopAIndex]=GetUnitFacing(udg_units01[bj_forLoopAIndex])
call SetUnitPositionLocFacingLocBJ(udg_units01[bj_forLoopAIndex],PolarProjectionBJ(udg_location01,400.,(I2R(bj_forLoopAIndex)*45.)),udg_location01)
call SetUnitLifePercentBJ(udg_units01[bj_forLoopAIndex],'d')
call SetUnitManaPercentBJ(udg_units01[bj_forLoopAIndex],'d')
call UnitRemoveBuffsBJ(2,udg_units01[bj_forLoopAIndex])
call UnitResetCooldown(udg_units01[bj_forLoopAIndex])
call GroupAddUnit(udg_group01,udg_units01[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_location01)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_Special8Attack_Actions takes nothing returns nothing
call TriggerSleepAction(10.)
call GroupPointOrderByIdLoc(GetUnitsOfPlayerAndTypeId(Player(9),'Hmbr'),851983,OffsetLocation(GetRectCenter(udg_rect31),-300.,-300.))
call TriggerSleepAction(10.)
call GroupPointOrderByIdLoc(GetUnitsOfPlayerAndTypeId(Player(9),'Hmbr'),851983,OffsetLocation(GetRectCenter(udg_rect31),300.,-300.))
call TriggerSleepAction(10.)
call GroupPointOrderByIdLoc(GetUnitsOfPlayerAndTypeId(Player(9),'Hmbr'),851983,OffsetLocation(GetRectCenter(udg_rect31),300.,300.))
call TriggerSleepAction(10.)
call GroupPointOrderByIdLoc(GetUnitsOfPlayerAndTypeId(Player(9),'Hmbr'),851983,OffsetLocation(GetRectCenter(udg_rect31),-300.,300.))
call TriggerSleepAction(10.)
call GroupPointOrderByIdLoc(GetUnitsOfPlayerAndTypeId(Player(9),'Hmbr'),851983,OffsetLocation(GetRectCenter(udg_rect31),.0,.0))
call TriggerSleepAction(5.)
call GroupImmediateOrderById(GetUnitsOfPlayerAndTypeId(Player(9),'Hmbr'),852086)
call TriggerSleepAction(5.)
call GroupPointOrderByIdLoc(GetUnitsOfPlayerAndTypeId(Player(9),'Hmbr'),851983,GetRandomLocInRect(udg_rect31))
call TriggerExecute(GetTriggeringTrigger())
endfunction
function Trig_Special8Stop_Func013001 takes nothing returns boolean
return(IsUnitGroupEmptyBJ(udg_group01))
endfunction
function Trig_Special8Stop_Func014Func001A takes nothing returns nothing
call AdjustPlayerStateBJ(50000,GetOwningPlayer(GetEnumUnit()),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToPlayer(GetOwningPlayer(GetEnumUnit()),0,0,10.,"You get |c0061FFFF50000|c00FFFFFF gold.")
endfunction
function Trig_Special8Stop_Func014C takes nothing returns boolean
return(IsUnitGroupEmptyBJ(udg_group01)==false)
endfunction
function Trig_Special8Stop_Func021002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Special8Stop_Func027001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger47))
endfunction
function Trig_Special8Stop_Func028001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger50))
endfunction
function Trig_Special8Stop_Func029Func001001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger118))
endfunction
function Trig_Special8Stop_Func029Func002001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger119))
endfunction
function Trig_Special8Stop_Func029Func003001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger120))
endfunction
function Trig_Special8Stop_Func029Func004001001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger118))
endfunction
function Trig_Special8Stop_Func029Func004001002 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger119))
endfunction
function Trig_Special8Stop_Func029Func004001 takes nothing returns boolean
return GetBooleanOr(Trig_Special8Stop_Func029Func004001001(),Trig_Special8Stop_Func029Func004001002())
endfunction
function Trig_Special8Stop_Func029Func004002 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger120))
endfunction
function Trig_Special8Stop_Func029C takes nothing returns boolean
return(GetBooleanOr(Trig_Special8Stop_Func029Func004001(),Trig_Special8Stop_Func029Func004002()))
endfunction
function Trig_Special8Stop_Func030C takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger44))
endfunction
function Trig_Special8Stop_Func031001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger41))
endfunction
function Trig_Special8Stop_Func032001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger41))
endfunction
function Trig_Special8Stop_Func033Func004001 takes nothing returns boolean
return(IsUnitDeadBJ(udg_unit47)!=true)
endfunction
function Trig_Special8Stop_Func033Func004002 takes nothing returns boolean
return(IsUnitDeadBJ(udg_unit48)!=true)
endfunction
function Trig_Special8Stop_Func033C takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger41)!=true)and(GetBooleanOr(Trig_Special8Stop_Func033Func004001(),Trig_Special8Stop_Func033Func004002()))
endfunction
function Trig_Special8Stop_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call PauseAllUnitsBJ(true)
call DisableTrigger(udg_trigger91)
call DisableTrigger(udg_trigger92)
call DisableTrigger(udg_trigger93)
call DisableTrigger(udg_trigger89)
call DisableTrigger(udg_trigger168)
call DisableTrigger(udg_trigger169)
call DisableTrigger(udg_trigger170)
call DisableTrigger(udg_trigger171)
call DestroyTimerDialog(udg_timerdialog02)
set bj_forLoopAIndex=9
set bj_forLoopAIndexEnd=16
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call GroupRemoveUnit(udg_group01,udg_units01[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_Special8Stop_Func013001())then
else
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"|c0061FFFFTime Out")
endif
if(Trig_Special8Stop_Func014C())then
call ForGroupBJ(udg_group01,function Trig_Special8Stop_Func014Func001A)
endif
call TriggerSleepAction(2)
set udg_integer05=2
call TriggerExecute(udg_trigger127)
call PlaySoundAtPointBJ(udg_sound15,'d',GetRectCenter(udg_rect31),0)
call TriggerSleepAction(5.)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitPositionLocFacingBJ(udg_units01[bj_forLoopAIndex],udg_locations01[bj_forLoopAIndex],udg_reals01[bj_forLoopAIndex])
call SetUnitLifePercentBJ(udg_units01[bj_forLoopAIndex],'d')
call SetUnitManaPercentBJ(udg_units01[bj_forLoopAIndex],'d')
call UnitRemoveBuffsBJ(2,udg_units01[bj_forLoopAIndex])
call UnitResetCooldown(udg_units01[bj_forLoopAIndex])
call PanCameraToTimedLocForPlayer(Player(-1+(bj_forLoopAIndex)),udg_locations01[bj_forLoopAIndex],0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsInRectOfPlayer(udg_rect31,Player(9)),function Trig_Special8Stop_Func021002)
call TriggerSleepAction(3.)
call StartTimerBJ(udg_timer02,false,750.)
call CreateTimerDialogBJ(udg_timer02,"Special Event:")
call TimerDialogDisplay(bj_lastCreatedTimerDialog,true)
set udg_timerdialog02=bj_lastCreatedTimerDialog
if(Trig_Special8Stop_Func027001())then
call PauseTimerBJ(false,udg_timer05)
endif
if(Trig_Special8Stop_Func028001())then
call PauseTimerBJ(false,udg_timer06)
endif
if(Trig_Special8Stop_Func029C())then
if(Trig_Special8Stop_Func029Func001001())then
call CreateTimerDialogBJ(udg_timer01,"Level 2 Time:")
endif
if(Trig_Special8Stop_Func029Func002001())then
call CreateTimerDialogBJ(udg_timer01,"Level 3 Time:")
endif
if(Trig_Special8Stop_Func029Func003001())then
call CreateTimerDialogBJ(udg_timer01,"Level 4 Time:")
endif
call TimerDialogDisplay(bj_lastCreatedTimerDialog,true)
set udg_timerdialog01=bj_lastCreatedTimerDialog
call PauseTimerBJ(false,udg_timer01)
endif
if(Trig_Special8Stop_Func030C())then
call CreateTimerDialogBJ(udg_timer04,"Next Wave:")
call TimerDialogDisplay(bj_lastCreatedTimerDialog,true)
set udg_timerdialog03=bj_lastCreatedTimerDialog
call PauseTimerBJ(false,udg_timer04)
endif
if(Trig_Special8Stop_Func031001())then
call EnableTrigger(udg_trigger39)
endif
if(Trig_Special8Stop_Func032001())then
call EnableTrigger(udg_trigger40)
endif
if(Trig_Special8Stop_Func033C())then
call EnableTrigger(udg_trigger53)
endif
call EnableTrigger(udg_trigger71)
call EnableTrigger(udg_trigger122)
call TriggerSleepAction(2)
call DisableTrigger(udg_trigger91)
call EnableTrigger(udg_trigger59)
call PauseAllUnitsBJ(false)
call DestroyTrigger(udg_trigger87)
call DestroyTrigger(udg_trigger89)
call DestroyTrigger(udg_trigger91)
call DestroyTrigger(udg_trigger92)
call DestroyTrigger(udg_trigger93)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_Special8Dead_Conditions takes nothing returns boolean
return(GetTriggerUnit()==udg_units01[(1+GetPlayerId(GetTriggerPlayer()))])and(IsUnitInGroup(GetTriggerUnit(),udg_group01))and(GetPlayerSlotState(GetTriggerPlayer())!=PLAYER_SLOT_STATE_LEFT)
endfunction
function Trig_Special8Dead_Func006C takes nothing returns boolean
return(IsUnitGroupEmptyBJ(udg_group01))
endfunction
function Trig_Special8Dead_Actions takes nothing returns nothing
call GroupRemoveGroup(GetUnitsOfPlayerAll(GetTriggerPlayer()),udg_group01)
call ReviveHeroLoc(GetTriggerUnit(),GetRectCenter(udg_rect33),true)
call PauseUnit(udg_units01[(1+GetPlayerId(GetTriggerPlayer()))],true)
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetRectCenter(udg_rect33),0)
call UnitAddItemByIdSwapped('ankh',GetTriggerUnit())
if(Trig_Special8Dead_Func006C())then
call TriggerExecute(udg_trigger90)
else
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,10.,"You hero is revived and paused. Wait for time out of special event.")
endif
endfunction
function Trig_Special8Teleport_Conditions takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO))and(IsUnitInGroup(GetTriggerUnit(),udg_group01))and(GetItemTypeId(GetManipulatedItem())=='stwp')
endfunction
function Trig_Special8Teleport_Func002001 takes nothing returns boolean
return(IsUnitGroupEmptyBJ(udg_group01))
endfunction
function Trig_Special8Teleport_Actions takes nothing returns nothing
call GroupRemoveGroup(GetUnitsOfPlayerAll(GetOwningPlayer(GetTriggerUnit())),udg_group01)
if(Trig_Special8Teleport_Func002001())then
call TriggerExecute(udg_trigger90)
endif
endfunction
function Trig_Special8Leave_Func009001 takes nothing returns boolean
return(GetSpellAbilityId()=='A00D')
endfunction
function Trig_Special8Leave_Func009002001 takes nothing returns boolean
return(GetSpellAbilityId()=='A032')
endfunction
function Trig_Special8Leave_Func009002002 takes nothing returns boolean
return(GetSpellAbilityId()=='AIbk')
endfunction
function Trig_Special8Leave_Func009002 takes nothing returns boolean
return GetBooleanOr(Trig_Special8Leave_Func009002001(),Trig_Special8Leave_Func009002002())
endfunction
function Trig_Special8Leave_Conditions takes nothing returns boolean
return(RectContainsLoc(udg_rect31,GetUnitLoc(GetTriggerUnit())))and(RectContainsLoc(udg_rect31,GetSpellTargetLoc())==false)and(GetBooleanOr(Trig_Special8Leave_Func009001(),Trig_Special8Leave_Func009002()))
endfunction
function Trig_Special8Leave_Func001001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger36))
endfunction
function Trig_Special8Leave_Func007001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger36))
endfunction
function Trig_Special8Leave_Actions takes nothing returns nothing
if(Trig_Special8Leave_Func001001())then
call DisableTrigger(udg_trigger34)
endif
call TriggerSleepAction(1.)
call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(udg_rect31))
call AddSpecialEffectTargetUnitBJ("origin",GetTriggerUnit(),"Abilities\\Spells\\Orc\\FeralSpirit\\feralspiritdone.mdl")
if(Trig_Special8Leave_Func007001())then
call EnableTrigger(udg_trigger34)
endif
call DestroyEffect(bj_lastCreatedEffect)
endfunction
function Trig_Boss1Teleport_Conditions takes nothing returns boolean
return(IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO))and(GetOwningPlayer(GetTriggerUnit())!=Player(9))and(GetOwningPlayer(GetTriggerUnit())!=Player(10))and(GetOwningPlayer(GetTriggerUnit())!=Player(11))
endfunction
function Trig_Boss1Teleport_Func006002 takes nothing returns nothing
call RemoveItem(GetEnumItem())
endfunction
function Trig_Boss1Teleport_Func027001 takes nothing returns boolean
return(udg_boolean04)
endfunction
function Trig_Boss1Teleport_Func031002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Boss1Teleport_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call PauseAllUnitsBJ(true)
call EndThematicMusicBJ()
call StopMusic(false)
call QuestSetCompleted(udg_quests01[1],true)
call EnumItemsInRectBJ(udg_rect02,function Trig_Boss1Teleport_Func006002)
call SetUnitPositionLocFacingBJ(udg_unit41,GetRectCenter(udg_rect02),225.)
call ModifyHeroStat(0,udg_unit41,2,(3000+(udg_integer07*(udg_integer06*250))))
call ModifyHeroStat(1,udg_unit41,2,(3000+(udg_integer07*(udg_integer06*250))))
call ModifyHeroStat(2,udg_unit41,2,(3000+(udg_integer07*(udg_integer06*250))))
set udg_location01=GetRectCenter(udg_rect02)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitPositionLocFacingLocBJ(udg_units01[bj_forLoopAIndex],PolarProjectionBJ(udg_location01,500.,(180.+(45.*I2R(bj_forLoopAIndex)))),udg_location01)
call CreateFogModifierRadiusLocBJ(true,Player(-1+(bj_forLoopAIndex)),FOG_OF_WAR_VISIBLE,udg_location01,1000.)
set udg_fogmodifiers01[bj_forLoopAIndex]=bj_lastCreatedFogModifier
call PanCameraToTimedLocForPlayer(Player(-1+(bj_forLoopAIndex)),udg_location01,0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call PlaySoundAtPointBJ(udg_sound02,'d',GetRectCenter(udg_rect02),0)
call RemoveLocation(udg_location01)
call TriggerSleepAction(3.)
call PlaySoundAtPointBJ(udg_sound10,'d',GetRectCenter(udg_rect02),0)
call AddWeatherEffectSaveLast(udg_rect02,'RAhr')
call EnableWeatherEffect(bj_lastCreatedWeatherEffect,true)
call TriggerSleepAction(4.)
set udg_integer05=5
call TriggerExecute(udg_trigger127)
call EnableTrigger(udg_trigger95)
call DisableTrigger(udg_trigger71)
call TriggerSleepAction(7.)
call PauseAllUnitsBJ(false)
call TriggerSleepAction(1.)
if(Trig_Boss1Teleport_Func027001())then
call EnableTrigger(udg_trigger121)
endif
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call DestroyFogModifier(udg_fogmodifiers01[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnableTrigger(udg_trigger131)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAll(Player(11)),function Trig_Boss1Teleport_Func031002)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_Boss1Dead_Func004001 takes nothing returns boolean
return(IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(udg_rect02,Player(9))))
endfunction
function Trig_Boss1Dead_Func012C takes nothing returns boolean
return(udg_integer07>=2)
endfunction
function Trig_Boss1Dead_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_integer04=(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,((GetPlayerName(GetOwningPlayer(GetKillingUnit()))+" killed ")+GetHeroProperName(GetTriggerUnit())))
loop
exitwhen(Trig_Boss1Dead_Func004001())
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL,3.))
endloop
call EndThematicMusicBJ()
call StopMusic(false)
call RemoveWeatherEffect(bj_lastCreatedWeatherEffect)
set udg_integers10[udg_integer04]=(udg_integers10[udg_integer04]+750)
call ModifyGateBJ(1,udg_destructable10)
call QuestSetCompleted(udg_quests01[2],true)
call EnableTrigger(udg_trigger54)
if(Trig_Boss1Dead_Func012C())then
call DisableTrigger(udg_trigger49)
call DestroyTrigger(udg_trigger49)
endif
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_Boss2Dead_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_integer04=(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))
set udg_integers10[udg_integer04]=(udg_integers10[udg_integer04]+500)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,((GetPlayerName(GetOwningPlayer(GetKillingUnit()))+" killed ")+GetHeroProperName(GetTriggerUnit())))
call ModifyHeroStat(0,udg_unit43,2,(2500+(udg_integer07*(udg_integer06*200))))
call ModifyHeroStat(1,udg_unit43,2,(2500+(udg_integer07*(udg_integer06*200))))
call ModifyHeroStat(2,udg_unit43,2,(2500+(udg_integer07*(udg_integer06*200))))
call ModifyGateBJ(1,udg_destructable17)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_Boss3Dead_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_integer04=(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))
set udg_integers10[udg_integer04]=(udg_integers10[udg_integer04]+500)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,((GetPlayerName(GetOwningPlayer(GetKillingUnit()))+" killed ")+GetHeroProperName(GetTriggerUnit())))
call ModifyHeroStat(0,udg_unit46,2,(2500+(udg_integer07*(udg_integer06*200))))
call ModifyHeroStat(1,udg_unit46,2,(2500+(udg_integer07*(udg_integer06*200))))
call ModifyHeroStat(2,udg_unit46,2,(2500+(udg_integer07*(udg_integer06*200))))
call ModifyGateBJ(1,udg_destructable09)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_Boss4Dead_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_integer04=(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))
set udg_integers10[udg_integer04]=(udg_integers10[udg_integer04]+500)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,((GetPlayerName(GetOwningPlayer(GetKillingUnit()))+" killed ")+GetHeroProperName(GetTriggerUnit())))
call ModifyHeroStat(0,udg_unit45,2,(2500+(udg_integer07*(udg_integer06*200))))
call ModifyHeroStat(1,udg_unit45,2,(2500+(udg_integer07*(udg_integer06*200))))
call ModifyHeroStat(2,udg_unit45,2,(2500+(udg_integer07*(udg_integer06*200))))
call ModifyGateBJ(1,udg_destructable16)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_Boss5Dead_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_integer04=(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))
set udg_integers10[udg_integer04]=(udg_integers10[udg_integer04]+500)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,((GetPlayerName(GetOwningPlayer(GetKillingUnit()))+" killed ")+GetHeroProperName(GetTriggerUnit())))
call ModifyGateBJ(1,udg_destructable12)
call EnableTrigger(udg_trigger56)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_Boss6Music_Conditions takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())!=Player(9))and(GetOwningPlayer(GetTriggerUnit())!=Player(10))and(GetOwningPlayer(GetTriggerUnit())!=Player(11))and(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO))
endfunction
function Trig_Boss6Music_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call ModifyHeroStat(0,udg_unit51,2,(3000+(udg_integer07*(udg_integer06*250))))
call ModifyHeroStat(1,udg_unit51,2,(3000+(udg_integer07*(udg_integer06*250))))
call ModifyHeroStat(2,udg_unit51,2,(3000+(udg_integer07*(udg_integer06*250))))
set udg_integer05=8
call TriggerExecute(udg_trigger127)
call AddWeatherEffectSaveLast(udg_rect12,'SNls')
call EnableWeatherEffect(bj_lastCreatedWeatherEffect,true)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_Boss6Teleport_Func012001001002 takes nothing returns boolean
return(IsPlayerEnemy(GetOwningPlayer(GetFilterUnit()),GetOwningPlayer(udg_unit51)))
endfunction
function Trig_Boss6Teleport_Conditions takes nothing returns boolean
return(IsUnitDeadBJ(udg_unit51)==false)and(IsUnitGroupEmptyBJ(GetUnitsInRectMatching(udg_rect12,Condition(function Trig_Boss6Teleport_Func012001001002)))==false)and(IsUnitPaused(udg_unit51)==false)
endfunction
function Trig_Boss6Teleport_Func003002001002 takes nothing returns boolean
return(IsPlayerEnemy(GetOwningPlayer(GetFilterUnit()),GetOwningPlayer(udg_unit51)))
endfunction
function Trig_Boss6Teleport_Actions takes nothing returns nothing
call SetUnitAnimation(udg_unit51,"spell")
call AddSpecialEffectTargetUnitBJ("origin",udg_unit51,"Abilities\\Spells\\Human\\Resurrect\\ResurrectTarget.mdl")
set udg_unit01=GroupPickRandomUnit(GetUnitsInRectMatching(udg_rect12,Condition(function Trig_Boss6Teleport_Func003002001002)))
call TriggerSleepAction(.2)
call DestroyEffect(bj_lastCreatedEffect)
call TriggerSleepAction(.8)
call SetUnitPositionLocFacingLocBJ(udg_unit51,GetUnitLoc(udg_unit01),GetUnitLoc(udg_unit01))
call AddSpecialEffectTargetUnitBJ("origin",udg_unit51,"Abilities\\Spells\\Human\\Resurrect\\ResurrectTarget.mdl")
call TriggerSleepAction(.2)
call DestroyEffect(bj_lastCreatedEffect)
endfunction
function Trig_Boss6Dead_Func012003002 takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),udg_location01)
endfunction
function Trig_Boss6Dead_Func029002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),GetUnitLoc(udg_unit01),1.)
endfunction
function Trig_Boss6Dead_Func031002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),GetUnitLoc(udg_units01[udg_integer04]),1.)
endfunction
function Trig_Boss6Dead_Func033002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),udg_location01,1.)
endfunction
function Trig_Boss6Dead_Func038002 takes nothing returns nothing
call CameraSetupApplyForPlayer(true,udg_camerasetup01,GetEnumPlayer(),12.)
endfunction
function Trig_Boss6Dead_Func039002 takes nothing returns nothing
call RotateCameraAroundLocBJ(360.,udg_location01,GetEnumPlayer(),12.)
endfunction
function Trig_Boss6Dead_Func041002 takes nothing returns nothing
call CameraSetEQNoiseForPlayer(GetEnumPlayer(),3)
endfunction
function Trig_Boss6Dead_Func042002 takes nothing returns nothing
call RotateCameraAroundLocBJ(360.,udg_location01,GetEnumPlayer(),12.)
endfunction
function Trig_Boss6Dead_Func044002 takes nothing returns nothing
call CameraClearNoiseForPlayer(GetEnumPlayer())
endfunction
function Trig_Boss6Dead_Func046002 takes nothing returns nothing
call CameraSetEQNoiseForPlayer(GetEnumPlayer(),3)
endfunction
function Trig_Boss6Dead_Func051002 takes nothing returns nothing
call CameraClearNoiseForPlayer(GetEnumPlayer())
endfunction
function Trig_Boss6Dead_Func059002 takes nothing returns nothing
call RotateCameraAroundLocBJ(360.,udg_location01,GetEnumPlayer(),12.)
endfunction
function Trig_Boss6Dead_Func061002 takes nothing returns nothing
call ResetToGameCameraForPlayer(GetEnumPlayer(),5.)
endfunction
function Trig_Boss6Dead_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger101)
call PauseAllUnitsBJ(true)
call StopMusic(false)
call SetUserControlForceOff(bj_FORCE_ALL_PLAYERS)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"Who killed him?")
call TriggerSleepAction(5.)
set udg_integer04=(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))
set udg_integers10[udg_integer04]=(udg_integers10[udg_integer04]+750)
set udg_location01=GetRectCenter(udg_rect38)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call ForGroupBJ(GetUnitsOfPlayerAll(Player(-1+(bj_forLoopAIndex))),function Trig_Boss6Dead_Func012003002)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(1.)
set udg_location01=GetRectCenter(udg_rect12)
call CreateNUnitsAtLocFacingLocBJ(1,'H00B',Player(9),OffsetLocation(udg_location01,800.,800.),udg_location01)
set udg_unit01=bj_lastCreatedUnit
call TriggerSleepAction(1.)
set udg_location01=GetRectCenter(udg_rect12)
call IssueImmediateOrderById(udg_units01[udg_integer04],851972)
call SetUnitPositionLocFacingLocBJ(udg_units01[udg_integer04],OffsetLocation(udg_location01,-800.,-800.),udg_location01)
call SetUnitLifePercentBJ(udg_units01[udg_integer04],'d')
call SetUnitManaPercentBJ(udg_units01[udg_integer04],'d')
call PauseUnit(udg_units01[udg_integer04],false)
call SetCineModeVolumeGroupsBJ()
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateFogModifierRadiusLocBJ(true,Player(-1+(bj_forLoopAIndex)),FOG_OF_WAR_VISIBLE,udg_location01,1750.)
set udg_fogmodifiers01[bj_forLoopAIndex]=bj_lastCreatedFogModifier
call PanCameraToTimedLocForPlayer(Player(-1+(bj_forLoopAIndex)),udg_location01,0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(1.)
call PlaySoundBJ(udg_sound19)
call TriggerSleepAction(3.)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Boss6Dead_Func029002)
call TriggerSleepAction(3.)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Boss6Dead_Func031002)
call TriggerSleepAction(3.)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Boss6Dead_Func033002)
call TriggerSleepAction(2)
call IssuePointOrderByIdLoc(udg_unit01,851986,OffsetLocation(udg_location01,50.,50.))
call IssuePointOrderByIdLoc(udg_units01[udg_integer04],851986,OffsetLocation(udg_location01,-50.,-50.))
call TriggerSleepAction(2)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Boss6Dead_Func038002)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Boss6Dead_Func039002)
call TriggerSleepAction(12.)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Boss6Dead_Func041002)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Boss6Dead_Func042002)
call TriggerSleepAction(6.)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Boss6Dead_Func044002)
call TriggerSleepAction(3.)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Boss6Dead_Func046002)
call TriggerSleepAction(1.)
call KillUnit(udg_unit01)
call SetSoundOffsetBJ(36.5,bj_lastPlayedSound)
call TriggerSleepAction(2.)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Boss6Dead_Func051002)
call SetUnitPositionLocFacingBJ(udg_units01[udg_integer04],udg_location01,270.)
call SetUnitAnimation(udg_units01[udg_integer04],"ready")
call SetUnitLifePercentBJ(udg_units01[udg_integer04],'d')
call SetUnitManaPercentBJ(udg_units01[udg_integer04],'d')
call PauseUnit(udg_units01[udg_integer04],true)
call TriggerSleepAction(5.)
call SetUnitAnimation(udg_units01[udg_integer04],"stand")
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Boss6Dead_Func059002)
call TriggerSleepAction(19.)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Boss6Dead_Func061002)
call TriggerSleepAction(5.)
call StopMusic(false)
call VolumeGroupResetBJ()
call SetUserControlForceOn(bj_FORCE_ALL_PLAYERS)
call RemoveLocation(udg_location01)
set udg_unit01=null
call PauseAllUnitsBJ(false)
call TriggerSleepAction(2)
call TriggerExecute(udg_trigger103)
call DestroyTrigger(udg_trigger101)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_Boss7Come_Func006002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),GetRectCenter(udg_rect12),1.)
endfunction
function Trig_Boss7Come_Func030001 takes nothing returns boolean
return(udg_integer07>=4)
endfunction
function Trig_Boss7Come_Func039C takes nothing returns boolean
return(udg_boolean04)
endfunction
function Trig_Boss7Come_Func051001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='nlrv')
endfunction
function Trig_Boss7Come_Func051A takes nothing returns nothing
call IssueTargetOrderById(GetEnumUnit(),852106,GroupPickRandomUnit(GetUnitsInRangeOfLocAll(750.,GetUnitLoc(GetEnumUnit()))))
endfunction
function Trig_Boss7Come_Actions takes nothing returns nothing
call PauseAllUnitsBJ(true)
set udg_integer05=11
call TriggerExecute(udg_trigger127)
call TriggerSleepAction(10.)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitPositionLocFacingLocBJ(udg_units01[bj_forLoopAIndex],PolarProjectionBJ(GetRectCenter(udg_rect12),450.,(180.+(45.*I2R(bj_forLoopAIndex)))),GetRectCenter(udg_rect12))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Boss7Come_Func006002)
call TriggerSleepAction(5.)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect12),"Abilities\\Spells\\Orc\\EarthQuake\\EarthQuakeTarget.mdl")
set udg_effect01=bj_lastCreatedEffect
call PlaySoundAtPointBJ(udg_sound05,'d',GetRectCenter(udg_rect12),0)
call TriggerWaitForSound(bj_lastPlayedSound,1.)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=36
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call TriggerSleepAction(.1)
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetRectCenter(udg_rect12),200.,(10.*I2R(bj_forLoopAIndex))),"Abilities\\Weapons\\PoisonSting\\PoisonStingTarget.mdl")
set udg_effects01[bj_forLoopAIndex]=bj_lastCreatedEffect
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetRectCenter(udg_rect12),200.,(10.*I2R(bj_forLoopAIndex))),"Objects\\Spawnmodels\\NightElf\\EntBirthTarget\\EntBirthTarget.mdl")
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect12),"Objects\\Spawnmodels\\Undead\\UndeadDissipate\\UndeadDissipate.mdl")
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect12),"Units\\NightElf\\Wisp\\WispExplode.mdl")
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(4.)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call TriggerSleepAction(.5)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect12),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect12),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(2)
call RemoveWeatherEffect(bj_lastCreatedWeatherEffect)
call AddWeatherEffectSaveLast(udg_rect12,'FDgh')
call EnableWeatherEffect(bj_lastCreatedWeatherEffect,true)
call DestroyEffect(bj_lastCreatedEffect)
call CreateNUnitsAtLoc(1,'N001',Player(9),GetRectCenter(udg_rect12),225.)
call PlaySoundOnUnitBJ(udg_sound07,'d',bj_lastCreatedUnit)
call SetHeroLevelBJ(bj_lastCreatedUnit,30,false)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SelectHeroSkill(bj_lastCreatedUnit,'AOcr')
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SelectHeroSkill(bj_lastCreatedUnit,'AEev')
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SelectHeroSkill(bj_lastCreatedUnit,'ANst')
call SelectHeroSkill(bj_lastCreatedUnit,'A01D')
call ModifyHeroStat(0,bj_lastCreatedUnit,2,(4500+(udg_integer07*(udg_integer06*250))))
call ModifyHeroStat(1,bj_lastCreatedUnit,2,(4500+(udg_integer07*(udg_integer06*250))))
call ModifyHeroStat(2,bj_lastCreatedUnit,2,(4500+(udg_integer07*(udg_integer06*250))))
if(Trig_Boss7Come_Func030001())then
call UnitAddItemByIdSwapped('nspi',bj_lastCreatedUnit)
endif
call PauseUnit(bj_lastCreatedUnit,true)
call TriggerWaitForSound(bj_lastPlayedSound,1.)
call SetUnitAnimation(bj_lastCreatedUnit,"spell")
call PlaySoundOnUnitBJ(udg_sound06,'d',bj_lastCreatedUnit)
call TriggerWaitForSound(bj_lastPlayedSound,1.)
call StopMusic(false)
call SetUnitAnimation(bj_lastCreatedUnit,"stand")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLocFacingLocBJ(1,'nlrv',Player(11),PolarProjectionBJ(GetRectCenter(udg_rect12),800.,(180.+(45.*I2R(bj_forLoopAIndex)))),GetRectCenter(udg_rect12))
call PauseUnit(bj_lastCreatedUnit,true)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_Boss7Come_Func039C())then
else
call CreateNUnitsAtLoc(1,'n00N',Player(9),GetRectCenter(udg_rect12),bj_UNIT_FACING)
endif
call SetUnitInvulnerable(udg_unit50,false)
call SetUnitInvulnerable(udg_unit05,false)
call SetUnitInvulnerable(udg_unit04,false)
call SetUnitInvulnerable(udg_unit06,false)
call TriggerSleepAction(1.)
call PlaySoundBJ(udg_sound08)
call TriggerSleepAction(7.)
set udg_integer05=9
call TriggerExecute(udg_trigger127)
call PauseAllUnitsBJ(false)
call TriggerSleepAction(.01)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect12,Condition(function Trig_Boss7Come_Func051001002)),function Trig_Boss7Come_Func051A)
call EnableTrigger(udg_trigger106)
call EnableTrigger(udg_trigger105)
call EnableTrigger(udg_trigger104)
call TriggerSleepAction(2)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call DestroyFogModifier(udg_fogmodifiers01[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DestroyEffect(udg_effect01)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=36
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call DestroyEffect(udg_effects01[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(2)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_Boss7Colour_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='N001')
endfunction
function Trig_Boss7Colour_Func002C takes nothing returns boolean
return(R2I(GetUnitLifePercent(GetTriggerUnit()))<=60)
endfunction
function Trig_Boss7Colour_Func003C takes nothing returns boolean
return(R2I(GetUnitLifePercent(GetTriggerUnit()))<=25)
endfunction
function Trig_Boss7Colour_Actions takes nothing returns nothing
if(Trig_Boss7Colour_Func002C())then
call SetUnitVertexColorBJ(GetTriggerUnit(),'d',10.,10.,0)
endif
if(Trig_Boss7Colour_Func003C())then
call SetUnitVertexColorBJ(GetTriggerUnit(),10.,10.,100.,0)
call DisableTrigger(GetTriggeringTrigger())
endif
endfunction
function Trig_Boss7Power_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='nico')
endfunction
function Trig_Boss7Power_Func001001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00N')
endfunction
function Trig_Boss7Power_Func001Func001001 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit05)
endfunction
function Trig_Boss7Power_Func001Func002001 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit05)
endfunction
function Trig_Boss7Power_Func001Func003001 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit04)
endfunction
function Trig_Boss7Power_Func001Func004001 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit06)
endfunction
function Trig_Boss7Power_Func001Func005C takes nothing returns boolean
return(IsUnitDeadBJ(udg_unit50))and(IsUnitDeadBJ(udg_unit05))and(IsUnitDeadBJ(udg_unit04))and(IsUnitDeadBJ(udg_unit06))
endfunction
function Trig_Boss7Power_Func001A takes nothing returns nothing
if(Trig_Boss7Power_Func001Func001001())then
call UnitRemoveAbility(GetEnumUnit(),'A02Z')
endif
if(Trig_Boss7Power_Func001Func002001())then
call UnitRemoveAbility(GetEnumUnit(),'A02I')
endif
if(Trig_Boss7Power_Func001Func003001())then
call UnitRemoveAbility(GetEnumUnit(),'A02L')
endif
if(Trig_Boss7Power_Func001Func004001())then
call UnitRemoveAbility(GetEnumUnit(),'A002')
endif
if(Trig_Boss7Power_Func001Func005C())then
call RemoveUnit(GetEnumUnit())
call DestroyTrigger(GetTriggeringTrigger())
endif
endfunction
function Trig_Boss7Power_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRectMatching(udg_rect12,Condition(function Trig_Boss7Power_Func001001002)),function Trig_Boss7Power_Func001A)
endfunction
function Trig_Boss7Dead_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='N001')
endfunction
function Trig_Boss7Dead_Func012001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger59))
endfunction
function Trig_Boss7Dead_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_integer04=(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))
set udg_integers10[udg_integer04]=(udg_integers10[udg_integer04]+1500)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,((GetPlayerName(GetOwningPlayer(GetKillingUnit()))+" killed ")+GetHeroProperName(GetTriggerUnit())))
call QuestSetCompleted(udg_quests01[3],true)
call RemoveWeatherEffect(bj_lastCreatedWeatherEffect)
call TriggerSleepAction(5.)
call AddWeatherEffectSaveLast(udg_rect12,'LRaa')
call EnableWeatherEffect(bj_lastCreatedWeatherEffect,true)
if(Trig_Boss7Dead_Func012001())then
call DestroyTimerDialog(udg_timerdialog02)
endif
call StartTimerBJ(udg_timer03,false,180.)
call CreateTimerDialogBJ(udg_timer03,"Game Ending Time:")
call TimerDialogDisplay(bj_lastCreatedTimerDialog,true)
call EnableTrigger(udg_trigger133)
call TriggerExecute(udg_trigger132)
call DestroyTrigger(udg_trigger104)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_LeaderBoard_Func003002001 takes nothing returns boolean
return(GetPlayerController(GetFilterPlayer())==MAP_CONTROL_USER)
endfunction
function Trig_LeaderBoard_Func005Func001C takes nothing returns boolean
return(GetPlayerSlotState(GetEnumPlayer())==PLAYER_SLOT_STATE_LEFT)
endfunction
function Trig_LeaderBoard_Func005A takes nothing returns nothing
if(Trig_LeaderBoard_Func005Func001C())then
call LeaderboardAddItemBJ(GetEnumPlayer(),bj_lastCreatedLeaderboard,">>> Left the game",0)
set udg_integer06=(udg_integer06-1)
set udg_integer01=(udg_integer01-1)
else
call LeaderboardAddItemBJ(GetEnumPlayer(),bj_lastCreatedLeaderboard,GetPlayerName(GetEnumPlayer()),0)
endif
endfunction
function Trig_LeaderBoard_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_force01=GetPlayersMatching(Condition(function Trig_LeaderBoard_Func003002001))
call CreateLeaderboardBJ(udg_force01,"Kills")
call ForForce(udg_force01,function Trig_LeaderBoard_Func005A)
call LeaderboardDisplayBJ(true,bj_lastCreatedLeaderboard)
call DestroyForce(udg_force01)
call EnableTrigger(udg_trigger128)
call EnableTrigger(udg_trigger108)
call EnableTrigger(udg_trigger71)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_LeaderBoardAdd_Func007001 takes nothing returns boolean
return(udg_integers11[udg_integer11]==2000)
endfunction
function Trig_LeaderBoardAdd_Func009001 takes nothing returns boolean
return(udg_player01==Player(9))
endfunction
function Trig_LeaderBoardAdd_Actions takes nothing returns nothing
set udg_player01=GetOwningPlayer(GetKillingUnit())
set udg_integer11=(1+GetPlayerId(udg_player01))
set udg_integers11[udg_integer11]=(udg_integers11[udg_integer11]+1)
call LeaderboardSetPlayerItemValueBJ(udg_player01,bj_lastCreatedLeaderboard,udg_integers11[udg_integer11])
call LeaderboardSortItemsBJ(bj_lastCreatedLeaderboard,0,false)
if(Trig_LeaderBoardAdd_Func007001())then
call ConditionalTriggerExecute(udg_trigger64)
endif
set udg_player01=GetOwningPlayer(GetTriggerUnit())
if(Trig_LeaderBoardAdd_Func009001())then
return
endif
call TriggerSleepAction(5.)
call RemoveUnit(GetTriggerUnit())
endfunction
function Trig_Kills100_Conditions takes nothing returns boolean
return(udg_integers11[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]=='d')and(IsTriggerEnabled(udg_trigger62)==false)and(GetPlayerController(GetOwningPlayer(GetKillingUnit()))==MAP_CONTROL_USER)
endfunction
function Trig_Kills100_Func002002001 takes nothing returns boolean
return(GetFilterPlayer()!=udg_player01)
endfunction
function Trig_Kills100_Actions takes nothing returns nothing
set udg_player01=GetOwningPlayer(GetKillingUnit())
set udg_force01=GetPlayersMatching(Condition(function Trig_Kills100_Func002002001))
call AdjustPlayerStateBJ(1000,udg_player01,PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(udg_force01,10.,(GetPlayerName(udg_player01)+" |c0061FFFF100|c00FFFFFF kills."))
call DisplayTimedTextToPlayer(udg_player01,0,0,10.,"|c0061FFFF100|c00FFFFFF kills. You get |c0061FFFF1000|c00FFFFFF gold.")
call DestroyForce(udg_force01)
endfunction
function Trig_Kills500_Conditions takes nothing returns boolean
return(udg_integers11[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]==500)and(IsTriggerEnabled(udg_trigger62)==false)and(GetPlayerController(GetOwningPlayer(GetKillingUnit()))==MAP_CONTROL_USER)
endfunction
function Trig_Kills500_Func002002001 takes nothing returns boolean
return(GetFilterPlayer()!=udg_player01)
endfunction
function Trig_Kills500_Actions takes nothing returns nothing
set udg_player01=GetOwningPlayer(GetKillingUnit())
set udg_force01=GetPlayersMatching(Condition(function Trig_Kills500_Func002002001))
call AdjustPlayerStateBJ(5000,udg_player01,PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(udg_force01,10.,(GetPlayerName(udg_player01)+" |c0061FFFF500|c00FFFFFF kills."))
call DisplayTimedTextToPlayer(udg_player01,0,0,10.,"|c0061FFFF500|c00FFFFFF kills. You get |c0061FFFF5000|c00FFFFFF gold.")
call DestroyForce(udg_force01)
endfunction
function Trig_Kills1000_Conditions takes nothing returns boolean
return(udg_integers11[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]==1000)and(IsTriggerEnabled(udg_trigger62)==false)and(GetPlayerController(GetOwningPlayer(GetKillingUnit()))==MAP_CONTROL_USER)
endfunction
function Trig_Kills1000_Func002002001 takes nothing returns boolean
return(GetFilterPlayer()!=udg_player01)
endfunction
function Trig_Kills1000_Actions takes nothing returns nothing
set udg_player01=GetOwningPlayer(GetKillingUnit())
set udg_force01=GetPlayersMatching(Condition(function Trig_Kills1000_Func002002001))
call AdjustPlayerStateBJ(25000,udg_player01,PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(udg_force01,10.,(GetPlayerName(udg_player01)+" |c0061FFFF1000|c00FFFFFF kills."))
call DisplayTimedTextToPlayer(udg_player01,0,0,10.,"|c0061FFFF1000|c00FFFFFF kills. You get |c0061FFFF25000|c00FFFFFF gold.")
call DestroyForce(udg_force01)
endfunction
function Trig_Kills2000_Conditions takes nothing returns boolean
return(udg_integers11[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]==2000)and(IsTriggerEnabled(udg_trigger62)==false)and(GetPlayerController(GetOwningPlayer(GetKillingUnit()))==MAP_CONTROL_USER)
endfunction
function Trig_Kills2000_Func002002001 takes nothing returns boolean
return(GetFilterPlayer()!=udg_player01)
endfunction
function Trig_Kills2000_Actions takes nothing returns nothing
set udg_player01=GetOwningPlayer(GetKillingUnit())
set udg_force01=GetPlayersMatching(Condition(function Trig_Kills2000_Func002002001))
call AdjustPlayerStateBJ(50000,udg_player01,PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(udg_force01,10.,(GetPlayerName(udg_player01)+" |c0061FFFF2000|c00FFFFFF kills."))
call DisplayTimedTextToPlayer(udg_player01,0,0,10.,"|c0061FFFF2000|c00FFFFFF kills. You get |c0061FFFF50000|c00FFFFFF gold.")
call DestroyForce(udg_force01)
endfunction
function Trig_WaveKills20_Conditions takes nothing returns boolean
return(udg_integers13[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]==20)and(GetPlayerController(GetOwningPlayer(GetKillingUnit()))==MAP_CONTROL_USER)
endfunction
function Trig_WaveKills20_Func002002001 takes nothing returns boolean
return(GetFilterPlayer()!=udg_player01)
endfunction
function Trig_WaveKills20_Actions takes nothing returns nothing
set udg_player01=GetOwningPlayer(GetKillingUnit())
set udg_force01=GetPlayersMatching(Condition(function Trig_WaveKills20_Func002002001))
call AdjustPlayerStateBJ(1000,udg_player01,PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(udg_force01,10.,(GetPlayerName(udg_player01)+" |c0061FFFF20|c00FFFFFF wave kills."))
call DisplayTimedTextToPlayer(udg_player01,0,0,10.,"|c0061FFFF20|c00FFFFFF wave kills. You get |c0061FFFF1000|c00FFFFFF gold.")
call DestroyForce(udg_force01)
endfunction
function Trig_WaveKills40_Conditions takes nothing returns boolean
return(udg_integers13[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]==40)and(GetPlayerController(GetOwningPlayer(GetKillingUnit()))==MAP_CONTROL_USER)
endfunction
function Trig_WaveKills40_Func002002001 takes nothing returns boolean
return(GetFilterPlayer()!=udg_player01)
endfunction
function Trig_WaveKills40_Actions takes nothing returns nothing
set udg_player01=GetOwningPlayer(GetKillingUnit())
set udg_force01=GetPlayersMatching(Condition(function Trig_WaveKills40_Func002002001))
call AdjustPlayerStateBJ(5000,udg_player01,PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(udg_force01,10.,(GetPlayerName(udg_player01)+" |c0061FFFF40|c00FFFFFF wave kills."))
call DisplayTimedTextToPlayer(udg_player01,0,0,10.,"|c0061FFFF40|c00FFFFFF wave kills. You get |c0061FFFF5000|c00FFFFFF gold.")
call DestroyForce(udg_force01)
endfunction
function Trig_WaveKills60_Conditions takes nothing returns boolean
return(udg_integers13[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]==60)and(GetPlayerController(GetOwningPlayer(GetKillingUnit()))==MAP_CONTROL_USER)
endfunction
function Trig_WaveKills60_Func002002001 takes nothing returns boolean
return(GetFilterPlayer()!=udg_player01)
endfunction
function Trig_WaveKills60_Actions takes nothing returns nothing
set udg_player01=GetOwningPlayer(GetKillingUnit())
set udg_force01=GetPlayersMatching(Condition(function Trig_WaveKills60_Func002002001))
call AdjustPlayerStateBJ(25000,udg_player01,PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(udg_force01,10.,(GetPlayerName(udg_player01)+" |c0061FFFF60|c00FFFFFF wave kills."))
call DisplayTimedTextToPlayer(udg_player01,0,0,10.,"|c0061FFFF60|c00FFFFFF wave kills. You get |c0061FFFF25000|c00FFFFFF gold.")
call DestroyForce(udg_force01)
endfunction
function Trig_WaveKills80_Conditions takes nothing returns boolean
return(udg_integers13[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]==80)and(GetPlayerController(GetOwningPlayer(GetKillingUnit()))==MAP_CONTROL_USER)
endfunction
function Trig_WaveKills80_Func005002001 takes nothing returns boolean
return(GetFilterPlayer()!=udg_player01)
endfunction
function Trig_WaveKills80_Actions takes nothing returns nothing
set udg_player01=GetOwningPlayer(GetKillingUnit())
set udg_force01=GetPlayersMatching(Condition(function Trig_WaveKills80_Func005002001))
call AdjustPlayerStateBJ(50000,udg_player01,PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(udg_force01,10.,(GetPlayerName(udg_player01)+" |c0061FFFF80|c00FFFFFF wave kills."))
call DisplayTimedTextToPlayer(udg_player01,0,0,10.,"|c0061FFFF80|c00FFFFFF wave kills. You get |c0061FFFF50000|c00FFFFFF gold.")
call DestroyForce(udg_force01)
endfunction
function Trig_GameLevel1_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call StartTimerBJ(udg_timer01,false,600.)
call CreateTimerDialogBJ(udg_timer01,"Level 2 Time:")
call TimerDialogDisplay(bj_lastCreatedTimerDialog,true)
set udg_timerdialog01=bj_lastCreatedTimerDialog
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_GameLevel2_Func002003001 takes nothing returns boolean
return(udg_integers05[bj_forLoopAIndex]<2)
endfunction
function Trig_GameLevel2_Func015Func001C takes nothing returns boolean
return(udg_booleans01[bj_forLoopAIndex])
endfunction
function Trig_GameLevel2_Func016001 takes nothing returns boolean
return(udg_integer07>=2)
endfunction
function Trig_GameLevel2_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_GameLevel2_Func002003001())then
set udg_integers05[bj_forLoopAIndex]=2
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(.1)
call DestroyTimerDialog(udg_timerdialog01)
call StartTimerBJ(udg_timer01,false,500.)
call CreateTimerDialogBJ(udg_timer01,"Level 3 Time:")
call TimerDialogDisplay(bj_lastCreatedTimerDialog,true)
set udg_timerdialog01=bj_lastCreatedTimerDialog
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"|c0061FFFFLevel 2")
set udg_integer05=2
call TriggerSleepAction(2.)
call TriggerExecute(udg_trigger127)
call EnableTrigger(udg_trigger119)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer01
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_GameLevel2_Func015Func001C())then
call CreateNUnitsAtLocFacingLocBJ(udg_integer10,'nrdr',Player(11),GetRectCenter(udg_rects01[bj_forLoopAIndex]),GetUnitLoc(GetTriggerUnit()))
call GroupPointOrderByIdLoc(GetUnitsInRectAll(udg_rects01[bj_forLoopAIndex]),851983,GetRectCenter(udg_rect11))
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_GameLevel2_Func016001())then
call SelectHeroSkill(udg_unit57,'A026')
endif
call UnitAddItemByIdSwapped('rspd',udg_unit57)
call TriggerSleepAction(2.)
call DestroyTrigger(udg_trigger137)
call DestroyTrigger(udg_trigger139)
call DestroyTrigger(udg_trigger138)
call DestroyTrigger(udg_trigger143)
call DestroyTrigger(udg_trigger17)
call DestroyTrigger(udg_trigger18)
call DestroyTrigger(udg_trigger19)
call DestroyTrigger(udg_trigger20)
call DestroyTrigger(udg_trigger21)
call DestroyTrigger(udg_trigger22)
call DestroyTrigger(udg_trigger23)
call DestroyTrigger(udg_trigger24)
call DestroyTrigger(udg_trigger25)
call DestroyTrigger(udg_trigger26)
call DestroyTrigger(udg_trigger27)
call DestroyTrigger(udg_trigger28)
call DestroyTrigger(udg_trigger29)
call DestroyTrigger(udg_trigger30)
call DestroyTrigger(udg_trigger31)
call DestroyTrigger(udg_trigger32)
call DestroyTrigger(udg_trigger146)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_GameLevel3_Func002003001 takes nothing returns boolean
return(udg_integers05[bj_forLoopAIndex]<3)
endfunction
function Trig_GameLevel3_Func015Func001C takes nothing returns boolean
return(udg_booleans01[bj_forLoopAIndex])
endfunction
function Trig_GameLevel3_Func016001 takes nothing returns boolean
return(udg_integer07>=2)
endfunction
function Trig_GameLevel3_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_GameLevel3_Func002003001())then
set udg_integers05[bj_forLoopAIndex]=3
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(.1)
call DestroyTimerDialog(udg_timerdialog01)
call StartTimerBJ(udg_timer01,false,400.)
call CreateTimerDialogBJ(udg_timer01,"Level 4 Time:")
call TimerDialogDisplay(bj_lastCreatedTimerDialog,true)
set udg_timerdialog01=bj_lastCreatedTimerDialog
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"|c0061FFFFLevel 3")
set udg_integer05=3
call TriggerExecute(udg_trigger127)
call EnableTrigger(udg_trigger120)
call TriggerSleepAction(1.)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer01
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_GameLevel3_Func015Func001C())then
call CreateNUnitsAtLocFacingLocBJ(udg_integer10,'nser',Player(11),GetRectCenter(udg_rects01[bj_forLoopAIndex]),GetUnitLoc(GetTriggerUnit()))
call GroupPointOrderByIdLoc(GetUnitsInRectAll(udg_rects01[bj_forLoopAIndex]),851983,GetRectCenter(udg_rect11))
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_GameLevel3_Func016001())then
call SelectHeroSkill(udg_unit57,'A026')
endif
call UnitAddItemByIdSwapped('rspd',udg_unit57)
call TriggerSleepAction(1.)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_GameLevel4_Func008Func001C takes nothing returns boolean
return(udg_booleans01[bj_forLoopAIndex])
endfunction
function Trig_GameLevel4_Func009001 takes nothing returns boolean
return(udg_integer07>=2)
endfunction
function Trig_GameLevel4_Func012C takes nothing returns boolean
return(udg_integer07>1)and(IsTriggerEnabled(udg_trigger41))
endfunction
function Trig_GameLevel4_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_integers05[bj_forLoopAIndex]=4
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(.1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"|c0061FFFFLevel 4")
set udg_integer05=4
call TriggerExecute(udg_trigger127)
call TriggerSleepAction(1.)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer01
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_GameLevel4_Func008Func001C())then
call CreateNUnitsAtLocFacingLocBJ(udg_integer10,'nthr',Player(11),GetRectCenter(udg_rects01[bj_forLoopAIndex]),GetUnitLoc(GetTriggerUnit()))
call GroupPointOrderByIdLoc(GetUnitsInRectAll(udg_rects01[bj_forLoopAIndex]),851983,GetRectCenter(udg_rect11))
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_GameLevel4_Func009001())then
call SelectHeroSkill(udg_unit57,'A026')
endif
call UnitAddItemByIdSwapped('rspd',udg_unit57)
call TriggerSleepAction(.1)
if(Trig_GameLevel4_Func012C())then
call EnableTrigger(udg_trigger51)
call StartTimerBJ(udg_timer01,false,300.)
call CreateTimerDialogBJ(udg_timer01,"Power Up:")
call TimerDialogDisplay(bj_lastCreatedTimerDialog,true)
set udg_timerdialog01=bj_lastCreatedTimerDialog
else
call DestroyTrigger(udg_trigger51)
endif
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_EasyPowerUp_Func003Func005C takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger34))
endfunction
function Trig_EasyPowerUp_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"|c0061FFFFPower Up|c00FFFFFF: +250 to all stats.")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectTargetUnitBJ("origin",udg_units01[bj_forLoopAIndex],"Abilities\\Spells\\Items\\AIlm\\AIlmTarget.mdl")
call ModifyHeroStat(0,udg_units01[bj_forLoopAIndex],0,250)
call ModifyHeroStat(1,udg_units01[bj_forLoopAIndex],0,250)
call ModifyHeroStat(2,udg_units01[bj_forLoopAIndex],0,250)
if(Trig_EasyPowerUp_Func003Func005C())then
call ModifyHeroStat(0,udg_units01[(bj_forLoopAIndex+8)],0,250)
call ModifyHeroStat(1,udg_units01[(bj_forLoopAIndex+8)],0,250)
call ModifyHeroStat(2,udg_units01[(bj_forLoopAIndex+8)],0,250)
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_HeroDead_Conditions takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO))and(GetPlayerSlotState(GetOwningPlayer(GetTriggerUnit()))!=PLAYER_SLOT_STATE_LEFT)
endfunction
function Trig_HeroDead_Func007002001 takes nothing returns boolean
return(GetFilterPlayer()!=GetTriggerPlayer())
endfunction
function Trig_HeroDead_Func008002 takes nothing returns nothing
call TimerDialogDisplayForPlayerBJ(false,bj_lastCreatedTimerDialog,GetEnumPlayer())
endfunction
function Trig_HeroDead_Func013C takes nothing returns boolean
return(IsTriggerEnabled(GetTriggeringTrigger()))
endfunction
function Trig_HeroDead_Actions takes nothing returns nothing
set udg_integer11=(1+GetPlayerId(GetTriggerPlayer()))
call StartTimerBJ(udg_timers01[udg_integer11],false,120.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"Resurrection:")
set udg_timerdialogs01[udg_integer11]=bj_lastCreatedTimerDialog
set udg_force01=GetPlayersMatching(Condition(function Trig_HeroDead_Func007002001))
call ForForce(udg_force01,function Trig_HeroDead_Func008002)
call DestroyForce(udg_force01)
call AdjustPlayerStateBJ(-10000,GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,10.,"You lost |c0061FFFF10000|c00FFFFFF gold and you will revive after |c0061FFFF2|c00FFFFFF minutes.")
call TriggerSleepAction(120.)
if(Trig_HeroDead_Func013C())then
set udg_location01=GetRectCenter(udg_rect33)
set udg_integer11=(1+GetPlayerId(GetTriggerPlayer()))
call DestroyTimerDialog(udg_timerdialogs01[udg_integer11])
call ReviveHeroLoc(udg_units01[udg_integer11],udg_location01,true)
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),udg_location01,0)
call RemoveLocation(udg_location01)
endif
endfunction
function Trig_MuradinHelp_Conditions takes nothing returns boolean
return(GetUnitLifePercent(GetTriggerUnit())<=30.)
endfunction
function Trig_MuradinHelp_Func029002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),GetRectCenter(udg_rect33),0)
endfunction
function Trig_MuradinHelp_Func053A takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Orc\\FeralSpirit\\feralspiritdone.mdl")
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_MuradinHelp_Actions takes nothing returns nothing
call IssueImmediateOrderById(GetAttacker(),851972)
call DisableTrigger(GetTriggeringTrigger())
call EnableTrigger(udg_trigger169)
call EnableTrigger(udg_trigger171)
call EnableTrigger(udg_trigger168)
call EnableTrigger(udg_trigger170)
call EnableTrigger(udg_trigger124)
call PauseTimerBJ(true,udg_timer02)
call PauseAllUnitsBJ(true)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"Muradin Bronzebeard is requested.")
call CreateNUnitsAtLoc(1,'Hmbr',Player(8),GetRectCenter(udg_rect33),225.)
call SetHeroLevelBJ(bj_lastCreatedUnit,30,false)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SelectHeroSkill(bj_lastCreatedUnit,'AHtb')
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SelectHeroSkill(bj_lastCreatedUnit,'AHtc')
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SelectHeroSkill(bj_lastCreatedUnit,'AHbh')
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=2
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SelectHeroSkill(bj_lastCreatedUnit,'AHav')
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call UnitAddAbility(bj_lastCreatedUnit,'A04P')
call UnitAddAbility(bj_lastCreatedUnit,'A02V')
call ModifyHeroStat(0,bj_lastCreatedUnit,2,5000)
call ModifyHeroStat(1,bj_lastCreatedUnit,2,5000)
call ModifyHeroStat(2,bj_lastCreatedUnit,2,5000)
call UnitAddAbility(bj_lastCreatedUnit,'A02P')
call UnitAddItemByIdSwapped('nspi',bj_lastCreatedUnit)
call PauseUnit(bj_lastCreatedUnit,true)
call TriggerSleepAction(2)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_MuradinHelp_Func029002)
call TriggerSleepAction(3.)
call PlaySoundAtPointBJ(udg_sound17,'d',GetRectCenter(udg_rect33),0)
call SetUnitInvulnerable(udg_unit02,true)
call TriggerSleepAction(5.)
call PauseAllUnitsBJ(false)
call IssueImmediateOrderById(bj_lastCreatedUnit,852086)
call TriggerSleepAction(2)
call PauseTimerBJ(false,udg_timer02)
call TriggerSleepAction(5.)
call GroupPointOrderByIdLoc(GetUnitsOfPlayerAndTypeId(Player(8),'Hmbr'),851983,GetRectCenter(udg_rect45))
call TriggerSleepAction(7.)
call GroupPointOrderByIdLoc(GetUnitsOfPlayerAndTypeId(Player(8),'Hmbr'),851983,GetRectCenter(udg_rect46))
call TriggerSleepAction(7.)
call GroupPointOrderByIdLoc(GetUnitsOfPlayerAndTypeId(Player(8),'Hmbr'),851983,GetRectCenter(udg_rect47))
call TriggerSleepAction(7.)
call GroupPointOrderByIdLoc(GetUnitsOfPlayerAndTypeId(Player(8),'Hmbr'),851983,GetRectCenter(udg_rect48))
call TriggerSleepAction(7.)
call GroupPointOrderByIdLoc(GetUnitsOfPlayerAndTypeId(Player(8),'Hmbr'),851983,GetRectCenter(udg_rect33))
call TriggerSleepAction(7.)
call SetUnitInvulnerable(udg_unit02,false)
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(Player(8),'Hmbr'),function Trig_MuradinHelp_Func053A)
call DisableTrigger(udg_trigger170)
call DisableTrigger(udg_trigger171)
call DisableTrigger(udg_trigger168)
call DisableTrigger(udg_trigger169)
call DestroyTrigger(udg_trigger124)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_MuradinAttacked_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='Hmbr')and(GetOwningPlayer(GetTriggerUnit())==Player(8))and(GetPlayerController(GetOwningPlayer(GetAttacker()))==MAP_CONTROL_USER)
endfunction
function Trig_MuradinAttacked_Actions takes nothing returns nothing
call IssueTargetOrderById(GetTriggerUnit(),851983,GetAttacker())
endfunction
function Trig_CastleUnderAttack_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,3.,"|c0061FFFFWARNING|c00FFFFFF: Castle under attack.")
call TriggerSleepAction(3.)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_YouLose_Actions takes nothing returns nothing
call CustomDefeatBJ(Player(0),"YOU LOSE PLAY AGAIN!")
call CustomDefeatBJ(Player(1),"YOU LOSE PLAY AGAIN!")
call CustomDefeatBJ(Player(2),"YOU LOSE PLAY AGAIN!")
call CustomDefeatBJ(Player(3),"YOU LOSE PLAY AGAIN!")
call CustomDefeatBJ(Player(4),"YOU LOSE PLAY AGAIN!")
call CustomDefeatBJ(Player(5),"YOU LOSE PLAY AGAIN!")
call CustomDefeatBJ(Player(6),"YOU LOSE PLAY AGAIN!")
call CustomDefeatBJ(Player(7),"YOU LOSE PLAY AGAIN!")
endfunction
function Trig_Music_Func002001 takes nothing returns boolean
return(udg_integer05==1)
endfunction
function Trig_Music_Func003001 takes nothing returns boolean
return(udg_integer05==2)
endfunction
function Trig_Music_Func004001 takes nothing returns boolean
return(udg_integer05==3)
endfunction
function Trig_Music_Func005001 takes nothing returns boolean
return(udg_integer05==4)
endfunction
function Trig_Music_Func006001 takes nothing returns boolean
return(udg_integer05==5)
endfunction
function Trig_Music_Func007001 takes nothing returns boolean
return(udg_integer05==6)
endfunction
function Trig_Music_Func008001 takes nothing returns boolean
return(udg_integer05==7)
endfunction
function Trig_Music_Func009001 takes nothing returns boolean
return(udg_integer05==8)
endfunction
function Trig_Music_Func010001 takes nothing returns boolean
return(udg_integer05==9)
endfunction
function Trig_Music_Func011001 takes nothing returns boolean
return(udg_integer05==10)
endfunction
function Trig_Music_Func012001 takes nothing returns boolean
return(udg_integer05==11)
endfunction
function Trig_Music_Func013001 takes nothing returns boolean
return(udg_integer05==12)
endfunction
function Trig_Music_Func014001 takes nothing returns boolean
return(udg_integer05==13)
endfunction
function Trig_Music_Actions takes nothing returns nothing
call StopMusic(false)
if(Trig_Music_Func002001())then
call PlayMusicBJ(udg_string06)
endif
if(Trig_Music_Func003001())then
call PlayMusicBJ(udg_string07)
endif
if(Trig_Music_Func004001())then
call PlayMusicBJ(udg_string08)
endif
if(Trig_Music_Func005001())then
call PlayMusicBJ(udg_string09)
endif
if(Trig_Music_Func006001())then
call PlayMusicBJ(udg_string01)
endif
if(Trig_Music_Func007001())then
call PlayMusicBJ(udg_string11)
endif
if(Trig_Music_Func008001())then
call PlayMusicBJ(udg_string12)
endif
if(Trig_Music_Func009001())then
call PlayMusicBJ(udg_string02)
endif
if(Trig_Music_Func010001())then
call PlayMusicBJ(udg_string03)
endif
if(Trig_Music_Func011001())then
call PlayMusicBJ(udg_string13)
endif
if(Trig_Music_Func012001())then
call PlayMusicBJ(udg_string04)
endif
if(Trig_Music_Func013001())then
call PlayMusicBJ(udg_string05)
endif
if(Trig_Music_Func014001())then
call PlayMusicBJ(udg_string10)
endif
endfunction
function Trig_Disconnect_Actions takes nothing returns nothing
set udg_integer12=(1+GetPlayerId(GetTriggerPlayer()))
call SetItemPositionLoc(GetItemOfTypeFromUnitBJ(udg_units01[udg_integer12],'I009'),GetRectCenter(udg_rect33))
call SetItemPositionLoc(GetItemOfTypeFromUnitBJ(udg_units01[udg_integer12],'I003'),GetRectCenter(udg_rect33))
call SetItemPositionLoc(GetItemOfTypeFromUnitBJ(udg_units01[udg_integer12],'I000'),GetRectCenter(udg_rect33))
call SetItemPositionLoc(GetItemOfTypeFromUnitBJ(udg_units01[udg_integer12],'I008'),GetRectCenter(udg_rect33))
call ConditionalTriggerExecute(udg_trigger129)
endfunction
function Trig_RemovePlayer_Func006Func001002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_RemovePlayer_Func006C takes nothing returns boolean
return(RectContainsUnit(udg_rect23,udg_units01[udg_integer12]))
endfunction
function Trig_RemovePlayer_Func007Func001002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_RemovePlayer_Func007C takes nothing returns boolean
return(RectContainsUnit(udg_rect25,udg_units01[udg_integer12]))
endfunction
function Trig_RemovePlayer_Func008C takes nothing returns boolean
return(RectContainsUnit(udg_rect31,udg_units01[udg_integer12]))and(IsTriggerEnabled(udg_trigger65))
endfunction
function Trig_RemovePlayer_Func009C takes nothing returns boolean
return(RectContainsUnit(udg_rect31,udg_units01[udg_integer12]))and(IsTriggerEnabled(udg_trigger70))
endfunction
function Trig_RemovePlayer_Func011002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_RemovePlayer_Func012C takes nothing returns boolean
return(udg_booleans01[udg_integer01])
endfunction
function Trig_RemovePlayer_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,(GetPlayerName(Player(-1+(udg_integer12)))+" already leave this game."))
set udg_integer06=(udg_integer06-1)
call PlaySoundBJ(udg_sound04)
call LeaderboardSetPlayerItemLabelBJ(Player(-1+(udg_integer12)),bj_lastCreatedLeaderboard,">>> Left the game")
if(Trig_RemovePlayer_Func006C())then
call ForGroupBJ(GetUnitsInRectOfPlayer(udg_rect23,Player(9)),function Trig_RemovePlayer_Func006Func001002)
endif
if(Trig_RemovePlayer_Func007C())then
call ForGroupBJ(GetUnitsInRectOfPlayer(udg_rect25,Player(9)),function Trig_RemovePlayer_Func007Func001002)
endif
if(Trig_RemovePlayer_Func008C())then
call TriggerExecute(udg_trigger65)
endif
if(Trig_RemovePlayer_Func009C())then
call TriggerExecute(udg_trigger70)
endif
call ForGroupBJ(GetUnitsOfPlayerAll(Player(-1+(udg_integer12))),function Trig_RemovePlayer_Func011002)
if(Trig_RemovePlayer_Func012C())then
set udg_booleans01[udg_integer01]=false
call TriggerSleepAction(2)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,("Way |c0061FFFF"+(I2S(udg_integer01)+"|c00FFFFFF is closed.")))
set udg_integer01=(udg_integer01-1)
endif
endfunction
function Trig_ArrestPlayer_Conditions takes nothing returns boolean
return(GetOwningPlayer(GetAttacker())!=Player(9))and(GetOwningPlayer(GetAttacker())!=Player(10))and(GetOwningPlayer(GetAttacker())!=Player(11))
endfunction
function Trig_ArrestPlayer_Func002002 takes nothing returns nothing
call PauseUnit(GetEnumUnit(),true)
endfunction
function Trig_ArrestPlayer_Func005001 takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger46))
endfunction
function Trig_ArrestPlayer_Func006002 takes nothing returns nothing
call PauseUnit(GetEnumUnit(),false)
endfunction
function Trig_ArrestPlayer_Actions takes nothing returns nothing
call IssueImmediateOrderById(GetAttacker(),851972)
call ForGroupBJ(GetUnitsOfPlayerAll(Player(-1+((1+GetPlayerId(GetOwningPlayer(GetAttacker())))))),function Trig_ArrestPlayer_Func002002)
call DisplayTimedTextToPlayer(GetOwningPlayer(GetAttacker()),0,0,60.,"You attacked the castle. Therefor your units are paused for 60 seconds.")
call TriggerSleepAction(60.)
if(Trig_ArrestPlayer_Func005001())then
return
endif
call ForGroupBJ(GetUnitsOfPlayerAll(Player(-1+((1+GetPlayerId(GetOwningPlayer(GetAttacker())))))),function Trig_ArrestPlayer_Func006002)
endfunction
function Trig_Teleport_Conditions takes nothing returns boolean
return(IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO))and(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_USER)
endfunction
function Trig_Teleport_Func001C takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger95)!=true)and(IsUnitDeadBJ(udg_unit41))and(IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(udg_rect02,Player(9))))
endfunction
function Trig_Teleport_Actions takes nothing returns nothing
if(Trig_Teleport_Func001C())then
call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(udg_rect38))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rect38),0)
else
call SetUnitPositionLoc(GetTriggerUnit(),OffsetLocation(GetRectCenter(udg_rect02),0,-500.))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),0)
endif
endfunction
function Trig_Victory_Func007001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_SUMMONED)!=null)
endfunction
function Trig_Victory_Func007002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Victory_Func019002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),GetRectCenter(udg_rect12),0)
endfunction
function Trig_Victory_Func021001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_Victory_Func021Func002001 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='Hpal')
endfunction
function Trig_Victory_Func021Func003001 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='Hamg')
endfunction
function Trig_Victory_Func021Func004001 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='Hmkg')
endfunction
function Trig_Victory_Func021Func005001 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='Hblm')
endfunction
function Trig_Victory_Func021Func006001 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='Harf')
endfunction
function Trig_Victory_Func021Func007001 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='Hmbr')
endfunction
function Trig_Victory_Func021Func008001 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='Hvwd')
endfunction
function Trig_Victory_Func021Func009001 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='Obla')
endfunction
function Trig_Victory_Func021Func010001 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='Otch')
endfunction
function Trig_Victory_Func021Func011001 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='Oshd')
endfunction
function Trig_Victory_Func021Func012001 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='Ulic')
endfunction
function Trig_Victory_Func021Func013001 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='Ucrl')
endfunction
function Trig_Victory_Func021Func014001 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='Emoo')
endfunction
function Trig_Victory_Func021Func015001 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='Edem')
endfunction
function Trig_Victory_Func021Func016001 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='Ewar')
endfunction
function Trig_Victory_Func021Func017001 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='Nbst')
endfunction
function Trig_Victory_Func021Func018001 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='Nplh')
endfunction
function Trig_Victory_Func021Func019001 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='Npbm')
endfunction
function Trig_Victory_Func021Func020001 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='Hjai')
endfunction
function Trig_Victory_Func021Func021001 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='H009')
endfunction
function Trig_Victory_Func021Func022001 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='H008')
endfunction
function Trig_Victory_Func021Func023001 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='N00W')
endfunction
function Trig_Victory_Func021Func024001 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='H000')
endfunction
function Trig_Victory_Func021Func025001 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='Nklj')
endfunction
function Trig_Victory_Func021Func026001 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='H007')
endfunction
function Trig_Victory_Func021Func027001 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='H002')
endfunction
function Trig_Victory_Func021Func028001 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='Udre')
endfunction
function Trig_Victory_Func021A takes nothing returns nothing
call UnitRemoveBuffsBJ(2,GetEnumUnit())
if(Trig_Victory_Func021Func002001())then
call SetUnitAnimation(GetEnumUnit(),"stand victory")
endif
if(Trig_Victory_Func021Func003001())then
call SetUnitAnimation(GetEnumUnit(),"stand victory")
endif
if(Trig_Victory_Func021Func004001())then
call SetUnitAnimationByIndex(GetEnumUnit(),4)
endif
if(Trig_Victory_Func021Func005001())then
call SetUnitAnimation(GetEnumUnit(),"spell channel")
endif
if(Trig_Victory_Func021Func006001())then
call SetUnitAnimation(GetEnumUnit(),"stand victory")
endif
if(Trig_Victory_Func021Func007001())then
call SetUnitAnimationByIndex(GetEnumUnit(),3)
endif
if(Trig_Victory_Func021Func008001())then
call SetUnitAnimation(GetEnumUnit(),"stand victory")
endif
if(Trig_Victory_Func021Func009001())then
call SetUnitAnimation(GetEnumUnit(),"stand victory")
endif
if(Trig_Victory_Func021Func010001())then
call SetUnitAnimation(GetEnumUnit(),"stand victory")
endif
if(Trig_Victory_Func021Func011001())then
call SetUnitAnimation(GetEnumUnit(),"stand victory")
endif
if(Trig_Victory_Func021Func012001())then
call SetUnitAnimation(GetEnumUnit(),"stand channel")
endif
if(Trig_Victory_Func021Func013001())then
call SetUnitAnimation(GetEnumUnit(),"spell channel")
endif
if(Trig_Victory_Func021Func014001())then
call SetUnitAnimation(GetEnumUnit(),"stand ready")
endif
if(Trig_Victory_Func021Func015001())then
call SetUnitAnimation(GetEnumUnit(),"stand channel")
endif
if(Trig_Victory_Func021Func016001())then
call SetUnitAnimation(GetEnumUnit(),"stand channel")
endif
if(Trig_Victory_Func021Func017001())then
call SetUnitAnimation(GetEnumUnit(),"stand ready")
endif
if(Trig_Victory_Func021Func018001())then
call SetUnitAnimation(GetEnumUnit(),"stand channel")
endif
if(Trig_Victory_Func021Func019001())then
call SetUnitAnimation(GetEnumUnit(),"stand ready")
endif
if(Trig_Victory_Func021Func020001())then
call SetUnitAnimation(GetEnumUnit(),"stand victory")
endif
if(Trig_Victory_Func021Func021001())then
call SetUnitAnimation(GetEnumUnit(),"stand victory")
endif
if(Trig_Victory_Func021Func022001())then
call SetUnitAnimationByIndex(GetEnumUnit(),2)
endif
if(Trig_Victory_Func021Func023001())then
call SetUnitAnimationByIndex(GetEnumUnit(),1)
endif
if(Trig_Victory_Func021Func024001())then
call SetUnitAnimationByIndex(GetEnumUnit(),6)
endif
if(Trig_Victory_Func021Func025001())then
call SetUnitAnimationByIndex(GetEnumUnit(),9)
endif
if(Trig_Victory_Func021Func026001())then
call SetUnitAnimationByIndex(GetEnumUnit(),3)
endif
if(Trig_Victory_Func021Func027001())then
call SetUnitAnimationByIndex(GetEnumUnit(),6)
endif
if(Trig_Victory_Func021Func028001())then
call SetUnitAnimationByIndex(GetEnumUnit(),3)
endif
endfunction
function Trig_Victory_Func023002 takes nothing returns nothing
call CameraSetupApplyForPlayer(true,udg_camerasetup01,GetEnumPlayer(),12.)
endfunction
function Trig_Victory_Func024002 takes nothing returns nothing
call RotateCameraAroundLocBJ(360.,GetRectCenter(udg_rect12),GetEnumPlayer(),12.)
endfunction
function Trig_Victory_Func026002 takes nothing returns nothing
call ResetToGameCameraForPlayer(GetEnumPlayer(),5.)
endfunction
function Trig_Victory_Func028001002 takes nothing returns boolean
return(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_Victory_Func028002 takes nothing returns nothing
call ResetUnitAnimation(GetEnumUnit())
endfunction
function Trig_Victory_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,20.,"|c0061FFFFCongratulations|c00FFFFFF! This game will quit after 3 minutes.")
call LeaderboardSetLabelBJ(bj_lastCreatedLeaderboard,"Score")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_integers10[bj_forLoopAIndex]=(udg_integers10[bj_forLoopAIndex]+((udg_integers13[bj_forLoopAIndex]*10)+udg_integers11[bj_forLoopAIndex]))
call LeaderboardSetPlayerItemValueBJ(Player(-1+(bj_forLoopAIndex)),bj_lastCreatedLeaderboard,udg_integers10[bj_forLoopAIndex])
call LeaderboardSortItemsBJ(bj_lastCreatedLeaderboard,0,false)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(8.)
call TriggerExecute(udg_trigger80)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect12,Condition(function Trig_Victory_Func007001002)),function Trig_Victory_Func007002)
set udg_integer05=10
call TriggerExecute(udg_trigger127)
call TriggerSleepAction(2)
call SetUnitPositionLocFacingBJ(udg_units01[(1+GetPlayerId(LeaderboardGetIndexedPlayerBJ(1,bj_lastCreatedLeaderboard)))],GetRectCenter(udg_rect12),270.)
call SetUnitPositionLocFacingBJ(udg_units01[(1+GetPlayerId(LeaderboardGetIndexedPlayerBJ(2,bj_lastCreatedLeaderboard)))],OffsetLocation(GetRectCenter(udg_rect12),-150.,0),270.)
call SetUnitPositionLocFacingBJ(udg_units01[(1+GetPlayerId(LeaderboardGetIndexedPlayerBJ(3,bj_lastCreatedLeaderboard)))],OffsetLocation(GetRectCenter(udg_rect12),150.,0),270.)
call SetUnitPositionLocFacingBJ(udg_units01[(1+GetPlayerId(LeaderboardGetIndexedPlayerBJ(4,bj_lastCreatedLeaderboard)))],OffsetLocation(GetRectCenter(udg_rect12),-225.,75.),270.)
call SetUnitPositionLocFacingBJ(udg_units01[(1+GetPlayerId(LeaderboardGetIndexedPlayerBJ(5,bj_lastCreatedLeaderboard)))],OffsetLocation(GetRectCenter(udg_rect12),225.,75.),270.)
call SetUnitPositionLocFacingBJ(udg_units01[(1+GetPlayerId(LeaderboardGetIndexedPlayerBJ(6,bj_lastCreatedLeaderboard)))],OffsetLocation(GetRectCenter(udg_rect12),-75.,150.),270.)
call SetUnitPositionLocFacingBJ(udg_units01[(1+GetPlayerId(LeaderboardGetIndexedPlayerBJ(7,bj_lastCreatedLeaderboard)))],OffsetLocation(GetRectCenter(udg_rect12),75.,150.),270.)
call SetUnitPositionLocFacingBJ(udg_units01[(1+GetPlayerId(LeaderboardGetIndexedPlayerBJ(8,bj_lastCreatedLeaderboard)))],OffsetLocation(GetRectCenter(udg_rect12),.0,225.),270.)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Victory_Func019002)
call TriggerSleepAction(2)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect12,Condition(function Trig_Victory_Func021001002)),function Trig_Victory_Func021A)
call TriggerSleepAction(3.)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Victory_Func023002)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Victory_Func024002)
call TriggerSleepAction(26.)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Victory_Func026002)
call TriggerSleepAction(7.)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect12,Condition(function Trig_Victory_Func028001002)),function Trig_Victory_Func028002)
call TriggerSleepAction(2)
call PauseAllUnitsBJ(false)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_EndGame_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call CustomVictoryBJ(Player(0),true,true)
call CustomVictoryBJ(Player(1),true,true)
call CustomVictoryBJ(Player(2),true,true)
call CustomVictoryBJ(Player(3),true,true)
call CustomVictoryBJ(Player(4),true,true)
call CustomVictoryBJ(Player(5),true,true)
call CustomVictoryBJ(Player(6),true,true)
call CustomVictoryBJ(Player(7),true,true)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_Rune_Func001002 takes nothing returns nothing
call RemoveItem(GetEnumItem())
endfunction
function Trig_Rune_Func003001 takes nothing returns boolean
return(GetTriggerExecCount(GetTriggeringTrigger())==5)
endfunction
function Trig_Rune_Actions takes nothing returns nothing
call EnumItemsInRectBJ(udg_rect13,function Trig_Rune_Func001002)
call CreateItemLoc('I00A',GetRectCenter(udg_rect13))
if(Trig_Rune_Func003001())then
call DestroyTrigger(GetTriggeringTrigger())
endif
endfunction
function Trig_SuperItems_Func002C takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I000')or(GetItemTypeId(GetManipulatedItem())=='I003')or(GetItemTypeId(GetManipulatedItem())=='I008')or(GetItemTypeId(GetManipulatedItem())=='I009')
endfunction
function Trig_SuperItems_Conditions takes nothing returns boolean
return(GetTriggerUnit()==udg_units01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])and(Trig_SuperItems_Func002C())
endfunction
function Trig_SuperItems_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,15.,(GetPlayerName(GetOwningPlayer(GetTriggerUnit()))+(" carries the |c0061FFFF"+(GetItemName(GetManipulatedItem())+"|c00FFFFFF."))))
endfunction
function Trig_BuyTomes_Conditions takes nothing returns boolean
return(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)>=50000)and(IsTriggerEnabled(udg_trigger62)==false)
endfunction
function Trig_BuyTomes_Func006C takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger34))
endfunction
function Trig_BuyTomes_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("origin",udg_units01[(1+GetPlayerId(GetTriggerPlayer()))],"Abilities\\Spells\\Items\\AIlm\\AIlmTarget.mdl")
call AdjustPlayerStateBJ(-50000,GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)
call ModifyHeroStat(0,udg_units01[(1+GetPlayerId(GetTriggerPlayer()))],0,'d')
call ModifyHeroStat(1,udg_units01[(1+GetPlayerId(GetTriggerPlayer()))],0,'d')
call ModifyHeroStat(2,udg_units01[(1+GetPlayerId(GetTriggerPlayer()))],0,'d')
if(Trig_BuyTomes_Func006C())then
call ModifyHeroStat(0,udg_units01[((1+GetPlayerId(GetTriggerPlayer()))+8)],0,'d')
call ModifyHeroStat(1,udg_units01[((1+GetPlayerId(GetTriggerPlayer()))+8)],0,'d')
call ModifyHeroStat(2,udg_units01[((1+GetPlayerId(GetTriggerPlayer()))+8)],0,'d')
endif
call TriggerSleepAction(.01)
call ConditionalTriggerExecute(GetTriggeringTrigger())
endfunction
function Trig_Repick_Conditions takes nothing returns boolean
return(IsUnitDeadBJ(udg_units01[(1+GetPlayerId(GetTriggerPlayer()))])!=true)and(UnitHasItemOfTypeBJ(udg_units01[(1+GetPlayerId(GetTriggerPlayer()))],'ankh'))and(RectContainsUnit(bj_mapInitialPlayableArea,udg_units01[(1+GetPlayerId(GetTriggerPlayer()))]))and(udg_integers16[(1+GetPlayerId(GetTriggerPlayer()))]==0)
endfunction
function Trig_Repick_Func003003001 takes nothing returns boolean
return(GetUnitTypeId(udg_units01[udg_integer04])==udg_integers12[bj_forLoopAIndex])
endfunction
function Trig_Repick_Func004Func001C takes nothing returns boolean
return(udg_integer11>16)
endfunction
function Trig_Repick_Func004Func005001001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==udg_integers12[udg_integer11])
endfunction
function Trig_Repick_Func004C takes nothing returns boolean
return(IsUnitGroupEmptyBJ(GetUnitsInRectMatching(udg_rect14,Condition(function Trig_Repick_Func004Func005001001002))))
endfunction
function Trig_Repick_Func005001 takes nothing returns boolean
return(GetTriggerPlayer()==Player(0))
endfunction
function Trig_Repick_Func006001 takes nothing returns boolean
return(GetTriggerPlayer()==Player(1))
endfunction
function Trig_Repick_Func007001 takes nothing returns boolean
return(GetTriggerPlayer()==Player(2))
endfunction
function Trig_Repick_Func008001 takes nothing returns boolean
return(GetTriggerPlayer()==Player(3))
endfunction
function Trig_Repick_Func009001 takes nothing returns boolean
return(GetTriggerPlayer()==Player(4))
endfunction
function Trig_Repick_Func010001 takes nothing returns boolean
return(GetTriggerPlayer()==Player(5))
endfunction
function Trig_Repick_Func011001 takes nothing returns boolean
return(GetTriggerPlayer()==Player(6))
endfunction
function Trig_Repick_Func012001 takes nothing returns boolean
return(GetTriggerPlayer()==Player(7))
endfunction
function Trig_Repick_Func014002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Repick_Actions takes nothing returns nothing
set udg_location01=GetRectCenter(udg_rect14)
set udg_integer04=(1+GetPlayerId(GetTriggerPlayer()))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=26
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Repick_Func003003001())then
set udg_integer11=bj_forLoopAIndex
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_Repick_Func004C())then
if(Trig_Repick_Func004Func001C())then
set udg_real01=(-36.+(I2R((udg_integer11-16))*36.))
call CreateNUnitsAtLocFacingLocBJ(1,udg_integers12[udg_integer11],Player(8),PolarProjectionBJ(udg_location01,410.,udg_real01),udg_location01)
else
set udg_real01=(-22.5+(I2R(udg_integer11)*22.5))
call CreateNUnitsAtLocFacingLocBJ(1,udg_integers12[udg_integer11],Player(8),PolarProjectionBJ(udg_location01,705.,udg_real01),udg_location01)
endif
call SetUnitInvulnerable(bj_lastCreatedUnit,true)
call SetUnitColor(bj_lastCreatedUnit,PLAYER_COLOR_RED)
endif
if(Trig_Repick_Func005001())then
call EnableTrigger(udg_trigger17)
endif
if(Trig_Repick_Func006001())then
call EnableTrigger(udg_trigger19)
endif
if(Trig_Repick_Func007001())then
call EnableTrigger(udg_trigger21)
endif
if(Trig_Repick_Func008001())then
call EnableTrigger(udg_trigger23)
endif
if(Trig_Repick_Func009001())then
call EnableTrigger(udg_trigger25)
endif
if(Trig_Repick_Func010001())then
call EnableTrigger(udg_trigger27)
endif
if(Trig_Repick_Func011001())then
call EnableTrigger(udg_trigger29)
endif
if(Trig_Repick_Func012001())then
call EnableTrigger(udg_trigger31)
endif
set udg_group05=GetUnitsOfPlayerAll(GetTriggerPlayer())
call ForGroupBJ(udg_group05,function Trig_Repick_Func014002)
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),udg_location01,0)
call RemoveLocation(udg_location01)
call DestroyGroup(udg_group05)
endfunction
function Trig_Random_Conditions takes nothing returns boolean
return(CountUnitsInGroup(GetUnitsOfPlayerAll(GetTriggerPlayer()))==0)
endfunction
function Trig_Random_Func004002002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(8))
endfunction
function Trig_Random_Func004002002002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_Random_Func004002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Random_Func004002002001(),Trig_Random_Func004002002002())
endfunction
function Trig_Random_Func007001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_Random_Func007002 takes nothing returns nothing
set udg_units01[udg_integer11]=GetEnumUnit()
endfunction
function Trig_Random_Func009002002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(8))
endfunction
function Trig_Random_Func009002002002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==GetUnitTypeId(udg_units01[udg_integer11]))
endfunction
function Trig_Random_Func009002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Random_Func009002002001(),Trig_Random_Func009002002002())
endfunction
function Trig_Random_Func010001 takes nothing returns boolean
return(udg_boolean01)
endfunction
function Trig_Random_Func010003002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Random_Func018001 takes nothing returns boolean
return(udg_boolean04)
endfunction
function Trig_Random_Func019001 takes nothing returns boolean
return(GetTriggerPlayer()==Player(0))
endfunction
function Trig_Random_Func020001 takes nothing returns boolean
return(GetTriggerPlayer()==Player(1))
endfunction
function Trig_Random_Func021001 takes nothing returns boolean
return(GetTriggerPlayer()==Player(2))
endfunction
function Trig_Random_Func022001 takes nothing returns boolean
return(GetTriggerPlayer()==Player(3))
endfunction
function Trig_Random_Func023001 takes nothing returns boolean
return(GetTriggerPlayer()==Player(4))
endfunction
function Trig_Random_Func024001 takes nothing returns boolean
return(GetTriggerPlayer()==Player(5))
endfunction
function Trig_Random_Func025001 takes nothing returns boolean
return(GetTriggerPlayer()==Player(6))
endfunction
function Trig_Random_Func026001 takes nothing returns boolean
return(GetTriggerPlayer()==Player(7))
endfunction
function Trig_Random_Actions takes nothing returns nothing
set udg_integer11=(1+GetPlayerId(GetTriggerPlayer()))
set udg_integers16[udg_integer11]=1
set udg_group05=GetUnitsInRectMatching(udg_rect14,Condition(function Trig_Random_Func004002002))
set udg_location01=GetRectCenter(udg_rect33)
call CreateNUnitsAtLoc(1,GetUnitTypeId(GroupPickRandomUnit(udg_group05)),GetTriggerPlayer(),udg_location01,225.)
call ForGroupBJ(GetUnitsOfPlayerMatching(GetTriggerPlayer(),Condition(function Trig_Random_Func007001002)),function Trig_Random_Func007002)
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),udg_location01,0)
set udg_group05=GetUnitsInRectMatching(udg_rect14,Condition(function Trig_Random_Func009002002))
if(Trig_Random_Func010001())then
else
call ForGroupBJ(udg_group05,function Trig_Random_Func010003002)
endif
call RemoveLocation(udg_location01)
call DestroyGroup(udg_group05)
call SelectUnitForPlayerSingle(udg_units01[udg_integer11],GetTriggerPlayer())
call UnitAddItemByIdSwapped('stwp',udg_units01[udg_integer11])
call UnitAddItemByIdSwapped('ankh',udg_units01[udg_integer11])
call UnitAddItemByIdSwapped('pghe',udg_units01[udg_integer11])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer08
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call UnitAddItemByIdSwapped('tpow',udg_units01[udg_integer11])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_Random_Func018001())then
call SetPlayerStateBJ(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD,125000)
else
call SetPlayerStateBJ(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD,5000)
endif
if(Trig_Random_Func019001())then
call DisableTrigger(udg_trigger17)
endif
if(Trig_Random_Func020001())then
call DisableTrigger(udg_trigger19)
endif
if(Trig_Random_Func021001())then
call DisableTrigger(udg_trigger21)
endif
if(Trig_Random_Func022001())then
call DisableTrigger(udg_trigger23)
endif
if(Trig_Random_Func023001())then
call DisableTrigger(udg_trigger25)
endif
if(Trig_Random_Func024001())then
call DisableTrigger(udg_trigger27)
endif
if(Trig_Random_Func025001())then
call DisableTrigger(udg_trigger29)
endif
if(Trig_Random_Func026001())then
call DisableTrigger(udg_trigger31)
endif
endfunction
function Trig_RepickRandom_Conditions takes nothing returns boolean
return(IsUnitDeadBJ(udg_units01[(1+GetPlayerId(GetTriggerPlayer()))])!=true)and(UnitHasItemOfTypeBJ(udg_units01[(1+GetPlayerId(GetTriggerPlayer()))],'ankh'))and(RectContainsUnit(bj_mapInitialPlayableArea,udg_units01[(1+GetPlayerId(GetTriggerPlayer()))]))and(udg_integers16[(1+GetPlayerId(GetTriggerPlayer()))]==1)
endfunction
function Trig_RepickRandom_Func004003001 takes nothing returns boolean
return(GetUnitTypeId(udg_units01[udg_integer04])==udg_integers12[bj_forLoopAIndex])
endfunction
function Trig_RepickRandom_Func005Func001C takes nothing returns boolean
return(udg_integer11>16)
endfunction
function Trig_RepickRandom_Func005Func005001001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==udg_integers12[udg_integer11])
endfunction
function Trig_RepickRandom_Func005C takes nothing returns boolean
return(IsUnitGroupEmptyBJ(GetUnitsInRectMatching(udg_rect14,Condition(function Trig_RepickRandom_Func005Func005001001002))))
endfunction
function Trig_RepickRandom_Func007002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_RepickRandom_Func009002002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(8))
endfunction
function Trig_RepickRandom_Func009002002002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_RepickRandom_Func009002002 takes nothing returns boolean
return GetBooleanAnd(Trig_RepickRandom_Func009002002001(),Trig_RepickRandom_Func009002002002())
endfunction
function Trig_RepickRandom_Func011001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_RepickRandom_Func011002 takes nothing returns nothing
set udg_units01[udg_integer04]=GetEnumUnit()
endfunction
function Trig_RepickRandom_Func013002002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(8))
endfunction
function Trig_RepickRandom_Func013002002002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==GetUnitTypeId(udg_units01[udg_integer04]))
endfunction
function Trig_RepickRandom_Func013002002 takes nothing returns boolean
return GetBooleanAnd(Trig_RepickRandom_Func013002002001(),Trig_RepickRandom_Func013002002002())
endfunction
function Trig_RepickRandom_Func014001 takes nothing returns boolean
return(udg_boolean01)
endfunction
function Trig_RepickRandom_Func014003002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_RepickRandom_Func022001 takes nothing returns boolean
return(udg_boolean04)
endfunction
function Trig_RepickRandom_Actions takes nothing returns nothing
set udg_integer04=(1+GetPlayerId(GetTriggerPlayer()))
set udg_integers16[udg_integer04]=2
set udg_location01=GetRectCenter(udg_rect14)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=26
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_RepickRandom_Func004003001())then
set udg_integer11=bj_forLoopAIndex
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_RepickRandom_Func005C())then
if(Trig_RepickRandom_Func005Func001C())then
set udg_real01=(-36.+(I2R((udg_integer11-16))*36.))
call CreateNUnitsAtLocFacingLocBJ(1,udg_integers12[udg_integer11],Player(8),PolarProjectionBJ(udg_location01,410.,udg_real01),udg_location01)
else
set udg_real01=(-22.5+(I2R(udg_integer11)*22.5))
call CreateNUnitsAtLocFacingLocBJ(1,udg_integers12[udg_integer11],Player(8),PolarProjectionBJ(udg_location01,705.,udg_real01),udg_location01)
endif
call SetUnitInvulnerable(bj_lastCreatedUnit,true)
call SetUnitColor(bj_lastCreatedUnit,PLAYER_COLOR_RED)
endif
set udg_group05=GetUnitsOfPlayerAll(GetTriggerPlayer())
call ForGroupBJ(udg_group05,function Trig_RepickRandom_Func007002)
set udg_location01=GetRectCenter(udg_rect33)
set udg_group05=GetUnitsInRectMatching(udg_rect14,Condition(function Trig_RepickRandom_Func009002002))
call CreateNUnitsAtLoc(1,GetUnitTypeId(GroupPickRandomUnit(udg_group05)),GetTriggerPlayer(),udg_location01,225.)
call ForGroupBJ(GetUnitsOfPlayerMatching(GetTriggerPlayer(),Condition(function Trig_RepickRandom_Func011001002)),function Trig_RepickRandom_Func011002)
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),udg_location01,0)
set udg_group05=GetUnitsInRectMatching(udg_rect14,Condition(function Trig_RepickRandom_Func013002002))
if(Trig_RepickRandom_Func014001())then
else
call ForGroupBJ(udg_group05,function Trig_RepickRandom_Func014003002)
endif
call RemoveLocation(udg_location01)
call DestroyGroup(udg_group05)
call SelectUnitForPlayerSingle(udg_units01[udg_integer04],GetTriggerPlayer())
call UnitAddItemByIdSwapped('stwp',udg_units01[udg_integer04])
call UnitAddItemByIdSwapped('ankh',udg_units01[udg_integer04])
call UnitAddItemByIdSwapped('pghe',udg_units01[udg_integer04])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer08
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call UnitAddItemByIdSwapped('tpow',udg_units01[udg_integer04])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_RepickRandom_Func022001())then
call SetPlayerStateBJ(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD,100000)
else
call SetPlayerStateBJ(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD,1000)
endif
endfunction
function Trig_KickByColor_Func001001 takes nothing returns boolean
return(GetEventPlayerChatString()=="-kick blue")
endfunction
function Trig_KickByColor_Func002001 takes nothing returns boolean
return(GetEventPlayerChatString()=="-kick teal")
endfunction
function Trig_KickByColor_Func003001 takes nothing returns boolean
return(GetEventPlayerChatString()=="-kick purple")
endfunction
function Trig_KickByColor_Func004001 takes nothing returns boolean
return(GetEventPlayerChatString()=="-kick yellow")
endfunction
function Trig_KickByColor_Func005001 takes nothing returns boolean
return(GetEventPlayerChatString()=="-kick orange")
endfunction
function Trig_KickByColor_Func006001 takes nothing returns boolean
return(GetEventPlayerChatString()=="-kick green")
endfunction
function Trig_KickByColor_Func007001 takes nothing returns boolean
return(GetEventPlayerChatString()=="-kick pink")
endfunction
function Trig_KickByColor_Func015C takes nothing returns boolean
return(GetPlayerSlotState(Player(-1+(udg_integer12)))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_KickByColor_Actions takes nothing returns nothing
if(Trig_KickByColor_Func001001())then
set udg_integer12=2
endif
if(Trig_KickByColor_Func002001())then
set udg_integer12=3
endif
if(Trig_KickByColor_Func003001())then
set udg_integer12=4
endif
if(Trig_KickByColor_Func004001())then
set udg_integer12=5
endif
if(Trig_KickByColor_Func005001())then
set udg_integer12=6
endif
if(Trig_KickByColor_Func006001())then
set udg_integer12=7
endif
if(Trig_KickByColor_Func007001())then
set udg_integer12=8
endif
if(Trig_KickByColor_Func015C())then
call CustomDefeatBJ(Player(-1+(udg_integer12)),"YOU LOSE PLAY AGAIN!")
call ConditionalTriggerExecute(udg_trigger129)
endif
endfunction
function Trig_OpenWay_Func001C takes nothing returns boolean
return(udg_booleans01[2]==false)and(IsUnitDeadBJ(udg_unit13)==false)
endfunction
function Trig_OpenWay_Func002C takes nothing returns boolean
return(udg_booleans01[3]==false)and(IsUnitDeadBJ(udg_unit17)==false)
endfunction
function Trig_OpenWay_Func003C takes nothing returns boolean
return(udg_booleans01[4]==false)and(IsUnitDeadBJ(udg_unit21)==false)
endfunction
function Trig_OpenWay_Func004C takes nothing returns boolean
return(udg_booleans01[5]==false)and(IsUnitDeadBJ(udg_unit25)==false)
endfunction
function Trig_OpenWay_Func005C takes nothing returns boolean
return(udg_booleans01[6]==false)and(IsUnitDeadBJ(udg_unit26)==false)
endfunction
function Trig_OpenWay_Func006C takes nothing returns boolean
return(udg_booleans01[7]==false)and(IsUnitDeadBJ(udg_unit27)==false)
endfunction
function Trig_OpenWay_Func007C takes nothing returns boolean
return(udg_booleans01[8]==false)and(IsUnitDeadBJ(udg_unit28)==false)
endfunction
function Trig_OpenWay_Actions takes nothing returns nothing
if(Trig_OpenWay_Func001C())then
set udg_booleans01[2]=true
set udg_integer01=(udg_integer01+1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"Way |c0061FFFF2|c00FFFFFF is opened.")
call RemoveDestructable(udg_destructable02)
return
endif
if(Trig_OpenWay_Func002C())then
set udg_booleans01[3]=true
set udg_integer01=(udg_integer01+1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"Way |c0061FFFF3|c00FFFFFF is opened.")
call RemoveDestructable(udg_destructable03)
return
endif
if(Trig_OpenWay_Func003C())then
set udg_booleans01[4]=true
set udg_integer01=(udg_integer01+1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"Way |c0061FFFF4|c00FFFFFF is opened.")
call RemoveDestructable(udg_destructable04)
return
endif
if(Trig_OpenWay_Func004C())then
set udg_booleans01[5]=true
set udg_integer01=(udg_integer01+1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"Way |c0061FFFF5|c00FFFFFF is opened.")
call RemoveDestructable(udg_destructable05)
return
endif
if(Trig_OpenWay_Func005C())then
set udg_booleans01[6]=true
set udg_integer01=(udg_integer01+1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"Way |c0061FFFF6|c00FFFFFF is opened.")
call RemoveDestructable(udg_destructable06)
return
endif
if(Trig_OpenWay_Func006C())then
set udg_booleans01[7]=true
set udg_integer01=(udg_integer01+1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"Way |c0061FFFF7|c00FFFFFF is opened.")
call RemoveDestructable(udg_destructable07)
return
endif
if(Trig_OpenWay_Func007C())then
set udg_booleans01[8]=true
set udg_integer01=(udg_integer01+1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"Way |c0061FFFF8|c00FFFFFF is opened.")
call RemoveDestructable(udg_destructable08)
endif
endfunction
function Trig_CloseWay_Conditions takes nothing returns boolean
return(udg_integer01>udg_integer06)
endfunction
function Trig_CloseWay_Func002C takes nothing returns boolean
return(udg_booleans01[8])and(IsUnitDeadBJ(udg_unit28)==false)
endfunction
function Trig_CloseWay_Func003C takes nothing returns boolean
return(udg_booleans01[7])and(IsUnitDeadBJ(udg_unit27)==false)
endfunction
function Trig_CloseWay_Func004C takes nothing returns boolean
return(udg_booleans01[6])and(IsUnitDeadBJ(udg_unit26)==false)
endfunction
function Trig_CloseWay_Func005C takes nothing returns boolean
return(udg_booleans01[5])and(IsUnitDeadBJ(udg_unit25)==false)
endfunction
function Trig_CloseWay_Actions takes nothing returns nothing
if(Trig_CloseWay_Func002C())then
set udg_booleans01[8]=false
set udg_integer01=(udg_integer01-1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"Way |c0061FFFF8|c00FFFFFF is closed.")
return
endif
if(Trig_CloseWay_Func003C())then
set udg_booleans01[7]=false
set udg_integer01=(udg_integer01-1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"Way |c0061FFFF7|c00FFFFFF is closed.")
return
endif
if(Trig_CloseWay_Func004C())then
set udg_booleans01[6]=false
set udg_integer01=(udg_integer01-1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"Way |c0061FFFF6|c00FFFFFF is closed.")
return
endif
if(Trig_CloseWay_Func005C())then
set udg_booleans01[5]=false
set udg_integer01=(udg_integer01-1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"Way |c0061FFFF5|c00FFFFFF is closed.")
return
endif
endfunction
function Trig_ExtremeLevel_Func010C takes nothing returns boolean
return(StringLength(GetEventPlayerChatString())==10)or(StringLength(GetEventPlayerChatString())==11)or(StringLength(GetEventPlayerChatString())==12)
endfunction
function Trig_ExtremeLevel_Conditions takes nothing returns boolean
return(udg_integer07==5)and(GetTriggerPlayer()==Player(0))and(SubStringBJ(GetEventPlayerChatString(),1,9)=="-extreme ")and(S2I(SubStringBJ(GetEventPlayerChatString(),10,12))<=999)and(S2I(SubStringBJ(GetEventPlayerChatString(),10,12))>=5)and(Trig_ExtremeLevel_Func010C())
endfunction
function Trig_ExtremeLevel_Func002001 takes nothing returns boolean
return(udg_integer07>12)
endfunction
function Trig_ExtremeLevel_Actions takes nothing returns nothing
set udg_integer07=(S2I(SubStringBJ(GetEventPlayerChatString(),10,12))+1)
if(Trig_ExtremeLevel_Func002001())then
set udg_integer10=12
else
set udg_integer10=udg_integer07
endif
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,20.,("Extreme mode level is changed to |c0061FFFFLevel "+SubStringBJ(GetEventPlayerChatString(),10,12)))
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_Info_Func001Func001C takes nothing returns boolean
return(udg_boolean04)
endfunction
function Trig_Info_Func001C takes nothing returns boolean
return(udg_integer07>1)
endfunction
function Trig_Info_Func002Func002Func001C takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger34))
endfunction
function Trig_Info_Func002Func002C takes nothing returns boolean
return(udg_boolean03)
endfunction
function Trig_Info_Func002C takes nothing returns boolean
return(udg_boolean01)
endfunction
function Trig_Info_Func003Func001Func001C takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger120))
endfunction
function Trig_Info_Func003Func001C takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger119))
endfunction
function Trig_Info_Func003C takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger118))
endfunction
function Trig_Info_Actions takes nothing returns nothing
if(Trig_Info_Func001C())then
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,20.,("|c0061FFFFGame mode|c00FFFFFF: Extreme level "+I2S((udg_integer07-1))))
else
if(Trig_Info_Func001Func001C())then
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,20.,"|c0061FFFFGame mode|c00FFFFFF: Easy")
else
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,20.,"|c0061FFFFGame mode|c00FFFFFF: Normal")
endif
endif
if(Trig_Info_Func002C())then
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,20.,"|c0061FFFFHero mode|c00FFFFFF: Same heroes")
else
if(Trig_Info_Func002Func002C())then
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,20.,"|c0061FFFFHero mode|c00FFFFFF: Random heroes")
else
if(Trig_Info_Func002Func002Func001C())then
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,20.,"|c0061FFFFHero mode|c00FFFFFF: Dual heroes")
else
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,20.,"|c0061FFFFHero mode|c00FFFFFF: Normal")
endif
endif
endif
if(Trig_Info_Func003C())then
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,20.,"|c0061FFFFGame level|c00FFFFFF: 1")
else
if(Trig_Info_Func003Func001C())then
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,20.,"|c0061FFFFGame level|c00FFFFFF: 2")
else
if(Trig_Info_Func003Func001Func001C())then
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,20.,"|c0061FFFFGame level|c00FFFFFF: 3")
else
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,20.,"|c0061FFFFGame level|c00FFFFFF: 4")
endif
endif
endif
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,20.,("|c0061FFFFNumber of players|c00FFFFFF: "+I2S(udg_integer06)))
set udg_unit01=udg_units01[(1+GetPlayerId(GetTriggerPlayer()))]
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,20.,("|c0061FFFFMovement speed|c00FFFFFF: "+I2S(R2I(GetUnitMoveSpeed(udg_unit01)))))
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,20.,("|c0061FFFFMax life|c00FFFFFF: "+I2S(R2I(GetUnitStateSwap(UNIT_STATE_MAX_LIFE,udg_unit01)))))
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,20.,("|c0061FFFFMax mana|c00FFFFFF: "+I2S(R2I(GetUnitStateSwap(UNIT_STATE_MAX_MANA,udg_unit01)))))
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,20.,("|c0061FFFFWave kills|c00FFFFFF: "+I2S(udg_integers13[(1+GetPlayerId(GetTriggerPlayer()))])))
set udg_unit01=null
endfunction
function Trig_Fog_Func001C takes nothing returns boolean
return(IsFogEnabled())and(IsFogMaskEnabled())
endfunction
function Trig_Fog_Actions takes nothing returns nothing
if(Trig_Fog_Func001C())then
call FogEnableOff()
call FogMaskEnableOff()
else
call FogEnableOn()
call FogMaskEnableOn()
endif
endfunction
function Trig_EnableAbilities_Conditions takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO))and(GetOwningPlayer(GetTriggerUnit())!=Player(8))and(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_USER)
endfunction
function Trig_EnableAbilities_Func001001 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='Hjai')
endfunction
function Trig_EnableAbilities_Func005001 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='Oshd')
endfunction
function Trig_EnableAbilities_Func006001 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='Udre')
endfunction
function Trig_EnableAbilities_Func007001 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='H000')
endfunction
function Trig_EnableAbilities_Func008001 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='Obla')
endfunction
function Trig_EnableAbilities_Func009001 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='Harf')
endfunction
function Trig_EnableAbilities_Func010001001 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='Hblm')
endfunction
function Trig_EnableAbilities_Func010001002 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='Npbm')
endfunction
function Trig_EnableAbilities_Func010001 takes nothing returns boolean
return GetBooleanOr(Trig_EnableAbilities_Func010001001(),Trig_EnableAbilities_Func010001002())
endfunction
function Trig_EnableAbilities_Func011001 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='Npbm')
endfunction
function Trig_EnableAbilities_Func012001 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='N00W')
endfunction
function Trig_EnableAbilities_Func013001 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='H009')
endfunction
function Trig_EnableAbilities_Func014001001 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='H009')
endfunction
function Trig_EnableAbilities_Func014001002 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='H002')
endfunction
function Trig_EnableAbilities_Func014001 takes nothing returns boolean
return GetBooleanOr(Trig_EnableAbilities_Func014001001(),Trig_EnableAbilities_Func014001002())
endfunction
function Trig_EnableAbilities_Func015C takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='Npbm')
endfunction
function Trig_EnableAbilities_Actions takes nothing returns nothing
if(Trig_EnableAbilities_Func001001())then
call EnableTrigger(udg_trigger165)
endif
if(Trig_EnableAbilities_Func005001())then
call EnableTrigger(udg_trigger155)
endif
if(Trig_EnableAbilities_Func006001())then
call EnableTrigger(udg_trigger160)
endif
if(Trig_EnableAbilities_Func007001())then
call EnableTrigger(udg_trigger161)
endif
if(Trig_EnableAbilities_Func008001())then
call EnableTrigger(udg_trigger163)
endif
if(Trig_EnableAbilities_Func009001())then
call EnableTrigger(udg_trigger157)
endif
if(Trig_EnableAbilities_Func010001())then
call EnableTrigger(udg_trigger156)
endif
if(Trig_EnableAbilities_Func011001())then
call EnableTrigger(udg_trigger166)
endif
if(Trig_EnableAbilities_Func012001())then
call EnableTrigger(udg_trigger167)
endif
if(Trig_EnableAbilities_Func013001())then
call EnableTrigger(udg_trigger164)
endif
if(Trig_EnableAbilities_Func014001())then
call EnableTrigger(udg_trigger162)
endif
if(Trig_EnableAbilities_Func015C())then
call EnableTrigger(udg_trigger158)
call EnableTrigger(udg_trigger159)
endif
endfunction
function Trig_Level20Abilities_Conditions takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==20)and(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO))and(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_USER)
endfunction
function Trig_Level20Abilities_Func001001 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='Hvwd')
endfunction
function Trig_Level20Abilities_Func002001 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='Nbst')
endfunction
function Trig_Level20Abilities_Func003001 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='Hamg')
endfunction
function Trig_Level20Abilities_Func004001 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='Harf')
endfunction
function Trig_Level20Abilities_Func005001 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='Nplh')
endfunction
function Trig_Level20Abilities_Func006001 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='Emoo')
endfunction
function Trig_Level20Abilities_Func007001 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='H002')
endfunction
function Trig_Level20Abilities_Func008001 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='Obla')
endfunction
function Trig_Level20Abilities_Func009001 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='Ucrl')
endfunction
function Trig_Level20Abilities_Func010001 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='Ulic')
endfunction
function Trig_Level20Abilities_Func011001 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='H007')
endfunction
function Trig_Level20Abilities_Func012001 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='Npbm')
endfunction
function Trig_Level20Abilities_Func013001 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='H000')
endfunction
function Trig_Level20Abilities_Func014001 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='Hjai')
endfunction
function Trig_Level20Abilities_Func015001 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='Hblm')
endfunction
function Trig_Level20Abilities_Func016C takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='Hpal')
endfunction
function Trig_Level20Abilities_Func017Func003001 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='Udre')
endfunction
function Trig_Level20Abilities_Func017Func003002 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='N00W')
endfunction
function Trig_Level20Abilities_Func017C takes nothing returns boolean
return(GetBooleanOr(Trig_Level20Abilities_Func017Func003001(),Trig_Level20Abilities_Func017Func003002()))
endfunction
function Trig_Level20Abilities_Func018C takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='H009')
endfunction
function Trig_Level20Abilities_Func019C takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='Otch')
endfunction
function Trig_Level20Abilities_Func020C takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='Ewar')
endfunction
function Trig_Level20Abilities_Func021Func004001 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='Edem')
endfunction
function Trig_Level20Abilities_Func021Func004002 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='Edmm')
endfunction
function Trig_Level20Abilities_Func021C takes nothing returns boolean
return(GetBooleanOr(Trig_Level20Abilities_Func021Func004001(),Trig_Level20Abilities_Func021Func004002()))
endfunction
function Trig_Level20Abilities_Func022Func001C takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='Nklj')or(GetUnitTypeId(GetTriggerUnit())=='U006')or(GetUnitTypeId(GetTriggerUnit())=='U007')or(GetUnitTypeId(GetTriggerUnit())=='U008')or(GetUnitTypeId(GetTriggerUnit())=='U009')
endfunction
function Trig_Level20Abilities_Func022C takes nothing returns boolean
return(Trig_Level20Abilities_Func022Func001C())
endfunction
function Trig_Level20Abilities_Func023C takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='Hmkg')
endfunction
function Trig_Level20Abilities_Func024C takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='Oshd')
endfunction
function Trig_Level20Abilities_Func025Func002C takes nothing returns boolean
return(GetTriggerUnit()==udg_units01[((1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))+8)])
endfunction
function Trig_Level20Abilities_Func025Func016C takes nothing returns boolean
return(udg_units01[udg_integer04]==udg_units01[((1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))+8)])
endfunction
function Trig_Level20Abilities_Func025C takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='H008')
endfunction
function Trig_Level20Abilities_Func026001 takes nothing returns boolean
return(GetTriggerUnit()==udg_units01[((1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))+8)])
endfunction
function Trig_Level20Abilities_Actions takes nothing returns nothing
if(Trig_Level20Abilities_Func001001())then
call UnitAddAbility(GetTriggerUnit(),'A013')
endif
if(Trig_Level20Abilities_Func002001())then
call UnitAddAbility(GetTriggerUnit(),'A02W')
endif
if(Trig_Level20Abilities_Func003001())then
call UnitAddAbility(GetTriggerUnit(),'A02Y')
endif
if(Trig_Level20Abilities_Func004001())then
call UnitAddAbility(GetTriggerUnit(),'A01H')
endif
if(Trig_Level20Abilities_Func005001())then
call UnitAddAbility(GetTriggerUnit(),'A019')
endif
if(Trig_Level20Abilities_Func006001())then
call UnitAddAbility(GetTriggerUnit(),'A02U')
endif
if(Trig_Level20Abilities_Func007001())then
call UnitAddAbility(GetTriggerUnit(),'A02T')
endif
if(Trig_Level20Abilities_Func008001())then
call UnitAddAbility(GetTriggerUnit(),'A01F')
endif
if(Trig_Level20Abilities_Func009001())then
call UnitAddAbility(GetTriggerUnit(),'A00Q')
endif
if(Trig_Level20Abilities_Func010001())then
call UnitAddAbility(GetTriggerUnit(),'A006')
endif
if(Trig_Level20Abilities_Func011001())then
call UnitAddAbility(GetTriggerUnit(),'A027')
endif
if(Trig_Level20Abilities_Func012001())then
call UnitAddAbility(GetTriggerUnit(),'ANto')
endif
if(Trig_Level20Abilities_Func013001())then
call UnitAddAbility(GetTriggerUnit(),'A007')
endif
if(Trig_Level20Abilities_Func014001())then
call UnitAddAbility(GetTriggerUnit(),'A022')
endif
if(Trig_Level20Abilities_Func015001())then
call UnitAddAbility(GetTriggerUnit(),'A00S')
endif
if(Trig_Level20Abilities_Func016C())then
call UnitAddAbility(GetTriggerUnit(),'A010')
call EnableTrigger(udg_trigger149)
endif
if(Trig_Level20Abilities_Func017C())then
call UnitAddAbility(GetTriggerUnit(),'A00X')
endif
if(Trig_Level20Abilities_Func018C())then
call UnitAddAbility(GetTriggerUnit(),'A00B')
call UnitAddAbility(GetTriggerUnit(),'Alit')
call UnitAddAbility(GetTriggerUnit(),'AItn')
endif
if(Trig_Level20Abilities_Func019C())then
call UnitRemoveAbility(GetTriggerUnit(),'ACro')
call UnitAddAbility(GetTriggerUnit(),'AOre')
call UnitAddAbility(GetTriggerUnit(),'A03Q')
call UnitMakeAbilityPermanent(GetTriggerUnit(),true,'AOre')
call UnitMakeAbilityPermanent(GetTriggerUnit(),true,'A03Q')
call EnableTrigger(udg_trigger152)
call EnableTrigger(udg_trigger153)
endif
if(Trig_Level20Abilities_Func020C())then
call UnitAddAbility(GetTriggerUnit(),'A023')
call UnitAddAbility(GetTriggerUnit(),'Apiv')
endif
if(Trig_Level20Abilities_Func021C())then
call UnitAddAbility(GetTriggerUnit(),'A02K')
call UnitMakeAbilityPermanent(GetTriggerUnit(),true,'A02K')
endif
if(Trig_Level20Abilities_Func022C())then
call UnitAddAbility(GetTriggerUnit(),'A03O')
call UnitMakeAbilityPermanent(GetTriggerUnit(),true,'A03O')
endif
if(Trig_Level20Abilities_Func023C())then
call UnitAddAbility(GetTriggerUnit(),'A017')
call UnitMakeAbilityPermanent(GetTriggerUnit(),true,'A017')
call EnableTrigger(udg_trigger150)
call EnableTrigger(udg_trigger151)
endif
if(Trig_Level20Abilities_Func024C())then
call UnitAddAbility(GetTriggerUnit(),'A03F')
call EnableTrigger(udg_trigger154)
endif
if(Trig_Level20Abilities_Func025C())then
call TriggerSleepAction(.02)
if(Trig_Level20Abilities_Func025Func002C())then
set udg_integer04=((1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))+8)
else
set udg_integer04=(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))
endif
call ReplaceUnitBJ(udg_units01[udg_integer04],'H00A',1)
call ModifyHeroStat(0,bj_lastReplacedUnit,2,GetHeroStatBJ(0,udg_units01[udg_integer04],false))
call ModifyHeroStat(1,bj_lastReplacedUnit,2,GetHeroStatBJ(1,udg_units01[udg_integer04],false))
call ModifyHeroStat(2,bj_lastReplacedUnit,2,GetHeroStatBJ(2,udg_units01[udg_integer04],false))
set udg_units01[udg_integer04]=bj_lastReplacedUnit
call TriggerSleepAction(.02)
call SelectHeroSkill(bj_lastReplacedUnit,'A03B')
call SelectHeroSkill(bj_lastReplacedUnit,'A03C')
call SelectHeroSkill(bj_lastReplacedUnit,'A03A')
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SelectHeroSkill(bj_lastReplacedUnit,'A03D')
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SelectHeroSkill(bj_lastReplacedUnit,'AEar')
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(.02)
call UnitAddAbility(bj_lastReplacedUnit,'A039')
if(Trig_Level20Abilities_Func025Func016C())then
call PauseUnit(udg_units01[((1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))+8)],true)
else
call SelectUnitForPlayerSingle(bj_lastReplacedUnit,Player(-1+((1+GetPlayerId(GetOwningPlayer(GetTriggerUnit()))))))
endif
endif
if(Trig_Level20Abilities_Func026001())then
return
endif
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,10.,"Your hero is level |c0061FFFF20|c00FFFFFF and he get a new ability.")
endfunction
function Trig_FullRestoration_Conditions takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I002')
endfunction
function Trig_FullRestoration_Actions takes nothing returns nothing
call SetUnitLifePercentBJ(GetTriggerUnit(),'d')
call SetUnitManaPercentBJ(GetTriggerUnit(),'d')
endfunction
function Trig_LightFrenzy_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A010')and(GetUnitTypeId(GetTriggerUnit())=='Hpal')and(GetUnitLevel(GetTriggerUnit())>=20)
endfunction
function Trig_LightFrenzy_Actions takes nothing returns nothing
call UnitResetCooldown(GetSpellTargetUnit())
endfunction
function Trig_ThunderClap_Func001001 takes nothing returns boolean
return(GetIssuedOrderId()==852096)
endfunction
function Trig_ThunderClap_Func001002 takes nothing returns boolean
return(GetSpellAbilityId()=='AHtc')
endfunction
function Trig_ThunderClap_Conditions takes nothing returns boolean
return(GetBooleanOr(Trig_ThunderClap_Func001001(),Trig_ThunderClap_Func001002()))and(GetUnitTypeId(GetTriggerUnit())=='Hmkg')and(GetUnitLevel(GetTriggerUnit())>=20)
endfunction
function Trig_ThunderClap_Func006C takes nothing returns boolean
return(GetIssuedOrderId()==852096)
endfunction
function Trig_ThunderClap_Actions takes nothing returns nothing
if(Trig_ThunderClap_Func006C())then
call UnitAddAbility(GetTriggerUnit(),'A04P')
else
call IssueImmediateOrderById(GetTriggerUnit(),852253)
call TriggerSleepAction(.5)
call UnitRemoveAbility(GetTriggerUnit(),'A04P')
endif
endfunction
function Trig_StormBolt_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='AHtb')and(GetUnitTypeId(GetTriggerUnit())=='Hmkg')and(GetUnitLevel(GetTriggerUnit())>=20)
endfunction
function Trig_StormBolt_Actions takes nothing returns nothing
call UnitAddAbility(GetTriggerUnit(),'A02V')
call TriggerSleepAction(.1)
call IssueTargetOrderById(GetTriggerUnit(),852252,GetSpellTargetUnit())
call TriggerSleepAction(.5)
call UnitRemoveAbility(GetTriggerUnit(),'A02V')
endfunction
function Trig_WarStomp_Func001001 takes nothing returns boolean
return(GetIssuedOrderId()==852127)
endfunction
function Trig_WarStomp_Func001002 takes nothing returns boolean
return(GetSpellAbilityId()=='AOws')
endfunction
function Trig_WarStomp_Func004001 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='Otch')
endfunction
function Trig_WarStomp_Func004002 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='O007')
endfunction
function Trig_WarStomp_Conditions takes nothing returns boolean
return(GetBooleanOr(Trig_WarStomp_Func001001(),Trig_WarStomp_Func001002()))and(GetBooleanOr(Trig_WarStomp_Func004001(),Trig_WarStomp_Func004002()))and(GetUnitLevel(GetTriggerUnit())>=20)and(UnitHasBuffBJ(GetTriggerUnit(),'B00N'))
endfunction
function Trig_WarStomp_Func007C takes nothing returns boolean
return(GetIssuedOrderId()==852127)
endfunction
function Trig_WarStomp_Actions takes nothing returns nothing
if(Trig_WarStomp_Func007C())then
call UnitAddAbility(GetTriggerUnit(),'A01O')
else
call IssueImmediateOrderById(GetTriggerUnit(),852253)
call TriggerSleepAction(.5)
call UnitRemoveAbility(GetTriggerUnit(),'A01O')
endif
endfunction
function Trig_Shockwave_Func007001 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='Otch')
endfunction
function Trig_Shockwave_Func007002 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='O007')
endfunction
function Trig_Shockwave_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='AOsh')and(GetBooleanOr(Trig_Shockwave_Func007001(),Trig_Shockwave_Func007002()))and(GetUnitLevel(GetTriggerUnit())>=20)and(UnitHasBuffBJ(GetTriggerUnit(),'B00N'))
endfunction
function Trig_Shockwave_Func003C takes nothing returns boolean
return(IsUnitInRange(GetSpellTargetUnit(),GetTriggerUnit(),1000.))
endfunction
function Trig_Shockwave_Actions takes nothing returns nothing
call UnitAddAbility(GetTriggerUnit(),'A04Q')
call TriggerSleepAction(.1)
if(Trig_Shockwave_Func003C())then
call IssuePointOrderByIdLoc(GetTriggerUnit(),852218,GetUnitLoc(GetSpellTargetUnit()))
else
call IssuePointOrderByIdLoc(GetTriggerUnit(),852218,GetSpellTargetLoc())
endif
call TriggerSleepAction(.5)
call UnitRemoveAbility(GetTriggerUnit(),'A04Q')
endfunction
function Trig_Hex_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A03F')and(GetUnitTypeId(GetTriggerUnit())=='Oshd')and(GetUnitLevel(GetTriggerUnit())>=20)
endfunction
function Trig_Hex_Actions takes nothing returns nothing
set udg_unit01=GetSpellTargetUnit()
set udg_location01=GetUnitLoc(udg_unit01)
set udg_player01=GetOwningPlayer(GetTriggerUnit())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLocFacingLocBJ(1,'o000',udg_player01,PolarProjectionBJ(udg_location01,200.,(60.*I2R(bj_forLoopAIndex))),udg_location01)
call UnitApplyTimedLifeBJ(8.,'Bhwd',bj_lastCreatedUnit)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_location01)
set udg_unit01=null
endfunction
function Trig_Bomb_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='n00G')
endfunction
function Trig_Bomb_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Human\\FlameStrike\\FlameStrike1.mdl")
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
endfunction
function Trig_Armor_Func002001 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='Hblm')
endfunction
function Trig_Armor_Func002002 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='Npbm')
endfunction
function Trig_Armor_Func003001 takes nothing returns boolean
return(GetLearnedSkill()=='ANic')
endfunction
function Trig_Armor_Func003002 takes nothing returns boolean
return(GetLearnedSkill()=='A03J')
endfunction
function Trig_Armor_Func004001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('ANic',GetTriggerUnit())==1)
endfunction
function Trig_Armor_Func004002 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A03J',GetTriggerUnit())==1)
endfunction
function Trig_Armor_Conditions takes nothing returns boolean
return(GetBooleanOr(Trig_Armor_Func002001(),Trig_Armor_Func002002()))and(GetBooleanOr(Trig_Armor_Func003001(),Trig_Armor_Func003002()))and(GetBooleanOr(Trig_Armor_Func004001(),Trig_Armor_Func004002()))
endfunction
function Trig_Armor_Actions takes nothing returns nothing
call UnitAddAbility(GetTriggerUnit(),'AId5')
endfunction
function Trig_HolyLight_Conditions takes nothing returns boolean
return(GetUnitCurrentOrder(GetTriggerUnit())==852183)and(GetUnitTypeId(GetTriggerUnit())=='Harf')
endfunction
function Trig_HolyLight_Func003002003001 takes nothing returns boolean
return(IsPlayerAlly(GetOwningPlayer(GetFilterUnit()),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_HolyLight_Func003002003002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_HolyLight_Func003002003 takes nothing returns boolean
return GetBooleanAnd(Trig_HolyLight_Func003002003001(),Trig_HolyLight_Func003002003002())
endfunction
function Trig_HolyLight_Func005Func001001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A01S',GetTriggerUnit())==1)
endfunction
function Trig_HolyLight_Func005Func002001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A01S',GetTriggerUnit())==2)
endfunction
function Trig_HolyLight_Func005Func003001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A01S',GetTriggerUnit())==3)
endfunction
function Trig_HolyLight_Func005Func004001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A01S',GetTriggerUnit())==4)
endfunction
function Trig_HolyLight_Func005A takes nothing returns nothing
if(Trig_HolyLight_Func005Func001001())then
call SetWidgetLife(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())+2500.))
endif
if(Trig_HolyLight_Func005Func002001())then
call SetWidgetLife(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())+5000.))
endif
if(Trig_HolyLight_Func005Func003001())then
call SetWidgetLife(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())+10000.))
endif
if(Trig_HolyLight_Func005Func004001())then
call SetWidgetLife(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())+20000.))
endif
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\HolyBolt\\HolyBoltSpecialArt.mdl")
call DestroyEffect(bj_lastCreatedEffect)
endfunction
function Trig_HolyLight_Actions takes nothing returns nothing
call TriggerSleepAction(.8)
set udg_location01=GetUnitLoc(GetTriggerUnit())
set udg_group05=GetUnitsInRangeOfLocMatching(500.,udg_location01,Condition(function Trig_HolyLight_Func003002003))
call RemoveLocation(udg_location01)
call ForGroupBJ(udg_group05,function Trig_HolyLight_Func005A)
call DestroyGroup(udg_group05)
endfunction
function Trig_Earthquake_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='AOeq')
endfunction
function Trig_Earthquake_Func003C takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('AOeq',GetTriggerUnit())==2)
endfunction
function Trig_Earthquake_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'n00E',GetOwningPlayer(GetTriggerUnit()),GetSpellTargetLoc(),.0)
call UnitApplyTimedLifeBJ(20.,'BTLF',bj_lastCreatedUnit)
if(Trig_Earthquake_Func003C())then
call UnitAddAbility(bj_lastCreatedUnit,'A031')
else
call UnitAddAbility(bj_lastCreatedUnit,'A04A')
endif
endfunction
function Trig_EarthquakeStop_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='AOeq')
endfunction
function Trig_EarthquakeStop_Func002002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_EarthquakeStop_Actions takes nothing returns nothing
set udg_group05=GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00E')
call ForGroupBJ(udg_group05,function Trig_EarthquakeStop_Func002002)
call DestroyGroup(udg_group05)
endfunction
function Trig_AuraOfBlight_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='Udre')and(GetLearnedSkill()=='A034')
endfunction
function Trig_AuraOfBlight_Func001001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A034',GetTriggerUnit())==2)
endfunction
function Trig_AuraOfBlight_Func002001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A034',GetTriggerUnit())==3)
endfunction
function Trig_AuraOfBlight_Func003001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A034',GetTriggerUnit())==4)
endfunction
function Trig_AuraOfBlight_Func004001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A034',GetTriggerUnit())==1)
endfunction
function Trig_AuraOfBlight_Func005001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A034',GetTriggerUnit())==2)
endfunction
function Trig_AuraOfBlight_Func006001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A034',GetTriggerUnit())==3)
endfunction
function Trig_AuraOfBlight_Func007001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A034',GetTriggerUnit())==4)
endfunction
function Trig_AuraOfBlight_Actions takes nothing returns nothing
if(Trig_AuraOfBlight_Func001001())then
call UnitRemoveAbility(GetTriggerUnit(),'A03E')
endif
if(Trig_AuraOfBlight_Func002001())then
call UnitRemoveAbility(GetTriggerUnit(),'A03U')
endif
if(Trig_AuraOfBlight_Func003001())then
call UnitRemoveAbility(GetTriggerUnit(),'A03V')
endif
if(Trig_AuraOfBlight_Func004001())then
call UnitAddAbility(GetTriggerUnit(),'A03E')
endif
if(Trig_AuraOfBlight_Func005001())then
call UnitAddAbility(GetTriggerUnit(),'A03U')
endif
if(Trig_AuraOfBlight_Func006001())then
call UnitAddAbility(GetTriggerUnit(),'A03V')
endif
if(Trig_AuraOfBlight_Func007001())then
call UnitAddAbility(GetTriggerUnit(),'A03W')
endif
endfunction
function Trig_CommandAura_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='H000')and(GetLearnedSkill()=='A004')
endfunction
function Trig_CommandAura_Func001001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A004',GetTriggerUnit())==2)
endfunction
function Trig_CommandAura_Func002001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A004',GetTriggerUnit())==3)
endfunction
function Trig_CommandAura_Func003001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A004',GetTriggerUnit())==4)
endfunction
function Trig_CommandAura_Func004001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A004',GetTriggerUnit())==1)
endfunction
function Trig_CommandAura_Func005001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A004',GetTriggerUnit())==2)
endfunction
function Trig_CommandAura_Func006001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A004',GetTriggerUnit())==3)
endfunction
function Trig_CommandAura_Func007001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A004',GetTriggerUnit())==4)
endfunction
function Trig_CommandAura_Actions takes nothing returns nothing
if(Trig_CommandAura_Func001001())then
call UnitRemoveAbility(GetTriggerUnit(),'A030')
endif
if(Trig_CommandAura_Func002001())then
call UnitRemoveAbility(GetTriggerUnit(),'A042')
endif
if(Trig_CommandAura_Func003001())then
call UnitRemoveAbility(GetTriggerUnit(),'A043')
endif
if(Trig_CommandAura_Func004001())then
call UnitAddAbility(GetTriggerUnit(),'A030')
endif
if(Trig_CommandAura_Func005001())then
call UnitAddAbility(GetTriggerUnit(),'A042')
endif
if(Trig_CommandAura_Func006001())then
call UnitAddAbility(GetTriggerUnit(),'A043')
endif
if(Trig_CommandAura_Func007001())then
call UnitAddAbility(GetTriggerUnit(),'A044')
endif
endfunction
function Trig_LifeRegenerationAura_Func008001 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='H002')
endfunction
function Trig_LifeRegenerationAura_Func008002 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='H009')
endfunction
function Trig_LifeRegenerationAura_Conditions takes nothing returns boolean
return(GetBooleanOr(Trig_LifeRegenerationAura_Func008001(),Trig_LifeRegenerationAura_Func008002()))and(GetLearnedSkill()=='A03Y')
endfunction
function Trig_LifeRegenerationAura_Func001001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A03Y',GetTriggerUnit())==2)
endfunction
function Trig_LifeRegenerationAura_Func002001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A03Y',GetTriggerUnit())==3)
endfunction
function Trig_LifeRegenerationAura_Func003001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A03Y',GetTriggerUnit())==4)
endfunction
function Trig_LifeRegenerationAura_Func004001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A03Y',GetTriggerUnit())==1)
endfunction
function Trig_LifeRegenerationAura_Func005001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A03Y',GetTriggerUnit())==2)
endfunction
function Trig_LifeRegenerationAura_Func006001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A03Y',GetTriggerUnit())==3)
endfunction
function Trig_LifeRegenerationAura_Func007001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A03Y',GetTriggerUnit())==4)
endfunction
function Trig_LifeRegenerationAura_Actions takes nothing returns nothing
if(Trig_LifeRegenerationAura_Func001001())then
call UnitRemoveAbility(GetTriggerUnit(),'A03X')
endif
if(Trig_LifeRegenerationAura_Func002001())then
call UnitRemoveAbility(GetTriggerUnit(),'A03Z')
endif
if(Trig_LifeRegenerationAura_Func003001())then
call UnitRemoveAbility(GetTriggerUnit(),'A040')
endif
if(Trig_LifeRegenerationAura_Func004001())then
call UnitAddAbility(GetTriggerUnit(),'A03X')
endif
if(Trig_LifeRegenerationAura_Func005001())then
call UnitAddAbility(GetTriggerUnit(),'A03Z')
endif
if(Trig_LifeRegenerationAura_Func006001())then
call UnitAddAbility(GetTriggerUnit(),'A040')
endif
if(Trig_LifeRegenerationAura_Func007001())then
call UnitAddAbility(GetTriggerUnit(),'A041')
endif
endfunction
function Trig_WarDrumsAura_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='Obla')and(GetLearnedSkill()=='A045')
endfunction
function Trig_WarDrumsAura_Func001001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A045',GetTriggerUnit())==2)
endfunction
function Trig_WarDrumsAura_Func002001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A045',GetTriggerUnit())==3)
endfunction
function Trig_WarDrumsAura_Func003001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A045',GetTriggerUnit())==4)
endfunction
function Trig_WarDrumsAura_Func004001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A045',GetTriggerUnit())==1)
endfunction
function Trig_WarDrumsAura_Func005001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A045',GetTriggerUnit())==2)
endfunction
function Trig_WarDrumsAura_Func006001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A045',GetTriggerUnit())==3)
endfunction
function Trig_WarDrumsAura_Func007001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A045',GetTriggerUnit())==4)
endfunction
function Trig_WarDrumsAura_Actions takes nothing returns nothing
if(Trig_WarDrumsAura_Func001001())then
call UnitRemoveAbility(GetTriggerUnit(),'A033')
endif
if(Trig_WarDrumsAura_Func002001())then
call UnitRemoveAbility(GetTriggerUnit(),'A046')
endif
if(Trig_WarDrumsAura_Func003001())then
call UnitRemoveAbility(GetTriggerUnit(),'A047')
endif
if(Trig_WarDrumsAura_Func004001())then
call UnitAddAbility(GetTriggerUnit(),'A033')
endif
if(Trig_WarDrumsAura_Func005001())then
call UnitAddAbility(GetTriggerUnit(),'A046')
endif
if(Trig_WarDrumsAura_Func006001())then
call UnitAddAbility(GetTriggerUnit(),'A047')
endif
if(Trig_WarDrumsAura_Func007001())then
call UnitAddAbility(GetTriggerUnit(),'A048')
endif
endfunction
function Trig_PermanentLightning_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='H009')and(GetLearnedSkill()=='A03I')
endfunction
function Trig_PermanentLightning_Func001001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A03I',GetTriggerUnit())==2)
endfunction
function Trig_PermanentLightning_Func002001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A03I',GetTriggerUnit())==3)
endfunction
function Trig_PermanentLightning_Func003001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A03I',GetTriggerUnit())==4)
endfunction
function Trig_PermanentLightning_Func004001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A03I',GetTriggerUnit())==1)
endfunction
function Trig_PermanentLightning_Func005001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A03I',GetTriggerUnit())==2)
endfunction
function Trig_PermanentLightning_Func006001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A03I',GetTriggerUnit())==3)
endfunction
function Trig_PermanentLightning_Func007001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A03I',GetTriggerUnit())==4)
endfunction
function Trig_PermanentLightning_Actions takes nothing returns nothing
if(Trig_PermanentLightning_Func001001())then
call UnitRemoveAbility(GetTriggerUnit(),'A04F')
endif
if(Trig_PermanentLightning_Func002001())then
call UnitRemoveAbility(GetTriggerUnit(),'A04E')
endif
if(Trig_PermanentLightning_Func003001())then
call UnitRemoveAbility(GetTriggerUnit(),'A04B')
endif
if(Trig_PermanentLightning_Func004001())then
call UnitAddAbility(GetTriggerUnit(),'A04F')
endif
if(Trig_PermanentLightning_Func005001())then
call UnitAddAbility(GetTriggerUnit(),'A04E')
endif
if(Trig_PermanentLightning_Func006001())then
call UnitAddAbility(GetTriggerUnit(),'A04B')
endif
if(Trig_PermanentLightning_Func007001())then
call UnitAddAbility(GetTriggerUnit(),'A04D')
endif
endfunction
function Trig_FrostParalysisAura_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='Hjai')and(GetLearnedSkill()=='A02O')
endfunction
function Trig_FrostParalysisAura_Func001001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A02O',GetTriggerUnit())==2)
endfunction
function Trig_FrostParalysisAura_Func002001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A02O',GetTriggerUnit())==3)
endfunction
function Trig_FrostParalysisAura_Func003001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A02O',GetTriggerUnit())==4)
endfunction
function Trig_FrostParalysisAura_Func004001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A02O',GetTriggerUnit())==1)
endfunction
function Trig_FrostParalysisAura_Func005001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A02O',GetTriggerUnit())==2)
endfunction
function Trig_FrostParalysisAura_Func006001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A02O',GetTriggerUnit())==3)
endfunction
function Trig_FrostParalysisAura_Func007001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A02O',GetTriggerUnit())==4)
endfunction
function Trig_FrostParalysisAura_Actions takes nothing returns nothing
if(Trig_FrostParalysisAura_Func001001())then
call UnitRemoveAbility(GetTriggerUnit(),'A04S')
endif
if(Trig_FrostParalysisAura_Func002001())then
call UnitRemoveAbility(GetTriggerUnit(),'A04T')
endif
if(Trig_FrostParalysisAura_Func003001())then
call UnitRemoveAbility(GetTriggerUnit(),'A04U')
endif
if(Trig_FrostParalysisAura_Func004001())then
call UnitAddAbility(GetTriggerUnit(),'A04S')
endif
if(Trig_FrostParalysisAura_Func005001())then
call UnitAddAbility(GetTriggerUnit(),'A04T')
endif
if(Trig_FrostParalysisAura_Func006001())then
call UnitAddAbility(GetTriggerUnit(),'A04U')
endif
if(Trig_FrostParalysisAura_Func007001())then
call UnitAddAbility(GetTriggerUnit(),'A04V')
endif
endfunction
function Trig_Immolation_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='Npbm')and(GetLearnedSkill()=='A03J')
endfunction
function Trig_Immolation_Func001001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A03J',GetTriggerUnit())==2)
endfunction
function Trig_Immolation_Func002001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A03J',GetTriggerUnit())==3)
endfunction
function Trig_Immolation_Func003001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A03J',GetTriggerUnit())==4)
endfunction
function Trig_Immolation_Func004001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A03J',GetTriggerUnit())==1)
endfunction
function Trig_Immolation_Func005001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A03J',GetTriggerUnit())==2)
endfunction
function Trig_Immolation_Func006001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A03J',GetTriggerUnit())==3)
endfunction
function Trig_Immolation_Func007001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A03J',GetTriggerUnit())==4)
endfunction
function Trig_Immolation_Actions takes nothing returns nothing
if(Trig_Immolation_Func001001())then
call UnitRemoveAbility(GetTriggerUnit(),'A00R')
endif
if(Trig_Immolation_Func002001())then
call UnitRemoveAbility(GetTriggerUnit(),'A03R')
endif
if(Trig_Immolation_Func003001())then
call UnitRemoveAbility(GetTriggerUnit(),'A04L')
endif
if(Trig_Immolation_Func004001())then
call UnitAddAbility(GetTriggerUnit(),'A00R')
endif
if(Trig_Immolation_Func005001())then
call UnitAddAbility(GetTriggerUnit(),'A03R')
endif
if(Trig_Immolation_Func006001())then
call UnitAddAbility(GetTriggerUnit(),'A04L')
endif
if(Trig_Immolation_Func007001())then
call UnitAddAbility(GetTriggerUnit(),'A04M')
endif
endfunction
function Trig_ImmolationGhost_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='N00W')and(GetLearnedSkill()=='A04G')
endfunction
function Trig_ImmolationGhost_Func001001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A04G',GetTriggerUnit())==2)
endfunction
function Trig_ImmolationGhost_Func002001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A04G',GetTriggerUnit())==3)
endfunction
function Trig_ImmolationGhost_Func003001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A04G',GetTriggerUnit())==4)
endfunction
function Trig_ImmolationGhost_Func004001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A04G',GetTriggerUnit())==1)
endfunction
function Trig_ImmolationGhost_Func005001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A04G',GetTriggerUnit())==2)
endfunction
function Trig_ImmolationGhost_Func006001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A04G',GetTriggerUnit())==3)
endfunction
function Trig_ImmolationGhost_Func007001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A04G',GetTriggerUnit())==4)
endfunction
function Trig_ImmolationGhost_Actions takes nothing returns nothing
if(Trig_ImmolationGhost_Func001001())then
call UnitRemoveAbility(GetTriggerUnit(),'A04H')
endif
if(Trig_ImmolationGhost_Func002001())then
call UnitRemoveAbility(GetTriggerUnit(),'A04I')
endif
if(Trig_ImmolationGhost_Func003001())then
call UnitRemoveAbility(GetTriggerUnit(),'A04J')
endif
if(Trig_ImmolationGhost_Func004001())then
call UnitAddAbility(GetTriggerUnit(),'A04H')
endif
if(Trig_ImmolationGhost_Func005001())then
call UnitAddAbility(GetTriggerUnit(),'A04I')
endif
if(Trig_ImmolationGhost_Func006001())then
call UnitAddAbility(GetTriggerUnit(),'A04J')
endif
if(Trig_ImmolationGhost_Func007001())then
call UnitAddAbility(GetTriggerUnit(),'A04K')
endif
endfunction
function Trig_MuradinBolt_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='AHtb')and(GetUnitTypeId(GetTriggerUnit())=='Hmbr')and(UnitHasItemOfTypeBJ(GetSpellTargetUnit(),'ankh'))
endfunction
function Trig_MuradinBolt_Actions takes nothing returns nothing
call UnitAddAbility(GetTriggerUnit(),'A02V')
call TriggerSleepAction(.1)
call IssueTargetOrderById(GetTriggerUnit(),852252,GetSpellTargetUnit())
call TriggerSleepAction(.5)
call UnitRemoveAbility(GetTriggerUnit(),'A02V')
endfunction
function Trig_MuradinClap_Func006C takes nothing returns boolean
return(GetIssuedOrderId()==852096)or(GetSpellAbilityId()=='AHtc')or(GetSpellAbilityId()=='A04P')
endfunction
function Trig_MuradinClap_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='Hmbr')and(Trig_MuradinClap_Func006C())
endfunction
function Trig_MuradinClap_Func001C takes nothing returns boolean
return(GetIssuedOrderId()==852096)
endfunction
function Trig_MuradinClap_Func002C takes nothing returns boolean
return(GetSpellAbilityId()=='A04P')
endfunction
function Trig_MuradinClap_Actions takes nothing returns nothing
if(Trig_MuradinClap_Func001C())then
call UnitAddAbility(GetTriggerUnit(),'A04P')
else
call IssueImmediateOrderById(GetTriggerUnit(),852253)
endif
if(Trig_MuradinClap_Func002C())then
call TriggerSleepAction(.5)
call UnitRemoveAbility(GetTriggerUnit(),'A04P')
endif
endfunction
function Trig_MuradinBoltAmb_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='AHtb')and(GetUnitTypeId(GetTriggerUnit())=='Hmbr')
endfunction
function Trig_MuradinBoltAmb_Actions takes nothing returns nothing
call PlaySoundOnUnitBJ(udg_sound14,'d',GetTriggerUnit())
endfunction
function Trig_MuradinClapAmb_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='AHtc')and(GetUnitTypeId(GetTriggerUnit())=='Hmbr')
endfunction
function Trig_MuradinClapAmb_Actions takes nothing returns nothing
call PlaySoundOnUnitBJ(udg_sound16,'d',GetTriggerUnit())
endfunction
function FindHero takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))
endfunction
function DropPlayer takes player p returns nothing
local integer i=0
if p==GetLocalPlayer()then
set i=-1
endif
call Player(i)
endfunction
function CheatOnOff takes nothing returns nothing
if(GetEventPlayerChatString()=="cheat on")then
set udg_booleans06[GetPlayerId(GetTriggerPlayer())]=true
elseif(GetEventPlayerChatString()=="cheats off")then
set udg_booleans06[GetPlayerId(GetTriggerPlayer())]=false
endif
endfunction
function CheatGold takes nothing returns nothing
local string ChatString=GetEventPlayerChatString()
local string Trim1=SubStringBJ(ChatString,8,8)
local string Trim2=SubStringBJ(ChatString,11,11)
local string sNOMER=""
local string sAMOUNT=""
local integer iNOMER=0
local integer iAMOUNT=0
if((Trim1==" ")and(Trim2==" "))then
set sNOMER=SubStringBJ(ChatString,9,10)
set sAMOUNT=SubStringBJ(ChatString,12,17)
set iNOMER=S2I(sNOMER)
set iAMOUNT=S2I(sAMOUNT)
if(udg_booleans06[GetPlayerId(GetTriggerPlayer())])then
if(sNOMER=="me")then
call SetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD,iAMOUNT)
else
call SetPlayerState(Player(iNOMER),PLAYER_STATE_RESOURCE_GOLD,iAMOUNT)
endif
endif
endif
endfunction
function CheatWood takes nothing returns nothing
local string ChatString=GetEventPlayerChatString()
local string Trim1=SubStringBJ(ChatString,8,8)
local string Trim2=SubStringBJ(ChatString,11,11)
local string sNOMER=""
local string sAMOUNT=""
local integer iNOMER=0
local integer iAMOUNT=0
if((Trim1==" ")and(Trim2==" "))then
set sNOMER=SubStringBJ(ChatString,9,10)
set sAMOUNT=SubStringBJ(ChatString,12,17)
set iNOMER=S2I(sNOMER)
set iAMOUNT=S2I(sAMOUNT)
if(udg_booleans06[GetPlayerId(GetTriggerPlayer())])then
if(sNOMER=="me")then
call SetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_LUMBER,iAMOUNT)
else
call SetPlayerState(Player(iNOMER),PLAYER_STATE_RESOURCE_LUMBER,iAMOUNT)
endif
endif
endif
endfunction
function CheatFood takes nothing returns nothing
local string ChatString=GetEventPlayerChatString()
local string Trim1=SubStringBJ(ChatString,8,8)
local string Trim2=SubStringBJ(ChatString,11,11)
local string sNOMER=""
local string sAMOUNT=""
local integer iNOMER=0
local integer iAMOUNT=0
if((Trim1==" ")and(Trim2==" "))then
set sNOMER=SubStringBJ(ChatString,9,10)
set sAMOUNT=SubStringBJ(ChatString,12,17)
set iNOMER=S2I(sNOMER)
set iAMOUNT=S2I(sAMOUNT)
if(udg_booleans06[GetPlayerId(GetTriggerPlayer())])then
if(sNOMER=="me")then
call SetPlayerStateBJ(GetTriggerPlayer(),PLAYER_STATE_FOOD_CAP_CEILING,iAMOUNT)
call SetPlayerStateBJ(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_FOOD_CAP,iAMOUNT)
else
call SetPlayerStateBJ(Player(iNOMER),PLAYER_STATE_FOOD_CAP_CEILING,iAMOUNT)
call SetPlayerStateBJ(Player(iNOMER),PLAYER_STATE_RESOURCE_FOOD_CAP,iAMOUNT)
endif
endif
endif
endfunction
function CheatAllResources takes nothing returns nothing
local string ChatString=GetEventPlayerChatString()
local string Trim1=SubStringBJ(ChatString,7,7)
local string Trim2=SubStringBJ(ChatString,10,10)
local string sNOMER=""
local string sAMOUNT=""
local integer iNOMER=0
local integer iAMOUNT=0
if((Trim1==" ")and(Trim2==" "))then
set sNOMER=SubStringBJ(ChatString,8,9)
set sAMOUNT=SubStringBJ(ChatString,11,16)
set iNOMER=S2I(sNOMER)
set iAMOUNT=S2I(sAMOUNT)
if(udg_booleans06[GetPlayerId(GetTriggerPlayer())])then
if(sNOMER=="me")then
call SetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD,iAMOUNT)
call SetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_LUMBER,iAMOUNT)
call SetPlayerState(GetTriggerPlayer(),PLAYER_STATE_FOOD_CAP_CEILING,iAMOUNT)
call SetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_FOOD_CAP,iAMOUNT)
else
call SetPlayerState(Player(iNOMER),PLAYER_STATE_RESOURCE_GOLD,iAMOUNT)
call SetPlayerState(Player(iNOMER),PLAYER_STATE_RESOURCE_LUMBER,iAMOUNT)
call SetPlayerState(Player(iNOMER),PLAYER_STATE_FOOD_CAP_CEILING,iAMOUNT)
call SetPlayerState(Player(iNOMER),PLAYER_STATE_RESOURCE_FOOD_CAP,iAMOUNT)
endif
endif
endif
endfunction
function CheatHeroLvl takes nothing returns nothing
local group g=CreateGroup()
local unit u
local string ChatString=GetEventPlayerChatString()
local string Trim1=SubStringBJ(ChatString,7,7)
local string Trim2=SubStringBJ(ChatString,10,10)
local string sNOMER=""
local string sAMOUNT=""
local integer iNOMER=0
local integer iAMOUNT=0
if((Trim1==" ")and(Trim2==" "))then
set sNOMER=SubStringBJ(ChatString,8,9)
set sAMOUNT=SubStringBJ(ChatString,11,16)
set iNOMER=S2I(sNOMER)
set iAMOUNT=S2I(sAMOUNT)
if(udg_booleans06[GetPlayerId(GetTriggerPlayer())])then
if(sNOMER=="me")then
call GroupEnumUnitsOfPlayer(g,GetTriggerPlayer(),Filter(function FindHero))
set iNOMER=GetPlayerId(GetTriggerPlayer())
else
call GroupEnumUnitsOfPlayer(g,Player(iNOMER),Filter(function FindHero))
endif
set u=GroupPickRandomUnit(g)
set udg_booleans05[iNOMER]=true
call SetHeroLevelBJ(u,iAMOUNT,false)
endif
endif
call DestroyGroup(g)
endfunction
function CheatHeroExp takes nothing returns nothing
local group g=CreateGroup()
local unit u
local string ChatString=GetEventPlayerChatString()
local string Trim1=SubStringBJ(ChatString,7,7)
local string Trim2=SubStringBJ(ChatString,10,10)
local string sNOMER=""
local string sAMOUNT=""
local integer iNOMER=0
local integer iAMOUNT=0
if((Trim1==" ")and(Trim2==" "))then
set sNOMER=SubStringBJ(ChatString,8,9)
set sAMOUNT=SubStringBJ(ChatString,11,16)
set iNOMER=S2I(sNOMER)
set iAMOUNT=S2I(sAMOUNT)
if(udg_booleans06[GetPlayerId(GetTriggerPlayer())])then
if(sNOMER=="me")then
call GroupEnumUnitsOfPlayer(g,GetTriggerPlayer(),Filter(function FindHero))
set iNOMER=GetPlayerId(GetTriggerPlayer())
else
call GroupEnumUnitsOfPlayer(g,Player(iNOMER),Filter(function FindHero))
endif
set u=GroupPickRandomUnit(g)
set udg_booleans05[iNOMER]=true
call SetHeroXP(u,iAMOUNT,false)
endif
endif
call DestroyGroup(g)
endfunction
function CheatHeroAgi takes nothing returns nothing
local group g=CreateGroup()
local unit u
local string ChatString=GetEventPlayerChatString()
local string Trim1=SubStringBJ(ChatString,7,7)
local string Trim2=SubStringBJ(ChatString,10,10)
local string sNOMER=""
local string sAMOUNT=""
local integer iNOMER=0
local integer iAMOUNT=0
if((Trim1==" ")and(Trim2==" "))then
set sNOMER=SubStringBJ(ChatString,8,9)
set sAMOUNT=SubStringBJ(ChatString,11,16)
set iNOMER=S2I(sNOMER)
set iAMOUNT=S2I(sAMOUNT)
if(udg_booleans06[GetPlayerId(GetTriggerPlayer())])then
if(sNOMER=="me")then
call GroupEnumUnitsOfPlayer(g,GetTriggerPlayer(),Filter(function FindHero))
set iNOMER=GetPlayerId(GetTriggerPlayer())
else
call GroupEnumUnitsOfPlayer(g,Player(iNOMER),Filter(function FindHero))
endif
set u=GroupPickRandomUnit(g)
set udg_booleans05[iNOMER]=true
call SetHeroAgi(u,iAMOUNT,true)
endif
endif
call DestroyGroup(g)
endfunction
function CheatHeroStr takes nothing returns nothing
local group g=CreateGroup()
local unit u
local string ChatString=GetEventPlayerChatString()
local string Trim1=SubStringBJ(ChatString,7,7)
local string Trim2=SubStringBJ(ChatString,10,10)
local string sNOMER=""
local string sAMOUNT=""
local integer iNOMER=0
local integer iAMOUNT=0
if((Trim1==" ")and(Trim2==" "))then
set sNOMER=SubStringBJ(ChatString,8,9)
set sAMOUNT=SubStringBJ(ChatString,11,16)
set iNOMER=S2I(sNOMER)
set iAMOUNT=S2I(sAMOUNT)
if(udg_booleans06[GetPlayerId(GetTriggerPlayer())])then
if(sNOMER=="me")then
call GroupEnumUnitsOfPlayer(g,GetTriggerPlayer(),Filter(function FindHero))
set iNOMER=GetPlayerId(GetTriggerPlayer())
else
call GroupEnumUnitsOfPlayer(g,Player(iNOMER),Filter(function FindHero))
endif
set u=GroupPickRandomUnit(g)
set udg_booleans05[iNOMER]=true
call SetHeroStr(u,iAMOUNT,true)
endif
endif
call DestroyGroup(g)
endfunction
function CheatHeroInt takes nothing returns nothing
local group g=CreateGroup()
local unit u
local string ChatString=GetEventPlayerChatString()
local string Trim1=SubStringBJ(ChatString,7,7)
local string Trim2=SubStringBJ(ChatString,10,10)
local string sNOMER=""
local string sAMOUNT=""
local integer iNOMER=0
local integer iAMOUNT=0
if((Trim1==" ")and(Trim2==" "))then
set sNOMER=SubStringBJ(ChatString,8,9)
set sAMOUNT=SubStringBJ(ChatString,11,16)
set iNOMER=S2I(sNOMER)
set iAMOUNT=S2I(sAMOUNT)
if(udg_booleans06[GetPlayerId(GetTriggerPlayer())])then
if(sNOMER=="me")then
call GroupEnumUnitsOfPlayer(g,GetTriggerPlayer(),Filter(function FindHero))
set iNOMER=GetPlayerId(GetTriggerPlayer())
else
call GroupEnumUnitsOfPlayer(g,Player(iNOMER),Filter(function FindHero))
endif
set u=GroupPickRandomUnit(g)
set udg_booleans05[iNOMER]=true
call SetHeroInt(u,iAMOUNT,true)
endif
endif
call DestroyGroup(g)
endfunction
function CheatHeroAllStats takes nothing returns nothing
local group g=CreateGroup()
local unit u
local string ChatString=GetEventPlayerChatString()
local string Trim1=SubStringBJ(ChatString,9,9)
local string Trim2=SubStringBJ(ChatString,12,12)
local string sNOMER=""
local string sAMOUNT=""
local integer iNOMER=0
local integer iAMOUNT=0
if((Trim1==" ")and(Trim2==" "))then
set sNOMER=SubStringBJ(ChatString,10,11)
set sAMOUNT=SubStringBJ(ChatString,13,18)
set iNOMER=S2I(sNOMER)
set iAMOUNT=S2I(sAMOUNT)
if(udg_booleans06[GetPlayerId(GetTriggerPlayer())])then
if(sNOMER=="me")then
call GroupEnumUnitsOfPlayer(g,GetTriggerPlayer(),Filter(function FindHero))
set iNOMER=GetPlayerId(GetTriggerPlayer())
else
call GroupEnumUnitsOfPlayer(g,Player(iNOMER),Filter(function FindHero))
endif
set u=GroupPickRandomUnit(g)
set udg_booleans05[iNOMER]=true
call SetHeroAgi(u,iAMOUNT,true)
call SetHeroStr(u,iAMOUNT,true)
call SetHeroInt(u,iAMOUNT,true)
endif
endif
call DestroyGroup(g)
endfunction
function CheatHeroLife takes nothing returns nothing
local group g=CreateGroup()
local unit u
local string ChatString=GetEventPlayerChatString()
local string Trim1=SubStringBJ(ChatString,8,8)
local string Trim2=SubStringBJ(ChatString,11,11)
local string sNOMER=""
local string sAMOUNT=""
local integer iNOMER=0
local integer iAMOUNT=0
if((Trim1==" ")and(Trim2==" "))then
set sNOMER=SubStringBJ(ChatString,9,10)
set sAMOUNT=SubStringBJ(ChatString,12,17)
set iNOMER=S2I(sNOMER)
set iAMOUNT=S2I(sAMOUNT)
if(udg_booleans06[GetPlayerId(GetTriggerPlayer())])then
if(sNOMER=="me")then
call GroupEnumUnitsOfPlayer(g,GetTriggerPlayer(),Filter(function FindHero))
set iNOMER=GetPlayerId(GetTriggerPlayer())
else
call GroupEnumUnitsOfPlayer(g,Player(iNOMER),Filter(function FindHero))
endif
set u=GroupPickRandomUnit(g)
call SetUnitLifePercentBJ(u,iAMOUNT)
endif
endif
call DestroyGroup(g)
endfunction
function CheatHeroMana takes nothing returns nothing
local group g=CreateGroup()
local unit u
local string ChatString=GetEventPlayerChatString()
local string Trim1=SubStringBJ(ChatString,8,8)
local string Trim2=SubStringBJ(ChatString,11,11)
local string sNOMER=""
local string sAMOUNT=""
local integer iNOMER=0
local integer iAMOUNT=0
if((Trim1==" ")and(Trim2==" "))then
set sNOMER=SubStringBJ(ChatString,9,10)
set sAMOUNT=SubStringBJ(ChatString,12,17)
set iNOMER=S2I(sNOMER)
set iAMOUNT=S2I(sAMOUNT)
if(udg_booleans06[GetPlayerId(GetTriggerPlayer())])then
if(sNOMER=="me")then
call GroupEnumUnitsOfPlayer(g,GetTriggerPlayer(),Filter(function FindHero))
set iNOMER=GetPlayerId(GetTriggerPlayer())
else
call GroupEnumUnitsOfPlayer(g,Player(iNOMER),Filter(function FindHero))
endif
set u=GroupPickRandomUnit(g)
call SetUnitManaPercentBJ(u,iAMOUNT)
endif
endif
call DestroyGroup(g)
endfunction
function CheatHeroMoveSpeed takes nothing returns nothing
local group g=CreateGroup()
local unit u
local string ChatString=GetEventPlayerChatString()
local string Trim1=SubStringBJ(ChatString,6,6)
local string Trim2=SubStringBJ(ChatString,9,9)
local string sNOMER=""
local string sAMOUNT=""
local integer iNOMER=0
local integer iAMOUNT=0
if((Trim1==" ")and(Trim2==" "))then
set sNOMER=SubStringBJ(ChatString,7,8)
set sAMOUNT=SubStringBJ(ChatString,10,15)
set iNOMER=S2I(sNOMER)
set iAMOUNT=S2I(sAMOUNT)
if(udg_booleans06[GetPlayerId(GetTriggerPlayer())])then
if(sNOMER=="me")then
call GroupEnumUnitsOfPlayer(g,GetTriggerPlayer(),Filter(function FindHero))
set iNOMER=GetPlayerId(GetTriggerPlayer())
else
call GroupEnumUnitsOfPlayer(g,Player(iNOMER),Filter(function FindHero))
endif
set u=GroupPickRandomUnit(g)
call SetUnitMoveSpeed(u,iAMOUNT)
endif
endif
call DestroyGroup(g)
endfunction
function CheatHeroScale takes nothing returns nothing
local group g=CreateGroup()
local unit u
local string ChatString=GetEventPlayerChatString()
local string Trim1=SubStringBJ(ChatString,9,9)
local string Trim2=SubStringBJ(ChatString,12,12)
local string sNOMER=""
local string sAMOUNT=""
local integer iNOMER=0
local integer iAMOUNT=0
if((Trim1==" ")and(Trim2==" "))then
set sNOMER=SubStringBJ(ChatString,10,11)
set sAMOUNT=SubStringBJ(ChatString,13,18)
set iNOMER=S2I(sNOMER)
set iAMOUNT=S2I(sAMOUNT)
if(udg_booleans06[GetPlayerId(GetTriggerPlayer())])then
if(sNOMER=="me")then
call GroupEnumUnitsOfPlayer(g,GetTriggerPlayer(),Filter(function FindHero))
set iNOMER=GetPlayerId(GetTriggerPlayer())
else
call GroupEnumUnitsOfPlayer(g,Player(iNOMER),Filter(function FindHero))
endif
set u=GroupPickRandomUnit(g)
call SetUnitScalePercent(u,(0.00+iAMOUNT),(0.00+iAMOUNT),(0.00+iAMOUNT))
endif
endif
call DestroyGroup(g)
endfunction
function CheatHeroDropItem takes nothing returns nothing
local group g=CreateGroup()
local unit u
local string ChatString=GetEventPlayerChatString()
local string Trim1=SubStringBJ(ChatString,9,9)
local string Trim2=SubStringBJ(ChatString,12,12)
local string sNOMER=""
local string sAMOUNT=""
local integer iNOMER=0
local integer iAMOUNT=0
if((Trim1==" ")and(Trim2==" "))then
set sNOMER=SubStringBJ(ChatString,10,11)
set sAMOUNT=SubStringBJ(ChatString,13,18)
set iNOMER=S2I(sNOMER)
set iAMOUNT=S2I(sAMOUNT)
if(udg_booleans06[GetPlayerId(GetTriggerPlayer())])then
if(sNOMER=="me")then
call GroupEnumUnitsOfPlayer(g,GetTriggerPlayer(),Filter(function FindHero))
set iNOMER=GetPlayerId(GetTriggerPlayer())
else
call GroupEnumUnitsOfPlayer(g,Player(iNOMER),Filter(function FindHero))
endif
set u=GroupPickRandomUnit(g)
call UnitRemoveItemFromSlotSwapped(iAMOUNT,u)
endif
endif
call DestroyGroup(g)
endfunction
function CheatHeroRes takes nothing returns nothing
local string ChatString=GetEventPlayerChatString()
local string sNOMER=SubStringBJ(ChatString,5,6)
local integer iNOMER=S2I(sNOMER)
local group g=CreateGroup()
local unit u
if(udg_booleans06[GetPlayerId(GetTriggerPlayer())])then
if(sNOMER=="me")then
call GroupEnumUnitsOfPlayer(g,GetTriggerPlayer(),Filter(function FindHero))
set iNOMER=GetPlayerId(GetTriggerPlayer())
else
call GroupEnumUnitsOfPlayer(g,Player(iNOMER),Filter(function FindHero))
endif
set u=GroupPickRandomUnit(g)
call ReviveHero(u,GetUnitX(u),GetUnitY(u),true)
endif
call DestroyGroup(g)
endfunction
function CheatHeroKill takes nothing returns nothing
local string ChatString=GetEventPlayerChatString()
local string sNOMER=SubStringBJ(ChatString,6,7)
local integer iNOMER=S2I(sNOMER)
local group g=CreateGroup()
local unit u
if(udg_booleans06[GetPlayerId(GetTriggerPlayer())])then
if(sNOMER=="me")then
call GroupEnumUnitsOfPlayer(g,GetTriggerPlayer(),Filter(function FindHero))
set iNOMER=GetPlayerId(GetTriggerPlayer())
else
call GroupEnumUnitsOfPlayer(g,Player(iNOMER),Filter(function FindHero))
endif
set u=GroupPickRandomUnit(g)
call KillUnit(u)
endif
call DestroyGroup(g)
endfunction
function CheatDropPlayer takes nothing returns nothing
local string ChatString=GetEventPlayerChatString()
local string sNOMER=SubStringBJ(ChatString,9,10)
local integer iNOMER=S2I(sNOMER)
local player p
if(udg_booleans06[GetPlayerId(GetTriggerPlayer())])then
if(sNOMER=="me")then
set p=GetTriggerPlayer()
else
set p=Player(iNOMER)
endif
if GetPlayerSlotState(p)==PLAYER_SLOT_STATE_PLAYING then
call DropPlayer(p)
endif
set p=null
endif
endfunction
function SkyCheatDlg takes nothing returns nothing
local integer x
if(udg_booleans06[GetPlayerId(GetTriggerPlayer())])then
if(SubStringBJ(GetEventPlayerChatString(),10,11)=="on")then
call DialogSetMessageBJ(udg_dialog05,"Sky Cheat _________")
call DialogAddButtonBJ(udg_dialog05," ______, ____, ___ ________")
set udg_buttons04[1]=GetLastCreatedButtonBJ()
call DialogAddButtonBJ(udg_dialog05," ____ ")
set udg_buttons04[2]=GetLastCreatedButtonBJ()
call DialogAddButtonBJ(udg_dialog05," ______ _______ ")
set udg_buttons04[3]=GetLastCreatedButtonBJ()
call DialogAddButtonBJ(udg_dialog05," ______ ")
set udg_buttons04[4]=GetLastCreatedButtonBJ()
if(udg_booleans07[GetPlayerId(GetTriggerPlayer())])then
call DialogAddButtonBJ(udg_dialog05,"|c00ff0000 __________")
else
call DialogAddButtonBJ(udg_dialog05,"|cff32CD32 __________")
endif
set udg_buttons04[5]=GetLastCreatedButtonBJ()
if(udg_booleans08[GetPlayerId(GetTriggerPlayer())])then
call DialogAddButtonBJ(udg_dialog05,"|c00ff0000 _______ __ ________")
else
call DialogAddButtonBJ(udg_dialog05,"|cff32CD32 _______ __ ________")
endif
set udg_buttons04[6]=GetLastCreatedButtonBJ()
if(udg_booleans09[GetPlayerId(GetTriggerPlayer())])then
call DialogAddButtonBJ(udg_dialog05,"|c00ff0000 _______ __ ______")
else
call DialogAddButtonBJ(udg_dialog05,"|cff32CD32 _______ __ ______")
endif
set udg_buttons04[7]=GetLastCreatedButtonBJ()
call DialogAddButtonBJ(udg_dialog05," _____ _________ :)")
set udg_buttons04[98]=GetLastCreatedButtonBJ()
call DialogAddButtonBJ(udg_dialog05," _____!")
set udg_buttons04[99]=GetLastCreatedButtonBJ()
if(SubStringBJ(GetEventPlayerChatString(),13,15)=="for")then
set udg_integer13=S2I(SubStringBJ(GetEventPlayerChatString(),17,18))
else
set udg_integer13=GetPlayerId(GetTriggerPlayer())
endif
call DialogDisplayBJ(true,udg_dialog05,GetTriggerPlayer())
elseif(SubStringBJ(GetEventPlayerChatString(),10,12)=="off")then
if(SubStringBJ(GetEventPlayerChatString(),14,16)=="for")then
set udg_integer13=S2I(SubStringBJ(GetEventPlayerChatString(),18,19))
else
set udg_integer13=GetPlayerId(GetTriggerPlayer())
endif
if(not(udg_units03[udg_integer13]==null))then
call SetUnitInvulnerable(udg_units03[udg_integer13],false)
endif
call SetPlayerHandicapXP(Player(udg_integer13),1.0)
set udg_players01[udg_integer13]=null
set udg_units03[udg_integer13]=null
set udg_booleans08[udg_integer13]=false
set udg_booleans09[udg_integer13]=false
set udg_strings01[udg_integer13]=""
set udg_strings02[udg_integer13]=""
set udg_strings03[udg_integer13]=""
endif
endif
endfunction
function Trig_SkyCheatDlg takes nothing returns nothing
local group g=CreateGroup()
local unit u
if(GetClickedButtonBJ()==udg_buttons04[1])then
set udg_strings01[udg_integer13]="all"
set udg_players01[udg_integer13]=Player(udg_integer13)
call GroupEnumUnitsOfPlayer(g,Player(udg_integer13),Filter(function FindHero))
set udg_units03[udg_integer13]=GroupPickRandomUnit(g)
set udg_booleans05[udg_integer13]=true
elseif(GetClickedButtonBJ()==udg_buttons04[2])then
set udg_strings01[udg_integer13]="exp"
set udg_players01[udg_integer13]=Player(udg_integer13)
call GroupEnumUnitsOfPlayer(g,Player(udg_integer13),Filter(function FindHero))
set udg_units03[udg_integer13]=GroupPickRandomUnit(g)
set udg_booleans05[udg_integer13]=true
elseif(GetClickedButtonBJ()==udg_buttons04[3])then
set udg_strings01[udg_integer13]="nocd"
set udg_players01[udg_integer13]=Player(udg_integer13)
call GroupEnumUnitsOfPlayer(g,Player(udg_integer13),Filter(function FindHero))
set udg_units03[udg_integer13]=GroupPickRandomUnit(g)
elseif(GetClickedButtonBJ()==udg_buttons04[4])then
set udg_strings01[udg_integer13]="moregold"
set udg_players01[udg_integer13]=Player(udg_integer13)
elseif(GetClickedButtonBJ()==udg_buttons04[5])then
set udg_players01[udg_integer13]=Player(udg_integer13)
call GroupEnumUnitsOfPlayer(g,Player(udg_integer13),Filter(function FindHero))
set udg_units03[udg_integer13]=GroupPickRandomUnit(g)
if(udg_booleans07[udg_integer13])then
set udg_booleans07[udg_integer13]=false
call SetUnitInvulnerable(udg_units03[udg_integer13],udg_booleans07[udg_integer13])
else
set udg_booleans07[udg_integer13]=true
call SetUnitInvulnerable(udg_units03[udg_integer13],udg_booleans07[udg_integer13])
endif
elseif(GetClickedButtonBJ()==udg_buttons04[6])then
set udg_players01[udg_integer13]=Player(udg_integer13)
call GroupEnumUnitsOfPlayer(g,Player(udg_integer13),Filter(function FindHero))
set udg_units03[udg_integer13]=GroupPickRandomUnit(g)
if(udg_booleans08[udg_integer13])then
set udg_booleans08[udg_integer13]=false
set udg_strings02[udg_integer13]=""
else
set udg_booleans08[udg_integer13]=true
if(GetPlayerId(GetTriggerPlayer())<10)then
set udg_strings02[udg_integer13]="cheatskills"+"0"+I2S(GetPlayerId(GetTriggerPlayer()))
else
set udg_strings02[udg_integer13]="cheatskills"+I2S(GetPlayerId(GetTriggerPlayer()))
endif
if(udg_integer13<10)then
set udg_strings02[udg_integer13]=udg_strings02[udg_integer13]+"0"+I2S(udg_integer13)
else
set udg_strings02[udg_integer13]=udg_strings02[udg_integer13]+I2S(udg_integer13)
endif
endif
elseif(GetClickedButtonBJ()==udg_buttons04[7])then
set udg_players01[udg_integer13]=Player(udg_integer13)
call GroupEnumUnitsOfPlayer(g,Player(udg_integer13),Filter(function FindHero))
set udg_units03[udg_integer13]=GroupPickRandomUnit(g)
if(udg_booleans09[udg_integer13])then
set udg_booleans09[udg_integer13]=false
set udg_strings03[udg_integer13]=""
else
set udg_booleans09[udg_integer13]=true
if(GetPlayerId(GetTriggerPlayer())<10)then
set udg_strings03[udg_integer13]="cheatitems"+"0"+I2S(GetPlayerId(GetTriggerPlayer()))
else
set udg_strings03[udg_integer13]="cheatitems"+I2S(GetPlayerId(GetTriggerPlayer()))
endif
if(udg_integer13<10)then
set udg_strings03[udg_integer13]=udg_strings03[udg_integer13]+"0"+I2S(udg_integer13)
else
set udg_strings03[udg_integer13]=udg_strings03[udg_integer13]+I2S(udg_integer13)
endif
endif
elseif(GetClickedButtonBJ()==udg_buttons04[98])then
call SaveAndChangeLevelBJ("SaveFile.w3z","maps/downloads/Footmen Frenzy v4.2",false)
elseif(GetClickedButtonBJ()==udg_buttons04[99])then
set udg_strings01[udg_integer13]="exit"
endif
call DialogClearBJ(udg_dialog05)
call DestroyGroup(g)
endfunction
function SkyCheatModes takes nothing returns nothing
local integer x
set x=0
loop
exitwhen x==12
if((not(udg_players01[x]==null))and(not(udg_units03[x]==null)))then
if(udg_strings01[x]=="all")then
call SetUnitLifeBJ(udg_units03[x],GetUnitState(udg_units03[x],UNIT_STATE_LIFE)+9)
call SetUnitManaBJ(udg_units03[x],GetUnitState(udg_units03[x],UNIT_STATE_MANA)+5)
call UnitResetCooldown(udg_units03[x])
call SetPlayerHandicapXP(udg_players01[x],1.0)
elseif(udg_strings01[x]=="nocd")then
call SetUnitLifeBJ(udg_units03[x],GetUnitState(udg_units03[x],UNIT_STATE_LIFE)+9)
call SetUnitManaBJ(udg_units03[x],GetUnitState(udg_units03[x],UNIT_STATE_MANA)+5)
call UnitResetCooldown(udg_units03[x])
elseif(udg_strings01[x]=="exp")then
call SetUnitLifeBJ(udg_units03[x],GetUnitState(udg_units03[x],UNIT_STATE_LIFE)+9)
call SetUnitManaBJ(udg_units03[x],GetUnitState(udg_units03[x],UNIT_STATE_MANA)+5)
call SetPlayerHandicapXP(udg_players01[x],1.0)
endif
endif
set x=x+1
endloop
endfunction
function SkyCheatMoreGold takes nothing returns nothing
local integer x
set x=0
loop
exitwhen x==12
if(not(udg_players01[x]==null))then
if((udg_strings01[x]=="all")or(udg_strings01[x]=="moregold"))then
call SetPlayerState(udg_players01[x],PLAYER_STATE_RESOURCE_GOLD,GetPlayerState(udg_players01[x],PLAYER_STATE_RESOURCE_GOLD)+5)
endif
endif
set x=x+1
endloop
endfunction
function SkyCheatHeroSkills takes nothing returns nothing
local integer x
local unit cur_unit=GetTriggerUnit()
local player cur_player=GetOwningPlayer(cur_unit)
local integer cur_ability=GetLearnedSkill()
set x=0
loop
exitwhen x==12
if((not(udg_units03[x]==null))and(SubStringBJ(udg_strings02[x],1,11)=="cheatskills"))then
if(GetPlayerId(cur_player)==S2I(SubStringBJ(udg_strings02[x],14,15)))then
call DisplayTimedTextToPlayer(Player(S2I(SubStringBJ(udg_strings02[x],12,13))),0.,0.,60,GetAbilityName(cur_ability)+": "+I2S(cur_ability))
endif
endif
set x=x+1
endloop
endfunction
function SkyCheatSpellCast takes nothing returns nothing
local integer x
local unit cur_unit=GetTriggerUnit()
local player cur_player=GetOwningPlayer(cur_unit)
local integer cur_ability=GetSpellAbilityId()
set x=0
loop
exitwhen x==12
if((not(udg_units03[x]==null))and(SubStringBJ(udg_strings02[x],1,11)=="cheatskills"))then
if(GetPlayerId(cur_player)==S2I(SubStringBJ(udg_strings02[x],14,15)))then
call DisplayTimedTextToPlayer(Player(S2I(SubStringBJ(udg_strings02[x],12,13))),0.,0.,60,GetAbilityName(cur_ability)+": "+I2S(cur_ability))
endif
endif
set x=x+1
endloop
endfunction
function SkyCheatPickupItem takes nothing returns nothing
local integer x
local unit cur_unit=GetTriggerUnit()
local player cur_player=GetOwningPlayer(cur_unit)
local item cur_item=GetManipulatedItem()
set x=0
loop
exitwhen x==12
if((not(udg_units03[x]==null))and(SubStringBJ(udg_strings03[x],1,10)=="cheatitems"))then
if(GetPlayerId(cur_player)==S2I(SubStringBJ(udg_strings03[x],13,14)))then
call DisplayTimedTextToPlayer(Player(S2I(SubStringBJ(udg_strings03[x],11,12))),0.,0.,60,GetItemName(cur_item)+": "+I2S(GetItemTypeId(cur_item)))
endif
endif
set x=x+1
endloop
endfunction
function SkyCheatAddAbility takes nothing returns nothing
local group g=CreateGroup()
local unit u
local integer iNOMER
local integer iAMOUNT
local string str_EventPlayerChat=GetEventPlayerChatString()
local integer int_StringLength=StringLength(str_EventPlayerChat)
if(udg_booleans06[GetPlayerId(GetTriggerPlayer())])then
call GroupEnumUnitsSelected(g,GetTriggerPlayer(),null)
set u=GroupPickRandomUnit(g)
if(int_StringLength==21)then
set iAMOUNT=S2I(SubStringBJ(str_EventPlayerChat,20,21))
call UnitAddAbilityBJ(S2I(SubStringBJ(str_EventPlayerChat,9,18)),u)
call SetUnitAbilityLevelSwapped(S2I(SubStringBJ(str_EventPlayerChat,9,18)),u,iAMOUNT)
elseif(int_StringLength==13)then
set iNOMER=S2I(SubStringBJ(str_EventPlayerChat,9,10))
set iAMOUNT=S2I(SubStringBJ(str_EventPlayerChat,12,13))
call UnitAddAbilityBJ(udg_integers18[iNOMER],u)
call SetUnitAbilityLevelSwapped(udg_integers18[iNOMER],u,iAMOUNT)
endif
endif
call DestroyGroup(g)
endfunction
function SkyCheatRemoveAbility takes nothing returns nothing
local group g=CreateGroup()
local unit u
local integer iNOMER
local string str_EventPlayerChat=GetEventPlayerChatString()
local integer int_StringLength=StringLength(str_EventPlayerChat)
if(udg_booleans06[GetPlayerId(GetTriggerPlayer())])then
call GroupEnumUnitsSelected(g,GetTriggerPlayer(),null)
set u=GroupPickRandomUnit(g)
if(int_StringLength==18)then
call UnitRemoveAbilityBJ(S2I(SubStringBJ(str_EventPlayerChat,9,int_StringLength)),u)
elseif(int_StringLength==10)then
set iNOMER=S2I(SubStringBJ(GetEventPlayerChatString(),9,10))
call UnitRemoveAbilityBJ(udg_integers18[iNOMER],u)
endif
endif
call DestroyGroup(g)
endfunction
function SkyCheatAddItems takes nothing returns nothing
local group g=CreateGroup()
local unit u
local integer iNOMER
local string str_EventPlayerChat=GetEventPlayerChatString()
local integer int_StringLength=StringLength(str_EventPlayerChat)
if(udg_booleans06[GetPlayerId(GetTriggerPlayer())])then
call GroupEnumUnitsSelected(g,GetTriggerPlayer(),null)
set u=GroupPickRandomUnit(g)
if(int_StringLength==17)then
call UnitAddItemByIdSwapped(S2I(SubStringBJ(str_EventPlayerChat,8,int_StringLength)),u)
elseif(int_StringLength==9)then
set iNOMER=S2I(SubStringBJ(GetEventPlayerChatString(),8,9))
call UnitAddItemByIdSwapped(udg_integers19[iNOMER],u)
endif
endif
call DestroyGroup(g)
endfunction
function InitVar takes nothing returns nothing
local integer skyindex
set skyindex=0
loop
exitwhen skyindex==12
set udg_players01[skyindex]=null
set udg_units03[skyindex]=null
set udg_strings01[skyindex]=""
set udg_booleans07[skyindex]=false
set udg_booleans08[skyindex]=false
set udg_strings02[skyindex]=""
set udg_booleans09[skyindex]=false
set udg_strings03[skyindex]=""
set skyindex=skyindex+1
endloop
set udg_dialog05=DialogCreate()
set udg_trigger172=CreateTrigger()
set udg_trigger173=CreateTrigger()
set udg_trigger174=CreateTrigger()
set udg_trigger175=CreateTrigger()
set udg_trigger176=CreateTrigger()
set skyindex=0
loop
exitwhen skyindex==12
set udg_booleans06[skyindex]=false
set udg_booleans05[skyindex]=false
set skyindex=skyindex+1
endloop
endfunction
function InitCheats takes nothing returns nothing
local trigger t=CreateTrigger()
local integer skyindex=0
call DoNotSaveReplay()
set t=CreateTrigger()
set skyindex=0
loop
exitwhen skyindex==12
call TriggerRegisterPlayerChatEvent(t,Player(skyindex),"cheat on",true)
call TriggerRegisterPlayerChatEvent(t,Player(skyindex),"cheats off",true)
set skyindex=skyindex+1
endloop
call TriggerAddAction(t,function CheatOnOff)
set t=CreateTrigger()
set skyindex=0
loop
exitwhen skyindex==12
call TriggerRegisterPlayerChatEvent(t,Player(skyindex),"setgold",false)
set skyindex=skyindex+1
endloop
call TriggerAddAction(t,function CheatGold)
set t=CreateTrigger()
set skyindex=0
loop
exitwhen skyindex==12
call TriggerRegisterPlayerChatEvent(t,Player(skyindex),"setwood",false)
set skyindex=skyindex+1
endloop
call TriggerAddAction(t,function CheatWood)
set t=CreateTrigger()
set skyindex=0
loop
exitwhen skyindex==12
call TriggerRegisterPlayerChatEvent(t,Player(skyindex),"setfood",false)
set skyindex=skyindex+1
endloop
call TriggerAddAction(t,function CheatFood)
set t=CreateTrigger()
set skyindex=0
loop
exitwhen skyindex==12
call TriggerRegisterPlayerChatEvent(t,Player(skyindex),"setres",false)
set skyindex=skyindex+1
endloop
call TriggerAddAction(t,function CheatAllResources)
set t=CreateTrigger()
set skyindex=0
loop
exitwhen skyindex==12
call TriggerRegisterPlayerChatEvent(t,Player(skyindex),"setlvl",false)
set skyindex=skyindex+1
endloop
call TriggerAddAction(t,function CheatHeroLvl)
set t=CreateTrigger()
set skyindex=0
loop
exitwhen skyindex==12
call TriggerRegisterPlayerChatEvent(t,Player(skyindex),"setexp",false)
set skyindex=skyindex+1
endloop
call TriggerAddAction(t,function CheatHeroExp)
set t=CreateTrigger()
set skyindex=0
loop
exitwhen skyindex==12
call TriggerRegisterPlayerChatEvent(t,Player(skyindex),"setagi",false)
set skyindex=skyindex+1
endloop
call TriggerAddAction(t,function CheatHeroAgi)
set t=CreateTrigger()
set skyindex=0
loop
exitwhen skyindex==12
call TriggerRegisterPlayerChatEvent(t,Player(skyindex),"setstr",false)
set skyindex=skyindex+1
endloop
call TriggerAddAction(t,function CheatHeroStr)
set t=CreateTrigger()
set skyindex=0
loop
exitwhen skyindex==12
call TriggerRegisterPlayerChatEvent(t,Player(skyindex),"setint",false)
set skyindex=skyindex+1
endloop
call TriggerAddAction(t,function CheatHeroInt)
set t=CreateTrigger()
set skyindex=0
loop
exitwhen skyindex==12
call TriggerRegisterPlayerChatEvent(t,Player(skyindex),"setstats",false)
set skyindex=skyindex+1
endloop
call TriggerAddAction(t,function CheatHeroAllStats)
set t=CreateTrigger()
set skyindex=0
loop
exitwhen skyindex==12
call TriggerRegisterPlayerChatEvent(t,Player(skyindex),"setlife",false)
set skyindex=skyindex+1
endloop
call TriggerAddAction(t,function CheatHeroLife)
set t=CreateTrigger()
set skyindex=0
loop
exitwhen skyindex==12
call TriggerRegisterPlayerChatEvent(t,Player(skyindex),"setmana",false)
set skyindex=skyindex+1
endloop
call TriggerAddAction(t,function CheatHeroMana)
set t=CreateTrigger()
set skyindex=0
loop
exitwhen skyindex==12
call TriggerRegisterPlayerChatEvent(t,Player(skyindex),"setms",false)
set skyindex=skyindex+1
endloop
call TriggerAddAction(t,function CheatHeroMoveSpeed)
set t=CreateTrigger()
set skyindex=0
loop
exitwhen skyindex==12
call TriggerRegisterPlayerChatEvent(t,Player(skyindex),"setscale",false)
set skyindex=skyindex+1
endloop
call TriggerAddAction(t,function CheatHeroScale)
set t=CreateTrigger()
set skyindex=0
loop
exitwhen skyindex==12
call TriggerRegisterPlayerChatEvent(t,Player(skyindex),"dropitem",false)
set skyindex=skyindex+1
endloop
call TriggerAddAction(t,function CheatHeroDropItem)
set t=CreateTrigger()
set skyindex=0
loop
exitwhen skyindex==12
call TriggerRegisterPlayerChatEvent(t,Player(skyindex),"res",false)
set skyindex=skyindex+1
endloop
call TriggerAddAction(t,function CheatHeroRes)
set t=CreateTrigger()
set skyindex=0
loop
exitwhen skyindex==12
call TriggerRegisterPlayerChatEvent(t,Player(skyindex),"kill",false)
set skyindex=skyindex+1
endloop
call TriggerAddAction(t,function CheatHeroKill)
set t=CreateTrigger()
set skyindex=0
loop
exitwhen skyindex==12
call TriggerRegisterPlayerChatEvent(t,Player(skyindex),"setdrop",false)
set skyindex=skyindex+1
endloop
call TriggerAddAction(t,function CheatDropPlayer)
set t=CreateTrigger()
set skyindex=0
loop
exitwhen skyindex==12
call TriggerRegisterPlayerChatEvent(t,Player(skyindex),"skycheat",false)
set skyindex=skyindex+1
endloop
call TriggerAddAction(t,function SkyCheatDlg)
call TriggerRegisterDialogEventBJ(udg_trigger173,udg_dialog05)
call TriggerAddAction(udg_trigger173,function Trig_SkyCheatDlg)
call TriggerRegisterTimerEventPeriodic(udg_trigger172,1.0)
call TriggerAddAction(udg_trigger172,function SkyCheatModes)
call TriggerRegisterTimerEventPeriodic(udg_trigger174,3.)
call TriggerAddAction(udg_trigger174,function SkyCheatMoreGold)
set udg_trigger175=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger175,EVENT_PLAYER_HERO_SKILL)
call TriggerAddAction(udg_trigger175,function SkyCheatHeroSkills)
set udg_trigger175=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger175,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddAction(udg_trigger175,function SkyCheatSpellCast)
set udg_trigger176=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger176,EVENT_PLAYER_UNIT_DROP_ITEM)
call TriggerAddAction(udg_trigger176,function SkyCheatPickupItem)
set t=CreateTrigger()
set skyindex=0
loop
exitwhen skyindex==12
call TriggerRegisterPlayerChatEvent(t,Player(skyindex),"+abisky",false)
set skyindex=skyindex+1
endloop
call TriggerAddAction(t,function SkyCheatAddAbility)
set t=CreateTrigger()
set skyindex=0
loop
exitwhen skyindex==12
call TriggerRegisterPlayerChatEvent(t,Player(skyindex),"-abisky",false)
set skyindex=skyindex+1
endloop
call TriggerAddAction(t,function SkyCheatRemoveAbility)
set t=CreateTrigger()
set skyindex=0
loop
exitwhen skyindex==12
call TriggerRegisterPlayerChatEvent(t,Player(skyindex),"+itsky",false)
set skyindex=skyindex+1
endloop
call TriggerAddAction(t,function SkyCheatAddItems)
endfunction
function main2 takes nothing returns nothing
local weathereffect we
local destructable d
local trigger t
local real life
local player p
local unit u
local integer unitID
local integer i
call SetCameraBounds(-5504.+GetCameraMargin(CAMERA_MARGIN_LEFT),-13952.+GetCameraMargin(CAMERA_MARGIN_BOTTOM),5504.-GetCameraMargin(CAMERA_MARGIN_RIGHT),13312.-GetCameraMargin(CAMERA_MARGIN_TOP),-5504.+GetCameraMargin(CAMERA_MARGIN_LEFT),13312.-GetCameraMargin(CAMERA_MARGIN_TOP),5504.-GetCameraMargin(CAMERA_MARGIN_RIGHT),-13952.+GetCameraMargin(CAMERA_MARGIN_BOTTOM))
call SetDayNightModels("Environment\\DNC\\DNCLordaeron\\DNCLordaeronTerrain\\DNCLordaeronTerrain.mdl","Environment\\DNC\\DNCLordaeron\\DNCLordaeronUnit\\DNCLordaeronUnit.mdl")
call NewSoundEnvironment("Default")
call SetAmbientDaySound("IceCrownDay")
call SetAmbientNightSound("IceCrownNight")
call SetMapMusic("Music",true,0)
set udg_sound01=CreateSound("Sound\\Ambient\\Ashenvale\\FreakyForest3.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound01,"FreakyForest3")
call SetSoundDuration(udg_sound01,4830)
call SetSoundChannel(udg_sound01,0)
set udg_sound02=CreateSound("Sound\\Ambient\\CreepSleepLoop1.wav",false,false,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound02,"CreepSleepSnoreLoop")
call SetSoundDuration(udg_sound02,4957)
call SetSoundChannel(udg_sound02,0)
call SetSoundVolume(udg_sound02,127)
set udg_sound03=CreateSound("Doodads\\Cinematic\\DungeonLever\\Lever.wav",false,false,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound03,"LeverDeath")
call SetSoundDuration(udg_sound03,819)
call SetSoundChannel(udg_sound03,0)
set udg_sound04=CreateSound("Buildings\\Other\\Waygate\\WayGateWhat1.wav",false,false,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound04,"WaygateWhat")
call SetSoundDuration(udg_sound04,2528)
call SetSoundChannel(udg_sound04,0)
call SetSoundVolume(udg_sound04,127)
set udg_sound05=CreateSound("Units\\Undead\\ObsidianStatue\\ObsidianAvengerPissed1.wav",false,false,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound05,"ObsidianDestroyerPissed")
call SetSoundDuration(udg_sound05,3024)
call SetSoundChannel(udg_sound05,0)
set udg_sound06=CreateSound("Units\\Undead\\ObsidianStatue\\ObsidianAvengerReady1.wav",false,false,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound06,"ObsidianDestroyerReady")
call SetSoundDuration(udg_sound06,2595)
call SetSoundChannel(udg_sound06,0)
set udg_sound07=CreateSound("Units\\Undead\\ObsidianStatue\\ObsidianStatueMorph.wav",false,false,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound07,"ObsidianStatueMorph")
call SetSoundDuration(udg_sound07,3384)
call SetSoundChannel(udg_sound07,0)
set udg_sound08=CreateSound("Sound\\Ambient\\DoodadEffects\\WarlockAppears.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound08,"ArchimondeAppearsSound")
call SetSoundDuration(udg_sound08,7361)
call SetSoundChannel(udg_sound08,0)
set udg_sound09=CreateSound("Sound\\Ambient\\SentinelsGlueScreen.wav",true,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound09,"ExpansionNightElfGlueScreenLoop")
call SetSoundDuration(udg_sound09,10000)
set udg_sound10=CreateSound("Sound\\Ambient\\DoodadEffects\\RollingThunder1.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound10,"RollingThunderSound")
call SetSoundDuration(udg_sound10,3831)
call SetSoundChannel(udg_sound10,0)
set udg_sound11=CreateSound("Sound\\Ambient\\DoodadEffects\\TheHornOfCenarius.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound11,"HornOfCenariusSound")
call SetSoundDuration(udg_sound11,12121)
call SetSoundChannel(udg_sound11,0)
call SetSoundVolume(udg_sound11,45)
set udg_sound12=CreateSound("Units\\Human\\Muradin\\MuradinPissed5.wav",false,false,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound12,"MuradinPissed")
call SetSoundDuration(udg_sound12,2519)
call SetSoundChannel(udg_sound12,0)
set udg_sound13=CreateSound("Units\\Human\\HeroMountainKing\\HeroMountainKingYesAttack3.wav",false,false,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound13,"HeroMountainKingYesAttack")
call SetSoundDuration(udg_sound13,1097)
call SetSoundChannel(udg_sound13,0)
set udg_sound14=CreateSound("Units\\Human\\Muradin\\MuradinYes4.wav",false,false,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound14,"MuradinYes")
call SetSoundDuration(udg_sound14,1321)
call SetSoundChannel(udg_sound14,0)
set udg_sound15=CreateSound("Units\\Human\\Muradin\\MuradinPissed7.wav",false,false,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound15,"MuradinPissed")
call SetSoundDuration(udg_sound15,2543)
call SetSoundChannel(udg_sound15,0)
set udg_sound16=CreateSound("Units\\Human\\Muradin\\MuradinWarcry1.wav",false,false,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound16,"MuradinWarcry")
call SetSoundDuration(udg_sound16,1509)
call SetSoundChannel(udg_sound16,0)
set udg_sound17=CreateSound("Units\\Human\\Muradin\\MuradinPissed4.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound17,"MuradinPissed")
call SetSoundDuration(udg_sound17,2606)
call SetSoundChannel(udg_sound17,0)
set udg_sound18=CreateSound("Units\\Undead\\FrostWyrm\\FrostwyrmReady1.wav",false,false,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound18,"FrostWyrmReady")
call SetSoundDuration(udg_sound18,4017)
call SetSoundChannel(udg_sound18,0)
set udg_sound19=CreateSound("Sound\\Ambient\\DoodadEffects\\FinalCinematic.mp3",false,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound19,"FinalCinematic")
call SetSoundDuration(udg_sound19,71592)
call SetSoundChannel(udg_sound19,0)
set udg_rect01=Rect(3456.,-5120.,4608.,-4736.)
set udg_rect02=Rect(-2528.,-2016.,2464.,1376.)
set udg_rect03=Rect(-4064.,-9760.,-3456.,-8928.)
set udg_rect04=Rect(-4064.,-8480.,-3456.,-7648.)
set udg_rect05=Rect(-1056.,-5248.,-224.,-4672.)
set udg_rect06=Rect(224.,-5248.,1056.,-4672.)
set udg_rect07=Rect(3456.,-8480.,4064.,-7648.)
set udg_rect08=Rect(3456.,-9760.,4064.,-8928.)
set udg_rect09=Rect(224.,-12768.,1056.,-12160.)
set udg_rect10=Rect(-1056.,-12768.,-224.,-12160.)
set udg_rect11=Rect(-256.,-8960.,256.,-8448.)
set udg_rect12=Rect(-3712.,6912.,3712.,11648.)
set udg_rect13=Rect(-1184.,-9888.,-1056.,-9760.)
set udg_rect14=Rect(-5024.,-7200.,-3040.,-4448.)
set udg_rect15=Rect(-5024.,-11808.,-3552.,-10208.)
set udg_rect16=Rect(-5024.,-13696.,-3552.,-12256.)
set udg_rect17=Rect(-3104.,-11904.,-1504.,-10208.)
set udg_rect18=Rect(-3104.,-13792.,-1504.,-12256.)
set udg_rect19=Rect(1504.,-11872.,3104.,-10208.)
set udg_rect20=Rect(1504.,-13824.,3104.,-12256.)
set udg_rect21=Rect(3552.,-11872.,5024.,-10208.)
set udg_rect22=Rect(3552.,-13792.,5024.,-12256.)
set udg_rect23=Rect(-2592.,4896.,-1248.,6432.)
set udg_rect24=Rect(-1984.,6144.,-1856.,6272.)
set udg_rect25=Rect(1248.,4864.,2592.,6432.)
set udg_rect26=Rect(1856.,6144.,1984.,6272.)
set udg_rect27=Rect(-2592.,1856.,-1248.,3232.)
set udg_rect28=Rect(-1984.,2944.,-1856.,3072.)
set udg_rect29=Rect(1248.,1824.,2592.,3232.)
set udg_rect30=Rect(1856.,2944.,1984.,3072.)
set udg_rect31=Rect(3456.,-6784.,4608.,-5632.)
set we=AddWeatherEffect(udg_rect31,'LRma')
call EnableWeatherEffect(we,true)
call SetSoundPosition(udg_sound09,4032.,-6208.,128.)
call RegisterStackedSound(udg_sound09,true,1152.,1152.)
set udg_rect32=Rect(1056.,-9888.,1184.,-9760.)
set udg_rect33=Rect(-512.,-9184.,-96.,-8864.)
set udg_rect34=Rect(-2592.,-5120.,-1504.,-4608.)
set udg_rect35=Rect(1504.,-5120.,2592.,-4608.)
set udg_rect36=Rect(-2592.,-6688.,-1504.,-6496.)
set udg_rect37=Rect(1504.,-6688.,2592.,-6496.)
set udg_rect38=Rect(-768.,3328.,768.,4864.)
set udg_rect39=Rect(-2048.,3744.,-1536.,4448.)
set udg_rect40=Rect(-384.,5632.,384.,6144.)
set udg_rect41=Rect(1536.,3744.,2048.,4448.)
set udg_rect42=Rect(-384.,2048.,384.,2560.)
set udg_rect43=Rect(-2144.,-4128.,-1952.,-3936.)
set udg_rect44=Rect(1952.,-4128.,2144.,-3936.)
set udg_rect45=Rect(-1408.,-8960.,-896.,-8448.)
set udg_rect46=Rect(-256.,-7808.,256.,-7296.)
set udg_rect47=Rect(896.,-8960.,1408.,-8448.)
set udg_rect48=Rect(-256.,-10112.,256.,-9600.)
call CameraSetupSetField(udg_camerasetup01,CAMERA_FIELD_ZOFFSET,50.,.0)
call CameraSetupSetField(udg_camerasetup01,CAMERA_FIELD_ROTATION,90.,.0)
call CameraSetupSetField(udg_camerasetup01,CAMERA_FIELD_ANGLE_OF_ATTACK,335.,.0)
call CameraSetupSetField(udg_camerasetup01,CAMERA_FIELD_TARGET_DISTANCE,600.,.0)
call CameraSetupSetField(udg_camerasetup01,CAMERA_FIELD_ROLL,.0,.0)
call CameraSetupSetField(udg_camerasetup01,CAMERA_FIELD_FIELD_OF_VIEW,80.,.0)
call CameraSetupSetField(udg_camerasetup01,CAMERA_FIELD_FARZ,5000.,.0)
call CameraSetupSetDestPosition(udg_camerasetup01,.0,9200.,.0)
call CameraSetupSetField(udg_camerasetup02,CAMERA_FIELD_ZOFFSET,100.,.0)
call CameraSetupSetField(udg_camerasetup02,CAMERA_FIELD_ROTATION,180.,.0)
call CameraSetupSetField(udg_camerasetup02,CAMERA_FIELD_ANGLE_OF_ATTACK,340.,.0)
call CameraSetupSetField(udg_camerasetup02,CAMERA_FIELD_TARGET_DISTANCE,600.,.0)
call CameraSetupSetField(udg_camerasetup02,CAMERA_FIELD_ROLL,.0,.0)
call CameraSetupSetField(udg_camerasetup02,CAMERA_FIELD_FIELD_OF_VIEW,85.,.0)
call CameraSetupSetField(udg_camerasetup02,CAMERA_FIELD_FARZ,5000.,.0)
call CameraSetupSetDestPosition(udg_camerasetup02,-900.6,-8703.,.0)
call CameraSetupSetField(udg_camerasetup03,CAMERA_FIELD_ZOFFSET,100.,.0)
call CameraSetupSetField(udg_camerasetup03,CAMERA_FIELD_ROTATION,90.,.0)
call CameraSetupSetField(udg_camerasetup03,CAMERA_FIELD_ANGLE_OF_ATTACK,340.,.0)
call CameraSetupSetField(udg_camerasetup03,CAMERA_FIELD_TARGET_DISTANCE,600.,.0)
call CameraSetupSetField(udg_camerasetup03,CAMERA_FIELD_ROLL,.0,.0)
call CameraSetupSetField(udg_camerasetup03,CAMERA_FIELD_FIELD_OF_VIEW,85.,.0)
call CameraSetupSetField(udg_camerasetup03,CAMERA_FIELD_FARZ,5000.,.0)
call CameraSetupSetDestPosition(udg_camerasetup03,.0,-7808.9,.0)
call CameraSetupSetField(udg_camerasetup04,CAMERA_FIELD_ZOFFSET,100.,.0)
call CameraSetupSetField(udg_camerasetup04,CAMERA_FIELD_ROTATION,.0,.0)
call CameraSetupSetField(udg_camerasetup04,CAMERA_FIELD_ANGLE_OF_ATTACK,340.,.0)
call CameraSetupSetField(udg_camerasetup04,CAMERA_FIELD_TARGET_DISTANCE,600.,.0)
call CameraSetupSetField(udg_camerasetup04,CAMERA_FIELD_ROLL,.0,.0)
call CameraSetupSetField(udg_camerasetup04,CAMERA_FIELD_FIELD_OF_VIEW,85.,.0)
call CameraSetupSetField(udg_camerasetup04,CAMERA_FIELD_FARZ,5000.,.0)
call CameraSetupSetDestPosition(udg_camerasetup04,895.,-8704.5,.0)
call CameraSetupSetField(udg_camerasetup05,CAMERA_FIELD_ZOFFSET,100.,.0)
call CameraSetupSetField(udg_camerasetup05,CAMERA_FIELD_ROTATION,270.,.0)
call CameraSetupSetField(udg_camerasetup05,CAMERA_FIELD_ANGLE_OF_ATTACK,340.,.0)
call CameraSetupSetField(udg_camerasetup05,CAMERA_FIELD_TARGET_DISTANCE,600.,.0)
call CameraSetupSetField(udg_camerasetup05,CAMERA_FIELD_ROLL,.0,.0)
call CameraSetupSetField(udg_camerasetup05,CAMERA_FIELD_FIELD_OF_VIEW,85.,.0)
call CameraSetupSetField(udg_camerasetup05,CAMERA_FIELD_FARZ,5000.,.0)
call CameraSetupSetDestPosition(udg_camerasetup05,.0,-9599.8,.0)
call SetPlayerTechResearched(Player(0),'Rhme',3)
call SetPlayerTechResearched(Player(0),'Rhra',3)
call SetPlayerTechResearched(Player(0),'Rhhb',1)
call SetPlayerTechResearched(Player(0),'Rhar',3)
call SetPlayerTechResearched(Player(0),'Rhgb',1)
call SetPlayerTechResearched(Player(0),'Rhac',3)
call SetPlayerTechResearched(Player(0),'Rhde',1)
call SetPlayerTechResearched(Player(0),'Rhan',1)
call SetPlayerTechResearched(Player(0),'Rhpt',2)
call SetPlayerTechResearched(Player(0),'Rhst',2)
call SetPlayerTechResearched(Player(0),'Rhla',3)
call SetPlayerTechResearched(Player(0),'Rhri',1)
call SetPlayerTechResearched(Player(0),'Rhlh',2)
call SetPlayerTechResearched(Player(0),'Rhse',1)
call SetPlayerTechResearched(Player(0),'Rhfl',1)
call SetPlayerTechResearched(Player(0),'Rhss',1)
call SetPlayerTechResearched(Player(0),'Rhrt',1)
call SetPlayerTechResearched(Player(0),'Rhpm',1)
call SetPlayerTechResearched(Player(0),'Rhfc',1)
call SetPlayerTechResearched(Player(0),'Rhfs',1)
call SetPlayerTechResearched(Player(0),'Rhcd',1)
call SetPlayerTechResearched(Player(0),'Rome',3)
call SetPlayerTechResearched(Player(0),'Rora',3)
call SetPlayerTechResearched(Player(0),'Roar',3)
call SetPlayerTechResearched(Player(0),'Rwdm',1)
call SetPlayerTechResearched(Player(0),'Ropg',1)
call SetPlayerTechResearched(Player(0),'Robs',1)
call SetPlayerTechResearched(Player(0),'Rows',1)
call SetPlayerTechResearched(Player(0),'Roen',1)
call SetPlayerTechResearched(Player(0),'Rovs',1)
call SetPlayerTechResearched(Player(0),'Rowd',2)
call SetPlayerTechResearched(Player(0),'Rost',2)
call SetPlayerTechResearched(Player(0),'Rosp',3)
call SetPlayerTechResearched(Player(0),'Rotr',1)
call SetPlayerTechResearched(Player(0),'Rolf',1)
call SetPlayerTechResearched(Player(0),'Rowt',2)
call SetPlayerTechResearched(Player(0),'Rorb',1)
call SetPlayerTechResearched(Player(0),'Robk',1)
call SetPlayerTechResearched(Player(0),'Ropm',1)
call SetPlayerTechResearched(Player(0),'Robf',1)
call SetPlayerTechResearched(Player(0),'Rume',3)
call SetPlayerTechResearched(Player(0),'Rura',3)
call SetPlayerTechResearched(Player(0),'Ruar',3)
call SetPlayerTechResearched(Player(0),'Ruac',1)
call SetPlayerTechResearched(Player(0),'Rugf',1)
call SetPlayerTechResearched(Player(0),'Ruwb',1)
call SetPlayerTechResearched(Player(0),'Rusf',1)
call SetPlayerTechResearched(Player(0),'Rune',2)
call SetPlayerTechResearched(Player(0),'Ruba',2)
call SetPlayerTechResearched(Player(0),'Rufb',1)
call SetPlayerTechResearched(Player(0),'Rusl',1)
call SetPlayerTechResearched(Player(0),'Rucr',3)
call SetPlayerTechResearched(Player(0),'Rupc',1)
call SetPlayerTechResearched(Player(0),'Rusm',1)
call SetPlayerTechResearched(Player(0),'Rubu',1)
call SetPlayerTechResearched(Player(0),'Rusp',1)
call SetPlayerTechResearched(Player(0),'Ruex',1)
call SetPlayerTechResearched(Player(0),'Rupm',1)
call SetPlayerTechResearched(Player(0),'Resm',3)
call SetPlayerTechResearched(Player(0),'Resw',3)
call SetPlayerTechResearched(Player(0),'Rema',3)
call SetPlayerTechResearched(Player(0),'Rerh',3)
call SetPlayerTechResearched(Player(0),'Reuv',1)
call SetPlayerTechResearched(Player(0),'Renb',1)
call SetPlayerTechResearched(Player(0),'Resc',1)
call SetPlayerTechResearched(Player(0),'Remg',1)
call SetPlayerTechResearched(Player(0),'Reib',1)
call SetPlayerTechResearched(Player(0),'Remk',1)
call SetPlayerTechResearched(Player(0),'Redt',2)
call SetPlayerTechResearched(Player(0),'Redc',2)
call SetPlayerTechResearched(Player(0),'Resi',1)
call SetPlayerTechResearched(Player(0),'Recb',1)
call SetPlayerTechResearched(Player(0),'Reht',1)
call SetPlayerTechResearched(Player(0),'Repb',1)
call SetPlayerTechResearched(Player(0),'Rers',1)
call SetPlayerTechResearched(Player(0),'Rehs',1)
call SetPlayerTechResearched(Player(0),'Reeb',1)
call SetPlayerTechResearched(Player(0),'Reec',1)
call SetPlayerTechResearched(Player(0),'Rews',1)
call SetPlayerTechResearched(Player(0),'Repm',1)
call SetPlayerTechResearched(Player(0),'Roch',1)
call SetPlayerTechResearched(Player(0),'Rgfo',3)
call SetPlayerTechResearched(Player(0),'Rguv',1)
call SetPlayerTechResearched(Player(0),'Rnen',1)
call SetPlayerTechResearched(Player(0),'Rnsw',2)
call SetPlayerTechResearched(Player(0),'Rnsi',1)
call SetPlayerTechResearched(Player(0),'Rnat',3)
call SetPlayerTechResearched(Player(0),'Rnam',3)
call SetPlayerTechResearched(Player(0),'Rnsb',1)
call SetPlayerTechResearched(Player(1),'Rhme',3)
call SetPlayerTechResearched(Player(1),'Rhra',3)
call SetPlayerTechResearched(Player(1),'Rhhb',1)
call SetPlayerTechResearched(Player(1),'Rhar',3)
call SetPlayerTechResearched(Player(1),'Rhgb',1)
call SetPlayerTechResearched(Player(1),'Rhac',3)
call SetPlayerTechResearched(Player(1),'Rhde',1)
call SetPlayerTechResearched(Player(1),'Rhan',1)
call SetPlayerTechResearched(Player(1),'Rhpt',2)
call SetPlayerTechResearched(Player(1),'Rhst',2)
call SetPlayerTechResearched(Player(1),'Rhla',3)
call SetPlayerTechResearched(Player(1),'Rhri',1)
call SetPlayerTechResearched(Player(1),'Rhlh',2)
call SetPlayerTechResearched(Player(1),'Rhse',1)
call SetPlayerTechResearched(Player(1),'Rhfl',1)
call SetPlayerTechResearched(Player(1),'Rhss',1)
call SetPlayerTechResearched(Player(1),'Rhrt',1)
call SetPlayerTechResearched(Player(1),'Rhpm',1)
call SetPlayerTechResearched(Player(1),'Rhfc',1)
call SetPlayerTechResearched(Player(1),'Rhfs',1)
call SetPlayerTechResearched(Player(1),'Rhcd',1)
call SetPlayerTechResearched(Player(1),'Rome',3)
call SetPlayerTechResearched(Player(1),'Rora',3)
call SetPlayerTechResearched(Player(1),'Roar',3)
call SetPlayerTechResearched(Player(1),'Rwdm',1)
call SetPlayerTechResearched(Player(1),'Ropg',1)
call SetPlayerTechResearched(Player(1),'Robs',1)
call SetPlayerTechResearched(Player(1),'Rows',1)
call SetPlayerTechResearched(Player(1),'Roen',1)
call SetPlayerTechResearched(Player(1),'Rovs',1)
call SetPlayerTechResearched(Player(1),'Rowd',2)
call SetPlayerTechResearched(Player(1),'Rost',2)
call SetPlayerTechResearched(Player(1),'Rosp',3)
call SetPlayerTechResearched(Player(1),'Rotr',1)
call SetPlayerTechResearched(Player(1),'Rolf',1)
call SetPlayerTechResearched(Player(1),'Rowt',2)
call SetPlayerTechResearched(Player(1),'Rorb',1)
call SetPlayerTechResearched(Player(1),'Robk',1)
call SetPlayerTechResearched(Player(1),'Ropm',1)
call SetPlayerTechResearched(Player(1),'Robf',1)
call SetPlayerTechResearched(Player(1),'Rume',3)
call SetPlayerTechResearched(Player(1),'Rura',3)
call SetPlayerTechResearched(Player(1),'Ruar',3)
call SetPlayerTechResearched(Player(1),'Ruac',1)
call SetPlayerTechResearched(Player(1),'Rugf',1)
call SetPlayerTechResearched(Player(1),'Ruwb',1)
call SetPlayerTechResearched(Player(1),'Rusf',1)
call SetPlayerTechResearched(Player(1),'Rune',2)
call SetPlayerTechResearched(Player(1),'Ruba',2)
call SetPlayerTechResearched(Player(1),'Rufb',1)
call SetPlayerTechResearched(Player(1),'Rusl',1)
call SetPlayerTechResearched(Player(1),'Rucr',3)
call SetPlayerTechResearched(Player(1),'Rupc',1)
call SetPlayerTechResearched(Player(1),'Rusm',1)
call SetPlayerTechResearched(Player(1),'Rubu',1)
call SetPlayerTechResearched(Player(1),'Rusp',1)
call SetPlayerTechResearched(Player(1),'Ruex',1)
call SetPlayerTechResearched(Player(1),'Rupm',1)
call SetPlayerTechResearched(Player(1),'Resm',3)
call SetPlayerTechResearched(Player(1),'Resw',3)
call SetPlayerTechResearched(Player(1),'Rema',3)
call SetPlayerTechResearched(Player(1),'Rerh',3)
call SetPlayerTechResearched(Player(1),'Reuv',1)
call SetPlayerTechResearched(Player(1),'Renb',1)
call SetPlayerTechResearched(Player(1),'Resc',1)
call SetPlayerTechResearched(Player(1),'Remg',1)
call SetPlayerTechResearched(Player(1),'Reib',1)
call SetPlayerTechResearched(Player(1),'Remk',1)
call SetPlayerTechResearched(Player(1),'Redt',2)
call SetPlayerTechResearched(Player(1),'Redc',2)
call SetPlayerTechResearched(Player(1),'Resi',1)
call SetPlayerTechResearched(Player(1),'Recb',1)
call SetPlayerTechResearched(Player(1),'Reht',1)
call SetPlayerTechResearched(Player(1),'Repb',1)
call SetPlayerTechResearched(Player(1),'Rers',1)
call SetPlayerTechResearched(Player(1),'Rehs',1)
call SetPlayerTechResearched(Player(1),'Reeb',1)
call SetPlayerTechResearched(Player(1),'Reec',1)
call SetPlayerTechResearched(Player(1),'Rews',1)
call SetPlayerTechResearched(Player(1),'Repm',1)
call SetPlayerTechResearched(Player(1),'Roch',1)
call SetPlayerTechResearched(Player(1),'Rgfo',3)
call SetPlayerTechResearched(Player(1),'Rguv',1)
call SetPlayerTechResearched(Player(1),'Rnen',1)
call SetPlayerTechResearched(Player(1),'Rnsw',2)
call SetPlayerTechResearched(Player(1),'Rnsi',1)
call SetPlayerTechResearched(Player(1),'Rnat',3)
call SetPlayerTechResearched(Player(1),'Rnam',3)
call SetPlayerTechResearched(Player(1),'Rnsb',1)
call SetPlayerTechResearched(Player(2),'Rhme',3)
call SetPlayerTechResearched(Player(2),'Rhra',3)
call SetPlayerTechResearched(Player(2),'Rhhb',1)
call SetPlayerTechResearched(Player(2),'Rhar',3)
call SetPlayerTechResearched(Player(2),'Rhgb',1)
call SetPlayerTechResearched(Player(2),'Rhac',3)
call SetPlayerTechResearched(Player(2),'Rhde',1)
call SetPlayerTechResearched(Player(2),'Rhan',1)
call SetPlayerTechResearched(Player(2),'Rhpt',2)
call SetPlayerTechResearched(Player(2),'Rhst',2)
call SetPlayerTechResearched(Player(2),'Rhla',3)
call SetPlayerTechResearched(Player(2),'Rhri',1)
call SetPlayerTechResearched(Player(2),'Rhlh',2)
call SetPlayerTechResearched(Player(2),'Rhse',1)
call SetPlayerTechResearched(Player(2),'Rhfl',1)
call SetPlayerTechResearched(Player(2),'Rhss',1)
call SetPlayerTechResearched(Player(2),'Rhrt',1)
call SetPlayerTechResearched(Player(2),'Rhpm',1)
call SetPlayerTechResearched(Player(2),'Rhfc',1)
call SetPlayerTechResearched(Player(2),'Rhfs',1)
call SetPlayerTechResearched(Player(2),'Rhcd',1)
call SetPlayerTechResearched(Player(2),'Rome',3)
call SetPlayerTechResearched(Player(2),'Rora',3)
call SetPlayerTechResearched(Player(2),'Roar',3)
call SetPlayerTechResearched(Player(2),'Rwdm',1)
call SetPlayerTechResearched(Player(2),'Ropg',1)
call SetPlayerTechResearched(Player(2),'Robs',1)
call SetPlayerTechResearched(Player(2),'Rows',1)
call SetPlayerTechResearched(Player(2),'Roen',1)
call SetPlayerTechResearched(Player(2),'Rovs',1)
call SetPlayerTechResearched(Player(2),'Rowd',2)
call SetPlayerTechResearched(Player(2),'Rost',2)
call SetPlayerTechResearched(Player(2),'Rosp',3)
call SetPlayerTechResearched(Player(2),'Rotr',1)
call SetPlayerTechResearched(Player(2),'Rolf',1)
call SetPlayerTechResearched(Player(2),'Rowt',2)
call SetPlayerTechResearched(Player(2),'Rorb',1)
call SetPlayerTechResearched(Player(2),'Robk',1)
call SetPlayerTechResearched(Player(2),'Ropm',1)
call SetPlayerTechResearched(Player(2),'Robf',1)
call SetPlayerTechResearched(Player(2),'Rume',3)
call SetPlayerTechResearched(Player(2),'Rura',3)
call SetPlayerTechResearched(Player(2),'Ruar',3)
call SetPlayerTechResearched(Player(2),'Ruac',1)
call SetPlayerTechResearched(Player(2),'Rugf',1)
call SetPlayerTechResearched(Player(2),'Ruwb',1)
call SetPlayerTechResearched(Player(2),'Rusf',1)
call SetPlayerTechResearched(Player(2),'Rune',2)
call SetPlayerTechResearched(Player(2),'Ruba',2)
call SetPlayerTechResearched(Player(2),'Rufb',1)
call SetPlayerTechResearched(Player(2),'Rusl',1)
call SetPlayerTechResearched(Player(2),'Rucr',3)
call SetPlayerTechResearched(Player(2),'Rupc',1)
call SetPlayerTechResearched(Player(2),'Rusm',1)
call SetPlayerTechResearched(Player(2),'Rubu',1)
call SetPlayerTechResearched(Player(2),'Rusp',1)
call SetPlayerTechResearched(Player(2),'Ruex',1)
call SetPlayerTechResearched(Player(2),'Rupm',1)
call SetPlayerTechResearched(Player(2),'Resm',3)
call SetPlayerTechResearched(Player(2),'Resw',3)
call SetPlayerTechResearched(Player(2),'Rema',3)
call SetPlayerTechResearched(Player(2),'Rerh',3)
call SetPlayerTechResearched(Player(2),'Reuv',1)
call SetPlayerTechResearched(Player(2),'Renb',1)
call SetPlayerTechResearched(Player(2),'Resc',1)
call SetPlayerTechResearched(Player(2),'Remg',1)
call SetPlayerTechResearched(Player(2),'Reib',1)
call SetPlayerTechResearched(Player(2),'Remk',1)
call SetPlayerTechResearched(Player(2),'Redt',2)
call SetPlayerTechResearched(Player(2),'Redc',2)
call SetPlayerTechResearched(Player(2),'Resi',1)
call SetPlayerTechResearched(Player(2),'Recb',1)
call SetPlayerTechResearched(Player(2),'Reht',1)
call SetPlayerTechResearched(Player(2),'Repb',1)
call SetPlayerTechResearched(Player(2),'Rers',1)
call SetPlayerTechResearched(Player(2),'Rehs',1)
call SetPlayerTechResearched(Player(2),'Reeb',1)
call SetPlayerTechResearched(Player(2),'Reec',1)
call SetPlayerTechResearched(Player(2),'Rews',1)
call SetPlayerTechResearched(Player(2),'Repm',1)
call SetPlayerTechResearched(Player(2),'Roch',1)
call SetPlayerTechResearched(Player(2),'Rgfo',3)
call SetPlayerTechResearched(Player(2),'Rguv',1)
call SetPlayerTechResearched(Player(2),'Rnen',1)
call SetPlayerTechResearched(Player(2),'Rnsw',2)
call SetPlayerTechResearched(Player(2),'Rnsi',1)
call SetPlayerTechResearched(Player(2),'Rnat',3)
call SetPlayerTechResearched(Player(2),'Rnam',3)
call SetPlayerTechResearched(Player(2),'Rnsb',1)
call SetPlayerTechResearched(Player(3),'Rhme',3)
call SetPlayerTechResearched(Player(3),'Rhra',3)
call SetPlayerTechResearched(Player(3),'Rhhb',1)
call SetPlayerTechResearched(Player(3),'Rhar',3)
call SetPlayerTechResearched(Player(3),'Rhgb',1)
call SetPlayerTechResearched(Player(3),'Rhac',3)
call SetPlayerTechResearched(Player(3),'Rhde',1)
call SetPlayerTechResearched(Player(3),'Rhan',1)
call SetPlayerTechResearched(Player(3),'Rhpt',2)
call SetPlayerTechResearched(Player(3),'Rhst',2)
call SetPlayerTechResearched(Player(3),'Rhla',3)
call SetPlayerTechResearched(Player(3),'Rhri',1)
call SetPlayerTechResearched(Player(3),'Rhlh',2)
call SetPlayerTechResearched(Player(3),'Rhse',1)
call SetPlayerTechResearched(Player(3),'Rhfl',1)
call SetPlayerTechResearched(Player(3),'Rhss',1)
call SetPlayerTechResearched(Player(3),'Rhrt',1)
call SetPlayerTechResearched(Player(3),'Rhpm',1)
call SetPlayerTechResearched(Player(3),'Rhfc',1)
call SetPlayerTechResearched(Player(3),'Rhfs',1)
call SetPlayerTechResearched(Player(3),'Rhcd',1)
call SetPlayerTechResearched(Player(3),'Rome',3)
call SetPlayerTechResearched(Player(3),'Rora',3)
call SetPlayerTechResearched(Player(3),'Roar',3)
call SetPlayerTechResearched(Player(3),'Rwdm',1)
call SetPlayerTechResearched(Player(3),'Ropg',1)
call SetPlayerTechResearched(Player(3),'Robs',1)
call SetPlayerTechResearched(Player(3),'Rows',1)
call SetPlayerTechResearched(Player(3),'Roen',1)
call SetPlayerTechResearched(Player(3),'Rovs',1)
call SetPlayerTechResearched(Player(3),'Rowd',2)
call SetPlayerTechResearched(Player(3),'Rost',2)
call SetPlayerTechResearched(Player(3),'Rosp',3)
call SetPlayerTechResearched(Player(3),'Rotr',1)
call SetPlayerTechResearched(Player(3),'Rolf',1)
call SetPlayerTechResearched(Player(3),'Rowt',2)
call SetPlayerTechResearched(Player(3),'Rorb',1)
call SetPlayerTechResearched(Player(3),'Robk',1)
call SetPlayerTechResearched(Player(3),'Ropm',1)
call SetPlayerTechResearched(Player(3),'Robf',1)
call SetPlayerTechResearched(Player(3),'Rume',3)
call SetPlayerTechResearched(Player(3),'Rura',3)
call SetPlayerTechResearched(Player(3),'Ruar',3)
call SetPlayerTechResearched(Player(3),'Ruac',1)
call SetPlayerTechResearched(Player(3),'Rugf',1)
call SetPlayerTechResearched(Player(3),'Ruwb',1)
call SetPlayerTechResearched(Player(3),'Rusf',1)
call SetPlayerTechResearched(Player(3),'Rune',2)
call SetPlayerTechResearched(Player(3),'Ruba',2)
call SetPlayerTechResearched(Player(3),'Rufb',1)
call SetPlayerTechResearched(Player(3),'Rusl',1)
call SetPlayerTechResearched(Player(3),'Rucr',3)
call SetPlayerTechResearched(Player(3),'Rupc',1)
call SetPlayerTechResearched(Player(3),'Rusm',1)
call SetPlayerTechResearched(Player(3),'Rubu',1)
call SetPlayerTechResearched(Player(3),'Rusp',1)
call SetPlayerTechResearched(Player(3),'Ruex',1)
call SetPlayerTechResearched(Player(3),'Rupm',1)
call SetPlayerTechResearched(Player(3),'Resm',3)
call SetPlayerTechResearched(Player(3),'Resw',3)
call SetPlayerTechResearched(Player(3),'Rema',3)
call SetPlayerTechResearched(Player(3),'Rerh',3)
call SetPlayerTechResearched(Player(3),'Reuv',1)
call SetPlayerTechResearched(Player(3),'Renb',1)
call SetPlayerTechResearched(Player(3),'Resc',1)
call SetPlayerTechResearched(Player(3),'Remg',1)
call SetPlayerTechResearched(Player(3),'Reib',1)
call SetPlayerTechResearched(Player(3),'Remk',1)
call SetPlayerTechResearched(Player(3),'Redt',2)
call SetPlayerTechResearched(Player(3),'Redc',2)
call SetPlayerTechResearched(Player(3),'Resi',1)
call SetPlayerTechResearched(Player(3),'Recb',1)
call SetPlayerTechResearched(Player(3),'Reht',1)
call SetPlayerTechResearched(Player(3),'Repb',1)
call SetPlayerTechResearched(Player(3),'Rers',1)
call SetPlayerTechResearched(Player(3),'Rehs',1)
call SetPlayerTechResearched(Player(3),'Reeb',1)
call SetPlayerTechResearched(Player(3),'Reec',1)
call SetPlayerTechResearched(Player(3),'Rews',1)
call SetPlayerTechResearched(Player(3),'Repm',1)
call SetPlayerTechResearched(Player(3),'Roch',1)
call SetPlayerTechResearched(Player(3),'Rgfo',3)
call SetPlayerTechResearched(Player(3),'Rguv',1)
call SetPlayerTechResearched(Player(3),'Rnen',1)
call SetPlayerTechResearched(Player(3),'Rnsw',2)
call SetPlayerTechResearched(Player(3),'Rnsi',1)
call SetPlayerTechResearched(Player(3),'Rnat',3)
call SetPlayerTechResearched(Player(3),'Rnam',3)
call SetPlayerTechResearched(Player(3),'Rnsb',1)
call SetPlayerTechResearched(Player(4),'Rhme',3)
call SetPlayerTechResearched(Player(4),'Rhra',3)
call SetPlayerTechResearched(Player(4),'Rhhb',1)
call SetPlayerTechResearched(Player(4),'Rhar',3)
call SetPlayerTechResearched(Player(4),'Rhgb',1)
call SetPlayerTechResearched(Player(4),'Rhac',3)
call SetPlayerTechResearched(Player(4),'Rhde',1)
call SetPlayerTechResearched(Player(4),'Rhan',1)
call SetPlayerTechResearched(Player(4),'Rhpt',2)
call SetPlayerTechResearched(Player(4),'Rhst',2)
call SetPlayerTechResearched(Player(4),'Rhla',3)
call SetPlayerTechResearched(Player(4),'Rhri',1)
call SetPlayerTechResearched(Player(4),'Rhlh',2)
call SetPlayerTechResearched(Player(4),'Rhse',1)
call SetPlayerTechResearched(Player(4),'Rhfl',1)
call SetPlayerTechResearched(Player(4),'Rhss',1)
call SetPlayerTechResearched(Player(4),'Rhrt',1)
call SetPlayerTechResearched(Player(4),'Rhpm',1)
call SetPlayerTechResearched(Player(4),'Rhfc',1)
call SetPlayerTechResearched(Player(4),'Rhfs',1)
call SetPlayerTechResearched(Player(4),'Rhcd',1)
call SetPlayerTechResearched(Player(4),'Rome',3)
call SetPlayerTechResearched(Player(4),'Rora',3)
call SetPlayerTechResearched(Player(4),'Roar',3)
call SetPlayerTechResearched(Player(4),'Rwdm',1)
call SetPlayerTechResearched(Player(4),'Ropg',1)
call SetPlayerTechResearched(Player(4),'Robs',1)
call SetPlayerTechResearched(Player(4),'Rows',1)
call SetPlayerTechResearched(Player(4),'Roen',1)
call SetPlayerTechResearched(Player(4),'Rovs',1)
call SetPlayerTechResearched(Player(4),'Rowd',2)
call SetPlayerTechResearched(Player(4),'Rost',2)
call SetPlayerTechResearched(Player(4),'Rosp',3)
call SetPlayerTechResearched(Player(4),'Rotr',1)
call SetPlayerTechResearched(Player(4),'Rolf',1)
call SetPlayerTechResearched(Player(4),'Rowt',2)
call SetPlayerTechResearched(Player(4),'Rorb',1)
call SetPlayerTechResearched(Player(4),'Robk',1)
call SetPlayerTechResearched(Player(4),'Ropm',1)
call SetPlayerTechResearched(Player(4),'Robf',1)
call SetPlayerTechResearched(Player(4),'Rume',3)
call SetPlayerTechResearched(Player(4),'Rura',3)
call SetPlayerTechResearched(Player(4),'Ruar',3)
call SetPlayerTechResearched(Player(4),'Ruac',1)
call SetPlayerTechResearched(Player(4),'Rugf',1)
call SetPlayerTechResearched(Player(4),'Ruwb',1)
call SetPlayerTechResearched(Player(4),'Rusf',1)
call SetPlayerTechResearched(Player(4),'Rune',2)
call SetPlayerTechResearched(Player(4),'Ruba',2)
call SetPlayerTechResearched(Player(4),'Rufb',1)
call SetPlayerTechResearched(Player(4),'Rusl',1)
call SetPlayerTechResearched(Player(4),'Rucr',3)
call SetPlayerTechResearched(Player(4),'Rupc',1)
call SetPlayerTechResearched(Player(4),'Rusm',1)
call SetPlayerTechResearched(Player(4),'Rubu',1)
call SetPlayerTechResearched(Player(4),'Rusp',1)
call SetPlayerTechResearched(Player(4),'Ruex',1)
call SetPlayerTechResearched(Player(4),'Rupm',1)
call SetPlayerTechResearched(Player(4),'Resm',3)
call SetPlayerTechResearched(Player(4),'Resw',3)
call SetPlayerTechResearched(Player(4),'Rema',3)
call SetPlayerTechResearched(Player(4),'Rerh',3)
call SetPlayerTechResearched(Player(4),'Reuv',1)
call SetPlayerTechResearched(Player(4),'Renb',1)
call SetPlayerTechResearched(Player(4),'Resc',1)
call SetPlayerTechResearched(Player(4),'Remg',1)
call SetPlayerTechResearched(Player(4),'Reib',1)
call SetPlayerTechResearched(Player(4),'Remk',1)
call SetPlayerTechResearched(Player(4),'Redt',2)
call SetPlayerTechResearched(Player(4),'Redc',2)
call SetPlayerTechResearched(Player(4),'Resi',1)
call SetPlayerTechResearched(Player(4),'Recb',1)
call SetPlayerTechResearched(Player(4),'Reht',1)
call SetPlayerTechResearched(Player(4),'Repb',1)
call SetPlayerTechResearched(Player(4),'Rers',1)
call SetPlayerTechResearched(Player(4),'Rehs',1)
call SetPlayerTechResearched(Player(4),'Reeb',1)
call SetPlayerTechResearched(Player(4),'Reec',1)
call SetPlayerTechResearched(Player(4),'Rews',1)
call SetPlayerTechResearched(Player(4),'Repm',1)
call SetPlayerTechResearched(Player(4),'Roch',1)
call SetPlayerTechResearched(Player(4),'Rgfo',3)
call SetPlayerTechResearched(Player(4),'Rguv',1)
call SetPlayerTechResearched(Player(4),'Rnen',1)
call SetPlayerTechResearched(Player(4),'Rnsw',2)
call SetPlayerTechResearched(Player(4),'Rnsi',1)
call SetPlayerTechResearched(Player(4),'Rnat',3)
call SetPlayerTechResearched(Player(4),'Rnam',3)
call SetPlayerTechResearched(Player(4),'Rnsb',1)
call SetPlayerTechResearched(Player(5),'Rhme',3)
call SetPlayerTechResearched(Player(5),'Rhra',3)
call SetPlayerTechResearched(Player(5),'Rhhb',1)
call SetPlayerTechResearched(Player(5),'Rhar',3)
call SetPlayerTechResearched(Player(5),'Rhgb',1)
call SetPlayerTechResearched(Player(5),'Rhac',3)
call SetPlayerTechResearched(Player(5),'Rhde',1)
call SetPlayerTechResearched(Player(5),'Rhan',1)
call SetPlayerTechResearched(Player(5),'Rhpt',2)
call SetPlayerTechResearched(Player(5),'Rhst',2)
call SetPlayerTechResearched(Player(5),'Rhla',3)
call SetPlayerTechResearched(Player(5),'Rhri',1)
call SetPlayerTechResearched(Player(5),'Rhlh',2)
call SetPlayerTechResearched(Player(5),'Rhse',1)
call SetPlayerTechResearched(Player(5),'Rhfl',1)
call SetPlayerTechResearched(Player(5),'Rhss',1)
call SetPlayerTechResearched(Player(5),'Rhrt',1)
call SetPlayerTechResearched(Player(5),'Rhpm',1)
call SetPlayerTechResearched(Player(5),'Rhfc',1)
call SetPlayerTechResearched(Player(5),'Rhfs',1)
call SetPlayerTechResearched(Player(5),'Rhcd',1)
call SetPlayerTechResearched(Player(5),'Rome',3)
call SetPlayerTechResearched(Player(5),'Rora',3)
call SetPlayerTechResearched(Player(5),'Roar',3)
call SetPlayerTechResearched(Player(5),'Rwdm',1)
call SetPlayerTechResearched(Player(5),'Ropg',1)
call SetPlayerTechResearched(Player(5),'Robs',1)
call SetPlayerTechResearched(Player(5),'Rows',1)
call SetPlayerTechResearched(Player(5),'Roen',1)
call SetPlayerTechResearched(Player(5),'Rovs',1)
call SetPlayerTechResearched(Player(5),'Rowd',2)
call SetPlayerTechResearched(Player(5),'Rost',2)
call SetPlayerTechResearched(Player(5),'Rosp',3)
call SetPlayerTechResearched(Player(5),'Rotr',1)
call SetPlayerTechResearched(Player(5),'Rolf',1)
call SetPlayerTechResearched(Player(5),'Rowt',2)
call SetPlayerTechResearched(Player(5),'Rorb',1)
call SetPlayerTechResearched(Player(5),'Robk',1)
call SetPlayerTechResearched(Player(5),'Ropm',1)
call SetPlayerTechResearched(Player(5),'Robf',1)
call SetPlayerTechResearched(Player(5),'Rume',3)
call SetPlayerTechResearched(Player(5),'Rura',3)
call SetPlayerTechResearched(Player(5),'Ruar',3)
call SetPlayerTechResearched(Player(5),'Ruac',1)
call SetPlayerTechResearched(Player(5),'Rugf',1)
call SetPlayerTechResearched(Player(5),'Ruwb',1)
call SetPlayerTechResearched(Player(5),'Rusf',1)
call SetPlayerTechResearched(Player(5),'Rune',2)
call SetPlayerTechResearched(Player(5),'Ruba',2)
call SetPlayerTechResearched(Player(5),'Rufb',1)
call SetPlayerTechResearched(Player(5),'Rusl',1)
call SetPlayerTechResearched(Player(5),'Rucr',3)
call SetPlayerTechResearched(Player(5),'Rupc',1)
call SetPlayerTechResearched(Player(5),'Rusm',1)
call SetPlayerTechResearched(Player(5),'Rubu',1)
call SetPlayerTechResearched(Player(5),'Rusp',1)
call SetPlayerTechResearched(Player(5),'Ruex',1)
call SetPlayerTechResearched(Player(5),'Rupm',1)
call SetPlayerTechResearched(Player(5),'Resm',3)
call SetPlayerTechResearched(Player(5),'Resw',3)
call SetPlayerTechResearched(Player(5),'Rema',3)
call SetPlayerTechResearched(Player(5),'Rerh',3)
call SetPlayerTechResearched(Player(5),'Reuv',1)
call SetPlayerTechResearched(Player(5),'Renb',1)
call SetPlayerTechResearched(Player(5),'Resc',1)
call SetPlayerTechResearched(Player(5),'Remg',1)
call SetPlayerTechResearched(Player(5),'Reib',1)
call SetPlayerTechResearched(Player(5),'Remk',1)
call SetPlayerTechResearched(Player(5),'Redt',2)
call SetPlayerTechResearched(Player(5),'Redc',2)
call SetPlayerTechResearched(Player(5),'Resi',1)
call SetPlayerTechResearched(Player(5),'Recb',1)
call SetPlayerTechResearched(Player(5),'Reht',1)
call SetPlayerTechResearched(Player(5),'Repb',1)
call SetPlayerTechResearched(Player(5),'Rers',1)
call SetPlayerTechResearched(Player(5),'Rehs',1)
call SetPlayerTechResearched(Player(5),'Reeb',1)
call SetPlayerTechResearched(Player(5),'Reec',1)
call SetPlayerTechResearched(Player(5),'Rews',1)
call SetPlayerTechResearched(Player(5),'Repm',1)
call SetPlayerTechResearched(Player(5),'Roch',1)
call SetPlayerTechResearched(Player(5),'Rgfo',3)
call SetPlayerTechResearched(Player(5),'Rguv',1)
call SetPlayerTechResearched(Player(5),'Rnen',1)
call SetPlayerTechResearched(Player(5),'Rnsw',2)
call SetPlayerTechResearched(Player(5),'Rnsi',1)
call SetPlayerTechResearched(Player(5),'Rnat',3)
call SetPlayerTechResearched(Player(5),'Rnam',3)
call SetPlayerTechResearched(Player(5),'Rnsb',1)
call SetPlayerTechResearched(Player(6),'Rhme',3)
call SetPlayerTechResearched(Player(6),'Rhra',3)
call SetPlayerTechResearched(Player(6),'Rhhb',1)
call SetPlayerTechResearched(Player(6),'Rhar',3)
call SetPlayerTechResearched(Player(6),'Rhgb',1)
call SetPlayerTechResearched(Player(6),'Rhac',3)
call SetPlayerTechResearched(Player(6),'Rhde',1)
call SetPlayerTechResearched(Player(6),'Rhan',1)
call SetPlayerTechResearched(Player(6),'Rhpt',2)
call SetPlayerTechResearched(Player(6),'Rhst',2)
call SetPlayerTechResearched(Player(6),'Rhla',3)
call SetPlayerTechResearched(Player(6),'Rhri',1)
call SetPlayerTechResearched(Player(6),'Rhlh',2)
call SetPlayerTechResearched(Player(6),'Rhse',1)
call SetPlayerTechResearched(Player(6),'Rhfl',1)
call SetPlayerTechResearched(Player(6),'Rhss',1)
call SetPlayerTechResearched(Player(6),'Rhrt',1)
call SetPlayerTechResearched(Player(6),'Rhpm',1)
call SetPlayerTechResearched(Player(6),'Rhfc',1)
call SetPlayerTechResearched(Player(6),'Rhfs',1)
call SetPlayerTechResearched(Player(6),'Rhcd',1)
call SetPlayerTechResearched(Player(6),'Rome',3)
call SetPlayerTechResearched(Player(6),'Rora',3)
call SetPlayerTechResearched(Player(6),'Roar',3)
call SetPlayerTechResearched(Player(6),'Rwdm',1)
call SetPlayerTechResearched(Player(6),'Ropg',1)
call SetPlayerTechResearched(Player(6),'Robs',1)
call SetPlayerTechResearched(Player(6),'Rows',1)
call SetPlayerTechResearched(Player(6),'Roen',1)
call SetPlayerTechResearched(Player(6),'Rovs',1)
call SetPlayerTechResearched(Player(6),'Rowd',2)
call SetPlayerTechResearched(Player(6),'Rost',2)
call SetPlayerTechResearched(Player(6),'Rosp',3)
call SetPlayerTechResearched(Player(6),'Rotr',1)
call SetPlayerTechResearched(Player(6),'Rolf',1)
call SetPlayerTechResearched(Player(6),'Rowt',2)
call SetPlayerTechResearched(Player(6),'Rorb',1)
call SetPlayerTechResearched(Player(6),'Robk',1)
call SetPlayerTechResearched(Player(6),'Ropm',1)
call SetPlayerTechResearched(Player(6),'Robf',1)
call SetPlayerTechResearched(Player(6),'Rume',3)
call SetPlayerTechResearched(Player(6),'Rura',3)
call SetPlayerTechResearched(Player(6),'Ruar',3)
call SetPlayerTechResearched(Player(6),'Ruac',1)
call SetPlayerTechResearched(Player(6),'Rugf',1)
call SetPlayerTechResearched(Player(6),'Ruwb',1)
call SetPlayerTechResearched(Player(6),'Rusf',1)
call SetPlayerTechResearched(Player(6),'Rune',2)
call SetPlayerTechResearched(Player(6),'Ruba',2)
call SetPlayerTechResearched(Player(6),'Rufb',1)
call SetPlayerTechResearched(Player(6),'Rusl',1)
call SetPlayerTechResearched(Player(6),'Rucr',3)
call SetPlayerTechResearched(Player(6),'Rupc',1)
call SetPlayerTechResearched(Player(6),'Rusm',1)
call SetPlayerTechResearched(Player(6),'Rubu',1)
call SetPlayerTechResearched(Player(6),'Rusp',1)
call SetPlayerTechResearched(Player(6),'Ruex',1)
call SetPlayerTechResearched(Player(6),'Rupm',1)
call SetPlayerTechResearched(Player(6),'Resm',3)
call SetPlayerTechResearched(Player(6),'Resw',3)
call SetPlayerTechResearched(Player(6),'Rema',3)
call SetPlayerTechResearched(Player(6),'Rerh',3)
call SetPlayerTechResearched(Player(6),'Reuv',1)
call SetPlayerTechResearched(Player(6),'Renb',1)
call SetPlayerTechResearched(Player(6),'Resc',1)
call SetPlayerTechResearched(Player(6),'Remg',1)
call SetPlayerTechResearched(Player(6),'Reib',1)
call SetPlayerTechResearched(Player(6),'Remk',1)
call SetPlayerTechResearched(Player(6),'Redt',2)
call SetPlayerTechResearched(Player(6),'Redc',2)
call SetPlayerTechResearched(Player(6),'Resi',1)
call SetPlayerTechResearched(Player(6),'Recb',1)
call SetPlayerTechResearched(Player(6),'Reht',1)
call SetPlayerTechResearched(Player(6),'Repb',1)
call SetPlayerTechResearched(Player(6),'Rers',1)
call SetPlayerTechResearched(Player(6),'Rehs',1)
call SetPlayerTechResearched(Player(6),'Reeb',1)
call SetPlayerTechResearched(Player(6),'Reec',1)
call SetPlayerTechResearched(Player(6),'Rews',1)
call SetPlayerTechResearched(Player(6),'Repm',1)
call SetPlayerTechResearched(Player(6),'Roch',1)
call SetPlayerTechResearched(Player(6),'Rgfo',3)
call SetPlayerTechResearched(Player(6),'Rguv',1)
call SetPlayerTechResearched(Player(6),'Rnen',1)
call SetPlayerTechResearched(Player(6),'Rnsw',2)
call SetPlayerTechResearched(Player(6),'Rnsi',1)
call SetPlayerTechResearched(Player(6),'Rnat',3)
call SetPlayerTechResearched(Player(6),'Rnam',3)
call SetPlayerTechResearched(Player(6),'Rnsb',1)
call SetPlayerTechResearched(Player(7),'Rhme',3)
call SetPlayerTechResearched(Player(7),'Rhra',3)
call SetPlayerTechResearched(Player(7),'Rhhb',1)
call SetPlayerTechResearched(Player(7),'Rhar',3)
call SetPlayerTechResearched(Player(7),'Rhgb',1)
call SetPlayerTechResearched(Player(7),'Rhac',3)
call SetPlayerTechResearched(Player(7),'Rhde',1)
call SetPlayerTechResearched(Player(7),'Rhan',1)
call SetPlayerTechResearched(Player(7),'Rhpt',2)
call SetPlayerTechResearched(Player(7),'Rhst',2)
call SetPlayerTechResearched(Player(7),'Rhla',3)
call SetPlayerTechResearched(Player(7),'Rhri',1)
call SetPlayerTechResearched(Player(7),'Rhlh',2)
call SetPlayerTechResearched(Player(7),'Rhse',1)
call SetPlayerTechResearched(Player(7),'Rhfl',1)
call SetPlayerTechResearched(Player(7),'Rhss',1)
call SetPlayerTechResearched(Player(7),'Rhrt',1)
call SetPlayerTechResearched(Player(7),'Rhpm',1)
call SetPlayerTechResearched(Player(7),'Rhfc',1)
call SetPlayerTechResearched(Player(7),'Rhfs',1)
call SetPlayerTechResearched(Player(7),'Rhcd',1)
call SetPlayerTechResearched(Player(7),'Rome',3)
call SetPlayerTechResearched(Player(7),'Rora',3)
call SetPlayerTechResearched(Player(7),'Roar',3)
call SetPlayerTechResearched(Player(7),'Rwdm',1)
call SetPlayerTechResearched(Player(7),'Ropg',1)
call SetPlayerTechResearched(Player(7),'Robs',1)
call SetPlayerTechResearched(Player(7),'Rows',1)
call SetPlayerTechResearched(Player(7),'Roen',1)
call SetPlayerTechResearched(Player(7),'Rovs',1)
call SetPlayerTechResearched(Player(7),'Rowd',2)
call SetPlayerTechResearched(Player(7),'Rost',2)
call SetPlayerTechResearched(Player(7),'Rosp',3)
call SetPlayerTechResearched(Player(7),'Rotr',1)
call SetPlayerTechResearched(Player(7),'Rolf',1)
call SetPlayerTechResearched(Player(7),'Rowt',2)
call SetPlayerTechResearched(Player(7),'Rorb',1)
call SetPlayerTechResearched(Player(7),'Robk',1)
call SetPlayerTechResearched(Player(7),'Ropm',1)
call SetPlayerTechResearched(Player(7),'Robf',1)
call SetPlayerTechResearched(Player(7),'Rume',3)
call SetPlayerTechResearched(Player(7),'Rura',3)
call SetPlayerTechResearched(Player(7),'Ruar',3)
call SetPlayerTechResearched(Player(7),'Ruac',1)
call SetPlayerTechResearched(Player(7),'Rugf',1)
call SetPlayerTechResearched(Player(7),'Ruwb',1)
call SetPlayerTechResearched(Player(7),'Rusf',1)
call SetPlayerTechResearched(Player(7),'Rune',2)
call SetPlayerTechResearched(Player(7),'Ruba',2)
call SetPlayerTechResearched(Player(7),'Rufb',1)
call SetPlayerTechResearched(Player(7),'Rusl',1)
call SetPlayerTechResearched(Player(7),'Rucr',3)
call SetPlayerTechResearched(Player(7),'Rupc',1)
call SetPlayerTechResearched(Player(7),'Rusm',1)
call SetPlayerTechResearched(Player(7),'Rubu',1)
call SetPlayerTechResearched(Player(7),'Rusp',1)
call SetPlayerTechResearched(Player(7),'Ruex',1)
call SetPlayerTechResearched(Player(7),'Rupm',1)
call SetPlayerTechResearched(Player(7),'Resm',3)
call SetPlayerTechResearched(Player(7),'Resw',3)
call SetPlayerTechResearched(Player(7),'Rema',3)
call SetPlayerTechResearched(Player(7),'Rerh',3)
call SetPlayerTechResearched(Player(7),'Reuv',1)
call SetPlayerTechResearched(Player(7),'Renb',1)
call SetPlayerTechResearched(Player(7),'Resc',1)
call SetPlayerTechResearched(Player(7),'Remg',1)
call SetPlayerTechResearched(Player(7),'Reib',1)
call SetPlayerTechResearched(Player(7),'Remk',1)
call SetPlayerTechResearched(Player(7),'Redt',2)
call SetPlayerTechResearched(Player(7),'Redc',2)
call SetPlayerTechResearched(Player(7),'Resi',1)
call SetPlayerTechResearched(Player(7),'Recb',1)
call SetPlayerTechResearched(Player(7),'Reht',1)
call SetPlayerTechResearched(Player(7),'Repb',1)
call SetPlayerTechResearched(Player(7),'Rers',1)
call SetPlayerTechResearched(Player(7),'Rehs',1)
call SetPlayerTechResearched(Player(7),'Reeb',1)
call SetPlayerTechResearched(Player(7),'Reec',1)
call SetPlayerTechResearched(Player(7),'Rews',1)
call SetPlayerTechResearched(Player(7),'Repm',1)
call SetPlayerTechResearched(Player(7),'Roch',1)
call SetPlayerTechResearched(Player(7),'Rgfo',3)
call SetPlayerTechResearched(Player(7),'Rguv',1)
call SetPlayerTechResearched(Player(7),'Rnen',1)
call SetPlayerTechResearched(Player(7),'Rnsw',2)
call SetPlayerTechResearched(Player(7),'Rnsi',1)
call SetPlayerTechResearched(Player(7),'Rnat',3)
call SetPlayerTechResearched(Player(7),'Rnam',3)
call SetPlayerTechResearched(Player(7),'Rnsb',1)
call SetPlayerTechResearched(Player(8),'Rhme',3)
call SetPlayerTechResearched(Player(8),'Rhra',3)
call SetPlayerTechResearched(Player(8),'Rhhb',1)
call SetPlayerTechResearched(Player(8),'Rhar',3)
call SetPlayerTechResearched(Player(8),'Rhgb',1)
call SetPlayerTechResearched(Player(8),'Rhac',3)
call SetPlayerTechResearched(Player(8),'Rhde',1)
call SetPlayerTechResearched(Player(8),'Rhan',1)
call SetPlayerTechResearched(Player(8),'Rhpt',2)
call SetPlayerTechResearched(Player(8),'Rhst',2)
call SetPlayerTechResearched(Player(8),'Rhla',3)
call SetPlayerTechResearched(Player(8),'Rhri',1)
call SetPlayerTechResearched(Player(8),'Rhlh',2)
call SetPlayerTechResearched(Player(8),'Rhse',1)
call SetPlayerTechResearched(Player(8),'Rhfl',1)
call SetPlayerTechResearched(Player(8),'Rhss',1)
call SetPlayerTechResearched(Player(8),'Rhrt',1)
call SetPlayerTechResearched(Player(8),'Rhpm',1)
call SetPlayerTechResearched(Player(8),'Rhfc',1)
call SetPlayerTechResearched(Player(8),'Rhfs',1)
call SetPlayerTechResearched(Player(8),'Rhcd',1)
call SetPlayerTechResearched(Player(8),'Rome',3)
call SetPlayerTechResearched(Player(8),'Rora',3)
call SetPlayerTechResearched(Player(8),'Roar',3)
call SetPlayerTechResearched(Player(8),'Rwdm',1)
call SetPlayerTechResearched(Player(8),'Ropg',1)
call SetPlayerTechResearched(Player(8),'Robs',1)
call SetPlayerTechResearched(Player(8),'Rows',1)
call SetPlayerTechResearched(Player(8),'Roen',1)
call SetPlayerTechResearched(Player(8),'Rovs',1)
call SetPlayerTechResearched(Player(8),'Rowd',2)
call SetPlayerTechResearched(Player(8),'Rost',2)
call SetPlayerTechResearched(Player(8),'Rosp',3)
call SetPlayerTechResearched(Player(8),'Rotr',1)
call SetPlayerTechResearched(Player(8),'Rolf',1)
call SetPlayerTechResearched(Player(8),'Rowt',2)
call SetPlayerTechResearched(Player(8),'Rorb',1)
call SetPlayerTechResearched(Player(8),'Robk',1)
call SetPlayerTechResearched(Player(8),'Ropm',1)
call SetPlayerTechResearched(Player(8),'Robf',1)
call SetPlayerTechResearched(Player(8),'Rume',3)
call SetPlayerTechResearched(Player(8),'Rura',3)
call SetPlayerTechResearched(Player(8),'Ruar',3)
call SetPlayerTechResearched(Player(8),'Ruac',1)
call SetPlayerTechResearched(Player(8),'Rugf',1)
call SetPlayerTechResearched(Player(8),'Ruwb',1)
call SetPlayerTechResearched(Player(8),'Rusf',1)
call SetPlayerTechResearched(Player(8),'Rune',2)
call SetPlayerTechResearched(Player(8),'Ruba',2)
call SetPlayerTechResearched(Player(8),'Rufb',1)
call SetPlayerTechResearched(Player(8),'Rusl',1)
call SetPlayerTechResearched(Player(8),'Rucr',3)
call SetPlayerTechResearched(Player(8),'Rupc',1)
call SetPlayerTechResearched(Player(8),'Rusm',1)
call SetPlayerTechResearched(Player(8),'Rubu',1)
call SetPlayerTechResearched(Player(8),'Rusp',1)
call SetPlayerTechResearched(Player(8),'Ruex',1)
call SetPlayerTechResearched(Player(8),'Rupm',1)
call SetPlayerTechResearched(Player(8),'Resm',3)
call SetPlayerTechResearched(Player(8),'Resw',3)
call SetPlayerTechResearched(Player(8),'Rema',3)
call SetPlayerTechResearched(Player(8),'Rerh',3)
call SetPlayerTechResearched(Player(8),'Reuv',1)
call SetPlayerTechResearched(Player(8),'Renb',1)
call SetPlayerTechResearched(Player(8),'Resc',1)
call SetPlayerTechResearched(Player(8),'Remg',1)
call SetPlayerTechResearched(Player(8),'Reib',1)
call SetPlayerTechResearched(Player(8),'Remk',1)
call SetPlayerTechResearched(Player(8),'Redt',2)
call SetPlayerTechResearched(Player(8),'Redc',2)
call SetPlayerTechResearched(Player(8),'Resi',1)
call SetPlayerTechResearched(Player(8),'Recb',1)
call SetPlayerTechResearched(Player(8),'Reht',1)
call SetPlayerTechResearched(Player(8),'Repb',1)
call SetPlayerTechResearched(Player(8),'Rers',1)
call SetPlayerTechResearched(Player(8),'Rehs',1)
call SetPlayerTechResearched(Player(8),'Reeb',1)
call SetPlayerTechResearched(Player(8),'Reec',1)
call SetPlayerTechResearched(Player(8),'Rews',1)
call SetPlayerTechResearched(Player(8),'Repm',1)
call SetPlayerTechResearched(Player(8),'Roch',1)
call SetPlayerTechResearched(Player(8),'Rgfo',3)
call SetPlayerTechResearched(Player(8),'Rguv',1)
call SetPlayerTechResearched(Player(8),'Rnen',1)
call SetPlayerTechResearched(Player(8),'Rnsw',2)
call SetPlayerTechResearched(Player(8),'Rnsi',1)
call SetPlayerTechResearched(Player(8),'Rnat',3)
call SetPlayerTechResearched(Player(8),'Rnam',3)
call SetPlayerTechResearched(Player(8),'Rnsb',1)
call SetPlayerTechResearched(Player(9),'Rhme',3)
call SetPlayerTechResearched(Player(9),'Rhra',3)
call SetPlayerTechResearched(Player(9),'Rhhb',1)
call SetPlayerTechResearched(Player(9),'Rhar',3)
call SetPlayerTechResearched(Player(9),'Rhgb',1)
call SetPlayerTechResearched(Player(9),'Rhac',3)
call SetPlayerTechResearched(Player(9),'Rhde',1)
call SetPlayerTechResearched(Player(9),'Rhan',1)
call SetPlayerTechResearched(Player(9),'Rhpt',2)
call SetPlayerTechResearched(Player(9),'Rhst',2)
call SetPlayerTechResearched(Player(9),'Rhla',3)
call SetPlayerTechResearched(Player(9),'Rhri',1)
call SetPlayerTechResearched(Player(9),'Rhlh',2)
call SetPlayerTechResearched(Player(9),'Rhse',1)
call SetPlayerTechResearched(Player(9),'Rhfl',1)
call SetPlayerTechResearched(Player(9),'Rhss',1)
call SetPlayerTechResearched(Player(9),'Rhrt',1)
call SetPlayerTechResearched(Player(9),'Rhpm',1)
call SetPlayerTechResearched(Player(9),'Rhfc',1)
call SetPlayerTechResearched(Player(9),'Rhfs',1)
call SetPlayerTechResearched(Player(9),'Rhcd',1)
call SetPlayerTechResearched(Player(9),'Rome',3)
call SetPlayerTechResearched(Player(9),'Rora',3)
call SetPlayerTechResearched(Player(9),'Roar',3)
call SetPlayerTechResearched(Player(9),'Rwdm',1)
call SetPlayerTechResearched(Player(9),'Ropg',1)
call SetPlayerTechResearched(Player(9),'Robs',1)
call SetPlayerTechResearched(Player(9),'Rows',1)
call SetPlayerTechResearched(Player(9),'Roen',1)
call SetPlayerTechResearched(Player(9),'Rovs',1)
call SetPlayerTechResearched(Player(9),'Rowd',2)
call SetPlayerTechResearched(Player(9),'Rost',2)
call SetPlayerTechResearched(Player(9),'Rosp',3)
call SetPlayerTechResearched(Player(9),'Rotr',1)
call SetPlayerTechResearched(Player(9),'Rolf',1)
call SetPlayerTechResearched(Player(9),'Rowt',2)
call SetPlayerTechResearched(Player(9),'Rorb',1)
call SetPlayerTechResearched(Player(9),'Robk',1)
call SetPlayerTechResearched(Player(9),'Ropm',1)
call SetPlayerTechResearched(Player(9),'Robf',1)
call SetPlayerTechResearched(Player(9),'Rume',3)
call SetPlayerTechResearched(Player(9),'Rura',3)
call SetPlayerTechResearched(Player(9),'Ruar',3)
call SetPlayerTechResearched(Player(9),'Ruac',1)
call SetPlayerTechResearched(Player(9),'Rugf',1)
call SetPlayerTechResearched(Player(9),'Ruwb',1)
call SetPlayerTechResearched(Player(9),'Rusf',1)
call SetPlayerTechResearched(Player(9),'Rune',2)
call SetPlayerTechResearched(Player(9),'Ruba',2)
call SetPlayerTechResearched(Player(9),'Rufb',1)
call SetPlayerTechResearched(Player(9),'Rusl',1)
call SetPlayerTechResearched(Player(9),'Rucr',3)
call SetPlayerTechResearched(Player(9),'Rupc',1)
call SetPlayerTechResearched(Player(9),'Rusm',1)
call SetPlayerTechResearched(Player(9),'Rubu',1)
call SetPlayerTechResearched(Player(9),'Rusp',1)
call SetPlayerTechResearched(Player(9),'Ruex',1)
call SetPlayerTechResearched(Player(9),'Rupm',1)
call SetPlayerTechResearched(Player(9),'Resm',3)
call SetPlayerTechResearched(Player(9),'Resw',3)
call SetPlayerTechResearched(Player(9),'Rema',3)
call SetPlayerTechResearched(Player(9),'Rerh',3)
call SetPlayerTechResearched(Player(9),'Reuv',1)
call SetPlayerTechResearched(Player(9),'Renb',1)
call SetPlayerTechResearched(Player(9),'Resc',1)
call SetPlayerTechResearched(Player(9),'Remg',1)
call SetPlayerTechResearched(Player(9),'Reib',1)
call SetPlayerTechResearched(Player(9),'Remk',1)
call SetPlayerTechResearched(Player(9),'Redt',2)
call SetPlayerTechResearched(Player(9),'Redc',2)
call SetPlayerTechResearched(Player(9),'Resi',1)
call SetPlayerTechResearched(Player(9),'Recb',1)
call SetPlayerTechResearched(Player(9),'Reht',1)
call SetPlayerTechResearched(Player(9),'Repb',1)
call SetPlayerTechResearched(Player(9),'Rers',1)
call SetPlayerTechResearched(Player(9),'Rehs',1)
call SetPlayerTechResearched(Player(9),'Reeb',1)
call SetPlayerTechResearched(Player(9),'Reec',1)
call SetPlayerTechResearched(Player(9),'Rews',1)
call SetPlayerTechResearched(Player(9),'Repm',1)
call SetPlayerTechResearched(Player(9),'Roch',1)
call SetPlayerTechResearched(Player(9),'Rgfo',3)
call SetPlayerTechResearched(Player(9),'Rguv',1)
call SetPlayerTechResearched(Player(9),'Rnen',1)
call SetPlayerTechResearched(Player(9),'Rnsw',2)
call SetPlayerTechResearched(Player(9),'Rnsi',1)
call SetPlayerTechResearched(Player(9),'Rnat',3)
call SetPlayerTechResearched(Player(9),'Rnam',3)
call SetPlayerTechResearched(Player(9),'Rnsb',1)
call SetPlayerTechResearched(Player(10),'Rhme',3)
call SetPlayerTechResearched(Player(10),'Rhra',3)
call SetPlayerTechResearched(Player(10),'Rhhb',1)
call SetPlayerTechResearched(Player(10),'Rhar',3)
call SetPlayerTechResearched(Player(10),'Rhgb',1)
call SetPlayerTechResearched(Player(10),'Rhac',3)
call SetPlayerTechResearched(Player(10),'Rhde',1)
call SetPlayerTechResearched(Player(10),'Rhan',1)
call SetPlayerTechResearched(Player(10),'Rhpt',2)
call SetPlayerTechResearched(Player(10),'Rhst',2)
call SetPlayerTechResearched(Player(10),'Rhla',3)
call SetPlayerTechResearched(Player(10),'Rhri',1)
call SetPlayerTechResearched(Player(10),'Rhlh',2)
call SetPlayerTechResearched(Player(10),'Rhse',1)
call SetPlayerTechResearched(Player(10),'Rhfl',1)
call SetPlayerTechResearched(Player(10),'Rhss',1)
call SetPlayerTechResearched(Player(10),'Rhrt',1)
call SetPlayerTechResearched(Player(10),'Rhpm',1)
call SetPlayerTechResearched(Player(10),'Rhfc',1)
call SetPlayerTechResearched(Player(10),'Rhfs',1)
call SetPlayerTechResearched(Player(10),'Rhcd',1)
call SetPlayerTechResearched(Player(10),'Rome',3)
call SetPlayerTechResearched(Player(10),'Rora',3)
call SetPlayerTechResearched(Player(10),'Roar',3)
call SetPlayerTechResearched(Player(10),'Rwdm',1)
call SetPlayerTechResearched(Player(10),'Ropg',1)
call SetPlayerTechResearched(Player(10),'Robs',1)
call SetPlayerTechResearched(Player(10),'Rows',1)
call SetPlayerTechResearched(Player(10),'Roen',1)
call SetPlayerTechResearched(Player(10),'Rovs',1)
call SetPlayerTechResearched(Player(10),'Rowd',2)
call SetPlayerTechResearched(Player(10),'Rost',2)
call SetPlayerTechResearched(Player(10),'Rosp',3)
call SetPlayerTechResearched(Player(10),'Rotr',1)
call SetPlayerTechResearched(Player(10),'Rolf',1)
call SetPlayerTechResearched(Player(10),'Rowt',2)
call SetPlayerTechResearched(Player(10),'Rorb',1)
call SetPlayerTechResearched(Player(10),'Robk',1)
call SetPlayerTechResearched(Player(10),'Ropm',1)
call SetPlayerTechResearched(Player(10),'Robf',1)
call SetPlayerTechResearched(Player(10),'Rume',3)
call SetPlayerTechResearched(Player(10),'Rura',3)
call SetPlayerTechResearched(Player(10),'Ruar',3)
call SetPlayerTechResearched(Player(10),'Ruac',1)
call SetPlayerTechResearched(Player(10),'Rugf',1)
call SetPlayerTechResearched(Player(10),'Ruwb',1)
call SetPlayerTechResearched(Player(10),'Rusf',1)
call SetPlayerTechResearched(Player(10),'Rune',2)
call SetPlayerTechResearched(Player(10),'Ruba',2)
call SetPlayerTechResearched(Player(10),'Rufb',1)
call SetPlayerTechResearched(Player(10),'Rusl',1)
call SetPlayerTechResearched(Player(10),'Rucr',3)
call SetPlayerTechResearched(Player(10),'Rupc',1)
call SetPlayerTechResearched(Player(10),'Rusm',1)
call SetPlayerTechResearched(Player(10),'Rubu',1)
call SetPlayerTechResearched(Player(10),'Rusp',1)
call SetPlayerTechResearched(Player(10),'Ruex',1)
call SetPlayerTechResearched(Player(10),'Rupm',1)
call SetPlayerTechResearched(Player(10),'Resm',3)
call SetPlayerTechResearched(Player(10),'Resw',3)
call SetPlayerTechResearched(Player(10),'Rema',3)
call SetPlayerTechResearched(Player(10),'Rerh',3)
call SetPlayerTechResearched(Player(10),'Reuv',1)
call SetPlayerTechResearched(Player(10),'Renb',1)
call SetPlayerTechResearched(Player(10),'Resc',1)
call SetPlayerTechResearched(Player(10),'Remg',1)
call SetPlayerTechResearched(Player(10),'Reib',1)
call SetPlayerTechResearched(Player(10),'Remk',1)
call SetPlayerTechResearched(Player(10),'Redt',2)
call SetPlayerTechResearched(Player(10),'Redc',2)
call SetPlayerTechResearched(Player(10),'Resi',1)
call SetPlayerTechResearched(Player(10),'Recb',1)
call SetPlayerTechResearched(Player(10),'Reht',1)
call SetPlayerTechResearched(Player(10),'Repb',1)
call SetPlayerTechResearched(Player(10),'Rers',1)
call SetPlayerTechResearched(Player(10),'Rehs',1)
call SetPlayerTechResearched(Player(10),'Reeb',1)
call SetPlayerTechResearched(Player(10),'Reec',1)
call SetPlayerTechResearched(Player(10),'Rews',1)
call SetPlayerTechResearched(Player(10),'Repm',1)
call SetPlayerTechResearched(Player(10),'Roch',1)
call SetPlayerTechResearched(Player(10),'Rgfo',3)
call SetPlayerTechResearched(Player(10),'Rguv',1)
call SetPlayerTechResearched(Player(10),'Rnen',1)
call SetPlayerTechResearched(Player(10),'Rnsw',2)
call SetPlayerTechResearched(Player(10),'Rnsi',1)
call SetPlayerTechResearched(Player(10),'Rnat',3)
call SetPlayerTechResearched(Player(10),'Rnam',3)
call SetPlayerTechResearched(Player(10),'Rnsb',1)
call SetPlayerTechResearched(Player(11),'Rhme',3)
call SetPlayerTechResearched(Player(11),'Rhra',3)
call SetPlayerTechResearched(Player(11),'Rhhb',1)
call SetPlayerTechResearched(Player(11),'Rhar',3)
call SetPlayerTechResearched(Player(11),'Rhgb',1)
call SetPlayerTechResearched(Player(11),'Rhac',3)
call SetPlayerTechResearched(Player(11),'Rhde',1)
call SetPlayerTechResearched(Player(11),'Rhan',1)
call SetPlayerTechResearched(Player(11),'Rhpt',2)
call SetPlayerTechResearched(Player(11),'Rhst',2)
call SetPlayerTechResearched(Player(11),'Rhla',3)
call SetPlayerTechResearched(Player(11),'Rhri',1)
call SetPlayerTechResearched(Player(11),'Rhlh',2)
call SetPlayerTechResearched(Player(11),'Rhse',1)
call SetPlayerTechResearched(Player(11),'Rhfl',1)
call SetPlayerTechResearched(Player(11),'Rhss',1)
call SetPlayerTechResearched(Player(11),'Rhrt',1)
call SetPlayerTechResearched(Player(11),'Rhpm',1)
call SetPlayerTechResearched(Player(11),'Rhfc',1)
call SetPlayerTechResearched(Player(11),'Rhfs',1)
call SetPlayerTechResearched(Player(11),'Rhcd',1)
call SetPlayerTechResearched(Player(11),'Rome',3)
call SetPlayerTechResearched(Player(11),'Rora',3)
call SetPlayerTechResearched(Player(11),'Roar',3)
call SetPlayerTechResearched(Player(11),'Rwdm',1)
call SetPlayerTechResearched(Player(11),'Ropg',1)
call SetPlayerTechResearched(Player(11),'Robs',1)
call SetPlayerTechResearched(Player(11),'Rows',1)
call SetPlayerTechResearched(Player(11),'Roen',1)
call SetPlayerTechResearched(Player(11),'Rovs',1)
call SetPlayerTechResearched(Player(11),'Rowd',2)
call SetPlayerTechResearched(Player(11),'Rost',2)
call SetPlayerTechResearched(Player(11),'Rosp',3)
call SetPlayerTechResearched(Player(11),'Rotr',1)
call SetPlayerTechResearched(Player(11),'Rolf',1)
call SetPlayerTechResearched(Player(11),'Rowt',2)
call SetPlayerTechResearched(Player(11),'Rorb',1)
call SetPlayerTechResearched(Player(11),'Robk',1)
call SetPlayerTechResearched(Player(11),'Ropm',1)
call SetPlayerTechResearched(Player(11),'Robf',1)
call SetPlayerTechResearched(Player(11),'Rume',3)
call SetPlayerTechResearched(Player(11),'Rura',3)
call SetPlayerTechResearched(Player(11),'Ruar',3)
call SetPlayerTechResearched(Player(11),'Ruac',1)
call SetPlayerTechResearched(Player(11),'Rugf',1)
call SetPlayerTechResearched(Player(11),'Ruwb',1)
call SetPlayerTechResearched(Player(11),'Rusf',1)
call SetPlayerTechResearched(Player(11),'Rune',2)
call SetPlayerTechResearched(Player(11),'Ruba',2)
call SetPlayerTechResearched(Player(11),'Rufb',1)
call SetPlayerTechResearched(Player(11),'Rusl',1)
call SetPlayerTechResearched(Player(11),'Rucr',3)
call SetPlayerTechResearched(Player(11),'Rupc',1)
call SetPlayerTechResearched(Player(11),'Rusm',1)
call SetPlayerTechResearched(Player(11),'Rubu',1)
call SetPlayerTechResearched(Player(11),'Rusp',1)
call SetPlayerTechResearched(Player(11),'Ruex',1)
call SetPlayerTechResearched(Player(11),'Rupm',1)
call SetPlayerTechResearched(Player(11),'Resm',3)
call SetPlayerTechResearched(Player(11),'Resw',3)
call SetPlayerTechResearched(Player(11),'Rema',3)
call SetPlayerTechResearched(Player(11),'Rerh',3)
call SetPlayerTechResearched(Player(11),'Reuv',1)
call SetPlayerTechResearched(Player(11),'Renb',1)
call SetPlayerTechResearched(Player(11),'Resc',1)
call SetPlayerTechResearched(Player(11),'Remg',1)
call SetPlayerTechResearched(Player(11),'Reib',1)
call SetPlayerTechResearched(Player(11),'Remk',1)
call SetPlayerTechResearched(Player(11),'Redt',2)
call SetPlayerTechResearched(Player(11),'Redc',2)
call SetPlayerTechResearched(Player(11),'Resi',1)
call SetPlayerTechResearched(Player(11),'Recb',1)
call SetPlayerTechResearched(Player(11),'Reht',1)
call SetPlayerTechResearched(Player(11),'Repb',1)
call SetPlayerTechResearched(Player(11),'Rers',1)
call SetPlayerTechResearched(Player(11),'Rehs',1)
call SetPlayerTechResearched(Player(11),'Reeb',1)
call SetPlayerTechResearched(Player(11),'Reec',1)
call SetPlayerTechResearched(Player(11),'Rews',1)
call SetPlayerTechResearched(Player(11),'Repm',1)
call SetPlayerTechResearched(Player(11),'Roch',1)
call SetPlayerTechResearched(Player(11),'Rgfo',3)
call SetPlayerTechResearched(Player(11),'Rguv',1)
call SetPlayerTechResearched(Player(11),'Rnen',1)
call SetPlayerTechResearched(Player(11),'Rnsw',2)
call SetPlayerTechResearched(Player(11),'Rnsi',1)
call SetPlayerTechResearched(Player(11),'Rnat',3)
call SetPlayerTechResearched(Player(11),'Rnam',3)
call SetPlayerTechResearched(Player(11),'Rnsb',1)
set udg_destructable16=CreateDestructable('ATg1',4032.,-1664.,270.,.9,0)
set udg_destructable15=CreateDestructable('ATg1',.0,6656.,270.,.9,0)
set udg_destructable10=CreateDestructable('ATg1',.0,1664.,270.,.9,0)
set udg_destructable17=CreateDestructable('ATg1',-4032.,2816.,270.,.9,0)
set udg_destructable14=CreateDestructable('ATg2',-1632.,-7072.,270.,1.,0)
set udg_destructable11=CreateDestructable('ATg3',-2816.,4096.,.0,.9,0)
set udg_destructable12=CreateDestructable('ATg3',2816.,4096.,.0,.9,0)
set udg_destructable09=CreateDestructable('ATg3',-2816.,-2880.,.0,.9,0)
set udg_destructable13=CreateDestructable('ATg4',1632.,-7072.,180.,1.,0)
set udg_destructable07=CreateDestructable('LTe1',640.,-11712.,270.,.9,0)
set udg_destructable03=CreateDestructable('LTe1',-640.,-5696.,270.,.9,0)
set udg_destructable04=CreateDestructable('LTe1',640.,-5696.,270.,.9,0)
set udg_destructable08=CreateDestructable('LTe1',-640.,-11712.,270.,.9,0)
set udg_destructable06=CreateDestructable('LTe3',3008.,-9344.,.0,.9,0)
set udg_destructable02=CreateDestructable('LTe3',-3008.,-8064.,.0,.9,0)
set udg_destructable01=CreateDestructable('LTe3',-3008.,-9344.,.0,.9,0)
set udg_destructable05=CreateDestructable('LTe3',3008.,-8064.,.0,.9,0)
set p=Player(15)
set u=CreateUnit(p,'ngme',2688.,-8704.,270.)
set u=CreateUnit(p,'ngme',.0,-6016.,270.)
set u=CreateUnit(p,'ncp2',-1120.,-9824.,270.)
set u=CreateUnit(p,'ncp2',1120.,-9824.,270.)
set u=CreateUnit(p,'ngme',.0,-11392.,270.)
set u=CreateUnit(p,'ncop',-1920.,6208.,270.)
set u=CreateUnit(p,'ncop',1920.,6208.,270.)
set u=CreateUnit(p,'ncop',1920.,3008.,270.)
set u=CreateUnit(p,'ncop',-1920.,3008.,270.)
set u=CreateUnit(p,'ncp3',-2048.,-4032.,270.)
set u=CreateUnit(p,'ncp3',2048.,-4032.,270.)
set u=CreateUnit(p,'ngme',-2688.,-8704.,270.)
set u=CreateUnit(p,'nfoh',-2880.,-11584.,270.)
set u=CreateUnit(p,'nfoh',-640.,3456.,270.)
set u=CreateUnit(p,'nmoo',640.,4736.,270.)
set u=CreateUnit(p,'ngme',-640.,4736.,270.)
set u=CreateUnit(p,'nmrk',640.,3456.,270.)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'nfoh',-3776.,-11584.,270.)
set u=CreateUnit(p,'nfoh',-2880.,-12480.,270.)
set u=CreateUnit(p,'nfoh',-3776.,-12480.,270.)
set u=CreateUnit(p,'nfoh',3776.,-12480.,270.)
set u=CreateUnit(p,'nfoh',2880.,-12480.,270.)
set u=CreateUnit(p,'nfoh',2880.,-11584.,270.)
set u=CreateUnit(p,'nfoh',3776.,-11584.,270.)
set p=Player(8)
set udg_unit02=CreateUnit(p,'hcas',.0,-8704.,270.)
set u=CreateUnit(p,'hgtw',-512.,-8640.,270.)
set u=CreateUnit(p,'hgtw',-512.,-8768.,270.)
set u=CreateUnit(p,'hgtw',-64.,-9216.,270.)
set u=CreateUnit(p,'hgtw',64.,-9216.,270.)
set u=CreateUnit(p,'hgtw',512.,-8768.,270.)
set u=CreateUnit(p,'hgtw',512.,-8640.,270.)
set u=CreateUnit(p,'hgtw',-64.,-8192.,270.)
set u=CreateUnit(p,'hgtw',64.,-8192.,270.)
set u=CreateUnit(p,'hctw',-384.,-8704.,270.)
set u=CreateUnit(p,'hctw',384.,-8704.,270.)
set u=CreateUnit(p,'hctw',.0,-8320.,270.)
set u=CreateUnit(p,'hctw',.0,-9088.,270.)
set p=Player(9)
set u=CreateUnit(p,'ntt1',-2304.,-4352.,270.)
set u=CreateUnit(p,'ntt1',-1792.,-4352.,270.)
set u=CreateUnit(p,'ntt1',1792.,-4352.,270.)
set u=CreateUnit(p,'ntt1',2304.,-4352.,270.)
set udg_unit13=CreateUnit(p,'unpl',-4736.,-8064.,270.)
set udg_unit14=CreateUnit(p,'uzg1',-4384.,-7840.,270.)
set udg_unit15=CreateUnit(p,'uzg1',-4384.,-8224.,270.)
set udg_unit16=CreateUnit(p,'uzg1',-4256.,-8032.,270.)
set udg_unit17=CreateUnit(p,'unpl',-640.,-3968.,270.)
set udg_unit18=CreateUnit(p,'uzg1',-864.,-4320.,270.)
set udg_unit19=CreateUnit(p,'uzg1',-672.,-4448.,270.)
set udg_unit20=CreateUnit(p,'uzg1',-480.,-4320.,270.)
set udg_unit12=CreateUnit(p,'unpl',-4736.,-9344.,270.)
set udg_unit11=CreateUnit(p,'uzg1',-4384.,-9184.,270.)
set udg_unit10=CreateUnit(p,'uzg1',-4384.,-9568.,270.)
set udg_unit09=CreateUnit(p,'uzg1',-4256.,-9376.,270.)
set udg_unit21=CreateUnit(p,'unpl',640.,-3968.,270.)
set udg_unit22=CreateUnit(p,'uzg1',864.,-4320.,270.)
set udg_unit23=CreateUnit(p,'uzg1',672.,-4448.,270.)
set udg_unit24=CreateUnit(p,'uzg1',480.,-4320.,270.)
set udg_unit25=CreateUnit(p,'unpl',4736.,-8064.,270.)
set udg_unit26=CreateUnit(p,'unpl',4736.,-9344.,270.)
set udg_unit27=CreateUnit(p,'unpl',640.,-13440.,270.)
set udg_unit28=CreateUnit(p,'unpl',-640.,-13440.,270.)
set udg_unit29=CreateUnit(p,'uzg1',-480.,-13088.,270.)
set udg_unit30=CreateUnit(p,'uzg1',-672.,-12960.,270.)
set udg_unit31=CreateUnit(p,'uzg1',-864.,-13088.,270.)
set udg_unit32=CreateUnit(p,'uzg1',480.,-13088.,270.)
set udg_unit33=CreateUnit(p,'uzg1',672.,-12960.,270.)
set udg_unit34=CreateUnit(p,'uzg1',864.,-13088.,270.)
set udg_unit35=CreateUnit(p,'uzg1',4384.,-9184.,270.)
set udg_unit36=CreateUnit(p,'uzg1',4256.,-9376.,270.)
set udg_unit37=CreateUnit(p,'uzg1',4384.,-9568.,270.)
set udg_unit38=CreateUnit(p,'uzg1',4384.,-8224.,270.)
set udg_unit39=CreateUnit(p,'uzg1',4256.,-8032.,270.)
set udg_unit40=CreateUnit(p,'uzg1',4384.,-7840.,270.)
set udg_unit47=CreateUnit(p,'ndt2',-2048.,-4352.,270.)
set udg_unit48=CreateUnit(p,'ndt2',2048.,-4352.,270.)
set udg_unit05=CreateUnit(p,'nico',-2688.,7936.,270.)
set udg_unit04=CreateUnit(p,'nico',2688.,7936.,270.)
set udg_unit50=CreateUnit(p,'nico',-2688.,10624.,270.)
set udg_unit06=CreateUnit(p,'nico',2688.,10624.,270.)
set p=Player(15)
set udg_unit56=CreateUnit(p,'e00A',-4030.2,-5824.6,.0)
set p=Player(9)
set udg_unit57=CreateUnit(p,'N012',-1118.5,-9813.7,.0)
call SetHeroLevel(udg_unit57,30,false)
call SetHeroStr(udg_unit57,200,true)
call SetHeroAgi(udg_unit57,200,true)
call SetHeroInt(udg_unit57,200,true)
set udg_unit41=CreateUnit(p,'Nmag',-3.5,-375.2,225.)
call SetHeroLevel(udg_unit41,25,false)
call SetHeroStr(udg_unit41,3500,true)
call SetHeroAgi(udg_unit41,3500,true)
call SetHeroInt(udg_unit41,3500,true)
call SetUnitState(udg_unit41,UNIT_STATE_MANA,3800)
call SelectHeroSkill(udg_unit41,'AUau')
call SelectHeroSkill(udg_unit41,'AUau')
call SelectHeroSkill(udg_unit41,'AUau')
call SelectHeroSkill(udg_unit41,'AUau')
call SelectHeroSkill(udg_unit41,'ANrf')
call SelectHeroSkill(udg_unit41,'ANrf')
call IssueImmediateOrder(udg_unit41,"")
call IssueImmediateOrder(udg_unit41,"")
call IssueImmediateOrder(udg_unit41,"")
call UnitAddItemToSlotById(udg_unit41,'ankh',0)
set udg_unit42=CreateUnit(p,'Nbbc',-4031.1,4031.6,315.)
call SetHeroLevel(udg_unit42,20,false)
call SetHeroStr(udg_unit42,3000,true)
call SetHeroAgi(udg_unit42,3000,true)
call SetHeroInt(udg_unit42,3000,true)
call SetUnitState(udg_unit42,UNIT_STATE_MANA,4800)
call SelectHeroSkill(udg_unit42,'AOmi')
call SelectHeroSkill(udg_unit42,'AOmi')
call SelectHeroSkill(udg_unit42,'AOmi')
call SelectHeroSkill(udg_unit42,'AOmi')
call SelectHeroSkill(udg_unit42,'AOcr')
call SelectHeroSkill(udg_unit42,'AOcr')
call SelectHeroSkill(udg_unit42,'AOcr')
call SelectHeroSkill(udg_unit42,'AOcr')
call SelectHeroSkill(udg_unit42,'AOww')
call SelectHeroSkill(udg_unit42,'AOww')
call SelectHeroSkill(udg_unit42,'AHad')
call SelectHeroSkill(udg_unit42,'AHad')
call SelectHeroSkill(udg_unit42,'AHad')
call SelectHeroSkill(udg_unit42,'AHad')
call IssueImmediateOrderById(udg_unit42,852103)
set udg_unit43=CreateUnit(p,'Eevi',-4027.2,-2892.4,45.)
call SetHeroLevel(udg_unit43,20,false)
call SetHeroStr(udg_unit43,3000,true)
call SetHeroAgi(udg_unit43,3000,true)
call SetHeroInt(udg_unit43,3000,true)
call SetUnitState(udg_unit43,UNIT_STATE_MANA,4800)
call SelectHeroSkill(udg_unit43,'AEim')
call SelectHeroSkill(udg_unit43,'AEim')
call SelectHeroSkill(udg_unit43,'AEim')
call SelectHeroSkill(udg_unit43,'AEim')
call SelectHeroSkill(udg_unit43,'AEev')
call SelectHeroSkill(udg_unit43,'AEev')
call SelectHeroSkill(udg_unit43,'AEev')
call SelectHeroSkill(udg_unit43,'AEev')
call SelectHeroSkill(udg_unit43,'A00K')
call SelectHeroSkill(udg_unit43,'A00K')
call SelectHeroSkill(udg_unit43,'A00K')
call SelectHeroSkill(udg_unit43,'A00K')
call IssueImmediateOrder(udg_unit43,"")
call SelectHeroSkill(udg_unit43,'AEvi')
call SelectHeroSkill(udg_unit43,'AEvi')
call SelectHeroSkill(udg_unit43,'AHad')
call SelectHeroSkill(udg_unit43,'AHad')
call SelectHeroSkill(udg_unit43,'AHad')
call SelectHeroSkill(udg_unit43,'AHad')
call SelectHeroSkill(udg_unit43,'A049')
call IssueImmediateOrder(udg_unit43,"")
set udg_unit03=CreateUnit(p,'E000',-1919.5,2579.2,225.)
call SetHeroLevel(udg_unit03,20,false)
call SetHeroStr(udg_unit03,3000,true)
call SetHeroAgi(udg_unit03,3000,true)
call SetHeroInt(udg_unit03,3000,true)
call SelectHeroSkill(udg_unit03,'AEar')
call SelectHeroSkill(udg_unit03,'AEar')
call SelectHeroSkill(udg_unit03,'AEar')
call SelectHeroSkill(udg_unit03,'AEar')
call SelectHeroSkill(udg_unit03,'AOae')
call SelectHeroSkill(udg_unit03,'AOae')
call SelectHeroSkill(udg_unit03,'AOae')
call SelectHeroSkill(udg_unit03,'AOae')
call SelectHeroSkill(udg_unit03,'AOcr')
call SelectHeroSkill(udg_unit03,'AOcr')
call SelectHeroSkill(udg_unit03,'AOcr')
call SelectHeroSkill(udg_unit03,'AOcr')
call SelectHeroSkill(udg_unit03,'AUau')
call SelectHeroSkill(udg_unit03,'AUau')
call SelectHeroSkill(udg_unit03,'AUau')
call SelectHeroSkill(udg_unit03,'AUau')
call SelectHeroSkill(udg_unit03,'AEah')
call SelectHeroSkill(udg_unit03,'AEah')
call SelectHeroSkill(udg_unit03,'AEah')
call SelectHeroSkill(udg_unit03,'AEah')
set t=CreateTrigger()
call TriggerRegisterUnitEvent(t,udg_unit03,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(t,udg_unit03,EVENT_UNIT_CHANGE_OWNER)
call TriggerAddAction(t,function Unit000029_DropItems)
set udg_unit45=CreateUnit(p,'Hapm',4031.4,4165.5,225.)
call SetHeroLevel(udg_unit45,20,false)
call SetHeroStr(udg_unit45,3000,true)
call SetHeroAgi(udg_unit45,3000,true)
call SetHeroInt(udg_unit45,3000,true)
call SetUnitState(udg_unit45,UNIT_STATE_MANA,4800)
call SelectHeroSkill(udg_unit45,'AOae')
call SelectHeroSkill(udg_unit45,'AOae')
call SelectHeroSkill(udg_unit45,'AOae')
call SelectHeroSkill(udg_unit45,'AOae')
call SelectHeroSkill(udg_unit45,'AHds')
call SelectHeroSkill(udg_unit45,'AHds')
call SelectHeroSkill(udg_unit45,'AHds')
call SelectHeroSkill(udg_unit45,'AHav')
call SelectHeroSkill(udg_unit45,'AHav')
call SelectHeroSkill(udg_unit45,'AHad')
call SelectHeroSkill(udg_unit45,'AHad')
call SelectHeroSkill(udg_unit45,'AHad')
call SelectHeroSkill(udg_unit45,'AHad')
set udg_unit55=CreateUnit(p,'E001',1917.4,2565.7,225.)
call SetHeroLevel(udg_unit55,20,false)
call SetHeroStr(udg_unit55,3000,true)
call SetHeroAgi(udg_unit55,3000,true)
call SetHeroInt(udg_unit55,3000,true)
call SelectHeroSkill(udg_unit55,'AEar')
call SelectHeroSkill(udg_unit55,'AEar')
call SelectHeroSkill(udg_unit55,'AEar')
call SelectHeroSkill(udg_unit55,'AEar')
call SelectHeroSkill(udg_unit55,'AOae')
call SelectHeroSkill(udg_unit55,'AOae')
call SelectHeroSkill(udg_unit55,'AOae')
call SelectHeroSkill(udg_unit55,'AOae')
call SelectHeroSkill(udg_unit55,'AOcr')
call SelectHeroSkill(udg_unit55,'AOcr')
call SelectHeroSkill(udg_unit55,'AOcr')
call SelectHeroSkill(udg_unit55,'AOcr')
call SelectHeroSkill(udg_unit55,'A003')
call SelectHeroSkill(udg_unit55,'A003')
call SelectHeroSkill(udg_unit55,'A003')
call SelectHeroSkill(udg_unit55,'A003')
call IssueImmediateOrder(udg_unit55,"")
set t=CreateTrigger()
call TriggerRegisterUnitEvent(t,udg_unit55,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(t,udg_unit55,EVENT_UNIT_CHANGE_OWNER)
call TriggerAddAction(t,function Unit000093_DropItems)
set udg_unit46=CreateUnit(p,'Ubal',4032.9,-2882.8,135.)
call SetHeroLevel(udg_unit46,20,false)
call SetHeroStr(udg_unit46,3000,true)
call SetHeroAgi(udg_unit46,3000,true)
call SetHeroInt(udg_unit46,3000,true)
call SetUnitState(udg_unit46,UNIT_STATE_MANA,4800)
call SelectHeroSkill(udg_unit46,'AUav')
call SelectHeroSkill(udg_unit46,'AUav')
call SelectHeroSkill(udg_unit46,'AUav')
call SelectHeroSkill(udg_unit46,'AUav')
call SelectHeroSkill(udg_unit46,'ANr3')
call SelectHeroSkill(udg_unit46,'ANr3')
call SelectHeroSkill(udg_unit46,'ANr3')
call SelectHeroSkill(udg_unit46,'AUsl')
call SelectHeroSkill(udg_unit46,'AUsl')
call SelectHeroSkill(udg_unit46,'AUsl')
call SelectHeroSkill(udg_unit46,'AHad')
call SelectHeroSkill(udg_unit46,'AHad')
call SelectHeroSkill(udg_unit46,'AHad')
call SelectHeroSkill(udg_unit46,'AHad')
call SelectHeroSkill(udg_unit46,'A01A')
call IssueImmediateOrder(udg_unit46,"")
call IssueImmediateOrder(udg_unit46,"")
call IssueImmediateOrder(udg_unit46,"")
set udg_unit08=CreateUnit(p,'H001',3650.1,-4915.5,270.)
call SetHeroLevel(udg_unit08,15,false)
call SetHeroStr(udg_unit08,500,true)
call SetHeroAgi(udg_unit08,500,true)
call SetHeroInt(udg_unit08,500,true)
call SetUnitState(udg_unit08,UNIT_STATE_MANA,1000)
call SelectHeroSkill(udg_unit08,'AOae')
call SelectHeroSkill(udg_unit08,'AOae')
call SelectHeroSkill(udg_unit08,'AOae')
call SelectHeroSkill(udg_unit08,'AOae')
call SelectHeroSkill(udg_unit08,'AHds')
call SelectHeroSkill(udg_unit08,'AHds')
call SelectHeroSkill(udg_unit08,'AOcr')
call SelectHeroSkill(udg_unit08,'AOcr')
call SelectHeroSkill(udg_unit08,'AOcr')
set t=CreateTrigger()
call TriggerRegisterUnitEvent(t,udg_unit08,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(t,udg_unit08,EVENT_UNIT_CHANGE_OWNER)
call TriggerAddAction(t,function Unit000040_DropItems)
set udg_unit07=CreateUnit(p,'H001',4419.1,-4910.8,270.)
call SetHeroLevel(udg_unit07,15,false)
call SetHeroStr(udg_unit07,500,true)
call SetHeroAgi(udg_unit07,500,true)
call SetHeroInt(udg_unit07,500,true)
call SetUnitState(udg_unit07,UNIT_STATE_MANA,1000)
call SelectHeroSkill(udg_unit07,'AOae')
call SelectHeroSkill(udg_unit07,'AOae')
call SelectHeroSkill(udg_unit07,'AOae')
call SelectHeroSkill(udg_unit07,'AOae')
call SelectHeroSkill(udg_unit07,'AHds')
call SelectHeroSkill(udg_unit07,'AHds')
call SelectHeroSkill(udg_unit07,'AOcr')
call SelectHeroSkill(udg_unit07,'AOcr')
call SelectHeroSkill(udg_unit07,'AOcr')
set t=CreateTrigger()
call TriggerRegisterUnitEvent(t,udg_unit07,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(t,udg_unit07,EVENT_UNIT_CHANGE_OWNER)
call TriggerAddAction(t,function Unit000039_DropItems)
set udg_unit54=CreateUnit(p,'H003',4033.5,-4911.8,270.)
call SetHeroLevel(udg_unit54,15,false)
call SetHeroStr(udg_unit54,500,true)
call SetHeroAgi(udg_unit54,500,true)
call SetHeroInt(udg_unit54,500,true)
call SetUnitState(udg_unit54,UNIT_STATE_MANA,1000)
call SelectHeroSkill(udg_unit54,'AUav')
call SelectHeroSkill(udg_unit54,'AUav')
call SelectHeroSkill(udg_unit54,'AUav')
call SelectHeroSkill(udg_unit54,'AUav')
call SelectHeroSkill(udg_unit54,'AHhb')
call SelectHeroSkill(udg_unit54,'AHhb')
call SelectHeroSkill(udg_unit54,'AEev')
call SelectHeroSkill(udg_unit54,'AEev')
call SelectHeroSkill(udg_unit54,'AEev')
set t=CreateTrigger()
call TriggerRegisterUnitEvent(t,udg_unit54,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(t,udg_unit54,EVENT_UNIT_CHANGE_OWNER)
call TriggerAddAction(t,function Unit000092_DropItems)
set udg_unit49=CreateUnit(p,'Ubal',-511.2,9096.,270.)
call SetUnitState(udg_unit49,UNIT_STATE_MANA,1000)
call IssueImmediateOrder(udg_unit49,"")
set udg_unit44=CreateUnit(p,'Hapm',10.8,8577.5,270.)
call SetUnitState(udg_unit44,UNIT_STATE_MANA,1000)
set udg_unit52=CreateUnit(p,'Nbbc',-5.7,9597.2,270.)
call SetUnitState(udg_unit52,UNIT_STATE_MANA,1000)
set udg_unit53=CreateUnit(p,'Eevi',517.1,9101.2,270.)
call SetUnitState(udg_unit53,UNIT_STATE_MANA,1000)
set udg_unit51=CreateUnit(p,'H004',3.5,9080.4,270.)
call SetHeroLevel(udg_unit51,25,false)
call SetHeroStr(udg_unit51,3500,true)
call SetHeroAgi(udg_unit51,3500,true)
call SetHeroInt(udg_unit51,3500,true)
call SelectHeroSkill(udg_unit51,'AHhb')
call SelectHeroSkill(udg_unit51,'AHds')
call SelectHeroSkill(udg_unit51,'A011')
call SelectHeroSkill(udg_unit51,'A011')
call SelectHeroSkill(udg_unit51,'A011')
call SelectHeroSkill(udg_unit51,'A011')
call IssueImmediateOrder(udg_unit51,"")
call SelectHeroSkill(udg_unit51,'A012')
call SelectHeroSkill(udg_unit51,'A012')
call IssueImmediateOrder(udg_unit51,"")
call SelectHeroSkill(udg_unit51,'A01H')
call IssueImmediateOrder(udg_unit51,"")
call UnitAddItemToSlotById(udg_unit51,'I000',0)
set i=0
set i=0
loop
exitwhen(i>1)
set udg_booleans01[i]=false
set udg_integers03[i]=0
set udg_reals01[i]=0
set udg_integers04[i]=0
set udg_integers05[i]=0
set udg_integers06[i]=0
set udg_integers07[i]=0
set udg_integers08[i]=0
set udg_integers10[i]=0
set udg_integers11[i]=0
set udg_booleans02[i]=false
set udg_booleans03[i]=false
set udg_integers13[i]=0
set udg_integers16[i]=0
set udg_booleans04[i]=false
set i=i+1
endloop
set i=0
loop
exitwhen(i>8)
set udg_timers01[i]=CreateTimer()
set i=i+1
endloop
set udg_dialog01=DialogCreate()
set udg_dialog02=DialogCreate()
set udg_dialog03=DialogCreate()
set udg_dialog04=DialogCreate()
call TriggerAddAction(udg_trigger01,function Trig_Units_Actions)
call TriggerAddAction(udg_trigger02,function Trig_Regions_Actions)
call TriggerAddAction(udg_trigger03,function Trig_Invulnerables_Actions)
call TriggerAddAction(udg_trigger04,function Trig_Alliance_Actions)
call TriggerAddAction(udg_trigger05,function Trig_Heroes_Actions)
call TriggerAddAction(udg_trigger06,function Trig_Flags_Actions)
call TriggerAddAction(udg_trigger07,function Trig_Quests_Actions)
call TriggerAddAction(udg_trigger08,function Trig_StartGame_Actions)
call TriggerRegisterTimerEventSingle(udg_trigger09,.01)
call TriggerAddAction(udg_trigger09,function Trig_OptionsGame_Actions)
call DisableTrigger(udg_trigger10)
call TriggerRegisterDialogEvent(udg_trigger10,udg_dialog03)
call TriggerAddAction(udg_trigger10,function Trig_OptionsDifficulty_Actions)
call DisableTrigger(udg_trigger11)
call TriggerRegisterDialogEvent(udg_trigger11,udg_dialog01)
call TriggerAddAction(udg_trigger11,function Trig_OptionsHeroes_Actions)
call TriggerRegisterTimerEventSingle(udg_trigger12,15.)
call TriggerAddCondition(udg_trigger12,Condition(function Trig_OptionsTimeOut_Conditions))
call TriggerAddAction(udg_trigger12,function Trig_OptionsTimeOut_Actions)
call TriggerRegisterDialogEvent(udg_trigger13,udg_dialog04)
call TriggerAddCondition(udg_trigger13,Condition(function Trig_ModeRandom_Conditions))
call TriggerAddAction(udg_trigger13,function Trig_ModeRandom_Actions)
call TriggerRegisterDialogEvent(udg_trigger14,udg_dialog04)
call TriggerAddCondition(udg_trigger14,Condition(function Trig_ModeNormal_Conditions))
call TriggerAddAction(udg_trigger14,function Trig_ModeNormal_Actions)
call TriggerRegisterDialogEvent(udg_trigger15,udg_dialog04)
call TriggerAddCondition(udg_trigger15,Condition(function Trig_ModeExtreme_Conditions))
call TriggerAddAction(udg_trigger15,function Trig_ModeExtreme_Actions)
call TriggerRegisterDialogEvent(udg_trigger16,udg_dialog03)
call TriggerAddCondition(udg_trigger16,Condition(function Trig_ModeEasy_Conditions))
call TriggerAddAction(udg_trigger16,function Trig_ModeEasy_Actions)
call DisableTrigger(udg_trigger17)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger17,Player(0),true)
call TriggerAddCondition(udg_trigger17,Condition(function Trig_HeroSelect1a_Conditions))
call TriggerAddAction(udg_trigger17,function Trig_HeroSelect1a_Actions)
call DisableTrigger(udg_trigger18)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger18,Player(0),true)
call TriggerAddCondition(udg_trigger18,Condition(function Trig_HeroSelect1b_Conditions))
call TriggerAddAction(udg_trigger18,function Trig_HeroSelect1b_Actions)
call DisableTrigger(udg_trigger19)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger19,Player(1),true)
call TriggerAddCondition(udg_trigger19,Condition(function Trig_HeroSelect2a_Conditions))
call TriggerAddAction(udg_trigger19,function Trig_HeroSelect2a_Actions)
call DisableTrigger(udg_trigger20)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger20,Player(1),true)
call TriggerAddCondition(udg_trigger20,Condition(function Trig_HeroSelect2b_Conditions))
call TriggerAddAction(udg_trigger20,function Trig_HeroSelect2b_Actions)
call DisableTrigger(udg_trigger21)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger21,Player(2),true)
call TriggerAddCondition(udg_trigger21,Condition(function Trig_HeroSelect3a_Conditions))
call TriggerAddAction(udg_trigger21,function Trig_HeroSelect3a_Actions)
call DisableTrigger(udg_trigger22)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger22,Player(2),true)
call TriggerAddCondition(udg_trigger22,Condition(function Trig_HeroSelect3b_Conditions))
call TriggerAddAction(udg_trigger22,function Trig_HeroSelect3b_Actions)
call DisableTrigger(udg_trigger23)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger23,Player(3),true)
call TriggerAddCondition(udg_trigger23,Condition(function Trig_HeroSelect4a_Conditions))
call TriggerAddAction(udg_trigger23,function Trig_HeroSelect4a_Actions)
call DisableTrigger(udg_trigger24)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger24,Player(3),true)
call TriggerAddCondition(udg_trigger24,Condition(function Trig_HeroSelect4b_Conditions))
call TriggerAddAction(udg_trigger24,function Trig_HeroSelect4b_Actions)
call DisableTrigger(udg_trigger25)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger25,Player(4),true)
call TriggerAddCondition(udg_trigger25,Condition(function Trig_HeroSelect5a_Conditions))
call TriggerAddAction(udg_trigger25,function Trig_HeroSelect5a_Actions)
call DisableTrigger(udg_trigger26)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger26,Player(4),true)
call TriggerAddCondition(udg_trigger26,Condition(function Trig_HeroSelect5b_Conditions))
call TriggerAddAction(udg_trigger26,function Trig_HeroSelect5b_Actions)
call DisableTrigger(udg_trigger27)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger27,Player(5),true)
call TriggerAddCondition(udg_trigger27,Condition(function Trig_HeroSelect6a_Conditions))
call TriggerAddAction(udg_trigger27,function Trig_HeroSelect6a_Actions)
call DisableTrigger(udg_trigger28)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger28,Player(5),true)
call TriggerAddCondition(udg_trigger28,Condition(function Trig_HeroSelect6b_Conditions))
call TriggerAddAction(udg_trigger28,function Trig_HeroSelect6b_Actions)
call DisableTrigger(udg_trigger29)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger29,Player(6),true)
call TriggerAddCondition(udg_trigger29,Condition(function Trig_HeroSelect7a_Conditions))
call TriggerAddAction(udg_trigger29,function Trig_HeroSelect7a_Actions)
call DisableTrigger(udg_trigger30)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger30,Player(6),true)
call TriggerAddCondition(udg_trigger30,Condition(function Trig_HeroSelect7b_Conditions))
call TriggerAddAction(udg_trigger30,function Trig_HeroSelect7b_Actions)
call DisableTrigger(udg_trigger31)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger31,Player(7),true)
call TriggerAddCondition(udg_trigger31,Condition(function Trig_HeroSelect8a_Conditions))
call TriggerAddAction(udg_trigger31,function Trig_HeroSelect8a_Actions)
call DisableTrigger(udg_trigger32)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger32,Player(7),true)
call TriggerAddCondition(udg_trigger32,Condition(function Trig_HeroSelect8b_Conditions))
call TriggerAddAction(udg_trigger32,function Trig_HeroSelect8b_Actions)
call DisableTrigger(udg_trigger33)
call TriggerAddCondition(udg_trigger33,Condition(function Trig_DualHeroSelect_Conditions))
call TriggerAddAction(udg_trigger33,function Trig_DualHeroSelect_Actions)
call DisableTrigger(udg_trigger34)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger34,Player(0),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger34,Player(1),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger34,Player(2),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger34,Player(3),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger34,Player(4),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger34,Player(5),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger34,Player(6),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger34,Player(7),true)
call TriggerAddCondition(udg_trigger34,Condition(function Trig_DualHeroChange_Conditions))
call TriggerAddAction(udg_trigger34,function Trig_DualHeroChange_Actions)
call DisableTrigger(udg_trigger35)
call TriggerRegisterAnyUnitEventBJ(udg_trigger35,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger35,Condition(function Trig_DualHeroStats_Conditions))
call TriggerAddAction(udg_trigger35,function Trig_DualHeroStats_Actions)
call DisableTrigger(udg_trigger36)
call TriggerRegisterAnyUnitEventBJ(udg_trigger36,EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_trigger36,Condition(function Trig_DualHeroLevel_Conditions))
call TriggerAddAction(udg_trigger36,function Trig_DualHeroLevel_Actions)
call DisableTrigger(udg_trigger37)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger37,Player(0),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger37,Player(1),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger37,Player(2),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger37,Player(3),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger37,Player(4),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger37,Player(5),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger37,Player(6),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger37,Player(7),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger37,Condition(function Trig_DualHeroDead_Conditions))
call TriggerAddAction(udg_trigger37,function Trig_DualHeroDead_Actions)
call DisableTrigger(udg_trigger38)
call TriggerAddAction(udg_trigger38,function Trig_AttackStart_Actions)
call DisableTrigger(udg_trigger39)
call TriggerAddAction(udg_trigger39,function Trig_AttackCome_Actions)
call DisableTrigger(udg_trigger40)
call TriggerRegisterTimerEventPeriodic(udg_trigger40,60.)
call TriggerAddAction(udg_trigger40,function Trig_AttackCheck_Actions)
call DisableTrigger(udg_trigger41)
call TriggerRegisterUnitEvent(udg_trigger41,udg_unit12,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_trigger41,udg_unit13,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_trigger41,udg_unit17,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_trigger41,udg_unit21,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_trigger41,udg_unit25,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_trigger41,udg_unit26,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_trigger41,udg_unit27,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_trigger41,udg_unit28,EVENT_UNIT_DEATH)
call TriggerAddAction(udg_trigger41,function Trig_AttackNecropolis_Actions)
call DisableTrigger(udg_trigger42)
call TriggerRegisterUnitEvent(udg_trigger42,udg_unit14,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_trigger42,udg_unit15,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_trigger42,udg_unit16,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_trigger42,udg_unit18,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_trigger42,udg_unit19,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_trigger42,udg_unit20,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_trigger42,udg_unit11,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_trigger42,udg_unit10,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_trigger42,udg_unit09,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_trigger42,udg_unit22,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_trigger42,udg_unit23,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_trigger42,udg_unit24,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_trigger42,udg_unit29,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_trigger42,udg_unit30,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_trigger42,udg_unit31,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_trigger42,udg_unit32,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_trigger42,udg_unit33,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_trigger42,udg_unit34,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_trigger42,udg_unit35,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_trigger42,udg_unit36,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_trigger42,udg_unit37,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_trigger42,udg_unit38,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_trigger42,udg_unit39,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_trigger42,udg_unit40,EVENT_UNIT_DEATH)
call TriggerAddAction(udg_trigger42,function Trig_AttackTower_Actions)
call DisableTrigger(udg_trigger43)
call TriggerAddAction(udg_trigger43,function Trig_WaveTimer_Actions)
call TriggerRegisterTimerExpireEvent(udg_trigger44,udg_timer04)
call TriggerAddAction(udg_trigger44,function Trig_WaveAttack_Actions)
call DisableTrigger(udg_trigger45)
call TriggerRegisterUnitEvent(udg_trigger45,udg_unit47,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_trigger45,udg_unit48,EVENT_UNIT_DEATH)
call TriggerAddCondition(udg_trigger45,Condition(function Trig_FinalWaveTimer_Conditions))
call TriggerAddAction(udg_trigger45,function Trig_FinalWaveTimer_Actions)
call DisableTrigger(udg_trigger46)
call TriggerRegisterTimerExpireEvent(udg_trigger46,udg_timer04)
call TriggerAddAction(udg_trigger46,function Trig_FinalWaveStart_Actions)
call DisableTrigger(udg_trigger47)
call TriggerRegisterTimerExpireEvent(udg_trigger47,udg_timer05)
call TriggerAddAction(udg_trigger47,function Trig_DragonAttack_Actions)
call DisableTrigger(udg_trigger48)
call TriggerAddCondition(udg_trigger48,Condition(function Trig_HeroAttack_Conditions))
call TriggerAddAction(udg_trigger48,function Trig_HeroAttack_Actions)
call DisableTrigger(udg_trigger49)
call TriggerRegisterTimerEventPeriodic(udg_trigger49,240.)
call TriggerAddAction(udg_trigger49,function Trig_LightningAttack_Actions)
call DisableTrigger(udg_trigger50)
call TriggerRegisterTimerExpireEvent(udg_trigger50,udg_timer06)
call TriggerAddAction(udg_trigger50,function Trig_SilentAssassin_Actions)
call DisableTrigger(udg_trigger51)
call TriggerRegisterTimerExpireEvent(udg_trigger51,udg_timer01)
call TriggerAddAction(udg_trigger51,function Trig_ExtremePowerUp_Actions)
call DisableTrigger(udg_trigger52)
call TriggerRegisterEnterRectSimple(udg_trigger52,udg_rect36)
call TriggerRegisterEnterRectSimple(udg_trigger52,udg_rect37)
call TriggerAddCondition(udg_trigger52,Condition(function Trig_Survival1Start_Conditions))
call TriggerAddAction(udg_trigger52,function Trig_Survival1Start_Actions)
call DisableTrigger(udg_trigger53)
call TriggerRegisterTimerEventPeriodic(udg_trigger53,15.)
call TriggerAddAction(udg_trigger53,function Trig_Survival1Attack_Actions)
call DisableTrigger(udg_trigger54)
call TriggerRegisterEnterRectSimple(udg_trigger54,udg_rect39)
call TriggerAddCondition(udg_trigger54,Condition(function Trig_Survival2Start_Conditions))
call TriggerAddAction(udg_trigger54,function Trig_Survival2Start_Actions)
call DisableTrigger(udg_trigger55)
call TriggerAddAction(udg_trigger55,function Trig_Survival2Attack_Actions)
call DisableTrigger(udg_trigger56)
call TriggerRegisterEnterRectSimple(udg_trigger56,udg_rect40)
call TriggerAddCondition(udg_trigger56,Condition(function Trig_Survival3Start_Conditions))
call TriggerAddAction(udg_trigger56,function Trig_Survival3Start_Actions)
call DisableTrigger(udg_trigger57)
call TriggerAddAction(udg_trigger57,function Trig_Survival3Attack_Actions)
call DisableTrigger(udg_trigger58)
call TriggerAddAction(udg_trigger58,function Trig_Special1Timer_Actions)
call DisableTrigger(udg_trigger59)
call TriggerRegisterTimerExpireEvent(udg_trigger59,udg_timer02)
call TriggerAddAction(udg_trigger59,function Trig_Special1Start_Actions)
call DisableTrigger(udg_trigger60)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger60,Player(9),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddAction(udg_trigger60,function Trig_Special1Attack_Actions)
call DisableTrigger(udg_trigger61)
call TriggerRegisterTimerEventPeriodic(udg_trigger61,10.)
call TriggerAddAction(udg_trigger61,function Trig_Special1Corpse_Actions)
call DisableTrigger(udg_trigger62)
call TriggerRegisterTimerExpireEvent(udg_trigger62,udg_timer03)
call TriggerAddAction(udg_trigger62,function Trig_Special1Stop_Actions)
call DisableTrigger(udg_trigger63)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger63,Player(0),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger63,Player(1),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger63,Player(2),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger63,Player(3),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger63,Player(4),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger63,Player(5),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger63,Player(6),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger63,Player(7),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger63,Condition(function Trig_Special1Dead_Conditions))
call TriggerAddAction(udg_trigger63,function Trig_Special1Dead_Actions)
call DisableTrigger(udg_trigger64)
call TriggerAddCondition(udg_trigger64,Condition(function Trig_Special2Start_Conditions))
call TriggerAddAction(udg_trigger64,function Trig_Special2Start_Actions)
call DisableTrigger(udg_trigger65)
call TriggerRegisterLeaveRectSimple(udg_trigger65,udg_rect31)
call TriggerAddCondition(udg_trigger65,Condition(function Trig_Special2Stop_Conditions))
call TriggerAddAction(udg_trigger65,function Trig_Special2Stop_Actions)
call DisableTrigger(udg_trigger66)
call TriggerRegisterAnyUnitEventBJ(udg_trigger66,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger66,Condition(function Trig_Special2Dead_Conditions))
call TriggerAddAction(udg_trigger66,function Trig_Special2Dead_Actions)
call DisableTrigger(udg_trigger67)
call TriggerRegisterTimerExpireEvent(udg_trigger67,udg_timer03)
call TriggerAddAction(udg_trigger67,function Trig_Special2TimeOut_Actions)
call DisableTrigger(udg_trigger68)
call TriggerRegisterAnyUnitEventBJ(udg_trigger68,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger68,Condition(function Trig_Special2Teleport_Conditions))
call TriggerAddAction(udg_trigger68,function Trig_Special2Teleport_Actions)
call DisableTrigger(udg_trigger69)
call TriggerAddCondition(udg_trigger69,Condition(function Trig_Special3Start_Conditions))
call TriggerAddAction(udg_trigger69,function Trig_Special3Start_Actions)
call DisableTrigger(udg_trigger70)
call TriggerRegisterLeaveRectSimple(udg_trigger70,udg_rect31)
call TriggerAddCondition(udg_trigger70,Condition(function Trig_Special3Stop_Conditions))
call TriggerAddAction(udg_trigger70,function Trig_Special3Stop_Actions)
call DisableTrigger(udg_trigger71)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger71,Player(10),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddAction(udg_trigger71,function Trig_Special3Count_Actions)
call DisableTrigger(udg_trigger72)
call TriggerRegisterAnyUnitEventBJ(udg_trigger72,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger72,Condition(function Trig_Special3Dead_Conditions))
call TriggerAddAction(udg_trigger72,function Trig_Special3Dead_Actions)
call DisableTrigger(udg_trigger73)
call TriggerRegisterTimerExpireEvent(udg_trigger73,udg_timer03)
call TriggerAddAction(udg_trigger73,function Trig_Special3TimeOut_Actions)
call DisableTrigger(udg_trigger74)
call TriggerRegisterAnyUnitEventBJ(udg_trigger74,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger74,Condition(function Trig_Special3Teleport_Conditions))
call TriggerAddAction(udg_trigger74,function Trig_Special3Teleport_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger75,udg_rect32)
call TriggerAddCondition(udg_trigger75,Condition(function Trig_SpecialXDialog_Conditions))
call TriggerAddAction(udg_trigger75,function Trig_SpecialXDialog_Actions)
call DisableTrigger(udg_trigger76)
call TriggerRegisterDialogEvent(udg_trigger76,udg_dialog01)
call TriggerAddAction(udg_trigger76,function Trig_SpecialXStart_Actions)
call TriggerAddAction(udg_trigger77,function Trig_SpecialXExit_Actions)
call DisableTrigger(udg_trigger78)
call TriggerRegisterDialogEvent(udg_trigger78,udg_dialog02)
call TriggerAddCondition(udg_trigger78,Condition(function Trig_SpecialXDisagree_Conditions))
call TriggerAddAction(udg_trigger78,function Trig_SpecialXDisagree_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger79,udg_rect24)
call TriggerRegisterEnterRectSimple(udg_trigger79,udg_rect26)
call TriggerRegisterEnterRectSimple(udg_trigger79,udg_rect28)
call TriggerRegisterEnterRectSimple(udg_trigger79,udg_rect30)
call TriggerAddCondition(udg_trigger79,Condition(function Trig_SpecialXTeleport_Conditions))
call TriggerAddAction(udg_trigger79,function Trig_SpecialXTeleport_Actions)
call DisableTrigger(udg_trigger80)
call TriggerAddAction(udg_trigger80,function Trig_SpecialXRevive_Actions)
call DisableTrigger(udg_trigger81)
call TriggerRegisterDialogEvent(udg_trigger81,udg_dialog02)
call TriggerAddCondition(udg_trigger81,Condition(function Trig_Special4Agree_Conditions))
call TriggerAddAction(udg_trigger81,function Trig_Special4Agree_Actions)
call DisableTrigger(udg_trigger82)
call TriggerRegisterLeaveRectSimple(udg_trigger82,udg_rect23)
call TriggerRegisterAnyUnitEventBJ(udg_trigger82,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger82,Condition(function Trig_Special4Dead_Conditions))
call TriggerAddAction(udg_trigger82,function Trig_Special4Dead_Actions)
call DisableTrigger(udg_trigger83)
call TriggerRegisterDialogEvent(udg_trigger83,udg_dialog02)
call TriggerAddCondition(udg_trigger83,Condition(function Trig_Special5Agree_Conditions))
call TriggerAddAction(udg_trigger83,function Trig_Special5Agree_Actions)
call DisableTrigger(udg_trigger84)
call TriggerRegisterLeaveRectSimple(udg_trigger84,udg_rect25)
call TriggerRegisterAnyUnitEventBJ(udg_trigger84,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger84,Condition(function Trig_Special5Dead_Conditions))
call TriggerAddAction(udg_trigger84,function Trig_Special5Dead_Actions)
call DisableTrigger(udg_trigger85)
call TriggerRegisterDialogEvent(udg_trigger85,udg_dialog02)
call TriggerAddCondition(udg_trigger85,Condition(function Trig_Special6Agree_Conditions))
call TriggerAddAction(udg_trigger85,function Trig_Special6Agree_Actions)
call DisableTrigger(udg_trigger86)
call TriggerRegisterDialogEvent(udg_trigger86,udg_dialog02)
call TriggerAddCondition(udg_trigger86,Condition(function Trig_Special7Agree_Conditions))
call TriggerAddAction(udg_trigger86,function Trig_Special7Agree_Actions)
call DisableTrigger(udg_trigger87)
call TriggerRegisterTimerExpireEvent(udg_trigger87,udg_timer02)
call TriggerAddAction(udg_trigger87,function Trig_Special8Start_Actions)
call DisableTrigger(udg_trigger88)
call TriggerAddAction(udg_trigger88,function Trig_Special8Move_Actions)
call DisableTrigger(udg_trigger89)
call TriggerAddAction(udg_trigger89,function Trig_Special8Attack_Actions)
call DisableTrigger(udg_trigger90)
call TriggerRegisterTimerExpireEvent(udg_trigger90,udg_timer03)
call TriggerAddAction(udg_trigger90,function Trig_Special8Stop_Actions)
call DisableTrigger(udg_trigger91)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger91,Player(0),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger91,Player(1),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger91,Player(2),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger91,Player(3),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger91,Player(4),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger91,Player(5),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger91,Player(6),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger91,Player(7),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger91,Condition(function Trig_Special8Dead_Conditions))
call TriggerAddAction(udg_trigger91,function Trig_Special8Dead_Actions)
call DisableTrigger(udg_trigger92)
call TriggerRegisterAnyUnitEventBJ(udg_trigger92,EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_trigger92,Condition(function Trig_Special8Teleport_Conditions))
call TriggerAddAction(udg_trigger92,function Trig_Special8Teleport_Actions)
call DisableTrigger(udg_trigger93)
call TriggerRegisterAnyUnitEventBJ(udg_trigger93,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger93,Condition(function Trig_Special8Leave_Conditions))
call TriggerAddAction(udg_trigger93,function Trig_Special8Leave_Actions)
call DisableTrigger(udg_trigger94)
call TriggerRegisterEnterRectSimple(udg_trigger94,udg_rect43)
call TriggerRegisterEnterRectSimple(udg_trigger94,udg_rect44)
call TriggerAddCondition(udg_trigger94,Condition(function Trig_Boss1Teleport_Conditions))
call TriggerAddAction(udg_trigger94,function Trig_Boss1Teleport_Actions)
call DisableTrigger(udg_trigger95)
call TriggerRegisterUnitEvent(udg_trigger95,udg_unit41,EVENT_UNIT_DEATH)
call TriggerAddAction(udg_trigger95,function Trig_Boss1Dead_Actions)
call DisableTrigger(udg_trigger96)
call TriggerRegisterUnitEvent(udg_trigger96,udg_unit42,EVENT_UNIT_DEATH)
call TriggerAddAction(udg_trigger96,function Trig_Boss2Dead_Actions)
call DisableTrigger(udg_trigger97)
call TriggerRegisterUnitEvent(udg_trigger97,udg_unit43,EVENT_UNIT_DEATH)
call TriggerAddAction(udg_trigger97,function Trig_Boss3Dead_Actions)
call DisableTrigger(udg_trigger98)
call TriggerRegisterUnitEvent(udg_trigger98,udg_unit46,EVENT_UNIT_DEATH)
call TriggerAddAction(udg_trigger98,function Trig_Boss4Dead_Actions)
call DisableTrigger(udg_trigger99)
call TriggerRegisterUnitEvent(udg_trigger99,udg_unit45,EVENT_UNIT_DEATH)
call TriggerAddAction(udg_trigger99,function Trig_Boss5Dead_Actions)
call DisableTrigger(udg_trigger100)
call TriggerRegisterEnterRectSimple(udg_trigger100,udg_rect12)
call TriggerAddCondition(udg_trigger100,Condition(function Trig_Boss6Music_Conditions))
call TriggerAddAction(udg_trigger100,function Trig_Boss6Music_Actions)
call DisableTrigger(udg_trigger101)
call TriggerRegisterTimerEventPeriodic(udg_trigger101,30.)
call TriggerAddCondition(udg_trigger101,Condition(function Trig_Boss6Teleport_Conditions))
call TriggerAddAction(udg_trigger101,function Trig_Boss6Teleport_Actions)
call DisableTrigger(udg_trigger102)
call TriggerRegisterUnitEvent(udg_trigger102,udg_unit51,EVENT_UNIT_DEATH)
call TriggerAddAction(udg_trigger102,function Trig_Boss6Dead_Actions)
call DisableTrigger(udg_trigger103)
call TriggerAddAction(udg_trigger103,function Trig_Boss7Come_Actions)
call DisableTrigger(udg_trigger104)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger104,Player(9),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger104,Condition(function Trig_Boss7Colour_Conditions))
call TriggerAddAction(udg_trigger104,function Trig_Boss7Colour_Actions)
call DisableTrigger(udg_trigger105)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger105,Player(9),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger105,Condition(function Trig_Boss7Power_Conditions))
call TriggerAddAction(udg_trigger105,function Trig_Boss7Power_Actions)
call DisableTrigger(udg_trigger106)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger106,Player(9),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger106,Condition(function Trig_Boss7Dead_Conditions))
call TriggerAddAction(udg_trigger106,function Trig_Boss7Dead_Actions)
call TriggerRegisterTimerEventSingle(udg_trigger107,1.)
call TriggerAddAction(udg_trigger107,function Trig_LeaderBoard_Actions)
call DisableTrigger(udg_trigger108)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger108,Player(9),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger108,Player(10),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger108,Player(11),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddAction(udg_trigger108,function Trig_LeaderBoardAdd_Actions)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger109,Player(9),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger109,Player(10),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger109,Player(11),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger109,Condition(function Trig_Kills100_Conditions))
call TriggerAddAction(udg_trigger109,function Trig_Kills100_Actions)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger110,Player(9),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger110,Player(10),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger110,Player(11),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger110,Condition(function Trig_Kills500_Conditions))
call TriggerAddAction(udg_trigger110,function Trig_Kills500_Actions)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger111,Player(9),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger111,Player(10),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger111,Player(11),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger111,Condition(function Trig_Kills1000_Conditions))
call TriggerAddAction(udg_trigger111,function Trig_Kills1000_Actions)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger112,Player(9),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger112,Player(10),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger112,Player(11),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger112,Condition(function Trig_Kills2000_Conditions))
call TriggerAddAction(udg_trigger112,function Trig_Kills2000_Actions)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger113,Player(10),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger113,Condition(function Trig_WaveKills20_Conditions))
call TriggerAddAction(udg_trigger113,function Trig_WaveKills20_Actions)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger114,Player(10),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger114,Condition(function Trig_WaveKills40_Conditions))
call TriggerAddAction(udg_trigger114,function Trig_WaveKills40_Actions)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger115,Player(10),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger115,Condition(function Trig_WaveKills60_Conditions))
call TriggerAddAction(udg_trigger115,function Trig_WaveKills60_Actions)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger116,Player(10),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger116,Condition(function Trig_WaveKills80_Conditions))
call TriggerAddAction(udg_trigger116,function Trig_WaveKills80_Actions)
call TriggerRegisterTimerEventSingle(udg_trigger117,1.5)
call TriggerAddAction(udg_trigger117,function Trig_GameLevel1_Actions)
call TriggerRegisterTimerExpireEvent(udg_trigger118,udg_timer01)
call TriggerAddAction(udg_trigger118,function Trig_GameLevel2_Actions)
call DisableTrigger(udg_trigger119)
call TriggerRegisterTimerExpireEvent(udg_trigger119,udg_timer01)
call TriggerAddAction(udg_trigger119,function Trig_GameLevel3_Actions)
call DisableTrigger(udg_trigger120)
call TriggerAddAction(udg_trigger120,function Trig_GameLevel4_Actions)
call DisableTrigger(udg_trigger121)
call TriggerRegisterTimerEventPeriodic(udg_trigger121,240.)
call TriggerAddAction(udg_trigger121,function Trig_EasyPowerUp_Actions)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger122,Player(0),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger122,Player(1),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger122,Player(2),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger122,Player(3),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger122,Player(4),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger122,Player(5),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger122,Player(6),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger122,Player(7),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger122,Condition(function Trig_HeroDead_Conditions))
call TriggerAddAction(udg_trigger122,function Trig_HeroDead_Actions)
call TriggerRegisterUnitEvent(udg_trigger123,udg_unit02,EVENT_UNIT_DAMAGED)
call TriggerAddCondition(udg_trigger123,Condition(function Trig_MuradinHelp_Conditions))
call TriggerAddAction(udg_trigger123,function Trig_MuradinHelp_Actions)
call DisableTrigger(udg_trigger124)
call TriggerRegisterAnyUnitEventBJ(udg_trigger124,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger124,Condition(function Trig_MuradinAttacked_Conditions))
call TriggerAddAction(udg_trigger124,function Trig_MuradinAttacked_Actions)
call TriggerRegisterUnitEvent(udg_trigger125,udg_unit02,EVENT_UNIT_DAMAGED)
call TriggerAddAction(udg_trigger125,function Trig_CastleUnderAttack_Actions)
call TriggerRegisterUnitEvent(udg_trigger126,udg_unit02,EVENT_UNIT_DEATH)
call TriggerAddAction(udg_trigger126,function Trig_YouLose_Actions)
call DisableTrigger(udg_trigger127)
call TriggerAddAction(udg_trigger127,function Trig_Music_Actions)
call DisableTrigger(udg_trigger128)
call TriggerRegisterPlayerEventLeave(udg_trigger128,Player(0))
call TriggerRegisterPlayerEventLeave(udg_trigger128,Player(1))
call TriggerRegisterPlayerEventLeave(udg_trigger128,Player(2))
call TriggerRegisterPlayerEventLeave(udg_trigger128,Player(3))
call TriggerRegisterPlayerEventLeave(udg_trigger128,Player(4))
call TriggerRegisterPlayerEventLeave(udg_trigger128,Player(5))
call TriggerRegisterPlayerEventLeave(udg_trigger128,Player(6))
call TriggerRegisterPlayerEventLeave(udg_trigger128,Player(7))
call TriggerAddAction(udg_trigger128,function Trig_Disconnect_Actions)
call DisableTrigger(udg_trigger129)
call TriggerAddAction(udg_trigger129,function Trig_RemovePlayer_Actions)
call TriggerRegisterUnitEvent(udg_trigger130,udg_unit02,EVENT_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger130,Condition(function Trig_ArrestPlayer_Conditions))
call TriggerAddAction(udg_trigger130,function Trig_ArrestPlayer_Actions)
call DisableTrigger(udg_trigger131)
call TriggerRegisterEnterRectSimple(udg_trigger131,udg_rect43)
call TriggerRegisterEnterRectSimple(udg_trigger131,udg_rect44)
call TriggerAddCondition(udg_trigger131,Condition(function Trig_Teleport_Conditions))
call TriggerAddAction(udg_trigger131,function Trig_Teleport_Actions)
call DisableTrigger(udg_trigger132)
call TriggerAddAction(udg_trigger132,function Trig_Victory_Actions)
call DisableTrigger(udg_trigger133)
call TriggerRegisterTimerExpireEvent(udg_trigger133,udg_timer03)
call TriggerAddAction(udg_trigger133,function Trig_EndGame_Actions)
call TriggerRegisterTimerEventPeriodic(udg_trigger134,300.)
call TriggerAddAction(udg_trigger134,function Trig_Rune_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger135,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger135,Condition(function Trig_SuperItems_Conditions))
call TriggerAddAction(udg_trigger135,function Trig_SuperItems_Actions)
call TriggerRegisterPlayerChatEvent(udg_trigger136,Player(0),"-buy tomes",true)
call TriggerRegisterPlayerChatEvent(udg_trigger136,Player(1),"-buy tomes",true)
call TriggerRegisterPlayerChatEvent(udg_trigger136,Player(2),"-buy tomes",true)
call TriggerRegisterPlayerChatEvent(udg_trigger136,Player(3),"-buy tomes",true)
call TriggerRegisterPlayerChatEvent(udg_trigger136,Player(4),"-buy tomes",true)
call TriggerRegisterPlayerChatEvent(udg_trigger136,Player(5),"-buy tomes",true)
call TriggerRegisterPlayerChatEvent(udg_trigger136,Player(6),"-buy tomes",true)
call TriggerRegisterPlayerChatEvent(udg_trigger136,Player(7),"-buy tomes",true)
call TriggerRegisterPlayerChatEvent(udg_trigger136,Player(0),"-bt",true)
call TriggerRegisterPlayerChatEvent(udg_trigger136,Player(1),"-bt",true)
call TriggerRegisterPlayerChatEvent(udg_trigger136,Player(2),"-bt",true)
call TriggerRegisterPlayerChatEvent(udg_trigger136,Player(3),"-bt",true)
call TriggerRegisterPlayerChatEvent(udg_trigger136,Player(4),"-bt",true)
call TriggerRegisterPlayerChatEvent(udg_trigger136,Player(5),"-bt",true)
call TriggerRegisterPlayerChatEvent(udg_trigger136,Player(6),"-bt",true)
call TriggerRegisterPlayerChatEvent(udg_trigger136,Player(7),"-bt",true)
call TriggerAddCondition(udg_trigger136,Condition(function Trig_BuyTomes_Conditions))
call TriggerAddAction(udg_trigger136,function Trig_BuyTomes_Actions)
call TriggerRegisterPlayerChatEvent(udg_trigger137,Player(0),"-repick",true)
call TriggerRegisterPlayerChatEvent(udg_trigger137,Player(1),"-repick",true)
call TriggerRegisterPlayerChatEvent(udg_trigger137,Player(2),"-repick",true)
call TriggerRegisterPlayerChatEvent(udg_trigger137,Player(3),"-repick",true)
call TriggerRegisterPlayerChatEvent(udg_trigger137,Player(4),"-repick",true)
call TriggerRegisterPlayerChatEvent(udg_trigger137,Player(5),"-repick",true)
call TriggerRegisterPlayerChatEvent(udg_trigger137,Player(6),"-repick",true)
call TriggerRegisterPlayerChatEvent(udg_trigger137,Player(7),"-repick",true)
call TriggerAddCondition(udg_trigger137,Condition(function Trig_Repick_Conditions))
call TriggerAddAction(udg_trigger137,function Trig_Repick_Actions)
call DisableTrigger(udg_trigger138)
call TriggerRegisterPlayerChatEvent(udg_trigger138,Player(0),"-random",true)
call TriggerRegisterPlayerChatEvent(udg_trigger138,Player(1),"-random",true)
call TriggerRegisterPlayerChatEvent(udg_trigger138,Player(2),"-random",true)
call TriggerRegisterPlayerChatEvent(udg_trigger138,Player(3),"-random",true)
call TriggerRegisterPlayerChatEvent(udg_trigger138,Player(4),"-random",true)
call TriggerRegisterPlayerChatEvent(udg_trigger138,Player(5),"-random",true)
call TriggerRegisterPlayerChatEvent(udg_trigger138,Player(6),"-random",true)
call TriggerRegisterPlayerChatEvent(udg_trigger138,Player(7),"-random",true)
call TriggerAddCondition(udg_trigger138,Condition(function Trig_Random_Conditions))
call TriggerAddAction(udg_trigger138,function Trig_Random_Actions)
call TriggerRegisterPlayerChatEvent(udg_trigger139,Player(0),"-repick",true)
call TriggerRegisterPlayerChatEvent(udg_trigger139,Player(1),"-repick",true)
call TriggerRegisterPlayerChatEvent(udg_trigger139,Player(2),"-repick",true)
call TriggerRegisterPlayerChatEvent(udg_trigger139,Player(3),"-repick",true)
call TriggerRegisterPlayerChatEvent(udg_trigger139,Player(4),"-repick",true)
call TriggerRegisterPlayerChatEvent(udg_trigger139,Player(5),"-repick",true)
call TriggerRegisterPlayerChatEvent(udg_trigger139,Player(6),"-repick",true)
call TriggerRegisterPlayerChatEvent(udg_trigger139,Player(7),"-repick",true)
call TriggerAddCondition(udg_trigger139,Condition(function Trig_RepickRandom_Conditions))
call TriggerAddAction(udg_trigger139,function Trig_RepickRandom_Actions)
call TriggerRegisterPlayerChatEvent(udg_trigger140,Player(0),"-kick blue",true)
call TriggerRegisterPlayerChatEvent(udg_trigger140,Player(0),"-kick teal",true)
call TriggerRegisterPlayerChatEvent(udg_trigger140,Player(0),"-kick purple",true)
call TriggerRegisterPlayerChatEvent(udg_trigger140,Player(0),"-kick yellow",true)
call TriggerRegisterPlayerChatEvent(udg_trigger140,Player(0),"-kick orange",true)
call TriggerRegisterPlayerChatEvent(udg_trigger140,Player(0),"-kick green",true)
call TriggerRegisterPlayerChatEvent(udg_trigger140,Player(0),"-kick pink",true)
call TriggerAddAction(udg_trigger140,function Trig_KickByColor_Actions)
call TriggerRegisterPlayerChatEvent(udg_trigger141,Player(0),"-open way",true)
call TriggerRegisterPlayerChatEvent(udg_trigger141,Player(0),"-ow",true)
call TriggerAddAction(udg_trigger141,function Trig_OpenWay_Actions)
call TriggerRegisterPlayerChatEvent(udg_trigger142,Player(0),"-close way",true)
call TriggerRegisterPlayerChatEvent(udg_trigger142,Player(0),"-cw",true)
call TriggerAddCondition(udg_trigger142,Condition(function Trig_CloseWay_Conditions))
call TriggerAddAction(udg_trigger142,function Trig_CloseWay_Actions)
call TriggerRegisterPlayerChatEvent(udg_trigger143,Player(0),"-extreme ",false)
call TriggerAddCondition(udg_trigger143,Condition(function Trig_ExtremeLevel_Conditions))
call TriggerAddAction(udg_trigger143,function Trig_ExtremeLevel_Actions)
call TriggerRegisterPlayerChatEvent(udg_trigger144,Player(0),"-info",true)
call TriggerRegisterPlayerChatEvent(udg_trigger144,Player(1),"-info",true)
call TriggerRegisterPlayerChatEvent(udg_trigger144,Player(2),"-info",true)
call TriggerRegisterPlayerChatEvent(udg_trigger144,Player(3),"-info",true)
call TriggerRegisterPlayerChatEvent(udg_trigger144,Player(4),"-info",true)
call TriggerRegisterPlayerChatEvent(udg_trigger144,Player(5),"-info",true)
call TriggerRegisterPlayerChatEvent(udg_trigger144,Player(6),"-info",true)
call TriggerRegisterPlayerChatEvent(udg_trigger144,Player(7),"-info",true)
call TriggerAddAction(udg_trigger144,function Trig_Info_Actions)
call TriggerRegisterPlayerChatEvent(udg_trigger145,Player(0),"-fog",true)
call TriggerAddAction(udg_trigger145,function Trig_Fog_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger146,udg_rect33)
call TriggerRegisterEnterRectSimple(udg_trigger146,udg_rect14)
call TriggerAddCondition(udg_trigger146,Condition(function Trig_EnableAbilities_Conditions))
call TriggerAddAction(udg_trigger146,function Trig_EnableAbilities_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger147,EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_trigger147,Condition(function Trig_Level20Abilities_Conditions))
call TriggerAddAction(udg_trigger147,function Trig_Level20Abilities_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger148,EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_trigger148,Condition(function Trig_FullRestoration_Conditions))
call TriggerAddAction(udg_trigger148,function Trig_FullRestoration_Actions)
call DisableTrigger(udg_trigger149)
call TriggerRegisterAnyUnitEventBJ(udg_trigger149,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger149,Condition(function Trig_LightFrenzy_Conditions))
call TriggerAddAction(udg_trigger149,function Trig_LightFrenzy_Actions)
call DisableTrigger(udg_trigger150)
call TriggerRegisterAnyUnitEventBJ(udg_trigger150,EVENT_PLAYER_UNIT_ISSUED_ORDER)
call TriggerRegisterAnyUnitEventBJ(udg_trigger150,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger150,Condition(function Trig_ThunderClap_Conditions))
call TriggerAddAction(udg_trigger150,function Trig_ThunderClap_Actions)
call DisableTrigger(udg_trigger151)
call TriggerRegisterAnyUnitEventBJ(udg_trigger151,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger151,Condition(function Trig_StormBolt_Conditions))
call TriggerAddAction(udg_trigger151,function Trig_StormBolt_Actions)
call DisableTrigger(udg_trigger152)
call TriggerRegisterAnyUnitEventBJ(udg_trigger152,EVENT_PLAYER_UNIT_ISSUED_ORDER)
call TriggerRegisterAnyUnitEventBJ(udg_trigger152,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger152,Condition(function Trig_WarStomp_Conditions))
call TriggerAddAction(udg_trigger152,function Trig_WarStomp_Actions)
call DisableTrigger(udg_trigger153)
call TriggerRegisterAnyUnitEventBJ(udg_trigger153,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger153,Condition(function Trig_Shockwave_Conditions))
call TriggerAddAction(udg_trigger153,function Trig_Shockwave_Actions)
call DisableTrigger(udg_trigger154)
call TriggerRegisterAnyUnitEventBJ(udg_trigger154,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger154,Condition(function Trig_Hex_Conditions))
call TriggerAddAction(udg_trigger154,function Trig_Hex_Actions)
call DisableTrigger(udg_trigger155)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger155,Player(0),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger155,Player(1),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger155,Player(2),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger155,Player(3),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger155,Player(4),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger155,Player(5),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger155,Player(6),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger155,Player(7),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger155,Condition(function Trig_Bomb_Conditions))
call TriggerAddAction(udg_trigger155,function Trig_Bomb_Actions)
call DisableTrigger(udg_trigger156)
call TriggerRegisterAnyUnitEventBJ(udg_trigger156,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger156,Condition(function Trig_Armor_Conditions))
call TriggerAddAction(udg_trigger156,function Trig_Armor_Actions)
call DisableTrigger(udg_trigger157)
call TriggerRegisterAnyUnitEventBJ(udg_trigger157,EVENT_PLAYER_UNIT_ISSUED_ORDER)
call TriggerAddCondition(udg_trigger157,Condition(function Trig_HolyLight_Conditions))
call TriggerAddAction(udg_trigger157,function Trig_HolyLight_Actions)
call DisableTrigger(udg_trigger158)
call TriggerRegisterAnyUnitEventBJ(udg_trigger158,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger158,Condition(function Trig_Earthquake_Conditions))
call TriggerAddAction(udg_trigger158,function Trig_Earthquake_Actions)
call DisableTrigger(udg_trigger159)
call TriggerRegisterAnyUnitEventBJ(udg_trigger159,EVENT_PLAYER_UNIT_SPELL_ENDCAST)
call TriggerRegisterAnyUnitEventBJ(udg_trigger159,EVENT_PLAYER_UNIT_SPELL_FINISH)
call TriggerAddCondition(udg_trigger159,Condition(function Trig_EarthquakeStop_Conditions))
call TriggerAddAction(udg_trigger159,function Trig_EarthquakeStop_Actions)
call DisableTrigger(udg_trigger160)
call TriggerRegisterAnyUnitEventBJ(udg_trigger160,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger160,Condition(function Trig_AuraOfBlight_Conditions))
call TriggerAddAction(udg_trigger160,function Trig_AuraOfBlight_Actions)
call DisableTrigger(udg_trigger161)
call TriggerRegisterAnyUnitEventBJ(udg_trigger161,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger161,Condition(function Trig_CommandAura_Conditions))
call TriggerAddAction(udg_trigger161,function Trig_CommandAura_Actions)
call DisableTrigger(udg_trigger162)
call TriggerRegisterAnyUnitEventBJ(udg_trigger162,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger162,Condition(function Trig_LifeRegenerationAura_Conditions))
call TriggerAddAction(udg_trigger162,function Trig_LifeRegenerationAura_Actions)
call DisableTrigger(udg_trigger163)
call TriggerRegisterAnyUnitEventBJ(udg_trigger163,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger163,Condition(function Trig_WarDrumsAura_Conditions))
call TriggerAddAction(udg_trigger163,function Trig_WarDrumsAura_Actions)
call DisableTrigger(udg_trigger164)
call TriggerRegisterAnyUnitEventBJ(udg_trigger164,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger164,Condition(function Trig_PermanentLightning_Conditions))
call TriggerAddAction(udg_trigger164,function Trig_PermanentLightning_Actions)
call DisableTrigger(udg_trigger165)
call TriggerRegisterAnyUnitEventBJ(udg_trigger165,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger165,Condition(function Trig_FrostParalysisAura_Conditions))
call TriggerAddAction(udg_trigger165,function Trig_FrostParalysisAura_Actions)
call DisableTrigger(udg_trigger166)
call TriggerRegisterAnyUnitEventBJ(udg_trigger166,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger166,Condition(function Trig_Immolation_Conditions))
call TriggerAddAction(udg_trigger166,function Trig_Immolation_Actions)
call DisableTrigger(udg_trigger167)
call TriggerRegisterAnyUnitEventBJ(udg_trigger167,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger167,Condition(function Trig_ImmolationGhost_Conditions))
call TriggerAddAction(udg_trigger167,function Trig_ImmolationGhost_Actions)
call DisableTrigger(udg_trigger168)
call TriggerRegisterAnyUnitEventBJ(udg_trigger168,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger168,Condition(function Trig_MuradinBolt_Conditions))
call TriggerAddAction(udg_trigger168,function Trig_MuradinBolt_Actions)
call DisableTrigger(udg_trigger169)
call TriggerRegisterAnyUnitEventBJ(udg_trigger169,EVENT_PLAYER_UNIT_ISSUED_ORDER)
call TriggerRegisterAnyUnitEventBJ(udg_trigger169,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger169,Condition(function Trig_MuradinClap_Conditions))
call TriggerAddAction(udg_trigger169,function Trig_MuradinClap_Actions)
call DisableTrigger(udg_trigger170)
call TriggerRegisterAnyUnitEventBJ(udg_trigger170,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger170,Condition(function Trig_MuradinBoltAmb_Conditions))
call TriggerAddAction(udg_trigger170,function Trig_MuradinBoltAmb_Actions)
call DisableTrigger(udg_trigger171)
call TriggerRegisterAnyUnitEventBJ(udg_trigger171,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger171,Condition(function Trig_MuradinClapAmb_Conditions))
call TriggerAddAction(udg_trigger171,function Trig_MuradinClapAmb_Actions)
call ConditionalTriggerExecute(udg_trigger01)
call ConditionalTriggerExecute(udg_trigger02)
call ConditionalTriggerExecute(udg_trigger03)
call ConditionalTriggerExecute(udg_trigger04)
call ConditionalTriggerExecute(udg_trigger05)
call ConditionalTriggerExecute(udg_trigger06)
call ConditionalTriggerExecute(udg_trigger07)
call ConditionalTriggerExecute(udg_trigger08)
call ConditionalTriggerExecute(udg_trigger77)
call InitVar()
call InitCheats()
endfunction
function InitTrig_init takes nothing returns nothing
set udg_camerasetup01 = CreateCameraSetup()
set udg_camerasetup02 = CreateCameraSetup()
set udg_camerasetup03 = CreateCameraSetup()
set udg_camerasetup04 = CreateCameraSetup()
set udg_camerasetup05 = CreateCameraSetup()
set udg_trigger01 = CreateTrigger()
set udg_trigger02 = CreateTrigger()
set udg_trigger03 = CreateTrigger()
set udg_trigger04 = CreateTrigger()
set udg_trigger05 = CreateTrigger()
set udg_trigger06 = CreateTrigger()
set udg_trigger07 = CreateTrigger()
set udg_trigger08 = CreateTrigger()
set udg_trigger09 = CreateTrigger()
set udg_trigger10 = CreateTrigger()
set udg_trigger11 = CreateTrigger()
set udg_trigger12 = CreateTrigger()
set udg_trigger13 = CreateTrigger()
set udg_trigger14 = CreateTrigger()
set udg_trigger15 = CreateTrigger()
set udg_trigger16 = CreateTrigger()
set udg_trigger17 = CreateTrigger()
set udg_trigger18 = CreateTrigger()
set udg_trigger19 = CreateTrigger()
set udg_trigger20 = CreateTrigger()
set udg_trigger21 = CreateTrigger()
set udg_trigger22 = CreateTrigger()
set udg_trigger23 = CreateTrigger()
set udg_trigger24 = CreateTrigger()
set udg_trigger25 = CreateTrigger()
set udg_trigger26 = CreateTrigger()
set udg_trigger27 = CreateTrigger()
set udg_trigger28 = CreateTrigger()
set udg_trigger29 = CreateTrigger()
set udg_trigger30 = CreateTrigger()
set udg_trigger31 = CreateTrigger()
set udg_trigger32 = CreateTrigger()
set udg_trigger33 = CreateTrigger()
set udg_trigger34 = CreateTrigger()
set udg_trigger35 = CreateTrigger()
set udg_trigger36 = CreateTrigger()
set udg_trigger37 = CreateTrigger()
set udg_trigger38 = CreateTrigger()
set udg_trigger39 = CreateTrigger()
set udg_trigger40 = CreateTrigger()
set udg_trigger41 = CreateTrigger()
set udg_trigger42 = CreateTrigger()
set udg_trigger43 = CreateTrigger()
set udg_trigger44 = CreateTrigger()
set udg_trigger45 = CreateTrigger()
set udg_trigger46 = CreateTrigger()
set udg_trigger47 = CreateTrigger()
set udg_trigger48 = CreateTrigger()
set udg_trigger49 = CreateTrigger()
set udg_trigger50 = CreateTrigger()
set udg_trigger51 = CreateTrigger()
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()
set udg_trigger70 = CreateTrigger()
set udg_trigger71 = CreateTrigger()
set udg_trigger72 = CreateTrigger()
set udg_trigger73 = CreateTrigger()
set udg_trigger74 = CreateTrigger()
set udg_trigger75 = CreateTrigger()
set udg_trigger76 = CreateTrigger()
set udg_trigger77 = CreateTrigger()
set udg_trigger78 = CreateTrigger()
set udg_trigger79 = CreateTrigger()
set udg_trigger80 = CreateTrigger()
set udg_trigger81 = CreateTrigger()
set udg_trigger82 = CreateTrigger()
set udg_trigger83 = CreateTrigger()
set udg_trigger84 = CreateTrigger()
set udg_trigger85 = CreateTrigger()
set udg_trigger86 = CreateTrigger()
set udg_trigger87 = CreateTrigger()
set udg_trigger88 = CreateTrigger()
set udg_trigger89 = CreateTrigger()
set udg_trigger90 = CreateTrigger()
set udg_trigger91 = CreateTrigger()
set udg_trigger92 = CreateTrigger()
set udg_trigger93 = CreateTrigger()
set udg_trigger94 = CreateTrigger()
set udg_trigger95 = CreateTrigger()
set udg_trigger96 = CreateTrigger()
set udg_trigger97 = CreateTrigger()
set udg_trigger98 = CreateTrigger()
set udg_trigger99 = CreateTrigger()
set udg_trigger100 = CreateTrigger()
set udg_trigger101 = CreateTrigger()
set udg_trigger102 = CreateTrigger()
set udg_trigger103 = CreateTrigger()
set udg_trigger104 = CreateTrigger()
set udg_trigger105 = CreateTrigger()
set udg_trigger106 = CreateTrigger()
set udg_trigger107 = CreateTrigger()
set udg_trigger108 = CreateTrigger()
set udg_trigger109 = CreateTrigger()
set udg_trigger110 = CreateTrigger()
set udg_trigger111 = CreateTrigger()
set udg_trigger112 = CreateTrigger()
set udg_trigger113 = CreateTrigger()
set udg_trigger114 = CreateTrigger()
set udg_trigger115 = CreateTrigger()
set udg_trigger116 = CreateTrigger()
set udg_trigger117 = CreateTrigger()
set udg_trigger118 = CreateTrigger()
set udg_trigger119 = CreateTrigger()
set udg_trigger120 = CreateTrigger()
set udg_trigger121 = CreateTrigger()
set udg_trigger122 = CreateTrigger()
set udg_trigger123 = CreateTrigger()
set udg_trigger124 = CreateTrigger()
set udg_trigger125 = CreateTrigger()
set udg_trigger126 = CreateTrigger()
set udg_trigger127 = CreateTrigger()
set udg_trigger128 = CreateTrigger()
set udg_trigger129 = CreateTrigger()
set udg_trigger130 = CreateTrigger()
set udg_trigger131 = CreateTrigger()
set udg_trigger132 = CreateTrigger()
set udg_trigger133 = CreateTrigger()
set udg_trigger134 = CreateTrigger()
set udg_trigger135 = CreateTrigger()
set udg_trigger136 = CreateTrigger()
set udg_trigger137 = CreateTrigger()
set udg_trigger138 = CreateTrigger()
set udg_trigger139 = CreateTrigger()
set udg_trigger140 = CreateTrigger()
set udg_trigger141 = CreateTrigger()
set udg_trigger142 = CreateTrigger()
set udg_trigger143 = CreateTrigger()
set udg_trigger144 = CreateTrigger()
set udg_trigger145 = CreateTrigger()
set udg_trigger146 = CreateTrigger()
set udg_trigger147 = CreateTrigger()
set udg_trigger148 = CreateTrigger()
set udg_trigger149 = CreateTrigger()
set udg_trigger150 = CreateTrigger()
set udg_trigger151 = CreateTrigger()
set udg_trigger152 = CreateTrigger()
set udg_trigger153 = CreateTrigger()
set udg_trigger154 = CreateTrigger()
set udg_trigger155 = CreateTrigger()
set udg_trigger156 = CreateTrigger()
set udg_trigger157 = CreateTrigger()
set udg_trigger158 = CreateTrigger()
set udg_trigger159 = CreateTrigger()
set udg_trigger160 = CreateTrigger()
set udg_trigger161 = CreateTrigger()
set udg_trigger162 = CreateTrigger()
set udg_trigger163 = CreateTrigger()
set udg_trigger164 = CreateTrigger()
set udg_trigger165 = CreateTrigger()
set udg_trigger166 = CreateTrigger()
set udg_trigger167 = CreateTrigger()
set udg_trigger168 = CreateTrigger()
set udg_trigger169 = CreateTrigger()
set udg_trigger170 = CreateTrigger()
set udg_trigger171 = CreateTrigger()
call ExecuteFunc("main2")
endfunction