Name | Type | is_array | initial_value |
globals
integer udg_cheat=0
trigger gg_trg_cheats=null
rect array a
unit A=null
timer B=CreateTimer()
integer c=0
unit array C
unit array D
unit array e
rect E=null
integer F=0
integer array G
integer h=0
integer array H
group I=CreateGroup()
unit array j
integer J=0
force k=CreateForce()
integer array K
unit array l
unit L=null
timer array m
integer M=0
playercolor array n
integer array N
integer o=0
string O=""
group P=CreateGroup()
string array q
unit Q=null
effect array R
integer array s
real S=0
unit array T
texttag array U
integer array V
timerdialog w=null
integer W=0
unit array X
integer Y=0
group z=CreateGroup()
boolean Z=false
timer aa=CreateTimer()
timer aA=CreateTimer()
integer ab=0
timer aB=CreateTimer()
boolean ac=false
integer aC=31
integer ad=0
integer aD=1
integer ae=10
boolean aE=false
boolean af=false
boolean aF=false
timer ag=CreateTimer()
boolean aG=false
timer ah=CreateTimer()
rect aH
rect ai
rect aI
rect aj
rect aJ
rect ak
rect aK
rect al
rect aL
rect am
rect aM
rect an
rect aN
rect ao
rect aO
rect ap
rect aP
rect aq
rect aQ
rect ar
rect aR
rect as
rect aS
rect at
rect aT
rect au
rect aU
rect av
rect aV
rect aw
rect aW
rect ax
rect aX
rect ay
rect aY
rect az
rect aZ
rect a0
rect a1
rect a2
rect a3
rect a4
rect a5
rect a6
rect a7
rect a8
rect a9
rect Aa
rect AA
rect Ab
rect AB
rect Ac
rect AC
rect Ad
rect AD
rect Ae
rect AE
rect Af
rect AF
rect Ag
rect AG
rect Ah
rect AH
rect Ai
rect AI
rect Aj
rect AJ
rect Ak
rect AK
rect Al
rect AL
rect Am
rect AM
rect An
rect AN
rect Ao
rect AO
rect Ap
rect AP
rect Aq
rect AQ
rect Ar
rect AR
rect As
rect AS
rect At
rect AT
rect Au
rect AU
rect Av
rect AV
rect Aw
rect AW
rect Ax
rect AX
rect Ay
rect AY
rect Az
rect AZ
rect A0
rect A1
rect A2
rect A3
rect A4
rect A5
rect A6
rect A7
rect A8
rect A9
rect ba
rect bA
rect bb
rect bB
rect bc
rect bC
rect bd
rect bD
rect be
rect bE
rect bf
rect bF
rect bg
rect bG
rect bh
rect bH
rect bi
rect bI
rect bj
rect bJ
rect bk
rect bK
rect bl
rect bL
rect bm
rect bM
rect bn
rect bN
rect bo
rect bO
rect bp
rect bP
rect bq
rect bQ
rect br
rect bR
rect bs
rect bS
rect bt
rect bT
rect bu
rect bU
rect bv
rect bV
rect bw
rect bW
rect bx
rect bX
rect by
rect bY
rect bz
rect bZ
rect b0
rect b1
rect b2
rect b3
rect b4
rect b5
rect b6
rect b7
rect b8
rect b9
rect Ba
rect BA
rect Bb
rect BB
rect Bc
rect BC
rect Bd
rect BD
rect Be
rect BE
rect Bf
rect BF
rect Bg
rect BG
rect Bh
rect BH
rect Bi
rect BI
rect Bj
rect BJ
rect Bk
rect BK
rect Bl
rect BL
rect Bm
rect BM
rect Bn
rect BN
rect Bo
rect BO
rect Bp
rect BP
rect Bq
rect BQ
rect Br
rect BR
rect Bs
rect BS
rect Bt
rect BT
rect Bu
rect BU
rect Bv
rect BV
rect Bw
rect BW
rect Bx
rect BX
rect By
rect BY
rect Bz
rect BZ
rect B0
rect B1
rect B2
rect B3
rect B4
rect B5
rect B6
rect B7
rect B8
rect B9
rect ca
rect cA
rect cb
rect cB
rect cc
camerasetup cC=CreateCameraSetup()
camerasetup cd=CreateCameraSetup()
camerasetup cD=CreateCameraSetup()
sound ce
sound cE
sound cf
sound cF
sound cg
sound cG
sound ch
sound cH
sound ci
string cI="Sound\\Music\\mp3Music\\Human1.mp3"
string cj="Sound\\Music\\mp3Music\\IllidansTheme.mp3"
sound cJ
sound ck
sound cK
string cl="Sound\\Music\\mp3Music\\NagaTheme.mp3"
string cL="Sound\\Music\\mp3Music\\NightElf2.mp3"
string cm="Sound\\Music\\mp3Music\\NightElfX1.mp3"
string cM="Sound\\Music\\mp3Music\\Orc1.mp3"
string cn="Sound\\Music\\mp3Music\\Orc2.mp3"
string cN="Sound\\Music\\mp3Music\\Orc3.mp3"
string co="Sound\\Music\\mp3Music\\OrcX1.mp3"
sound cO
string cp="Sound\\Music\\mp3Music\\PursuitTheme.mp3"
sound cP
sound cq
sound cQ
sound cr
sound cR
sound cs
sound cS
sound ct
string cT="Sound\\Music\\mp3Music\\Undead1.mp3"
string cu="Sound\\Music\\mp3Music\\Undead2.mp3"
string cU="Sound\\Music\\mp3Music\\UndeadX1.mp3"
string cv="Sound\\Music\\mp3Music\\HumanX1.mp3"
sound cV
sound cw
sound cW
sound cx
trigger cX=CreateTrigger()
trigger cy=CreateTrigger()
trigger cY=CreateTrigger()
trigger cz=CreateTrigger()
trigger cZ=CreateTrigger()
trigger c0=CreateTrigger()
trigger c1=CreateTrigger()
trigger c2=CreateTrigger()
trigger c3=CreateTrigger()
trigger c4=CreateTrigger()
trigger c5=CreateTrigger()
trigger c6=CreateTrigger()
trigger c7=CreateTrigger()
trigger c8=CreateTrigger()
trigger c9=CreateTrigger()
trigger Ca=CreateTrigger()
trigger CA=CreateTrigger()
trigger Cb=CreateTrigger()
trigger CB=CreateTrigger()
trigger Cc=CreateTrigger()
trigger CC=CreateTrigger()
trigger Cd=CreateTrigger()
trigger CD=CreateTrigger()
trigger Ce=CreateTrigger()
trigger CE=CreateTrigger()
trigger Cf=CreateTrigger()
trigger CF=CreateTrigger()
trigger Cg=CreateTrigger()
trigger CG=CreateTrigger()
trigger Ch=CreateTrigger()
trigger CH=CreateTrigger()
trigger Ci=CreateTrigger()
trigger CI=CreateTrigger()
trigger Cj=CreateTrigger()
trigger CJ=CreateTrigger()
trigger Ck=CreateTrigger()
trigger CK=CreateTrigger()
trigger Cl=CreateTrigger()
trigger CL=CreateTrigger()
trigger Cm=CreateTrigger()
trigger CM=CreateTrigger()
trigger Cn=CreateTrigger()
trigger CN=CreateTrigger()
trigger Co=CreateTrigger()
trigger CO=CreateTrigger()
trigger Cp=CreateTrigger()
trigger CP=CreateTrigger()
trigger Cq=CreateTrigger()
trigger CQ=CreateTrigger()
trigger Cr=CreateTrigger()
trigger CR=CreateTrigger()
trigger Cs=CreateTrigger()
trigger CS=CreateTrigger()
trigger Ct=CreateTrigger()
trigger CT=CreateTrigger()
trigger Cu=CreateTrigger()
trigger CU=CreateTrigger()
trigger Cv=CreateTrigger()
trigger CV=CreateTrigger()
trigger Cw=CreateTrigger()
trigger CW=CreateTrigger()
trigger Cx=CreateTrigger()
trigger CX=CreateTrigger()
trigger Cy=CreateTrigger()
trigger CY=CreateTrigger()
trigger Cz=CreateTrigger()
trigger CZ=CreateTrigger()
trigger C0=CreateTrigger()
trigger C1=CreateTrigger()
trigger C2=CreateTrigger()
trigger C3=CreateTrigger()
trigger C4=CreateTrigger()
trigger C5=CreateTrigger()
trigger C6=CreateTrigger()
trigger C7=CreateTrigger()
trigger C8=CreateTrigger()
trigger C9=CreateTrigger()
trigger da=CreateTrigger()
trigger dA=CreateTrigger()
trigger db=CreateTrigger()
trigger dB=CreateTrigger()
trigger dc=CreateTrigger()
trigger dC=CreateTrigger()
trigger dd=CreateTrigger()
trigger dD=CreateTrigger()
trigger de=CreateTrigger()
trigger dE=CreateTrigger()
trigger df=CreateTrigger()
trigger dF=CreateTrigger()
trigger dg=CreateTrigger()
trigger dG=CreateTrigger()
trigger dh=CreateTrigger()
trigger dH=CreateTrigger()
trigger di=CreateTrigger()
trigger dI=CreateTrigger()
trigger dj=CreateTrigger()
trigger dJ=CreateTrigger()
trigger dk=CreateTrigger()
trigger dK=CreateTrigger()
trigger dl=CreateTrigger()
trigger dL=CreateTrigger()
trigger dm=CreateTrigger()
trigger dM=CreateTrigger()
trigger dn=CreateTrigger()
trigger dN=CreateTrigger()
trigger do=CreateTrigger()
trigger dO=CreateTrigger()
trigger dp=CreateTrigger()
trigger dP=CreateTrigger()
trigger dq=CreateTrigger()
trigger dQ=CreateTrigger()
trigger dr=CreateTrigger()
trigger dR=CreateTrigger()
trigger ds=CreateTrigger()
trigger dS=CreateTrigger()
trigger dt=CreateTrigger()
trigger dT=CreateTrigger()
trigger du=CreateTrigger()
trigger dU=CreateTrigger()
trigger dv=CreateTrigger()
trigger dV=CreateTrigger()
trigger dw=CreateTrigger()
trigger dW=CreateTrigger()
trigger dx=CreateTrigger()
trigger dX=CreateTrigger()
trigger dy=CreateTrigger()
trigger dY=CreateTrigger()
trigger dz=CreateTrigger()
trigger dZ=CreateTrigger()
trigger d0=CreateTrigger()
trigger d1=CreateTrigger()
trigger d2=CreateTrigger()
trigger d3=CreateTrigger()
trigger d4=CreateTrigger()
trigger d5=CreateTrigger()
trigger d6=CreateTrigger()
trigger d7=CreateTrigger()
trigger d8=CreateTrigger()
trigger d9=CreateTrigger()
trigger Da=CreateTrigger()
trigger DA=CreateTrigger()
trigger Db=CreateTrigger()
trigger DB=CreateTrigger()
trigger Dc=CreateTrigger()
trigger DC=CreateTrigger()
trigger Dd=CreateTrigger()
trigger DD=CreateTrigger()
trigger De=CreateTrigger()
trigger DE=CreateTrigger()
trigger Df=CreateTrigger()
trigger DF=CreateTrigger()
trigger Dg=CreateTrigger()
trigger DG=CreateTrigger()
trigger Dh=CreateTrigger()
trigger DH=CreateTrigger()
trigger Di=CreateTrigger()
trigger DI=CreateTrigger()
trigger Dj=CreateTrigger()
trigger DJ=CreateTrigger()
trigger Dk=CreateTrigger()
trigger DK=CreateTrigger()
trigger Dl=CreateTrigger()
trigger DL=CreateTrigger()
trigger Dm=CreateTrigger()
trigger DM=CreateTrigger()
trigger Dn=CreateTrigger()
trigger DN=CreateTrigger()
trigger Do=CreateTrigger()
trigger DO=CreateTrigger()
trigger Dp=CreateTrigger()
trigger DP=CreateTrigger()
trigger Dq=CreateTrigger()
trigger DQ=CreateTrigger()
trigger Dr=CreateTrigger()
trigger DR=CreateTrigger()
trigger Ds=CreateTrigger()
trigger DS=CreateTrigger()
trigger Dt=CreateTrigger()
trigger DT=CreateTrigger()
trigger Du=CreateTrigger()
trigger DU=CreateTrigger()
trigger Dv=CreateTrigger()
trigger DV=CreateTrigger()
trigger Dw=CreateTrigger()
trigger DW=CreateTrigger()
trigger Dx=CreateTrigger()
trigger DX=CreateTrigger()
trigger Dy=CreateTrigger()
trigger DY=CreateTrigger()
trigger Dz=CreateTrigger()
trigger DZ=CreateTrigger()
trigger D0=CreateTrigger()
trigger D1=CreateTrigger()
trigger D2=CreateTrigger()
trigger D3=CreateTrigger()
trigger D4=CreateTrigger()
trigger D5=CreateTrigger()
trigger D6=CreateTrigger()
trigger D7=CreateTrigger()
trigger D8=CreateTrigger()
trigger D9=CreateTrigger()
trigger ea=CreateTrigger()
trigger eA=CreateTrigger()
trigger eb=CreateTrigger()
trigger eB=CreateTrigger()
trigger ec=CreateTrigger()
trigger eC=CreateTrigger()
trigger ed=CreateTrigger()
trigger eD=CreateTrigger()
trigger ee=CreateTrigger()
trigger eE=CreateTrigger()
trigger ef=CreateTrigger()
trigger eF=CreateTrigger()
trigger eg=CreateTrigger()
trigger eG=CreateTrigger()
trigger eh=CreateTrigger()
trigger eH=CreateTrigger()
trigger ei=CreateTrigger()
trigger eI=CreateTrigger()
trigger ej=CreateTrigger()
trigger eJ=CreateTrigger()
trigger ek=CreateTrigger()
trigger eK=CreateTrigger()
trigger el=CreateTrigger()
trigger eL=CreateTrigger()
trigger em=CreateTrigger()
trigger eM=CreateTrigger()
trigger en=CreateTrigger()
trigger eN=CreateTrigger()
trigger eo=CreateTrigger()
trigger eO=CreateTrigger()
trigger ep=CreateTrigger()
trigger eP=CreateTrigger()
trigger eq=CreateTrigger()
trigger eQ=CreateTrigger()
trigger er=CreateTrigger()
trigger eR=CreateTrigger()
trigger es=CreateTrigger()
trigger eS=CreateTrigger()
trigger et=CreateTrigger()
trigger eT=CreateTrigger()
trigger eu=CreateTrigger()
trigger eU=CreateTrigger()
trigger ev=CreateTrigger()
trigger eV=CreateTrigger()
trigger ew=CreateTrigger()
trigger eW=CreateTrigger()
trigger ex=CreateTrigger()
trigger eX=CreateTrigger()
trigger ey=CreateTrigger()
trigger eY=CreateTrigger()
trigger ez=CreateTrigger()
trigger eZ=CreateTrigger()
trigger e0=CreateTrigger()
trigger e1=CreateTrigger()
trigger e2=CreateTrigger()
trigger e3=CreateTrigger()
trigger e4=CreateTrigger()
trigger e5=CreateTrigger()
trigger e6=CreateTrigger()
trigger e7=CreateTrigger()
trigger e8=CreateTrigger()
trigger e9=CreateTrigger()
trigger Ea=CreateTrigger()
trigger EA=CreateTrigger()
trigger Eb=CreateTrigger()
trigger EB=CreateTrigger()
trigger Ec=CreateTrigger()
trigger EC=CreateTrigger()
trigger Ed=CreateTrigger()
trigger ED=CreateTrigger()
trigger Ee=CreateTrigger()
trigger EE=CreateTrigger()
trigger Ef=CreateTrigger()
trigger EF=CreateTrigger()
unit Eg
unit EG
unit Eh
unit EH
unit Ei
unit EI
unit Ej
unit EJ
unit Ek
unit EK
unit El
unit EL
unit Em
unit EM
unit En
unit EN
unit Eo
unit EO
unit Ep
unit EP
unit Eq
unit EQ
unit Er
unit ER
unit Es
unit ES
unit Et
unit ET
unit Eu
unit EU
unit Ev
unit EV
unit Ew
unit EW
unit Ex
unit EX
unit Ey
unit EY
unit Ez
unit EZ
unit E0
unit E1
unit E2
unit E3
unit E4
unit E5
unit E6
unit E7
unit E8
unit E9
unit fa
unit fA
unit fb
unit fB
unit fc
unit fC
unit fd
unit fD
unit fe
unit fE
unit ff
unit fF
unit fg
unit fG
unit fh
unit fH
unit fi
unit fI
unit fj
unit fJ
unit fk
unit fK
unit fl
unit fL
unit fm
unit fM
unit fn
unit fN
unit fo
unit fO
unit fp
unit fP
unit fq
unit fQ
unit fr
unit fR
unit fs
unit fS
unit ft
unit fT
unit fu
unit fU
unit fv
unit fV
unit fw
unit fW
unit fx
unit fX
unit fy
unit fY
unit fz
unit fZ
unit f0
unit f1
unit f2
unit f3
unit f4
unit f5
unit f6
unit f7
unit f8
unit f9
unit Fa
unit FA
unit Fb
unit FB
unit Fc
unit FC
unit Fd
unit FD
unit Fe
unit FE
unit Ff
unit FF
unit Fg
unit FG
unit Fh
unit FH
unit Fi
unit FI
unit Fj
unit FJ
unit Fk
unit FK
unit Fl
unit FL
unit Fm
unit FM
unit Fn
unit FN
unit Fo
unit FO
unit Fp
unit FP
unit Fq
unit FQ
unit Fr
unit FR
unit Fs
unit FS
unit Ft
unit FT
unit Fu
unit FU
unit Fv
unit FV
unit Fw
item FW
unit Fx
unit FX
unit Fy
unit FY
unit Fz
unit FZ
unit F0
unit F1
unit F2
unit F3
unit F4
unit F5
unit F6
unit F7
unit F8
unit F9
destructable ga
destructable gA
destructable gb
destructable gB
destructable gc
destructable gC
destructable gd
destructable gD
destructable ge
destructable gE
destructable gf
destructable gF
destructable gg
destructable gG
destructable gh
destructable gH
destructable gi
destructable gI
destructable gj
destructable gJ
destructable gk
destructable gK
destructable gl
destructable gL
destructable gm
destructable gM
destructable gn
destructable gN
destructable go
destructable gO
destructable gp
destructable gP
destructable gq
destructable gQ
destructable gr
destructable gR
destructable gs
destructable gS
destructable gt
destructable gT
timer gu=null
handle gU
endglobals
function Trig_cheats_01 takes nothing returns boolean
return ( SubStringBJ(GetEventPlayerChatString(), 1, 4) == "-int" )
endfunction
function Trig_cheats_02 takes nothing returns boolean
return ( udg_cheat == GetConvertedPlayerId(GetTriggerPlayer()) )
endfunction
function Trig_cheats_03 takes nothing returns nothing
call ModifyHeroStat( bj_HEROSTAT_INT, GetEnumUnit(), bj_MODIFYMETHOD_SET, S2I(SubStringBJ(GetEventPlayerChatString(), 5, 20)) )
endfunction
function Trig_cheats_04 takes nothing returns boolean
return ( SubStringBJ(GetEventPlayerChatString(), 1, 4) == "-agi" )
endfunction
function Trig_cheats_05 takes nothing returns boolean
return ( udg_cheat == GetConvertedPlayerId(GetTriggerPlayer()) )
endfunction
function Trig_cheats_06 takes nothing returns nothing
call ModifyHeroStat( bj_HEROSTAT_AGI, GetEnumUnit(), bj_MODIFYMETHOD_SET, S2I(SubStringBJ(GetEventPlayerChatString(), 5, 20)) )
endfunction
function Trig_cheats_07 takes nothing returns boolean
return ( SubStringBJ(GetEventPlayerChatString(), 1, 4) == "-str" )
endfunction
function Trig_cheats_08 takes nothing returns boolean
return ( udg_cheat == GetConvertedPlayerId(GetTriggerPlayer()) )
endfunction
function Trig_cheats_09 takes nothing returns nothing
call ModifyHeroStat( bj_HEROSTAT_STR, GetEnumUnit(), bj_MODIFYMETHOD_SET, S2I(SubStringBJ(GetEventPlayerChatString(), 5, 20)) )
endfunction
function Trig_cheats_10 takes nothing returns boolean
return ( SubStringBJ(GetEventPlayerChatString(), 1, 3) == "-xp" )
endfunction
function Trig_cheats_11 takes nothing returns boolean
return ( udg_cheat == GetConvertedPlayerId(GetTriggerPlayer()) )
endfunction
function Trig_cheats_12 takes nothing returns nothing
call AddHeroXPSwapped( S2I(SubStringBJ(GetEventPlayerChatString(), 5, 20)), GetEnumUnit(), true )
endfunction
function Trig_cheats_13 takes nothing returns boolean
return ( SubStringBJ(GetEventPlayerChatString(), 1, 4) == "-lvl" )
endfunction
function Trig_cheats_14 takes nothing returns boolean
return ( udg_cheat == GetConvertedPlayerId(GetTriggerPlayer()) )
endfunction
function Trig_cheats_15 takes nothing returns nothing
call SetHeroLevelBJ( GetEnumUnit(), S2I(SubStringBJ(GetEventPlayerChatString(), 5, 20)), true )
endfunction
function Trig_cheats_16 takes nothing returns boolean
return ( SubStringBJ(GetEventPlayerChatString(), 1, 4) == "-vul" )
endfunction
function Trig_cheats_17 takes nothing returns boolean
return ( udg_cheat == GetConvertedPlayerId(GetTriggerPlayer()) )
endfunction
function Trig_cheats_18 takes nothing returns nothing
call SetUnitInvulnerable( GetEnumUnit(), false )
endfunction
function Trig_cheats_19 takes nothing returns boolean
return ( SubStringBJ(GetEventPlayerChatString(), 1, 4) == "-inv" )
endfunction
function Trig_cheats_20 takes nothing returns boolean
return ( udg_cheat == GetConvertedPlayerId(GetTriggerPlayer()) )
endfunction
function Trig_cheats_21 takes nothing returns nothing
call SetUnitInvulnerable( GetEnumUnit(), true )
endfunction
function Trig_cheats_22 takes nothing returns boolean
return ( SubStringBJ(GetEventPlayerChatString(), 1, 5) == "-food" )
endfunction
function Trig_cheats_23 takes nothing returns boolean
return ( udg_cheat == GetConvertedPlayerId(GetTriggerPlayer()) )
endfunction
function Trig_cheats_24 takes nothing returns boolean
return ( SubStringBJ(GetEventPlayerChatString(), 1, 5) == "-food" )
endfunction
function Trig_cheats_25 takes nothing returns boolean
return ( udg_cheat == GetConvertedPlayerId(GetTriggerPlayer()) )
endfunction
function Trig_cheats_26 takes nothing returns boolean
return ( SubStringBJ(GetEventPlayerChatString(), 1, 7) == "-lumber" )
endfunction
function Trig_cheats_27 takes nothing returns boolean
return ( udg_cheat == GetConvertedPlayerId(GetTriggerPlayer()) )
endfunction
function Trig_cheats_28 takes nothing returns boolean
return ( SubStringBJ(GetEventPlayerChatString(), 1, 5) == "-gold" )
endfunction
function Trig_cheats_29 takes nothing returns boolean
return ( udg_cheat == GetConvertedPlayerId(GetTriggerPlayer()) )
endfunction
function Trig_cheats_30 takes nothing returns boolean
return ( SubStringBJ(GetEventPlayerChatString(), 1, 3) == "-hp" )
endfunction
function Trig_cheats_31 takes nothing returns boolean
return ( udg_cheat == GetConvertedPlayerId(GetTriggerPlayer()) )
endfunction
function Trig_cheats_32 takes nothing returns nothing
call SetUnitLifeBJ( GetEnumUnit(), I2R(S2I(SubStringBJ(GetEventPlayerChatString(), 4, 20))) )
endfunction
function Trig_cheats_33 takes nothing returns boolean
return ( SubStringBJ(GetEventPlayerChatString(), 1, 3) == "-mp" )
endfunction
function Trig_cheats_34 takes nothing returns boolean
return ( udg_cheat == GetConvertedPlayerId(GetTriggerPlayer()) )
endfunction
function Trig_cheats_35 takes nothing returns nothing
call SetUnitManaBJ( GetEnumUnit(), I2R(S2I(SubStringBJ(GetEventPlayerChatString(), 4, 20))) )
endfunction
function Trig_cheats_36 takes nothing returns boolean
return ( SubStringBJ(GetEventPlayerChatString(), 1, 5) == "-kill" )
endfunction
function Trig_cheats_37 takes nothing returns boolean
return ( udg_cheat == GetConvertedPlayerId(GetTriggerPlayer()) )
endfunction
function Trig_cheats_38 takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_cheats_39 takes nothing returns boolean
return ( SubStringBJ(GetEventPlayerChatString(), 1, 8) == "-additem" )
endfunction
function Trig_cheats_40 takes nothing returns boolean
return ( udg_cheat == GetConvertedPlayerId(GetTriggerPlayer()) )
endfunction
function Trig_cheats_41 takes nothing returns nothing
call CreateItemLoc( ChooseRandomItemExBJ(-1, ITEM_TYPE_ANY), GetUnitLoc(GetEnumUnit()) )
endfunction
function Trig_cheats_42 takes nothing returns boolean
return ( SubStringBJ(GetEventPlayerChatString(), 1, 11) == "-off" )
endfunction
function Trig_cheats_43 takes nothing returns boolean
return ( SubStringBJ(GetEventPlayerChatString(), 1, 23) == "-cheated by wcc" )
endfunction
function Trig_cheats_Actions takes nothing returns nothing
if ( Trig_cheats_01() ) then
if ( Trig_cheats_02() ) then
call ForGroupBJ( GetUnitsSelectedAll(GetTriggerPlayer()), function Trig_cheats_03 )
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_cheats_04() ) then
if ( Trig_cheats_05() ) then
call ForGroupBJ( GetUnitsSelectedAll(GetTriggerPlayer()), function Trig_cheats_06 )
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_cheats_07() ) then
if ( Trig_cheats_08() ) then
call ForGroupBJ( GetUnitsSelectedAll(GetTriggerPlayer()), function Trig_cheats_09 )
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_cheats_10() ) then
if ( Trig_cheats_11() ) then
call ForGroupBJ( GetUnitsSelectedAll(GetTriggerPlayer()), function Trig_cheats_12 )
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_cheats_13() ) then
if ( Trig_cheats_14() ) then
call ForGroupBJ( GetUnitsSelectedAll(GetTriggerPlayer()), function Trig_cheats_15 )
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_cheats_16() ) then
if ( Trig_cheats_17() ) then
call ForGroupBJ( GetUnitsSelectedAll(GetTriggerPlayer()), function Trig_cheats_18 )
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_cheats_19() ) then
if ( Trig_cheats_20() ) then
call ForGroupBJ( GetUnitsSelectedAll(GetTriggerPlayer()), function Trig_cheats_21 )
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_cheats_22() ) then
if ( Trig_cheats_23() ) then
call SetPlayerStateBJ( GetTriggerPlayer(), PLAYER_STATE_FOOD_CAP_CEILING, S2I(SubStringBJ(GetEventPlayerChatString(), 6, 20)) )
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_cheats_24() ) then
if ( Trig_cheats_25() ) then
call SetPlayerStateBJ( GetTriggerPlayer(), PLAYER_STATE_RESOURCE_FOOD_CAP, S2I(SubStringBJ(GetEventPlayerChatString(), 6, 20)) )
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_cheats_26() ) then
if ( Trig_cheats_27() ) then
call SetPlayerStateBJ( GetTriggerPlayer(), PLAYER_STATE_RESOURCE_LUMBER, S2I(SubStringBJ(GetEventPlayerChatString(), 8, 20)) )
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_cheats_28() ) then
if ( Trig_cheats_29() ) then
call SetPlayerStateBJ( GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD, S2I(SubStringBJ(GetEventPlayerChatString(), 6, 20)) )
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_cheats_30() ) then
if ( Trig_cheats_31() ) then
call ForGroupBJ( GetUnitsSelectedAll(GetTriggerPlayer()), function Trig_cheats_32 )
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_cheats_33() ) then
if ( Trig_cheats_34() ) then
call ForGroupBJ( GetUnitsSelectedAll(GetTriggerPlayer()), function Trig_cheats_35 )
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_cheats_36() ) then
if ( Trig_cheats_37() ) then
call ForGroupBJ( GetUnitsSelectedAll(GetTriggerPlayer()), function Trig_cheats_38 )
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_cheats_39() ) then
if ( Trig_cheats_40() ) then
call ForGroupBJ( GetUnitsSelectedAll(GetTriggerPlayer()), function Trig_cheats_41 )
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_cheats_42() ) then
set udg_cheat = 0
else
call DoNothing( )
endif
if ( Trig_cheats_43() ) then
set udg_cheat = GetConvertedPlayerId(GetTriggerPlayer())
else
call DoNothing( )
endif
endfunction
function InitTrig_cheats takes nothing returns nothing
set gg_trg_cheats = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_cheats, ConvertedPlayer(1), "-", false )
call TriggerRegisterPlayerChatEvent( gg_trg_cheats, ConvertedPlayer(2), "-", false )
call TriggerRegisterPlayerChatEvent( gg_trg_cheats, ConvertedPlayer(3), "-", false )
call TriggerRegisterPlayerChatEvent( gg_trg_cheats, ConvertedPlayer(4), "-", false )
call TriggerRegisterPlayerChatEvent( gg_trg_cheats, ConvertedPlayer(5), "-", false )
call TriggerRegisterPlayerChatEvent( gg_trg_cheats, ConvertedPlayer(6), "-", false )
call TriggerRegisterPlayerChatEvent( gg_trg_cheats, ConvertedPlayer(7), "-", false )
call TriggerRegisterPlayerChatEvent( gg_trg_cheats, ConvertedPlayer(8), "-", false )
call TriggerRegisterPlayerChatEvent( gg_trg_cheats, ConvertedPlayer(9), "-", false )
call TriggerRegisterPlayerChatEvent( gg_trg_cheats, ConvertedPlayer(10), "-", false )
call TriggerRegisterPlayerChatEvent( gg_trg_cheats, ConvertedPlayer(11), "-", false )
call TriggerRegisterPlayerChatEvent( gg_trg_cheats, ConvertedPlayer(12), "-", false )
call TriggerRegisterPlayerChatEvent( gg_trg_cheats, ConvertedPlayer(13), "-", false )
call TriggerRegisterPlayerChatEvent( gg_trg_cheats, ConvertedPlayer(14), "-", false )
call TriggerRegisterPlayerChatEvent( gg_trg_cheats, ConvertedPlayer(15), "-", false )
call TriggerRegisterPlayerChatEvent( gg_trg_cheats, ConvertedPlayer(16), "-", false )
call TriggerAddAction( gg_trg_cheats, function Trig_cheats_Actions )
endfunction
function gv takes real gV returns nothing
local real gw
local real st=TimerGetElapsed(gu)
if st<=0 then
set gu=CreateTimer()
call TimerStart(gu,0xF4240,false,null)
endif
if(gV>0)then
loop
set gw=gV-TimerGetElapsed(gu)+st
exitwhen gw<=0
if(gw>bj_POLLED_WAIT_SKIP_THRESHOLD)then
call TriggerSleepAction(.1*gw)
else
call TriggerSleepAction(bj_POLLED_WAIT_INTERVAL)
endif
endloop
endif
endfunction
function gW takes trigger gx,rect r returns event
local region gX=CreateRegion()
call RegionAddRect(gX,r)
set gU=TriggerRegisterEnterRegion(gx,gX,null)
set gX=null
return gU
endfunction
function g1 takes location g2,real g3,real g4 returns location
local real x=g4*bj_DEGTORAD
return Location(GetLocationX(g2)+g3*Cos(x),GetLocationY(g2)+g3*Sin(x))
endfunction
function g5 takes nothing returns nothing
local unit g6=GetEnumUnit()
if(GetUnitState(g6,UNIT_STATE_LIFE)<=0)then
call SetUnitTimeScale(g6,.0001)
endif
set g6=null
endfunction
function g7 takes nothing returns nothing
local unit g6=GetEnumUnit()
if(GetUnitState(g6,UNIT_STATE_LIFE)<=0)then
call UnitSuspendDecay(g6,true)
call SetUnitTimeScale(g6,.0001)
endif
set g6=null
endfunction
function g8 takes nothing returns nothing
local unit g6=GetEnumUnit()
if(GetUnitState(g6,UNIT_STATE_LIFE)<=0)then
call UnitSuspendDecay(g6,true)
call SetUnitTimeScale(g6,10.)
call SetUnitAnimation(g6,"decay flesh")
endif
set g6=null
endfunction
function g9 takes nothing returns nothing
local group Ga
local group GA
set Ga=bj_suspendDecayBoneGroup
set GA=bj_suspendDecayFleshGroup
set bj_suspendDecayBoneGroup=CreateGroup()
set bj_suspendDecayFleshGroup=CreateGroup()
call ForGroup(GA,function g5)
call ForGroup(Ga,function g5)
call TriggerSleepAction(8.)
call ForGroup(GA,function g8)
call ForGroup(Ga,function g7)
call TriggerSleepAction(.05)
call ForGroup(GA,function g5)
call DestroyGroup(Ga)
call DestroyGroup(GA)
set Ga=null
set GA=null
endfunction
function Gb takes nothing returns nothing
set bj_delayedSuspendDecayTrig=CreateTrigger()
call TriggerRegisterTimerExpireEvent(bj_delayedSuspendDecayTrig,bj_delayedSuspendDecayTimer)
call TriggerAddAction(bj_delayedSuspendDecayTrig,function g9)
endfunction
function GC takes boolean Gd returns nothing
local integer gZ
local player GD
local group g
set bj_pauseAllUnitsFlag=Gd
set g=CreateGroup()
set gZ=0
loop
set GD=Player(gZ)
if(GetPlayerController(GD)==MAP_CONTROL_COMPUTER)then
call PauseCompAI(GD,Gd)
endif
call GroupEnumUnitsOfPlayer(g,GD,null)
call ForGroup(g,function PauseAllUnitsBJEnum)
call GroupClear(g)
set gZ=gZ+1
exitwhen gZ==16
endloop
call DestroyGroup(g)
set g=null
endfunction
function Ge takes unit GE,integer Gf,integer GF returns unit
local unit Gg
local boolean GG
local integer gZ
local item g0
local real Gh
if(GE==null)then
set bj_lastReplacedUnit=null
return null
endif
set GG=IsUnitHidden(GE)
call ShowUnit(GE,false)
if(Gf=='ugol')then
set Gg=CreateBlightedGoldmine(GetOwningPlayer(GE),GetUnitX(GE),GetUnitY(GE),GetUnitFacing(GE))
else
set Gg=CreateUnit(GetOwningPlayer(GE),Gf,GetUnitX(GE),GetUnitY(GE),GetUnitFacing(GE))
endif
if(GF==1)then
if(GetUnitState(GE,UNIT_STATE_MAX_LIFE)>0)then
set Gh=GetUnitState(GE,UNIT_STATE_LIFE)/GetUnitState(GE,UNIT_STATE_MAX_LIFE)
call SetUnitState(Gg,UNIT_STATE_LIFE,Gh*GetUnitState(Gg,UNIT_STATE_MAX_LIFE))
endif
if(GetUnitState(GE,UNIT_STATE_MAX_MANA)>0)and(GetUnitState(Gg,UNIT_STATE_MAX_MANA)>0)then
set Gh=GetUnitState(GE,UNIT_STATE_MANA)/GetUnitState(GE,UNIT_STATE_MAX_MANA)
call SetUnitState(Gg,UNIT_STATE_MANA,Gh*GetUnitState(Gg,UNIT_STATE_MAX_MANA))
endif
elseif(GF==0)then
call SetUnitState(Gg,UNIT_STATE_LIFE,GetUnitState(GE,UNIT_STATE_LIFE))
if(GetUnitState(Gg,UNIT_STATE_MAX_MANA)>0)then
call SetUnitState(Gg,UNIT_STATE_MANA,GetUnitState(GE,UNIT_STATE_MANA))
endif
elseif(GF==2)then
elseif(GF==3)then
call SetUnitState(Gg,UNIT_STATE_LIFE,GetUnitState(Gg,UNIT_STATE_MAX_LIFE))
call SetUnitState(Gg,UNIT_STATE_MANA,GetUnitState(Gg,UNIT_STATE_MAX_MANA))
endif
call SetResourceAmount(Gg,GetResourceAmount(GE))
if(IsUnitType(GE,UNIT_TYPE_HERO)and IsUnitType(Gg,UNIT_TYPE_HERO))then
call SetHeroXP(Gg,GetHeroXP(GE),false)
set gZ=0
loop
set g0=UnitItemInSlot(GE,gZ)
if(g0!=null)then
call UnitRemoveItem(GE,g0)
call UnitAddItem(Gg,g0)
endif
set gZ=gZ+1
exitwhen gZ>=6
endloop
endif
if GG then
call KillUnit(GE)
call RemoveUnit(GE)
else
call RemoveUnit(GE)
endif
set bj_lastReplacedUnit=Gg
set Gg=null
set g0=null
return bj_lastReplacedUnit
endfunction
function GH takes nothing returns boolean
local location Gi=GetDestructableLoc(GetFilterDestructable())
local boolean GI
set GI=(DistanceBetweenPoints(Gi,bj_enumDestructableCenter)<=bj_enumDestructableRadius)
call RemoveLocation(Gi)
set Gi=null
return GI
endfunction
function GQ takes rect r,boolexpr Gr returns group
local group g=CreateGroup()
call GroupEnumUnitsInRect(g,r,Gr)
call DestroyBoolExpr(Gr)
set gU=g
set g=null
return gU
endfunction
function GR takes rect r returns group
return GQ(r,null)
endfunction
function Gs takes rect r,player Gc returns group
local group g=CreateGroup()
set bj_groupEnumOwningPlayer=Gc
call GroupEnumUnitsInRect(g,r,filterGetUnitsInRectOfPlayer)
set gU=g
set g=null
return gU
endfunction
function GS takes real Gt,location GT,boolexpr Gr returns group
local group g=CreateGroup()
call GroupEnumUnitsInRangeOfLoc(g,GT,Gt,Gr)
call DestroyBoolExpr(Gr)
set gU=g
set g=null
return gU
endfunction
function Gu takes real Gt,location GT returns group
return GS(Gt,GT,null)
endfunction
function GU takes integer Gv returns group
local group g=CreateGroup()
call GroupEnumUnitsOfType(g,UnitId2String(Gv),null)
set gU=g
set g=null
return gU
endfunction
function GV takes player Gc,boolexpr Gr returns group
local group g=CreateGroup()
call GroupEnumUnitsOfPlayer(g,Gc,Gr)
call DestroyBoolExpr(Gr)
set gU=g
set g=null
return gU
endfunction
function Gw takes player Gc returns group
return GV(Gc,null)
endfunction
function GW takes player Gc,integer Gv returns group
local group g=CreateGroup()
set bj_groupEnumTypeId=Gv
call GroupEnumUnitsOfPlayer(g,Gc,filterGetUnitsOfPlayerAndTypeId)
set gU=g
set g=null
return gU
endfunction
function Gx takes player Gc returns force
local force f=CreateForce()
call ForceAddPlayer(f,Gc)
set gU=f
set f=null
return gU
endfunction
function GX takes mapcontrol Gy returns force
local force f=CreateForce()
local integer GY
local player GD
set GY=0
loop
set GD=Player(GY)
if GetPlayerController(GD)==Gy then
call ForceAddPlayer(f,GD)
endif
set GY=GY+1
exitwhen GY==16
endloop
set GD=null
set gU=f
set f=null
return gU
endfunction
function Gz takes boolexpr Gr returns force
local force f=CreateForce()
call ForceEnumPlayers(f,Gr)
call DestroyBoolExpr(Gr)
set gU=f
set f=null
return gU
endfunction
function GZ takes integer G0,group G1 returns group
set bj_randomSubGroupGroup=CreateGroup()
set bj_randomSubGroupWant=G0
set bj_randomSubGroupTotal=CountUnitsInGroup(G1)
if(bj_randomSubGroupWant<=0 or bj_randomSubGroupTotal<=0)then
return bj_randomSubGroupGroup
endif
set bj_randomSubGroupChance=I2R(bj_randomSubGroupWant)/I2R(bj_randomSubGroupTotal)
call ForGroup(G1,function GetRandomSubGroupEnum)
return bj_randomSubGroupGroup
endfunction
function G2 takes nothing returns boolean
local unit G3=GetFilterUnit()
local boolean b=((GetWidgetLife(G3)>0)and(GetUnitTypeId(G3)==bj_livingPlayerUnitsTypeId))
if(b)then
set bj_groupCountUnits=bj_groupCountUnits+1
endif
set G3=null
return b
endfunction
function G4 takes integer G5,player Gc returns integer
local group g=CreateGroup()
set bj_livingPlayerUnitsTypeId=G5
set bj_groupCountUnits=0
call GroupEnumUnitsOfPlayer(g,Gc,filterLivingPlayerUnitsOfTypeId)
call DestroyGroup(g)
set g=null
return bj_groupCountUnits
endfunction
function G6 takes unit gY,location G7,real gV returns nothing
local location G8=GetUnitLoc(gY)
call SetUnitFacingTimed(gY,AngleBetweenPoints(G8,G7),gV)
call RemoveLocation(G8)
set G8=null
endfunction
function G9 takes unit gY,unit G7,real gV returns nothing
local location G8=GetUnitLoc(G7)
call G6(gY,G8,gV)
call RemoveLocation(G8)
set G8=null
endfunction
function hb takes leaderboard lb,force hB returns nothing
local integer gZ
local player GD
set gZ=0
loop
set GD=Player(gZ)
if IsPlayerInForce(GD,hB)then
call PlayerSetLeaderboard(GD,lb)
endif
set gZ=gZ+1
exitwhen gZ==12
endloop
set GD=null
endfunction
function hc takes force hB,string hC returns leaderboard
set bj_lastCreatedLeaderboard=CreateLeaderboard()
call LeaderboardSetLabel(bj_lastCreatedLeaderboard,hC)
call hb(bj_lastCreatedLeaderboard,hB)
call LeaderboardDisplay(bj_lastCreatedLeaderboard,true)
return bj_lastCreatedLeaderboard
endfunction
function hd takes nothing returns nothing
local unit hD=GetTriggerUnit()
if IsUnitType(hD,UNIT_TYPE_STRUCTURE)then
call RescueUnitBJ(hD,GetOwningPlayer(GetRescuer()),bj_rescueChangeColorBldg)
else
call RescueUnitBJ(hD,GetOwningPlayer(GetRescuer()),bj_rescueChangeColorUnit)
endif
set hD=null
endfunction
function he takes nothing returns nothing
local integer gZ
if(bj_rescueUnitBehavior==null)then
set bj_rescueUnitBehavior=CreateTrigger()
set gZ=0
loop
call TriggerRegisterPlayerUnitEvent(bj_rescueUnitBehavior,Player(gZ),EVENT_PLAYER_UNIT_RESCUED,null)
set gZ=gZ+1
exitwhen gZ==16
endloop
call TriggerAddAction(bj_rescueUnitBehavior,function hd)
endif
endfunction
function hf takes nothing returns nothing
local integer gZ
set gZ=0
loop
if(GetPlayerController(Player(gZ))==MAP_CONTROL_RESCUABLE)then
call he()
return
endif
set gZ=gZ+1
exitwhen gZ==12
endloop
endfunction
function hI takes itemtype hj,integer hJ returns nothing
local group g
set bj_stockPickedItemType=hj
set bj_stockPickedItemLevel=hJ
set g=CreateGroup()
call GroupEnumUnitsOfType(g,"marketplace",null)
call ForGroup(g,function UpdateEachStockBuildingEnum)
call DestroyGroup(g)
set g=null
endfunction
function hk takes nothing returns nothing
local integer pickedItemId
local itemtype hK
local integer hl=0
local integer hL=0
local integer hJ
set hJ=1
loop
if(bj_stockAllowedPermanent[hJ])then
set hL=hL+1
if(GetRandomInt(1,hL)==1)then
set hK=ITEM_TYPE_PERMANENT
set hl=hJ
endif
endif
if(bj_stockAllowedCharged[hJ])then
set hL=hL+1
if(GetRandomInt(1,hL)==1)then
set hK=ITEM_TYPE_CHARGED
set hl=hJ
endif
endif
if(bj_stockAllowedArtifact[hJ])then
set hL=hL+1
if(GetRandomInt(1,hL)==1)then
set hK=ITEM_TYPE_ARTIFACT
set hl=hJ
endif
endif
set hJ=hJ+1
exitwhen hJ>10
endloop
if(hL==0)then
set hK=null
return
endif
call hI(hK,hl)
set hK=null
endfunction
function hm takes nothing returns nothing
call hk()
call TimerStart(bj_stockUpdateTimer,bj_STOCK_RESTOCK_INTERVAL,true,function hk)
endfunction
function hM takes nothing returns nothing
call CreateQuestBJ(0,"Credits","TRIGSTR_1227","ReplaceableTextures\\CommandButtons\\BTNSorceressMaster.blp")
call CreateQuestBJ(0,"Changes","TRIGSTR_1239","ReplaceableTextures\\CommandButtons\\BTNSorceressMaster.blp")
call CreateQuestBJ(2,"Spiderling","|cffffcc00v1.39 New|r","ReplaceableTextures\\WorldEditUI\\Editor-MultipleUnits.blp")
call CreateQuestBJ(2,"Chief's showdown!","|cffffcc00v1.37 New|r","ReplaceableTextures\\WorldEditUI\\Editor-MultipleUnits.blp")
call CreateQuestBJ(2,"Boulder Rampage","|cffffcc00v1.35 New|r","ReplaceableTextures\\WorldEditUI\\Editor-MultipleUnits.blp")
call CreateQuestBJ(2,"Stampede","|cffffcc00v1.29 New|r","ReplaceableTextures\\WorldEditUI\\Editor-MultipleUnits.blp")
call CreateQuestBJ(2,"Protectors","|cffffcc00v1.29 New|r","ReplaceableTextures\\WorldEditUI\\Editor-MultipleUnits.blp")
call CreateQuestBJ(2,"TimeStopper","|cffffcc00v1.25 New|r","ReplaceableTextures\\WorldEditUI\\Editor-MultipleUnits.blp")
call CreateQuestBJ(2,"Racing","|cffffcc00v1.24 New|r","ReplaceableTextures\\WorldEditUI\\Editor-MultipleUnits.blp")
call CreateQuestBJ(2,"Ninja","|cffffcc00v1.24 New|r","ReplaceableTextures\\WorldEditUI\\Editor-MultipleUnits.blp")
call CreateQuestBJ(2,"Trap Tower","|cffffcc00v1.23 New|r","ReplaceableTextures\\WorldEditUI\\Editor-MultipleUnits.blp")
call CreateQuestBJ(2,"Dancing mummies","TRIGSTR_1128","ReplaceableTextures\\CommandButtons\\BTNScrollOfHaste.blp")
call CreateQuestBJ(2,"Sleeping mummies","TRIGSTR_1126","ReplaceableTextures\\CommandButtons\\BTNSleep.blp")
call CreateQuestBJ(2,"Team Survival"," |cffffcc00v1.18 (New)|r","ReplaceableTextures\\CommandButtons\\BTNSteelMelee.blp")
call CreateQuestBJ(2,"Boulder Dash"," |cffffcc00v1.17 (New)|r","ReplaceableTextures\\CommandButtons\\BTNGolemStormBolt.blp")
call CreateQuestBJ(2,"Ice Core","TRIGSTR_236","ReplaceableTextures\\CommandButtons\\BTNBreathOfFrost.blp")
call CreateQuestBJ(2,"Stop N' Go","TRIGSTR_206","ReplaceableTextures\\CommandButtons\\BTNIceCrownObelisk.blp")
call CreateQuestBJ(2,"Halls of the Dead"," |cffffcc00v1.14 (New)|r","ReplaceableTextures\\CommandButtons\\BTNDalaranMutant.blp")
call CreateQuestBJ(2,"Quicksand Pit","TRIGSTR_038","ReplaceableTextures\\CommandButtons\\BTNEarthquake.blp")
call CreateQuestBJ(2,"Undead Siege","TRIGSTR_036","ReplaceableTextures\\CommandButtons\\BTNMassTeleport.blp")
call CreateQuestBJ(2,"Chamber of Fire","TRIGSTR_875","ReplaceableTextures\\CommandButtons\\BTNWallOfFire.blp")
call CreateQuestBJ(2,"Tome Battle","TRIGSTR_632","ReplaceableTextures\\CommandButtons\\BTNTome.tga")
call CreateQuestBJ(2,"Crypt Plunder","TRIGSTR_610","ReplaceableTextures\\CommandButtons\\BTNChestOfGold.tga")
call CreateQuestBJ(2,"Blade Labyrinth","TRIGSTR_579","ReplaceableTextures\\CommandButtons\\BTNUpgradeMoonGlaive.tga")
call CreateQuestBJ(2,"Magic Defence","TRIGSTR_521","ReplaceableTextures\\CommandButtons\\BTNObsidianStatue.tga")
call CreateQuestBJ(2,"Skeleton's Curse","TRIGSTR_511","ReplaceableTextures\\CommandButtons\\BTNSkeletalOrc.tga")
call CreateQuestBJ(2,"Quiz of Death","TRIGSTR_509","ReplaceableTextures\\CommandButtons\\BTNLichVersion2.tga")
call CreateQuestBJ(2,"Ghost Path","TRIGSTR_507","ReplaceableTextures\\CommandButtons\\BTNVoidWalker.tga")
call CreateQuestBJ(2,"Beetle Rampage","TRIGSTR_497","ReplaceableTextures\\CommandButtons\\BTNHeroCryptLord.tga")
call CreateQuestBJ(2,"Tower Defence","TRIGSTR_487","ReplaceableTextures\\CommandButtons\\BTNGuardTower.tga")
call CreateQuestBJ(2,"Bridge of Flame","TRIGSTR_485","ReplaceableTextures\\CommandButtons\\BTNFireForTheCannon.blp")
call CreateQuestBJ(2,"Spike Traps","TRIGSTR_478","ReplaceableTextures\\CommandButtons\\BTNQuillSprayOff.blp")
endfunction
function hn takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h00L')and(IsUnitAlly(GetAttacker(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function hN takes nothing returns nothing
if(hn())then
call IssueImmediateOrderById(GetAttacker(),851972)
endif
endfunction
function ho takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h00Y')and(IsUnitAlly(GetAttacker(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function hO takes nothing returns nothing
if(ho())then
call IssueImmediateOrderById(GetAttacker(),851972)
endif
endfunction
function hp takes nothing returns boolean
return(GetPlayerController(GetFilterPlayer())==MAP_CONTROL_USER)
endfunction
function hP takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function hq takes nothing returns boolean
return GetBooleanAnd(hp(),hP())
endfunction
function hQ takes nothing returns boolean
return(GetPlayerSlotState(Player(-1+(V[1])))==PLAYER_SLOT_STATE_LEFT)
endfunction
function hr takes nothing returns nothing
set k=Gz(Condition(function hq))
set V[1]=1
loop
exitwhen V[1]>10
if(hQ())then
call ExplodeUnitBJ(e[V[1]])
endif
set V[1]=V[1]+1
endloop
endfunction
function hR takes nothing returns boolean
return(W==1)
endfunction
function hs takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(e[(1+GetPlayerId(GetEnumPlayer()))]),"Abilities\\Spells\\Items\\AIil\\AIilTarget.mdl")
call SetUnitInvulnerable(e[(1+GetPlayerId(GetEnumPlayer()))],true)
call PauseUnit(e[(1+GetPlayerId(GetEnumPlayer()))],true)
endfunction
function hS takes nothing returns nothing
if(hR())then
call TriggerExecute(c0)
return
endif
call PlaySoundBJ(cg)
call TriggerExecute(cz)
call PlaySoundBJ(cO)
call ForForce(k,function hs)
call gv(.2)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call RemoveUnit(e[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call gv(.5)
call StopMusic(true)
call CinematicFadeBJ(1,1.5,"ReplaceableTextures\\CameraMasks\\Black_mask.blp",0,0,0,0)
call gv(1.)
set W=0
call TriggerExecute(c7)
endfunction
function ht takes nothing returns boolean
return(IsTriggerEnabled(GetTriggeringTrigger())==false)
endfunction
function hT takes nothing returns nothing
call SetPlayerStateBJ(GetEnumPlayer(),PLAYER_STATE_RESOURCE_FOOD_USED,6)
endfunction
function hu takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(e[(1+GetPlayerId(GetEnumPlayer()))]),"Abilities\\Spells\\Undead\\AnimateDead\\AnimateDeadTarget.mdl")
call SetUnitInvulnerable(e[(1+GetPlayerId(GetEnumPlayer()))],true)
call PauseUnit(e[(1+GetPlayerId(GetEnumPlayer()))],true)
endfunction
function hU takes nothing returns nothing
if(ht())then
call TriggerExecute(c1)
return
endif
call DisableTrigger(GetTriggeringTrigger())
call StopMusic(true)
call PlaySoundBJ(cF)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"TRIGSTR_480",1,10.,false)
call ForForce(k,function hT)
call CinematicFadeBJ(1,5.,"ReplaceableTextures\\CameraMasks\\Black_mask.blp",0,0,0,0)
call TriggerExecute(cz)
call ForForce(k,function hu)
call gv(.3)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call RemoveUnit(e[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call gv(4.7)
set W=0
call TriggerExecute(c7)
endfunction
function hv takes nothing returns boolean
return(IsTriggerEnabled(GetTriggeringTrigger())==false)
endfunction
function hV takes nothing returns nothing
call SetPlayerStateBJ(GetEnumPlayer(),PLAYER_STATE_RESOURCE_FOOD_USED,5)
endfunction
function hw takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(e[(1+GetPlayerId(GetEnumPlayer()))]),"Abilities\\Spells\\Undead\\AnimateDead\\AnimateDeadTarget.mdl")
call SetUnitInvulnerable(e[(1+GetPlayerId(GetEnumPlayer()))],true)
call PauseUnit(e[(1+GetPlayerId(GetEnumPlayer()))],true)
endfunction
function hW takes nothing returns nothing
if(hv())then
call TriggerExecute(c2)
return
endif
call DisableTrigger(GetTriggeringTrigger())
call StopMusic(true)
call PlaySoundBJ(cF)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"TRIGSTR_102",1,10.,false)
call ForForce(k,function hV)
call CinematicFadeBJ(1,5.,"ReplaceableTextures\\CameraMasks\\Black_mask.blp",0,0,0,0)
call TriggerExecute(cz)
call ForForce(k,function hw)
call gv(.3)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call RemoveUnit(e[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call gv(4.7)
set W=0
call TriggerExecute(c7)
endfunction
function hx takes nothing returns boolean
return(IsTriggerEnabled(GetTriggeringTrigger())==false)
endfunction
function hX takes nothing returns nothing
call SetPlayerStateBJ(GetEnumPlayer(),PLAYER_STATE_RESOURCE_FOOD_USED,4)
endfunction
function hy takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(e[(1+GetPlayerId(GetEnumPlayer()))]),"Abilities\\Spells\\Undead\\AnimateDead\\AnimateDeadTarget.mdl")
call SetUnitInvulnerable(e[(1+GetPlayerId(GetEnumPlayer()))],true)
call PauseUnit(e[(1+GetPlayerId(GetEnumPlayer()))],true)
endfunction
function hY takes nothing returns nothing
if(hx())then
call TriggerExecute(c3)
return
endif
call DisableTrigger(GetTriggeringTrigger())
call StopMusic(true)
call PlaySoundBJ(cF)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"TRIGSTR_620",1,10.,false)
call ForForce(k,function hX)
call CinematicFadeBJ(1,5.,"ReplaceableTextures\\CameraMasks\\Black_mask.blp",0,0,0,0)
call TriggerExecute(cz)
call ForForce(k,function hy)
call gv(.3)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call RemoveUnit(e[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call gv(4.7)
set W=0
call TriggerExecute(c7)
endfunction
function hz takes nothing returns boolean
return(IsTriggerEnabled(GetTriggeringTrigger())==false)
endfunction
function hZ takes nothing returns nothing
call SetPlayerStateBJ(GetEnumPlayer(),PLAYER_STATE_RESOURCE_FOOD_USED,3)
endfunction
function h0 takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(e[(1+GetPlayerId(GetEnumPlayer()))]),"Abilities\\Spells\\Undead\\AnimateDead\\AnimateDeadTarget.mdl")
call SetUnitInvulnerable(e[(1+GetPlayerId(GetEnumPlayer()))],true)
call PauseUnit(e[(1+GetPlayerId(GetEnumPlayer()))],true)
endfunction
function h1 takes nothing returns nothing
if(hz())then
call TriggerExecute(c4)
return
endif
call DisableTrigger(GetTriggeringTrigger())
call StopMusic(true)
call PlaySoundBJ(cF)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"TRIGSTR_238",1,10.,false)
call ForForce(k,function hZ)
call CinematicFadeBJ(1,5.,"ReplaceableTextures\\CameraMasks\\Black_mask.blp",0,0,0,0)
call TriggerExecute(cz)
call ForForce(k,function h0)
call gv(.3)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call RemoveUnit(e[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call gv(4.7)
set W=0
call TriggerExecute(c7)
endfunction
function h2 takes nothing returns boolean
return(IsTriggerEnabled(GetTriggeringTrigger())==false)
endfunction
function h3 takes nothing returns nothing
call SetPlayerStateBJ(GetEnumPlayer(),PLAYER_STATE_RESOURCE_FOOD_USED,2)
endfunction
function h4 takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(e[(1+GetPlayerId(GetEnumPlayer()))]),"Abilities\\Spells\\Undead\\AnimateDead\\AnimateDeadTarget.mdl")
call SetUnitInvulnerable(e[(1+GetPlayerId(GetEnumPlayer()))],true)
call PauseUnit(e[(1+GetPlayerId(GetEnumPlayer()))],true)
endfunction
function h5 takes nothing returns nothing
if(h2())then
call TriggerExecute(c5)
return
endif
call DisableTrigger(GetTriggeringTrigger())
call StopMusic(true)
call PlaySoundBJ(cF)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"TRIGSTR_1228",1,10.,false)
call ForForce(k,function h3)
call CinematicFadeBJ(1,5.,"ReplaceableTextures\\CameraMasks\\Black_mask.blp",0,0,0,0)
call TriggerExecute(cz)
call ForForce(k,function h4)
call gv(.3)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call RemoveUnit(e[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call gv(4.7)
set W=0
call TriggerExecute(c7)
endfunction
function h6 takes nothing returns boolean
return(IsTriggerEnabled(GetTriggeringTrigger())==false)
endfunction
function h7 takes nothing returns nothing
call SetPlayerStateBJ(GetEnumPlayer(),PLAYER_STATE_RESOURCE_FOOD_USED,1)
endfunction
function h8 takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(e[(1+GetPlayerId(GetEnumPlayer()))]),"Abilities\\Spells\\Undead\\AnimateDead\\AnimateDeadTarget.mdl")
call SetUnitInvulnerable(e[(1+GetPlayerId(GetEnumPlayer()))],true)
call PauseUnit(e[(1+GetPlayerId(GetEnumPlayer()))],true)
endfunction
function h9 takes nothing returns nothing
if(h6())then
call TriggerExecute(c6)
return
endif
call DisableTrigger(GetTriggeringTrigger())
call StopMusic(true)
call PlaySoundBJ(cF)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"TRIGSTR_1269",1,10.,false)
call ForForce(k,function h7)
call CinematicFadeBJ(1,5.,"ReplaceableTextures\\CameraMasks\\Black_mask.blp",0,0,0,0)
call TriggerExecute(cz)
call ForForce(k,function h8)
call gv(.3)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call RemoveUnit(e[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call gv(4.7)
set W=0
call TriggerExecute(c7)
endfunction
function Ha takes nothing returns nothing
call SetPlayerStateBJ(GetEnumPlayer(),PLAYER_STATE_RESOURCE_FOOD_USED,0)
endfunction
function HA takes nothing returns nothing
call StopMusic(true)
call PlaySoundBJ(cF)
call PlaySoundBJ(cJ)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"|cffff6600You have failed to escape the pyramid|r",1,10.,false)
call ForForce(k,function Ha)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,(("|cff229966 "+I2S(h))+" out of 28 challenges played|r"),1,20.,false)
call CinematicFadeBJ(1,5.,"ReplaceableTextures\\CameraMasks\\Black_mask.blp",0,0,0,0)
endfunction
function Hb takes nothing returns nothing
call SetPlayerStateBJ(GetEnumPlayer(),PLAYER_STATE_RESOURCE_FOOD_CAP,aC)
endfunction
function HB takes nothing returns boolean
return(G[h]==0)
endfunction
function Hc takes nothing returns boolean
return(G[h]==1)
endfunction
function HC takes nothing returns boolean
return(G[h]==2)
endfunction
function Hd takes nothing returns boolean
return(G[h]==3)
endfunction
function HD takes nothing returns boolean
return(G[h]==4)
endfunction
function He takes nothing returns boolean
return(G[h]==5)
endfunction
function HE takes nothing returns boolean
return(G[h]==6)
endfunction
function Hf takes nothing returns boolean
return(G[h]==7)
endfunction
function HF takes nothing returns boolean
return(G[h]==8)
endfunction
function Hg takes nothing returns boolean
return(G[h]==9)
endfunction
function HG takes nothing returns boolean
return(G[h]==10)
endfunction
function Hh takes nothing returns boolean
return(G[h]==11)
endfunction
function HH takes nothing returns boolean
return(G[h]==12)
endfunction
function Hi takes nothing returns boolean
return(G[h]==13)
endfunction
function HI takes nothing returns boolean
return(G[h]==14)
endfunction
function Hj takes nothing returns boolean
return(G[h]==15)
endfunction
function HJ takes nothing returns boolean
return(G[h]==16)
endfunction
function Hk takes nothing returns boolean
return(G[h]==17)
endfunction
function HK takes nothing returns boolean
return(G[h]==18)
endfunction
function Hl takes nothing returns boolean
return(G[h]==19)
endfunction
function HL takes nothing returns boolean
return(G[h]==20)
endfunction
function Hm takes nothing returns boolean
return(G[h]==21)
endfunction
function HM takes nothing returns boolean
return(G[h]==22)
endfunction
function Hn takes nothing returns boolean
return(G[h]==23)
endfunction
function HN takes nothing returns boolean
return(G[h]==24)
endfunction
function Ho takes nothing returns boolean
return(G[h]==25)
endfunction
function HO takes nothing returns boolean
return(G[h]==26)
endfunction
function Hp takes nothing returns boolean
return(G[h]==27)
endfunction
function HP takes nothing returns boolean
return(G[h]==28)
endfunction
function Hq takes nothing returns boolean
return(G[h]==29)
endfunction
function HQ takes nothing returns boolean
return(G[h]==30)
endfunction
function Hr takes nothing returns nothing
call CreateNUnitsAtLoc(1,F,GetEnumPlayer(),GetRandomLocInRect(E),GetRandomReal(0,360))
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),GetUnitLoc(bj_lastCreatedUnit),.0)
set e[(1+GetPlayerId(GetEnumPlayer()))]=bj_lastCreatedUnit
call AddSpecialEffectLocBJ(GetUnitLoc(bj_lastCreatedUnit),"Abilities\\Spells\\Items\\AIil\\AIilTarget.mdl")
endfunction
function HR takes nothing returns nothing
set h=(h+1)
set aC=(aC-1)
call ForForce(k,function Hb)
if(HB())then
call TriggerExecute(CF)
endif
if(Hc())then
call TriggerExecute(CN)
endif
if(HC())then
call TriggerExecute(Cq)
endif
if(Hd())then
call TriggerExecute(CU)
endif
if(HD())then
call TriggerExecute(dc)
endif
if(He())then
call TriggerExecute(de)
endif
if(HE())then
call TriggerExecute(dm)
endif
if(Hf())then
call TriggerExecute(dT)
endif
if(HF())then
call TriggerExecute(dW)
endif
if(Hg())then
call TriggerExecute(d6)
endif
if(HG())then
call TriggerExecute(Dd)
endif
if(Hh())then
call TriggerExecute(Dg)
endif
if(HH())then
call TriggerExecute(DJ)
endif
if(Hi())then
call TriggerExecute(DL)
endif
if(HI())then
call TriggerExecute(Dp)
endif
if(Hj())then
call TriggerExecute(Dv)
endif
if(HJ())then
call TriggerExecute(DY)
endif
if(Hk())then
call TriggerExecute(D2)
endif
if(HK())then
call TriggerExecute(D9)
endif
if(Hl())then
call TriggerExecute(eC)
endif
if(HL())then
call TriggerExecute(eF)
endif
if(Hm())then
call TriggerExecute(ej)
endif
if(HM())then
call TriggerExecute(eL)
endif
if(Hn())then
call TriggerExecute(eN)
endif
if(HN())then
call TriggerExecute(eq)
endif
if(Ho())then
call TriggerExecute(es)
endif
if(HO())then
call TriggerExecute(ev)
endif
if(Hp())then
call TriggerExecute(ey)
endif
if(HP())then
call TriggerExecute(e2)
endif
if(Hq())then
call TriggerExecute(e9)
endif
if(HQ())then
call TriggerExecute(Ed)
endif
call gv(1.2)
call TriggerExecute(cz)
call ForForce(k,function Hr)
call CinematicFadeBJ(0,.8,"ReplaceableTextures\\CameraMasks\\Black_mask.blp",0,0,0,0)
endfunction
function Hs takes nothing returns nothing
call SetCameraFieldForPlayer(GetTriggerPlayer(),CAMERA_FIELD_FIELD_OF_VIEW,105.,.8)
endfunction
function HS takes nothing returns nothing
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_VISIBLE,B8)
endfunction
function Ht takes nothing returns nothing
call DestructableRestoreLife(GetDyingDestructable(),GetDestructableMaxLife(bj_lastCreatedDestructable),true)
endfunction
function HT takes nothing returns nothing
call CustomVictoryBJ(GetEnumPlayer(),true,true)
endfunction
function Hu takes nothing returns nothing
call DisableTrigger(Ch)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"TRIGSTR_1169")
call TriggerSleepAction(30.)
call ForForce(bj_FORCE_ALL_PLAYERS,function HT)
endfunction
function HU takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("overhead",Fz,"Abilities\\Spells\\NightElf\\Blink\\BlinkTarget.mdl")
call TriggerSleepAction(.2)
call AddSpecialEffectTargetUnitBJ("overhead",Fz,"Abilities\\Spells\\NightElf\\Blink\\BlinkCaster.mdl")
call SetUnitPositionLoc(Fz,GetRandomLocInRect(Bd))
call TriggerSleepAction(.1)
call AddSpecialEffectTargetUnitBJ("overhead",Fz,"Abilities\\Spells\\NightElf\\BattleRoar\\RoarCaster.mdl")
endfunction
function Hv takes nothing returns nothing
call SetPlayerAllianceBJ(Player(14),ALLIANCE_SHARED_VISION,true,GetEnumPlayer())
endfunction
function HV takes nothing returns nothing
call SetCameraBoundsToRectForPlayerBJ(GetEnumPlayer(),bX)
endfunction
function Hw takes nothing returns nothing
call CameraSetupApplyForPlayer(true,cd,GetEnumPlayer(),0)
endfunction
function HW takes nothing returns nothing
call SetUnitInvulnerable(GetEnumUnit(),true)
endfunction
function Hx takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h01C',GetEnumPlayer(),GetRandomLocInRect(bx),GetRandomReal(0,360))
set e[(1+GetPlayerId(GetEnumPlayer()))]=bj_lastCreatedUnit
endfunction
function HX takes nothing returns nothing
call ResetToGameCameraForPlayer(GetEnumPlayer(),12.)
endfunction
function Hy takes nothing returns nothing
call ResetToGameCameraForPlayer(GetEnumPlayer(),12.)
endfunction
function HY takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),GetRectCenter(bx),0)
endfunction
function Hz takes nothing returns nothing
call SetPlayerStateBJ(GetEnumPlayer(),PLAYER_STATE_RESOURCE_FOOD_USED,7)
endfunction
function HZ takes nothing returns nothing
call UseTimeOfDayBJ(false)
set af=false
set aE=false
set J=30
set j[1]=Eo
set j[2]=EO
set j[3]=Ep
set j[4]=EP
set j[5]=Er
set j[6]=EL
set j[7]=EI
set j[8]=Eu
set j[9]=fa
set j[10]=Ev
set j[11]=fw
set j[12]=fX
set j[13]=Fa
set j[14]=Fh
set j[15]=FH
set j[16]=FK
set j[17]=FM
set j[18]=FF
set j[19]=Fn
set j[20]=Fs
set j[21]=FS
set j[22]=Fp
set j[23]=FQ
set j[24]=Fr
set j[25]=Ft
set j[26]=F0
set j[27]=F3
set j[28]=FY
set j[29]=F8
set j[30]=F9
call SetAmbientDaySound("DungeonDay")
call SetAmbientNightSound("DungeonNight")
call ForceCinematicSubtitles(true)
set G[(J+1)]=0
call SetUnitOwner(F4,Player(15),true)
call SetUnitOwner(F5,Player(15),true)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=J
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitUserData(j[bj_forLoopAIndex],bj_forLoopAIndex)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForForce(bj_FORCE_ALL_PLAYERS,function Hv)
call SetPlayerAllianceStateBJ(Player(11),Player(10),0)
call ForForce(bj_FORCE_ALL_PLAYERS,function HV)
call ForForce(bj_FORCE_ALL_PLAYERS,function Hw)
call ForGroupBJ(GR(aQ),function HW)
call SetUnitColor(Ek,PLAYER_COLOR_ORANGE)
call SetUnitColor(Ei,PLAYER_COLOR_GREEN)
call SetUnitColor(El,PLAYER_COLOR_BLUE)
call SetUnitPositionLocFacingBJ(f8,GetUnitLoc(Eg),bj_UNIT_FACING)
call SetUnitPositionLoc(fH,GetUnitLoc(E0))
call SetUnitPositionLoc(fh,GetUnitLoc(E3))
call IssuePointOrderByIdLoc(fH,851990,GetUnitLoc(fK))
call IssuePointOrderByIdLoc(fh,851990,GetUnitLoc(fK))
call SetUnitTimeScalePercent(fs,20.)
call SetUnitTimeScalePercent(fH,20.)
call SetUnitOwner(Fk,Player(14),false)
call SetTimeOfDay(5.)
call StopMusic(false)
call gv(.1)
call StopMusic(true)
call PlaySoundBJ(cK)
call gv(1.)
call SetTerrainFogExBJ(0,1400.,4000.,0,.0,12.,20.)
call CinematicFadeBJ(0,10.,"ReplaceableTextures\\CameraMasks\\Black_mask.blp",0,0,0,0)
call VolumeGroupSetVolumeBJ(SOUND_VOLUMEGROUP_SPELLS,.0)
call VolumeGroupSetVolumeBJ(SOUND_VOLUMEGROUP_AMBIENTSOUNDS,100.)
call VolumeGroupSetVolumeBJ(SOUND_VOLUMEGROUP_UNITSOUNDS,90.)
call TriggerExecute(cz)
call ForForce(k,function Hx)
call ForForce(bj_FORCE_ALL_PLAYERS,function HX)
call gv(2.)
call VolumeGroupSetVolumeBJ(SOUND_VOLUMEGROUP_SPELLS,'d')
call ForForce(bj_FORCE_ALL_PLAYERS,function Hy)
call ForForce(bj_FORCE_ALL_PLAYERS,function HY)
call ForForce(k,function Hz)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"|cff00ff00Explorer Chief|r: Lets move into this pyramid! There should be many treasures hidden there!")
call EnableTrigger(CI)
call gv(10.)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,40.,"|cff00ff00Explorer Chief|r: Hey theres a Rock Engraved with words on it, it says that the door is unbreakable and theres a trick somewhere...")
endfunction
function H0 takes nothing returns nothing
call PlaySoundBJ(cW)
call TriggerSleepAction(2)
call PlaySoundBJ(cx)
endfunction
function H1 takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),GetRandomLocInRect(Aw))
endfunction
function H2 takes nothing returns nothing
call SetCameraBoundsToRectForPlayerBJ(GetEnumPlayer(),ap)
endfunction
function H3 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function H4 takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),GetRandomLocInRect(Aw))
endfunction
function H5 takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),GetRandomLocInRect(Aw))
endfunction
function H6 takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),GetRandomLocInRect(Aw))
endfunction
function H7 takes nothing returns nothing
call ResetToGameCameraForPlayer(GetEnumPlayer(),3.)
endfunction
function H8 takes nothing returns nothing
call LeaderboardAddItemBJ(GetEnumPlayer(),bj_lastCreatedLeaderboard,GetPlayerName(GetEnumPlayer()),0)
endfunction
function H9 takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),GetRandomLocInRect(Aw))
endfunction
function ia takes nothing returns nothing
call ResetToGameCameraForPlayer(GetEnumPlayer(),1.)
endfunction
function iA takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),GetRandomLocInRect(Aw))
endfunction
function ib takes nothing returns nothing
call ResetToGameCameraForPlayer(GetEnumPlayer(),.0)
endfunction
function iB takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),GetRandomLocInRect(BC))
endfunction
function ic takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call ForGroupBJ(GR(Bx),function H1)
call ForForce(bj_FORCE_ALL_PLAYERS,function H2)
call EnumDestructablesInRectAll(aP,function H3)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_VISIBLE,aQ)
call gv(.2)
call ForGroupBJ(GR(bX),function H4)
call CreateTextTagLocBJ("Spike Traps",OffsetLocation(GetUnitLoc(Eo),-100.,0),.0,10.,.0,'d',.0,0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,true)
call CreateTextTagLocBJ("Bridge of FIame",OffsetLocation(GetUnitLoc(EO),-100.,0),.0,10.,'d',.0,.0,0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,true)
call CreateTextTagLocBJ("Tower Defence",OffsetLocation(GetUnitLoc(Ep),-100.,0),.0,10.,100.,'d',.0,0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,true)
call CreateTextTagLocBJ("BeetIe Rampage",OffsetLocation(GetUnitLoc(EP),-100.,0),.0,10.,'d','d',.0,0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,true)
call CreateTextTagLocBJ("Ghost Path",OffsetLocation(GetUnitLoc(Er),-100.,0),.0,10.,'d','d',.0,0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,true)
call CreateTextTagLocBJ("Quiz of Death",OffsetLocation(GetUnitLoc(EL),-100.,0),.0,10.,'d',.0,.0,0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,true)
call CreateTextTagLocBJ("SkeIetons' Curse",OffsetLocation(GetUnitLoc(EI),-100.,0),.0,10.,'d',.0,.0,0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,true)
call CreateTextTagLocBJ("Magic Defence",OffsetLocation(GetUnitLoc(Eu),-100.,0),.0,10.,'d','d',.0,0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,true)
call CreateTextTagLocBJ("BIade Labyrinth",OffsetLocation(GetUnitLoc(fa),-100.,0),.0,10.,.0,'d',.0,0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,true)
call CreateTextTagLocBJ("Crypt PIunder",OffsetLocation(GetUnitLoc(Ev),-100.,0),.0,10.,.0,'d',.0,0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,true)
call CreateTextTagLocBJ("Tome BattIe",OffsetLocation(GetUnitLoc(fw),-100.,0),.0,10.,'d','d',.0,0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,true)
call CreateTextTagLocBJ("Chamber of Fire",OffsetLocation(GetUnitLoc(fX),-100.,0),.0,10.,'d','d',.0,0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,true)
call CreateTextTagLocBJ("Undead Siege",OffsetLocation(GetUnitLoc(Fa),-100.,0),.0,10.,'d','d',.0,0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,true)
call CreateTextTagLocBJ("Quicksand Pit",OffsetLocation(GetUnitLoc(Fh),-100.,0),.0,10.,'d',.0,.0,0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,true)
call CreateTextTagLocBJ("HaIIs of the Dead",OffsetLocation(GetUnitLoc(FH),-100.,0),.0,10.,'d',.0,.0,0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,true)
call CreateTextTagLocBJ("Stop N' Go",OffsetLocation(GetUnitLoc(FK),-100.,0),.0,10.,.0,'d',.0,0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,true)
call CreateTextTagLocBJ("Ice Core",OffsetLocation(GetUnitLoc(FM),-50.,0),.0,10.,'d',.0,.0,0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,true)
call CreateTextTagLocBJ("BouIder Dash",OffsetLocation(GetUnitLoc(FF),-100.,0),.0,10.,.0,100.,.0,0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,true)
call CreateTextTagLocBJ("Team SurvivaI",OffsetLocation(GetUnitLoc(Fn),-100.,0),.0,10.,100.,100.,.0,0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,true)
call CreateTextTagLocBJ("Sleeping Mummies",OffsetLocation(GetUnitLoc(Fs),-100.,0),.0,10.,100.,100.,.0,0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,true)
call CreateTextTagLocBJ("Dancing mummies",OffsetLocation(GetUnitLoc(FS),-100.,0),.0,10.,.0,100.,.0,0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,true)
call CreateTextTagLocBJ("Trap Tower",OffsetLocation(GetUnitLoc(Fp),-100.,0),.0,10.,'d',.0,.0,0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,true)
call CreateTextTagLocBJ("Ninja",OffsetLocation(GetUnitLoc(FQ),-100.,0),.0,10.,'d',.0,.0,0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,true)
call CreateTextTagLocBJ("Racing",OffsetLocation(GetUnitLoc(Fr),-100.,0),.0,10.,'d',.0,.0,0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,true)
call CreateTextTagLocBJ("TimeStopper",OffsetLocation(GetUnitLoc(Ft),-100.,0),.0,10.,'d',.0,.0,0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,true)
call CreateTextTagLocBJ("Stampede",OffsetLocation(GetUnitLoc(F0),-100.,0),.0,10.,'d',100.,.0,0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,true)
call CreateTextTagLocBJ("Protectors",OffsetLocation(GetUnitLoc(F3),-100.,0),.0,10.,'d',100.,.0,0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,true)
call CreateTextTagLocBJ("Boulder Rampage",OffsetLocation(GetUnitLoc(FY),-100.,0),.0,10.,'d',.0,.0,0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,true)
call CreateTextTagLocBJ("Chief's Showdown!",OffsetLocation(GetUnitLoc(F8),-100.,0),.0,10.,'d',.0,.0,0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,true)
call CreateTextTagLocBJ("Spiderling",OffsetLocation(GetUnitLoc(F9),-100.,0),.0,10.,'d',100.,.0,0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,true)
call SetUnitInvulnerable(FZ,true)
call gv(.2)
call ForGroupBJ(GR(bX),function H5)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"TRIGSTR_195",1,5.,false)
call StartTimerBJ(B,false,90.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"Choose")
call gv(.2)
call ForGroupBJ(GR(bX),function H6)
call EnableTrigger(Cf)
call EnableTrigger(Ci)
call ForForce(bj_FORCE_ALL_PLAYERS,function H7)
call hc(bj_FORCE_ALL_PLAYERS,"Votes")
call ForForce(k,function H8)
call LeaderboardDisplayBJ(true,bj_lastCreatedLeaderboard)
call gv(2.5)
call ForGroupBJ(GR(bX),function H9)
call ForForce(bj_FORCE_ALL_PLAYERS,function ia)
call gv(1.5)
call ForGroupBJ(GR(bX),function iA)
call ForForce(bj_FORCE_ALL_PLAYERS,function ib)
call TriggerSleepAction(5.)
call ForGroupBJ(GR(bX),function iB)
endfunction
function iC takes nothing returns nothing
call CreateNUnitsAtLoc(1,'n004',Player(15),GetUnitLoc(EG),GetRandomReal(0,360))
set A=bj_lastCreatedUnit
call gv(1.5)
call RemoveUnit(A)
endfunction
function id takes nothing returns nothing
call SetUnitColor(Fl,PLAYER_COLOR_GREEN)
call TriggerSleepAction(2)
call SetUnitColor(Fl,PLAYER_COLOR_YELLOW)
call TriggerSleepAction(2)
call SetUnitColor(Fl,PLAYER_COLOR_RED)
endfunction
function iD takes nothing returns nothing
call CreateNUnitsAtLoc(1,'o005',Player(15),GetUnitLoc(Eg),GetRandomReal(0,360))
set X[1]=bj_lastCreatedUnit
call CreateNUnitsAtLoc(1,'n00I',Player(15),GetUnitLoc(Eg),GetRandomReal(0,360))
set X[2]=bj_lastCreatedUnit
call gv(.8)
call KillUnit(X[2])
call gv(1.2)
call RemoveUnit(X[1])
call RemoveUnit(X[2])
endfunction
function ie takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h01C')and(CountUnitsInGroup(GW(GetOwningPlayer(GetTriggerUnit()),'n006'))<2)
endfunction
function iE takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n005')
endfunction
function iF takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n006')
endfunction
function ig takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==GetOwningPlayer(GetTriggerUnit()))
endfunction
function iG takes nothing returns boolean
return GetBooleanAnd(iF(),ig())
endfunction
function ih takes nothing returns boolean
return(CountUnitsInGroup(GS(200.,GetUnitLoc(GetEnumUnit()),Condition(function iG)))==0)
endfunction
function iH takes nothing returns nothing
if(ih())then
else
return
endif
call CreateNUnitsAtLoc(1,'n006',GetOwningPlayer(GetTriggerUnit()),g1(GetUnitLoc(GetEnumUnit()),GetRandomReal(.0,60.),GetRandomReal(0,360)),255.)
call LeaderboardSetPlayerItemValueBJ(GetOwningPlayer(GetTriggerUnit()),bj_lastCreatedLeaderboard,CountUnitsInGroup(GW(GetOwningPlayer(GetTriggerUnit()),'n006')))
call TriggerExecute(Cf)
endfunction
function ii takes nothing returns nothing
call ForGroupBJ(GZ(1,GS(160.,GetUnitLoc(GetTriggerUnit()),Condition(function iE))),function iH)
endfunction
function iI takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h01C')
endfunction
function ij takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function iJ takes nothing returns boolean
return GetBooleanAnd(iI(),ij())
endfunction
function ik takes nothing returns boolean
return(CountUnitsInGroup(GW(GetOwningPlayer(GetEnumUnit()),'n006'))<2)
endfunction
function iK takes nothing returns nothing
if(ik())then
set S=1.
endif
endfunction
function il takes nothing returns boolean
return(IsTriggerEnabled(Ci)==false)
endfunction
function iL takes nothing returns boolean
return(S==1.)
endfunction
function im takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n006')
endfunction
function iM takes nothing returns boolean
return(CountUnitsInGroup(GS(200.,GetUnitLoc(j[bj_forLoopBIndex]),Condition(function im)))==(11-bj_forLoopAIndex))
endfunction
function in takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function iN takes nothing returns nothing
set S=.0
call ForGroupBJ(GQ(bj_mapInitialPlayableArea,Condition(function iJ)),function iK)
if(il())then
set S=.0
endif
if(iL())then
return
endif
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(CE)
call DisableTrigger(Ci)
call DestroyLeaderboard(bj_lastCreatedLeaderboard)
call PauseTimerBJ(true,bj_lastStartedTimer)
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call gv(.5)
set h=0
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=11
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call GroupClear(I)
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=J
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
if(iM())then
call GroupAddUnit(I,j[bj_forLoopBIndex])
endif
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=CountUnitsInGroup(I)
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
set h=(h+1)
set G[h]=GetUnitUserData(GroupPickRandomUnit(I))
call GroupRemoveUnit(I,j[G[h]])
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set h=0
call DestroyFogModifier(bj_lastCreatedFogModifier)
call ForGroupBJ(GU('n006'),function in)
call DisableTrigger(Cd)
call DisableTrigger(Ce)
call DisableTrigger(CD)
call SetUnitOwner(Fk,Player(10),false)
call TriggerExecute(cZ)
call VolumeGroupSetVolumeBJ(SOUND_VOLUMEGROUP_UNITSOUNDS,65.)
call VolumeGroupSetVolumeBJ(SOUND_VOLUMEGROUP_MUSIC,100.)
call gv(.7)
call StopSoundBJ(cK,true)
call gv(.8)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_MASKED,aQ)
endfunction
function io takes nothing returns nothing
call SetCameraBoundsToRectForPlayerBJ(GetEnumPlayer(),as)
endfunction
function iO takes nothing returns nothing
call SetCameraTargetControllerNoZForPlayer(GetEnumPlayer(),GroupPickRandomUnit(Gw(GetEnumPlayer())),0,0,false)
endfunction
function ip takes nothing returns nothing
set F='h00L'
set E=AX
call PlaySoundBJ(ck)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"TRIGSTR_168",1,20.,false)
call gv(1.)
call SetGameSpeed(MAP_SPEED_SLOW)
call ForForce(bj_FORCE_ALL_PLAYERS,function io)
call SetTerrainFogExBJ(0,1400.,8000.,0,50.,80.,'d')
call SetTimeOfDay(12.)
call VolumeGroupSetVolumeBJ(SOUND_VOLUMEGROUP_SPELLS,80.)
call VolumeGroupSetVolumeBJ(SOUND_VOLUMEGROUP_COMBAT,80.)
call VolumeGroupSetVolumeBJ(SOUND_VOLUMEGROUP_UNITSOUNDS,60.)
call CameraSetSmoothingFactor(1)
call DisableTrigger(c8)
call gv(1.)
call ForForce(bj_FORCE_ALL_PLAYERS,function iO)
endfunction
function iP takes nothing returns boolean
return(IsTriggerEnabled(c3))
endfunction
function iq takes nothing returns boolean
return(IsTriggerEnabled(c2))
endfunction
function iQ takes nothing returns boolean
return(IsTriggerEnabled(c1))
endfunction
function ir takes nothing returns boolean
return(IsTriggerEnabled(c0))
endfunction
function iR takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"TRIGSTR_934",1,20.,false)
if(ir())then
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"|cff229966 22 out of 22 challenges beaten!!|r",1,20.,false)
else
if(iQ())then
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"|cff229966 21 out of 22 challenges beaten!|r",1,20.,false)
else
if(iq())then
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"|cff229966 20 out of 22 challenges beaten!|r",1,20.,false)
else
if(iP())then
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"|cff229966 19 out of 22 challenges beaten!|r",1,20.,false)
else
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"|cff229966 18 out of 22 challenges beaten|r",1,20.,false)
endif
endif
endif
endif
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_VISIBLE,aS)
call gv(.2)
call DestroyFogModifier(bj_lastCreatedFogModifier)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_VISIBLE,at)
call gv(.2)
call DestroyFogModifier(bj_lastCreatedFogModifier)
call gv(10.)
endfunction
function is takes nothing returns nothing
call SetUnitInvulnerable(Fz,false)
call EnableTrigger(Ch)
call DisableTrigger(GetTriggeringTrigger())
call EnableTrigger(CH)
endfunction
function iS takes nothing returns nothing
call CreateNUnitsAtLoc(2,'nvlk',Player(11),GetRandomLocInRect(Bd),bj_UNIT_FACING)
endfunction
function it takes nothing returns boolean
return(GetUnitTypeId(GetDyingUnit())=='nvlk')
endfunction
function iT takes nothing returns nothing
call UnitDamageTargetBJ(GetDyingUnit(),Fz,10000.,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function iu takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call TriggerExecute(Cf)
endfunction
function iU takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(bW))
endfunction
function iv takes nothing returns nothing
call ForGroupBJ(Gs(bj_mapInitialPlayableArea,GetEnumPlayer()),function iU)
endfunction
function iV takes nothing returns nothing
call ForForce(k,function iv)
endfunction
function iw takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())!=Player(11))
endfunction
function iW takes nothing returns nothing
call SetCameraBoundsToRectForPlayerBJ(GetEnumPlayer(),aq)
endfunction
function ix takes nothing returns nothing
call CameraSetupApplyForPlayer(true,cC,GetEnumPlayer(),0)
endfunction
function iX takes nothing returns nothing
call CameraSetupApplyForPlayer(true,cD,GetEnumPlayer(),7.)
endfunction
function iy takes nothing returns nothing
call ForForce(Gx(GetOwningPlayer(GetEnteringUnit())),function iW)
call ForForce(Gx(GetOwningPlayer(GetEnteringUnit())),function ix)
call PlaySoundOnUnitBJ(cV,'d',GetEnteringUnit())
call SetUnitPositionLoc(GetEnteringUnit(),GetRandomLocInRect(Aw))
call SetUnitAnimation(GetEnteringUnit(),"Death")
call AddSpecialEffectTargetUnitBJ("overhead",GetEnteringUnit(),"Objects\\Spawnmodels\\NightElf\\NECancelDeath\\NECancelDeath.mdl")
call TriggerSleepAction(1.)
call DisplayTextToForce(Gx(GetOwningPlayer(GetEnteringUnit())),"TRIGSTR_1102")
call ForForce(Gx(GetOwningPlayer(GetEnteringUnit())),function iX)
endfunction
function iY takes nothing returns boolean
return(aG==false)
endfunction
function iz takes nothing returns nothing
call RemoveDestructable(GetEnumDestructable())
endfunction
function iZ takes nothing returns nothing
call ChangeElevatorHeight(gt,2)
call EnumDestructablesInRectAll(B0,function iz)
endfunction
function i0 takes nothing returns boolean
return(aG)
endfunction
function i1 takes nothing returns nothing
call ChangeElevatorHeight(gt,1)
call CreateDestructableLoc('YTfb',GetRectCenter(By),270.,1,0)
call CreateDestructableLoc('YTfb',GetRectCenter(BY),270.,1,0)
call CreateDestructableLoc('YTfb',GetRectCenter(Bz),270.,1,0)
call CreateDestructableLoc('YTfb',GetRectCenter(BZ),270.,1,0)
endfunction
function i2 takes nothing returns boolean
return(aG==false)
endfunction
function i3 takes nothing returns boolean
return(aG)
endfunction
function i4 takes nothing returns nothing
if(i2())then
set aG=true
call ConditionalTriggerExecute(Ck)
else
set aG=false
call ConditionalTriggerExecute(CJ)
endif
if(i3())then
set aG=false
call ConditionalTriggerExecute(CJ)
else
set aG=true
call ConditionalTriggerExecute(Ck)
endif
endfunction
function i5 takes nothing returns nothing
call EnableTrigger(CK)
call DisableTrigger(GetTriggeringTrigger())
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"*Crank* The elevator seems to be working again")
call PlaySoundBJ(cE)
call RemoveItem(FW)
endfunction
function i6 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function i7 takes nothing returns nothing
call KillDestructable(gs)
call EnumDestructablesInRectAll(Bv,function i6)
call PlaySoundBJ(cV)
call EnableTrigger(Cl)
endfunction
function i8 takes nothing returns nothing
call KillDestructable(gS)
call PlaySoundBJ(cV)
call EnableTrigger(Cl)
endfunction
function i9 takes nothing returns nothing
call DisableTrigger(Ca)
call KillDestructable(gT)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"*Crank* The sound of a door opening...")
call gv(.5)
call ModifyGateBJ(1,gP)
call PlaySoundBJ(ch)
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(Ca)
call DisableTrigger(CL)
call DisableTrigger(Cm)
call DisableTrigger(Cm)
call DisableTrigger(CK)
call DisableTrigger(Ck)
call DisableTrigger(CJ)
call EnableTrigger(Cn)
endfunction
function Ia takes nothing returns nothing
call RemoveDestructable(GetEnumDestructable())
endfunction
function IA takes nothing returns nothing
call EnumDestructablesInRectAll(B0,function Ia)
call ChangeElevatorHeight(gt,1)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Ib takes nothing returns nothing
call SetCameraBoundsToRectForPlayerBJ(GetEnumPlayer(),AV)
endfunction
function IB takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n000')
endfunction
function Ic takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function IC takes nothing returns nothing
call UnitAddItemByIdSwapped('ankh',e[(1+GetPlayerId(GetEnumPlayer()))])
endfunction
function Id takes nothing returns nothing
set F='h00T'
set E=A2
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"TRIGSTR_124",1,25.,false)
call gv(1.)
call SetTimeOfDay(24.)
call SetTerrainFogExBJ(0,1300.,3500.,0,.0,7.,20.)
call PlayMusicBJ(cU)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_VISIBLE,AV)
call ForForce(bj_FORCE_ALL_PLAYERS,function Ib)
call EnableTrigger(Cp)
set a[1]=AL
set a[2]=Ar
set a[3]=AR
set a[4]=As
set a[5]=AS
set a[6]=At
set a[7]=AT
set a[8]=Au
set a[9]=AU
set a[10]=Am
set a[11]=AM
set a[12]=An
set a[13]=AN
set a[14]=Ao
set a[15]=AO
set a[16]=Ap
set a[17]=AP
set a[18]=Aq
set a[19]=AQ
call TriggerExecute(cz)
set bj_forLoopAIndex=(CountPlayersInForceBJ(k)*2)
set bj_forLoopAIndexEnd=19
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call ForGroupBJ(GQ(a[bj_forLoopAIndex],Condition(function IB)),function Ic)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=((CountPlayersInForceBJ(k)*2)-1)
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'o000',Player(11),GetUnitLoc(GroupPickRandomUnit(GR(a[bj_forLoopAIndex]))),GetRandomReal(0,360))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call gv(1.)
call ForForce(k,function IC)
call EnableTrigger(Co)
call gv(14.)
call ModifyGateBJ(1,ga)
call PlaySoundAtPointBJ(ch,'d',GetDestructableLoc(ga),0)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"GO",1,5.,false)
call StartTimerBJ(B,false,((I2R(CountPlayersInForceBJ(k))*20.)+20.))
call CreateTimerDialogBJ(bj_lastStartedTimer,"Time Left")
call gv(1.)
call EnableTrigger(CP)
endfunction
function ID takes nothing returns boolean
return(GetUnitUserData(GetTriggerUnit())!=1)
endfunction
function Ie takes nothing returns nothing
call CreateNUnitsAtLoc(1,'n004',Player(10),GetUnitLoc(GetAttacker()),GetRandomReal(0,360))
set D[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=bj_lastCreatedUnit
call gv(1.)
if(ID())then
call SetUnitPositionLoc(GetTriggerUnit(),GetRandomLocInRect(A2))
endif
call SetUnitUserData(GetTriggerUnit(),1)
call gv(2.)
call RemoveUnit(D[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
endfunction
function IE takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)
endfunction
function If takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(Cp)
call DisableTrigger(Co)
call DisableTrigger(CP)
call DestroyFogModifier(bj_lastCreatedFogModifier)
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call PauseTimerBJ(true,bj_lastStartedTimer)
call KillDestructable(RandomDestructableInRectSimpleBJ(Av))
call TriggerExecute(cZ)
call gv(1.5)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_MASKED,AV)
endfunction
function IF takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Ig takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==F)
endfunction
function IG takes nothing returns boolean
return GetBooleanAnd(IF(),Ig())
endfunction
function Ih takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)and(CountUnitsInGroup(GQ(bj_mapInitialPlayableArea,Condition(function IG)))==0)
endfunction
function IH takes nothing returns nothing
call DisableTrigger(CP)
call gv(2)
set W=1
call TriggerExecute(CO)
endfunction
function Ii takes nothing returns nothing
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"TIME UP",1,10.,false)
call KillDestructable(RandomDestructableInRectSimpleBJ(Av))
call DisableTrigger(CO)
call DisableTrigger(Cp)
call gv(2)
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call PauseTimerBJ(true,bj_lastStartedTimer)
set W=1
call TriggerExecute(CO)
endfunction
function II takes nothing returns nothing
call SetCameraBoundsToRectForPlayerBJ(GetEnumPlayer(),aN)
endfunction
function Ij takes nothing returns nothing
call SetUnitExploded(GetEnumUnit(),false)
endfunction
function IJ takes nothing returns nothing
set F='h005'
set E=AW
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"TRIGSTR_121",1,20.,false)
call gv(1.)
call SetTimeOfDay(17.9)
call SetTerrainFogExBJ(0,1300.,3500.,0,50.,10.,.0)
call PlayMusicBJ(cl)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_VISIBLE,aN)
call ForForce(bj_FORCE_ALL_PLAYERS,function II)
call EnableTrigger(Cu)
call EnableTrigger(CQ)
call gv(12.)
call ModifyGateBJ(1,gg)
call PlaySoundAtPointBJ(ch,'d',GetDestructableLoc(gg),0)
call EnableTrigger(CT)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"GO",1,5.,false)
call gv(2.)
call StartTimerBJ(B,true,20.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"Bridge Change")
call gv(1.)
call ForGroupBJ(GU(F),function Ij)
call EnableTrigger(Cr)
endfunction
function Ik takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set C[bj_forLoopAIndex]=GroupPickRandomUnit(Gs(aN,Player(15)))
call IssuePointOrderByIdLoc(C[bj_forLoopAIndex],851984,GetRandomLocInRect(am))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call gv(1.)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call IssueImmediateOrderById(C[bj_forLoopAIndex],851972)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function IK takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==F)
endfunction
function Il takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function IL takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call KillDestructable(gA)
call AddSpecialEffectLocBJ(GetDestructableLoc(gC),"Abilities\\Spells\\Orc\\earthquake\\earthquaketarget.mdl")
call PlaySoundBJ(cH)
call PlaySoundAtPointBJ(cE,'d',GetDestructableLoc(gC),0)
call DestructableRestoreLife(gC,GetDestructableMaxLife(gC),true)
call gv(5.)
call DestroyEffect(bj_lastCreatedEffect)
call EnableTrigger(CR)
call ForGroupBJ(GQ(an,Condition(function IK)),function Il)
endfunction
function Im takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call KillDestructable(gb)
call AddSpecialEffectLocBJ(GetDestructableLoc(gF),"Abilities\\Spells\\Orc\\earthquake\\earthquaketarget.mdl")
call PlaySoundBJ(cH)
call PlaySoundAtPointBJ(cE,'d',GetDestructableLoc(gF),0)
call DestructableRestoreLife(gF,GetDestructableMaxLife(gF),true)
call gv(5.)
call DestroyEffect(bj_lastCreatedEffect)
call EnableTrigger(Cs)
endfunction
function IM takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call KillDestructable(gB)
call PlaySoundBJ(cH)
call gv(1.)
call EnableTrigger(CS)
endfunction
function In takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call KillDestructable(gc)
call PlaySoundBJ(cH)
call gv(1.)
call EnableTrigger(Ct)
endfunction
function IN takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call KillDestructable(gC)
call PlaySoundBJ(cH)
call PauseTimerBJ(true,bj_lastStartedTimer)
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
endfunction
function Io takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)
endfunction
function IO takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(Cu)
call DisableTrigger(CQ)
call DisableTrigger(Cr)
call DisableTrigger(CR)
call DisableTrigger(Cs)
call DisableTrigger(CS)
call DisableTrigger(Ct)
call DestroyFogModifier(bj_lastCreatedFogModifier)
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call PauseTimerBJ(true,bj_lastStartedTimer)
call KillDestructable(RandomDestructableInRectSimpleBJ(aM))
call TriggerExecute(cZ)
call gv(1.5)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_MASKED,aN)
endfunction
function Ip takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function IP takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==F)
endfunction
function Iq takes nothing returns boolean
return GetBooleanAnd(Ip(),IP())
endfunction
function IQ takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)and(CountUnitsInGroup(GQ(bj_mapInitialPlayableArea,Condition(function Iq)))==0)
endfunction
function Ir takes nothing returns nothing
call gv(2)
set W=1
call TriggerExecute(CT)
endfunction
function IR takes nothing returns nothing
call SetCameraBoundsToRectForPlayerBJ(GetEnumPlayer(),bF)
endfunction
function Is takes nothing returns nothing
call SetPlayerStateBJ(GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD,R2I(S))
endfunction
function IS takes nothing returns nothing
call AdjustPlayerStateBJ(5,GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function It takes nothing returns nothing
set F='h007'
set E=A3
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"TRIGSTR_113",1,20.,false)
call gv(1.)
call SetTimeOfDay(12.)
call SetTerrainFogExBJ(0,1300.,3000.,0,50.,43.,27.)
call PlayMusicBJ(cI)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_VISIBLE,bF)
call ForForce(bj_FORCE_ALL_PLAYERS,function IR)
set Y=0
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(11))
call SetPlayerHandicapBJ(Player(11),103.)
call TriggerExecute(cz)
set S=(300./I2R(CountPlayersInForceBJ(k)))
call ForForce(k,function Is)
call ForForce(k,function IS)
call gv(15.)
set c='u001'
call StartTimerBJ(B,false,15.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"Wave 1 of 5")
call EnableTrigger(Cv)
call EnableTrigger(Cx)
endfunction
function IT takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==c)
endfunction
function Iu takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function IU takes nothing returns boolean
return GetBooleanAnd(IT(),Iu())
endfunction
function Iv takes nothing returns boolean
return(CountUnitsInGroup(GV(Player(11),Condition(function IU)))==0)
endfunction
function IV takes nothing returns nothing
call AdjustPlayerStateBJ(R2I(S),GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function Iw takes nothing returns nothing
call AdjustPlayerStateBJ(10,GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function IW takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call gv(2.)
set S=(100./I2R(CountPlayersInForceBJ(k)))
call ForForce(k,function IV)
call ForForce(k,function Iw)
set c='u003'
call StartTimerBJ(B,false,10.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"Wave 2 of 5")
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"TRIGSTR_115",1,15.,false)
call gv(1.)
call EnableTrigger(CV)
endfunction
function Ix takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==c)
endfunction
function IX takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Iy takes nothing returns boolean
return GetBooleanAnd(Ix(),IX())
endfunction
function IY takes nothing returns boolean
return(CountUnitsInGroup(GV(Player(11),Condition(function Iy)))==0)
endfunction
function Iz takes nothing returns nothing
call AdjustPlayerStateBJ(R2I(S),GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function IZ takes nothing returns nothing
call AdjustPlayerStateBJ(30,GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function I0 takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call gv(2.)
call ForForce(k,function Iz)
call ForForce(k,function IZ)
set c='u004'
call StartTimerBJ(B,false,10.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"Wave 3 of 5")
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"TRIGSTR_116",1,15.,false)
call gv(1.)
call EnableTrigger(Cw)
endfunction
function I1 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==c)
endfunction
function I2 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function I3 takes nothing returns boolean
return GetBooleanAnd(I1(),I2())
endfunction
function I4 takes nothing returns boolean
return(CountUnitsInGroup(GV(Player(11),Condition(function I3)))==0)
endfunction
function I5 takes nothing returns nothing
call AdjustPlayerStateBJ(R2I(S),GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function I6 takes nothing returns nothing
call AdjustPlayerStateBJ(30,GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function I7 takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call gv(2.)
call ForForce(k,function I5)
call ForForce(k,function I6)
set c='u002'
call StartTimerBJ(B,false,10.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"Wave 4 of 5")
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"TRIGSTR_117",1,15.,false)
call gv(1.)
call EnableTrigger(CW)
endfunction
function I8 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==c)
endfunction
function I9 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function ja takes nothing returns boolean
return GetBooleanAnd(I8(),I9())
endfunction
function jA takes nothing returns boolean
return(CountUnitsInGroup(GV(Player(11),Condition(function ja)))==0)
endfunction
function jb takes nothing returns nothing
call AdjustPlayerStateBJ(R2I(S),GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function jB takes nothing returns nothing
call AdjustPlayerStateBJ(30,GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function jc takes nothing returns nothing
call PlayMusicBJ(cp)
call gv(2.)
call DisableTrigger(GetTriggeringTrigger())
call ForForce(k,function jb)
call ForForce(k,function jB)
set c='u005'
call StartTimerBJ(B,false,10.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"Boss")
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"TRIGSTR_118",1,20.,false)
call DisableTrigger(Cx)
call EnableTrigger(CX)
call gv(1.)
call EnableTrigger(dA)
endfunction
function jC takes nothing returns boolean
return(IsTriggerEnabled(GetTriggeringTrigger())==false)
endfunction
function jd takes nothing returns nothing
call gv(1.)
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=30
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,c,Player(11),GetRectCenter(bC),GetRandomReal(0,360))
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851986,GetRectCenter(bA))
call CreateNUnitsAtLoc(1,c,Player(11),GetRectCenter(bc),GetRandomReal(0,360))
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851986,GetRectCenter(bD))
call gv(1.)
if(jC())then
return
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function jD takes nothing returns boolean
return(IsTriggerEnabled(GetTriggeringTrigger())==false)
endfunction
function je takes nothing returns nothing
call gv(1.)
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,c,Player(11),GetRectCenter(bC),GetRandomReal(0,360))
call SetUnitColor(bj_lastCreatedUnit,PLAYER_COLOR_ORANGE)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851986,GetRectCenter(bA))
call CreateNUnitsAtLoc(1,c,Player(11),GetRectCenter(bc),GetRandomReal(0,360))
call SetUnitColor(bj_lastCreatedUnit,PLAYER_COLOR_ORANGE)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851986,GetRectCenter(bD))
call gv(6.)
if(jD())then
return
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function jE takes nothing returns nothing
set Y=(Y+1)
call AddSpecialEffectTargetUnitBJ("origin",GetTriggerUnit(),"Abilities\\Spells\\Undead\\Darksummoning\\DarkSummonTarget.mdl")
set R[Y]=bj_lastCreatedEffect
call SetUnitUserData(GetTriggerUnit(),Y)
call gv(.2)
call QueueUnitAnimation(GroupPickRandomUnit(GW(GetOwningPlayer(GetTriggerUnit()),'h007')),"stand")
endfunction
function jf takes nothing returns nothing
call DestroyEffect(R[GetUnitUserData(GetTriggerUnit())])
endfunction
function jF takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(11))
endfunction
function jg takes nothing returns nothing
call IssuePointOrderByIdLoc(GetTriggerUnit(),851986,GetRectCenter(bb))
endfunction
function jG takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(11))
endfunction
function jh takes nothing returns nothing
call IssuePointOrderByIdLoc(GetTriggerUnit(),851986,GetRectCenter(bB))
endfunction
function jH takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(11))
endfunction
function ji takes nothing returns nothing
call IssuePointOrderByIdLoc(GetTriggerUnit(),851986,GetRectCenter(A6))
endfunction
function jI takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(11))
endfunction
function jj takes nothing returns nothing
call IssuePointOrderByIdLoc(GetTriggerUnit(),851986,GetRectCenter(bD))
endfunction
function jJ takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(11))
endfunction
function jk takes nothing returns nothing
call IssuePointOrderByIdLoc(GetTriggerUnit(),851986,GetRectCenter(be))
endfunction
function jK takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(11))
endfunction
function jl takes nothing returns nothing
call IssuePointOrderByIdLoc(GetTriggerUnit(),851986,GetRectCenter(A6))
endfunction
function jL takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(11))
endfunction
function jm takes nothing returns nothing
call IssuePointOrderByIdLoc(GetTriggerUnit(),851986,GetRectCenter(A7))
endfunction
function jM takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(11))
endfunction
function jn takes nothing returns nothing
call IssuePointOrderByIdLoc(GetTriggerUnit(),851986,GetRectCenter(A8))
endfunction
function jN takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(11))
endfunction
function jo takes nothing returns nothing
call IssuePointOrderByIdLoc(GetTriggerUnit(),851986,GetRectCenter(A9))
endfunction
function jO takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(11))
endfunction
function jp takes nothing returns nothing
call IssuePointOrderByIdLoc(GetTriggerUnit(),851986,GetRectCenter(ba))
endfunction
function jP takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(11))
endfunction
function jq takes nothing returns nothing
call IssuePointOrderByIdLoc(GetTriggerUnit(),851986,GetRectCenter(bf))
endfunction
function jQ takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(11))and(GetUnitTypeId(GetTriggerUnit())!='u005')
endfunction
function jr takes nothing returns nothing
call ExplodeUnitBJ(GetTriggerUnit())
call SetWidgetLife(Ej,(GetUnitStateSwap(UNIT_STATE_LIFE,Ej)-100.))
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Weapons\\FarseerMissile\\FarseerMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,(I2S(R2I((GetUnitStateSwap(UNIT_STATE_LIFE,Ej)/100.)))+" HITS LEFT"),1,10.,false)
call gv(1.)
endfunction
function jR takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(11))and(GetUnitTypeId(GetTriggerUnit())=='u005')
endfunction
function js takes nothing returns nothing
call ExplodeUnitBJ(GetTriggerUnit())
call SetWidgetLife(Ej,(GetUnitStateSwap(UNIT_STATE_LIFE,Ej)-200.))
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Weapons\\FarseerMissile\\FarseerMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,(I2S(R2I((GetUnitStateSwap(UNIT_STATE_LIFE,Ej)/100.)))+" HITS LEFT"),1,10.,false)
call gv(1.)
endfunction
function jS takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==c)
endfunction
function jt takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function jT takes nothing returns boolean
return GetBooleanAnd(jS(),jt())
endfunction
function ju takes nothing returns boolean
return(CountUnitsInGroup(GV(Player(11),Condition(function jT)))==0)
endfunction
function jU takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(CX)
call CreateDeadDestructableLocBJ('OTsp',GetRectCenter(bE),270.,.7,0)
call DestructableRestoreLife(bj_lastCreatedDestructable,GetDestructableMaxLife(bj_lastCreatedDestructable),true)
call gv(2.)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"Final wave completed",1,10.,false)
call gv(3.)
call EnableTrigger(db)
endfunction
function jv takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)
endfunction
function jV takes nothing returns nothing
call SetPlayerStateBJ(GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD,0)
endfunction
function jw takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)!=null)
endfunction
function jW takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function jx takes nothing returns nothing
call ForGroupBJ(GV(GetEnumPlayer(),Condition(function jw)),function jW)
endfunction
function jX takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function jy takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call ForForce(bj_FORCE_ALL_PLAYERS,function jV)
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,false,Player(11))
call SetPlayerHandicapBJ(Player(11),100.)
call DestroyFogModifier(bj_lastCreatedFogModifier)
call DisableTrigger(Cx)
call DisableTrigger(CX)
call KillDestructable(RandomDestructableInRectSimpleBJ(bE))
call TriggerExecute(cZ)
call gv(1.5)
call ForForce(GX(MAP_CONTROL_USER),function jx)
call ForGroupBJ(GU(c),function jX)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_MASKED,bF)
endfunction
function jY takes nothing returns nothing
call gv(.5)
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(C9)
call DisableTrigger(Cv)
call DisableTrigger(CV)
call DisableTrigger(Cw)
call DisableTrigger(CW)
call DisableTrigger(dA)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"The Magic Generator has been destroyed",1,10.,false)
call gv(2.)
set W=1
call TriggerExecute(db)
endfunction
function jz takes nothing returns nothing
call SetCameraBoundsToRectForPlayerBJ(GetEnumPlayer(),aO)
endfunction
function jZ takes nothing returns nothing
call CreateNUnitsAtLocFacingLocBJ(1,'u006',Player(10),g1(GetUnitLoc(GetEnumUnit()),120.,GetRandomReal(0,360)),GetUnitLoc(GetEnumUnit()))
call SetUnitColor(bj_lastCreatedUnit,PLAYER_COLOR_BROWN)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851990,g1(GetUnitLoc(GetEnumUnit()),80.,GetUnitFacing(bj_lastCreatedUnit)))
call RemoveUnit(GetEnumUnit())
endfunction
function j0 takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),OffsetLocation(GetUnitLoc(GetEnumUnit()),GetRandomReal(-100.,100.),GetRandomReal(-100.,100.)))
call IssuePointOrderByIdLoc(GetEnumUnit(),851984,g1(GetUnitLoc(GetEnumUnit()),20.,GetRandomReal(0,360)))
endfunction
function j1 takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),OffsetLocation(GetUnitLoc(GetEnumUnit()),GetRandomReal(-80.,80.),GetRandomReal(-80.,80.)))
call SetUnitFacingTimed(GetEnumUnit(),GetRandomReal(0,360),0)
endfunction
function j2 takes nothing returns nothing
call SetUnitExploded(GetEnumUnit(),false)
endfunction
function j3 takes nothing returns nothing
set F='h000'
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"TRIGSTR_119",1,20.,false)
set E=Ax
call gv(1.)
call SetTimeOfDay(19.)
call SetTerrainFogExBJ(0,1400.,4000.,0,40.,12.,.0)
call PlayMusicBJ(cp)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_VISIBLE,aO)
call ForForce(bj_FORCE_ALL_PLAYERS,function jz)
call EnableTrigger(dD)
call IssuePointOrderByIdLoc(Eh,851983,GetDestructableLoc(ge))
call ForGroupBJ(GU('n003'),function jZ)
call ForGroupBJ(GU('n002'),function j0)
call ForGroupBJ(GU('u00C'),function j1)
call gv(10.)
call EnableTrigger(dd)
call EnableTrigger(dC)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"RUN",1,5.,false)
call ForGroupBJ(GU(F),function j2)
call ModifyGateBJ(1,gd)
call PlaySoundAtPointBJ(ch,'d',GetDestructableLoc(gd),0)
call gv(1.)
call ModifyGateBJ(1,gf)
call gv(2.)
call ModifyGateBJ(1,gD)
call IssuePointOrderByIdLoc(Eh,851983,GetDestructableLoc(ge))
endfunction
function j4 takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='u00C')
endfunction
function j5 takes nothing returns nothing
call IssueTargetOrderById(GetAttacker(),852211,GetTriggerUnit())
call gv(.4)
call KillUnit(GetAttacker())
endfunction
function j6 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)
endfunction
function j7 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function j8 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function j9 takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(dD)
call DisableTrigger(dC)
call DestroyFogModifier(bj_lastCreatedFogModifier)
call KillDestructable(RandomDestructableInRectSimpleBJ(ao))
call ForGroupBJ(Gs(aO,Player(12)),function j7)
call ForGroupBJ(Gs(aO,Player(10)),function j8)
call TriggerExecute(cZ)
call gv(1.5)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_MASKED,aO)
endfunction
function Ja takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function JA takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==F)
endfunction
function Jb takes nothing returns boolean
return GetBooleanAnd(Ja(),JA())
endfunction
function JB takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)and(CountUnitsInGroup(GQ(bj_mapInitialPlayableArea,Condition(function Jb)))==0)
endfunction
function Jc takes nothing returns nothing
call gv(2)
set W=1
call TriggerExecute(dd)
endfunction
function JC takes nothing returns nothing
call SetCameraBoundsToRectForPlayerBJ(GetEnumPlayer(),Ab)
endfunction
function Jd takes nothing returns nothing
call SetUnitMoveSpeed(GetEnumUnit(),220.)
endfunction
function JD takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function Je takes nothing returns nothing
set F='h00H'
set E=AA
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"TRIGSTR_148",1,28.,false)
call gv(1.)
call SetTimeOfDay(24.)
call SetTerrainFogExBJ(0,1300.,3000.,0,40.,40.,50.)
call PlayMusicExBJ(cu,170.,1.)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_VISIBLE,Ab)
call ForForce(bj_FORCE_ALL_PLAYERS,function JC)
call EnableTrigger(dL)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=11
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set K[bj_forLoopAIndex]=0
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set l[0]=Eq
call gv(1.)
call ForGroupBJ(GU(F),function Jd)
call gv(17.)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"GET READY",1,5.,false)
call EnableTrigger(df)
call EnableTrigger(dE)
call TriggerExecute(dE)
call gv(5.)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"GO",1,10.,false)
call EnumDestructablesInRectAll(Ab,function JD)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call StartTimerBJ(m[bj_forLoopAIndex],false,12.)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnableTrigger(dF)
call EnableTrigger(dg)
call EnableTrigger(dG)
call EnableTrigger(dh)
call EnableTrigger(dH)
call EnableTrigger(di)
call EnableTrigger(dI)
call EnableTrigger(dj)
call EnableTrigger(dJ)
call EnableTrigger(dk)
call EnableTrigger(dK)
endfunction
function JE takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='n007')
endfunction
function Jf takes nothing returns boolean
return(K[11]==35)
endfunction
function JF takes nothing returns boolean
return(GetFilterUnit()!=l[K[11]])
endfunction
function Jg takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n007')
endfunction
function JG takes nothing returns boolean
return(GetFilterUnit()!=l[(K[11]-1)])
endfunction
function Jh takes nothing returns boolean
return GetBooleanAnd(Jg(),JG())
endfunction
function JH takes nothing returns boolean
return GetBooleanAnd(JF(),Jh())
endfunction
function Ji takes nothing returns nothing
if(Jf())then
call KillUnit(EQ)
return
endif
call IssuePointOrderByIdLoc(EQ,851986,GetUnitLoc(GroupPickRandomUnit(GS(450.,GetUnitLoc(EQ),Condition(function JH)))))
call SetUnitMoveSpeed(EQ,(GetUnitMoveSpeed(EQ)+5.))
endfunction
function JI takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='n007')
endfunction
function Jj takes nothing returns nothing
set K[11]=(K[11]+1)
set l[K[11]]=GetTriggerUnit()
endfunction
function JJ takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)
endfunction
function Jk takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n007')
endfunction
function JK takes nothing returns boolean
return(L==null)
endfunction
function Jl takes nothing returns boolean
return(l[K[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]]==L)
endfunction
function JL takes nothing returns boolean
return(L==l[K[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]])
endfunction
function Jm takes nothing returns boolean
return(K[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==35)and(L==l[35])
endfunction
function JM takes nothing returns nothing
set L=GroupPickRandomUnit(GS(170.,GetUnitLoc(GetTriggerUnit()),Condition(function Jk)))
if(JK())then
return
endif
if(Jl())then
return
endif
set K[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(K[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+1)
if(JL())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Orc\\HealingWave\\HealingWaveTarget.mdl")
else
call IssueTargetOrderById(L,851983,GetTriggerUnit())
endif
call StartTimerBJ(m[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],false,12.)
if(Jm())then
call DisableTrigger(dF)
call DisableTrigger(dg)
call DisableTrigger(dG)
call DisableTrigger(dh)
call DisableTrigger(dH)
call DisableTrigger(di)
call DisableTrigger(dI)
call DisableTrigger(dj)
call DisableTrigger(dJ)
call DisableTrigger(dk)
call DisableTrigger(dK)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"COMPLETED",1,10.,false)
call CreateDeadDestructableLocBJ('OTsp',GetRectCenter(Aa),270.,.7,0)
call DestructableRestoreLife(bj_lastCreatedDestructable,GetDestructableMaxLife(bj_lastCreatedDestructable),true)
call gv(5.)
call EnableTrigger(dl)
endif
endfunction
function Jn takes nothing returns nothing
call ExplodeUnitBJ(e[1])
endfunction
function JN takes nothing returns nothing
call ExplodeUnitBJ(e[2])
endfunction
function Jo takes nothing returns nothing
call ExplodeUnitBJ(e[3])
endfunction
function JO takes nothing returns nothing
call ExplodeUnitBJ(e[4])
endfunction
function Jp takes nothing returns nothing
call ExplodeUnitBJ(e[5])
endfunction
function JP takes nothing returns nothing
call ExplodeUnitBJ(e[6])
endfunction
function Jq takes nothing returns nothing
call ExplodeUnitBJ(e[7])
endfunction
function JQ takes nothing returns nothing
call ExplodeUnitBJ(e[8])
endfunction
function Jr takes nothing returns nothing
call ExplodeUnitBJ(e[9])
endfunction
function JR takes nothing returns nothing
call ExplodeUnitBJ(e[10])
endfunction
function Js takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)
endfunction
function JS takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(dL)
call DestroyFogModifier(bj_lastCreatedFogModifier)
call DisableTrigger(dF)
call DisableTrigger(dg)
call DisableTrigger(dG)
call DisableTrigger(dh)
call DisableTrigger(dH)
call DisableTrigger(di)
call DisableTrigger(dI)
call DisableTrigger(dj)
call DisableTrigger(dJ)
call DisableTrigger(dk)
call DisableTrigger(dK)
call KillDestructable(RandomDestructableInRectSimpleBJ(Aa))
call TriggerExecute(cZ)
call gv(1.5)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_MASKED,Ab)
endfunction
function Jt takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function JT takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==F)
endfunction
function Ju takes nothing returns boolean
return GetBooleanAnd(Jt(),JT())
endfunction
function JU takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)and(CountUnitsInGroup(GQ(bj_mapInitialPlayableArea,Condition(function Ju)))==0)
endfunction
function Jv takes nothing returns nothing
call gv(2)
set W=1
call TriggerExecute(dl)
endfunction
function JV takes nothing returns nothing
call SetCameraBoundsToRectForPlayerBJ(GetEnumPlayer(),AF)
endfunction
function Jw takes nothing returns nothing
call SetUnitOwner(GetEnumUnit(),Player(14),false)
endfunction
function JW takes nothing returns boolean
return(IsTriggerEnabled(GetTriggeringTrigger())==false)
endfunction
function Jx takes nothing returns boolean
return(IsTriggerEnabled(GetTriggeringTrigger())==false)
endfunction
function JX takes nothing returns boolean
return(IsTriggerEnabled(GetTriggeringTrigger())==false)
endfunction
function Jy takes nothing returns nothing
set F='h00F'
set E=AZ
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"TRIGSTR_173",1,15.,false)
call gv(1.)
call SetTimeOfDay(24.)
call SetTerrainFogExBJ(0,1400.,4000.,0,.0,8.,30.)
call PlayMusicBJ(cj)
call CreateFogModifierRectBJ(true,Player(15),FOG_OF_WAR_VISIBLE,AF)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_VISIBLE,AF)
call ForForce(bj_FORCE_ALL_PLAYERS,function JV)
call EnableTrigger(dM)
call EnableTrigger(dN)
call ForGroupBJ(GU('n008'),function Jw)
set T[1]=EK
set T[2]=EN
set T[3]=En
set T[4]=Et
set T[5]=Em
set T[6]=EM
set T[7]=EJ
set T[8]=ES
set T[9]=Es
set T[10]=ER
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitUserData(T[bj_forLoopAIndex],bj_forLoopAIndex)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set s[2]=1500
call gv(4.)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,EH,"Quizmaster",cQ,"TRIGSTR_174",1,12.,false)
if(JW())then
return
endif
call gv(8.)
if(Jx())then
return
endif
call StartTimerBJ(B,false,15.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"Choose a Spot")
call gv(1.)
if(JX())then
return
endif
call EnableTrigger(dn)
endfunction
function JY takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h00F')
endfunction
function Jz takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n008')
endfunction
function JZ takes nothing returns boolean
return(GetOwningPlayer(Q)!=Player(14))
endfunction
function J0 takes nothing returns boolean
return(CountUnitsInGroup(GU(F))==0)
endfunction
function J1 takes nothing returns nothing
set Q=GroupPickRandomUnit(GS(80.,GetUnitLoc(GetTriggerUnit()),Condition(function Jz)))
if(JZ())then
return
endif
call SetUnitOwner(Q,GetOwningPlayer(GetTriggerUnit()),true)
call SetUnitPositionLocFacingLocBJ(GetTriggerUnit(),GetUnitLoc(Q),OffsetLocation(GetRectCenter(Ae),0,150.))
call PauseUnit(GetTriggerUnit(),true)
call gv(.5)
call Ge(GetTriggerUnit(),'h00E',1)
set e[(1+GetPlayerId(GetOwningPlayer(bj_lastReplacedUnit)))]=bj_lastReplacedUnit
call gv(.5)
if(J0())then
call TriggerExecute(do)
endif
endfunction
function J2 takes nothing returns nothing
call SetUnitInvulnerable(GetEnumUnit(),true)
endfunction
function J3 takes nothing returns nothing
call SetUnitInvulnerable(GetEnumUnit(),false)
endfunction
function J4 takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call IssueTargetOrderById(EH,851985,GroupPickRandomUnit(GW(GetOwningPlayer(Q),'h00E')))
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call PauseTimerBJ(true,bj_lastStartedTimer)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,EH,"Quizmaster",cR,"TRIGSTR_796",1,7.,false)
call ForGroupBJ(GU('h00E'),function J2)
call gv(.5)
call SetUnitOwner(EH,Player(11),false)
call gv(5.)
call SetUnitOwner(EH,Player(15),false)
call ForGroupBJ(GU('h00E'),function J3)
call TriggerExecute(do)
endfunction
function J5 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function J6 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h00E')
endfunction
function J7 takes nothing returns boolean
return GetBooleanAnd(J5(),J6())
endfunction
function J8 takes nothing returns boolean
return(CountUnitsInGroup(GQ(AF,Condition(function J7)))==0)
endfunction
function J9 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h00E')
endfunction
function ka takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h00F')
endfunction
function kA takes nothing returns boolean
return(GetBooleanOr(J9(),ka()))
endfunction
function kb takes nothing returns nothing
if(kA())then
call SetUnitOwner(GroupPickRandomUnit(GW(GetOwningPlayer(GetTriggerUnit()),'n008')),Player(15),true)
if(J8())then
call TriggerExecute(dt)
endif
endif
endfunction
function kB takes nothing returns boolean
return(IsTriggerEnabled(GetTriggeringTrigger())==false)
endfunction
function kc takes nothing returns nothing
call SetUnitOwner(GetEnumUnit(),Player(15),false)
endfunction
function kC takes nothing returns nothing
call DestructableRestoreLife(GetEnumDestructable(),GetDestructableMaxLife(GetEnumDestructable()),true)
endfunction
function kd takes nothing returns boolean
return(bj_forLoopAIndex==1)
endfunction
function kD takes nothing returns boolean
return(bj_forLoopAIndex==2)
endfunction
function ke takes nothing returns boolean
return(bj_forLoopAIndex==3)
endfunction
function kE takes nothing returns boolean
return(bj_forLoopAIndex<=3)
endfunction
function kf takes nothing returns nothing
if(kB())then
return
endif
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(dn)
call DisableTrigger(dm)
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call PauseTimerBJ(true,bj_lastStartedTimer)
call ForGroupBJ(GW(Player(14),'n008'),function kc)
call EnumDestructablesInRectAll(AF,function kC)
call hc(bj_FORCE_ALL_PLAYERS,"")
call LeaderboardAddItemBJ(Player(0),bj_lastCreatedLeaderboard,"Gold Won",0)
call LeaderboardAddItemBJ(Player(1),bj_lastCreatedLeaderboard,"Gold Needed",s[2])
call LeaderboardSetLabelColorBJ(bj_lastCreatedLeaderboard,'d',80.,20.,0)
call LeaderboardSetValueColorBJ(bj_lastCreatedLeaderboard,'d',80.,20,0)
call G9(EH,GroupPickRandomUnit(GU('h00E')),.3)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,EH,"Quizmaster",cr,"TRIGSTR_197",1,8.,false)
call gv(6.)
set n[1]=PLAYER_COLOR_ORANGE
set n[2]=PLAYER_COLOR_BLUE
set n[3]=PLAYER_COLOR_GREEN
set N[1]='n009'
set N[2]='n00B'
set N[3]='n00A'
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(kE())then
call CreateNUnitsAtLoc(1,N[bj_forLoopAIndex],Player(15),GetRandomLocInRect(Ae),GetRandomReal(0,360))
if(kd())then
call CreateTextTagLocBJ("Spiders",OffsetLocation(GetUnitLoc(bj_lastCreatedUnit),-50.,0),30.,10,'d',80.,20.,0)
endif
if(kD())then
call CreateTextTagLocBJ("Skeletons",OffsetLocation(GetUnitLoc(bj_lastCreatedUnit),-50.,0),50.,10,'d',80.,20.,0)
endif
if(ke())then
call CreateTextTagLocBJ("Ghosts",OffsetLocation(GetUnitLoc(bj_lastCreatedUnit),-50.,.0),80.,10,'d',80.,20.,0)
endif
set U[bj_forLoopAIndex]=bj_lastCreatedTextTag
else
set M=GetRandomInt(1,3)
call CreateNUnitsAtLoc(1,N[M],Player(15),GetRandomLocInRect(Ae),GetRandomReal(0,360))
endif
set M=GetRandomInt(1,3)
call SetUnitColor(bj_lastCreatedUnit,n[M])
call AddSpecialEffectLocBJ(GetUnitLoc(bj_lastCreatedUnit),"Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageDeathCaster.mdl")
set R[bj_forLoopAIndex]=bj_lastCreatedEffect
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call G9(EH,GroupPickRandomUnit(GU('h00E')),.3)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,EH,"Quizmaster",cQ,"TRIGSTR_203",1,9.,false)
call gv(7.)
call G9(EH,GroupPickRandomUnit(GU('h00E')),.3)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,EH,"Quizmaster",cr,"TRIGSTR_658",1,8.5,false)
call gv(6.5)
call TriggerExecute(dO)
endfunction
function kF takes nothing returns boolean
return(IsTriggerEnabled(GetTriggeringTrigger())==false)
endfunction
function kg takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n009')
endfunction
function kG takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00B')
endfunction
function kh takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00A')
endfunction
function kH takes nothing returns boolean
return GetBooleanOr(kG(),kh())
endfunction
function ki takes nothing returns boolean
return GetBooleanOr(kg(),kH())
endfunction
function kI takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageDeathCaster.mdl")
set V[2]=(V[2]+1)
set R[V[2]]=bj_lastCreatedEffect
call RemoveUnit(GetEnumUnit())
endfunction
function kj takes nothing returns nothing
if(kF())then
return
endif
call DisableTrigger(GetTriggeringTrigger())
call EnableTrigger(dp)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call DestroyEffect(R[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call DestroyTextTag(U[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set V[2]=0
call ForGroupBJ(GQ(AF,Condition(function ki)),function kI)
call SetUnitFacingTimed(EH,270.,.3)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,EH,"Quizmaster",cR,"Let's play: The Quiz of Death!",1,4.,false)
call StopMusic(true)
call gv(1.3)
call PlayMusicBJ(cU)
call gv(1.2)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,EH,"Quizmaster",cr,"Start the clock.",1,1.,false)
call gv(1.)
set s[1]=0
call TriggerExecute(ds)
call PlaySoundBJ(cH)
call StartTimerBJ(B,false,150.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"Time Left")
set w=bj_lastCreatedTimerDialog
set Q=null
call TriggerExecute(dP)
call gv(1.)
call StartTimerBJ(m[1],false,10.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"Answer Question")
call PauseTimerBJ(true,bj_lastStartedTimer)
call TriggerExecute(dq)
call EnableTrigger(dr)
call EnableTrigger(dt)
set S=100.
call EnableTrigger(dR)
endfunction
function kJ takes nothing returns nothing
call PauseGameOff()
endfunction
function kk takes nothing returns boolean
return(bj_forLoopAIndex<=10)and(GetOwningPlayer(T[bj_forLoopAIndex])!=Player(15))
endfunction
function kK takes nothing returns boolean
return(bj_forLoopAIndex>=11)and(GetOwningPlayer(T[(bj_forLoopAIndex-10)])!=Player(15))
endfunction
function kl takes nothing returns nothing
set bj_forLoopAIndex=(GetUnitUserData(Q)+1)
set bj_forLoopAIndexEnd=(GetUnitUserData(Q)+10)
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(kk())then
set Q=T[bj_forLoopAIndex]
return
endif
if(kK())then
set Q=T[(bj_forLoopAIndex-10)]
return
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function kL takes nothing returns boolean
return(IsTriggerEnabled(GetTriggeringTrigger())==false)
endfunction
function km takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n009')
endfunction
function kM takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00B')
endfunction
function kn takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00A')
endfunction
function kN takes nothing returns boolean
return GetBooleanOr(kM(),kn())
endfunction
function ko takes nothing returns boolean
return GetBooleanOr(km(),kN())
endfunction
function kO takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageDeathCaster.mdl")
set V[2]=(V[2]+1)
set R[V[2]]=bj_lastCreatedEffect
call RemoveUnit(GetEnumUnit())
endfunction
function kp takes nothing returns boolean
return(IsTriggerEnabled(GetTriggeringTrigger())==false)
endfunction
function kP takes nothing returns boolean
return(M>=1)
endfunction
function kq takes nothing returns boolean
return(M<=3)
endfunction
function kQ takes nothing returns boolean
return GetBooleanAnd(kP(),kq())
endfunction
function kr takes nothing returns boolean
return(M>=4)
endfunction
function kR takes nothing returns boolean
return(M<=6)
endfunction
function ks takes nothing returns boolean
return GetBooleanAnd(kr(),kR())
endfunction
function kS takes nothing returns boolean
return(M==2)
endfunction
function kt takes nothing returns boolean
return(M==3)
endfunction
function kT takes nothing returns boolean
return(N[0]=='n009')
endfunction
function ku takes nothing returns boolean
return(M==2)
endfunction
function kU takes nothing returns boolean
return(M==3)
endfunction
function kv takes nothing returns boolean
return(n[0]==PLAYER_COLOR_ORANGE)
endfunction
function kV takes nothing returns boolean
return(M==2)
endfunction
function kw takes nothing returns boolean
return(M==3)
endfunction
function kW takes nothing returns boolean
return(N[1]==0)
endfunction
function kx takes nothing returns boolean
return(N[1]=='n00B')
endfunction
function kX takes nothing returns boolean
return(N[1]=='n009')
endfunction
function ky takes nothing returns boolean
return(M==2)
endfunction
function kY takes nothing returns boolean
return(M==3)
endfunction
function kz takes nothing returns boolean
return(n[1]==ConvertPlayerColor(12))
endfunction
function kZ takes nothing returns boolean
return(n[1]==PLAYER_COLOR_BLUE)
endfunction
function k0 takes nothing returns boolean
return(n[1]==PLAYER_COLOR_ORANGE)
endfunction
function k1 takes nothing returns boolean
return(M==1)
endfunction
function k2 takes nothing returns boolean
return(M==2)
endfunction
function k3 takes nothing returns boolean
return GetBooleanOr(k1(),k2())
endfunction
function k4 takes nothing returns boolean
return(M==1)
endfunction
function k5 takes nothing returns boolean
return(M==3)
endfunction
function k6 takes nothing returns boolean
return GetBooleanOr(k4(),k5())
endfunction
function k7 takes nothing returns boolean
return(N[2]==0)
endfunction
function k8 takes nothing returns boolean
return(n[2]==ConvertPlayerColor(12))
endfunction
function k9 takes nothing returns boolean
return(N[3]==0)
endfunction
function Ka takes nothing returns boolean
return(bj_forLoopAIndex==1)
endfunction
function KA takes nothing returns boolean
return(N[0]!=0)
endfunction
function Kb takes nothing returns boolean
return GetBooleanAnd(Ka(),KA())
endfunction
function KB takes nothing returns boolean
return(n[3]==ConvertPlayerColor(12))
endfunction
function Kc takes nothing returns boolean
return(bj_forLoopAIndex==1)
endfunction
function KC takes nothing returns boolean
return(n[0]!=ConvertPlayerColor(12))
endfunction
function Kd takes nothing returns boolean
return GetBooleanAnd(Kc(),KC())
endfunction
function KD takes nothing returns boolean
return(M==1)
endfunction
function Ke takes nothing returns boolean
return(n[0]==ConvertPlayerColor(12))
endfunction
function KE takes nothing returns boolean
return GetBooleanOr(KD(),Ke())
endfunction
function Kf takes nothing returns boolean
return(GetRandomInt(1,2)==1)
endfunction
function KF takes nothing returns boolean
return(bj_forLoopAIndex<=10)
endfunction
function Kg takes nothing returns boolean
return(GetBooleanOr(Kf(),KF()))
endfunction
function KG takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),P))
endfunction
function Kh takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==N[0])
endfunction
function KH takes nothing returns boolean
return GetBooleanAnd(KG(),Kh())
endfunction
function Ki takes nothing returns boolean
return(N[0]!=0)
endfunction
function KI takes nothing returns boolean
return(n[0]==ConvertPlayerColor(12))
endfunction
function Kj takes nothing returns boolean
return(n[0]==PLAYER_COLOR_ORANGE)
endfunction
function KJ takes nothing returns boolean
return(n[0]==PLAYER_COLOR_BLUE)
endfunction
function Kk takes nothing returns boolean
return(n[0]==PLAYER_COLOR_GREEN)
endfunction
function KK takes nothing returns boolean
return(N[0]==0)
endfunction
function Kl takes nothing returns boolean
return(N[0]=='n009')
endfunction
function KL takes nothing returns boolean
return(N[0]=='n00B')
endfunction
function Km takes nothing returns boolean
return(N[0]=='n00A')
endfunction
function KM takes nothing returns nothing
if(kL())then
return
endif
call DestroyEffect(R[0])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call DestroyEffect(R[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call G9(EH,Q,.3)
call AddSpecialEffectLocBJ(GetUnitLoc(GroupPickRandomUnit(GW(GetOwningPlayer(Q),'h00E'))),"Abilities\\Spells\\Other\\HowlOfTerror\\HowlTarget.mdl")
set R[0]=bj_lastCreatedEffect
set V[2]=0
call ForGroupBJ(GQ(AF,Condition(function ko)),function kO)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,EH," Quizmaster",cQ,(GetPlayerName(GetOwningPlayer(Q))+","),1,7.,false)
call gv(.7)
if(kp())then
return
endif
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call DestroyEffect(R[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set N[bj_forLoopAIndex]=0
set n[bj_forLoopAIndex]=ConvertPlayerColor(12)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set n[0]=PLAYER_COLOR_ORANGE
set N[0]='n009'
set M=GetRandomInt(1,10)
if(kQ())then
set n[0]=ConvertPlayerColor(12)
endif
if(ks())then
set N[0]=0
endif
if(kT())then
set M=GetRandomInt(1,3)
if(kS())then
set N[0]='n00B'
endif
if(kt())then
set N[0]='n00A'
endif
set N[1]=N[0]
endif
if(kv())then
set M=GetRandomInt(1,3)
if(ku())then
set n[0]=PLAYER_COLOR_BLUE
endif
if(kU())then
set n[0]=PLAYER_COLOR_GREEN
endif
set n[1]=n[0]
endif
if(kW())then
set N[1]='n009'
set M=GetRandomInt(1,3)
if(kV())then
set N[1]='n00B'
endif
if(kw())then
set N[1]='n00A'
endif
endif
if(kX())then
set N[2]='n00B'
set N[3]='n00A'
else
if(kx())then
set N[2]='n009'
set N[3]='n00A'
else
set N[2]='n009'
set N[3]='n00B'
endif
endif
if(kz())then
set n[1]=PLAYER_COLOR_ORANGE
set M=GetRandomInt(1,3)
if(ky())then
set n[1]=PLAYER_COLOR_BLUE
endif
if(kY())then
set n[1]=PLAYER_COLOR_GREEN
endif
endif
if(k0())then
set n[2]=PLAYER_COLOR_BLUE
set n[3]=PLAYER_COLOR_GREEN
else
if(kZ())then
set n[2]=PLAYER_COLOR_ORANGE
set n[3]=PLAYER_COLOR_GREEN
else
set n[2]=PLAYER_COLOR_ORANGE
set n[3]=PLAYER_COLOR_BLUE
endif
endif
set M=GetRandomInt(1,5)
set o=GetRandomInt(2,3)
if(k3())then
set N[o]=0
endif
set o=GetRandomInt(2,3)
if(k6())then
set n[o]=ConvertPlayerColor(12)
endif
if(k7())then
set N[2]=N[3]
set N[3]=0
endif
if(k8())then
set n[2]=n[3]
set n[3]=ConvertPlayerColor(12)
endif
call GroupClear(P)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=18
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Kg())then
if(k9())then
set M=GetRandomInt(1,2)
else
set M=GetRandomInt(1,3)
endif
if(Kb())then
set M=1
endif
call CreateNUnitsAtLoc(1,N[M],Player(15),GetRandomLocInRect(Ae),GetRandomReal(0,360))
if(KB())then
set M=GetRandomInt(1,2)
else
set M=GetRandomInt(1,3)
endif
if(Kd())then
set M=1
endif
call SetUnitColor(bj_lastCreatedUnit,n[M])
if(KE())then
call GroupAddUnit(P,bj_lastCreatedUnit)
endif
call AddSpecialEffectLocBJ(GetUnitLoc(bj_lastCreatedUnit),"Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageDeathCaster.mdl")
set R[bj_forLoopAIndex]=bj_lastCreatedEffect
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851990,GetRandomLocInRect(Ae))
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Ki())then
set O=I2S(CountUnitsInGroup(GQ(AF,Condition(function KH))))
else
set O=I2S(CountUnitsInGroup(P))
endif
if(KI())then
set q[1]=""
endif
if(Kj())then
set q[1]=" ORANGE"
endif
if(KJ())then
set q[1]=" BLUE"
endif
if(Kk())then
set q[1]=" GREEN"
endif
if(KK())then
set q[2]=" things"
endif
if(Kl())then
set q[2]=" SPIDERS"
endif
if(KL())then
set q[2]=" SKELETONS"
endif
if(Km())then
set q[2]=" GHOSTS"
endif
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,EH," Quizmaster",null,(("How many"+(q[1]+q[2]))+"?"),1,6.,false)
call StartTimerBJ(m[1],false,10.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"Answer Question")
call EnableTrigger(dQ)
call TriggerSleepAction(.5)
endfunction
function Kn takes nothing returns boolean
return(GetTriggerPlayer()==GetOwningPlayer(Q))
endfunction
function KN takes nothing returns boolean
return(GetEventPlayerChatString()=="b")
endfunction
function Ko takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h00E')
endfunction
function KO takes nothing returns nothing
call IssueTargetOrderById(GetEnumUnit(),851985,ET)
endfunction
function Kp takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function KP takes nothing returns boolean
return(s[1]>=s[2])
endfunction
function Kq takes nothing returns boolean
return(GetEventPlayerChatString()==O)
endfunction
function KQ takes nothing returns nothing
if(KN())then
return
endif
call DisableTrigger(GetTriggeringTrigger())
call PauseTimerBJ(true,m[1])
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,GroupPickRandomUnit(GV(GetOwningPlayer(Q),Condition(function Ko))),(" "+GetPlayerName(GetOwningPlayer(Q))),null,GetEventPlayerChatString(),1,2.,false)
call gv(.2)
if(Kq())then
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,EH," Quizmaster",cr,"CORRECT!",1,2.,false)
set s[1]=(s[1]+'d')
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'n00D',Player(15),GetRandomLocInRect(AE),GetRandomReal(0,360))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GU('n00D'),function KO)
call gv(.2)
call ForGroupBJ(GU('n00D'),function Kp)
call gv(.3)
call TriggerExecute(ds)
if(KP())then
call TriggerExecute(dt)
return
endif
call TriggerExecute(dP)
call TriggerExecute(dq)
else
call IssueTargetOrderById(EH,851985,GroupPickRandomUnit(GW(GetOwningPlayer(Q),'h00E')))
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,EH,"Quizmaster",cR,"WRONG!",1,2.,false)
call TriggerExecute(dP)
call gv(.4)
call TriggerExecute(ds)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,EH," Quizmaster",null,("The correct answer was "+(O+".")),1,3.,false)
call gv(1.2)
call TriggerExecute(dq)
endif
endfunction
function Kr takes nothing returns nothing
call DisableTrigger(dQ)
call PauseTimerBJ(true,bj_lastStartedTimer)
call IssueTargetOrderById(EH,851985,GroupPickRandomUnit(GW(GetOwningPlayer(Q),'h00E')))
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,EH," Quizmaster",cR,"TIME UP!",1,2.,false)
call TriggerExecute(ds)
call TriggerExecute(dP)
call gv(.4)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,EH," Quizmaster",null,("The answer was "+(O+".")),1,3.,false)
call gv(1.2)
call TriggerExecute(dq)
endfunction
function KR takes nothing returns nothing
set S=(S+2.)
call SetUnitScalePercent(ET,S,S,S)
endfunction
function Ks takes nothing returns boolean
return(s[1]>=s[2])
endfunction
function KS takes nothing returns nothing
call LeaderboardSetPlayerItemValueBJ(Player(0),bj_lastCreatedLeaderboard,s[1])
call LeaderboardSetPlayerItemValueBJ(Player(1),bj_lastCreatedLeaderboard,(s[2]-s[1]))
if(Ks())then
call LeaderboardSetPlayerItemValueBJ(Player(1),bj_lastCreatedLeaderboard,0)
endif
endfunction
function Kt takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h00F')
endfunction
function KT takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n009')
endfunction
function Ku takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00B')
endfunction
function KU takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00A')
endfunction
function Kv takes nothing returns boolean
return GetBooleanOr(Ku(),KU())
endfunction
function KV takes nothing returns boolean
return GetBooleanOr(KT(),Kv())
endfunction
function Kw takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function KW takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DestroyFogModifier(bj_lastCreatedFogModifier)
call DestroyLeaderboard(bj_lastCreatedLeaderboard)
call DestroyTimerDialog(w)
call SetUnitOwner(EH,Player(15),false)
call ForGroupBJ(GQ(AF,Condition(function KV)),function Kw)
call KillDestructable(RandomDestructableInRectSimpleBJ(Af))
call TriggerExecute(cZ)
call gv(1.5)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_MASKED,AF)
endfunction
function Kx takes nothing returns boolean
return(IsTriggerEnabled(GetTriggeringTrigger())==false)
endfunction
function KX takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n009')
endfunction
function Ky takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00B')
endfunction
function KY takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00A')
endfunction
function Kz takes nothing returns boolean
return GetBooleanOr(Ky(),KY())
endfunction
function KZ takes nothing returns boolean
return GetBooleanOr(KX(),Kz())
endfunction
function K0 takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageDeathCaster.mdl")
call RemoveUnit(GetEnumUnit())
endfunction
function K1 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function K2 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h00E')
endfunction
function K3 takes nothing returns boolean
return GetBooleanAnd(K1(),K2())
endfunction
function K4 takes nothing returns boolean
return(CountUnitsInGroup(GQ(AF,Condition(function K3)))==0)
endfunction
function K5 takes nothing returns boolean
return(TimerGetRemaining(B)<=.0)
endfunction
function K6 takes nothing returns boolean
return(M==1)
endfunction
function K7 takes nothing returns boolean
return(M==2)
endfunction
function K8 takes nothing returns boolean
return(M==3)
endfunction
function K9 takes nothing returns boolean
return(M==4)
endfunction
function la takes nothing returns boolean
return(M==5)
endfunction
function lA takes nothing returns nothing
call SetUnitOwner(GetEnumUnit(),Player(15),true)
endfunction
function lB takes nothing returns boolean
return(M==1)
endfunction
function lc takes nothing returns boolean
return(M==2)
endfunction
function lC takes nothing returns boolean
return(M==3)
endfunction
function ld takes nothing returns boolean
return(M==4)
endfunction
function lD takes nothing returns boolean
return(M==5)
endfunction
function le takes nothing returns nothing
call SetUnitOwner(GetEnumUnit(),Player(15),true)
endfunction
function lE takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function lf takes nothing returns boolean
return(IsUnitAliveBJ(e[bj_forLoopAIndex]))
endfunction
function lF takes nothing returns boolean
return(s[1]>=s[2])
endfunction
function lg takes nothing returns nothing
if(Kx())then
return
endif
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(dp)
call PlaySoundBJ(cH)
call StopMusic(true)
call SetUnitFacingTimed(EH,270.,.3)
call DestroyEffect(R[0])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call DestroyEffect(R[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call PauseTimerBJ(true,bj_lastStartedTimer)
call ForGroupBJ(GQ(AF,Condition(function KZ)),function K0)
call DisableTrigger(dq)
call DisableTrigger(dQ)
call DisableTrigger(dr)
if(K5())then
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,EH,"Quizmaster",cR,"The time is up!",1,1.,false)
call PlaySoundBJ(cH)
call gv(1.)
call PlayMusicBJ(cj)
call gv(2.)
else
if(K4())then
call PlaySoundBJ(cH)
call gv(1.)
call PlayMusicBJ(cj)
else
call PlaySoundBJ(cH)
call gv(1.)
call PlayMusicBJ(cj)
call gv(1.)
endif
endif
if(lF())then
set M=GetRandomInt(1,5)
if(lB())then
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,EH,"Quizmaster",cr,"TRIGSTR_895",1,10.,false)
endif
if(lc())then
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,EH,"Quizmaster",cr,"Now get out of here! You fools!",1,10.,false)
endif
if(lC())then
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,EH,"Quizmaster",cr,"TRIGSTR_899",1,10.,false)
endif
if(ld())then
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,EH,"Quizmaster",cr,"TRIGSTR_901",1,10.,false)
endif
if(lD())then
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,EH,"Quizmaster",cr,"TRIGSTR_903",1,10.,false)
endif
call gv(4.)
call ForGroupBJ(GU('n008'),function le)
call EnumDestructablesInRectAll(AF,function lE)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(lf())then
call Ge(e[bj_forLoopAIndex],'h00F',1)
set e[bj_forLoopAIndex]=bj_lastReplacedUnit
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call KillUnit(EH)
call CreateDeadDestructableLocBJ('OTsp',GetRectCenter(Af),270.,.7,0)
call DestructableRestoreLife(bj_lastCreatedDestructable,GetDestructableMaxLife(bj_lastCreatedDestructable),true)
call gv(5.)
call EnableTrigger(dS)
else
set M=GetRandomInt(1,5)
if(K6())then
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,EH,"Quizmaster",cr,"Worst quiz ever.",1,10.,false)
endif
if(K7())then
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,EH,"Quizmaster",cr,"TRIGSTR_907",1,10.,false)
endif
if(K8())then
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,EH,"Quizmaster",cr,"TRIGSTR_909",1,10.,false)
endif
if(K9())then
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,EH,"Quizmaster",cr,"TRIGSTR_911",1,10.,false)
endif
if(la())then
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,EH,"Quizmaster",cr,"TRIGSTR_913",1,10.,false)
endif
call gv(4.)
call ForGroupBJ(GU('n008'),function lA)
call SetUnitOwner(EH,Player(12),false)
set W=1
call TriggerExecute(dS)
endif
endfunction
function lG takes nothing returns nothing
call SetCameraBoundsToRectForPlayerBJ(GetEnumPlayer(),Al)
endfunction
function lh takes nothing returns nothing
call SetPlayerAllianceBJ(Player(10),ALLIANCE_SHARED_SPELLS,true,GetEnumPlayer())
endfunction
function lH takes nothing returns nothing
call SetUnitManaPercentBJ(GetEnumUnit(),(I2R(CountPlayersInForceBJ(k))*10.))
endfunction
function li takes nothing returns nothing
set F='h00G'
set E=A1
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"TRIGSTR_463",1,27.,false)
call gv(1.)
call SetTimeOfDay(18.5)
call SetTerrainFogExBJ(0,1300.,3000.,0,8.,16.,24.)
call PlayMusicExBJ(cT,65.,2.)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_VISIBLE,Al)
call ForForce(bj_FORCE_ALL_PLAYERS,function lG)
call ForForce(bj_FORCE_ALL_PLAYERS,function lh)
call ForGroupBJ(Gs(Al,Player(10)),function lH)
call EnableTrigger(dw)
call gv(17.)
set S=5.5
call EnableTrigger(dU)
call EnableTrigger(du)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"FIGHT",1,5.,false)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=(CountPlayersInForceBJ(k)+0)
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLocFacingLocBJ(1,'ogru',Player(11),GetRandomLocInRect(Ak),GetRandomLocInRect(Ak))
call SetUnitAnimation(bj_lastCreatedUnit,"birth")
call QueueUnitAnimation(bj_lastCreatedUnit,"stand")
call SetUnitColor(bj_lastCreatedUnit,PLAYER_COLOR_LIGHT_GRAY)
call AddSpecialEffectLocBJ(GetUnitLoc(bj_lastCreatedUnit),"Abilities\\Spells\\Undead\\RaiseSkeletonWarrior\\RaiseSkeleton.mdl")
call PauseUnit(bj_lastCreatedUnit,true)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call gv(.8)
call GC(false)
endfunction
function lI takes nothing returns nothing
set S=(S+.1)
endfunction
function lj takes nothing returns boolean
return(RectContainsUnit(Al,GetFilterUnit()))
endfunction
function lJ takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function lk takes nothing returns boolean
return GetBooleanAnd(lj(),lJ())
endfunction
function lK takes nothing returns boolean
return(CountUnitsInGroup(GV(Player(11),Condition(function lk)))==0)
endfunction
function ll takes nothing returns boolean
return(IsTriggerEnabled(dv)==false)
endfunction
function lL takes nothing returns nothing
if(lK())then
call TriggerExecute(dv)
endif
call PauseUnit(GetTriggerUnit(),true)
call gv(2.)
call SetUnitTimeScalePercent(GetTriggerUnit(),.0)
call gv(S)
call RemoveUnit(GetTriggerUnit())
if(ll())then
return
endif
call CreateNUnitsAtLoc(1,GetUnitTypeId(GetTriggerUnit()),Player(11),GetUnitLoc(GetTriggerUnit()),GetUnitFacing(GetTriggerUnit()))
call SetUnitColor(bj_lastCreatedUnit,PLAYER_COLOR_LIGHT_GRAY)
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Undead\\RaiseSkeletonWarrior\\RaiseSkeleton.mdl")
endfunction
function lm takes nothing returns boolean
return(RectContainsUnit(Al,GetFilterUnit()))
endfunction
function lM takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function ln takes nothing returns boolean
return GetBooleanAnd(lm(),lM())
endfunction
function lN takes nothing returns boolean
return(CountUnitsInGroup(GV(Player(11),Condition(function ln)))==0)
endfunction
function lo takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(du)
call DisableTrigger(dU)
call gv(1.)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"Completed",1,10.,false)
call CreateDeadDestructableLocBJ('OTsp',GetRectCenter(AK),270.,.7,0)
call DestructableRestoreLife(bj_lastCreatedDestructable,GetDestructableMaxLife(bj_lastCreatedDestructable),true)
call gv(5.)
call EnableTrigger(dV)
endfunction
function lO takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)
endfunction
function lp takes nothing returns nothing
call SetPlayerAllianceBJ(Player(10),ALLIANCE_SHARED_SPELLS,false,GetEnumPlayer())
endfunction
function lP takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(dw)
call DestroyFogModifier(bj_lastCreatedFogModifier)
call DisableTrigger(du)
call DisableTrigger(dU)
call KillDestructable(RandomDestructableInRectSimpleBJ(AK))
call TriggerExecute(cZ)
call ForForce(bj_FORCE_ALL_PLAYERS,function lp)
call gv(1.5)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_MASKED,Al)
endfunction
function lq takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function lQ takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==F)
endfunction
function lr takes nothing returns boolean
return GetBooleanAnd(lq(),lQ())
endfunction
function lR takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)and(CountUnitsInGroup(GQ(bj_mapInitialPlayableArea,Condition(function lr)))==0)
endfunction
function ls takes nothing returns nothing
call gv(2)
set W=1
call TriggerExecute(dV)
endfunction
function lS takes nothing returns nothing
call SetCameraBoundsToRectForPlayerBJ(GetEnumPlayer(),aw)
endfunction
function lt takes nothing returns nothing
set F='h00I'
set E=AY
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"TRIGSTR_527",1,27.,false)
call gv(1.)
call SetTimeOfDay(19.)
call SetTerrainFogExBJ(0,1400.,4000.,0,10.,.0,30.)
call PlayMusicBJ(cl)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_VISIBLE,aw)
call ForForce(bj_FORCE_ALL_PLAYERS,function lS)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=(CountPlayersInForceBJ(k)+1)
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'uobs',Player(11),OffsetLocation(GetRectCenter(aV),(((10.-I2R(CountPlayersInForceBJ(k)))*139.64)+(I2R((bj_forLoopAIndex-1))*279.28)),0),270.)
call SetUnitColor(bj_lastCreatedUnit,PLAYER_COLOR_PURPLE)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call gv(17.)
call EnableTrigger(dX)
call EnableTrigger(dY)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"START",1,5.,false)
call TriggerExecute(dx)
endfunction
function lT takes nothing returns boolean
return(IsTriggerEnabled(GetTriggeringTrigger())==false)
endfunction
function lu takes nothing returns boolean
return(IsTriggerEnabled(GetTriggeringTrigger())==false)
endfunction
function lU takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='uobs')
endfunction
function lv takes nothing returns nothing
call IssueImmediateOrderById(GetEnumUnit(),852531)
endfunction
function lV takes nothing returns nothing
call StartTimerBJ(B,false,90.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"Time Left")
call EnableTrigger(dZ)
call gv(6.)
call EnableTrigger(d3)
call EnableTrigger(d0)
call gv(7.)
call EnableTrigger(d1)
call gv(8.)
call EnableTrigger(d2)
call gv(9.)
if(lT())then
return
endif
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"TRIGSTR_557",1,15.,false)
call EnableTrigger(dy)
set S=(45./I2R((CountPlayersInForceBJ(k)+1)))
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=CountPlayersInForceBJ(k)
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(lu())then
return
endif
call gv(S)
call ForGroupBJ(GZ(1,GQ(aw,Condition(function lU))),function lv)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function lw takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(11))
endfunction
function lW takes nothing returns boolean
return(GetFilterUnit()!=GetEnumUnit())
endfunction
function lx takes nothing returns nothing
call IssueTargetOrderById(GetEnumUnit(),851985,GroupPickRandomUnit(GS(400.,GetUnitLoc(GetEnumUnit()),Condition(function lW))))
call SetWidgetLife(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())-100.))
endfunction
function lX takes nothing returns nothing
call ExplodeUnitBJ(GetTriggerUnit())
call ForGroupBJ(Gs(aU,Player(10)),function lx)
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Human\\FlameStrike\\FlameStrike1.mdl")
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,(I2S(R2I((GetUnitStateSwap(UNIT_STATE_LIFE,EU)/100.)))+" HITS LEFT"),1,10.,false)
endfunction
function ly takes nothing returns boolean
return(CountUnitsInGroup(GU('u00A'))>=1)
endfunction
function lY takes nothing returns nothing
call IssuePointOrderByIdLoc(GetEnumUnit(),851986,OffsetLocation(GetUnitLoc(GetEnumUnit()),GetRandomReal(-500.,500.),-400.))
endfunction
function lz takes nothing returns nothing
call ForGroupBJ(GU('u00A'),function lY)
endfunction
function lZ takes nothing returns boolean
return(M==1)
endfunction
function l0 takes nothing returns boolean
return(M==1)
endfunction
function l1 takes nothing returns boolean
return(M==2)
endfunction
function l2 takes nothing returns boolean
return(M==2)
endfunction
function l3 takes nothing returns boolean
return(M==3)
endfunction
function l4 takes nothing returns boolean
return(M==3)
endfunction
function l5 takes nothing returns nothing
set M=GetRandomInt(1,3)
if(lZ())then
call StopSoundBJ(cs,false)
endif
if(l0())then
call PlaySoundAtPointBJ(cs,'d',GetUnitLoc(GetTriggerUnit()),100.)
endif
if(l1())then
call StopSoundBJ(cS,false)
endif
if(l2())then
call PlaySoundAtPointBJ(cS,'d',GetUnitLoc(GetTriggerUnit()),100.)
endif
if(l3())then
call StopSoundBJ(ct,false)
endif
if(l4())then
call PlaySoundAtPointBJ(ct,'d',GetUnitLoc(GetTriggerUnit()),100.)
endif
endfunction
function l6 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='uobs')
endfunction
function l7 takes nothing returns nothing
call SetUnitAnimation(GetEnumUnit(),"attack")
call CreateNUnitsAtLoc(1,'u008',Player(11),OffsetLocation(GetUnitLoc(GetEnumUnit()),GetRandomReal(-140.,140.),0),GetRandomReal(0,360))
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851986,OffsetLocation(GetUnitLoc(bj_lastCreatedUnit),.0,(-13.*128.)))
endfunction
function l8 takes nothing returns nothing
call ForGroupBJ(GZ(1,GQ(aw,Condition(function l6))),function l7)
endfunction
function l9 takes nothing returns nothing
call TriggerExecute(dz)
endfunction
function La takes nothing returns nothing
call TriggerExecute(dz)
endfunction
function LA takes nothing returns nothing
call TriggerExecute(dz)
endfunction
function Lb takes nothing returns nothing
call TriggerExecute(dz)
endfunction
function LB takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call CreateDeadDestructableLocBJ('OTsp',GetRectCenter(av),270.,.7,0)
call DestructableRestoreLife(bj_lastCreatedDestructable,GetDestructableMaxLife(bj_lastCreatedDestructable),true)
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"Completed",1,10.,false)
call gv(5.)
call EnableTrigger(d4)
endfunction
function Lc takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)
endfunction
function LC takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(11))
endfunction
function Ld takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function LD takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DestroyFogModifier(bj_lastCreatedFogModifier)
call DisableTrigger(dx)
call DisableTrigger(dX)
call DisableTrigger(dy)
call DisableTrigger(dY)
call DisableTrigger(dZ)
call DisableTrigger(d0)
call DisableTrigger(d1)
call DisableTrigger(d2)
call KillDestructable(RandomDestructableInRectSimpleBJ(av))
call TriggerExecute(cZ)
call gv(1.5)
call ForGroupBJ(GQ(aw,Condition(function LC)),function Ld)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_MASKED,aw)
endfunction
function Le takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(dx)
call DisableTrigger(d3)
call DisableTrigger(dX)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call UnitRemoveAbility(e[bj_forLoopAIndex],'Apig')
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call PauseTimerBJ(true,bj_lastStartedTimer)
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call gv(.5)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"The Red Magic Channelers have been destroyed",1,10.,false)
call gv(2.)
set W=1
call TriggerExecute(d4)
endfunction
function LE takes nothing returns nothing
call SetCameraBoundsToRectForPlayerBJ(GetEnumPlayer(),aK)
endfunction
function Lf takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='e001')
endfunction
function LF takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00F')
endfunction
function Lg takes nothing returns nothing
call SetUnitPositionLocFacingBJ(GetEnumUnit(),GetUnitLoc(GroupPickRandomUnit(GS(50.,GetUnitLoc(GetEnumUnit()),Condition(function LF)))),bj_UNIT_FACING)
call SetUnitFacingTimed(GetEnumUnit(),90.,0)
endfunction
function LG takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='e002')
endfunction
function Lh takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00F')
endfunction
function LH takes nothing returns nothing
call SetUnitPositionLocFacingBJ(GetEnumUnit(),GetUnitLoc(GroupPickRandomUnit(GS(50.,GetUnitLoc(GetEnumUnit()),Condition(function Lh)))),bj_UNIT_FACING)
call SetUnitFacingTimed(GetEnumUnit(),90.,0)
endfunction
function Li takes nothing returns nothing
call SetUnitOwner(GetEnumUnit(),Player(14),false)
endfunction
function LI takes nothing returns nothing
set F='h00M'
set E=ak
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"TRIGSTR_581",1,23.,false)
call gv(1.)
call SetTimeOfDay(17.9)
call SetTerrainFogExBJ(0,1400.,4000.,0,16.,.0,20.)
call PlayMusicBJ(cm)
call ForForce(bj_FORCE_ALL_PLAYERS,function LE)
call ForGroupBJ(GQ(aK,Condition(function Lf)),function Lg)
call ForGroupBJ(GQ(aK,Condition(function LG)),function LH)
call EnableTrigger(d7)
call ForGroupBJ(GW(Player(11),'n00F'),function Li)
call gv(1.)
call EnableTrigger(d8)
call IssuePointOrderByIdLoc(Ew,851990,GetUnitLoc(fM))
call IssuePointOrderByIdLoc(EV,851990,GetUnitLoc(fm))
call IssuePointOrderByIdLoc(fF,851986,GetUnitLoc(fg))
call IssuePointOrderByIdLoc(EW,851990,GetUnitLoc(fn))
call IssuePointOrderByIdLoc(Ex,851990,GetUnitLoc(fN))
call IssuePointOrderByIdLoc(EY,851990,GetUnitLoc(fk))
call IssuePointOrderByIdLoc(Ez,851990,GetUnitLoc(fJ))
call IssuePointOrderByIdLoc(EZ,851990,GetUnitLoc(fj))
call IssuePointOrderByIdLoc(E1,851990,GetUnitLoc(fL))
call IssuePointOrderByIdLoc(Ey,851990,GetUnitLoc(fI))
call IssuePointOrderByIdLoc(EX,851990,GetUnitLoc(fi))
call IssuePointOrderByIdLoc(f2,851990,GetUnitLoc(f3))
call IssuePointOrderByIdLoc(f6,851990,GetUnitLoc(f7))
call IssuePointOrderByIdLoc(E6,851990,GetUnitLoc(fV))
call IssuePointOrderByIdLoc(fl,851990,GetUnitLoc(fG))
call IssuePointOrderByIdLoc(fF,851990,GetUnitLoc(fg))
call IssuePointOrderByIdLoc(E2,851990,GetUnitLoc(fv))
call IssuePointOrderByIdLoc(fb,851990,GetUnitLoc(fT))
call IssuePointOrderByIdLoc(E4,851990,GetUnitLoc(fr))
call IssuePointOrderByIdLoc(E8,851990,GetUnitLoc(fR))
call IssuePointOrderByIdLoc(fu,851990,GetUnitLoc(fA))
call IssuePointOrderByIdLoc(f4,851990,GetUnitLoc(f5))
call IssuePointOrderByIdLoc(E7,851990,GetUnitLoc(E5))
call IssuePointOrderByIdLoc(E9,851990,GetUnitLoc(fU))
call IssuePointOrderByIdLoc(fc,851990,GetUnitLoc(fO))
call IssuePointOrderByIdLoc(fC,851990,GetUnitLoc(fP))
call IssuePointOrderByIdLoc(fd,851990,GetUnitLoc(fp))
call IssuePointOrderByIdLoc(fD,851990,GetUnitLoc(fq))
call IssuePointOrderByIdLoc(fe,851990,GetUnitLoc(fQ))
call IssuePointOrderByIdLoc(fE,851990,GetUnitLoc(ft))
call IssuePointOrderByIdLoc(fB,851990,GetUnitLoc(fo))
call IssuePointOrderByIdLoc(ff,851990,GetUnitLoc(fS))
call gv(13.)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"GO",1,5.,false)
call ModifyGateBJ(1,gH)
call PlaySoundAtPointBJ(ch,'d',GetDestructableLoc(gH),0)
call EnableTrigger(Dc)
call EnableTrigger(DB)
call StartTimerBJ(B,false,210.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"Time Left")
call gv(1.)
call EnableTrigger(DC)
endfunction
function Lj takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)and(IsUnitAliveBJ(GetTriggerUnit()))
endfunction
function LJ takes nothing returns nothing
call CreateNUnitsAtLocFacingLocBJ(1,'o003',Player(10),GetUnitLoc(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()))
call IssueTargetOrderById(bj_lastCreatedUnit,851985,GetTriggerUnit())
endfunction
function Lk takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='e001')
endfunction
function LK takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='e002')
endfunction
function Ll takes nothing returns boolean
return GetBooleanOr(Lk(),LK())
endfunction
function LL takes nothing returns nothing
call SetUnitMoveSpeed(GetEnumUnit(),(GetUnitDefaultMoveSpeed(GetEnumUnit())*GetRandomReal(.7,1.3)))
endfunction
function Lm takes nothing returns nothing
call ForGroupBJ(GZ(10,GQ(aK,Condition(function Ll))),function LL)
endfunction
function LM takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)
endfunction
function Ln takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h00M')
endfunction
function LN takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Lo takes nothing returns boolean
return GetBooleanAnd(Ln(),LN())
endfunction
function LO takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Undead\\ReplenishMana\\SpiritTouchTarget.mdl")
call SetUnitPositionLoc(GetEnumUnit(),GetRandomLocInRect(aH))
call IssueImmediateOrderById(GetEnumUnit(),851972)
call PauseUnit(GetEnumUnit(),true)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Items\\AIma\\AImaTarget.mdl")
endfunction
function Lp takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call KillDestructable(gJ)
call PlaySoundAtPointBJ(cf,'d',GetRectCenter(aH),0)
call gv(.5)
call ForGroupBJ(GQ(aK,Condition(function Lo)),function LO)
call gv(.5)
call GC(false)
endfunction
function LP takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)
endfunction
function Lq takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h00M')
endfunction
function LQ takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Lr takes nothing returns boolean
return GetBooleanAnd(Lq(),LQ())
endfunction
function LR takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Undead\\ReplenishMana\\SpiritTouchTarget.mdl")
call SetUnitPositionLoc(GetEnumUnit(),GetRandomLocInRect(ai))
call IssueImmediateOrderById(GetEnumUnit(),851972)
call PauseUnit(GetEnumUnit(),true)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Items\\AIma\\AImaTarget.mdl")
endfunction
function Ls takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(d9)
call KillDestructable(gJ)
call KillDestructable(gk)
call PlaySoundAtPointBJ(cf,'d',GetRectCenter(ai),0)
call gv(.5)
call ForGroupBJ(GQ(aK,Condition(function Lr)),function LR)
call gv(.5)
call GC(false)
endfunction
function LS takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)
endfunction
function Lt takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h00M')
endfunction
function LT takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Lu takes nothing returns boolean
return GetBooleanAnd(Lt(),LT())
endfunction
function LU takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Undead\\ReplenishMana\\SpiritTouchTarget.mdl")
call SetUnitPositionLoc(GetEnumUnit(),GetRandomLocInRect(aI))
call IssueImmediateOrderById(GetEnumUnit(),851972)
call PauseUnit(GetEnumUnit(),true)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Items\\AIma\\AImaTarget.mdl")
endfunction
function Lv takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(d9)
call DisableTrigger(Da)
call KillDestructable(gJ)
call KillDestructable(gk)
call KillDestructable(gh)
call PlaySoundAtPointBJ(cf,'d',GetRectCenter(aI),0)
call gv(.5)
call ForGroupBJ(GQ(aK,Condition(function Lu)),function LU)
call gv(.5)
call GC(false)
endfunction
function LV takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)
endfunction
function Lw takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h00M')
endfunction
function LW takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Lx takes nothing returns boolean
return GetBooleanAnd(Lw(),LW())
endfunction
function LX takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Undead\\ReplenishMana\\SpiritTouchTarget.mdl")
call SetUnitPositionLoc(GetEnumUnit(),GetRandomLocInRect(aj))
call IssueImmediateOrderById(GetEnumUnit(),851972)
call PauseUnit(GetEnumUnit(),true)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Items\\AIma\\AImaTarget.mdl")
endfunction
function Ly takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(d9)
call DisableTrigger(Da)
call DisableTrigger(DA)
call KillDestructable(gJ)
call KillDestructable(gk)
call KillDestructable(gh)
call KillDestructable(gK)
call PlaySoundAtPointBJ(cf,'d',GetRectCenter(aj),0)
call gv(.5)
call ForGroupBJ(GQ(aK,Condition(function Lx)),function LX)
call gv(.5)
call GC(false)
endfunction
function LY takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)
endfunction
function Lz takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(11))
endfunction
function LZ takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function L0 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(14))
endfunction
function L1 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function L2 takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(d7)
call DisableTrigger(Dc)
call DisableTrigger(DC)
call DisableTrigger(d8)
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call PauseTimerBJ(true,bj_lastStartedTimer)
call KillDestructable(gG)
call TriggerExecute(cZ)
call gv(1.5)
call ForGroupBJ(GQ(aK,Condition(function Lz)),function LZ)
call ForGroupBJ(GQ(aK,Condition(function L0)),function L1)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_MASKED,al)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_MASKED,aL)
endfunction
function L3 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function L4 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==F)
endfunction
function L5 takes nothing returns boolean
return GetBooleanAnd(L3(),L4())
endfunction
function L6 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)and(CountUnitsInGroup(GQ(bj_mapInitialPlayableArea,Condition(function L5)))==0)
endfunction
function L7 takes nothing returns nothing
call DisableTrigger(DC)
call gv(2)
set W=1
call TriggerExecute(DB)
endfunction
function L8 takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(Dc)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"TIME UP",1,10.,false)
call KillDestructable(RandomDestructableInRectSimpleBJ(aJ))
call PauseTimerBJ(true,bj_lastStartedTimer)
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call gv(2.)
set W=1
call TriggerExecute(DB)
endfunction
function L9 takes nothing returns nothing
call SetCameraBoundsToRectForPlayerBJ(GetEnumPlayer(),AD)
endfunction
function ma takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function mA takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function mB takes nothing returns nothing
set F='h00N'
set E=Ad
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"TRIGSTR_601",1,27.,false)
call gv(1.)
call SetTimeOfDay(20.)
call SetTerrainFogExBJ(0,1400.,4000.,0,.0,4.,24.)
call PlayMusicBJ(cN)
call CreateFogModifierRectBJ(true,Player(11),FOG_OF_WAR_VISIBLE,AD)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_VISIBLE,AD)
call ForForce(bj_FORCE_ALL_PLAYERS,function L9)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=13
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=13
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CreateNUnitsAtLoc(1,'n00H',Player(15),OffsetLocation(GetRectCenter(AB),(I2R((bj_forLoopAIndex-1))*192.),(I2R((bj_forLoopBIndex-1))*192.)),GetRandomReal(0,360))
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(Gs(AC,Player(15)),function ma)
call ForGroupBJ(Gs(Ad,Player(15)),function mA)
call EnableTrigger(DD)
call EnableTrigger(De)
call EnableTrigger(DE)
call EnableTrigger(DF)
call gv(17.)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"GO",1,5.,false)
call KillDestructable(gi)
call KillDestructable(gj)
call KillDestructable(gI)
call TriggerExecute(cz)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=CountPlayersInForceBJ(k)
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'o004',Player(11),GetRectCenter(AC),270.)
call SetUnitColor(bj_lastCreatedUnit,ConvertPlayerColor(12))
call RemoveGuardPosition(bj_lastCreatedUnit)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851983,GetRandomLocInRect(AD))
call SetUnitAnimation(bj_lastCreatedUnit,"Morph Alternate")
call gv(1.)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function mc takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function mC takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00H')
endfunction
function md takes nothing returns boolean
return GetBooleanAnd(mc(),mC())
endfunction
function mD takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='n00H')and(CountUnitsInGroup(GQ(AD,Condition(function md)))<=10)
endfunction
function me takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00H')
endfunction
function mE takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function mf takes nothing returns boolean
return GetBooleanAnd(me(),mE())
endfunction
function mF takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function mg takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00H')
endfunction
function mG takes nothing returns boolean
return GetBooleanAnd(mF(),mg())
endfunction
function mh takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function mH takes nothing returns boolean
return(CountUnitsInGroup(GQ(AD,Condition(function mG)))==0)
endfunction
function mi takes nothing returns nothing
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,(I2S(CountUnitsInGroup(GQ(AD,Condition(function mf))))+" coins left"),1,5.,false)
if(mH())then
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(De)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"Completed",1,15.,false)
call ForGroupBJ(GW(Player(11),'o004'),function mh)
call CreateDeadDestructableLocBJ('OTsp',GetRectCenter(Ac),270.,.7,0)
call DestructableRestoreLife(bj_lastCreatedDestructable,GetDestructableMaxLife(bj_lastCreatedDestructable),true)
call gv(5.)
call EnableTrigger(Df)
endif
endfunction
function mI takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='o004')
endfunction
function mj takes nothing returns boolean
return(IsTriggerEnabled(GetTriggeringTrigger()))
endfunction
function mJ takes nothing returns nothing
call gv(20.)
if(mj())then
call CreateNUnitsAtLoc(1,'o004',Player(11),GetRectCenter(AC),270.)
call SetUnitColor(bj_lastCreatedUnit,ConvertPlayerColor(12))
call RemoveGuardPosition(bj_lastCreatedUnit)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851983,GetRandomLocInRect(AD))
call SetUnitAnimation(bj_lastCreatedUnit,"Morph Alternate")
endif
endfunction
function mk takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)
endfunction
function mK takes nothing returns nothing
call UnitAddAbility(GetTriggerUnit(),'A001')
call gv(10.)
call UnitRemoveAbility(GetTriggerUnit(),'A001')
endfunction
function ml takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)
endfunction
function mL takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function mm takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(DF)
call DisableTrigger(DD)
call DisableTrigger(DE)
call DestroyFogModifier(bj_lastCreatedFogModifier)
call ForGroupBJ(GW(Player(11),'o004'),function mL)
call KillDestructable(RandomDestructableInRectSimpleBJ(Ac))
call TriggerExecute(cZ)
call gv(1.5)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_MASKED,AD)
endfunction
function mM takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function mn takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==F)
endfunction
function mN takes nothing returns boolean
return GetBooleanAnd(mM(),mn())
endfunction
function mo takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)and(CountUnitsInGroup(GQ(bj_mapInitialPlayableArea,Condition(function mN)))==0)
endfunction
function mO takes nothing returns nothing
call gv(2)
set W=1
call TriggerExecute(Df)
endfunction
function mp takes nothing returns nothing
call SetCameraBoundsToRectForPlayerBJ(GetEnumPlayer(),bH)
endfunction
function mP takes nothing returns nothing
call SetPlayerHandicapXPBJ(GetEnumPlayer(),.0)
endfunction
function mq takes nothing returns nothing
set F='H00O'
set E=A4
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"TRIGSTR_671",1,25.,false)
call SetUnitAnimation(fx,"stand alternate")
call PauseUnit(fx,true)
call SetUnitOwner(fx,Player(11),false)
call SetUnitInvulnerable(fx,true)
call gv(1.)
call SetTimeOfDay(17.9)
call SetTerrainFogExBJ(0,1400.,4000.,0,.0,.0,16.)
call PlayMusicExBJ(cM,130.,2.)
call CreateFogModifierRectBJ(true,Player(11),FOG_OF_WAR_VISIBLE,bH)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_VISIBLE,bH)
call ForForce(bj_FORCE_ALL_PLAYERS,function mp)
call ForForce(bj_FORCE_ALL_PLAYERS,function mP)
call gv(11.)
call AddSpecialEffectLocBJ(GetRandomLocInRect(bh),"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call gv(2.)
call AddSpecialEffectLocBJ(GetRandomLocInRect(bh),"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call TerrainDeformationRippleBJ(5.,false,GetRectCenter(bh),100.,100.,20.,1,500.)
call gv(2.)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"START",1,5.,false)
call StartTimerBJ(B,false,150.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"Time Left")
call EnableTrigger(Di)
call EnableTrigger(DG)
call EnableTrigger(Dh)
call EnableTrigger(DH)
call EnableTrigger(Dj)
call AddSpecialEffectLocBJ(GetRandomLocInRect(bh),"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call TerrainDeformationRippleBJ(3.,false,GetRectCenter(bh),150.,150.,40.,1,500.)
call gv(1.)
call AddSpecialEffectLocBJ(GetRandomLocInRect(bh),"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call SetUnitAnimation(fx,"morph ALTERNATE")
call AddSpecialEffectLocBJ(GetRandomLocInRect(bh),"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call gv(1.)
call PauseUnit(fx,false)
call SetUnitInvulnerable(fx,false)
endfunction
function mQ takes nothing returns nothing
call CreateItemLoc('tst2',GetRandomLocInRect(bg))
call CreateItemLoc('tin2',GetRandomLocInRect(bg))
call CreateItemLoc('tdx2',GetRandomLocInRect(bg))
call CreateNUnitsAtLocFacingLocBJ(1,'u00D',Player(11),GetRandomLocInRect(bg),GetRandomLocInRect(bH))
call SetUnitColor(bj_lastCreatedUnit,PLAYER_COLOR_PURPLE)
call PauseUnit(bj_lastCreatedUnit,true)
call SetUnitAnimation(bj_lastCreatedUnit,"morph alternate")
call gv(.6)
call PauseUnit(bj_lastCreatedUnit,false)
endfunction
function mr takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='u00D')
endfunction
function mR takes nothing returns boolean
return(M==1)
endfunction
function ms takes nothing returns boolean
return(M==2)
endfunction
function mS takes nothing returns boolean
return(M==3)
endfunction
function mt takes nothing returns nothing
set M=GetRandomInt(1,3)
if(mR())then
call CreateItemLoc('tst2',GetUnitLoc(GetTriggerUnit()))
endif
if(ms())then
call CreateItemLoc('tin2',GetUnitLoc(GetTriggerUnit()))
endif
if(mS())then
call CreateItemLoc('tdx2',GetUnitLoc(GetTriggerUnit()))
endif
endfunction
function mT takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='u00B')
endfunction
function mu takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function mU takes nothing returns nothing
call SetUnitAnimation(GetEnumUnit(),"morph")
endfunction
function mv takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function mV takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(DG)
call DisableTrigger(Dj)
call DisableTrigger(Dh)
call ForGroupBJ(GW(Player(11),'u00D'),function mu)
call ForGroupBJ(GW(Player(11),'u00D'),function mU)
call gv(1.)
call ForGroupBJ(GW(Player(11),'u00D'),function mv)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"Completed",1,10.,false)
call CreateDeadDestructableLocBJ('OTsp',GetRectCenter(bG),270.,.7,0)
call DestructableRestoreLife(bj_lastCreatedDestructable,GetDestructableMaxLife(bj_lastCreatedDestructable),true)
call gv(5.)
call EnableTrigger(DI)
endfunction
function mw takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function mW takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==F)
endfunction
function mx takes nothing returns boolean
return GetBooleanAnd(mw(),mW())
endfunction
function mX takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)and(CountUnitsInGroup(GQ(bj_mapInitialPlayableArea,Condition(function mx)))==0)
endfunction
function my takes nothing returns nothing
call DisableTrigger(Dj)
call DisableTrigger(DH)
call gv(2)
set W=1
call TriggerExecute(DI)
endfunction
function mY takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)
endfunction
function mz takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function mZ takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(Di)
call DisableTrigger(DG)
call DisableTrigger(Dh)
call DisableTrigger(Dj)
call DestroyFogModifier(bj_lastCreatedFogModifier)
call PauseTimerBJ(true,bj_lastStartedTimer)
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call KillDestructable(RandomDestructableInRectSimpleBJ(bG))
call ForGroupBJ(Gs(bH,Player(11)),function mz)
call TriggerExecute(cZ)
call gv(1.5)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_MASKED,bH)
endfunction
function m0 takes nothing returns nothing
call DisableTrigger(DH)
call DisableTrigger(Di)
call DisableTrigger(GetTriggeringTrigger())
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"TIME UP",1,10.,false)
call gv(2)
set W=1
call TriggerExecute(DI)
endfunction
function m1 takes nothing returns nothing
call SetCameraBoundsToRectForPlayerBJ(GetEnumPlayer(),au)
endfunction
function m2 takes nothing returns nothing
set F='h010'
set E=Ay
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"TRIGSTR_886",1,28.,false)
call gv(1.)
call SetTimeOfDay(4.3)
call SetTerrainFogExBJ(0,1400.,4000.,0,24.,.0,.0)
call PlayMusicExBJ(co,70.,1.)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_VISIBLE,au)
call ForForce(bj_FORCE_ALL_PLAYERS,function m1)
call EnableTrigger(Dl)
set Y=0
call CreateNUnitsAtLoc(1,'o006',Player(11),GetUnitLoc(GroupPickRandomUnit(GW(Player(15),'n00L'))),bj_UNIT_FACING)
call SetUnitColor(bj_lastCreatedUnit,PLAYER_COLOR_YELLOW)
call gv(18.)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"START",1,10.,false)
call StartTimerBJ(B,false,130.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"Time Left")
call EnableTrigger(Dk)
endfunction
function m3 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function m4 takes nothing returns boolean
return(Y==44)
endfunction
function m5 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00L')
endfunction
function m6 takes nothing returns nothing
call SetUnitPositionLocFacingBJ(GetEnumUnit(),GetUnitLoc(GroupPickRandomUnit(GS(350.,GetUnitLoc(GetEnumUnit()),Condition(function m5)))),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'o005',Player(11),GetUnitLoc(GetEnumUnit()),GetRandomReal(0,360))
call CreateNUnitsAtLoc(1,'n00I',Player(11),GetUnitLoc(GetEnumUnit()),GetRandomReal(0,360))
endfunction
function m7 takes nothing returns boolean
return(Y==1)or(Y==2)or(Y==3)or(Y==5)or(Y==7)or(Y==9)or(Y==12)or(Y==15)or(Y==18)or(Y==22)or(Y==26)or(Y==30)or(Y==35)
endfunction
function m8 takes nothing returns boolean
return(m7())
endfunction
function m9 takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function Ma takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function MA takes nothing returns nothing
set Y=(Y+1)
if(m4())then
call DisableTrigger(GetTriggeringTrigger())
call CreateDeadDestructableLocBJ('OTsp',GetRectCenter(aT),270.,.7,0)
call DestructableRestoreLife(bj_lastCreatedDestructable,GetDestructableMaxLife(bj_lastCreatedDestructable),true)
call ForGroupBJ(GW(Player(11),'o006'),function m3)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"Completed",1,10.,false)
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call PauseTimerBJ(true,bj_lastStartedTimer)
call gv(5.)
call EnableTrigger(DK)
return
endif
call ForGroupBJ(GW(Player(11),'o006'),function m6)
call PlaySoundAtPointBJ(ci,'d',GetUnitLoc(GroupPickRandomUnit(GW(Player(11),'o005'))),0)
if(m8())then
call CreateNUnitsAtLoc(1,'o006',Player(11),GetUnitLoc(GroupPickRandomUnit(GW(Player(15),'n00L'))),bj_UNIT_FACING)
call SetUnitColor(bj_lastCreatedUnit,PLAYER_COLOR_YELLOW)
endif
call gv(.8)
call ForGroupBJ(GW(Player(11),'o005'),function m9)
call ForGroupBJ(GW(Player(11),'n00I'),function Ma)
endfunction
function Mb takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)
endfunction
function MB takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(Dl)
call DestroyFogModifier(bj_lastCreatedFogModifier)
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call PauseTimerBJ(true,bj_lastStartedTimer)
call DisableTrigger(Dk)
call KillDestructable(RandomDestructableInRectSimpleBJ(aT))
call TriggerExecute(cZ)
call gv(1.5)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_MASKED,au)
endfunction
function Mc takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function MC takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==F)
endfunction
function Md takes nothing returns boolean
return GetBooleanAnd(Mc(),MC())
endfunction
function MD takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)and(CountUnitsInGroup(GQ(bj_mapInitialPlayableArea,Condition(function Md)))==0)
endfunction
function Me takes nothing returns nothing
call gv(2)
set W=1
call TriggerExecute(DK)
endfunction
function ME takes nothing returns nothing
call SetCameraBoundsToRectForPlayerBJ(GetEnumPlayer(),bJ)
endfunction
function Mf takes nothing returns nothing
call SetPlayerAllianceBJ(Player(10),ALLIANCE_PASSIVE,true,GetEnumPlayer())
endfunction
function MF takes nothing returns nothing
call SetPlayerAllianceBJ(GetEnumPlayer(),ALLIANCE_PASSIVE,true,Player(10))
endfunction
function Mg takes nothing returns nothing
call SetHeroLevelBJ(GetEnumUnit(),2,false)
endfunction
function MG takes nothing returns nothing
call SetPlayerHandicapXPBJ(GetEnumPlayer(),.0)
endfunction
function Mh takes nothing returns boolean
return(bj_forLoopAIndex<=4)
endfunction
function MH takes nothing returns boolean
return(M==1)
endfunction
function Mi takes nothing returns boolean
return(M==2)
endfunction
function MI takes nothing returns boolean
return(M==3)
endfunction
function Mj takes nothing returns boolean
return(M==4)
endfunction
function MJ takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function Mk takes nothing returns nothing
call IssuePointOrderByIdLoc(GetEnumUnit(),851983,GetRectCenter(bI))
endfunction
function MK takes nothing returns nothing
call IssuePointOrderByIdLoc(GetEnumUnit(),851983,GetRectCenter(bj))
endfunction
function Ml takes nothing returns nothing
set F='H00U'
set E=A5
call SetPlayerHandicapBJ(Player(11),107.)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"TRIGSTR_995",1,30.,false)
call gv(1.)
call SetTimeOfDay(20.5)
call SetTerrainFogExBJ(0,1400.,3500.,0,25.,.0,10.)
call PlayMusicBJ(cn)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_VISIBLE,bJ)
call ForForce(bj_FORCE_ALL_PLAYERS,function ME)
call EnableTrigger(Do)
call gv(1.)
call ForForce(bj_FORCE_ALL_PLAYERS,function Mf)
call ForForce(bj_FORCE_ALL_PLAYERS,function MF)
call SetPlayerAllianceBJ(Player(10),ALLIANCE_PASSIVE,false,Player(11))
call SetPlayerAllianceBJ(Player(11),ALLIANCE_PASSIVE,false,Player(10))
call ForGroupBJ(GU('H00U'),function Mg)
call SetUnitLifePercentBJ(FA,(50.+(I2R(CountPlayersInForceBJ(k))*6.)))
call ForForce(bj_FORCE_ALL_PLAYERS,function MG)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=CountPlayersInForceBJ(k)
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLocFacingLocBJ(1,'H00V',Player(11),GetRandomLocInRect(bj),GetRandomLocInRect(bJ))
call SetUnitColor(bj_lastCreatedUnit,PLAYER_COLOR_ORANGE)
if(Mh())then
set M=bj_forLoopAIndex
else
set M=GetRandomInt(1,4)
endif
if(MH())then
call SelectHeroSkill(bj_lastCreatedUnit,'AHad')
endif
if(Mi())then
call SelectHeroSkill(bj_lastCreatedUnit,'AOae')
endif
if(MI())then
call SelectHeroSkill(bj_lastCreatedUnit,'AUau')
endif
if(Mj())then
call SelectHeroSkill(bj_lastCreatedUnit,'AUav')
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call TriggerExecute(Dm)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call gv(20.)
call EnumDestructablesInRectAll(bJ,function MJ)
call ForGroupBJ(Gs(bJ,Player(11)),function Mk)
call ForGroupBJ(Gs(bJ,Player(10)),function MK)
call EnableTrigger(Dm)
call EnableTrigger(DM)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"START",1,5.,false)
call StartTimerBJ(B,false,360.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"Time Left")
call gv(1.)
call EnableTrigger(DO)
endfunction
function ML takes nothing returns boolean
return(IsTriggerEnabled(Dn)==false)
endfunction
function Mm takes nothing returns nothing
call SetUnitAnimation(FA,"stand work")
call SetUnitAnimation(f9,"stand work")
call gv(2.)
call ResetUnitAnimation(FA)
call ResetUnitAnimation(f9)
if(ML())then
return
endif
call CreateNUnitsAtLocFacingLocBJ(1,'o008',Player(11),GetRandomLocInRect(bj),GetRandomLocInRect(bJ))
call SetUnitColor(bj_lastCreatedUnit,PLAYER_COLOR_LIGHT_GRAY)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851983,GetRectCenter(bI))
call CreateNUnitsAtLocFacingLocBJ(1,'o009',Player(11),GetRandomLocInRect(bj),GetRandomLocInRect(bJ))
call SetUnitColor(bj_lastCreatedUnit,PLAYER_COLOR_LIGHT_GRAY)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851983,GetRectCenter(bI))
call CreateNUnitsAtLocFacingLocBJ(1,'o007',Player(11),GetRandomLocInRect(bj),GetRandomLocInRect(bJ))
call SetUnitColor(bj_lastCreatedUnit,PLAYER_COLOR_LIGHT_GRAY)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851983,GetRectCenter(bI))
call CreateNUnitsAtLocFacingLocBJ(1,'o007',Player(11),GetRandomLocInRect(bj),GetRandomLocInRect(bJ))
call SetUnitColor(bj_lastCreatedUnit,PLAYER_COLOR_LIGHT_GRAY)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851983,GetRectCenter(bI))
call CreateNUnitsAtLocFacingLocBJ(1,'nhea',Player(10),GetRandomLocInRect(bI),GetRandomLocInRect(bJ))
call SetUnitColor(bj_lastCreatedUnit,PLAYER_COLOR_LIGHT_BLUE)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851983,GetRectCenter(bj))
call CreateNUnitsAtLocFacingLocBJ(1,'hmpr',Player(10),GetRandomLocInRect(bI),GetRandomLocInRect(bJ))
call SetUnitColor(bj_lastCreatedUnit,PLAYER_COLOR_LIGHT_BLUE)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851983,GetRectCenter(bj))
call CreateNUnitsAtLocFacingLocBJ(1,'hfoo',Player(10),GetRandomLocInRect(bI),GetRandomLocInRect(bJ))
call SetUnitColor(bj_lastCreatedUnit,PLAYER_COLOR_LIGHT_BLUE)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851983,GetRectCenter(bj))
call CreateNUnitsAtLocFacingLocBJ(1,'hfoo',Player(10),GetRandomLocInRect(bI),GetRandomLocInRect(bJ))
call SetUnitColor(bj_lastCreatedUnit,PLAYER_COLOR_LIGHT_BLUE)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851983,GetRectCenter(bj))
call gv(.5)
endfunction
function MM takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='H00V')
endfunction
function Mn takes nothing returns boolean
return(IsTriggerEnabled(GetTriggeringTrigger())==false)
endfunction
function MN takes nothing returns boolean
return(M==1)
endfunction
function Mo takes nothing returns boolean
return(M==2)
endfunction
function MO takes nothing returns boolean
return(M==3)
endfunction
function Mp takes nothing returns boolean
return(M==4)
endfunction
function MP takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Objects\\Spawnmodels\\Undead\\UndeadDissipate\\UndeadDissipate.mdl")
call gv(60.)
if(Mn())then
return
endif
call CreateNUnitsAtLocFacingLocBJ(1,'H00V',Player(11),GetRandomLocInRect(bj),GetRandomLocInRect(bJ))
call SetUnitColor(bj_lastCreatedUnit,PLAYER_COLOR_ORANGE)
call AddSpecialEffectLocBJ(GetUnitLoc(bj_lastCreatedUnit),"Abilities\\Spells\\Undead\\AnimateDead\\AnimateDeadTarget.mdl")
set M=GetRandomInt(1,4)
if(MN())then
call SelectHeroSkill(bj_lastCreatedUnit,'AHad')
endif
if(Mo())then
call SelectHeroSkill(bj_lastCreatedUnit,'AOae')
endif
if(MO())then
call SelectHeroSkill(bj_lastCreatedUnit,'AUau')
endif
if(Mp())then
call SelectHeroSkill(bj_lastCreatedUnit,'AUav')
endif
endfunction
function Mq takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function MQ takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(10))
endfunction
function Mr takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function MR takes nothing returns boolean
return GetBooleanAnd(MQ(),Mr())
endfunction
function Ms takes nothing returns nothing
call ExplodeUnitBJ(GetEnumUnit())
endfunction
function MS takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(Dm)
call DisableTrigger(DM)
call DisableTrigger(Do)
call DisableTrigger(DO)
call ForGroupBJ(Gs(bJ,Player(11)),function Mq)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"Victory",1,10.,false)
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call PauseTimerBJ(true,bj_lastStartedTimer)
call CreateDeadDestructableLocBJ('OTsp',GetRectCenter(bi),270.,.7,0)
call DestructableRestoreLife(bj_lastCreatedDestructable,GetDestructableMaxLife(bj_lastCreatedDestructable),true)
call gv(5.)
call ForGroupBJ(GQ(bJ,Condition(function MR)),function Ms)
call EnableTrigger(DN)
endfunction
function Mt takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)
endfunction
function MT takes nothing returns nothing
call SetPlayerAllianceBJ(Player(10),ALLIANCE_PASSIVE,true,GetEnumPlayer())
endfunction
function Mu takes nothing returns nothing
call SetPlayerAllianceBJ(GetEnumPlayer(),ALLIANCE_PASSIVE,true,Player(10))
endfunction
function MU takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Mv takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function MV takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(Dm)
call DisableTrigger(DM)
call DisableTrigger(Do)
call DisableTrigger(DO)
call DestroyFogModifier(bj_lastCreatedFogModifier)
call ForForce(bj_FORCE_ALL_PLAYERS,function MT)
call ForForce(bj_FORCE_ALL_PLAYERS,function Mu)
call SetPlayerAllianceBJ(Player(11),ALLIANCE_PASSIVE,false,Player(10))
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call PauseTimerBJ(true,bj_lastStartedTimer)
call DisableTrigger(DM)
call KillDestructable(RandomDestructableInRectSimpleBJ(bi))
call TriggerExecute(cZ)
call SetPlayerHandicapBJ(Player(11),100.)
call gv(1.5)
call ForGroupBJ(Gs(bJ,Player(11)),function MU)
call ForGroupBJ(Gs(bJ,Player(10)),function Mv)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_MASKED,bJ)
endfunction
function Mw takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function MW takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==F)
endfunction
function Mx takes nothing returns boolean
return GetBooleanAnd(Mw(),MW())
endfunction
function MX takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)and(CountUnitsInGroup(GQ(bj_mapInitialPlayableArea,Condition(function Mx)))==0)
endfunction
function My takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(DO)
call gv(2)
set W=1
call TriggerExecute(DN)
endfunction
function MY takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function Mz takes nothing returns nothing
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"TIME UP",1,10.,false)
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(DN)
call DisableTrigger(Do)
call DisableTrigger(Dm)
call DisableTrigger(DM)
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call PauseTimerBJ(true,bj_lastStartedTimer)
call ForGroupBJ(Gs(bJ,Player(10)),function MY)
call gv(2)
set W=1
call TriggerExecute(DN)
endfunction
function MZ takes nothing returns nothing
call SetCameraBoundsToRectForPlayerBJ(GetEnumPlayer(),AG)
endfunction
function M0 takes nothing returns nothing
set F='h00F'
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"TRIGSTR_040",1,22.,false)
set E=A0
call SetPlayerAllianceStateBJ(Player(10),Player(11),2)
call gv(1.)
call SetTimeOfDay(12.)
call SetTerrainFogExBJ(0,1300.,4000.,0,60.,40.,20.)
call PlayMusicBJ(cL)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_VISIBLE,AG)
call ForForce(bj_FORCE_ALL_PLAYERS,function MZ)
call EnableTrigger(Du)
call EnableTrigger(Dq)
call gv(12.)
call EnableTrigger(DT)
call EnableTrigger(DS)
call EnableTrigger(DP)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"GO",1,5.,false)
call ModifyGateBJ(1,gl)
call StartTimerBJ(B,false,210.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"Time Left")
call gv(1.)
call EnableTrigger(DU)
endfunction
function M1 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)and(IsUnitAliveBJ(GetTriggerUnit()))
endfunction
function M2 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='e000')
endfunction
function M3 takes nothing returns nothing
call IssueTargetOrderById(GroupPickRandomUnit(GS(100.,GetUnitLoc(GetTriggerUnit()),Condition(function M2))),851985,GetTriggerUnit())
endfunction
function M4 takes nothing returns nothing
call IssuePointOrderByIdLoc(GetEnumUnit(),851983,g1(GetUnitLoc(GetEnumUnit()),500.,(GetUnitFacing(GetEnumUnit())+GetRandomReal(-30.,30.))))
endfunction
function M5 takes nothing returns nothing
call ForGroupBJ(GW(Player(10),'e000'),function M4)
endfunction
function M6 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='e000')
endfunction
function M7 takes nothing returns nothing
call SetUnitPositionLoc(GetTriggerUnit(),g1(GetUnitLoc(GetTriggerUnit()),10.,90.))
call IssuePointOrderByIdLoc(GetTriggerUnit(),851986,g1(GetUnitLoc(GetTriggerUnit()),500.,GetRandomReal(20.,160.)))
endfunction
function M8 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='e000')
endfunction
function M9 takes nothing returns nothing
call SetUnitPositionLoc(GetTriggerUnit(),g1(GetUnitLoc(GetTriggerUnit()),10.,.0))
call IssuePointOrderByIdLoc(GetTriggerUnit(),851986,g1(GetUnitLoc(GetTriggerUnit()),500.,GetRandomReal(290.,430.)))
endfunction
function na takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='e000')
endfunction
function nA takes nothing returns nothing
call SetUnitPositionLoc(GetTriggerUnit(),g1(GetUnitLoc(GetTriggerUnit()),10.,180.))
call IssuePointOrderByIdLoc(GetTriggerUnit(),851986,g1(GetUnitLoc(GetTriggerUnit()),500.,GetRandomReal(110.,250.)))
endfunction
function nb takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='e000')
endfunction
function nB takes nothing returns nothing
call SetUnitPositionLoc(GetTriggerUnit(),g1(GetUnitLoc(GetTriggerUnit()),10.,270.))
call IssuePointOrderByIdLoc(GetTriggerUnit(),851986,g1(GetUnitLoc(GetTriggerUnit()),500.,GetRandomReal(200.,340.)))
endfunction
function nc takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='n001')
endfunction
function nC takes nothing returns nothing
call SetUnitInvulnerable(GetTriggerUnit(),true)
call GroupAddUnit(z,GetTriggerUnit())
call SetUnitMoveSpeed(GetTriggerUnit(),1.)
call EnableTrigger(Dt)
call PlaySoundOnUnitBJ(cq,85.,GetTriggerUnit())
call TerrainDeformationRippleBJ(2.,false,GetUnitLoc(GetAttacker()),180.,180.,50.,1.,32.)
call TriggerSleepAction(1.)
call PlaySoundOnUnitBJ(cP,75.,GetTriggerUnit())
call TriggerSleepAction(1.)
call TerrainDeformationRippleBJ(2.,false,GetUnitLoc(GetTriggerUnit()),90.,90.,100.,1.,32.)
call KillUnit(GetTriggerUnit())
call gv(1.5)
call RemoveUnit(GetTriggerUnit())
endfunction
function nd takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==F)
endfunction
function nD takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),z))
endfunction
function ne takes nothing returns boolean
return GetBooleanAnd(nd(),nD())
endfunction
function nE takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n001')
endfunction
function nf takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n001')
endfunction
function nF takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n001')
endfunction
function ng takes nothing returns nothing
set A=GroupPickRandomUnit(GS(450.,GetUnitLoc(GetEnumUnit()),Condition(function nE)))
set A=GroupPickRandomUnit(GS(140.,GetUnitLoc(GetEnumUnit()),Condition(function nf)))
set A=GroupPickRandomUnit(GS(90.,GetUnitLoc(GetEnumUnit()),Condition(function nF)))
call SetUnitPositionLoc(GetEnumUnit(),g1(GetUnitLoc(GetEnumUnit()),(DistanceBetweenPoints(GetUnitLoc(GetEnumUnit()),GetUnitLoc(A))*.04),AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),GetUnitLoc(A))))
endfunction
function nG takes nothing returns nothing
call ForGroupBJ(GQ(AG,Condition(function ne)),function ng)
endfunction
function nh takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)
endfunction
function nH takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function ni takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function nI takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(Du)
call DisableTrigger(DS)
call DisableTrigger(DP)
call DisableTrigger(Dq)
call DisableTrigger(Dt)
call DisableTrigger(DU)
call DestroyFogModifier(bj_lastCreatedFogModifier)
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call PauseTimerBJ(true,bj_lastStartedTimer)
call KillDestructable(RandomDestructableInRectSimpleBJ(Ag))
call ForGroupBJ(Gs(AG,Player(11)),function nH)
call ForGroupBJ(Gs(AG,Player(10)),function ni)
call TriggerExecute(cZ)
call gv(1.5)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_MASKED,AG)
endfunction
function nj takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function nJ takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==F)
endfunction
function nk takes nothing returns boolean
return GetBooleanAnd(nj(),nJ())
endfunction
function nK takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)and(CountUnitsInGroup(GQ(bj_mapInitialPlayableArea,Condition(function nk)))==0)
endfunction
function nl takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(DU)
call gv(2)
set W=1
call TriggerExecute(DT)
endfunction
function nL takes nothing returns nothing
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"TIME UP",1,10.,false)
call KillDestructable(RandomDestructableInRectSimpleBJ(Ag))
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(Du)
call DisableTrigger(DT)
call gv(2)
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call PauseTimerBJ(true,bj_lastStartedTimer)
set W=1
call TriggerExecute(DT)
endfunction
function nm takes nothing returns nothing
call SetCameraBoundsToRectForPlayerBJ(GetEnumPlayer(),a8)
endfunction
function nM takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function nn takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h00Z')
endfunction
function nN takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00K')
endfunction
function no takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00K')
endfunction
function nO takes nothing returns boolean
return(A!=GetFilterUnit())
endfunction
function np takes nothing returns boolean
return GetBooleanAnd(no(),nO())
endfunction
function nP takes nothing returns nothing
set A=GroupPickRandomUnit(GQ(a[bj_forLoopAIndex],Condition(function nN)))
call SetUnitPositionLoc(GetEnumUnit(),GetUnitLoc(A))
call IssuePointOrderByIdLoc(GetEnumUnit(),851986,GetUnitLoc(GroupPickRandomUnit(GS(450.,GetUnitLoc(A),Condition(function np)))))
endfunction
function nq takes nothing returns nothing
set F='h011'
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"TRIGSTR_059",1,22.,false)
set E=Az
call gv(1.)
call SetTimeOfDay(24.)
call SetTerrainFogExBJ(0,1300.,3000.,0,.0,12.,15.)
call PlayMusicExBJ(cU,110.,2.)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_FOGGED,a4)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_FOGGED,a5)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_VISIBLE,a8)
call ForForce(bj_FORCE_ALL_PLAYERS,function nm)
call ForGroupBJ(GZ(R2I((I2R((10-CountPlayersInForceBJ(k)))*.4)),Gs(a7,Player(10))),function nM)
set a[1]=aW
set a[2]=aX
set a[3]=ay
set a[4]=aY
set a[5]=az
set a[6]=aZ
set a[7]=a0
set a[8]=a1
set a[9]=a2
set a[10]=ax
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=CountUnitsInGroup(GQ(a8,Condition(function nn)))
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call ForGroupBJ(GZ(1,Gs(a7,Player(10))),function nP)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnableTrigger(DX)
call EnableTrigger(DV)
call EnableTrigger(Dw)
set Y=0
call gv(12.)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"GO",1,5.,false)
call ModifyGateBJ(1,gL)
call StartTimerBJ(B,false,180.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"Time Left")
call gv(1.)
call EnableTrigger(Dy)
endfunction
function nQ takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='n00K')
endfunction
function nr takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h00Z')
endfunction
function nR takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00K')
endfunction
function ns takes nothing returns boolean
return(GetTriggerUnit()!=GetFilterUnit())
endfunction
function nS takes nothing returns boolean
return GetBooleanAnd(nR(),ns())
endfunction
function nt takes nothing returns nothing
call IssuePointOrderByIdLoc(GetEnumUnit(),851986,GetUnitLoc(GroupPickRandomUnit(GS(450.,GetUnitLoc(GetTriggerUnit()),Condition(function nS)))))
endfunction
function nT takes nothing returns nothing
call ForGroupBJ(GS(40.,GetUnitLoc(GetTriggerUnit()),Condition(function nr)),function nt)
endfunction
function nu takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)
endfunction
function nU takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h00Z')
endfunction
function nv takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h00Z')
endfunction
function nV takes nothing returns boolean
return(GetUnitUserData(GetFilterUnit())==GetUnitUserData(GetTriggerUnit()))
endfunction
function nw takes nothing returns boolean
return GetBooleanAnd(nv(),nV())
endfunction
function nW takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00K')
endfunction
function nx takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),Gu(80.,GetUnitLoc(A)))==false)
endfunction
function nX takes nothing returns boolean
return GetBooleanAnd(nW(),nx())
endfunction
function ny takes nothing returns nothing
set Y=(Y+1)
call SetUnitUserData(GetTriggerUnit(),Y)
set A=GroupPickRandomUnit(GS(120.,GetUnitLoc(GetTriggerUnit()),Condition(function nU)))
call SetUnitUserData(A,Y)
call IssueTargetOrderById(A,851985,GetTriggerUnit())
call gv(1.)
set A=GroupPickRandomUnit(GQ(a8,Condition(function nw)))
call IssuePointOrderByIdLoc(A,851986,GetUnitLoc(GroupPickRandomUnit(GS(550.,GetUnitLoc(A),Condition(function nX)))))
endfunction
function nY takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)and(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),1))=='I003')
endfunction
function nz takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function nZ takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(Dy)
call ForGroupBJ(Gs(a8,Player(10)),function nz)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"Completed",1,10.,false)
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call PauseTimerBJ(true,bj_lastStartedTimer)
call AddSpecialEffectLocBJ(GetRectCenter(a6),"Abilities\\Spells\\Items\\AIlm\\AIlmTarget.mdl")
call CreateDeadDestructableLocBJ('OTsp',GetRectCenter(a3),180.,.7,0)
call DestructableRestoreLife(bj_lastCreatedDestructable,GetDestructableMaxLife(bj_lastCreatedDestructable),true)
call gv(5.)
call EnableTrigger(Dx)
endfunction
function n0 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)
endfunction
function n1 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function n2 takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(DX)
call DisableTrigger(DV)
call DisableTrigger(Dw)
call DisableTrigger(Dx)
call DisableTrigger(Dy)
call DestroyFogModifier(bj_lastCreatedFogModifier)
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call PauseTimerBJ(true,bj_lastStartedTimer)
call KillDestructable(RandomDestructableInRectSimpleBJ(a3))
call ForGroupBJ(Gs(a8,Player(11)),function n1)
call TriggerExecute(cZ)
call gv(1.5)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_MASKED,a8)
endfunction
function n3 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function n4 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==F)
endfunction
function n5 takes nothing returns boolean
return GetBooleanAnd(n3(),n4())
endfunction
function n6 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)and(CountUnitsInGroup(GQ(bj_mapInitialPlayableArea,Condition(function n5)))==0)
endfunction
function n7 takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(Dy)
call gv(2)
set W=1
call TriggerExecute(Dx)
endfunction
function n8 takes nothing returns nothing
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"TIME UP",1,10.,false)
call KillDestructable(RandomDestructableInRectSimpleBJ(Ag))
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(DX)
call DisableTrigger(Dx)
call gv(2)
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call PauseTimerBJ(true,bj_lastStartedTimer)
set W=1
call TriggerExecute(Dx)
endfunction
function n9 takes nothing returns nothing
call SetCameraBoundsToRectForPlayerBJ(GetEnumPlayer(),bK)
endfunction
function Na takes nothing returns nothing
set F='h012'
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"TRIGSTR_180",1,22.,false)
set E=bk
call gv(1.)
call SetTimeOfDay(24.)
call SetTerrainFogExBJ(0,1300.,4000.,0,60.,40.,20.)
call PlayMusicBJ(cL)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_VISIBLE,bK)
call ForForce(bj_FORCE_ALL_PLAYERS,function n9)
call EnableTrigger(D0)
call gv(12.)
call EnableTrigger(DZ)
call ConditionalTriggerExecute(Dz)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"GO",1,5.,false)
call ModifyGateBJ(1,gm)
call StartTimerBJ(aa,false,45.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"Time Left")
call gv(1.)
call EnableTrigger(D1)
endfunction
function NA takes nothing returns boolean
return(Z==false)
endfunction
function Nb takes nothing returns nothing
call SetUnitOwner(GetEnumUnit(),Player(10),false)
endfunction
function NB takes nothing returns nothing
call SetUnitColor(GetEnumUnit(),PLAYER_COLOR_GREEN)
endfunction
function Nc takes nothing returns nothing
call SetUnitColor(GetEnumUnit(),PLAYER_COLOR_YELLOW)
endfunction
function NC takes nothing returns nothing
call SetUnitOwner(GetEnumUnit(),Player(11),false)
endfunction
function Nd takes nothing returns nothing
call SetUnitColor(GetEnumUnit(),PLAYER_COLOR_RED)
endfunction
function ND takes nothing returns nothing
call ForGroupBJ(GU('hgtw'),function Nb)
call ForGroupBJ(GU('hgtw'),function NB)
call TriggerSleepAction(4.5)
call ForGroupBJ(GU('hgtw'),function Nc)
call TriggerSleepAction(2.)
call ForGroupBJ(GU('hgtw'),function NC)
call ForGroupBJ(GU('hgtw'),function Nd)
call TriggerSleepAction(2)
call ConditionalTriggerExecute(Dz)
endfunction
function Ne takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)
endfunction
function NE takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Nf takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function NF takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(D0)
call DisableTrigger(D1)
set Z=true
call DestroyFogModifier(bj_lastCreatedFogModifier)
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call PauseTimerBJ(true,bj_lastStartedTimer)
call KillDestructable(RandomDestructableInRectSimpleBJ(bl))
call ForGroupBJ(Gs(bK,Player(11)),function NE)
call ForGroupBJ(Gs(bK,Player(10)),function Nf)
call TriggerExecute(cZ)
call gv(1.5)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_MASKED,bK)
endfunction
function Ng takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function NG takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==F)
endfunction
function Nh takes nothing returns boolean
return GetBooleanAnd(Ng(),NG())
endfunction
function NH takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)and(CountUnitsInGroup(GQ(bj_mapInitialPlayableArea,Condition(function Nh)))==0)
endfunction
function Ni takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(D1)
call gv(2)
set W=1
call TriggerExecute(DZ)
endfunction
function NI takes nothing returns nothing
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"TIME UP",1,10.,false)
call KillDestructable(RandomDestructableInRectSimpleBJ(bl))
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(D0)
call DisableTrigger(DZ)
call gv(2)
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call PauseTimerBJ(true,bj_lastStartedTimer)
set W=1
call TriggerExecute(DZ)
endfunction
function Nj takes nothing returns nothing
call SetCameraBoundsToRectForPlayerBJ(GetEnumPlayer(),bL)
endfunction
function NJ takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function Nk takes nothing returns nothing
set af=true
set F='h013'
set E=bm
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"TRIGSTR_204",1,28.,false)
call gv(1.)
call SetTimeOfDay(24.)
call SetTerrainFogExBJ(0,1400.,4000.,0,24.,.0,.0)
call PlayMusicBJ(cv)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_VISIBLE,bL)
call ForForce(bj_FORCE_ALL_PLAYERS,function Nj)
call EnableTrigger(D7)
call gv(15.)
call EnumDestructablesInRectAll(bN,function NJ)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"START",1,10.,false)
call StartTimerBJ(aA,false,165.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"Time Left")
call hc(bj_FORCE_ALL_PLAYERS,"Crystal Shards")
call LeaderboardAddItemBJ(Player(0),bj_lastCreatedLeaderboard,"Collected",0)
call LeaderboardAddItemBJ(Player(1),bj_lastCreatedLeaderboard,"Needed",65)
call LeaderboardSetPlayerItemLabelColorBJ(Player(0),bj_lastCreatedLeaderboard,'d',100.,100.,0)
call LeaderboardSetPlayerItemValueColorBJ(Player(0),bj_lastCreatedLeaderboard,'d',100.,100.,0)
call LeaderboardSetPlayerItemLabelColorBJ(Player(1),bj_lastCreatedLeaderboard,'d',100.,100.,0)
call LeaderboardSetPlayerItemValueColorBJ(Player(1),bj_lastCreatedLeaderboard,'d',100.,100.,0)
call EnableTrigger(D3)
call EnableTrigger(D8)
call EnableTrigger(D4)
endfunction
function NK takes nothing returns nothing
call IssuePointOrderByIdLoc(FL,852488,GetRandomLocInRect(bn))
call TriggerSleepAction(1.)
call IssuePointOrderByIdLoc(Fm,852488,GetRandomLocInRect(bn))
endfunction
function Nl takes nothing returns boolean
return(af)
endfunction
function NL takes nothing returns nothing
call CreateItemLoc('lmbr',GetRandomLocInRect(bn))
endfunction
function Nm takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='lmbr')
endfunction
function NM takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Nn takes nothing returns boolean
return(ab>=65)
endfunction
function NN takes nothing returns nothing
set ab=(ab+1)
call LeaderboardSetPlayerItemValueBJ(Player(0),bj_lastCreatedLeaderboard,ab)
if(Nn())then
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(D8)
call DisableTrigger(D3)
call DisableTrigger(D4)
call PauseTimerBJ(true,bj_lastStartedTimer)
call ForGroupBJ(GW(Player(10),'hwtw'),function NM)
call gv(1.)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"Completed",1,10.,false)
call CreateDeadDestructableLocBJ('OTsp',GetRectCenter(bM),270.,.7,0)
call DestructableRestoreLife(bj_lastCreatedDestructable,GetDestructableMaxLife(bj_lastCreatedDestructable),true)
call gv(5.)
call EnableTrigger(D6)
endif
endfunction
function No takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)
endfunction
function NO takes nothing returns nothing
call SetPlayerStateBJ(GetEnumPlayer(),PLAYER_STATE_RESOURCE_LUMBER,0)
endfunction
function Np takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function NP takes nothing returns nothing
set af=false
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(D7)
call DisableTrigger(D8)
call PauseTimerBJ(true,bj_lastStartedTimer)
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call DestroyFogModifier(bj_lastCreatedFogModifier)
call ForForce(bj_FORCE_ALL_PLAYERS,function NO)
call DestroyLeaderboard(bj_lastCreatedLeaderboard)
call KillDestructable(RandomDestructableInRectSimpleBJ(bM))
call ForGroupBJ(Gs(bL,Player(10)),function Np)
call TriggerExecute(cZ)
call gv(1.5)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_MASKED,bL)
endfunction
function Nq takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function NQ takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==F)
endfunction
function Nr takes nothing returns boolean
return GetBooleanAnd(Nq(),NQ())
endfunction
function NR takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)and(CountUnitsInGroup(GQ(bj_mapInitialPlayableArea,Condition(function Nr)))==0)
endfunction
function Ns takes nothing returns nothing
call DisableTrigger(D8)
call gv(2)
set W=1
call TriggerExecute(D6)
endfunction
function NS takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(D7)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"TIME UP",1,10.,false)
call PauseTimerBJ(true,bj_lastStartedTimer)
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call gv(2.)
set W=1
call TriggerExecute(D6)
endfunction
function Nt takes nothing returns nothing
call SetCameraBoundsToRectForPlayerBJ(GetEnumPlayer(),bs)
endfunction
function NT takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function Nu takes nothing returns nothing
set F='h015'
set E=bR
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"TRIGSTR_250",1,25.,false)
call gv(1.)
call SetTimeOfDay(24.)
call SetTerrainFogExBJ(0,1300.,3500.,0,.0,7.,20.)
call PlayMusicBJ(cv)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_VISIBLE,bs)
call ForForce(bj_FORCE_ALL_PLAYERS,function Nt)
call EnableTrigger(eb)
call gv(12.)
call ConditionalTriggerExecute(ea)
call EnableTrigger(eA)
call EnumDestructablesInRectAll(bS,function NT)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"GO",1,5.,false)
call StartTimerBJ(aB,false,30.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"Time Left")
call gv(1.)
call EnableTrigger(eB)
endfunction
function NU takes nothing returns boolean
return(ac==false)
endfunction
function Nv takes nothing returns nothing
call CreateNUnitsAtLoc(1,'hkni',Player(11),GetRectCenter(bP),bj_UNIT_FACING)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851986,GetRectCenter(br))
call CreateNUnitsAtLoc(1,'hkni',Player(11),GetRectCenter(bO),bj_UNIT_FACING)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851986,GetRectCenter(bq))
call TriggerSleepAction(2.)
call CreateNUnitsAtLoc(1,'hkni',Player(11),GetRectCenter(bp),bj_UNIT_FACING)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851986,GetRectCenter(bQ))
call TriggerSleepAction(2.)
call ConditionalTriggerExecute(ea)
endfunction
function NV takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)
endfunction
function Nw takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function NW takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Nx takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(eb)
call DisableTrigger(eB)
set ac=true
call DestroyFogModifier(bj_lastCreatedFogModifier)
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call PauseTimerBJ(true,bj_lastStartedTimer)
call KillDestructable(RandomDestructableInRectSimpleBJ(bo))
call ForGroupBJ(Gs(bs,Player(11)),function Nw)
call ForGroupBJ(Gs(bs,Player(10)),function NW)
call TriggerExecute(cZ)
call gv(1.5)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_MASKED,bs)
endfunction
function NX takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Ny takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==F)
endfunction
function NY takes nothing returns boolean
return GetBooleanAnd(NX(),Ny())
endfunction
function Nz takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)and(CountUnitsInGroup(GQ(bj_mapInitialPlayableArea,Condition(function NY)))==0)
endfunction
function NZ takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(eB)
call gv(2)
set W=1
call TriggerExecute(eA)
endfunction
function N0 takes nothing returns nothing
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"TIME UP",1,10.,false)
call KillDestructable(RandomDestructableInRectSimpleBJ(bo))
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(eb)
call DisableTrigger(eA)
call gv(2)
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call PauseTimerBJ(true,bj_lastStartedTimer)
set W=1
call TriggerExecute(eA)
endfunction
function N1 takes nothing returns boolean
return(GetUnitTypeId(GetEnteringUnit())=='hkni')
endfunction
function N2 takes nothing returns nothing
call KillUnit(GetEnteringUnit())
endfunction
function N3 takes nothing returns nothing
call SetDestructableInvulnerable(GetEnumDestructable(),true)
endfunction
function N4 takes nothing returns nothing
call SetCameraBoundsToRectForPlayerBJ(GetEnumPlayer(),bt)
endfunction
function N5 takes nothing returns nothing
call SetHeroLevelBJ(GetEnumUnit(),(9-CountUnitsInGroup(GU('Hpal'))),false)
endfunction
function N6 takes nothing returns nothing
call SetPlayerHandicapXPBJ(GetEnumPlayer(),.0)
endfunction
function N7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function N8 takes nothing returns nothing
set F='Hpal'
set E=bT
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"TRIGSTR_276",1,30.,false)
call EnumDestructablesInRectAll(bt,function N3)
call gv(1.)
call SetTimeOfDay(20.5)
call SetTerrainFogExBJ(0,1400.,3500.,0,25.,.0,10.)
call PlayMusicBJ(cn)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_VISIBLE,bt)
call ForForce(bj_FORCE_ALL_PLAYERS,function N4)
call EnableTrigger(ef)
call EnableTrigger(ee)
call gv(1.)
call ForGroupBJ(GU('Hpal'),function N5)
call ForForce(bj_FORCE_ALL_PLAYERS,function N6)
call gv(15.)
call EnumDestructablesInRectAll(bt,function N7)
call ConditionalTriggerExecute(ed)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"START",1,5.,false)
call SetPlayerHandicapBJ(Player(11),122.)
endfunction
function N9 takes nothing returns boolean
return(aD==1)
endfunction
function oa takes nothing returns boolean
return(aD==2)
endfunction
function oA takes nothing returns boolean
return(aD==3)
endfunction
function ob takes nothing returns boolean
return(aD==4)
endfunction
function oB takes nothing returns boolean
return(aD==4)
endfunction
function oc takes nothing returns boolean
return(aD<5)
endfunction
function oC takes nothing returns nothing
if(N9())then
set ad='orai'
endif
if(oa())then
set ad='ohun'
endif
if(oA())then
set ad='otau'
endif
if(ob())then
set ad='okod'
endif
call TriggerSleepAction(.5)
call CreateNUnitsAtLoc(1,ad,Player(11),GetRectCenter(bU),bj_UNIT_FACING)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851983,GetRectCenter(bV))
call CreateNUnitsAtLoc(1,ad,Player(11),GetRectCenter(bv),bj_UNIT_FACING)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851983,GetRectCenter(bw))
call TriggerSleepAction(2.)
call CreateNUnitsAtLoc(1,ad,Player(11),GetRectCenter(bU),bj_UNIT_FACING)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851983,GetRectCenter(bV))
call CreateNUnitsAtLoc(1,ad,Player(11),GetRectCenter(bv),bj_UNIT_FACING)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851983,GetRectCenter(bw))
call TriggerSleepAction(2.)
call CreateNUnitsAtLoc(1,ad,Player(11),GetRectCenter(bU),bj_UNIT_FACING)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851983,GetRectCenter(bV))
call CreateNUnitsAtLoc(1,ad,Player(11),GetRectCenter(bv),bj_UNIT_FACING)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851983,GetRectCenter(bw))
call TriggerSleepAction(2.)
call CreateNUnitsAtLoc(1,ad,Player(11),GetRectCenter(bU),bj_UNIT_FACING)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851983,GetRectCenter(bV))
call CreateNUnitsAtLoc(1,ad,Player(11),GetRectCenter(bv),bj_UNIT_FACING)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851983,GetRectCenter(bw))
call TriggerSleepAction(2.)
call CreateNUnitsAtLoc(1,ad,Player(11),GetRectCenter(bU),bj_UNIT_FACING)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851983,GetRectCenter(bV))
call CreateNUnitsAtLoc(1,ad,Player(11),GetRectCenter(bv),bj_UNIT_FACING)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851983,GetRectCenter(bw))
call TriggerSleepAction(2.)
call CreateNUnitsAtLoc(1,ad,Player(11),GetRectCenter(bU),bj_UNIT_FACING)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851983,GetRectCenter(bV))
call CreateNUnitsAtLoc(1,ad,Player(11),GetRectCenter(bv),bj_UNIT_FACING)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851983,GetRectCenter(bw))
call TriggerSleepAction(2.)
call CreateNUnitsAtLoc(1,ad,Player(11),GetRectCenter(bU),bj_UNIT_FACING)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851983,GetRectCenter(bV))
call CreateNUnitsAtLoc(1,ad,Player(11),GetRectCenter(bv),bj_UNIT_FACING)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851983,GetRectCenter(bw))
call TriggerSleepAction(2.)
call CreateNUnitsAtLoc(1,ad,Player(11),GetRectCenter(bU),bj_UNIT_FACING)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851983,GetRectCenter(bV))
call CreateNUnitsAtLoc(1,ad,Player(11),GetRectCenter(bv),bj_UNIT_FACING)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851983,GetRectCenter(bw))
call TriggerSleepAction(2.)
call CreateNUnitsAtLoc(1,ad,Player(11),GetRectCenter(bU),bj_UNIT_FACING)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851983,GetRectCenter(bV))
call CreateNUnitsAtLoc(1,ad,Player(11),GetRectCenter(bv),bj_UNIT_FACING)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851983,GetRectCenter(bw))
call TriggerSleepAction(2.)
if(oB())then
call CreateNUnitsAtLoc(1,'Hmkg',Player(11),GetRectCenter(bU),bj_UNIT_FACING)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851983,GetRectCenter(bV))
call CreateNUnitsAtLoc(1,'Hmkg',Player(11),GetRectCenter(bv),bj_UNIT_FACING)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851983,GetRectCenter(bw))
endif
set aD=(aD+1)
if(oc())then
call ConditionalTriggerExecute(ed)
else
call EnableTrigger(eD)
endif
endfunction
function od takes nothing returns boolean
return(G4('orai',Player(11))==0)and(G4('otau',Player(11))==0)and(G4('ohun',Player(11))==0)and(G4('okod',Player(11))==0)and(G4('Hmkg',Player(11))==0)
endfunction
function oD takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function oe takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call ForGroupBJ(Gs(bt,Player(11)),function oD)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"Victory",1,10.,false)
call CreateDeadDestructableLocBJ('OTsp',GetRectCenter(bu),270.,.7,0)
call DestructableRestoreLife(bj_lastCreatedDestructable,GetDestructableMaxLife(bj_lastCreatedDestructable),true)
call gv(5.)
call EnableTrigger(eE)
endfunction
function oE takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(11))
endfunction
function of takes nothing returns boolean
return(ae==0)
endfunction
function oF takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnteringUnit()),"Abilities\\Spells\\Human\\DispelMagic\\DispelMagicTarget.mdl")
call RemoveUnit(GetEnteringUnit())
set ae=(ae-1)
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(("You have "+I2S(ae))+" Lives left!"))
if(of())then
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(ef)
call DisableTrigger(eD)
call gv(1.)
set W=1
call TriggerExecute(eE)
endif
endfunction
function og takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)
endfunction
function oG takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function oh takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function oH takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(ed)
call DisableTrigger(ef)
call DisableTrigger(ee)
call DestroyFogModifier(bj_lastCreatedFogModifier)
call KillDestructable(RandomDestructableInRectSimpleBJ(bu))
call TriggerExecute(cZ)
call SetPlayerHandicapBJ(Player(11),100.)
call gv(1.5)
call ForGroupBJ(Gs(bt,Player(11)),function oG)
call ForGroupBJ(Gs(bt,Player(10)),function oh)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_MASKED,bt)
endfunction
function oi takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function oI takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==F)
endfunction
function oj takes nothing returns boolean
return GetBooleanAnd(oi(),oI())
endfunction
function oJ takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)and(CountUnitsInGroup(GQ(bj_mapInitialPlayableArea,Condition(function oj)))==0)
endfunction
function ok takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(eD)
call DisableTrigger(ee)
call gv(2)
set W=1
call TriggerExecute(eE)
endfunction
function oK takes nothing returns nothing
call SetCameraBoundsToRectForPlayerBJ(GetEnumPlayer(),bz)
endfunction
function ol takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n000')
endfunction
function oL takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function om takes nothing returns nothing
set F='h00F'
set E=by
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"TRIGSTR_1105",1,25.,false)
call gv(1.)
call SetTimeOfDay(24.)
call SetTerrainFogExBJ(0,1300.,3500.,0,.0,7.,20.)
call PlayMusicBJ(cU)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_VISIBLE,AV)
call ForForce(bj_FORCE_ALL_PLAYERS,function oK)
call EnableTrigger(ei)
call TriggerExecute(cz)
set bj_forLoopAIndex=(CountPlayersInForceBJ(k)*2)
set bj_forLoopAIndexEnd=19
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call ForGroupBJ(GQ(a[bj_forLoopAIndex],Condition(function ol)),function oL)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=((CountPlayersInForceBJ(k)*2)-1)
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'o000',Player(11),GetUnitLoc(GroupPickRandomUnit(GR(a[bj_forLoopAIndex]))),GetRandomReal(0,360))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call gv(1.)
call gv(14.)
call ModifyGateBJ(1,gn)
call PlaySoundAtPointBJ(ch,'d',GetDestructableLoc(ga),0)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"GO",1,5.,false)
call StartTimerBJ(B,false,180.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"Time Left")
call gv(1.)
call EnableTrigger(eI)
endfunction
function oM takes nothing returns nothing
call KillDestructable(gr)
call KillDestructable(go)
endfunction
function on takes nothing returns nothing
call KillDestructable(gp)
call KillDestructable(gO)
endfunction
function oN takes nothing returns nothing
call KillDestructable(gR)
call KillDestructable(gQ)
endfunction
function oo takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)
endfunction
function oO takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function op takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function oP takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(ei)
call DisableTrigger(eI)
call DestroyFogModifier(bj_lastCreatedFogModifier)
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call PauseTimerBJ(true,bj_lastStartedTimer)
call KillDestructable(RandomDestructableInRectSimpleBJ(bY))
call TriggerExecute(cZ)
call gv(1.5)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_MASKED,bz)
call ForGroupBJ(Gs(bz,Player(11)),function oO)
call ForGroupBJ(Gs(bz,Player(11)),function op)
endfunction
function oq takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function oQ takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==F)
endfunction
function oR takes nothing returns boolean
return GetBooleanAnd(oq(),oQ())
endfunction
function os takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)and(CountUnitsInGroup(GQ(bj_mapInitialPlayableArea,Condition(function oR)))==0)
endfunction
function oS takes nothing returns nothing
call DisableTrigger(eI)
call gv(2)
set W=1
call TriggerExecute(eH)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function ot takes nothing returns nothing
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"TIME UP",1,10.,false)
call KillDestructable(RandomDestructableInRectSimpleBJ(bY))
call DisableTrigger(eH)
call DisableTrigger(ei)
call gv(2)
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call PauseTimerBJ(true,bj_lastStartedTimer)
set W=1
call TriggerExecute(eH)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function oT takes nothing returns nothing
call CreateFogModifierRectBJ(true,GetEnumPlayer(),FOG_OF_WAR_VISIBLE,bZ)
endfunction
function ou takes nothing returns nothing
call SetCameraBoundsToRectForPlayerBJ(GetEnumPlayer(),bZ)
endfunction
function oU takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n000')
endfunction
function ov takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function oV takes nothing returns nothing
call SetUnitInvulnerable(GetEnumUnit(),false)
endfunction
function ow takes nothing returns nothing
set F='h00F'
set aE=true
set E=b0
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"TRIGSTR_1119",1,25.,false)
call ForForce(bj_FORCE_ALL_PLAYERS,function oT)
call gv(1.)
call UseTimeOfDayBJ(true)
call SetTimeOfDayScalePercentBJ('d')
call SetTimeOfDay(12)
call SetTerrainFogExBJ(0,1300.,3500.,0,.0,7.,20.)
call PlayMusicBJ(cU)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_VISIBLE,AV)
call ForForce(bj_FORCE_ALL_PLAYERS,function ou)
call EnableTrigger(eK)
call TriggerExecute(cz)
set bj_forLoopAIndex=(CountPlayersInForceBJ(k)*2)
set bj_forLoopAIndexEnd=19
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call ForGroupBJ(GQ(a[bj_forLoopAIndex],Condition(function oU)),function ov)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=((CountPlayersInForceBJ(k)*2)-1)
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'o000',Player(11),GetUnitLoc(GroupPickRandomUnit(GR(a[bj_forLoopAIndex]))),GetRandomReal(0,360))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call gv(1.)
call gv(14.)
set aE=true
call PlaySoundBJ(cw)
call CreateNUnitsAtLoc(15,'ugho',Player(11),GetRectCenter(b2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(15,'ugho',Player(11),GetRectCenter(b2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(15,'ugho',Player(12),GetRectCenter(b2),bj_UNIT_FACING)
call ForGroupBJ(GR(bZ),function oV)
call ModifyGateBJ(1,gq)
call PlaySoundAtPointBJ(ch,'d',GetDestructableLoc(ga),0)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"GO",1,5.,false)
call StartTimerBJ(B,false,340.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"Time Left")
call gv(1.)
call EnableTrigger(el)
endfunction
function oW takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)
endfunction
function ox takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function oX takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function oy takes nothing returns nothing
call CreateFogModifierRectBJ(true,GetEnumPlayer(),FOG_OF_WAR_MASKED,bZ)
endfunction
function oY takes nothing returns nothing
set aE=false
call StopSoundBJ(cw,true)
call ForGroupBJ(Gs(b2,Player(11)),function ox)
call ForGroupBJ(Gs(b2,Player(11)),function oX)
call UseTimeOfDayBJ(false)
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(eK)
call DisableTrigger(el)
call DisableTrigger(ek)
call DestroyFogModifier(bj_lastCreatedFogModifier)
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call PauseTimerBJ(true,bj_lastStartedTimer)
call KillDestructable(RandomDestructableInRectSimpleBJ(b1))
call TriggerExecute(cZ)
call gv(1.5)
call ForForce(bj_FORCE_ALL_PLAYERS,function oy)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_MASKED,bZ)
endfunction
function oz takes nothing returns boolean
return(aE)
endfunction
function oZ takes nothing returns nothing
call IssuePointOrderByIdLoc(GetEnumUnit(),851990,GetRandomLocInRect(b2))
endfunction
function o0 takes nothing returns nothing
call IssuePointOrderByIdLoc(GetEnumUnit(),851986,GetRandomLocInRect(b2))
endfunction
function o1 takes nothing returns nothing
call CreateNUnitsAtLoc(1,'ugho',Player(11),GetRectCenter(b3),bj_UNIT_FACING)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851983,GetRectCenter(b2))
call CreateNUnitsAtLoc(1,'ugho',Player(12),GetRectCenter(b4),bj_UNIT_FACING)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851983,GetRectCenter(b2))
call ForGroupBJ(GR(b2),function oZ)
call TriggerSleepAction(1.5)
call ForGroupBJ(GR(b2),function o0)
endfunction
function o2 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function o3 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==F)
endfunction
function o4 takes nothing returns boolean
return GetBooleanAnd(o2(),o3())
endfunction
function o5 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)and(CountUnitsInGroup(GQ(bj_mapInitialPlayableArea,Condition(function o4)))==0)
endfunction
function o6 takes nothing returns nothing
call DisableTrigger(el)
call gv(2)
set W=1
call TriggerExecute(eJ)
endfunction
function o7 takes nothing returns nothing
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"TIME UP",1,10.,false)
call KillDestructable(RandomDestructableInRectSimpleBJ(bY))
call DisableTrigger(eK)
call DisableTrigger(el)
call DisableTrigger(ek)
call DisableTrigger(eJ)
call DisableTrigger(GetTriggeringTrigger())
call gv(2)
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call PauseTimerBJ(true,bj_lastStartedTimer)
set W=1
call TriggerExecute(eJ)
endfunction
function o8 takes nothing returns nothing
call SelectHeroSkill(GetEnumUnit(),'ANwk')
endfunction
function o9 takes nothing returns nothing
call SetCameraBoundsToRectForPlayerBJ(GetEnumPlayer(),BF)
endfunction
function Oa takes nothing returns nothing
set F='H017'
set E=BG
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"TRIGSTR_1183",1,25.,false)
call gv(1.)
call ForGroupBJ(GR(BF),function o8)
call SetTimeOfDay(15.)
call PlayMusicBJ(cv)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_VISIBLE,BF)
call ForForce(bj_FORCE_ALL_PLAYERS,function o9)
call TriggerSleepAction(12.)
call SetUnitOwner(FP,Player(11),true)
call StartTimerBJ(B,false,120.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"Survive for")
call EnableTrigger(em)
call EnableTrigger(en)
endfunction
function OA takes nothing returns nothing
call SetUnitInvulnerable(GetEnumUnit(),true)
endfunction
function Ob takes nothing returns nothing
call ForGroupBJ(Gs(BF,GetEnumPlayer()),function OA)
endfunction
function OB takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function Oc takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function OC takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call PauseTimerBJ(true,bj_lastStartedTimer)
call DisableTrigger(en)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"TIME UP",1,10.,false)
call ForForce(k,function Ob)
call TriggerSleepAction(2)
call ForGroupBJ(Gs(BF,Player(11)),function OB)
call ForGroupBJ(Gs(BF,Player(11)),function Oc)
call CreateDeadDestructableLocBJ('OTsp',GetRectCenter(Bg),270.,.7,0)
call DestructableRestoreLife(bj_lastCreatedDestructable,GetDestructableMaxLife(bj_lastCreatedDestructable),true)
call gv(2)
call EnableTrigger(eM)
endfunction
function Od takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)
endfunction
function OD takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(en)
call DisableTrigger(em)
call DestroyFogModifier(bj_lastCreatedFogModifier)
call TriggerExecute(cZ)
call KillDestructable(RandomDestructableInRectSimpleBJ(BF))
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_MASKED,BF)
endfunction
function Oe takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function OE takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==F)
endfunction
function Of takes nothing returns boolean
return GetBooleanAnd(Oe(),OE())
endfunction
function OF takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)and(CountUnitsInGroup(GQ(bj_mapInitialPlayableArea,Condition(function Of)))==0)
endfunction
function Og takes nothing returns nothing
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call PauseTimerBJ(true,bj_lastStartedTimer)
set W=1
call TriggerExecute(eM)
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(em)
endfunction
function OG takes nothing returns nothing
call SetCameraBoundsToRectForPlayerBJ(GetEnumPlayer(),BD)
endfunction
function Oh takes nothing returns nothing
set F='h00Y'
set E=Be
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"TRIGSTR_1195",1,25.,false)
call gv(1.)
call SetTimeOfDay(24.)
call PlayMusicBJ(cn)
call ForForce(bj_FORCE_ALL_PLAYERS,function OG)
call StartTimerBJ(B,false,120.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"Kill him before")
call EnableTrigger(eO)
call EnableTrigger(eP)
call EnableTrigger(eo)
call SetHeroLevelBJ(Fq,1,false)
endfunction
function OH takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("overhead",Fq,"Abilities\\Spells\\NightElf\\Blink\\BlinkTarget.mdl")
call TriggerSleepAction(.2)
call AddSpecialEffectTargetUnitBJ("overhead",Fq,"Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageCaster.mdl")
call TriggerSleepAction(.2)
call SetUnitPositionLoc(Fq,GetRandomLocInRect(BD))
call AddSpecialEffectTargetUnitBJ("overhead",Fq,"Abilities\\Spells\\NightElf\\Blink\\BlinkTarget.mdl")
call TriggerSleepAction(.1)
call AddSpecialEffectTargetUnitBJ("overhead",Fq,"Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageCaster.mdl")
call TriggerSleepAction(.1)
call AddSpecialEffectTargetUnitBJ("overhead",Fq,"Abilities\\Spells\\NightElf\\Blink\\BlinkTarget.mdl")
endfunction
function Oi takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(eo)
call DisableTrigger(ep)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"TIME UP",1,10.,false)
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call PauseTimerBJ(true,bj_lastStartedTimer)
set W=1
call TriggerExecute(ep)
endfunction
function OI takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Oj takes nothing returns nothing
call DisableTrigger(eO)
call DestroyFogModifier(bj_lastCreatedFogModifier)
call KillDestructable(RandomDestructableInRectSimpleBJ(BD))
call ForGroupBJ(Gs(BD,Player(11)),function OI)
call TriggerExecute(cZ)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_MASKED,BD)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function OJ takes nothing returns nothing
call DisableTrigger(eO)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"Completed",1,10.,false)
call CreateDeadDestructableLocBJ('OTsp',GetRectCenter(Bh),270.,.7,0)
call DestructableRestoreLife(bj_lastCreatedDestructable,GetDestructableMaxLife(bj_lastCreatedDestructable),true)
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call PauseTimerBJ(true,bj_lastStartedTimer)
call EnableTrigger(ep)
call DisableTrigger(eo)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Ok takes nothing returns nothing
call SetCameraBoundsToRectForPlayerBJ(GetEnumPlayer(),BH)
endfunction
function OK takes nothing returns nothing
set F='h014'
set E=BI
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"TRIGSTR_1205",1,25.,false)
call gv(1.)
call SetTimeOfDay(3.)
call PlayMusicBJ(cp)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_VISIBLE,BH)
call ForForce(bj_FORCE_ALL_PLAYERS,function Ok)
call EnableTrigger(er)
call EnableTrigger(eR)
call TriggerSleepAction(6.)
call EnableTrigger(eQ)
call gv(1.9)
call ModifyGateBJ(1,gN)
endfunction
function Ol takes nothing returns nothing
call IssuePointOrderByIdLoc(GetEnumUnit(),851986,GetRandomLocInRect(Bi))
endfunction
function OL takes nothing returns nothing
call ForGroupBJ(Gs(BH,Player(11)),function Ol)
endfunction
function Om takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())!=F)
endfunction
function OM takes nothing returns nothing
set W=1
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"Failure",1,10.,false)
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(eQ)
call TriggerExecute(eR)
endfunction
function On takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)
endfunction
function ON takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Oo takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DestroyFogModifier(bj_lastCreatedFogModifier)
call ForGroupBJ(Gs(BH,Player(11)),function ON)
call KillDestructable(RandomDestructableInRectSimpleBJ(Bi))
call DisableTrigger(eQ)
call TriggerExecute(cZ)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_MASKED,BH)
endfunction
function OO takes nothing returns nothing
call SetCameraBoundsToRectForPlayerBJ(GetEnumPlayer(),Bj)
endfunction
function Op takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function OP takes nothing returns nothing
set F='h016'
set E=BJ
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"TRIGSTR_1215",1,25.,false)
call gv(1.)
call SetTimeOfDay(3.)
call PlayMusicBJ(cp)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_VISIBLE,Bj)
call ForForce(bj_FORCE_ALL_PLAYERS,function OO)
call TriggerSleepAction(6.)
call EnumDestructablesInRectAll(Bj,function Op)
call StartTimerBJ(B,false,155.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"Survive for")
call EnableTrigger(et)
call EnableTrigger(eT)
call EnableTrigger(eU)
call EnableTrigger(eS)
endfunction
function Oq takes nothing returns nothing
call IssuePointOrderByIdLoc(FT,851983,GetRandomLocInRect(Bj))
endfunction
function OQ takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function OR takes nothing returns nothing
call CreateNUnitsAtLoc(1,'oshm',Player(11),GetRandomLocInRect(Bj),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'oshm',Player(11),GetRandomLocInRect(Bj),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'oshm',Player(11),GetRandomLocInRect(Bj),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'oshm',Player(11),GetRandomLocInRect(Bj),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'oshm',Player(11),GetRandomLocInRect(Bj),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'oshm',Player(11),GetRandomLocInRect(Bj),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'oshm',Player(11),GetRandomLocInRect(Bj),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'oshm',Player(11),GetRandomLocInRect(Bj),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'oshm',Player(11),GetRandomLocInRect(Bj),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'oshm',Player(11),GetRandomLocInRect(Bj),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'oshm',Player(11),GetRandomLocInRect(Bj),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'oshm',Player(11),GetRandomLocInRect(Bj),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'oshm',Player(11),GetRandomLocInRect(Bj),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'oshm',Player(11),GetRandomLocInRect(Bj),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'oshm',Player(11),GetRandomLocInRect(Bj),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'oshm',Player(11),GetRandomLocInRect(Bj),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'oshm',Player(11),GetRandomLocInRect(Bj),bj_UNIT_FACING)
call AddSpecialEffectLocBJ(GetRandomLocInRect(Bj),"Abilities\\Spells\\Orc\\AncestralSpirit\\AncestralSpiritCaster.mdl")
call AddSpecialEffectLocBJ(GetRandomLocInRect(Bj),"Abilities\\Spells\\Orc\\AncestralSpirit\\AncestralSpiritCaster.mdl")
call AddSpecialEffectLocBJ(GetRandomLocInRect(Bj),"Abilities\\Spells\\Orc\\AncestralSpirit\\AncestralSpiritCaster.mdl")
call AddSpecialEffectLocBJ(GetRandomLocInRect(Bj),"Abilities\\Spells\\Orc\\AncestralSpirit\\AncestralSpiritCaster.mdl")
call AddSpecialEffectLocBJ(GetRandomLocInRect(Bj),"Abilities\\Spells\\Orc\\AncestralSpirit\\AncestralSpiritCaster.mdl")
call AddSpecialEffectLocBJ(GetRandomLocInRect(Bj),"Abilities\\Spells\\Orc\\AncestralSpirit\\AncestralSpiritCaster.mdl")
call AddSpecialEffectLocBJ(GetRandomLocInRect(Bj),"Abilities\\Spells\\Orc\\AncestralSpirit\\AncestralSpiritCaster.mdl")
call AddSpecialEffectLocBJ(GetRandomLocInRect(Bj),"Abilities\\Spells\\Orc\\AncestralSpirit\\AncestralSpiritCaster.mdl")
call AddSpecialEffectLocBJ(GetRandomLocInRect(Bj),"Abilities\\Spells\\Orc\\AncestralSpirit\\AncestralSpiritCaster.mdl")
call AddSpecialEffectLocBJ(GetRandomLocInRect(Bj),"Abilities\\Spells\\Orc\\AncestralSpirit\\AncestralSpiritCaster.mdl")
call AddSpecialEffectLocBJ(GetRandomLocInRect(Bj),"Abilities\\Spells\\Orc\\AncestralSpirit\\AncestralSpiritCaster.mdl")
call AddSpecialEffectLocBJ(GetRandomLocInRect(Bj),"Abilities\\Spells\\Orc\\AncestralSpirit\\AncestralSpiritCaster.mdl")
call AddSpecialEffectLocBJ(GetRandomLocInRect(Bj),"Abilities\\Spells\\Orc\\AncestralSpirit\\AncestralSpiritCaster.mdl")
call TriggerSleepAction(1.)
call ForGroupBJ(GU('oshm'),function OQ)
endfunction
function Os takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function OS takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Ot takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(eS)
call DisableTrigger(eU)
call DisableTrigger(et)
call DisableTrigger(eu)
call DestroyFogModifier(bj_lastCreatedFogModifier)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"TIME UP",1,10.,false)
call ForGroupBJ(Gs(Bj,Player(11)),function Os)
call ForGroupBJ(Gs(Bj,Player(11)),function OS)
call TriggerExecute(eu)
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call PauseTimerBJ(true,bj_lastStartedTimer)
endfunction
function OT takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)
endfunction
function Ou takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function OU takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(eU)
call DisableTrigger(eT)
call DestroyFogModifier(bj_lastCreatedFogModifier)
call TriggerExecute(cZ)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_MASKED,Bj)
call ForGroupBJ(Gs(Bj,Player(11)),function Ou)
endfunction
function Ov takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function OV takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==F)
endfunction
function Ow takes nothing returns boolean
return GetBooleanAnd(Ov(),OV())
endfunction
function OW takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)and(CountUnitsInGroup(GQ(bj_mapInitialPlayableArea,Condition(function Ow)))==0)
endfunction
function Ox takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function OX takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Oy takes nothing returns nothing
set W=1
call DisableTrigger(eS)
call DisableTrigger(et)
call DisableTrigger(eT)
call TriggerExecute(eu)
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call PauseTimerBJ(true,bj_lastStartedTimer)
call DisableTrigger(GetTriggeringTrigger())
call ForGroupBJ(Gs(Bj,Player(11)),function Ox)
call ForGroupBJ(Gs(Bj,Player(11)),function OX)
endfunction
function OY takes nothing returns nothing
call SetCameraBoundsToRectForPlayerBJ(GetEnumPlayer(),Bk)
endfunction
function Oz takes nothing returns nothing
set F='h00M'
set E=Bk
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"TRIGSTR_1243",1,25.,false)
call gv(1.)
call SetTimeOfDay(24.)
call PlayMusicBJ(cn)
call ForForce(bj_FORCE_ALL_PLAYERS,function OY)
call StartTimerBJ(B,false,80.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"Survive for")
call EnableTrigger(eV)
call EnableTrigger(eW)
call EnableTrigger(eX)
call gv(30.)
call EnableTrigger(ew)
endfunction
function OZ takes nothing returns nothing
call IssuePointOrderByIdLoc(F1,852593,GetRandomLocInRect(Bk))
endfunction
function O0 takes nothing returns nothing
call IssuePointOrderByIdLoc(F2,852593,GetRandomLocInRect(Bk))
endfunction
function O1 takes nothing returns nothing
call SetUnitInvulnerable(GetEnumUnit(),true)
endfunction
function O2 takes nothing returns nothing
call ForGroupBJ(Gs(Bk,GetEnumPlayer()),function O1)
endfunction
function O3 takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function O4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function O5 takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call PauseTimerBJ(true,bj_lastStartedTimer)
call DisableTrigger(eX)
call DisableTrigger(eV)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"TIME UP",1,10.,false)
call ForForce(k,function O2)
call TriggerSleepAction(2)
call ForGroupBJ(Gs(Bk,Player(11)),function O3)
call ForGroupBJ(Gs(Bk,Player(11)),function O4)
call CreateDeadDestructableLocBJ('OTsp',GetRectCenter(BK),270.,.7,0)
call DestructableRestoreLife(bj_lastCreatedDestructable,GetDestructableMaxLife(bj_lastCreatedDestructable),true)
call gv(2)
call EnableTrigger(ex)
call DisableTrigger(ew)
endfunction
function O6 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function O7 takes nothing returns nothing
call DestroyFogModifier(bj_lastCreatedFogModifier)
call KillDestructable(RandomDestructableInRectSimpleBJ(BK))
call ForGroupBJ(Gs(Bk,Player(11)),function O6)
call TriggerExecute(cZ)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_MASKED,Bk)
call DisableTrigger(eW)
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(eV)
call DisableTrigger(ew)
endfunction
function O8 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function O9 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==F)
endfunction
function pa takes nothing returns boolean
return GetBooleanAnd(O8(),O9())
endfunction
function pA takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)and(CountUnitsInGroup(GQ(bj_mapInitialPlayableArea,Condition(function pa)))==0)
endfunction
function pb takes nothing returns nothing
call DisableTrigger(eW)
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call PauseTimerBJ(true,bj_lastStartedTimer)
set W=1
call TriggerExecute(ex)
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(eV)
call DisableTrigger(ew)
endfunction
function pB takes nothing returns nothing
call SetCameraBoundsToRectForPlayerBJ(GetEnumPlayer(),Bl)
endfunction
function pc takes nothing returns nothing
set F='h018'
set E=Bm
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"TRIGSTR_1251",1,30.,false)
call gv(1.)
call SetTimeOfDay(24.)
call PlayMusicBJ(cn)
call ForForce(bj_FORCE_ALL_PLAYERS,function pB)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_VISIBLE,BM)
call StartTimerBJ(B,false,140.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"Protect for")
call EnableTrigger(ez)
call EnableTrigger(e1)
call EnableTrigger(eY)
call TriggerExecute(eZ)
call SetUnitInvulnerable(FZ,false)
endfunction
function pC takes nothing returns nothing
call SetUnitInvulnerable(GetEnumUnit(),true)
endfunction
function pd takes nothing returns nothing
call ForGroupBJ(Gs(BM,GetEnumPlayer()),function pC)
endfunction
function pD takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function pe takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function pE takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call PauseTimerBJ(true,bj_lastStartedTimer)
call DisableTrigger(e1)
call DisableTrigger(ez)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"TIME UP",1,10.,false)
call SetUnitInvulnerable(FZ,true)
call ForForce(k,function pd)
call TriggerSleepAction(2)
call ForGroupBJ(Gs(BM,Player(11)),function pD)
call ForGroupBJ(Gs(BM,Player(11)),function pe)
call CreateDeadDestructableLocBJ('OTsp',GetRectCenter(Bm),270.,.7,0)
call DestructableRestoreLife(bj_lastCreatedDestructable,GetDestructableMaxLife(bj_lastCreatedDestructable),true)
call gv(2)
call EnableTrigger(e0)
endfunction
function pf takes nothing returns nothing
call IssueTargetOrderById(GetEnumUnit(),851983,FZ)
endfunction
function pF takes nothing returns nothing
call ForGroupBJ(GZ(2,Gs(BM,Player(11))),function pf)
endfunction
function pg takes nothing returns nothing
call IssuePointOrderByIdLoc(GetEnumUnit(),851983,GetRectCenter(Bm))
endfunction
function pG takes nothing returns nothing
call CreateNUnitsAtLoc((14+CountPlayersInForceBJ(k)),'h019',Player(11),GetRectCenter(BL),bj_UNIT_FACING)
call gv(.5)
call ForGroupBJ(Gs(BM,Player(11)),function pg)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function ph takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function pH takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function pi takes nothing returns nothing
call DestroyFogModifier(bj_lastCreatedFogModifier)
call KillDestructable(RandomDestructableInRectSimpleBJ(Bl))
call ForGroupBJ(Gs(BM,Player(11)),function ph)
call TriggerExecute(cZ)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_MASKED,BM)
call DisableTrigger(eY)
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(ez)
call DisableTrigger(e1)
call gv(.1)
call ForGroupBJ(Gs(B5,Player(10)),function pH)
endfunction
function pI takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h01A')
endfunction
function pj takes nothing returns nothing
call DisableTrigger(eY)
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call PauseTimerBJ(true,bj_lastStartedTimer)
set W=1
call TriggerExecute(e0)
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(ez)
endfunction
function pJ takes nothing returns nothing
call SetCameraBoundsToRectForPlayerBJ(GetEnumPlayer(),Bu)
endfunction
function pk takes nothing returns nothing
set F='H01D'
set E=Bt
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"TRIGSTR_1264",1,30.,false)
call gv(1.)
call SetTimeOfDay(24.)
call PlayMusicBJ(cv)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_VISIBLE,BU)
call ForForce(bj_FORCE_ALL_PLAYERS,function pJ)
call StartTimerBJ(ag,false,135.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"Time Left")
call EnableTrigger(e6)
call EnableTrigger(e8)
call TriggerExecute(e3)
call ConditionalTriggerExecute(e4)
call EnableTrigger(e7)
call EnableTrigger(e5)
endfunction
function pK takes nothing returns nothing
call IssuePointOrderByIdLoc(FO,851990,GetRectCenter(Bn))
call IssuePointOrderByIdLoc(FX,851990,GetRectCenter(BN))
call IssuePointOrderByIdLoc(Fx,851990,GetRectCenter(Bo))
call IssuePointOrderByIdLoc(FR,851990,GetRectCenter(BO))
call IssuePointOrderByIdLoc(FU,851990,GetRectCenter(Bp))
call IssuePointOrderByIdLoc(Fv,851990,GetRectCenter(BP))
call IssuePointOrderByIdLoc(FV,851990,GetRectCenter(Bq))
call IssuePointOrderByIdLoc(Fw,851990,GetRectCenter(B2))
call IssuePointOrderByIdLoc(Fy,851990,GetRectCenter(Br))
call IssuePointOrderByIdLoc(F7,851990,GetRectCenter(B2))
call IssuePointOrderByIdLoc(Fu,851990,GetRectCenter(B1))
call IssuePointOrderByIdLoc(F6,851990,GetRectCenter(BQ))
endfunction
function pl takes nothing returns boolean
return(aF==false)
endfunction
function pL takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h01B',Player(11),GetRectCenter(Bs),bj_UNIT_FACING)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851986,GetRectCenter(BS))
call gv(3.)
call ConditionalTriggerExecute(e4)
endfunction
function pm takes nothing returns boolean
return(GetUnitTypeId(GetEnteringUnit())=='h01B')
endfunction
function pM takes nothing returns nothing
call KillUnit(GetEnteringUnit())
endfunction
function pn takes nothing returns nothing
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call PauseTimerBJ(true,bj_lastStartedTimer)
call DisableTrigger(GetTriggeringTrigger())
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"TIME UP",1,10.,false)
call KillDestructable(RandomDestructableInRectSimpleBJ(BT))
call DisableTrigger(e6)
call DisableTrigger(e8)
call DisableTrigger(e7)
set W=1
call TriggerExecute(e7)
endfunction
function pN takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)
endfunction
function po takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function pO takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function pp takes nothing returns nothing
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call PauseTimerBJ(true,bj_lastStartedTimer)
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(e8)
call DisableTrigger(e5)
call DisableTrigger(e6)
call DisableTrigger(e4)
set aF=true
call DestroyFogModifier(bj_lastCreatedFogModifier)
call KillDestructable(RandomDestructableInRectSimpleBJ(BT))
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_MASKED,BU)
call ForGroupBJ(Gs(BU,Player(11)),function po)
call ForGroupBJ(Gs(BU,Player(10)),function pO)
call TriggerExecute(cZ)
endfunction
function pP takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function pq takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==F)
endfunction
function pQ takes nothing returns boolean
return GetBooleanAnd(pP(),pq())
endfunction
function pr takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)and(CountUnitsInGroup(GQ(bj_mapInitialPlayableArea,Condition(function pQ)))==0)
endfunction
function pR takes nothing returns nothing
call DisableTrigger(e6)
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call PauseTimerBJ(true,bj_lastStartedTimer)
call DisableTrigger(GetTriggeringTrigger())
set W=1
call TriggerExecute(e7)
endfunction
function ps takes nothing returns nothing
call SetCameraBoundsToRectForPlayerBJ(GetEnumPlayer(),B6)
endfunction
function pS takes nothing returns nothing
set F='h01J'
set E=B3
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"TRIGSTR_1321",1,30.,false)
call gv(1.)
call SetTimeOfDay(24.)
call PlayMusicBJ(cn)
call ForForce(bj_FORCE_ALL_PLAYERS,function ps)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_VISIBLE,B5)
call StartTimerBJ(ah,false,120.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"Time untill Boss")
call EnableTrigger(EA)
call EnableTrigger(Ec)
call EnableTrigger(EC)
call EnableTrigger(Eb)
call EnableTrigger(Ea)
call SetPlayerAllianceStateBJ(Player(10),Player(11),0)
endfunction
function pt takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function pT takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(Ec)
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call PauseTimerBJ(true,bj_lastStartedTimer)
call SetUnitPositionLoc(Fo,GetRectCenter(B4))
call ForGroupBJ(GW(Player(11),'h01I'),function pt)
endfunction
function pu takes nothing returns nothing
call IssueTargetOrderById(GetEnumUnit(),851983,FN)
endfunction
function pU takes nothing returns nothing
call ForGroupBJ(Gs(B5,Player(11)),function pu)
endfunction
function pv takes nothing returns nothing
call SetUnitInvulnerable(GetEnumUnit(),true)
endfunction
function pV takes nothing returns nothing
call ForGroupBJ(Gs(B5,GetEnumPlayer()),function pv)
endfunction
function pw takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function pW takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function px takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call PauseTimerBJ(true,bj_lastStartedTimer)
call DisableTrigger(EA)
call DisableTrigger(EC)
call DisableTrigger(Ec)
call DisableTrigger(Ea)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"Victory",1,10.,false)
call SetUnitInvulnerable(FN,true)
call ForForce(k,function pV)
call TriggerSleepAction(2)
call ForGroupBJ(Gs(B5,Player(11)),function pw)
call ForGroupBJ(Gs(B5,Player(11)),function pW)
call CreateDeadDestructableLocBJ('OTsp',GetRectCenter(B7),270.,.7,0)
call DestructableRestoreLife(bj_lastCreatedDestructable,GetDestructableMaxLife(bj_lastCreatedDestructable),true)
call gv(2)
call EnableTrigger(EB)
endfunction
function pX takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function py takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function pY takes nothing returns nothing
call DestroyFogModifier(bj_lastCreatedFogModifier)
call KillDestructable(RandomDestructableInRectSimpleBJ(B7))
call ForGroupBJ(Gs(B5,Player(11)),function pX)
call TriggerExecute(cZ)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_MASKED,B5)
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(EA)
call DisableTrigger(EC)
call DisableTrigger(Ec)
call DisableTrigger(Eb)
call DisableTrigger(Ea)
call SetPlayerAllianceStateBJ(Player(10),Player(11),2)
call gv(.1)
call ForGroupBJ(Gs(B5,Player(10)),function py)
endfunction
function pz takes nothing returns nothing
call CreateNUnitsAtLoc((4+CountPlayersInForceBJ(k)),'h019',Player(11),GetRectCenter(B4),bj_UNIT_FACING)
endfunction
function pZ takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h01G')
endfunction
function p0 takes nothing returns nothing
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call PauseTimerBJ(true,bj_lastStartedTimer)
set W=1
call TriggerExecute(EB)
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(Ec)
call DisableTrigger(EA)
call DisableTrigger(Eb)
call DisableTrigger(Ea)
endfunction
function p1 takes nothing returns nothing
call SetCameraBoundsToRectForPlayerBJ(GetEnumPlayer(),ca)
endfunction
function p2 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function p3 takes nothing returns nothing
set F='H01K'
set E=cA
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"TRIGSTR_1333",1,30.,false)
call gv(1.)
call SetTimeOfDay(6.)
call PlayMusicBJ(cn)
call ForForce(bj_FORCE_ALL_PLAYERS,function p1)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_VISIBLE,B9)
call EnableTrigger(Ef)
call EnableTrigger(EE)
call TriggerExecute(EF)
call TriggerSleepAction(10.)
call StartTimerBJ(B,false,150.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"Time left")
call EnableTrigger(Ee)
call EnumDestructablesInRectAll(cc,function p2)
endfunction
function p4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function p5 takes nothing returns nothing
call DestroyFogModifier(bj_lastCreatedFogModifier)
call KillDestructable(RandomDestructableInRectSimpleBJ(cB))
call ForGroupBJ(Gs(B9,Player(11)),function p4)
call TriggerExecute(cZ)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_MASKED,B9)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function p6 takes nothing returns nothing
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call PauseTimerBJ(true,bj_lastStartedTimer)
call DisableTrigger(GetTriggeringTrigger())
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"TIME UP",1,10.,false)
call DisableTrigger(Ef)
call DisableTrigger(EE)
set W=1
call TriggerExecute(ED)
endfunction
function p7 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='o002')and(G4('o002',Player(11))==0)
endfunction
function p8 takes nothing returns nothing
call SetUnitInvulnerable(GetEnumUnit(),true)
endfunction
function p9 takes nothing returns nothing
call ForGroupBJ(Gs(B9,GetEnumPlayer()),function p8)
endfunction
function Pa takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function PA takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call PauseTimerBJ(true,bj_lastStartedTimer)
call DisableTrigger(Ef)
call DisableTrigger(Ee)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",cH,"Victory",1,10.,false)
call ForForce(k,function p9)
call TriggerSleepAction(2)
call ForGroupBJ(Gs(B9,Player(11)),function Pa)
call CreateDeadDestructableLocBJ('OTsp',GetRectCenter(cB),270.,.7,0)
call DestructableRestoreLife(bj_lastCreatedDestructable,GetDestructableMaxLife(bj_lastCreatedDestructable),true)
call gv(2)
call EnableTrigger(ED)
endfunction
function Pb takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function PB takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==F)
endfunction
function Pc takes nothing returns boolean
return GetBooleanAnd(Pb(),PB())
endfunction
function PC takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==F)and(CountUnitsInGroup(GQ(bj_mapInitialPlayableArea,Condition(function Pc)))==0)
endfunction
function Pd takes nothing returns nothing
call DisableTrigger(Ee)
call DisableTrigger(EE)
call DestroyTimerDialog(bj_lastCreatedTimerDialog)
call PauseTimerBJ(true,bj_lastStartedTimer)
call DisableTrigger(GetTriggeringTrigger())
set W=1
call TriggerExecute(ED)
endfunction
function PD takes nothing returns nothing
call CreateNUnitsAtLoc((12+(CountPlayersInForceBJ(k)*2)),'o002',Player(11),GetRectCenter(cb),bj_UNIT_FACING)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function InitCustomTeams takes nothing returns nothing
call SetPlayerTeam(Player(0),0)
call SetPlayerState(Player(0),PLAYER_STATE_ALLIED_VICTORY,1)
call SetPlayerTeam(Player(1),0)
call SetPlayerState(Player(1),PLAYER_STATE_ALLIED_VICTORY,1)
call SetPlayerTeam(Player(2),0)
call SetPlayerState(Player(2),PLAYER_STATE_ALLIED_VICTORY,1)
call SetPlayerTeam(Player(3),0)
call SetPlayerState(Player(3),PLAYER_STATE_ALLIED_VICTORY,1)
call SetPlayerTeam(Player(4),0)
call SetPlayerState(Player(4),PLAYER_STATE_ALLIED_VICTORY,1)
call SetPlayerTeam(Player(5),0)
call SetPlayerState(Player(5),PLAYER_STATE_ALLIED_VICTORY,1)
call SetPlayerTeam(Player(6),0)
call SetPlayerState(Player(6),PLAYER_STATE_ALLIED_VICTORY,1)
call SetPlayerTeam(Player(7),0)
call SetPlayerState(Player(7),PLAYER_STATE_ALLIED_VICTORY,1)
call SetPlayerTeam(Player(8),0)
call SetPlayerState(Player(8),PLAYER_STATE_ALLIED_VICTORY,1)
call SetPlayerTeam(Player(9),0)
call SetPlayerState(Player(9),PLAYER_STATE_ALLIED_VICTORY,1)
call SetPlayerAllianceStateAllyBJ(Player(0),Player(1),true)
call SetPlayerAllianceStateAllyBJ(Player(0),Player(2),true)
call SetPlayerAllianceStateAllyBJ(Player(0),Player(3),true)
call SetPlayerAllianceStateAllyBJ(Player(0),Player(4),true)
call SetPlayerAllianceStateAllyBJ(Player(0),Player(5),true)
call SetPlayerAllianceStateAllyBJ(Player(0),Player(6),true)
call SetPlayerAllianceStateAllyBJ(Player(0),Player(7),true)
call SetPlayerAllianceStateAllyBJ(Player(0),Player(8),true)
call SetPlayerAllianceStateAllyBJ(Player(0),Player(9),true)
call SetPlayerAllianceStateAllyBJ(Player(1),Player(0),true)
call SetPlayerAllianceStateAllyBJ(Player(1),Player(2),true)
call SetPlayerAllianceStateAllyBJ(Player(1),Player(3),true)
call SetPlayerAllianceStateAllyBJ(Player(1),Player(4),true)
call SetPlayerAllianceStateAllyBJ(Player(1),Player(5),true)
call SetPlayerAllianceStateAllyBJ(Player(1),Player(6),true)
call SetPlayerAllianceStateAllyBJ(Player(1),Player(7),true)
call SetPlayerAllianceStateAllyBJ(Player(1),Player(8),true)
call SetPlayerAllianceStateAllyBJ(Player(1),Player(9),true)
call SetPlayerAllianceStateAllyBJ(Player(2),Player(0),true)
call SetPlayerAllianceStateAllyBJ(Player(2),Player(1),true)
call SetPlayerAllianceStateAllyBJ(Player(2),Player(3),true)
call SetPlayerAllianceStateAllyBJ(Player(2),Player(4),true)
call SetPlayerAllianceStateAllyBJ(Player(2),Player(5),true)
call SetPlayerAllianceStateAllyBJ(Player(2),Player(6),true)
call SetPlayerAllianceStateAllyBJ(Player(2),Player(7),true)
call SetPlayerAllianceStateAllyBJ(Player(2),Player(8),true)
call SetPlayerAllianceStateAllyBJ(Player(2),Player(9),true)
call SetPlayerAllianceStateAllyBJ(Player(3),Player(0),true)
call SetPlayerAllianceStateAllyBJ(Player(3),Player(1),true)
call SetPlayerAllianceStateAllyBJ(Player(3),Player(2),true)
call SetPlayerAllianceStateAllyBJ(Player(3),Player(4),true)
call SetPlayerAllianceStateAllyBJ(Player(3),Player(5),true)
call SetPlayerAllianceStateAllyBJ(Player(3),Player(6),true)
call SetPlayerAllianceStateAllyBJ(Player(3),Player(7),true)
call SetPlayerAllianceStateAllyBJ(Player(3),Player(8),true)
call SetPlayerAllianceStateAllyBJ(Player(3),Player(9),true)
call SetPlayerAllianceStateAllyBJ(Player(4),Player(0),true)
call SetPlayerAllianceStateAllyBJ(Player(4),Player(1),true)
call SetPlayerAllianceStateAllyBJ(Player(4),Player(2),true)
call SetPlayerAllianceStateAllyBJ(Player(4),Player(3),true)
call SetPlayerAllianceStateAllyBJ(Player(4),Player(5),true)
call SetPlayerAllianceStateAllyBJ(Player(4),Player(6),true)
call SetPlayerAllianceStateAllyBJ(Player(4),Player(7),true)
call SetPlayerAllianceStateAllyBJ(Player(4),Player(8),true)
call SetPlayerAllianceStateAllyBJ(Player(4),Player(9),true)
call SetPlayerAllianceStateAllyBJ(Player(5),Player(0),true)
call SetPlayerAllianceStateAllyBJ(Player(5),Player(1),true)
call SetPlayerAllianceStateAllyBJ(Player(5),Player(2),true)
call SetPlayerAllianceStateAllyBJ(Player(5),Player(3),true)
call SetPlayerAllianceStateAllyBJ(Player(5),Player(4),true)
call SetPlayerAllianceStateAllyBJ(Player(5),Player(6),true)
call SetPlayerAllianceStateAllyBJ(Player(5),Player(7),true)
call SetPlayerAllianceStateAllyBJ(Player(5),Player(8),true)
call SetPlayerAllianceStateAllyBJ(Player(5),Player(9),true)
call SetPlayerAllianceStateAllyBJ(Player(6),Player(0),true)
call SetPlayerAllianceStateAllyBJ(Player(6),Player(1),true)
call SetPlayerAllianceStateAllyBJ(Player(6),Player(2),true)
call SetPlayerAllianceStateAllyBJ(Player(6),Player(3),true)
call SetPlayerAllianceStateAllyBJ(Player(6),Player(4),true)
call SetPlayerAllianceStateAllyBJ(Player(6),Player(5),true)
call SetPlayerAllianceStateAllyBJ(Player(6),Player(7),true)
call SetPlayerAllianceStateAllyBJ(Player(6),Player(8),true)
call SetPlayerAllianceStateAllyBJ(Player(6),Player(9),true)
call SetPlayerAllianceStateAllyBJ(Player(7),Player(0),true)
call SetPlayerAllianceStateAllyBJ(Player(7),Player(1),true)
call SetPlayerAllianceStateAllyBJ(Player(7),Player(2),true)
call SetPlayerAllianceStateAllyBJ(Player(7),Player(3),true)
call SetPlayerAllianceStateAllyBJ(Player(7),Player(4),true)
call SetPlayerAllianceStateAllyBJ(Player(7),Player(5),true)
call SetPlayerAllianceStateAllyBJ(Player(7),Player(6),true)
call SetPlayerAllianceStateAllyBJ(Player(7),Player(8),true)
call SetPlayerAllianceStateAllyBJ(Player(7),Player(9),true)
call SetPlayerAllianceStateAllyBJ(Player(8),Player(0),true)
call SetPlayerAllianceStateAllyBJ(Player(8),Player(1),true)
call SetPlayerAllianceStateAllyBJ(Player(8),Player(2),true)
call SetPlayerAllianceStateAllyBJ(Player(8),Player(3),true)
call SetPlayerAllianceStateAllyBJ(Player(8),Player(4),true)
call SetPlayerAllianceStateAllyBJ(Player(8),Player(5),true)
call SetPlayerAllianceStateAllyBJ(Player(8),Player(6),true)
call SetPlayerAllianceStateAllyBJ(Player(8),Player(7),true)
call SetPlayerAllianceStateAllyBJ(Player(8),Player(9),true)
call SetPlayerAllianceStateAllyBJ(Player(9),Player(0),true)
call SetPlayerAllianceStateAllyBJ(Player(9),Player(1),true)
call SetPlayerAllianceStateAllyBJ(Player(9),Player(2),true)
call SetPlayerAllianceStateAllyBJ(Player(9),Player(3),true)
call SetPlayerAllianceStateAllyBJ(Player(9),Player(4),true)
call SetPlayerAllianceStateAllyBJ(Player(9),Player(5),true)
call SetPlayerAllianceStateAllyBJ(Player(9),Player(6),true)
call SetPlayerAllianceStateAllyBJ(Player(9),Player(7),true)
call SetPlayerAllianceStateAllyBJ(Player(9),Player(8),true)
call SetPlayerAllianceStateVisionBJ(Player(0),Player(1),true)
call SetPlayerAllianceStateVisionBJ(Player(0),Player(2),true)
call SetPlayerAllianceStateVisionBJ(Player(0),Player(3),true)
call SetPlayerAllianceStateVisionBJ(Player(0),Player(4),true)
call SetPlayerAllianceStateVisionBJ(Player(0),Player(5),true)
call SetPlayerAllianceStateVisionBJ(Player(0),Player(6),true)
call SetPlayerAllianceStateVisionBJ(Player(0),Player(7),true)
call SetPlayerAllianceStateVisionBJ(Player(0),Player(8),true)
call SetPlayerAllianceStateVisionBJ(Player(0),Player(9),true)
call SetPlayerAllianceStateVisionBJ(Player(1),Player(0),true)
call SetPlayerAllianceStateVisionBJ(Player(1),Player(2),true)
call SetPlayerAllianceStateVisionBJ(Player(1),Player(3),true)
call SetPlayerAllianceStateVisionBJ(Player(1),Player(4),true)
call SetPlayerAllianceStateVisionBJ(Player(1),Player(5),true)
call SetPlayerAllianceStateVisionBJ(Player(1),Player(6),true)
call SetPlayerAllianceStateVisionBJ(Player(1),Player(7),true)
call SetPlayerAllianceStateVisionBJ(Player(1),Player(8),true)
call SetPlayerAllianceStateVisionBJ(Player(1),Player(9),true)
call SetPlayerAllianceStateVisionBJ(Player(2),Player(0),true)
call SetPlayerAllianceStateVisionBJ(Player(2),Player(1),true)
call SetPlayerAllianceStateVisionBJ(Player(2),Player(3),true)
call SetPlayerAllianceStateVisionBJ(Player(2),Player(4),true)
call SetPlayerAllianceStateVisionBJ(Player(2),Player(5),true)
call SetPlayerAllianceStateVisionBJ(Player(2),Player(6),true)
call SetPlayerAllianceStateVisionBJ(Player(2),Player(7),true)
call SetPlayerAllianceStateVisionBJ(Player(2),Player(8),true)
call SetPlayerAllianceStateVisionBJ(Player(2),Player(9),true)
call SetPlayerAllianceStateVisionBJ(Player(3),Player(0),true)
call SetPlayerAllianceStateVisionBJ(Player(3),Player(1),true)
call SetPlayerAllianceStateVisionBJ(Player(3),Player(2),true)
call SetPlayerAllianceStateVisionBJ(Player(3),Player(4),true)
call SetPlayerAllianceStateVisionBJ(Player(3),Player(5),true)
call SetPlayerAllianceStateVisionBJ(Player(3),Player(6),true)
call SetPlayerAllianceStateVisionBJ(Player(3),Player(7),true)
call SetPlayerAllianceStateVisionBJ(Player(3),Player(8),true)
call SetPlayerAllianceStateVisionBJ(Player(3),Player(9),true)
call SetPlayerAllianceStateVisionBJ(Player(4),Player(0),true)
call SetPlayerAllianceStateVisionBJ(Player(4),Player(1),true)
call SetPlayerAllianceStateVisionBJ(Player(4),Player(2),true)
call SetPlayerAllianceStateVisionBJ(Player(4),Player(3),true)
call SetPlayerAllianceStateVisionBJ(Player(4),Player(5),true)
call SetPlayerAllianceStateVisionBJ(Player(4),Player(6),true)
call SetPlayerAllianceStateVisionBJ(Player(4),Player(7),true)
call SetPlayerAllianceStateVisionBJ(Player(4),Player(8),true)
call SetPlayerAllianceStateVisionBJ(Player(4),Player(9),true)
call SetPlayerAllianceStateVisionBJ(Player(5),Player(0),true)
call SetPlayerAllianceStateVisionBJ(Player(5),Player(1),true)
call SetPlayerAllianceStateVisionBJ(Player(5),Player(2),true)
call SetPlayerAllianceStateVisionBJ(Player(5),Player(3),true)
call SetPlayerAllianceStateVisionBJ(Player(5),Player(4),true)
call SetPlayerAllianceStateVisionBJ(Player(5),Player(6),true)
call SetPlayerAllianceStateVisionBJ(Player(5),Player(7),true)
call SetPlayerAllianceStateVisionBJ(Player(5),Player(8),true)
call SetPlayerAllianceStateVisionBJ(Player(5),Player(9),true)
call SetPlayerAllianceStateVisionBJ(Player(6),Player(0),true)
call SetPlayerAllianceStateVisionBJ(Player(6),Player(1),true)
call SetPlayerAllianceStateVisionBJ(Player(6),Player(2),true)
call SetPlayerAllianceStateVisionBJ(Player(6),Player(3),true)
call SetPlayerAllianceStateVisionBJ(Player(6),Player(4),true)
call SetPlayerAllianceStateVisionBJ(Player(6),Player(5),true)
call SetPlayerAllianceStateVisionBJ(Player(6),Player(7),true)
call SetPlayerAllianceStateVisionBJ(Player(6),Player(8),true)
call SetPlayerAllianceStateVisionBJ(Player(6),Player(9),true)
call SetPlayerAllianceStateVisionBJ(Player(7),Player(0),true)
call SetPlayerAllianceStateVisionBJ(Player(7),Player(1),true)
call SetPlayerAllianceStateVisionBJ(Player(7),Player(2),true)
call SetPlayerAllianceStateVisionBJ(Player(7),Player(3),true)
call SetPlayerAllianceStateVisionBJ(Player(7),Player(4),true)
call SetPlayerAllianceStateVisionBJ(Player(7),Player(5),true)
call SetPlayerAllianceStateVisionBJ(Player(7),Player(6),true)
call SetPlayerAllianceStateVisionBJ(Player(7),Player(8),true)
call SetPlayerAllianceStateVisionBJ(Player(7),Player(9),true)
call SetPlayerAllianceStateVisionBJ(Player(8),Player(0),true)
call SetPlayerAllianceStateVisionBJ(Player(8),Player(1),true)
call SetPlayerAllianceStateVisionBJ(Player(8),Player(2),true)
call SetPlayerAllianceStateVisionBJ(Player(8),Player(3),true)
call SetPlayerAllianceStateVisionBJ(Player(8),Player(4),true)
call SetPlayerAllianceStateVisionBJ(Player(8),Player(5),true)
call SetPlayerAllianceStateVisionBJ(Player(8),Player(6),true)
call SetPlayerAllianceStateVisionBJ(Player(8),Player(7),true)
call SetPlayerAllianceStateVisionBJ(Player(8),Player(9),true)
call SetPlayerAllianceStateVisionBJ(Player(9),Player(0),true)
call SetPlayerAllianceStateVisionBJ(Player(9),Player(1),true)
call SetPlayerAllianceStateVisionBJ(Player(9),Player(2),true)
call SetPlayerAllianceStateVisionBJ(Player(9),Player(3),true)
call SetPlayerAllianceStateVisionBJ(Player(9),Player(4),true)
call SetPlayerAllianceStateVisionBJ(Player(9),Player(5),true)
call SetPlayerAllianceStateVisionBJ(Player(9),Player(6),true)
call SetPlayerAllianceStateVisionBJ(Player(9),Player(7),true)
call SetPlayerAllianceStateVisionBJ(Player(9),Player(8),true)
call SetPlayerTeam(Player(11),1)
call SetPlayerState(Player(11),PLAYER_STATE_ALLIED_VICTORY,1)
call SetPlayerTeam(Player(10),2)
call SetPlayerState(Player(10),PLAYER_STATE_ALLIED_VICTORY,1)
endfunction
function main takes nothing returns nothing
local weathereffect we
local destructable d
local trigger t
local real life
local integer itemID
local player p
local unit u
local integer unitID
local integer gZ
local integer Pe
local version v
local integer hJ
local integer i
call InitTrig_cheats( )
call SetCameraBounds(-9472.+GetCameraMargin(CAMERA_MARGIN_LEFT),-9728.+GetCameraMargin(CAMERA_MARGIN_BOTTOM),10112.-GetCameraMargin(CAMERA_MARGIN_RIGHT),9216.-GetCameraMargin(CAMERA_MARGIN_TOP),-9472.+GetCameraMargin(CAMERA_MARGIN_LEFT),9216.-GetCameraMargin(CAMERA_MARGIN_TOP),10112.-GetCameraMargin(CAMERA_MARGIN_RIGHT),-9728.+GetCameraMargin(CAMERA_MARGIN_BOTTOM))
call SetDayNightModels("Environment\\DNC\\DNCLordaeron\\DNCLordaeronTerrain\\DNCLordaeronTerrain.mdl","Environment\\DNC\\DNCLordaeron\\DNCLordaeronUnit\\DNCLordaeronUnit.mdl")
call SetTerrainFogEx(0,1400.,4000.,.5,.0,.118,.196)
call SetWaterBaseColor(0,0,0,255)
call NewSoundEnvironment("Dungeon")
call SetAmbientDaySound("SunkenRuinsDay")
call SetAmbientNightSound("SunkenRuinsNight")
call SetMapMusic("Music",true,0)
set ce=CreateSound("Abilities\\Weapons\\BoatMissile\\BoatMissileHit.wav",false,true,true,10,10,"MissilesEAX")
call SetSoundParamsFromLabel(ce,"BoatMissileHit")
call SetSoundDuration(ce,1173)
set cE=CreateSound("Sound\\Ambient\\DoodadEffects\\StoneBridgeRise.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(cE,"RisingStoneBridge")
call SetSoundDuration(cE,4000)
set cf=CreateSound("Sound\\Ambient\\DoodadEffects\\DoorSlam1.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(cf,"DoorSlamSound")
call SetSoundDuration(cf,485)
call SetSoundVolume(cf,'n')
call SetSoundPitch(cf,.7)
set cF=CreateSound("Sound\\Interface\\GameFound.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(cF,"GameFound")
call SetSoundDuration(cF,7488)
call SetSoundPitch(cF,.7)
set cg=CreateSound("Sound\\Interface\\QuestCompleted.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(cg,"QuestCompleted")
call SetSoundDuration(cg,5155)
call SetSoundVolume(cg,127)
call SetSoundPitch(cg,.7)
set cG=CreateSound("Sound\\Buildings\\Death\\CityBuildingDeath1.wav",false,false,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(cG,"DeathCityBuilding")
call SetSoundDuration(cG,3505)
call SetSoundVolume(cG,'n')
set ch=CreateSound("Sound\\Ambient\\DoodadEffects\\LargeCityGateOpen1.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(ch,"GateOpenSound")
call SetSoundDuration(ch,1445)
call SetSoundChannel(ch,0)
call SetSoundVolume(ch,'s')
call SetSoundPitch(ch,.7)
set cH=CreateSound("Sound\\Interface\\Rescue.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(cH,"Rescue")
call SetSoundDuration(cH,3796)
call SetSoundVolume(cH,127)
call SetSoundPitch(cH,.7)
set ci=CreateSound("Sound\\Ambient\\DoodadEffects\\BlueFireBurst.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(ci,"BlueFireBurst")
call SetSoundDuration(ci,1916)
set cJ=CreateSound("Sound\\Music\\mp3Music\\NightElfDefeat.mp3",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(cJ,144022)
call SetSoundChannel(cJ,0)
call SetSoundVolume(cJ,'x')
call SetSoundPitch(cJ,.7)
set ck=CreateSound("Sound\\Music\\mp3Music\\NightElfX1.mp3",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(ck,293763)
call SetSoundChannel(ck,0)
call SetSoundVolume(ck,'x')
call SetSoundPitch(ck,.7)
set cK=CreateSound("Sound\\Music\\mp3Music\\BloodElfTheme.mp3",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(cK,144552)
call SetSoundChannel(cK,0)
call SetSoundVolume(cK,'x')
call SetSoundPitch(cK,.7)
set cO=CreateSound("Sound\\Ambient\\DoodadEffects\\ShimmeringPortalEntrance.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(cO,"EnterShimmeringPortal")
call SetSoundDuration(cO,1829)
call SetSoundPitch(cO,.9)
set cP=CreateSound("Abilities\\Spells\\NightElf\\EntanglingRoots\\EntanglingRootsTarget1.wav",false,true,true,10,10,"SpellsEAX")
call SetSoundParamsFromLabel(cP,"EntanglingRoots")
call SetSoundDuration(cP,1625)
call SetSoundVolume(cP,95)
call SetSoundPitch(cP,.7)
set cq=CreateSound("Abilities\\Spells\\NightElf\\EntanglingRoots\\EntanglingRootsDecay1.wav",false,true,true,10,10,"SpellsEAX")
call SetSoundParamsFromLabel(cq,"EntanglingRootsDecay")
call SetSoundDuration(cq,798)
call SetSoundVolume(cq,'n')
call SetSoundPitch(cq,.7)
set cQ=CreateSound("Units\\Undead\\ObsidianStatue\\ObsidianStatueReady1.wav",false,false,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(cQ,"ObsidianStatuePissed")
call SetSoundDuration(cQ,2856)
call SetSoundVolume(cQ,'n')
call SetSoundPitch(cQ,1.1)
set cr=CreateSound("Units\\Undead\\ObsidianStatue\\ObsidianStatueYes3.wav",false,false,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(cr,"ObsidianStatueYesAttack")
call SetSoundDuration(cr,2641)
call SetSoundVolume(cr,'i')
call SetSoundPitch(cr,1.1)
set cR=CreateSound("Units\\Undead\\ObsidianStatue\\ObsidianStatueMorph.wav",false,false,true,10,10,"SpellsEAX")
call SetSoundParamsFromLabel(cR,"ObsidianStatueMorph")
call SetSoundDuration(cR,3384)
call SetSoundPitch(cR,1.1)
set cs=CreateSound("Abilities\\Weapons\\DemonHunterMissile\\HeroDemonMissileLaunch1.wav",false,true,true,10,10,"MissilesEAX")
call SetSoundParamsFromLabel(cs,"DemonHunterMissileLaunch")
call SetSoundDuration(cs,1280)
set cS=CreateSound("Abilities\\Weapons\\DemonHunterMissile\\HeroDemonMissileLaunch2.wav",false,true,true,10,10,"MissilesEAX")
call SetSoundParamsFromLabel(cS,"DemonHunterMissileLaunch")
call SetSoundDuration(cS,1219)
set ct=CreateSound("Abilities\\Weapons\\DemonHunterMissile\\HeroDemonMissileLaunch2.wav",false,true,true,10,10,"MissilesEAX")
call SetSoundParamsFromLabel(ct,"DemonHunterMissileLaunch")
call SetSoundDuration(ct,1219)
call SetSoundPitch(ct,.9)
set cV=CreateSound("Units\\Human\\Peasant\\PeasantDeath.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(cV,"PeasantDeath")
call SetSoundDuration(cV,3645)
call SetSoundPitch(cV,.8)
set cw=CreateSound("Sound\\Music\\mp3Music\\War2IntroMusic.mp3",true,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(cw,"War2Intro")
call SetSoundDuration(cw,81136)
call SetSoundPitch(cw,.9)
set cW=CreateSound("Sound\\Dialogue\\HumanCampaign\\Human03\\H03VillagerM50.mp3",false,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(cW,"H03VillagerM50")
call SetSoundDuration(cW,1202)
call SetSoundPitch(cW,.7)
set cx=CreateSound("Sound\\Dialogue\\UndeadCampaign\\Undead01\\U01Footman23.mp3",false,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(cx,"U01Footman23")
call SetSoundDuration(cx,1045)
call SetSoundPitch(cx,.6)
set aH=Rect(2528.,2784.,2720.,2976.)
set ai=Rect(1120.,3040.,1312.,3232.)
set aI=Rect(2784.,3936.,2976.,4128.)
set aj=Rect(3552.,2912.,3744.,3104.)
set aJ=Rect(3264.,704.,3392.,960.)
set ak=Rect(2464.,672.,2912.,992.)
set aK=Rect(896.,544.,4224.,4352.)
set al=Rect(2304.,512.,4224.,4352.)
set aL=Rect(896.,1664.,2304.,4352.)
set am=Rect(-2112.,-1536.,-1728.,1536.)
set aM=Rect(-2048.,1856.,-1792.,1984.)
set an=Rect(-2432.,-2048.,-1408.,-1408.)
set aN=Rect(-3072.,-2176.,-768.,2048.)
set ao=Rect(-5120.,-2496.,-4864.,-2368.)
set aO=Rect(-5376.,-5632.,-768.,-2304.)
set ap=Rect(5760.,-9472.,9088.,-4096.)
set aP=Rect(8064.,-8832.,9088.,-8448.)
set aq=Rect(8064.,-9472.,8960.,-8704.)
set aQ=Rect(6048.,-9120.,8864.,-4480.)
set ar=Rect(7680.,3712.,8448.,3968.)
set aR=Rect(6720.,1632.,9664.,3520.)
set we=AddWeatherEffect(aR,'LRaa')
call EnableWeatherEffect(we,true)
set as=Rect(5888.,1920.,9472.,9088.)
set aS=Rect(6272.,3840.,7424.,4736.)
set at=Rect(8704.,3840.,9728.,4736.)
set aT=Rect(-4736.,3776.,-4480.,3872.)
set au=Rect(-5632.,2176.,-3584.,4224.)
set aU=Rect(2432.,-1664.,5504.,-1536.)
set av=Rect(3840.,-1088.,4096.,-960.)
set aV=Rect(2432.,.0,2688.,128.)
set aw=Rect(2304.,-1920.,5632.,384.)
set aW=Rect(-7360.,-5472.,-5600.,-4480.)
set ax=Rect(-5856.,-5440.,-5568.,-3648.)
set aX=Rect(-7296.,-4416.,-5600.,-3744.)
set ay=Rect(-6976.,-5856.,-6336.,-4832.)
set aY=Rect(-6944.,-4672.,-5984.,-3680.)
set az=Rect(-6272.,-5472.,-5568.,-4384.)
set aZ=Rect(-7360.,-5472.,-6368.,-4832.)
set a0=Rect(-6560.,-4256.,-5632.,-3648.)
set a1=Rect(-6976.,-5056.,-6016.,-4064.)
set a2=Rect(-7392.,-5472.,-7072.,-3680.)
set a3=Rect(-5696.,-5888.,-5568.,-5632.)
set a4=Rect(-7296.,-5376.,-5632.,-3712.)
set a5=Rect(-6912.,-5760.,-6400.,-5376.)
set a6=Rect(-5952.,-5952.,-5696.,-5696.)
set a7=Rect(-7008.,-3456.,-5920.,-3168.)
set a8=Rect(-7424.,-6272.,-5504.,-2944.)
set a9=Rect(-7360.,-4640.,-6720.,-3680.)
set Aa=Rect(-4416.,-960.,-4160.,-832.)
set AA=Rect(-4384.,-1184.,-4192.,-992.)
set Ab=Rect(-5376.,-2176.,-3200.,.0)
set AB=Rect(-3360.,2272.,-3168.,2464.)
set Ac=Rect(-2240.,3136.,-1984.,3264.)
set AC=Rect(-2432.,3200.,-1792.,3840.)
set Ad=Rect(-2336.,2720.,-1888.,2976.)
set AD=Rect(-3456.,2176.,-768.,4864.)
set Ae=Rect(-4544.,704.,-3776.,1344.)
set AE=Rect(-4480.,768.,-3840.,1280.)
set Af=Rect(-4288.,1728.,-4032.,1856.)
set AF=Rect(-5120.,128.,-3200.,2048.)
set Ag=Rect(-8000.,-192.,-7744.,-64.)
set AG=Rect(-8448.,-2816.,-5504.,.0)
set Ah=Rect(-7616.,-2720.,-5632.,-2656.)
set AH=Rect(-8320.,-2272.,-7616.,-2208.)
set Ai=Rect(-8352.,-2240.,-8288.,-128.)
set AI=Rect(-7648.,-2688.,-7584.,-2240.)
set Aj=Rect(-5664.,-2688.,-5600.,-128.)
set AJ=Rect(-8320.,-160.,-5632.,-96.)
set Ak=Rect(-448.,1856.,576.,2880.)
set AK=Rect(-64.,2880.,192.,3008.)
set Al=Rect(-640.,1664.,768.,3072.)
set AL=Rect(-544.,-1056.,160.,-864.)
set Am=Rect(1440.,992.,1632.,1440.)
set AM=Rect(1248.,288.,1952.,480.)
set An=Rect(1120.,32.,2080.,224.)
set AN=Rect(1120.,-224.,2080.,-32.)
set Ao=Rect(1248.,-736.,1952.,-544.)
set AO=Rect(1248.,-992.,1952.,-800.)
set Ap=Rect(928.,-1696.,1120.,-1248.)
set AP=Rect(480.,-1184.,928.,-992.)
set Aq=Rect(480.,-800.,928.,-608.)
set AQ=Rect(480.,-416.,928.,-224.)
set Ar=Rect(-544.,-800.,160.,-608.)
set AR=Rect(-544.,-288.,160.,-96.)
set As=Rect(-544.,-32.,160.,160.)
set AS=Rect(-544.,480.,160.,672.)
set At=Rect(-544.,736.,160.,928.)
set AT=Rect(288.,992.,480.,1440.)
set Au=Rect(672.,992.,864.,1440.)
set AU=Rect(1056.,992.,1248.,1440.)
set Av=Rect(576.,320.,832.,448.)
set AV=Rect(-544.,-1696.,2272.,1632.)
set Aw=Rect(8256.,-9280.,8768.,-8896.)
set AW=Rect(-2176.,-2016.,-1664.,-1760.)
set Ax=Rect(-1248.,-4832.,-928.,-4576.)
set AX=Rect(8384.,7040.,8768.,7424.)
set Ay=Rect(-4992.,2816.,-4224.,3584.)
set AY=Rect(3072.,-1376.,4864.,-1056.)
set Az=Rect(-5984.,-6080.,-5664.,-5696.)
set AZ=Rect(-4416.,768.,-3904.,1280.)
set A0=Rect(-8288.,-2656.,-7776.,-2400.)
set A1=Rect(-320.,1984.,448.,2752.)
set A2=Rect(-448.,-1632.,64.,-1312.)
set A3=Rect(384.,-3968.,1152.,-3200.)
set A4=Rect(3968.,-3712.,4736.,-2432.)
set A5=Rect(-5824.,640.,-5440.,1024.)
set A6=Rect(256.,-3392.,512.,-3008.)
set A7=Rect(320.,-2688.,704.,-2432.)
set A8=Rect(-256.,-2880.,.0,-2496.)
set A9=Rect(-192.,-4224.,192.,-3968.)
set ba=Rect(256.,-4160.,512.,-3776.)
set bA=Rect(2112.,-2784.,2304.,-2592.)
set bb=Rect(1152.,-2880.,1408.,-2496.)
set bB=Rect(1216.,-3456.,1600.,-3200.)
set bc=Rect(2432.,-4480.,2816.,-3968.)
set bC=Rect(2432.,-2944.,2816.,-2432.)
set bd=Rect(2112.,-4320.,2304.,-4128.)
set bD=Rect(768.,-4416.,1024.,-4032.)
set be=Rect(832.,-3200.,1216.,-2944.)
set bE=Rect(128.,-4480.,384.,-4352.)
set bf=Rect(128.,-4736.,384.,-4672.)
set bF=Rect(-640.,-4992.,2304.,-1920.)
set bg=Rect(3264.,-3904.,5440.,-2240.)
set bG=Rect(4224.,-2240.,4480.,-2112.)
set bh=Rect(3776.,-3008.,3904.,-2880.)
set bH=Rect(3072.,-4096.,5632.,-2048.)
set bi=Rect(-7424.,1152.,-7168.,1280.)
set bI=Rect(-5824.,960.,-5440.,1344.)
set bj=Rect(-7488.,896.,-7104.,1280.)
set bJ=Rect(-7680.,128.,-5248.,2048.)
set bk=Rect(-8640.,-6080.,-8128.,-5824.)
set bK=Rect(-9216.,-6272.,-7552.,-2944.)
set bl=Rect(-8512.,-3136.,-8256.,-3008.)
set bL=Rect(-9344.,128.,-7808.,2432.)
set bm=Rect(-8832.,256.,-8448.,512.)
set bM=Rect(-8736.,2240.,-8480.,2368.)
set bn=Rect(-9216.,320.,-7968.,2272.)
set bN=Rect(-8992.,160.,-8288.,704.)
set bo=Rect(-9088.,-192.,-8832.,-64.)
set bO=Rect(-8864.,-288.,-8672.,-128.)
set bp=Rect(-9056.,-288.,-8864.,-128.)
set bP=Rect(-9248.,-288.,-9088.,-128.)
set bq=Rect(-8864.,-2720.,-8672.,-2592.)
set bQ=Rect(-9056.,-2720.,-8864.,-2592.)
set br=Rect(-9248.,-2720.,-9056.,-2592.)
set bR=Rect(-9216.,-2688.,-8704.,-2400.)
set bs=Rect(-9344.,-2816.,-8576.,.0)
set bS=Rect(-9312.,-2400.,-8608.,-2208.)
set bt=Rect(-9344.,-9600.,-7168.,-6400.)
set bT=Rect(-8416.,-9376.,-8096.,-8992.)
set bu=Rect(-8384.,-8000.,-8128.,-7872.)
set bU=Rect(-8992.,-6720.,-8768.,-6560.)
set bv=Rect(-7712.,-6720.,-7488.,-6560.)
set bV=Rect(-9120.,-9344.,-8896.,-9088.)
set bw=Rect(-7616.,-9344.,-7392.,-9088.)
set bW=Rect(-2976.,8288.,-2752.,9376.)
set bx=Rect(-2144.,5472.,-1696.,5728.)
set bX=Rect(-3840.,5568.,-928.,9152.)
set by=Rect(-6880.,-9728.,-6048.,-9056.)
set bY=Rect(-5344.,-6464.,-4992.,-6144.)
set bz=Rect(-7008.,-9696.,-3072.,-5920.)
set bZ=Rect(-2624.,-9728.,-896.,-5920.)
set b0=Rect(-2144.,-9504.,-1408.,-8768.)
set b1=Rect(-2048.,-6304.,-1408.,-5952.)
set b2=Rect(-2624.,-8160.,-896.,-5984.)
set b3=Rect(-2592.,-6400.,-2208.,-5952.)
set b4=Rect(-1184.,-6336.,-928.,-5920.)
set b5=Rect(-4160.,-8000.,-4000.,-7808.)
set b6=Rect(-5568.,-9024.,-5408.,-8832.)
set b7=Rect(-4736.,-7456.,-4544.,-7232.)
set b8=Rect(7520.,-2432.,7936.,-2080.)
set b9=Rect(6016.,-2368.,6336.,-1856.)
set Ba=Rect(8032.,-160.,8448.,128.)
set BA=Rect(9312.,-2400.,9600.,-2080.)
set Bb=Rect(7680.,-3808.,8032.,-3584.)
set BB=Rect(7584.,-2400.,7904.,-2112.)
set Bc=Rect(5792.,-3808.,10240.,160.)
set BC=Rect(8672.,-7360.,8928.,-7104.)
set Bd=Rect(7360.,2336.,8704.,3648.)
set BD=Rect(3168.,-9696.,5536.,-7552.)
set Be=Rect(5184.,-9568.,5472.,-9280.)
set BE=Rect(6656.,1792.,9504.,4384.)
set Bf=Rect(-448.,-4544.,1984.,-2112.)
set BF=Rect(-320.,-9792.,832.,-8480.)
set Bg=Rect(-32.,-9056.,224.,-8960.)
set BG=Rect(-128.,-9696.,256.,-9536.)
set Bh=Rect(4768.,-9312.,5024.,-9184.)
set BH=Rect(-224.,7520.,3936.,9248.)
set Bi=Rect(-160.,7648.,-32.,8096.)
set BI=Rect(-96.,8480.,96.,8992.)
set Bj=Rect(-9440.,7840.,-8032.,9184.)
set BJ=Rect(-8800.,7936.,-8480.,8128.)
set Bk=Rect(-9312.,2656.,-8288.,3584.)
set BK=Rect(-8864.,3616.,-8608.,3744.)
set Bl=Rect(-9312.,4128.,-7808.,4832.)
set BL=Rect(-7904.,4288.,-7680.,4736.)
set Bm=Rect(-8960.,4320.,-8832.,4640.)
set BM=Rect(-9440.,3968.,-7680.,4992.)
set Bn=Rect(1152.,-7584.,1280.,-7456.)
set BN=Rect(1216.,-5696.,1312.,-5600.)
set Bo=Rect(1632.,-5696.,1728.,-5600.)
set BO=Rect(1408.,-7136.,1536.,-7008.)
set Bp=Rect(2080.,-6784.,2176.,-6688.)
set BP=Rect(2432.,-6784.,2528.,-6688.)
set Bq=Rect(2240.,-5696.,2336.,-5568.)
set BQ=Rect(2432.,-6944.,2528.,-6848.)
set Br=Rect(2080.,-6944.,2176.,-6848.)
set BR=Rect(2272.,-8832.,2368.,-8736.)
set Bs=Rect(2624.,-9056.,2720.,-8960.)
set BS=Rect(1824.,-9408.,1920.,-9312.)
set Bt=Rect(1216.,-9696.,1472.,-9568.)
set BT=Rect(1600.,-9056.,1856.,-8928.)
set Bu=Rect(1344.,-9440.,2656.,-5472.)
set BU=Rect(1152.,-9696.,2944.,-5280.)
set Bv=Rect(-1120.,8064.,-864.,8992.)
set BV=Rect(-1120.,9088.,-960.,9280.)
set Bw=Rect(-896.,6208.,-768.,6368.)
set BW=Rect(-3616.,6368.,-3296.,6688.)
set Bx=Rect(-4128.,5152.,-320.,9184.)
set BX=Rect(-4000.,6464.,-3840.,6592.)
set By=Rect(-3712.,6592.,-3648.,6656.)
set BY=Rect(-3712.,6528.,-3648.,6592.)
set Bz=Rect(-3712.,6464.,-3648.,6528.)
set BZ=Rect(-3712.,6400.,-3648.,6464.)
set B0=Rect(-3744.,6400.,-3648.,6656.)
set B1=Rect(2464.,-7968.,2560.,-7872.)
set B2=Rect(2272.,-7968.,2368.,-7872.)
set B3=Rect(-9408.,5504.,-9280.,5792.)
set B4=Rect(-8352.,5504.,-8224.,5824.)
set B5=Rect(-9440.,5216.,-8160.,6016.)
set B6=Rect(-9216.,5408.,-8416.,5888.)
set B7=Rect(-8960.,5920.,-8640.,6016.)
set B8=Rect(-3776.,8352.,-2208.,9216.)
set B9=Rect(-7840.,6560.,-6112.,9120.)
set ca=Rect(-7584.,6880.,-6368.,8896.)
set cA=Rect(-7776.,8704.,-7456.,8960.)
set cb=Rect(-6688.,7040.,-6368.,7328.)
set cB=Rect(-7072.,8992.,-6752.,9120.)
set cc=Rect(-7840.,8320.,-7104.,9120.)
call CameraSetupSetField(cC,CAMERA_FIELD_ZOFFSET,.0,.0)
call CameraSetupSetField(cC,CAMERA_FIELD_ROTATION,78.3,.0)
call CameraSetupSetField(cC,CAMERA_FIELD_ANGLE_OF_ATTACK,329.7,.0)
call CameraSetupSetField(cC,CAMERA_FIELD_TARGET_DISTANCE,636.1,.0)
call CameraSetupSetField(cC,CAMERA_FIELD_ROLL,.0,.0)
call CameraSetupSetField(cC,CAMERA_FIELD_FIELD_OF_VIEW,70.,.0)
call CameraSetupSetField(cC,CAMERA_FIELD_FARZ,5000.,.0)
call CameraSetupSetDestPosition(cC,8480.8,-8997.9,.0)
call CameraSetupSetField(cd,CAMERA_FIELD_ZOFFSET,.0,.0)
call CameraSetupSetField(cd,CAMERA_FIELD_ROTATION,90.,.0)
call CameraSetupSetField(cd,CAMERA_FIELD_ANGLE_OF_ATTACK,304.,.0)
call CameraSetupSetField(cd,CAMERA_FIELD_TARGET_DISTANCE,1500.,.0)
call CameraSetupSetField(cd,CAMERA_FIELD_ROLL,.0,.0)
call CameraSetupSetField(cd,CAMERA_FIELD_FIELD_OF_VIEW,70.,.0)
call CameraSetupSetField(cd,CAMERA_FIELD_FARZ,5000.,.0)
call CameraSetupSetDestPosition(cd,-1850.,6971.4,.0)
call CameraSetupSetField(cD,CAMERA_FIELD_ZOFFSET,.0,.0)
call CameraSetupSetField(cD,CAMERA_FIELD_ROTATION,90.,.0)
call CameraSetupSetField(cD,CAMERA_FIELD_ANGLE_OF_ATTACK,304.,.0)
call CameraSetupSetField(cD,CAMERA_FIELD_TARGET_DISTANCE,1363.6,.0)
call CameraSetupSetField(cD,CAMERA_FIELD_ROLL,.0,.0)
call CameraSetupSetField(cD,CAMERA_FIELD_FIELD_OF_VIEW,70.,.0)
call CameraSetupSetField(cD,CAMERA_FIELD_FARZ,5000.,.0)
call CameraSetupSetDestPosition(cD,8364.,-8833.,.0)
set gD=CreateDestructable('B000',-1088.,-5056.,270.,.65,0)
set gf=CreateDestructable('B000',-1088.,-4928.,270.,.65,0)
set gB=CreateDestructableZ('B002',-1920.,-320.,300.8,.0,1.,0)
set gc=CreateDestructableZ('B002',-1920.,192.,300.8,.0,1.,0)
set gA=CreateDestructableZ('B002',-1920.,-1344.,300.8,.0,1.,0)
set gC=CreateDeadDestructableZ('B002',-1920.,704.,300.8,.0,1.,0)
set gF=CreateDeadDestructableZ('B002',-1920.,1216.,300.8,.0,1.,0)
set gb=CreateDestructableZ('B002',-1920.,-832.,300.8,.0,1.,0)
set gl=CreateDestructable('B004',-8064.,-2304.,270.,.65,0)
set gg=CreateDestructable('B004',-1920.,-1664.,270.,.65,0)
set gP=CreateDestructable('B005',-1984.,7680.,270.,.7,0)
set gq=CreateDestructable('B005',-2304.,-8448.,270.,.7,0)
set gS=CreateDestructable('DTfp',-832.,6272.,270.,1.,0)
set gs=CreateDestructable('DTfp',-1024.,9152.,270.,1.,0)
set gT=CreateDestructable('DTfp',-3904.,6528.,270.,1.,0)
set gh=CreateDestructable('DTfx',2880.,4032.,270.,1.,0)
set gK=CreateDestructable('DTfx',3648.,3008.,270.,1.,0)
set gk=CreateDestructable('DTfx',1216.,3136.,270.,1.,0)
set gJ=CreateDestructable('DTfx',2624.,2880.,270.,1.,0)
set go=CreateDestructable('DTlv',-4640.,-7520.,314.,1.,0)
set gR=CreateDestructable('DTlv',-4064.,-7840.,314.,1.,0)
set gO=CreateDestructable('DTlv',-5536.,-8800.,148.,.944,0)
set gt=CreateDestructable('DTrf',-3456.,6528.,270.,1.,0)
set gj=CreateDestructable('LTbx',-1792.,2944.,135.,.7,0)
set gi=CreateDestructable('LTbx',-2432.,2944.,135.,.7,0)
set gI=CreateDestructable('LTbx',-2112.,2624.,135.,.7,0)
set gG=CreateDestructable('OTsp',3328.,832.,.0,.7,0)
set ge=CreateDestructable('OTsp',-4992.,-2432.,270.,.7,0)
set gM=CreateDestructable('ZTd7',-1984.,8128.,90.,.9,0)
set gE=CreateDestructable('ZTd7',8448.,-8704.,90.,.9,0)
set gm=CreateDestructable('ZTg1',-8384.,-5696.,270.,.9,0)
set gd=CreateDestructable('ZTg1',-1088.,-4480.,270.,.9,0)
set ga=CreateDestructable('ZTg1',-192.,-1152.,270.,.9,0)
set gH=CreateDestructable('ZTg1',2688.,1088.,270.,.9,0)
set gL=CreateDestructable('ZTg3',-6080.,-5888.,.0,.9,0)
set gp=CreateDestructable('ZTg3',-6656.,-7872.,.0,.9,0)
set gN=CreateDestructable('ZTg3',256.,8768.,.0,.9,0)
set gr=CreateDestructable('ZTg3',-4864.,-9600.,.0,.9,0)
set gQ=CreateDestructable('ZTg3',-4800.,-6272.,.0,.9,0)
set gn=CreateDestructable('ZTsx',-6528.,-8960.,270.,1.,0)
call CreateItem('I000',-1969.8,7353.4)
set FW=CreateItem('I001',-3238.1,6506.6)
call CreateItem('I002',-3219.3,2420.5)
call CreateItem('I002',-1001.3,2419.7)
call CreateItem('I002',-993.8,4631.6)
call CreateItem('I002',-3299.2,3701.7)
call CreateItem('I002',-924.9,3685.8)
call CreateItem('I002',-3229.6,4636.3)
call CreateItem('I003',-7104.6,-3266.3)
call CreateItem('I003',-5824.6,-3265.2)
call CreateItem('kysn',7508.9,-5615.)
call CreateItem('lmbr',6928.8,-5629.2)
call CreateItem('tdx2',6696.3,-6622.7)
call CreateItem('tin2',6968.2,-6830.7)
call CreateItem('tst2',7012.,-6651.2)
set p=Player(15)
set u=CreateUnit(p,'n007',-3520.,-1856.,270.)
set u=CreateUnit(p,'n007',-3520.,-1472.,270.)
set u=CreateUnit(p,'n007',-3520.,-1088.,270.)
set u=CreateUnit(p,'n007',-3520.,-704.,270.)
set u=CreateUnit(p,'n007',-3520.,-320.,270.)
set u=CreateUnit(p,'n007',-3904.,-320.,270.)
set u=CreateUnit(p,'n007',-3904.,-704.,270.)
set u=CreateUnit(p,'n007',-3904.,-1088.,270.)
set u=CreateUnit(p,'n007',-3904.,-1472.,270.)
set u=CreateUnit(p,'n007',-3904.,-1856.,270.)
set u=CreateUnit(p,'n007',-4288.,-1856.,270.)
set u=CreateUnit(p,'n007',-4672.,-1856.,270.)
set u=CreateUnit(p,'n007',-5056.,-1856.,270.)
set u=CreateUnit(p,'n007',-5056.,-1472.,270.)
set u=CreateUnit(p,'n007',-4672.,-1472.,270.)
set u=CreateUnit(p,'n007',-4288.,-1472.,270.)
set Eq=CreateUnit(p,'n007',-4288.,-1088.,270.)
set u=CreateUnit(p,'n007',-4672.,-1088.,270.)
set u=CreateUnit(p,'n007',-5056.,-1088.,270.)
set u=CreateUnit(p,'n007',-5056.,-704.,270.)
set u=CreateUnit(p,'n007',-4672.,-704.,270.)
set u=CreateUnit(p,'n007',-4288.,-704.,270.)
set u=CreateUnit(p,'n007',-4288.,-320.,270.)
set u=CreateUnit(p,'n007',-4672.,-320.,270.)
set u=CreateUnit(p,'n007',-5056.,-320.,270.)
set EJ=CreateUnit(p,'n008',-4544.,448.,270.)
set EM=CreateUnit(p,'n008',-4288.,384.,270.)
set Em=CreateUnit(p,'n008',-4032.,384.,270.)
set Et=CreateUnit(p,'n008',-3776.,448.,270.)
set EK=CreateUnit(p,'n008',-3456.,1152.,270.)
set EN=CreateUnit(p,'n008',-3456.,896.,270.)
set En=CreateUnit(p,'n008',-3584.,640.,270.)
set ES=CreateUnit(p,'n008',-4736.,640.,270.)
set Es=CreateUnit(p,'n008',-4864.,896.,270.)
set ER=CreateUnit(p,'n008',-4864.,1152.,270.)
set u=CreateUnit(p,'n00L',-4608.,2688.,270.)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n00L',-4864.,2688.,270.)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n00L',-5120.,2688.,270.)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n00L',-5120.,2944.,270.)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n00L',-4864.,2944.,270.)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n00L',-4864.,3200.,270.)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n00L',-5120.,3200.,270.)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n00L',-5120.,3456.,270.)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n00L',-5120.,3712.,270.)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n00L',-4864.,3456.,270.)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n00L',-4864.,3712.,270.)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n00L',-4608.,3712.,270.)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n00L',-4608.,3456.,270.)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n00L',-4352.,3456.,270.)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n00L',-4352.,3712.,270.)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n00L',-4096.,3712.,270.)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n00L',-4096.,3456.,270.)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n00L',-4352.,3200.,270.)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n00L',-4608.,3200.,270.)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n00L',-4608.,2944.,270.)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n00L',-4352.,2944.,270.)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n00L',-4352.,2688.,270.)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n00L',-4096.,2688.,270.)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n00L',-4096.,2944.,270.)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n00L',-4096.,3200.,270.)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'nfoh',7808.,4096.,270.)
set p=Player(10)
set Eo=CreateUnit(p,'n005',8384.,-8192.,270.)
set EO=CreateUnit(p,'n005',8000.,-8192.,270.)
set Ep=CreateUnit(p,'n005',7616.,-8192.,270.)
set EP=CreateUnit(p,'n005',7232.,-8192.,270.)
set u=CreateUnit(p,'n000',-192.,-192.,270.)
set u=CreateUnit(p,'n000',-448.,-192.,270.)
set u=CreateUnit(p,'n000',-448.,64.,270.)
set u=CreateUnit(p,'n000',64.,64.,270.)
set u=CreateUnit(p,'n000',384.,1344.,270.)
set u=CreateUnit(p,'n000',384.,1088.,270.)
set u=CreateUnit(p,'n000',768.,1344.,270.)
set u=CreateUnit(p,'n000',768.,1088.,270.)
set u=CreateUnit(p,'n000',1152.,1344.,270.)
set u=CreateUnit(p,'n000',1152.,1088.,270.)
set u=CreateUnit(p,'n000',576.,-320.,270.)
set u=CreateUnit(p,'n000',832.,-320.,270.)
set u=CreateUnit(p,'n000',-192.,-704.,270.)
set u=CreateUnit(p,'n000',1856.,384.,270.)
set u=CreateUnit(p,'n000',1344.,384.,270.)
set u=CreateUnit(p,'n000',1600.,384.,270.)
set u=CreateUnit(p,'n000',1728.,128.,270.)
set u=CreateUnit(p,'n000',1216.,128.,270.)
set Ej=CreateUnit(p,'h00D',256.,-4800.,270.)
set EG=CreateUnit(p,'n000',8320.,-7872.,270.)
set u=CreateUnit(p,'h003',7552.,-7808.,270.)
set u=CreateUnit(p,'h00A',7552.,-7936.,270.)
set u=CreateUnit(p,'n007',6848.,-7872.,270.)
set Er=CreateUnit(p,'n005',6848.,-8192.,270.)
set u=CreateUnit(p,'h008',7680.,-7808.,270.)
set EI=CreateUnit(p,'n005',8384.,-7040.,270.)
set EL=CreateUnit(p,'n005',6464.,-8192.,270.)
set Eu=CreateUnit(p,'n005',8000.,-7040.,270.)
set u=CreateUnit(p,'h00K',5440.,-1600.,270.)
set u=CreateUnit(p,'h00J',2752.,-1600.,270.)
set u=CreateUnit(p,'h00J',2944.,-1600.,270.)
set u=CreateUnit(p,'h00J',3136.,-1600.,270.)
set u=CreateUnit(p,'h00J',3328.,-1600.,270.)
set u=CreateUnit(p,'h00J',4224.,-1600.,270.)
set u=CreateUnit(p,'h00J',5184.,-1600.,270.)
set u=CreateUnit(p,'h00J',4992.,-1600.,270.)
set u=CreateUnit(p,'h00J',3712.,-1600.,270.)
set u=CreateUnit(p,'h00J',4800.,-1600.,270.)
set u=CreateUnit(p,'h00J',4608.,-1600.,270.)
set u=CreateUnit(p,'h00J',3520.,-1600.,270.)
set EU=CreateUnit(p,'h00K',3968.,-1600.,270.)
set u=CreateUnit(p,'h00J',4416.,-1600.,270.)
set u=CreateUnit(p,'h00K',2496.,-1600.,270.)
set fw=CreateUnit(p,'n005',6848.,-7040.,270.)
set FL=CreateUnit(p,'hwtw',-8064.,384.,270.)
set Fm=CreateUnit(p,'hwtw',-9088.,2176.,270.)
set Ev=CreateUnit(p,'n005',7232.,-7040.,270.)
set fs=CreateUnit(p,'n00G',7552.,-6656.,270.)
call SetUnitColor(fs,ConvertPlayerColor(10))
set fa=CreateUnit(p,'n005',7616.,-7040.,270.)
set FH=CreateUnit(p,'n005',7616.,-5888.,270.)
set FM=CreateUnit(p,'n005',6848.,-5888.,270.)
set fX=CreateUnit(p,'n005',6464.,-7040.,270.)
set u=CreateUnit(p,'h00Q',7680.,-7936.,270.)
set fK=CreateUnit(p,'n00F',7680.,-6784.,270.)
set E3=CreateUnit(p,'n00F',7552.,-6784.,270.)
set E0=CreateUnit(p,'n00F',7680.,-6656.,270.)
set Fk=CreateUnit(p,'n00M',7552.,-5440.,270.)
set FK=CreateUnit(p,'n005',7232.,-5888.,270.)
set Fl=CreateUnit(p,'nico',7232.,-5568.,270.)
set u=CreateUnit(p,'hgtw',-7936.,-5248.,270.)
set u=CreateUnit(p,'hgtw',-8832.,-5248.,270.)
set u=CreateUnit(p,'hgtw',-7936.,-3840.,270.)
set u=CreateUnit(p,'hgtw',-8832.,-3840.,270.)
set u=CreateUnit(p,'hgtw',-7936.,-4544.,270.)
set FF=CreateUnit(p,'n005',6464.,-5888.,270.)
set Fn=CreateUnit(p,'n005',8384.,-4736.,270.)
set u=CreateUnit(p,'n00K',-6464.,-5696.,270.)
set Eg=CreateUnit(p,'n00L',6464.,-6720.,270.)
call SetUnitColor(Eg,ConvertPlayerColor(12))
set u=CreateUnit(p,'n000',64.,-192.,270.)
set u=CreateUnit(p,'n000',-192.,64.,270.)
set u=CreateUnit(p,'n000',-448.,-704.,270.)
set u=CreateUnit(p,'n000',-320.,-960.,270.)
set u=CreateUnit(p,'n000',-64.,-960.,270.)
set u=CreateUnit(p,'n000',-192.,576.,270.)
set u=CreateUnit(p,'n000',-448.,576.,270.)
set u=CreateUnit(p,'n000',64.,576.,270.)
set u=CreateUnit(p,'n000',-192.,832.,270.)
set u=CreateUnit(p,'n000',-448.,832.,270.)
set u=CreateUnit(p,'n000',64.,832.,270.)
set u=CreateUnit(p,'n000',1472.,128.,270.)
set u=CreateUnit(p,'n000',1984.,128.,270.)
set u=CreateUnit(p,'n000',1728.,-128.,270.)
set u=CreateUnit(p,'n000',1216.,-128.,270.)
set u=CreateUnit(p,'n000',1472.,-128.,270.)
set u=CreateUnit(p,'n000',1984.,-128.,270.)
set u=CreateUnit(p,'n000',1856.,-640.,270.)
set u=CreateUnit(p,'n000',1344.,-640.,270.)
set u=CreateUnit(p,'n000',1600.,-640.,270.)
set u=CreateUnit(p,'n000',1856.,-896.,270.)
set u=CreateUnit(p,'n000',1344.,-896.,270.)
set u=CreateUnit(p,'n000',1600.,-896.,270.)
set u=CreateUnit(p,'n000',64.,-704.,270.)
set u=CreateUnit(p,'n000',1024.,-1344.,270.)
set u=CreateUnit(p,'n000',1024.,-1600.,270.)
set u=CreateUnit(p,'n000',576.,-1088.,270.)
set u=CreateUnit(p,'n000',832.,-1088.,270.)
set u=CreateUnit(p,'n000',832.,-704.,270.)
set u=CreateUnit(p,'n000',576.,-704.,270.)
set u=CreateUnit(p,'n000',1536.,1344.,270.)
set u=CreateUnit(p,'n000',1536.,1088.,270.)
set f9=CreateUnit(p,'halt',-5632.,1280.,270.)
call SetUnitColor(f9,ConvertPlayerColor(9))
set Fa=CreateUnit(p,'n005',8384.,-5888.,270.)
set u=CreateUnit(p,'hbla',-5632.,512.,270.)
call SetUnitColor(u,ConvertPlayerColor(9))
set Fh=CreateUnit(p,'n005',8000.,-5888.,270.)
set u=CreateUnit(p,'emow',576.,2880.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'emow',576.,1856.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'emow',-448.,1856.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'emow',-448.,2880.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n00J',8064.,-5504.,270.)
set u=CreateUnit(p,'n00K',-6848.,-5696.,270.)
set u=CreateUnit(p,'n00K',-6848.,-5312.,270.)
set u=CreateUnit(p,'n00K',-7232.,-5312.,270.)
set u=CreateUnit(p,'n00K',-7232.,-4928.,270.)
set u=CreateUnit(p,'n00K',-6848.,-4928.,270.)
set u=CreateUnit(p,'n00K',-6464.,-4928.,270.)
set u=CreateUnit(p,'n00K',-6464.,-5312.,270.)
set u=CreateUnit(p,'n00K',-6080.,-5312.,270.)
set u=CreateUnit(p,'n00K',-6080.,-4928.,270.)
set u=CreateUnit(p,'n00K',-5696.,-4928.,270.)
set u=CreateUnit(p,'n00K',-5696.,-5312.,270.)
set u=CreateUnit(p,'n00K',-5696.,-4544.,270.)
set u=CreateUnit(p,'n00K',-6080.,-4544.,270.)
set u=CreateUnit(p,'n00K',-6464.,-4544.,270.)
set u=CreateUnit(p,'n00K',-6848.,-4544.,270.)
set u=CreateUnit(p,'n00K',-7232.,-4544.,270.)
set u=CreateUnit(p,'n00K',-6848.,-4160.,270.)
set u=CreateUnit(p,'n00K',-7232.,-4160.,270.)
set u=CreateUnit(p,'n00K',-7232.,-3776.,270.)
set u=CreateUnit(p,'n00K',-6848.,-3776.,270.)
set u=CreateUnit(p,'n00K',-6464.,-3776.,270.)
set u=CreateUnit(p,'n00K',-6464.,-4160.,270.)
set u=CreateUnit(p,'n00K',-6080.,-3776.,270.)
set u=CreateUnit(p,'n00K',-6080.,-4160.,270.)
set u=CreateUnit(p,'n00K',-5696.,-4160.,270.)
set u=CreateUnit(p,'n00K',-5696.,-3776.,270.)
set u=CreateUnit(p,'hgtw',-8832.,-4544.,270.)
set u=CreateUnit(p,'ncop',-8960.,-9216.,270.)
set u=CreateUnit(p,'ncop',-7552.,-9216.,270.)
set u=CreateUnit(p,'ncop',8320.,-4352.,270.)
set Fs=CreateUnit(p,'n005',8000.,-4736.,270.)
set F0=CreateUnit(p,'n005',7232.,-4736.,270.)
set FZ=CreateUnit(p,'h01A',-9088.,4480.,270.)
call SetUnitColor(FZ,ConvertPlayerColor(9))
set F3=CreateUnit(p,'n005',6720.,-8832.,270.)
set FS=CreateUnit(p,'n005',7616.,-4736.,270.)
set F8=CreateUnit(p,'n005',5952.,-8832.,270.)
set F9=CreateUnit(p,'n005',6080.,-4736.,270.)
set Fp=CreateUnit(p,'n005',6848.,-4736.,270.)
set FQ=CreateUnit(p,'n005',6464.,-4736.,270.)
set FP=CreateUnit(p,'hatw',256.,-9088.,270.)
set u=CreateUnit(p,'hatw',6848.,-4480.,270.)
set Fr=CreateUnit(p,'n005',7488.,-8832.,270.)
set Ft=CreateUnit(p,'n005',7104.,-8832.,270.)
set FY=CreateUnit(p,'n005',6336.,-8832.,270.)
set p=Player(11)
set u=CreateUnit(p,'n00J',-7040.,-896.,270.)
set u=CreateUnit(p,'n00G',1536.,2624.,270.)
call SetUnitColor(u,ConvertPlayerColor(10))
set u=CreateUnit(p,'n00G',1536.,2496.,270.)
call SetUnitColor(u,ConvertPlayerColor(10))
set u=CreateUnit(p,'n00G',1600.,3712.,270.)
call SetUnitColor(u,ConvertPlayerColor(10))
set u=CreateUnit(p,'n00G',1216.,2752.,270.)
call SetUnitColor(u,ConvertPlayerColor(10))
set u=CreateUnit(p,'n00G',3712.,2560.,270.)
call SetUnitColor(u,ConvertPlayerColor(10))
set u=CreateUnit(p,'n00F',3904.,3840.,270.)
set u=CreateUnit(p,'n00G',1536.,2368.,270.)
call SetUnitColor(u,ConvertPlayerColor(10))
set u=CreateUnit(p,'n00G',1024.,3968.,270.)
call SetUnitColor(u,ConvertPlayerColor(10))
set fg=CreateUnit(p,'n00F',2496.,4160.,270.)
set u=CreateUnit(p,'n00F',2624.,4160.,270.)
set fG=CreateUnit(p,'n00F',2368.,3520.,270.)
set u=CreateUnit(p,'n00F',2496.,3520.,270.)
set u=CreateUnit(p,'n00G',2752.,1856.,270.)
call SetUnitColor(u,ConvertPlayerColor(10))
set u=CreateUnit(p,'n00F',1152.,4160.,270.)
set u=CreateUnit(p,'n00F',1280.,3520.,270.)
set fi=CreateUnit(p,'n00F',1152.,3520.,270.)
set fI=CreateUnit(p,'n00F',1280.,4160.,270.)
set u=CreateUnit(p,'n00F',1088.,2688.,270.)
set u=CreateUnit(p,'n00F',1984.,2560.,270.)
set u=CreateUnit(p,'n00F',1088.,2432.,270.)
set fk=CreateUnit(p,'n00F',1984.,2688.,270.)
set fJ=CreateUnit(p,'n00F',1088.,2560.,270.)
set fj=CreateUnit(p,'n00F',1984.,2432.,270.)
set u=CreateUnit(p,'n00F',1088.,1920.,270.)
set fL=CreateUnit(p,'n00F',1984.,1920.,270.)
set fm=CreateUnit(p,'n00F',3008.,1920.,270.)
set u=CreateUnit(p,'n00F',2496.,1920.,270.)
set u=CreateUnit(p,'n00F',2496.,1408.,270.)
set fM=CreateUnit(p,'n00F',3008.,1408.,270.)
set u=CreateUnit(p,'n00F',2496.,2432.,270.)
set fn=CreateUnit(p,'n00F',3008.,2432.,270.)
set u=CreateUnit(p,'n00F',3008.,2560.,270.)
set fN=CreateUnit(p,'n00F',2496.,2560.,270.)
set u=CreateUnit(p,'n00F',3008.,2304.,270.)
set u=CreateUnit(p,'n00F',3392.,1408.,270.)
set u=CreateUnit(p,'n00F',4032.,1536.,270.)
set u=CreateUnit(p,'n00F',4032.,1792.,270.)
set u=CreateUnit(p,'n00F',3392.,1664.,270.)
set u=CreateUnit(p,'n00F',3392.,1920.,270.)
set u=CreateUnit(p,'n00F',4032.,2048.,270.)
set u=CreateUnit(p,'n00F',4032.,1280.,270.)
set fo=CreateUnit(p,'n00F',3392.,1280.,270.)
set fO=CreateUnit(p,'n00F',3392.,2048.,270.)
set fp=CreateUnit(p,'n00F',3392.,1792.,270.)
set fP=CreateUnit(p,'n00F',4032.,1920.,270.)
set fq=CreateUnit(p,'n00F',4032.,1664.,270.)
set u=CreateUnit(p,'n00F',4032.,2432.,270.)
set u=CreateUnit(p,'n00F',3392.,2688.,270.)
set u=CreateUnit(p,'n00F',3392.,2176.,270.)
set u=CreateUnit(p,'n00F',4032.,3264.,270.)
set fR=CreateUnit(p,'n00F',4032.,3840.,270.)
set f5=CreateUnit(p,'n00F',4032.,2176.,270.)
set u=CreateUnit(p,'n00G',3584.,2560.,270.)
call SetUnitColor(u,ConvertPlayerColor(10))
set u=CreateUnit(p,'n00F',3200.,4160.,270.)
set fT=CreateUnit(p,'n00F',3200.,3584.,270.)
set fA=CreateUnit(p,'n00F',3904.,3264.,270.)
set fr=CreateUnit(p,'n00F',3328.,4160.,270.)
set fQ=CreateUnit(p,'n00F',3392.,1536.,270.)
set ft=CreateUnit(p,'n00F',4032.,1408.,270.)
set fS=CreateUnit(p,'n00F',2496.,2304.,270.)
set fU=CreateUnit(p,'n00F',3392.,2432.,270.)
set E5=CreateUnit(p,'n00F',4032.,2688.,270.)
set u=CreateUnit(p,'n00F',3328.,3456.,270.)
set u=CreateUnit(p,'n00F',1408.,4160.,270.)
set u=CreateUnit(p,'n00G',1536.,2752.,270.)
call SetUnitColor(u,ConvertPlayerColor(10))
set u=CreateUnit(p,'n001',-7040.,-1792.,270.)
set u=CreateUnit(p,'n001',-7040.,-1664.,270.)
set u=CreateUnit(p,'n001',-6912.,-1664.,270.)
set u=CreateUnit(p,'n001',-6912.,-1536.,270.)
set u=CreateUnit(p,'n001',-6912.,-1408.,270.)
set u=CreateUnit(p,'n001',-6912.,-1792.,270.)
set u=CreateUnit(p,'n001',-6784.,-1792.,270.)
set u=CreateUnit(p,'n001',-6912.,-1920.,270.)
set u=CreateUnit(p,'n001',-6784.,-1920.,270.)
set u=CreateUnit(p,'n001',-6912.,-2048.,270.)
set u=CreateUnit(p,'n001',-6912.,-2176.,270.)
set u=CreateUnit(p,'n001',-6784.,-2048.,270.)
set f3=CreateUnit(p,'n00F',1408.,3520.,270.)
set u=CreateUnit(p,'n00G',1536.,3840.,270.)
call SetUnitColor(u,ConvertPlayerColor(10))
set fV=CreateUnit(p,'n00F',2240.,4160.,270.)
set u=CreateUnit(p,'n00F',2240.,3520.,270.)
set u=CreateUnit(p,'n00F',2368.,4160.,270.)
set fv=CreateUnit(p,'n00F',2624.,3520.,270.)
set u=CreateUnit(p,'n00G',3840.,2560.,270.)
call SetUnitColor(u,ConvertPlayerColor(10))
set u=CreateUnit(p,'n00G',1408.,2368.,270.)
call SetUnitColor(u,ConvertPlayerColor(10))
set u=CreateUnit(p,'n00F',1920.,4160.,270.)
set f7=CreateUnit(p,'n00F',1920.,3520.,270.)
set u=CreateUnit(p,'n001',-6656.,-2048.,270.)
set u=CreateUnit(p,'n001',-6656.,-1920.,270.)
set u=CreateUnit(p,'n001',-6528.,-1920.,270.)
set u=CreateUnit(p,'n001',-6528.,-2048.,270.)
set u=CreateUnit(p,'n001',-6400.,-1920.,270.)
set u=CreateUnit(p,'n001',-6400.,-2048.,270.)
set u=CreateUnit(p,'n001',-6400.,-2176.,270.)
set u=CreateUnit(p,'n001',-6272.,-2048.,270.)
set u=CreateUnit(p,'n001',-6272.,-1920.,270.)
set u=CreateUnit(p,'n001',-6144.,-1920.,270.)
set u=CreateUnit(p,'n001',-6144.,-2048.,270.)
set FA=CreateUnit(p,'h00X',-7296.,1088.,270.)
call SetUnitColor(FA,ConvertPlayerColor(12))
set u=CreateUnit(p,'n001',-6016.,-2048.,270.)
set u=CreateUnit(p,'n001',-5888.,-2048.,270.)
set u=CreateUnit(p,'n001',-5888.,-2176.,270.)
set u=CreateUnit(p,'n001',-7808.,-1792.,270.)
set u=CreateUnit(p,'n001',-7808.,-1920.,270.)
set u=CreateUnit(p,'n001',-7808.,-2048.,270.)
set u=CreateUnit(p,'n001',-7680.,-2048.,270.)
set u=CreateUnit(p,'n001',-7808.,-2176.,270.)
set u=CreateUnit(p,'n001',-7680.,-2176.,270.)
set u=CreateUnit(p,'n001',-7552.,-2176.,270.)
set u=CreateUnit(p,'n001',-7424.,-2176.,270.)
set u=CreateUnit(p,'n001',-7424.,-2304.,270.)
set u=CreateUnit(p,'n001',-7552.,-2304.,270.)
set u=CreateUnit(p,'n001',-7552.,-2432.,270.)
set u=CreateUnit(p,'n001',-7424.,-2432.,270.)
set u=CreateUnit(p,'n001',-7424.,-2560.,270.)
set u=CreateUnit(p,'n001',-7552.,-2560.,270.)
set u=CreateUnit(p,'n001',-7296.,-2560.,270.)
set u=CreateUnit(p,'n001',-7168.,-2560.,270.)
set u=CreateUnit(p,'n001',-7040.,-2560.,270.)
set u=CreateUnit(p,'n001',-6912.,-2560.,270.)
set u=CreateUnit(p,'n001',-6784.,-2560.,270.)
set u=CreateUnit(p,'n001',-6656.,-2560.,270.)
set u=CreateUnit(p,'n001',-6656.,-2432.,270.)
set u=CreateUnit(p,'n001',-6528.,-2560.,270.)
set u=CreateUnit(p,'n001',-6400.,-2560.,270.)
set u=CreateUnit(p,'n001',-6272.,-2560.,270.)
set u=CreateUnit(p,'n001',-6144.,-2560.,270.)
set u=CreateUnit(p,'n001',-6144.,-2432.,270.)
set u=CreateUnit(p,'n001',-6016.,-2560.,270.)
set u=CreateUnit(p,'n001',-7168.,-1664.,270.)
set u=CreateUnit(p,'n001',-7296.,-1664.,270.)
set u=CreateUnit(p,'n001',-7424.,-1664.,270.)
set u=CreateUnit(p,'n001',-7424.,-1536.,270.)
set u=CreateUnit(p,'n001',-7424.,-1408.,270.)
set u=CreateUnit(p,'n001',-7552.,-1280.,270.)
set u=CreateUnit(p,'n001',-7552.,-1408.,270.)
set u=CreateUnit(p,'n001',-7680.,-1280.,270.)
set u=CreateUnit(p,'n00J',-7936.,-1792.,270.)
set u=CreateUnit(p,'n001',-7808.,-1280.,270.)
set u=CreateUnit(p,'n001',-7936.,-1280.,270.)
set u=CreateUnit(p,'n001',-8064.,-1280.,270.)
set u=CreateUnit(p,'n001',-8192.,-1280.,270.)
set u=CreateUnit(p,'n001',-5888.,-1536.,270.)
set u=CreateUnit(p,'n001',-5760.,-1536.,270.)
set u=CreateUnit(p,'n001',-5760.,-1408.,270.)
set u=CreateUnit(p,'n001',-5888.,-1408.,270.)
set u=CreateUnit(p,'n001',-5888.,-1280.,270.)
set u=CreateUnit(p,'n001',-5760.,-1280.,270.)
set u=CreateUnit(p,'n001',-5760.,-1152.,270.)
set u=CreateUnit(p,'n001',-6016.,-1408.,270.)
set u=CreateUnit(p,'n001',-6016.,-1536.,270.)
set u=CreateUnit(p,'n001',-6144.,-1536.,270.)
set u=CreateUnit(p,'n001',-6272.,-1408.,270.)
set u=CreateUnit(p,'n001',-6400.,-1408.,270.)
set u=CreateUnit(p,'n001',-6400.,-1280.,270.)
set u=CreateUnit(p,'n001',-6016.,-768.,270.)
set u=CreateUnit(p,'n001',-6016.,-640.,270.)
set u=CreateUnit(p,'n001',-6016.,-512.,270.)
set u=CreateUnit(p,'n001',-6016.,-384.,270.)
set u=CreateUnit(p,'n001',-5888.,-384.,270.)
set u=CreateUnit(p,'n001',-5888.,-512.,270.)
set u=CreateUnit(p,'n001',-6016.,-896.,270.)
set u=CreateUnit(p,'n001',-6144.,-768.,270.)
set u=CreateUnit(p,'n001',-6144.,-896.,270.)
set u=CreateUnit(p,'n001',-6144.,-1024.,270.)
set u=CreateUnit(p,'n00J',-7552.,-2048.,270.)
set u=CreateUnit(p,'n001',-6400.,-896.,270.)
set u=CreateUnit(p,'n001',-6528.,-896.,270.)
set u=CreateUnit(p,'n001',-6656.,-896.,270.)
set u=CreateUnit(p,'n001',-6656.,-768.,270.)
set u=CreateUnit(p,'n001',-6784.,-768.,270.)
set u=CreateUnit(p,'n001',-6784.,-640.,270.)
set u=CreateUnit(p,'n001',-6784.,-512.,270.)
set u=CreateUnit(p,'n001',-6784.,-384.,270.)
set u=CreateUnit(p,'n001',-6400.,-256.,270.)
set u=CreateUnit(p,'n001',-6400.,-384.,270.)
set u=CreateUnit(p,'n001',-6400.,-512.,270.)
set u=CreateUnit(p,'n001',-6784.,-896.,270.)
set u=CreateUnit(p,'n001',-6912.,-896.,270.)
set u=CreateUnit(p,'n001',-6912.,-1024.,270.)
set u=CreateUnit(p,'n001',-6784.,-1024.,270.)
set u=CreateUnit(p,'n001',-6912.,-1152.,270.)
set u=CreateUnit(p,'n001',-6912.,-1280.,270.)
set u=CreateUnit(p,'n00J',-7424.,-1024.,270.)
set u=CreateUnit(p,'n001',-7168.,-1152.,270.)
set u=CreateUnit(p,'n001',-7168.,-1024.,270.)
set u=CreateUnit(p,'n001',-7424.,-896.,270.)
set u=CreateUnit(p,'n001',-7296.,-896.,270.)
set u=CreateUnit(p,'n001',-7168.,-896.,270.)
set u=CreateUnit(p,'n001',-7168.,-768.,270.)
set u=CreateUnit(p,'n001',-7168.,-640.,270.)
set u=CreateUnit(p,'n001',-7168.,-512.,270.)
set u=CreateUnit(p,'n001',-7168.,-384.,270.)
set u=CreateUnit(p,'n001',-7296.,-384.,270.)
set u=CreateUnit(p,'n001',-7296.,-256.,270.)
set u=CreateUnit(p,'n001',-7168.,-256.,270.)
set u=CreateUnit(p,'n001',-7424.,-256.,270.)
set u=CreateUnit(p,'n001',-7552.,-256.,270.)
set u=CreateUnit(p,'n001',-7680.,-256.,270.)
set u=CreateUnit(p,'n001',-6144.,-1408.,270.)
set u=CreateUnit(p,'n001',-8064.,-256.,270.)
set u=CreateUnit(p,'n001',-8064.,-384.,270.)
set u=CreateUnit(p,'n001',-8192.,-256.,270.)
set u=CreateUnit(p,'n001',-8192.,-384.,270.)
set u=CreateUnit(p,'n001',-8192.,-512.,270.)
set u=CreateUnit(p,'n001',-8064.,-512.,270.)
set u=CreateUnit(p,'n001',-7936.,-512.,270.)
set u=CreateUnit(p,'n001',-7808.,-512.,270.)
set u=CreateUnit(p,'n001',-7680.,-512.,270.)
set u=CreateUnit(p,'n001',-7552.,-512.,270.)
set u=CreateUnit(p,'n001',-7552.,-640.,270.)
set u=CreateUnit(p,'n001',-8192.,-640.,270.)
set u=CreateUnit(p,'n001',-8192.,-768.,270.)
set u=CreateUnit(p,'n001',-8192.,-896.,270.)
set u=CreateUnit(p,'n001',-8192.,-1024.,270.)
set u=CreateUnit(p,'n001',-8192.,-1152.,270.)
set u=CreateUnit(p,'n001',-7936.,-1024.,270.)
set u=CreateUnit(p,'n001',-7936.,-896.,270.)
set u=CreateUnit(p,'n001',-7808.,-896.,270.)
set u=CreateUnit(p,'n001',-7808.,-768.,270.)
set u=CreateUnit(p,'n001',-7680.,-896.,270.)
set u=CreateUnit(p,'n00J',-7936.,-1664.,270.)
set u=CreateUnit(p,'n001',-5888.,-640.,270.)
set u=CreateUnit(p,'n001',-8064.,-640.,270.)
set u=CreateUnit(p,'n00J',-7808.,-1664.,270.)
set u=CreateUnit(p,'n00J',-7424.,-2048.,270.)
set u=CreateUnit(p,'n00J',-7296.,-2048.,270.)
set u=CreateUnit(p,'n00J',-7296.,-2176.,270.)
set u=CreateUnit(p,'n00J',-7296.,-2304.,270.)
set u=CreateUnit(p,'n00J',-7296.,-2432.,270.)
set u=CreateUnit(p,'n00J',-7168.,-2432.,270.)
set u=CreateUnit(p,'n00J',-7040.,-2176.,270.)
set u=CreateUnit(p,'n00J',-7040.,-2048.,270.)
set u=CreateUnit(p,'n00J',-7040.,-1920.,270.)
set u=CreateUnit(p,'n00J',-7168.,-1792.,270.)
set u=CreateUnit(p,'n00J',-7296.,-1792.,270.)
set u=CreateUnit(p,'n00J',-7424.,-1792.,270.)
set u=CreateUnit(p,'n00J',-6656.,-2304.,270.)
set u=CreateUnit(p,'n00J',-6400.,-2304.,270.)
set u=CreateUnit(p,'n00J',-6144.,-2304.,270.)
set u=CreateUnit(p,'n00J',-5888.,-1920.,270.)
set u=CreateUnit(p,'n00J',-6016.,-1920.,270.)
set u=CreateUnit(p,'n00J',-6144.,-1664.,270.)
set u=CreateUnit(p,'n00J',-5888.,-1792.,270.)
set u=CreateUnit(p,'n00J',-6400.,-1664.,270.)
set u=CreateUnit(p,'n00J',-6272.,-1536.,270.)
set u=CreateUnit(p,'n00J',-6400.,-1536.,270.)
set u=CreateUnit(p,'n00J',-6528.,-1536.,270.)
set u=CreateUnit(p,'n00J',-6528.,-1408.,270.)
set u=CreateUnit(p,'n00J',-6400.,-1792.,270.)
set u=CreateUnit(p,'n00J',-6656.,-1792.,270.)
set u=CreateUnit(p,'n00J',-6784.,-1664.,270.)
set u=CreateUnit(p,'n00J',-6784.,-1536.,270.)
set u=CreateUnit(p,'n00J',-6784.,-1408.,270.)
set u=CreateUnit(p,'n00J',-6784.,-1280.,270.)
set u=CreateUnit(p,'n00J',-6784.,-1152.,270.)
set u=CreateUnit(p,'n00J',-6656.,-1152.,270.)
set u=CreateUnit(p,'n00J',-6656.,-1024.,270.)
set u=CreateUnit(p,'n00J',-6528.,-1024.,270.)
set u=CreateUnit(p,'n00J',-6400.,-1152.,270.)
set u=CreateUnit(p,'n00J',-6400.,-1024.,270.)
set u=CreateUnit(p,'n00J',-6272.,-1024.,270.)
set u=CreateUnit(p,'n00J',-6272.,-896.,270.)
set u=CreateUnit(p,'n00J',-6272.,-768.,270.)
set u=CreateUnit(p,'n00J',-6400.,-768.,270.)
set u=CreateUnit(p,'n00J',-6272.,-640.,270.)
set u=CreateUnit(p,'n00J',-6144.,-640.,270.)
set u=CreateUnit(p,'n00J',-6656.,-512.,270.)
set u=CreateUnit(p,'n00J',-6656.,-640.,270.)
set u=CreateUnit(p,'n00J',-6528.,-768.,270.)
set u=CreateUnit(p,'n00J',-5760.,-896.,270.)
set u=CreateUnit(p,'n00J',-5760.,-1024.,270.)
set u=CreateUnit(p,'n00J',-6912.,-384.,270.)
set u=CreateUnit(p,'n00J',-7040.,-640.,270.)
set u=CreateUnit(p,'n00J',-7168.,-1280.,270.)
set u=CreateUnit(p,'n00J',-7040.,-1280.,270.)
set u=CreateUnit(p,'n00J',-7168.,-1408.,270.)
set u=CreateUnit(p,'n00J',-7552.,-1152.,270.)
set u=CreateUnit(p,'n00J',-7552.,-1024.,270.)
set u=CreateUnit(p,'n00J',-7552.,-896.,270.)
set u=CreateUnit(p,'n00J',-7552.,-768.,270.)
set u=CreateUnit(p,'n00J',-8512.,-3904.,270.)
set u=CreateUnit(p,'n00J',-8256.,-3904.,270.)
set u=CreateUnit(p,'n00J',-8384.,-4160.,270.)
set u=CreateUnit(p,'n00J',-8256.,-4416.,270.)
set u=CreateUnit(p,'n00J',-8512.,-4416.,270.)
set u=CreateUnit(p,'n00J',-8448.,-4864.,270.)
set u=CreateUnit(p,'n00J',-8320.,-5248.,270.)
set u=CreateUnit(p,'u00F',-6848.,8640.,270.)
set u=CreateUnit(p,'u00F',-7424.,8128.,270.)
set u=CreateUnit(p,'uzg1',8160.,2144.,270.)
set p=Player(12)
set u=CreateUnit(p,'n002',-2963.1,-2726.7,190.102)
set u=CreateUnit(p,'n002',-3537.4,-4100.4,111.548)
set u=CreateUnit(p,'n002',-2977.8,-3403.2,71.963)
set u=CreateUnit(p,'n002',-2022.1,-4163.7,17.765)
set u=CreateUnit(p,'n002',-2289.3,-5018.9,257.22)
set u=CreateUnit(p,'n002',-3221.1,-4869.7,268.305)
set u=CreateUnit(p,'n002',-2307.7,-3881.5,4.922)
set u=CreateUnit(p,'n002',-1704.3,-4443.6,123.391)
set u=CreateUnit(p,'n002',-1843.9,-3991.,120.348)
set u=CreateUnit(p,'n002',-1959.7,-4949.,43.189)
set u=CreateUnit(p,'n002',-2543.4,-4872.5,272.92)
set u=CreateUnit(p,'n002',-2862.7,-4904.8,129.038)
set u=CreateUnit(p,'n002',-3526.6,-4940.6,32.883)
set u=CreateUnit(p,'n002',-3776.3,-4176.2,2.692)
set u=CreateUnit(p,'n002',-2647.7,-2596.2,312.988)
set u=CreateUnit(p,'n002',-3238.8,-2595.2,207.725)
set u=CreateUnit(p,'n002',-5054.4,-4011.6,210.57)
set u=CreateUnit(p,'n002',-4762.4,-3692.4,153.319)
set u=CreateUnit(p,'n002',-4860.3,-3252.3,342.432)
set u=CreateUnit(p,'n002',-4594.3,-3028.8,230.445)
set u=CreateUnit(p,'n002',-5104.9,-2729.7,319.558)
set u=CreateUnit(p,'ugho',-1233.,-7719.7,139.662)
set u=CreateUnit(p,'ugho',-1138.7,-7366.1,252.99)
set u=CreateUnit(p,'ugho',-1150.3,-6616.3,286.664)
set u=CreateUnit(p,'ugho',-1508.8,-7899.6,330.753)
set u=CreateUnit(p,'ugho',-1169.2,-7785.9,229.599)
set u=CreateUnit(p,'ugho',-1299.3,-7008.3,342.85)
set u=CreateUnit(p,'ugho',-1295.6,-7302.3,245.893)
set u=CreateUnit(p,'ugho',-1152.8,-7039.5,53.604)
set u=CreateUnit(p,'ugho',-1291.2,-6919.5,21.809)
set u=CreateUnit(p,'ugho',-1179.8,-7261.,248.288)
set u=CreateUnit(p,'ugho',-1167.6,-7435.3,326.293)
set u=CreateUnit(p,'ugho',-1120.5,-7605.3,234.203)
set u=CreateUnit(p,'ugho',-1136.3,-7721.7,252.693)
set u=CreateUnit(p,'ugho',-1262.9,-7899.7,76.225)
set u=CreateUnit(p,'ugho',-1346.6,-7636.1,358.726)
set u=CreateUnit(p,'ugho',-1414.8,-7563.7,270.206)
set u=CreateUnit(p,'ugho',-1155.8,-6821.6,34.696)
set u=CreateUnit(p,'ugho',-1203.5,-6964.2,81.016)
set u=CreateUnit(p,'ugho',-1261.9,-7467.9,240.575)
set p=Player(15)
set u=CreateUnit(p,'h006',-1339.3,-272.2,253.693)
set u=CreateUnit(p,'h006',-2337.3,-1268.,289.059)
set u=CreateUnit(p,'h006',-2401.,-136.,35.542)
set u=CreateUnit(p,'h006',-1370.7,981.4,23.775)
set u=CreateUnit(p,'h006',-2428.3,1206.4,123.699)
set u=CreateUnit(p,'h006',-1454.4,236.4,287.268)
set u=CreateUnit(p,'h006',-2516.9,626.4,169.711)
set u=CreateUnit(p,'h006',-2491.1,-730.8,132.203)
set u=CreateUnit(p,'h006',-1421.1,-1371.9,129.752)
set u=CreateUnit(p,'h006',-1519.6,-711.7,305.506)
set u=CreateUnit(p,'h006',-1129.,1516.3,321.964)
set u=CreateUnit(p,'h006',-2760.9,1661.,60.987)
set u=CreateUnit(p,'h006',-1170.1,-1768.6,358.583)
set u=CreateUnit(p,'h006',-2767.3,-1610.5,87.685)
set ET=CreateUnit(p,'n00E',-3797.,1694.1,180.81)
set u=CreateUnit(p,'n003',-1137.4,-3804.4,143.343)
set u=CreateUnit(p,'n003',-1049.3,-3427.9,50.736)
set u=CreateUnit(p,'n003',-1134.,-3116.3,254.913)
set u=CreateUnit(p,'n003',-1534.,-2785.5,88.761)
set u=CreateUnit(p,'n003',-1661.5,-2548.6,327.084)
set u=CreateUnit(p,'n003',-4437.5,-5012.6,296.552)
set u=CreateUnit(p,'n003',-1319.2,-2588.6,88.761)
set u=CreateUnit(p,'n003',-1028.8,-2646.5,88.761)
set u=CreateUnit(p,'n003',-3713.4,-3430.2,88.761)
set u=CreateUnit(p,'n003',-3613.5,-2573.8,88.761)
set EH=CreateUnit(p,'n00C',-4168.7,1593.4,270.)
call SetUnitColor(EH,ConvertPlayerColor(10))
set u=CreateUnit(p,'n003',-2238.6,-2593.,35.278)
set u=CreateUnit(p,'n003',-1194.3,-2866.9,330.281)
set u=CreateUnit(p,'n003',-2995.8,-4883.4,181.005)
set u=CreateUnit(p,'n003',-3136.7,-4053.1,88.761)
set u=CreateUnit(p,'n003',-3713.9,-2806.4,185.301)
set u=CreateUnit(p,'n003',-3722.5,-3090.6,340.993)
set u=CreateUnit(p,'n003',-3846.1,-3278.1,213.229)
set u=CreateUnit(p,'n003',-3810.4,-3577.5,27.5)
set u=CreateUnit(p,'n003',-3717.1,-3748.4,212.559)
set u=CreateUnit(p,'n003',-3248.7,-4144.3,202.242)
set u=CreateUnit(p,'n003',-3009.8,-4248.9,179.247)
set u=CreateUnit(p,'n003',-3013.3,-3842.9,102.341)
set u=CreateUnit(p,'n003',-2809.,-3449.5,313.01)
set u=CreateUnit(p,'n003',-2259.7,-3607.9,311.417)
set u=CreateUnit(p,'n003',-2294.1,-3782.5,102.341)
set u=CreateUnit(p,'n003',-1786.3,-4673.1,157.747)
set u=CreateUnit(p,'n003',-1682.,-4473.3,48.297)
set u=CreateUnit(p,'n003',-1782.2,-4903.4,142.706)
set u=CreateUnit(p,'n003',-1750.8,-5083.4,256.813)
set u=CreateUnit(p,'n003',-1977.6,-4978.2,229.27)
set u=CreateUnit(p,'n003',-2663.3,-3345.3,75.182)
set u=CreateUnit(p,'n003',-2162.3,-3457.3,297.453)
set u=CreateUnit(p,'n003',-3034.5,-3622.6,317.668)
set u=CreateUnit(p,'n003',-2486.4,-3487.5,88.761)
set u=CreateUnit(p,'n003',-2344.1,-3453.1,88.761)
set u=CreateUnit(p,'n003',-1661.,-4797.7,88.761)
set u=CreateUnit(p,'n003',-2931.8,-4043.8,88.761)
set fx=CreateUnit(p,'u00B',3838.,-2954.6,18.61)
call SetUnitColor(fx,ConvertPlayerColor(4))
set u=CreateUnit(p,'n003',-4616.8,-5044.9,358.715)
set u=CreateUnit(p,'n003',-4859.4,-4738.1,308.615)
set u=CreateUnit(p,'n003',-4837.,-5114.7,221.052)
set u=CreateUnit(p,'n003',-4729.7,-4524.8,138.124)
set u=CreateUnit(p,'n003',-4777.4,-4323.,16.59)
set u=CreateUnit(p,'n003',-4600.,-4398.3,29.983)
set u=CreateUnit(p,'n003',-5112.6,-3699.3,13.129)
set u=CreateUnit(p,'n003',-4731.6,-2920.4,233.17)
set p=Player(0)
set F4=CreateUnit(p,'H01E',-2238.1,7084.9,270.)
set F5=CreateUnit(p,'H01F',-1625.2,7128.7,270.)
set p=Player(10)
set EQ=CreateUnit(p,'u007',-4288.4,-1080.2,271.281)
call SetUnitColor(EQ,ConvertPlayerColor(3))
set u=CreateUnit(p,'u007',6847.9,-7858.9,211.969)
call SetUnitColor(u,ConvertPlayerColor(3))
set u=CreateUnit(p,'u000',7186.6,-7852.7,234.056)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'u006',7345.8,-7877.9,8.119)
call SetUnitColor(u,ConvertPlayerColor(11))
set u=CreateUnit(p,'u006',7102.,-7967.8,149.243)
call SetUnitColor(u,ConvertPlayerColor(11))
set u=CreateUnit(p,'ogru',8417.,-6793.6,244.211)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n00C',6459.2,-7782.8,270.)
call SetUnitColor(u,ConvertPlayerColor(10))
set El=CreateUnit(p,'n00A',6348.5,-7955.4,224.97)
set Ek=CreateUnit(p,'n00B',6557.6,-7924.6,78.85)
set Ei=CreateUnit(p,'n009',6452.6,-7982.3,326.01)
set u=CreateUnit(p,'u008',8053.9,-6823.6,92.42)
set f8=CreateUnit(p,'o006',6460.3,-6714.1,271.102)
call SetUnitColor(f8,ConvertPlayerColor(4))
set u=CreateUnit(p,'ogru',8328.6,-6666.1,278.178)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'uobs',8000.3,-6623.5,270.)
call SetUnitState(u,UNIT_STATE_MANA,0)
call SetUnitColor(u,ConvertPlayerColor(3))
set u=CreateUnit(p,'u009',7946.8,-6865.9,118.304)
set u=CreateUnit(p,'u00D',6705.7,-6797.8,244.982)
call SetUnitColor(u,ConvertPlayerColor(3))
set u=CreateUnit(p,'u00D',6926.1,-6571.8,.0)
call SetUnitColor(u,ConvertPlayerColor(3))
set u=CreateUnit(p,'u00B',6805.2,-6665.2,313.794)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h00Z',7702.3,-5440.6,355.644)
set u=CreateUnit(p,'h00Z',7514.3,-5506.3,270.227)
set fH=CreateUnit(p,'e001',7674.7,-6653.9,100.583)
call SetUnitColor(fH,ConvertPlayerColor(9))
set fh=CreateUnit(p,'e002',7546.7,-6791.5,197.167)
set u=CreateUnit(p,'o004',7233.1,-6589.6,254.347)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n00H',7235.6,-6717.,209.999)
set u=CreateUnit(p,'H00V',8310.4,-5557.3,.0)
call SetUnitState(u,UNIT_STATE_MANA,0)
call SetUnitColor(u,ConvertPlayerColor(5))
set u=CreateUnit(p,'hfoo',8471.6,-5548.3,180.)
call SetUnitColor(u,ConvertPlayerColor(9))
set u=CreateUnit(p,'o008',8262.1,-5403.,.0)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'hkni',6468.2,-5524.5,297.3)
set u=CreateUnit(p,'u00C',7229.3,-7978.2,254.445)
set u=CreateUnit(p,'nhea',8486.2,-5426.4,180.)
call SetUnitColor(u,ConvertPlayerColor(9))
set u=CreateUnit(p,'hmpr',8479.9,-5666.1,180.)
call SetUnitState(u,UNIT_STATE_MANA,0)
call SetUnitColor(u,ConvertPlayerColor(9))
set u=CreateUnit(p,'o009',8283.4,-5668.1,.0)
call SetUnitColor(u,ConvertPlayerColor(8))
set fW=CreateUnit(p,'e000',-7687.,-1118.8,122.328)
set Fd=CreateUnit(p,'e000',-7031.,-1196.9,320.275)
set u=CreateUnit(p,'e000',7949.4,-5539.6,128.264)
set FD=CreateUnit(p,'e000',-7003.6,-1587.9,151.133)
set FC=CreateUnit(p,'e000',-7671.9,-1563.2,25.025)
set FG=CreateUnit(p,'e000',-6240.8,-1188.6,164.481)
set Fb=CreateUnit(p,'e000',-6253.,-1641.,138.478)
set Fc=CreateUnit(p,'e000',-7639.9,-1977.6,330.728)
set FB=CreateUnit(p,'e000',-7003.2,-2049.9,269.285)
set Fe=CreateUnit(p,'e000',-6251.4,-2024.8,307.304)
set Ff=CreateUnit(p,'e000',-6287.4,-677.6,58.966)
set FE=CreateUnit(p,'e000',-7669.8,-663.1,134.493)
set Fg=CreateUnit(p,'e000',-7109.8,-635.3,138.191)
set Fi=CreateUnit(p,'h00Z',-6869.6,-3316.3,341.63)
set FI=CreateUnit(p,'h00Z',-6785.6,-3317.2,34.861)
set Fj=CreateUnit(p,'h00Z',-6690.7,-3316.3,144.167)
set FJ=CreateUnit(p,'h00Z',-6599.5,-3321.2,146.749)
set fY=CreateUnit(p,'h00Z',-6519.2,-3320.1,359.253)
set fy=CreateUnit(p,'h00Z',-6429.7,-3319.2,150.99)
set f1=CreateUnit(p,'h00Z',-6340.3,-3320.2,41.035)
set f0=CreateUnit(p,'h00Z',-6247.2,-3319.3,330.863)
set fz=CreateUnit(p,'h00Z',-6150.5,-3322.3,350.255)
set fZ=CreateUnit(p,'h00Z',-6061.,-3323.3,243.431)
set u=CreateUnit(p,'orai',8299.,-4488.5,259.83)
set u=CreateUnit(p,'ohun',8456.4,-4511.,288.638)
set u=CreateUnit(p,'Hmkg',8372.7,-4333.8,270.)
set u=CreateUnit(p,'hpea',-2146.7,6288.4,66.206)
set u=CreateUnit(p,'hspt',7939.2,-4492.9,134.026)
set u=CreateUnit(p,'hspt',8034.7,-4504.8,25.742)
set u=CreateUnit(p,'hspt',8026.4,-4404.4,274.238)
set u=CreateUnit(p,'hspt',7925.1,-4376.,358.813)
set u=CreateUnit(p,'hspt',-5272.2,-9677.7,69.93)
set u=CreateUnit(p,'Nbst',7225.9,-4499.9,270.)
set u=CreateUnit(p,'h019',6802.7,-9005.2,212.229)
set u=CreateUnit(p,'h019',6801.2,-9056.,200.)
set u=CreateUnit(p,'h019',6804.7,-9091.9,195.53)
set u=CreateUnit(p,'h018',6680.2,-9056.,.0)
set u=CreateUnit(p,'hspt',-4468.8,-9693.7,225.82)
set u=CreateUnit(p,'ugho',7526.2,-4511.5,61.547)
set u=CreateUnit(p,'ugho',7638.5,-4446.5,156.142)
set FN=CreateUnit(p,'h01G',-9241.,5659.5,350.)
set u=CreateUnit(p,'h01G',5846.5,-9086.9,350.)
set u=CreateUnit(p,'h01H',6077.7,-9091.3,180.)
set u=CreateUnit(p,'o00A',5986.3,-4433.8,240.)
call SetUnitColor(u,ConvertPlayerColor(11))
set u=CreateUnit(p,'o002',6109.5,-4497.4,300.)
call SetUnitColor(u,ConvertPlayerColor(11))
set u=CreateUnit(p,'Obla',6470.5,-4477.3,206.604)
set u=CreateUnit(p,'u00E',7570.6,-9067.6,209.428)
set u=CreateUnit(p,'uaco',7443.8,-9048.6,121.963)
set u=CreateUnit(p,'uabo',7122.4,-9082.6,79.796)
set u=CreateUnit(p,'hkni',6367.6,-9100.8,13.36)
set p=Player(11)
set Eh=CreateUnit(p,'u000',-1080.5,-5412.7,284.545)
call SetUnitColor(Eh,ConvertPlayerColor(12))
set u=CreateUnit(p,'u00C',-2818.5,-3569.7,299.56)
set EV=CreateUnit(p,'e001',2487.8,1917.8,205.275)
call SetUnitColor(EV,ConvertPlayerColor(9))
set Ew=CreateUnit(p,'e002',2495.1,1402.4,210.098)
set EW=CreateUnit(p,'e002',2493.6,2430.5,300.496)
set Ex=CreateUnit(p,'e002',3011.3,2558.4,318.33)
set EX=CreateUnit(p,'e002',1151.2,4160.8,146.804)
set Ey=CreateUnit(p,'e002',1283.3,3517.3,6.79)
set EY=CreateUnit(p,'e001',1085.8,2684.6,246.629)
call SetUnitColor(EY,ConvertPlayerColor(9))
set Ez=CreateUnit(p,'e001',1970.4,2559.6,153.637)
call SetUnitColor(Ez,ConvertPlayerColor(9))
set EZ=CreateUnit(p,'e001',1074.8,2442.6,162.075)
call SetUnitColor(EZ,ConvertPlayerColor(9))
set E6=CreateUnit(p,'e001',2235.3,3516.5,158.417)
call SetUnitColor(E6,ConvertPlayerColor(9))
set E1=CreateUnit(p,'e001',1084.6,1921.8,264.438)
call SetUnitColor(E1,ConvertPlayerColor(9))
set E2=CreateUnit(p,'e001',2624.1,4152.6,257.571)
call SetUnitColor(E2,ConvertPlayerColor(9))
set fb=CreateUnit(p,'e002',3201.8,4157.2,289.499)
set E4=CreateUnit(p,'e001',3318.2,3449.3,255.879)
call SetUnitColor(E4,ConvertPlayerColor(9))
set fu=CreateUnit(p,'e002',3909.3,3836.7,18.567)
set E8=CreateUnit(p,'e002',4026.,3266.4,195.178)
set E9=CreateUnit(p,'e001',4029.7,2424.6,226.27)
call SetUnitColor(E9,ConvertPlayerColor(9))
set E7=CreateUnit(p,'e001',3384.5,2688.5,78.17)
call SetUnitColor(E7,ConvertPlayerColor(9))
set f4=CreateUnit(p,'e002',3395.3,2174.4,318.33)
set fB=CreateUnit(p,'e001',4039.4,1280.4,307.352)
call SetUnitColor(fB,ConvertPlayerColor(9))
set fc=CreateUnit(p,'e001',4030.6,2046.5,91.244)
call SetUnitColor(fc,ConvertPlayerColor(9))
set fC=CreateUnit(p,'e001',3393.4,1916.3,293.695)
call SetUnitColor(fC,ConvertPlayerColor(9))
set fd=CreateUnit(p,'e001',4030.8,1791.6,152.616)
call SetUnitColor(fd,ConvertPlayerColor(9))
set fD=CreateUnit(p,'e001',3400.3,1670.7,102.978)
call SetUnitColor(fD,ConvertPlayerColor(9))
set fe=CreateUnit(p,'e001',4026.3,1534.,256.099)
call SetUnitColor(fe,ConvertPlayerColor(9))
set fE=CreateUnit(p,'e001',3383.2,1407.8,249.694)
call SetUnitColor(fE,ConvertPlayerColor(9))
set ff=CreateUnit(p,'e001',3003.4,2298.,39.937)
call SetUnitColor(ff,ConvertPlayerColor(9))
set fF=CreateUnit(p,'e001',2494.1,3521.,158.417)
call SetUnitColor(fF,ConvertPlayerColor(9))
set f2=CreateUnit(p,'e002',1411.3,4157.3,6.79)
set u=CreateUnit(p,'u00C',-3107.4,-3923.,299.56)
set u=CreateUnit(p,'n003',-4472.9,-2593.7,2.329)
set u=CreateUnit(p,'u00C',-1877.8,-2545.4,299.56)
set u=CreateUnit(p,'h00S',8601.5,8516.2,173.326)
set u=CreateUnit(p,'u00C',-2043.1,-2719.8,299.56)
set u=CreateUnit(p,'h00S',7830.,8656.3,74.555)
set u=CreateUnit(p,'h00S',7187.8,8681.3,82.015)
set u=CreateUnit(p,'h00S',7007.3,8329.6,336.181)
set u=CreateUnit(p,'u00C',-2098.7,-4169.4,299.56)
set u=CreateUnit(p,'h00S',6597.4,8715.7,42.288)
set u=CreateUnit(p,'u00C',-2219.6,-3946.,299.56)
set u=CreateUnit(p,'h00S',6542.5,7950.4,200.649)
set u=CreateUnit(p,'u00C',-2331.,-4214.2,299.56)
set u=CreateUnit(p,'h00S',6102.2,8000.2,114.921)
set u=CreateUnit(p,'h00S',6128.8,8142.2,346.673)
set u=CreateUnit(p,'u00C',-4072.7,-4989.4,299.56)
set u=CreateUnit(p,'h00S',6508.5,7469.4,110.174)
set u=CreateUnit(p,'u00C',-4038.4,-4844.5,299.56)
set u=CreateUnit(p,'h00S',6376.3,7423.5,217.833)
set u=CreateUnit(p,'u00C',-4961.1,-3821.4,299.56)
set u=CreateUnit(p,'u00C',-4400.6,-4682.8,299.56)
set u=CreateUnit(p,'u00C',-4390.2,-4842.,299.56)
set u=CreateUnit(p,'u00C',-4554.1,-4768.9,299.56)
set u=CreateUnit(p,'u00C',-4713.6,-4708.7,299.56)
set u=CreateUnit(p,'u00C',-4859.3,-4956.1,299.56)
set u=CreateUnit(p,'u00C',-4819.1,-4138.6,299.56)
set u=CreateUnit(p,'u00C',-5019.,-4167.5,299.56)
set u=CreateUnit(p,'u00C',-4914.8,-2752.8,299.56)
set u=CreateUnit(p,'u00C',-4737.5,-2675.9,299.56)
set fl=CreateUnit(p,'e001',2368.2,4160.5,158.417)
call SetUnitColor(fl,ConvertPlayerColor(9))
set f6=CreateUnit(p,'e002',1923.3,4157.3,6.79)
set u=CreateUnit(p,'hprt',-8890.,-6551.6,270.)
set u=CreateUnit(p,'hprt',-7621.6,-6546.7,270.)
set u=CreateUnit(p,'hspt',-6802.8,-8356.5,225.216)
set u=CreateUnit(p,'hspt',-6664.4,-8249.6,358.033)
set u=CreateUnit(p,'hspt',-6498.4,-8086.3,118.173)
set u=CreateUnit(p,'hspt',-6264.8,-8272.2,176.775)
set u=CreateUnit(p,'hspt',-6275.1,-8067.,79.884)
set u=CreateUnit(p,'hspt',-6230.1,-7943.9,170.008)
set u=CreateUnit(p,'hspt',-6074.6,-7928.7,151.605)
set u=CreateUnit(p,'hspt',-5868.8,-7933.8,112.987)
set u=CreateUnit(p,'hspt',-5576.7,-7933.8,283.676)
set u=CreateUnit(p,'hspt',-5652.3,-8095.9,232.994)
set u=CreateUnit(p,'hspt',-5643.2,-8276.7,144.266)
set u=CreateUnit(p,'hspt',-6184.4,-8583.2,212.9)
set u=CreateUnit(p,'hspt',-3978.,-8389.,158.889)
set u=CreateUnit(p,'hspt',-6300.1,-8697.7,139.377)
set u=CreateUnit(p,'hspt',-6430.1,-8693.9,349.497)
set u=CreateUnit(p,'hspt',-6516.1,-8697.7,172.732)
set u=CreateUnit(p,'hspt',-6591.8,-8697.7,319.349)
set u=CreateUnit(p,'hspt',-5880.3,-8337.8,238.323)
set u=CreateUnit(p,'hspt',-5870.4,-8490.5,139.849)
set u=CreateUnit(p,'hspt',-5882.8,-8636.4,166.019)
set u=CreateUnit(p,'hspt',-5870.1,-8765.2,318.426)
set u=CreateUnit(p,'hspt',-5630.4,-9442.1,223.557)
set u=CreateUnit(p,'hspt',-5625.8,-9279.8,148.375)
set u=CreateUnit(p,'hspt',-5632.2,-9122.6,134.839)
set u=CreateUnit(p,'hspt',-5624.2,-8857.1,179.116)
set u=CreateUnit(p,'hspt',-5628.9,-8709.8,172.491)
set u=CreateUnit(p,'hspt',-5495.4,-8693.,248.925)
set u=CreateUnit(p,'hspt',-5386.9,-8693.,193.893)
set u=CreateUnit(p,'hspt',-5307.5,-8814.2,145.771)
set u=CreateUnit(p,'hspt',-4781.,-7831.3,262.57)
set u=CreateUnit(p,'hspt',-5239.3,-9093.1,188.487)
set u=CreateUnit(p,'hspt',-5251.2,-9214.1,252.902)
set u=CreateUnit(p,'hspt',-5250.8,-9375.6,11.932)
set u=CreateUnit(p,'hspt',-5261.7,-9549.7,167.151)
set u=CreateUnit(p,'hspt',-5128.7,-9053.3,70.611)
set u=CreateUnit(p,'hspt',-5134.7,-8920.4,61.734)
set u=CreateUnit(p,'hspt',-5131.9,-8748.6,61.273)
set u=CreateUnit(p,'hspt',-5116.4,-8607.7,188.85)
set u=CreateUnit(p,'hspt',-5113.9,-8472.5,150.111)
set u=CreateUnit(p,'hspt',-5111.3,-8331.6,168.019)
set u=CreateUnit(p,'hspt',-5108.3,-8171.5,108.416)
set u=CreateUnit(p,'hspt',-5114.7,-7996.9,106.812)
set u=CreateUnit(p,'hspt',-5116.9,-7834.9,238.279)
set u=CreateUnit(p,'hspt',-5119.1,-7665.5,328.128)
set u=CreateUnit(p,'hspt',-5116.4,-7496.,242.52)
set u=CreateUnit(p,'hspt',-5113.5,-7310.3,289.641)
set u=CreateUnit(p,'hspt',-5188.7,-7543.,30.356)
set u=CreateUnit(p,'hspt',-5306.3,-7543.,164.701)
set u=CreateUnit(p,'hspt',-5403.5,-7535.2,355.023)
set u=CreateUnit(p,'hspt',-5608.1,-7535.2,190.706)
set u=CreateUnit(p,'hspt',-5750.9,-7543.,279.523)
set u=CreateUnit(p,'hspt',-5878.6,-7543.,271.415)
set u=CreateUnit(p,'hspt',-6042.1,-7543.,166.931)
set u=CreateUnit(p,'hspt',-6149.5,-7543.,339.213)
set u=CreateUnit(p,'hspt',-6318.1,-7543.,351.342)
set u=CreateUnit(p,'hspt',-6507.2,-7543.,3.79)
set u=CreateUnit(p,'hspt',-6529.6,-7650.4,225.787)
set u=CreateUnit(p,'hspt',-4214.2,-8319.,153.44)
set u=CreateUnit(p,'hspt',-4979.8,-9235.5,121.743)
set u=CreateUnit(p,'hspt',-4887.8,-9212.8,46.671)
set u=CreateUnit(p,'hspt',-4864.5,-9120.,346.97)
set u=CreateUnit(p,'hspt',-4863.1,-8991.1,235.939)
set u=CreateUnit(p,'hspt',-4863.2,-8759.2,217.942)
set u=CreateUnit(p,'hspt',-4861.2,-8640.4,102.429)
set u=CreateUnit(p,'hspt',-4863.7,-8477.6,337.137)
set u=CreateUnit(p,'hspt',-4865.7,-8352.,25.764)
set u=CreateUnit(p,'hspt',-4869.4,-8117.7,138.806)
set u=CreateUnit(p,'hspt',-4876.9,-7924.2,114.899)
set u=CreateUnit(p,'hspt',-4880.7,-7693.7,249.617)
set u=CreateUnit(p,'hspt',-4826.,-7649.4,303.66)
set u=CreateUnit(p,'hspt',-4622.9,-7655.8,198.101)
set u=CreateUnit(p,'hspt',-4535.2,-7655.8,345.684)
set u=CreateUnit(p,'hspt',-4855.4,-7513.2,259.142)
set u=CreateUnit(p,'hspt',-4860.,-7144.2,305.045)
set u=CreateUnit(p,'hspt',-4861.5,-7025.,199.847)
set u=CreateUnit(p,'hspt',-5059.4,-6987.,158.878)
set u=CreateUnit(p,'hspt',-5272.1,-6987.,112.976)
set u=CreateUnit(p,'hspt',-5382.9,-6994.6,188.202)
set u=CreateUnit(p,'hspt',-5399.1,-7216.8,64.151)
set u=CreateUnit(p,'hspt',-5460.2,-7245.4,53.132)
set u=CreateUnit(p,'hspt',-5597.2,-7245.4,139.234)
set u=CreateUnit(p,'hspt',-5772.2,-7252.5,28.884)
set u=CreateUnit(p,'hspt',-5911.7,-7266.7,137.938)
set u=CreateUnit(p,'hspt',-6066.4,-7273.8,138.663)
set u=CreateUnit(p,'hspt',-6274.4,-7280.9,140.113)
set u=CreateUnit(p,'hspt',-6856.5,-7292.9,299.804)
set u=CreateUnit(p,'hspt',-6756.,-7292.9,229.742)
set u=CreateUnit(p,'hspt',-6667.8,-7288.5,269.25)
set FU=CreateUnit(p,'hkni',2113.2,-5638.7,6.251)
set F1=CreateUnit(p,'Nbst',-8894.4,3038.7,236.71)
call SetHeroLevel(F1,6,false)
call SelectHeroSkill(F1,'ANst')
set F2=CreateUnit(p,'Nbst',-8989.1,3044.9,313.79)
call SetHeroLevel(F2,6,false)
call SelectHeroSkill(F2,'ANst')
set u=CreateUnit(p,'hspt',-5408.1,-6567.,246.068)
set u=CreateUnit(p,'hspt',-5188.1,-6646.3,25.061)
set u=CreateUnit(p,'hspt',-5022.7,-6643.,37.596)
set u=CreateUnit(p,'hspt',-4827.5,-6636.8,64.657)
set u=CreateUnit(p,'hspt',-4672.3,-6636.8,230.775)
set u=CreateUnit(p,'hspt',-4576.5,-6636.8,281.599)
set u=CreateUnit(p,'hspt',-4489.2,-6643.,314.142)
set u=CreateUnit(p,'hspt',-4450.,-6818.1,142.662)
set u=CreateUnit(p,'hspt',-4447.3,-6939.4,175.666)
set u=CreateUnit(p,'hspt',-4428.,-7142.7,221.964)
set u=CreateUnit(p,'hspt',-4457.,-7313.5,200.177)
set u=CreateUnit(p,'hspt',-4471.5,-7484.8,182.269)
set u=CreateUnit(p,'hspt',-4467.7,-9579.1,302.946)
set u=CreateUnit(p,'hspt',-4477.6,-9464.,104.055)
set u=CreateUnit(p,'hspt',-4458.6,-9321.2,41.716)
set u=CreateUnit(p,'hspt',-4468.4,-9199.8,338.137)
set u=CreateUnit(p,'hspt',-4475.8,-9107.9,182.983)
set u=CreateUnit(p,'hspt',-4475.2,-9013.,201.847)
set u=CreateUnit(p,'hspt',-4472.9,-8883.6,341.026)
set u=CreateUnit(p,'hspt',-4477.,-8776.1,172.765)
set u=CreateUnit(p,'hspt',-4489.9,-8607.7,36.025)
set u=CreateUnit(p,'hspt',-4475.6,-8442.4,90.047)
set u=CreateUnit(p,'hspt',-4475.3,-8255.7,315.449)
set u=CreateUnit(p,'hspt',-4478.3,-8078.5,155.89)
set u=CreateUnit(p,'hspt',-4391.7,-7658.,257.132)
set u=CreateUnit(p,'hspt',-4200.5,-7658.,244.948)
set u=CreateUnit(p,'hspt',-4195.6,-7827.7,331.61)
set u=CreateUnit(p,'hspt',-4219.2,-8010.6,66.612)
set u=CreateUnit(p,'hspt',-4208.2,-8204.1,283.291)
set u=CreateUnit(p,'hspt',-4224.,-8418.1,133.598)
set u=CreateUnit(p,'hspt',-4212.3,-8578.5,106.856)
set u=CreateUnit(p,'hspt',-4225.3,-8748.6,28.433)
set u=CreateUnit(p,'hspt',-4227.9,-8904.7,53.142)
set u=CreateUnit(p,'hspt',-4222.7,-9038.3,281.874)
set u=CreateUnit(p,'hspt',-4219.,-9237.7,160.35)
set u=CreateUnit(p,'hspt',-4216.,-9411.3,349.585)
set u=CreateUnit(p,'hspt',-4118.3,-9477.,133.774)
set u=CreateUnit(p,'hspt',-4019.2,-9477.,221.337)
set u=CreateUnit(p,'hspt',-3982.9,-8777.8,150.858)
set u=CreateUnit(p,'hspt',-3876.8,-9494.3,87.399)
set u=CreateUnit(p,'hspt',-3695.,-9481.3,188.652)
set u=CreateUnit(p,'hspt',-3569.3,-9477.,87.86)
set u=CreateUnit(p,'hspt',-3443.5,-9468.3,299.474)
set u=CreateUnit(p,'hspt',-3332.6,-9455.3,282.083)
set u=CreateUnit(p,'hspt',-3319.6,-9380.1,188.377)
set u=CreateUnit(p,'hspt',-3313.9,-9293.6,271.634)
set u=CreateUnit(p,'hspt',-3312.2,-9214.1,13.173)
set u=CreateUnit(p,'hspt',-3314.4,-9127.4,250.946)
set u=CreateUnit(p,'hspt',-3302.5,-8951.6,210.647)
set u=CreateUnit(p,'hspt',-3299.9,-8835.7,253.067)
set u=CreateUnit(p,'hspt',-3301.5,-8709.8,198.375)
set u=CreateUnit(p,'hspt',-3308.,-8602.,76.797)
set u=CreateUnit(p,'hspt',-3305.4,-8466.5,328.666)
set u=CreateUnit(p,'hspt',-3317.,-8362.7,41.332)
set u=CreateUnit(p,'hspt',-3318.,-8158.4,130.576)
set u=CreateUnit(p,'hspt',-3335.2,-8044.7,14.777)
set u=CreateUnit(p,'hspt',-3430.7,-8044.7,96.441)
set u=CreateUnit(p,'hspt',-3511.7,-8051.5,102.714)
set u=CreateUnit(p,'hspt',-3611.4,-8071.8,49.022)
set u=CreateUnit(p,'hspt',-3585.,-8613.5,83.114)
set u=CreateUnit(p,'hspt',-3581.3,-8776.1,265.778)
set u=CreateUnit(p,'hspt',-3583.5,-8867.7,253.825)
set u=CreateUnit(p,'hspt',-3589.3,-8972.2,196.123)
set u=CreateUnit(p,'hspt',-3594.5,-9093.1,58.889)
set u=CreateUnit(p,'hspt',-3631.9,-9195.,228.336)
set u=CreateUnit(p,'hspt',-3762.7,-9218.8,39.926)
set u=CreateUnit(p,'hspt',-3928.8,-9185.5,262.021)
set u=CreateUnit(p,'hspt',-3999.2,-9117.7,238.861)
set u=CreateUnit(p,'hspt',-3975.5,-9018.1,182.653)
set u=CreateUnit(p,'hspt',-3986.4,-8894.2,238.213)
set u=CreateUnit(p,'hspt',-3976.,-8664.8,314.175)
set u=CreateUnit(p,'hspt',-3976.,-8502.4,85.202)
set u=CreateUnit(p,'hspt',-3994.4,-8274.8,106.186)
set u=CreateUnit(p,'hspt',-3991.3,-7955.3,86.037)
set u=CreateUnit(p,'hspt',-3980.8,-7769.6,331.797)
set u=CreateUnit(p,'hspt',-4010.2,-7642.8,156.329)
set u=CreateUnit(p,'hspt',-4116.1,-7642.8,212.328)
set u=CreateUnit(p,'hspt',-3768.2,-7642.8,314.284)
set u=CreateUnit(p,'hspt',-3863.1,-7658.,145.441)
set u=CreateUnit(p,'hspt',-3636.8,-7650.4,122.611)
set u=CreateUnit(p,'hspt',-3295.7,-7167.1,12.448)
set u=CreateUnit(p,'hspt',-3295.3,-7432.4,105.56)
set u=CreateUnit(p,'hspt',-3305.,-7688.,141.563)
set u=CreateUnit(p,'hspt',-3313.5,-7892.1,67.227)
set u=CreateUnit(p,'hspt',-3838.6,-7550.7,302.935)
set u=CreateUnit(p,'hspt',-3835.7,-7408.3,217.547)
set Fv=CreateUnit(p,'hkni',2481.5,-5638.7,281.5)
set u=CreateUnit(p,'hspt',-3749.4,-7229.6,31.927)
set u=CreateUnit(p,'hspt',-4217.,-8115.2,157.164)
set u=CreateUnit(p,'hspt',-3869.5,-6362.6,31.224)
set u=CreateUnit(p,'hspt',-3803.6,-7315.9,188.432)
set u=CreateUnit(p,'hspt',-3862.8,-6473.9,34.762)
set Fx=CreateUnit(p,'hkni',1691.6,-7063.1,36.838)
set u=CreateUnit(p,'hspt',-3312.1,-6739.6,198.276)
set u=CreateUnit(p,'ugho',-2271.8,-6776.9,44.584)
set u=CreateUnit(p,'ugho',-1950.9,-7027.5,175.479)
set u=CreateUnit(p,'ugho',-2137.,-7354.6,67.238)
set u=CreateUnit(p,'ugho',-2107.1,-7550.5,184.51)
set u=CreateUnit(p,'ugho',-1759.1,-6982.6,335.148)
set u=CreateUnit(p,'ugho',-1947.3,-7133.9,61.789)
set u=CreateUnit(p,'ugho',-2111.,-7631.,145.2)
set u=CreateUnit(p,'ugho',-2347.1,-7770.7,95.99)
set u=CreateUnit(p,'ugho',-1914.7,-6817.7,34.103)
set u=CreateUnit(p,'hspt',-5329.7,-6660.2,238.092)
set u=CreateUnit(p,'hspt',-5089.1,-6655.4,148.847)
set u=CreateUnit(p,'hspt',-4926.,-6635.9,101.627)
set u=CreateUnit(p,'hspt',-4761.1,-6635.9,37.849)
set u=CreateUnit(p,'hspt',-4289.1,-7664.4,341.378)
set u=CreateUnit(p,'hspt',-5391.,-6633.4,219.7)
set u=CreateUnit(p,'hspt',-5693.4,-7003.9,336.565)
set u=CreateUnit(p,'hspt',-4677.8,-7899.2,126.621)
set FX=CreateUnit(p,'hkni',1255.8,-7076.8,169.623)
set u=CreateUnit(p,'hspt',-4848.9,-8240.7,209.702)
set u=CreateUnit(p,'hspt',-4863.3,-8028.5,71.6)
set u=CreateUnit(p,'hspt',-4810.8,-8873.6,103.78)
set u=CreateUnit(p,'ugho',-2346.,-7027.1,81.016)
set u=CreateUnit(p,'ugho',-2224.6,-7266.8,260.527)
set u=CreateUnit(p,'ugho',-2274.3,-7070.3,222.425)
set u=CreateUnit(p,'ugho',-2083.2,-7113.,180.906)
set u=CreateUnit(p,'ugho',-2120.9,-6754.7,208.615)
set u=CreateUnit(p,'ugho',-2110.5,-6919.5,196.222)
set Fu=CreateUnit(p,'hkni',2475.8,-8770.4,258.538)
set u=CreateUnit(p,'hspt',-4550.2,-8680.6,292.366)
set u=CreateUnit(p,'hspt',-3583.9,-7424.7,100.121)
set u=CreateUnit(p,'hspt',-4782.6,-8479.,179.39)
set u=CreateUnit(p,'hspt',-3961.4,-8110.9,218.03)
set u=CreateUnit(p,'hspt',-4574.2,-8296.3,34.553)
set u=CreateUnit(p,'hspt',-3319.7,-7320.1,203.154)
set u=CreateUnit(p,'hspt',-3122.4,-6945.2,59.251)
set u=CreateUnit(p,'hspt',-3211.6,-6873.4,281.819)
set u=CreateUnit(p,'hspt',-3787.6,-9482.2,220.689)
set u=CreateUnit(p,'hspt',-3742.,-6599.5,173.183)
set u=CreateUnit(p,'hspt',-3264.7,-6802.4,108.328)
set u=CreateUnit(p,'hspt',-3805.4,-6522.9,258.648)
set u=CreateUnit(p,'hspt',-3312.,-7565.7,284.016)
set u=CreateUnit(p,'hspt',-4851.8,-7358.3,194.046)
set u=CreateUnit(p,'hspt',-4856.8,-7255.8,236.235)
set u=CreateUnit(p,'hspt',-3670.2,-6710.6,191.091)
set u=CreateUnit(p,'hspt',-3690.9,-6817.1,173.073)
set u=CreateUnit(p,'hspt',-3699.2,-6931.8,138.025)
set u=CreateUnit(p,'hspt',-3690.1,-7017.7,28.851)
set u=CreateUnit(p,'hspt',-3656.3,-7157.9,20.303)
set u=CreateUnit(p,'hspt',-3600.2,-7208.2,54.032)
set u=CreateUnit(p,'hspt',-3526.3,-7154.9,133.971)
set u=CreateUnit(p,'hspt',-3469.9,-7049.7,107.801)
set u=CreateUnit(p,'hspt',-3474.2,-6971.9,245.629)
set u=CreateUnit(p,'hspt',-6531.4,-8209.8,311.67)
set u=CreateUnit(p,'hspt',-6342.8,-8087.3,17.59)
set u=CreateUnit(p,'hspt',-5728.5,-7967.6,96.254)
set u=CreateUnit(p,'hspt',-6415.3,-7544.9,221.722)
set u=CreateUnit(p,'hspt',-6223.2,-7561.8,11.129)
set u=CreateUnit(p,'hspt',-5971.5,-7556.2,338.752)
set u=CreateUnit(p,'hspt',-5474.5,-7556.2,269.371)
set u=CreateUnit(p,'hspt',-5248.4,-9485.2,262.186)
set u=CreateUnit(p,'hspt',-5246.3,-9296.7,193.398)
set u=CreateUnit(p,'hspt',-5087.1,-7761.2,77.862)
set u=CreateUnit(p,'hspt',-5166.5,-7021.,317.295)
set u=CreateUnit(p,'hspt',-5383.6,-7095.8,72.765)
set u=CreateUnit(p,'hspt',-4856.8,-7443.,161.306)
set u=CreateUnit(p,'hspt',-4719.6,-7674.9,320.217)
set u=CreateUnit(p,'hspt',-4436.5,-7021.9,347.662)
set u=CreateUnit(p,'hspt',-4450.4,-7214.9,330.984)
set u=CreateUnit(p,'hspt',-4458.1,-7403.1,69.282)
set u=CreateUnit(p,'hspt',-4473.3,-7575.4,316.251)
set u=CreateUnit(p,'hspt',-4451.2,-6720.1,176.27)
set u=CreateUnit(p,'hspt',-5250.9,-6658.9,326.645)
set F6=CreateUnit(p,'hkni',2484.1,-7846.4,153.099)
set F7=CreateUnit(p,'hkni',2303.3,-8750.2,71.194)
set Fo=CreateUnit(p,'h01H',-7882.3,5673.8,292.63)
set Fz=CreateUnit(p,'ushd',8214.2,3187.7,76.819)
set FR=CreateUnit(p,'hkni',1477.1,-5633.2,127.204)
set FO=CreateUnit(p,'hkni',1205.,-9354.2,231.654)
set Fq=CreateUnit(p,'Obla',4664.8,-9296.9,130.697)
set u=CreateUnit(p,'uaco',-70.7,8902.3,353.957)
set u=CreateUnit(p,'u00E',-68.6,8734.,305.913)
set FT=CreateUnit(p,'uabo',-8761.9,8614.5,28.466)
set FV=CreateUnit(p,'hkni',2299.9,-6875.8,139.069)
set Fw=CreateUnit(p,'hkni',2310.3,-6899.2,33.872)
set Fy=CreateUnit(p,'hkni',2132.,-8822.6,203.33)
call ConfigureNeutralVictim()
set filterIssueHauntOrderAtLocBJ=Filter(function IssueHauntOrderAtLocBJFilter)
set filterEnumDestructablesInCircleBJ=Filter(function GH)
set filterGetUnitsInRectOfPlayer=Filter(function GetUnitsInRectOfPlayerFilter)
set filterGetUnitsOfTypeIdAll=Filter(function GetUnitsOfTypeIdAllFilter)
set filterGetUnitsOfPlayerAndTypeId=Filter(function GetUnitsOfPlayerAndTypeIdFilter)
set filterMeleeTrainedUnitIsHeroBJ=Filter(function MeleeTrainedUnitIsHeroBJFilter)
set filterLivingPlayerUnitsOfTypeId=Filter(function G2)
set gZ=0
loop
exitwhen gZ==16
set bj_FORCE_PLAYER[gZ]=CreateForce()
call ForceAddPlayer(bj_FORCE_PLAYER[gZ],Player(gZ))
set gZ=gZ+1
endloop
set bj_FORCE_ALL_PLAYERS=CreateForce()
call ForceEnumPlayers(bj_FORCE_ALL_PLAYERS,null)
set bj_cineModePriorSpeed=GetGameSpeed()
set bj_cineModePriorFogSetting=IsFogEnabled()
set bj_cineModePriorMaskSetting=IsFogMaskEnabled()
set gZ=0
loop
exitwhen gZ>=bj_MAX_QUEUED_TRIGGERS
set bj_queuedExecTriggers[gZ]=null
set bj_queuedExecUseConds[gZ]=false
set gZ=gZ+1
endloop
set bj_isSinglePlayer=false
set Pe=0
set gZ=0
loop
exitwhen gZ>=12
if(GetPlayerController(Player(gZ))==MAP_CONTROL_USER and GetPlayerSlotState(Player(gZ))==PLAYER_SLOT_STATE_PLAYING)then
set Pe=Pe+1
endif
set gZ=gZ+1
endloop
set bj_isSinglePlayer=(Pe==1)
set bj_rescueSound=CreateSoundFromLabel("Rescue",false,false,false,10000,10000)
set bj_questDiscoveredSound=CreateSoundFromLabel("QuestNew",false,false,false,10000,10000)
set bj_questUpdatedSound=CreateSoundFromLabel("QuestUpdate",false,false,false,10000,10000)
set bj_questCompletedSound=CreateSoundFromLabel("QuestCompleted",false,false,false,10000,10000)
set bj_questFailedSound=CreateSoundFromLabel("QuestFailed",false,false,false,10000,10000)
set bj_questHintSound=CreateSoundFromLabel("Hint",false,false,false,10000,10000)
set bj_questSecretSound=CreateSoundFromLabel("SecretFound",false,false,false,10000,10000)
set bj_questItemAcquiredSound=CreateSoundFromLabel("ItemReward",false,false,false,10000,10000)
set bj_questWarningSound=CreateSoundFromLabel("Warning",false,false,false,10000,10000)
set bj_victoryDialogSound=CreateSoundFromLabel("QuestCompleted",false,false,false,10000,10000)
set bj_defeatDialogSound=CreateSoundFromLabel("QuestFailed",false,false,false,10000,10000)
call Gb()
set v=VersionGet()
if(v==VERSION_REIGN_OF_CHAOS)then
set bj_MELEE_MAX_TWINKED_HEROES=bj_MELEE_MAX_TWINKED_HEROES_V0
else
set bj_MELEE_MAX_TWINKED_HEROES=bj_MELEE_MAX_TWINKED_HEROES_V1
endif
call InitQueuedTriggers()
call hf()
call InitDNCSounds()
call InitMapRects()
call InitSummonableCaps()
set hJ=0
loop
set bj_stockAllowedPermanent[hJ]=false
set bj_stockAllowedCharged[hJ]=false
set bj_stockAllowedArtifact[hJ]=false
set hJ=hJ+1
exitwhen hJ>10
endloop
call SetAllItemTypeSlots(11)
call SetAllUnitTypeSlots(11)
set bj_stockUpdateTimer=CreateTimer()
call TimerStart(bj_stockUpdateTimer,bj_STOCK_RESTOCK_INITIAL_DELAY,false,function hm)
set bj_stockItemPurchased=CreateTrigger()
call TriggerRegisterPlayerUnitEvent(bj_stockItemPurchased,Player(15),EVENT_PLAYER_UNIT_SELL_ITEM,null)
call TriggerAddAction(bj_stockItemPurchased,function RemovePurchasedItem)
call DetectGameStarted()
set i=0
set i=0
loop
exitwhen(i>19)
set G[i]=0
set H[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>11)
set K[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>12)
set m[i]=CreateTimer()
set i=i+1
endloop
set i=0
loop
exitwhen(i>2)
set q[i]=""
set V[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>4)
set s[i]=0
set i=i+1
endloop
call TriggerAddAction(cX,function hM)
call TriggerRegisterAnyUnitEventBJ(cy,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddAction(cy,function hN)
call TriggerRegisterAnyUnitEventBJ(cY,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddAction(cY,function hO)
call TriggerAddAction(cz,function hr)
call TriggerAddAction(cZ,function hS)
call TriggerAddAction(c0,function hU)
call TriggerAddAction(c1,function hW)
call TriggerAddAction(c2,function hY)
call TriggerAddAction(c3,function h1)
call TriggerAddAction(c4,function h5)
call TriggerAddAction(c5,function h9)
call TriggerAddAction(c6,function HA)
call TriggerAddAction(c7,function HR)
call TriggerRegisterPlayerEventEndCinematic(c8,Player(0))
call TriggerRegisterPlayerEventEndCinematic(c8,Player(1))
call TriggerRegisterPlayerEventEndCinematic(c8,Player(2))
call TriggerRegisterPlayerEventEndCinematic(c8,Player(3))
call TriggerRegisterPlayerEventEndCinematic(c8,Player(4))
call TriggerRegisterPlayerEventEndCinematic(c8,Player(5))
call TriggerRegisterPlayerEventEndCinematic(c8,Player(6))
call TriggerRegisterPlayerEventEndCinematic(c8,Player(7))
call TriggerRegisterPlayerEventEndCinematic(c8,Player(8))
call TriggerRegisterPlayerEventEndCinematic(c8,Player(9))
call TriggerAddAction(c8,function Hs)
call TriggerRegisterDeathEvent(c9,gM)
call TriggerAddAction(c9,function HS)
call TriggerRegisterDeathEvent(Ca,gP)
call TriggerAddAction(Ca,function Ht)
call TriggerRegisterUnitEvent(CA,Fz,EVENT_UNIT_DEATH)
call TriggerAddAction(CA,function Hu)
call TriggerRegisterUnitEvent(Cb,Fz,EVENT_UNIT_ATTACKED)
call TriggerAddAction(Cb,function HU)
call TriggerAddAction(CB,function HZ)
call TriggerRegisterTimerEventSingle(Cc,13.1)
call TriggerAddAction(Cc,function H0)
call TriggerRegisterDeathEvent(CC,gE)
call TriggerAddAction(CC,function ic)
call TriggerRegisterTimerEventPeriodic(Cd,2.)
call TriggerAddAction(Cd,function iC)
call TriggerRegisterTimerEventPeriodic(CD,6.)
call TriggerAddAction(CD,function id)
call TriggerRegisterTimerEventPeriodic(Ce,3.)
call TriggerAddAction(Ce,function iD)
call TriggerRegisterUnitInRangeSimple(CE,120.,Eo)
call TriggerRegisterUnitInRangeSimple(CE,120.,EO)
call TriggerRegisterUnitInRangeSimple(CE,120.,Ep)
call TriggerRegisterUnitInRangeSimple(CE,120.,EP)
call TriggerRegisterUnitInRangeSimple(CE,120.,Er)
call TriggerRegisterUnitInRangeSimple(CE,120.,EL)
call TriggerRegisterUnitInRangeSimple(CE,120.,EI)
call TriggerRegisterUnitInRangeSimple(CE,120.,Eu)
call TriggerRegisterUnitInRangeSimple(CE,120.,fa)
call TriggerRegisterUnitInRangeSimple(CE,120.,Ev)
call TriggerRegisterUnitInRangeSimple(CE,120.,fw)
call TriggerRegisterUnitInRangeSimple(CE,120.,fX)
call TriggerRegisterUnitInRangeSimple(CE,120.,Fa)
call TriggerRegisterUnitInRangeSimple(CE,120.,Fh)
call TriggerRegisterUnitInRangeSimple(CE,120.,FH)
call TriggerRegisterUnitInRangeSimple(CE,120.,FK)
call TriggerRegisterUnitInRangeSimple(CE,120.,FM)
call TriggerRegisterUnitInRangeSimple(CE,120.,FF)
call TriggerRegisterUnitInRangeSimple(CE,120.,Fn)
call TriggerRegisterUnitInRangeSimple(CE,120.,Fs)
call TriggerRegisterUnitInRangeSimple(CE,120.,FS)
call TriggerRegisterUnitInRangeSimple(CE,120.,Fp)
call TriggerRegisterUnitInRangeSimple(CE,120.,FQ)
call TriggerRegisterUnitInRangeSimple(CE,120.,Fr)
call TriggerRegisterUnitInRangeSimple(CE,120.,Ft)
call TriggerRegisterUnitInRangeSimple(CE,120.,F0)
call TriggerRegisterUnitInRangeSimple(CE,120.,F3)
call TriggerRegisterUnitInRangeSimple(CE,120.,FY)
call TriggerRegisterUnitInRangeSimple(CE,120.,F8)
call TriggerRegisterUnitInRangeSimple(CE,120.,F9)
call TriggerAddCondition(CE,Condition(function ie))
call TriggerAddAction(CE,function ii)
call TriggerAddAction(Cf,function iN)
call TriggerAddAction(CF,function ip)
call gW(Cg,ar)
call TriggerAddAction(Cg,function iR)
call gW(CG,ar)
call TriggerAddAction(CG,function is)
call DisableTrigger(Ch)
call TriggerRegisterTimerEventPeriodic(Ch,10.)
call TriggerAddAction(Ch,function iS)
call DisableTrigger(CH)
call TriggerRegisterAnyUnitEventBJ(CH,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(CH,Condition(function it))
call TriggerAddAction(CH,function iT)
call DisableTrigger(Ci)
call TriggerRegisterTimerExpireEvent(Ci,B)
call TriggerAddAction(Ci,function iu)
call DisableTrigger(CI)
call TriggerRegisterPlayerChatEvent(CI,Player(0),"-skip intro",true)
call TriggerAddAction(CI,function iV)
call gW(Cj,bW)
call TriggerAddCondition(Cj,Condition(function iw))
call TriggerAddAction(Cj,function iy)
call DisableTrigger(CJ)
call TriggerAddCondition(CJ,Condition(function iY))
call TriggerAddAction(CJ,function iZ)
call DisableTrigger(Ck)
call TriggerAddCondition(Ck,Condition(function i0))
call TriggerAddAction(Ck,function i1)
call DisableTrigger(CK)
call gW(CK,BW)
call TriggerAddAction(CK,function i4)
call DisableTrigger(Cl)
call TriggerRegisterDeathEvent(Cl,gs)
call TriggerRegisterDeathEvent(Cl,gS)
call TriggerAddAction(Cl,function i5)
call gW(CL,BV)
call TriggerAddAction(CL,function i7)
call gW(Cm,Bw)
call TriggerAddAction(Cm,function i8)
call gW(CM,BX)
call TriggerAddAction(CM,function i9)
call DisableTrigger(Cn)
call gW(Cn,BW)
call TriggerAddAction(Cn,function IA)
call TriggerAddAction(CN,function Id)
call DisableTrigger(Co)
call TriggerRegisterPlayerUnitEventSimple(Co,Player(0),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(Co,Player(1),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(Co,Player(2),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(Co,Player(3),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(Co,Player(4),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(Co,Player(5),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(Co,Player(6),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(Co,Player(7),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(Co,Player(8),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(Co,Player(9),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddAction(Co,function Ie)
call gW(CO,Av)
call TriggerAddCondition(CO,Condition(function IE))
call TriggerAddAction(CO,function If)
call DisableTrigger(Cp)
call TriggerRegisterAnyUnitEventBJ(Cp,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(Cp,Condition(function Ih))
call TriggerAddAction(Cp,function IH)
call DisableTrigger(CP)
call TriggerRegisterTimerExpireEvent(CP,B)
call TriggerAddAction(CP,function Ii)
call TriggerAddAction(Cq,function IJ)
call DisableTrigger(CQ)
call TriggerRegisterTimerEventPeriodic(CQ,1.6)
call TriggerAddAction(CQ,function Ik)
call DisableTrigger(Cr)
call TriggerRegisterTimerExpireEvent(Cr,B)
call TriggerAddAction(Cr,function IL)
call DisableTrigger(CR)
call TriggerRegisterTimerExpireEvent(CR,B)
call TriggerAddAction(CR,function Im)
call DisableTrigger(Cs)
call TriggerRegisterTimerExpireEvent(Cs,B)
call TriggerAddAction(Cs,function IM)
call DisableTrigger(CS)
call TriggerRegisterTimerExpireEvent(CS,B)
call TriggerAddAction(CS,function In)
call DisableTrigger(Ct)
call TriggerRegisterTimerExpireEvent(Ct,B)
call TriggerAddAction(Ct,function IN)
call DisableTrigger(CT)
call gW(CT,aM)
call TriggerAddCondition(CT,Condition(function Io))
call TriggerAddAction(CT,function IO)
call DisableTrigger(Cu)
call TriggerRegisterAnyUnitEventBJ(Cu,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(Cu,Condition(function IQ))
call TriggerAddAction(Cu,function Ir)
call TriggerAddAction(CU,function It)
call DisableTrigger(Cv)
call TriggerRegisterPlayerUnitEventSimple(Cv,Player(11),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(Cv,Condition(function Iv))
call TriggerAddAction(Cv,function IW)
call DisableTrigger(CV)
call TriggerRegisterPlayerUnitEventSimple(CV,Player(11),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(CV,Condition(function IY))
call TriggerAddAction(CV,function I0)
call DisableTrigger(Cw)
call TriggerRegisterPlayerUnitEventSimple(Cw,Player(11),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(Cw,Condition(function I4))
call TriggerAddAction(Cw,function I7)
call DisableTrigger(CW)
call TriggerRegisterPlayerUnitEventSimple(CW,Player(11),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(CW,Condition(function jA))
call TriggerAddAction(CW,function jc)
call DisableTrigger(Cx)
call TriggerRegisterTimerExpireEvent(Cx,B)
call TriggerAddAction(Cx,function jd)
call DisableTrigger(CX)
call TriggerRegisterTimerExpireEvent(CX,B)
call TriggerAddAction(CX,function je)
call TriggerRegisterAnyUnitEventBJ(Cy,EVENT_PLAYER_UNIT_CONSTRUCT_START)
call TriggerRegisterAnyUnitEventBJ(Cy,EVENT_PLAYER_UNIT_UPGRADE_START)
call TriggerAddAction(Cy,function jE)
call TriggerRegisterAnyUnitEventBJ(CY,EVENT_PLAYER_UNIT_CONSTRUCT_FINISH)
call TriggerRegisterAnyUnitEventBJ(CY,EVENT_PLAYER_UNIT_CONSTRUCT_CANCEL)
call TriggerRegisterAnyUnitEventBJ(CY,EVENT_PLAYER_UNIT_UPGRADE_FINISH)
call TriggerRegisterAnyUnitEventBJ(CY,EVENT_PLAYER_UNIT_UPGRADE_CANCEL)
call TriggerAddAction(CY,function jf)
call gW(Cz,bA)
call TriggerAddCondition(Cz,Condition(function jF))
call TriggerAddAction(Cz,function jg)
call gW(CZ,bb)
call TriggerAddCondition(CZ,Condition(function jG))
call TriggerAddAction(CZ,function jh)
call gW(C0,bB)
call TriggerAddCondition(C0,Condition(function jH))
call TriggerAddAction(C0,function ji)
call gW(C1,bd)
call TriggerAddCondition(C1,Condition(function jI))
call TriggerAddAction(C1,function jj)
call gW(C2,bD)
call TriggerAddCondition(C2,Condition(function jJ))
call TriggerAddAction(C2,function jk)
call gW(C3,be)
call TriggerAddCondition(C3,Condition(function jK))
call TriggerAddAction(C3,function jl)
call gW(C4,A6)
call TriggerAddCondition(C4,Condition(function jL))
call TriggerAddAction(C4,function jm)
call gW(C5,A7)
call TriggerAddCondition(C5,Condition(function jM))
call TriggerAddAction(C5,function jn)
call gW(C6,A8)
call TriggerAddCondition(C6,Condition(function jN))
call TriggerAddAction(C6,function jo)
call gW(C7,A9)
call TriggerAddCondition(C7,Condition(function jO))
call TriggerAddAction(C7,function jp)
call gW(C8,ba)
call TriggerAddCondition(C8,Condition(function jP))
call TriggerAddAction(C8,function jq)
call gW(C9,bf)
call TriggerAddCondition(C9,Condition(function jQ))
call TriggerAddAction(C9,function jr)
call gW(da,bf)
call TriggerAddCondition(da,Condition(function jR))
call TriggerAddAction(da,function js)
call DisableTrigger(dA)
call TriggerRegisterPlayerUnitEventSimple(dA,Player(11),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(dA,Condition(function ju))
call TriggerAddAction(dA,function jU)
call DisableTrigger(db)
call gW(db,bE)
call TriggerAddCondition(db,Condition(function jv))
call TriggerAddAction(db,function jy)
call TriggerRegisterUnitEvent(dB,Ej,EVENT_UNIT_DEATH)
call TriggerAddAction(dB,function jY)
call TriggerAddAction(dc,function j3)
call DisableTrigger(dC)
call TriggerRegisterPlayerUnitEventSimple(dC,Player(0),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(dC,Player(1),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(dC,Player(2),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(dC,Player(3),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(dC,Player(4),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(dC,Player(5),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(dC,Player(6),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(dC,Player(7),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(dC,Player(8),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(dC,Player(9),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(dC,Condition(function j4))
call TriggerAddAction(dC,function j5)
call DisableTrigger(dd)
call gW(dd,ao)
call TriggerAddCondition(dd,Condition(function j6))
call TriggerAddAction(dd,function j9)
call DisableTrigger(dD)
call TriggerRegisterAnyUnitEventBJ(dD,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(dD,Condition(function JB))
call TriggerAddAction(dD,function Jc)
call TriggerAddAction(de,function Je)
call DisableTrigger(dE)
call TriggerRegisterUnitInRangeSimple(dE,10.,EQ)
call TriggerAddCondition(dE,Condition(function JE))
call TriggerAddAction(dE,function Ji)
call DisableTrigger(df)
call TriggerRegisterUnitInRangeSimple(df,200.,EQ)
call TriggerAddCondition(df,Condition(function JI))
call TriggerAddAction(df,function Jj)
call DisableTrigger(dF)
call TriggerRegisterAnyUnitEventBJ(dF,EVENT_PLAYER_UNIT_ISSUED_ORDER)
call TriggerAddCondition(dF,Condition(function JJ))
call TriggerAddAction(dF,function JM)
call DisableTrigger(dg)
call TriggerRegisterTimerExpireEvent(dg,m[1])
call TriggerAddAction(dg,function Jn)
call DisableTrigger(dG)
call TriggerRegisterTimerExpireEvent(dG,m[2])
call TriggerAddAction(dG,function JN)
call DisableTrigger(dh)
call TriggerRegisterTimerExpireEvent(dh,m[3])
call TriggerAddAction(dh,function Jo)
call DisableTrigger(dH)
call TriggerRegisterTimerExpireEvent(dH,m[4])
call TriggerAddAction(dH,function JO)
call DisableTrigger(di)
call TriggerRegisterTimerExpireEvent(di,m[5])
call TriggerAddAction(di,function Jp)
call DisableTrigger(dI)
call TriggerRegisterTimerExpireEvent(dI,m[6])
call TriggerAddAction(dI,function JP)
call DisableTrigger(dj)
call TriggerRegisterTimerExpireEvent(dj,m[7])
call TriggerAddAction(dj,function Jq)
call DisableTrigger(dJ)
call TriggerRegisterTimerExpireEvent(dJ,m[8])
call TriggerAddAction(dJ,function JQ)
call DisableTrigger(dk)
call TriggerRegisterTimerExpireEvent(dk,m[9])
call TriggerAddAction(dk,function Jr)
call DisableTrigger(dK)
call TriggerRegisterTimerExpireEvent(dK,m[10])
call TriggerAddAction(dK,function JR)
call DisableTrigger(dl)
call gW(dl,Aa)
call TriggerAddCondition(dl,Condition(function Js))
call TriggerAddAction(dl,function JS)
call DisableTrigger(dL)
call TriggerRegisterAnyUnitEventBJ(dL,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(dL,Condition(function JU))
call TriggerAddAction(dL,function Jv)
call TriggerAddAction(dm,function Jy)
call DisableTrigger(dM)
call TriggerRegisterUnitInRangeSimple(dM,30.,ER)
call TriggerRegisterUnitInRangeSimple(dM,30.,Es)
call TriggerRegisterUnitInRangeSimple(dM,30.,ES)
call TriggerRegisterUnitInRangeSimple(dM,30.,EJ)
call TriggerRegisterUnitInRangeSimple(dM,30.,EM)
call TriggerRegisterUnitInRangeSimple(dM,30.,Em)
call TriggerRegisterUnitInRangeSimple(dM,30.,Et)
call TriggerRegisterUnitInRangeSimple(dM,30.,En)
call TriggerRegisterUnitInRangeSimple(dM,30.,EN)
call TriggerRegisterUnitInRangeSimple(dM,30.,EK)
call TriggerAddCondition(dM,Condition(function JY))
call TriggerAddAction(dM,function J1)
call DisableTrigger(dn)
call TriggerRegisterTimerExpireEvent(dn,B)
call TriggerAddAction(dn,function J4)
call DisableTrigger(dN)
call TriggerRegisterAnyUnitEventBJ(dN,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddAction(dN,function kb)
call TriggerAddAction(do,function kf)
call TriggerAddAction(dO,function kj)
call DisableTrigger(dp)
call TriggerRegisterTimerEventPeriodic(dp,2.)
call TriggerAddAction(dp,function kJ)
call TriggerAddAction(dP,function kl)
call TriggerAddAction(dq,function KM)
call DisableTrigger(dQ)
call TriggerRegisterPlayerChatEvent(dQ,Player(0),"",false)
call TriggerRegisterPlayerChatEvent(dQ,Player(1),"",false)
call TriggerRegisterPlayerChatEvent(dQ,Player(2),"",false)
call TriggerRegisterPlayerChatEvent(dQ,Player(3),"",false)
call TriggerRegisterPlayerChatEvent(dQ,Player(4),"",false)
call TriggerRegisterPlayerChatEvent(dQ,Player(5),"",false)
call TriggerRegisterPlayerChatEvent(dQ,Player(6),"",false)
call TriggerRegisterPlayerChatEvent(dQ,Player(7),"",false)
call TriggerRegisterPlayerChatEvent(dQ,Player(8),"",false)
call TriggerRegisterPlayerChatEvent(dQ,Player(9),"",false)
call TriggerAddCondition(dQ,Condition(function Kn))
call TriggerAddAction(dQ,function KQ)
call DisableTrigger(dr)
call TriggerRegisterTimerExpireEvent(dr,m[1])
call TriggerAddAction(dr,function Kr)
call DisableTrigger(dR)
call TriggerRegisterUnitEvent(dR,ET,EVENT_UNIT_DAMAGED)
call TriggerAddAction(dR,function KR)
call TriggerAddAction(ds,function KS)
call DisableTrigger(dS)
call gW(dS,Af)
call TriggerAddCondition(dS,Condition(function Kt))
call TriggerAddAction(dS,function KW)
call DisableTrigger(dt)
call TriggerRegisterTimerExpireEvent(dt,B)
call TriggerAddAction(dt,function lg)
call TriggerAddAction(dT,function li)
call DisableTrigger(du)
call TriggerRegisterTimerEventPeriodic(du,1.)
call TriggerAddAction(du,function lI)
call DisableTrigger(dU)
call TriggerRegisterPlayerUnitEventSimple(dU,Player(11),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddAction(dU,function lL)
call TriggerAddCondition(dv,Condition(function lN))
call TriggerAddAction(dv,function lo)
call DisableTrigger(dV)
call gW(dV,AK)
call TriggerAddCondition(dV,Condition(function lO))
call TriggerAddAction(dV,function lP)
call DisableTrigger(dw)
call TriggerRegisterAnyUnitEventBJ(dw,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(dw,Condition(function lR))
call TriggerAddAction(dw,function ls)
call TriggerAddAction(dW,function lt)
call TriggerAddAction(dx,function lV)
call DisableTrigger(dX)
call gW(dX,aU)
call TriggerAddCondition(dX,Condition(function lw))
call TriggerAddAction(dX,function lX)
call DisableTrigger(dy)
call TriggerRegisterTimerEventPeriodic(dy,.6)
call TriggerAddCondition(dy,Condition(function ly))
call TriggerAddAction(dy,function lz)
call DisableTrigger(dY)
call TriggerRegisterPlayerUnitEventSimple(dY,Player(11),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddAction(dY,function l5)
call TriggerAddAction(dz,function l8)
call DisableTrigger(dZ)
call TriggerRegisterTimerEventPeriodic(dZ,.89)
call TriggerAddAction(dZ,function l9)
call DisableTrigger(d0)
call TriggerRegisterTimerEventPeriodic(d0,1.36)
call TriggerAddAction(d0,function La)
call DisableTrigger(d1)
call TriggerRegisterTimerEventPeriodic(d1,1.63)
call TriggerAddAction(d1,function LA)
call DisableTrigger(d2)
call TriggerRegisterTimerEventPeriodic(d2,1.91)
call TriggerAddAction(d2,function Lb)
call DisableTrigger(d3)
call TriggerRegisterTimerExpireEvent(d3,B)
call TriggerAddAction(d3,function LB)
call DisableTrigger(d4)
call gW(d4,av)
call TriggerAddCondition(d4,Condition(function Lc))
call TriggerAddAction(d4,function LD)
call TriggerRegisterUnitEvent(d5,EU,EVENT_UNIT_DEATH)
call TriggerAddAction(d5,function Le)
call TriggerAddAction(d6,function LI)
call DisableTrigger(d7)
call TriggerRegisterUnitInRangeSimple(d7,80.,EV)
call TriggerRegisterUnitInRangeSimple(d7,80.,ff)
call TriggerRegisterUnitInRangeSimple(d7,80.,EY)
call TriggerRegisterUnitInRangeSimple(d7,80.,Ez)
call TriggerRegisterUnitInRangeSimple(d7,80.,EZ)
call TriggerRegisterUnitInRangeSimple(d7,80.,E1)
call TriggerRegisterUnitInRangeSimple(d7,80.,fl)
call TriggerRegisterUnitInRangeSimple(d7,80.,fF)
call TriggerRegisterUnitInRangeSimple(d7,80.,E6)
call TriggerRegisterUnitInRangeSimple(d7,80.,E2)
call TriggerRegisterUnitInRangeSimple(d7,80.,E4)
call TriggerRegisterUnitInRangeSimple(d7,80.,E7)
call TriggerRegisterUnitInRangeSimple(d7,80.,E9)
call TriggerRegisterUnitInRangeSimple(d7,80.,fB)
call TriggerRegisterUnitInRangeSimple(d7,80.,fc)
call TriggerRegisterUnitInRangeSimple(d7,80.,fC)
call TriggerRegisterUnitInRangeSimple(d7,80.,fd)
call TriggerRegisterUnitInRangeSimple(d7,80.,fD)
call TriggerRegisterUnitInRangeSimple(d7,80.,fe)
call TriggerRegisterUnitInRangeSimple(d7,80.,fE)
call TriggerRegisterUnitInRangeSimple(d7,110.,Ew)
call TriggerRegisterUnitInRangeSimple(d7,110.,EW)
call TriggerRegisterUnitInRangeSimple(d7,110.,Ex)
call TriggerRegisterUnitInRangeSimple(d7,110.,Ey)
call TriggerRegisterUnitInRangeSimple(d7,110.,EX)
call TriggerRegisterUnitInRangeSimple(d7,110.,f2)
call TriggerRegisterUnitInRangeSimple(d7,110.,f6)
call TriggerRegisterUnitInRangeSimple(d7,110.,fb)
call TriggerRegisterUnitInRangeSimple(d7,110.,fu)
call TriggerRegisterUnitInRangeSimple(d7,110.,E8)
call TriggerRegisterUnitInRangeSimple(d7,110.,f4)
call TriggerAddCondition(d7,Condition(function Lj))
call TriggerAddAction(d7,function LJ)
call DisableTrigger(d8)
call TriggerRegisterTimerEventPeriodic(d8,1.)
call TriggerAddAction(d8,function Lm)
call gW(d9,aH)
call TriggerAddCondition(d9,Condition(function LM))
call TriggerAddAction(d9,function Lp)
call gW(Da,ai)
call TriggerAddCondition(Da,Condition(function LP))
call TriggerAddAction(Da,function Ls)
call gW(DA,aI)
call TriggerAddCondition(DA,Condition(function LS))
call TriggerAddAction(DA,function Lv)
call gW(Db,aj)
call TriggerAddCondition(Db,Condition(function LV))
call TriggerAddAction(Db,function Ly)
call DisableTrigger(DB)
call gW(DB,aJ)
call TriggerAddCondition(DB,Condition(function LY))
call TriggerAddAction(DB,function L2)
call DisableTrigger(Dc)
call TriggerRegisterAnyUnitEventBJ(Dc,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(Dc,Condition(function L6))
call TriggerAddAction(Dc,function L7)
call DisableTrigger(DC)
call TriggerRegisterTimerExpireEvent(DC,B)
call TriggerAddAction(DC,function L8)
call TriggerAddAction(Dd,function mB)
call DisableTrigger(DD)
call TriggerRegisterAnyUnitEventBJ(DD,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(DD,Condition(function mD))
call TriggerAddAction(DD,function mi)
call DisableTrigger(De)
call TriggerRegisterAnyUnitEventBJ(De,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(De,Condition(function mI))
call TriggerAddAction(De,function mJ)
call DisableTrigger(DE)
call TriggerRegisterAnyUnitEventBJ(DE,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(DE,Condition(function mk))
call TriggerAddAction(DE,function mK)
call DisableTrigger(Df)
call gW(Df,Ac)
call TriggerAddCondition(Df,Condition(function ml))
call TriggerAddAction(Df,function mm)
call DisableTrigger(DF)
call TriggerRegisterAnyUnitEventBJ(DF,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(DF,Condition(function mo))
call TriggerAddAction(DF,function mO)
call TriggerAddAction(Dg,function mq)
call DisableTrigger(DG)
call TriggerRegisterTimerEventPeriodic(DG,5.)
call TriggerAddAction(DG,function mQ)
call DisableTrigger(Dh)
call TriggerRegisterPlayerUnitEventSimple(Dh,Player(11),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(Dh,Condition(function mr))
call TriggerAddAction(Dh,function mt)
call DisableTrigger(DH)
call TriggerRegisterAnyUnitEventBJ(DH,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(DH,Condition(function mT))
call TriggerAddAction(DH,function mV)
call DisableTrigger(Di)
call TriggerRegisterAnyUnitEventBJ(Di,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(Di,Condition(function mX))
call TriggerAddAction(Di,function my)
call DisableTrigger(DI)
call gW(DI,bG)
call TriggerAddCondition(DI,Condition(function mY))
call TriggerAddAction(DI,function mZ)
call DisableTrigger(Dj)
call TriggerRegisterTimerExpireEvent(Dj,B)
call TriggerAddAction(Dj,function m0)
call TriggerAddAction(DJ,function m2)
call DisableTrigger(Dk)
call TriggerRegisterTimerEventPeriodic(Dk,3.)
call TriggerAddAction(Dk,function MA)
call DisableTrigger(DK)
call gW(DK,aT)
call TriggerAddCondition(DK,Condition(function Mb))
call TriggerAddAction(DK,function MB)
call DisableTrigger(Dl)
call TriggerRegisterAnyUnitEventBJ(Dl,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(Dl,Condition(function MD))
call TriggerAddAction(Dl,function Me)
call TriggerAddAction(DL,function Ml)
call DisableTrigger(Dm)
call TriggerRegisterTimerEventPeriodic(Dm,10.)
call TriggerAddAction(Dm,function Mm)
call DisableTrigger(DM)
call TriggerRegisterPlayerUnitEventSimple(DM,Player(11),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(DM,Condition(function MM))
call TriggerAddAction(DM,function MP)
call TriggerRegisterUnitEvent(Dn,FA,EVENT_UNIT_DEATH)
call TriggerAddAction(Dn,function MS)
call DisableTrigger(DN)
call gW(DN,bi)
call TriggerAddCondition(DN,Condition(function Mt))
call TriggerAddAction(DN,function MV)
call DisableTrigger(Do)
call TriggerRegisterAnyUnitEventBJ(Do,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(Do,Condition(function MX))
call TriggerAddAction(Do,function My)
call DisableTrigger(DO)
call TriggerRegisterTimerExpireEvent(DO,B)
call TriggerAddAction(DO,function Mz)
call TriggerAddAction(Dp,function M0)
call DisableTrigger(DP)
call TriggerRegisterUnitInRangeSimple(DP,60.,FE)
call TriggerRegisterUnitInRangeSimple(DP,60.,Fg)
call TriggerRegisterUnitInRangeSimple(DP,60.,Ff)
call TriggerRegisterUnitInRangeSimple(DP,60.,fW)
call TriggerRegisterUnitInRangeSimple(DP,60.,Fd)
call TriggerRegisterUnitInRangeSimple(DP,60.,FG)
call TriggerRegisterUnitInRangeSimple(DP,60.,FC)
call TriggerRegisterUnitInRangeSimple(DP,60.,FD)
call TriggerRegisterUnitInRangeSimple(DP,60.,Fb)
call TriggerRegisterUnitInRangeSimple(DP,60.,Fc)
call TriggerRegisterUnitInRangeSimple(DP,60.,FB)
call TriggerRegisterUnitInRangeSimple(DP,60.,Fe)
call TriggerAddCondition(DP,Condition(function M1))
call TriggerAddAction(DP,function M3)
call DisableTrigger(Dq)
call TriggerRegisterTimerEventPeriodic(Dq,1.2)
call TriggerAddAction(Dq,function M5)
call gW(DQ,Ah)
call gW(DQ,AH)
call TriggerAddCondition(DQ,Condition(function M6))
call TriggerAddAction(DQ,function M7)
call gW(Dr,Ai)
call gW(Dr,AI)
call TriggerAddCondition(Dr,Condition(function M8))
call TriggerAddAction(Dr,function M9)
call gW(DR,Aj)
call TriggerAddCondition(DR,Condition(function na))
call TriggerAddAction(DR,function nA)
call gW(Ds,AJ)
call TriggerAddCondition(Ds,Condition(function nb))
call TriggerAddAction(Ds,function nB)
call DisableTrigger(DS)
call TriggerRegisterPlayerUnitEventSimple(DS,Player(0),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(DS,Player(1),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(DS,Player(2),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(DS,Player(3),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(DS,Player(4),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(DS,Player(5),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(DS,Player(6),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(DS,Player(7),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(DS,Player(8),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(DS,Player(9),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(DS,Condition(function nc))
call TriggerAddAction(DS,function nC)
call DisableTrigger(Dt)
call TriggerRegisterTimerEventPeriodic(Dt,.06)
call TriggerAddAction(Dt,function nG)
call DisableTrigger(DT)
call gW(DT,Ag)
call TriggerAddCondition(DT,Condition(function nh))
call TriggerAddAction(DT,function nI)
call DisableTrigger(Du)
call TriggerRegisterAnyUnitEventBJ(Du,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(Du,Condition(function nK))
call TriggerAddAction(Du,function nl)
call DisableTrigger(DU)
call TriggerRegisterTimerExpireEvent(DU,B)
call TriggerAddAction(DU,function nL)
call TriggerAddAction(Dv,function nq)
call DisableTrigger(DV)
call TriggerRegisterUnitInRangeSimple(DV,20.,Fi)
call TriggerRegisterUnitInRangeSimple(DV,20.,FI)
call TriggerRegisterUnitInRangeSimple(DV,20.,Fj)
call TriggerRegisterUnitInRangeSimple(DV,20.,FJ)
call TriggerRegisterUnitInRangeSimple(DV,20.,fY)
call TriggerRegisterUnitInRangeSimple(DV,20.,fy)
call TriggerRegisterUnitInRangeSimple(DV,20.,f1)
call TriggerRegisterUnitInRangeSimple(DV,20.,f0)
call TriggerRegisterUnitInRangeSimple(DV,20.,fz)
call TriggerRegisterUnitInRangeSimple(DV,20.,fZ)
call TriggerAddCondition(DV,Condition(function nQ))
call TriggerAddAction(DV,function nT)
call DisableTrigger(Dw)
call TriggerRegisterUnitInRangeSimple(Dw,90.,Fi)
call TriggerRegisterUnitInRangeSimple(Dw,90.,FI)
call TriggerRegisterUnitInRangeSimple(Dw,90.,Fj)
call TriggerRegisterUnitInRangeSimple(Dw,90.,FJ)
call TriggerRegisterUnitInRangeSimple(Dw,90.,fY)
call TriggerRegisterUnitInRangeSimple(Dw,90.,fy)
call TriggerRegisterUnitInRangeSimple(Dw,90.,f1)
call TriggerRegisterUnitInRangeSimple(Dw,90.,f0)
call TriggerRegisterUnitInRangeSimple(Dw,90.,fz)
call TriggerRegisterUnitInRangeSimple(Dw,90.,fZ)
call TriggerAddCondition(Dw,Condition(function nu))
call TriggerAddAction(Dw,function ny)
call gW(DW,a6)
call TriggerAddCondition(DW,Condition(function nY))
call TriggerAddAction(DW,function nZ)
call DisableTrigger(Dx)
call gW(Dx,a3)
call TriggerAddCondition(Dx,Condition(function n0))
call TriggerAddAction(Dx,function n2)
call DisableTrigger(DX)
call TriggerRegisterAnyUnitEventBJ(DX,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(DX,Condition(function n6))
call TriggerAddAction(DX,function n7)
call DisableTrigger(Dy)
call TriggerRegisterTimerExpireEvent(Dy,B)
call TriggerAddAction(Dy,function n8)
call TriggerAddAction(DY,function Na)
call DisableTrigger(Dz)
call TriggerAddCondition(Dz,Condition(function NA))
call TriggerAddAction(Dz,function ND)
call DisableTrigger(DZ)
call gW(DZ,bl)
call TriggerAddCondition(DZ,Condition(function Ne))
call TriggerAddAction(DZ,function NF)
call DisableTrigger(D0)
call TriggerRegisterAnyUnitEventBJ(D0,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(D0,Condition(function NH))
call TriggerAddAction(D0,function Ni)
call DisableTrigger(D1)
call TriggerRegisterTimerExpireEvent(D1,aa)
call TriggerAddAction(D1,function NI)
call TriggerAddAction(D2,function Nk)
call DisableTrigger(D3)
call TriggerRegisterTimerEventPeriodic(D3,2.)
call TriggerAddAction(D3,function NK)
call DisableTrigger(D4)
call TriggerRegisterTimerEventPeriodic(D4,2.)
call TriggerAddCondition(D4,Condition(function Nl))
call TriggerAddAction(D4,function NL)
call TriggerRegisterAnyUnitEventBJ(D5,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(D5,Condition(function Nm))
call TriggerAddAction(D5,function NN)
call DisableTrigger(D6)
call gW(D6,bM)
call TriggerAddCondition(D6,Condition(function No))
call TriggerAddAction(D6,function NP)
call DisableTrigger(D7)
call TriggerRegisterAnyUnitEventBJ(D7,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(D7,Condition(function NR))
call TriggerAddAction(D7,function Ns)
call DisableTrigger(D8)
call TriggerRegisterTimerExpireEvent(D8,aA)
call TriggerAddAction(D8,function NS)
call TriggerAddAction(D9,function Nu)
call DisableTrigger(ea)
call TriggerAddCondition(ea,Condition(function NU))
call TriggerAddAction(ea,function Nv)
call DisableTrigger(eA)
call gW(eA,bo)
call TriggerAddCondition(eA,Condition(function NV))
call TriggerAddAction(eA,function Nx)
call DisableTrigger(eb)
call TriggerRegisterAnyUnitEventBJ(eb,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(eb,Condition(function Nz))
call TriggerAddAction(eb,function NZ)
call DisableTrigger(eB)
call TriggerRegisterTimerExpireEvent(eB,aB)
call TriggerAddAction(eB,function N0)
call gW(ec,br)
call gW(ec,bQ)
call gW(ec,bq)
call TriggerAddCondition(ec,Condition(function N1))
call TriggerAddAction(ec,function N2)
call TriggerAddAction(eC,function N8)
call DisableTrigger(ed)
call TriggerAddAction(ed,function oC)
call DisableTrigger(eD)
call TriggerRegisterTimerEventPeriodic(eD,2)
call TriggerAddCondition(eD,Condition(function od))
call TriggerAddAction(eD,function oe)
call DisableTrigger(ee)
call gW(ee,bV)
call gW(ee,bw)
call TriggerAddCondition(ee,Condition(function oE))
call TriggerAddAction(ee,function oF)
call DisableTrigger(eE)
call gW(eE,bu)
call TriggerAddCondition(eE,Condition(function og))
call TriggerAddAction(eE,function oH)
call DisableTrigger(ef)
call TriggerRegisterAnyUnitEventBJ(ef,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(ef,Condition(function oJ))
call TriggerAddAction(ef,function ok)
call TriggerAddAction(eF,function om)
call gW(eg,b7)
call TriggerAddAction(eg,function oM)
call gW(eG,b6)
call TriggerAddAction(eG,function on)
call gW(eh,b5)
call TriggerAddAction(eh,function oN)
call gW(eH,bY)
call TriggerAddCondition(eH,Condition(function oo))
call TriggerAddAction(eH,function oP)
call DisableTrigger(ei)
call TriggerRegisterAnyUnitEventBJ(ei,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(ei,Condition(function os))
call TriggerAddAction(ei,function oS)
call DisableTrigger(eI)
call TriggerRegisterTimerExpireEvent(eI,B)
call TriggerAddAction(eI,function ot)
call TriggerAddAction(ej,function ow)
call gW(eJ,b1)
call TriggerAddCondition(eJ,Condition(function oW))
call TriggerAddAction(eJ,function oY)
call DisableTrigger(ek)
call TriggerRegisterTimerEventPeriodic(ek,3.)
call TriggerAddCondition(ek,Condition(function oz))
call TriggerAddAction(ek,function o1)
call DisableTrigger(eK)
call TriggerRegisterAnyUnitEventBJ(eK,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(eK,Condition(function o5))
call TriggerAddAction(eK,function o6)
call DisableTrigger(el)
call TriggerRegisterTimerExpireEvent(el,B)
call TriggerAddAction(el,function o7)
call TriggerAddAction(eL,function Oa)
call DisableTrigger(em)
call TriggerRegisterTimerExpireEvent(em,B)
call TriggerAddAction(em,function OC)
call DisableTrigger(eM)
call gW(eM,Bg)
call TriggerAddCondition(eM,Condition(function Od))
call TriggerAddAction(eM,function OD)
call DisableTrigger(en)
call TriggerRegisterAnyUnitEventBJ(en,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(en,Condition(function OF))
call TriggerAddAction(en,function Og)
call TriggerAddAction(eN,function Oh)
call DisableTrigger(eo)
call TriggerRegisterTimerEventPeriodic(eo,12.5)
call TriggerAddAction(eo,function OH)
call DisableTrigger(eO)
call TriggerRegisterTimerExpireEvent(eO,B)
call TriggerAddAction(eO,function Oi)
call DisableTrigger(ep)
call gW(ep,Bh)
call TriggerAddAction(ep,function Oj)
call DisableTrigger(eP)
call TriggerRegisterUnitEvent(eP,Fq,EVENT_UNIT_DEATH)
call TriggerAddAction(eP,function OJ)
call TriggerAddAction(eq,function OK)
call DisableTrigger(eQ)
call TriggerRegisterTimerEventPeriodic(eQ,2.)
call TriggerAddAction(eQ,function OL)
call DisableTrigger(er)
call gW(er,Bi)
call TriggerAddCondition(er,Condition(function Om))
call TriggerAddAction(er,function OM)
call DisableTrigger(eR)
call gW(eR,Bi)
call TriggerAddCondition(eR,Condition(function On))
call TriggerAddAction(eR,function Oo)
call TriggerAddAction(es,function OP)
call DisableTrigger(eS)
call TriggerRegisterTimerEventPeriodic(eS,2)
call TriggerAddAction(eS,function Oq)
call DisableTrigger(et)
call TriggerRegisterTimerEventPeriodic(et,10.)
call TriggerAddAction(et,function OR)
call DisableTrigger(eT)
call TriggerRegisterTimerExpireEvent(eT,B)
call TriggerAddAction(eT,function Ot)
call DisableTrigger(eu)
call gW(eu,BJ)
call TriggerAddCondition(eu,Condition(function OT))
call TriggerAddAction(eu,function OU)
call DisableTrigger(eU)
call TriggerRegisterAnyUnitEventBJ(eU,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(eU,Condition(function OW))
call TriggerAddAction(eU,function Oy)
call TriggerAddAction(ev,function Oz)
call DisableTrigger(eV)
call TriggerRegisterTimerEventPeriodic(eV,6.)
call TriggerAddAction(eV,function OZ)
call DisableTrigger(ew)
call TriggerRegisterTimerEventPeriodic(ew,6.)
call TriggerAddAction(ew,function O0)
call DisableTrigger(eW)
call TriggerRegisterTimerExpireEvent(eW,B)
call TriggerAddAction(eW,function O5)
call DisableTrigger(ex)
call gW(ex,BK)
call TriggerAddAction(ex,function O7)
call DisableTrigger(eX)
call TriggerRegisterAnyUnitEventBJ(eX,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(eX,Condition(function pA))
call TriggerAddAction(eX,function pb)
call TriggerAddAction(ey,function pc)
call DisableTrigger(eY)
call TriggerRegisterTimerExpireEvent(eY,B)
call TriggerAddAction(eY,function pE)
call DisableTrigger(ez)
call TriggerRegisterTimerEventPeriodic(ez,10.)
call TriggerAddAction(ez,function pF)
call DisableTrigger(eZ)
call TriggerAddAction(eZ,function pG)
call DisableTrigger(e0)
call gW(e0,Bm)
call TriggerAddAction(e0,function pi)
call DisableTrigger(e1)
call TriggerRegisterAnyUnitEventBJ(e1,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(e1,Condition(function pI))
call TriggerAddAction(e1,function pj)
call TriggerAddAction(e2,function pk)
call DisableTrigger(e3)
call TriggerAddAction(e3,function pK)
call DisableTrigger(e4)
call TriggerAddCondition(e4,Condition(function pl))
call TriggerAddAction(e4,function pL)
call DisableTrigger(e5)
call gW(e5,BS)
call TriggerAddCondition(e5,Condition(function pm))
call TriggerAddAction(e5,function pM)
call DisableTrigger(e6)
call TriggerRegisterTimerExpireEvent(e6,ag)
call TriggerAddAction(e6,function pn)
call DisableTrigger(e7)
call gW(e7,BT)
call TriggerAddCondition(e7,Condition(function pN))
call TriggerAddAction(e7,function pp)
call DisableTrigger(e8)
call TriggerRegisterAnyUnitEventBJ(e8,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(e8,Condition(function pr))
call TriggerAddAction(e8,function pR)
call TriggerAddAction(e9,function pS)
call DisableTrigger(Ea)
call TriggerRegisterTimerExpireEvent(Ea,ah)
call TriggerAddAction(Ea,function pT)
call DisableTrigger(EA)
call TriggerRegisterTimerEventPeriodic(EA,5.)
call TriggerAddAction(EA,function pU)
call DisableTrigger(Eb)
call TriggerRegisterUnitEvent(Eb,Fo,EVENT_UNIT_DEATH)
call TriggerAddAction(Eb,function px)
call DisableTrigger(EB)
call gW(EB,B7)
call TriggerAddAction(EB,function pY)
call DisableTrigger(Ec)
call TriggerRegisterTimerEventPeriodic(Ec,10.)
call TriggerAddAction(Ec,function pz)
call DisableTrigger(EC)
call TriggerRegisterAnyUnitEventBJ(EC,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(EC,Condition(function pZ))
call TriggerAddAction(EC,function p0)
call TriggerAddAction(Ed,function p3)
call DisableTrigger(ED)
call gW(ED,cB)
call TriggerAddAction(ED,function p5)
call DisableTrigger(Ee)
call TriggerRegisterTimerExpireEvent(Ee,B)
call TriggerAddAction(Ee,function p6)
call DisableTrigger(EE)
call TriggerRegisterAnyUnitEventBJ(EE,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(EE,Condition(function p7))
call TriggerAddAction(EE,function PA)
call DisableTrigger(Ef)
call TriggerRegisterAnyUnitEventBJ(Ef,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(Ef,Condition(function PC))
call TriggerAddAction(Ef,function Pd)
call DisableTrigger(EF)
call TriggerAddAction(EF,function PD)
call ConditionalTriggerExecute(cX)
call ConditionalTriggerExecute(CB)
endfunction
function config takes nothing returns nothing
call SetMapName("TRIGSTR_003")
call SetMapDescription("TRIGSTR_005")
call SetPlayers(12)
call SetTeams(12)
call SetGamePlacement(MAP_PLACEMENT_TEAMS_TOGETHER)
call DefineStartLocation(0,-4544.,8896.)
call DefineStartLocation(1,-5056.,8896.)
call DefineStartLocation(2,-5568.,8896.)
call DefineStartLocation(3,-5568.,8960.)
call DefineStartLocation(4,-4480.,8896.)
call DefineStartLocation(5,-4992.,8896.)
call DefineStartLocation(6,-4800.,8832.)
call DefineStartLocation(7,-5312.,8832.)
call DefineStartLocation(8,-4608.,8960.)
call DefineStartLocation(9,-9152.,7104.)
call DefineStartLocation(10,-9024.,6912.)
call DefineStartLocation(11,-9088.,7040.)
call SetPlayerStartLocation(Player(0),0)
call ForcePlayerStartLocation(Player(0),0)
call SetPlayerColor(Player(0),ConvertPlayerColor(0))
call SetPlayerRacePreference(Player(0),RACE_PREF_HUMAN)
call SetPlayerRaceSelectable(Player(0),false)
call SetPlayerController(Player(0),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(1),1)
call ForcePlayerStartLocation(Player(1),1)
call SetPlayerColor(Player(1),ConvertPlayerColor(1))
call SetPlayerRacePreference(Player(1),RACE_PREF_HUMAN)
call SetPlayerRaceSelectable(Player(1),false)
call SetPlayerController(Player(1),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(2),2)
call ForcePlayerStartLocation(Player(2),2)
call SetPlayerColor(Player(2),ConvertPlayerColor(2))
call SetPlayerRacePreference(Player(2),RACE_PREF_HUMAN)
call SetPlayerRaceSelectable(Player(2),false)
call SetPlayerController(Player(2),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(3),3)
call ForcePlayerStartLocation(Player(3),3)
call SetPlayerColor(Player(3),ConvertPlayerColor(3))
call SetPlayerRacePreference(Player(3),RACE_PREF_HUMAN)
call SetPlayerRaceSelectable(Player(3),false)
call SetPlayerController(Player(3),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(4),4)
call ForcePlayerStartLocation(Player(4),4)
call SetPlayerColor(Player(4),ConvertPlayerColor(4))
call SetPlayerRacePreference(Player(4),RACE_PREF_HUMAN)
call SetPlayerRaceSelectable(Player(4),false)
call SetPlayerController(Player(4),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(5),5)
call ForcePlayerStartLocation(Player(5),5)
call SetPlayerColor(Player(5),ConvertPlayerColor(5))
call SetPlayerRacePreference(Player(5),RACE_PREF_HUMAN)
call SetPlayerRaceSelectable(Player(5),false)
call SetPlayerController(Player(5),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(6),6)
call ForcePlayerStartLocation(Player(6),6)
call SetPlayerColor(Player(6),ConvertPlayerColor(6))
call SetPlayerRacePreference(Player(6),RACE_PREF_HUMAN)
call SetPlayerRaceSelectable(Player(6),false)
call SetPlayerController(Player(6),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(7),7)
call ForcePlayerStartLocation(Player(7),7)
call SetPlayerColor(Player(7),ConvertPlayerColor(7))
call SetPlayerRacePreference(Player(7),RACE_PREF_HUMAN)
call SetPlayerRaceSelectable(Player(7),false)
call SetPlayerController(Player(7),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(8),8)
call ForcePlayerStartLocation(Player(8),8)
call SetPlayerColor(Player(8),ConvertPlayerColor(8))
call SetPlayerRacePreference(Player(8),RACE_PREF_HUMAN)
call SetPlayerRaceSelectable(Player(8),false)
call SetPlayerController(Player(8),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(9),9)
call ForcePlayerStartLocation(Player(9),9)
call SetPlayerColor(Player(9),ConvertPlayerColor(9))
call SetPlayerRacePreference(Player(9),RACE_PREF_HUMAN)
call SetPlayerRaceSelectable(Player(9),false)
call SetPlayerController(Player(9),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(10),10)
call ForcePlayerStartLocation(Player(10),10)
call SetPlayerColor(Player(10),ConvertPlayerColor(10))
call SetPlayerRacePreference(Player(10),RACE_PREF_UNDEAD)
call SetPlayerRaceSelectable(Player(10),false)
call SetPlayerController(Player(10),MAP_CONTROL_NEUTRAL)
call SetPlayerStartLocation(Player(11),11)
call ForcePlayerStartLocation(Player(11),11)
call SetPlayerColor(Player(11),ConvertPlayerColor(11))
call SetPlayerRacePreference(Player(11),RACE_PREF_UNDEAD)
call SetPlayerRaceSelectable(Player(11),false)
call SetPlayerController(Player(11),MAP_CONTROL_COMPUTER)
call InitCustomTeams()
call SetStartLocPrioCount(0,2)
call SetStartLocPrio(0,0,4,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(0,1,8,MAP_LOC_PRIO_LOW)
call SetStartLocPrioCount(1,1)
call SetStartLocPrio(1,0,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(2,1)
call SetStartLocPrio(2,0,3,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(3,1)
call SetStartLocPrio(3,0,2,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(4,1)
call SetStartLocPrio(4,0,0,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(5,1)
call SetStartLocPrio(5,0,1,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(6,4)
call SetStartLocPrio(6,0,0,MAP_LOC_PRIO_LOW)
call SetStartLocPrio(6,1,1,MAP_LOC_PRIO_LOW)
call SetStartLocPrio(6,2,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(6,3,8,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(7,4)
call SetStartLocPrio(7,0,1,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(7,1,2,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(7,2,3,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(7,3,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(8,1)
call SetStartLocPrio(8,0,0,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(9,9)
call SetStartLocPrio(9,0,0,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(9,1,1,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(9,2,2,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(9,3,3,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(9,4,4,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(9,5,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(9,6,6,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(9,7,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(9,8,8,MAP_LOC_PRIO_HIGH)
endfunction
function Trig_cheats_01 takes nothing returns boolean
return ( SubStringBJ(GetEventPlayerChatString(), 1, 4) == "-int" )
endfunction
function Trig_cheats_02 takes nothing returns boolean
return ( udg_cheat == GetConvertedPlayerId(GetTriggerPlayer()) )
endfunction
function Trig_cheats_03 takes nothing returns nothing
call ModifyHeroStat( bj_HEROSTAT_INT, GetEnumUnit(), bj_MODIFYMETHOD_SET, S2I(SubStringBJ(GetEventPlayerChatString(), 5, 20)) )
endfunction
function Trig_cheats_04 takes nothing returns boolean
return ( SubStringBJ(GetEventPlayerChatString(), 1, 4) == "-agi" )
endfunction
function Trig_cheats_05 takes nothing returns boolean
return ( udg_cheat == GetConvertedPlayerId(GetTriggerPlayer()) )
endfunction
function Trig_cheats_06 takes nothing returns nothing
call ModifyHeroStat( bj_HEROSTAT_AGI, GetEnumUnit(), bj_MODIFYMETHOD_SET, S2I(SubStringBJ(GetEventPlayerChatString(), 5, 20)) )
endfunction
function Trig_cheats_07 takes nothing returns boolean
return ( SubStringBJ(GetEventPlayerChatString(), 1, 4) == "-str" )
endfunction
function Trig_cheats_08 takes nothing returns boolean
return ( udg_cheat == GetConvertedPlayerId(GetTriggerPlayer()) )
endfunction
function Trig_cheats_09 takes nothing returns nothing
call ModifyHeroStat( bj_HEROSTAT_STR, GetEnumUnit(), bj_MODIFYMETHOD_SET, S2I(SubStringBJ(GetEventPlayerChatString(), 5, 20)) )
endfunction
function Trig_cheats_10 takes nothing returns boolean
return ( SubStringBJ(GetEventPlayerChatString(), 1, 3) == "-xp" )
endfunction
function Trig_cheats_11 takes nothing returns boolean
return ( udg_cheat == GetConvertedPlayerId(GetTriggerPlayer()) )
endfunction
function Trig_cheats_12 takes nothing returns nothing
call AddHeroXPSwapped( S2I(SubStringBJ(GetEventPlayerChatString(), 5, 20)), GetEnumUnit(), true )
endfunction
function Trig_cheats_13 takes nothing returns boolean
return ( SubStringBJ(GetEventPlayerChatString(), 1, 4) == "-lvl" )
endfunction
function Trig_cheats_14 takes nothing returns boolean
return ( udg_cheat == GetConvertedPlayerId(GetTriggerPlayer()) )
endfunction
function Trig_cheats_15 takes nothing returns nothing
call SetHeroLevelBJ( GetEnumUnit(), S2I(SubStringBJ(GetEventPlayerChatString(), 5, 20)), true )
endfunction
function Trig_cheats_16 takes nothing returns boolean
return ( SubStringBJ(GetEventPlayerChatString(), 1, 4) == "-vul" )
endfunction
function Trig_cheats_17 takes nothing returns boolean
return ( udg_cheat == GetConvertedPlayerId(GetTriggerPlayer()) )
endfunction
function Trig_cheats_18 takes nothing returns nothing
call SetUnitInvulnerable( GetEnumUnit(), false )
endfunction
function Trig_cheats_19 takes nothing returns boolean
return ( SubStringBJ(GetEventPlayerChatString(), 1, 4) == "-inv" )
endfunction
function Trig_cheats_20 takes nothing returns boolean
return ( udg_cheat == GetConvertedPlayerId(GetTriggerPlayer()) )
endfunction
function Trig_cheats_21 takes nothing returns nothing
call SetUnitInvulnerable( GetEnumUnit(), true )
endfunction
function Trig_cheats_22 takes nothing returns boolean
return ( SubStringBJ(GetEventPlayerChatString(), 1, 5) == "-food" )
endfunction
function Trig_cheats_23 takes nothing returns boolean
return ( udg_cheat == GetConvertedPlayerId(GetTriggerPlayer()) )
endfunction
function Trig_cheats_24 takes nothing returns boolean
return ( SubStringBJ(GetEventPlayerChatString(), 1, 5) == "-food" )
endfunction
function Trig_cheats_25 takes nothing returns boolean
return ( udg_cheat == GetConvertedPlayerId(GetTriggerPlayer()) )
endfunction
function Trig_cheats_26 takes nothing returns boolean
return ( SubStringBJ(GetEventPlayerChatString(), 1, 7) == "-lumber" )
endfunction
function Trig_cheats_27 takes nothing returns boolean
return ( udg_cheat == GetConvertedPlayerId(GetTriggerPlayer()) )
endfunction
function Trig_cheats_28 takes nothing returns boolean
return ( SubStringBJ(GetEventPlayerChatString(), 1, 5) == "-gold" )
endfunction
function Trig_cheats_29 takes nothing returns boolean
return ( udg_cheat == GetConvertedPlayerId(GetTriggerPlayer()) )
endfunction
function Trig_cheats_30 takes nothing returns boolean
return ( SubStringBJ(GetEventPlayerChatString(), 1, 3) == "-hp" )
endfunction
function Trig_cheats_31 takes nothing returns boolean
return ( udg_cheat == GetConvertedPlayerId(GetTriggerPlayer()) )
endfunction
function Trig_cheats_32 takes nothing returns nothing
call SetUnitLifeBJ( GetEnumUnit(), I2R(S2I(SubStringBJ(GetEventPlayerChatString(), 4, 20))) )
endfunction
function Trig_cheats_33 takes nothing returns boolean
return ( SubStringBJ(GetEventPlayerChatString(), 1, 3) == "-mp" )
endfunction
function Trig_cheats_34 takes nothing returns boolean
return ( udg_cheat == GetConvertedPlayerId(GetTriggerPlayer()) )
endfunction
function Trig_cheats_35 takes nothing returns nothing
call SetUnitManaBJ( GetEnumUnit(), I2R(S2I(SubStringBJ(GetEventPlayerChatString(), 4, 20))) )
endfunction
function Trig_cheats_36 takes nothing returns boolean
return ( SubStringBJ(GetEventPlayerChatString(), 1, 5) == "-kill" )
endfunction
function Trig_cheats_37 takes nothing returns boolean
return ( udg_cheat == GetConvertedPlayerId(GetTriggerPlayer()) )
endfunction
function Trig_cheats_38 takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_cheats_39 takes nothing returns boolean
return ( SubStringBJ(GetEventPlayerChatString(), 1, 8) == "-additem" )
endfunction
function Trig_cheats_40 takes nothing returns boolean
return ( udg_cheat == GetConvertedPlayerId(GetTriggerPlayer()) )
endfunction
function Trig_cheats_41 takes nothing returns nothing
call CreateItemLoc( ChooseRandomItemExBJ(-1, ITEM_TYPE_ANY), GetUnitLoc(GetEnumUnit()) )
endfunction
function Trig_cheats_42 takes nothing returns boolean
return ( SubStringBJ(GetEventPlayerChatString(), 1, 11) == "-off" )
endfunction
function Trig_cheats_43 takes nothing returns boolean
return ( SubStringBJ(GetEventPlayerChatString(), 1, 23) == "-cheated by wcc" )
endfunction
function Trig_cheats_Actions takes nothing returns nothing
if ( Trig_cheats_01() ) then
if ( Trig_cheats_02() ) then
call ForGroupBJ( GetUnitsSelectedAll(GetTriggerPlayer()), function Trig_cheats_03 )
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_cheats_04() ) then
if ( Trig_cheats_05() ) then
call ForGroupBJ( GetUnitsSelectedAll(GetTriggerPlayer()), function Trig_cheats_06 )
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_cheats_07() ) then
if ( Trig_cheats_08() ) then
call ForGroupBJ( GetUnitsSelectedAll(GetTriggerPlayer()), function Trig_cheats_09 )
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_cheats_10() ) then
if ( Trig_cheats_11() ) then
call ForGroupBJ( GetUnitsSelectedAll(GetTriggerPlayer()), function Trig_cheats_12 )
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_cheats_13() ) then
if ( Trig_cheats_14() ) then
call ForGroupBJ( GetUnitsSelectedAll(GetTriggerPlayer()), function Trig_cheats_15 )
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_cheats_16() ) then
if ( Trig_cheats_17() ) then
call ForGroupBJ( GetUnitsSelectedAll(GetTriggerPlayer()), function Trig_cheats_18 )
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_cheats_19() ) then
if ( Trig_cheats_20() ) then
call ForGroupBJ( GetUnitsSelectedAll(GetTriggerPlayer()), function Trig_cheats_21 )
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_cheats_22() ) then
if ( Trig_cheats_23() ) then
call SetPlayerStateBJ( GetTriggerPlayer(), PLAYER_STATE_FOOD_CAP_CEILING, S2I(SubStringBJ(GetEventPlayerChatString(), 6, 20)) )
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_cheats_24() ) then
if ( Trig_cheats_25() ) then
call SetPlayerStateBJ( GetTriggerPlayer(), PLAYER_STATE_RESOURCE_FOOD_CAP, S2I(SubStringBJ(GetEventPlayerChatString(), 6, 20)) )
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_cheats_26() ) then
if ( Trig_cheats_27() ) then
call SetPlayerStateBJ( GetTriggerPlayer(), PLAYER_STATE_RESOURCE_LUMBER, S2I(SubStringBJ(GetEventPlayerChatString(), 8, 20)) )
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_cheats_28() ) then
if ( Trig_cheats_29() ) then
call SetPlayerStateBJ( GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD, S2I(SubStringBJ(GetEventPlayerChatString(), 6, 20)) )
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_cheats_30() ) then
if ( Trig_cheats_31() ) then
call ForGroupBJ( GetUnitsSelectedAll(GetTriggerPlayer()), function Trig_cheats_32 )
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_cheats_33() ) then
if ( Trig_cheats_34() ) then
call ForGroupBJ( GetUnitsSelectedAll(GetTriggerPlayer()), function Trig_cheats_35 )
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_cheats_36() ) then
if ( Trig_cheats_37() ) then
call ForGroupBJ( GetUnitsSelectedAll(GetTriggerPlayer()), function Trig_cheats_38 )
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_cheats_39() ) then
if ( Trig_cheats_40() ) then
call ForGroupBJ( GetUnitsSelectedAll(GetTriggerPlayer()), function Trig_cheats_41 )
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_cheats_42() ) then
set udg_cheat = 0
else
call DoNothing( )
endif
if ( Trig_cheats_43() ) then
set udg_cheat = GetConvertedPlayerId(GetTriggerPlayer())
else
call DoNothing( )
endif
endfunction
function InitTrig_cheats takes nothing returns nothing
set gg_trg_cheats = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_cheats, ConvertedPlayer(1), "-", false )
call TriggerRegisterPlayerChatEvent( gg_trg_cheats, ConvertedPlayer(2), "-", false )
call TriggerRegisterPlayerChatEvent( gg_trg_cheats, ConvertedPlayer(3), "-", false )
call TriggerRegisterPlayerChatEvent( gg_trg_cheats, ConvertedPlayer(4), "-", false )
call TriggerRegisterPlayerChatEvent( gg_trg_cheats, ConvertedPlayer(5), "-", false )
call TriggerRegisterPlayerChatEvent( gg_trg_cheats, ConvertedPlayer(6), "-", false )
call TriggerRegisterPlayerChatEvent( gg_trg_cheats, ConvertedPlayer(7), "-", false )
call TriggerRegisterPlayerChatEvent( gg_trg_cheats, ConvertedPlayer(8), "-", false )
call TriggerRegisterPlayerChatEvent( gg_trg_cheats, ConvertedPlayer(9), "-", false )
call TriggerRegisterPlayerChatEvent( gg_trg_cheats, ConvertedPlayer(10), "-", false )
call TriggerRegisterPlayerChatEvent( gg_trg_cheats, ConvertedPlayer(11), "-", false )
call TriggerRegisterPlayerChatEvent( gg_trg_cheats, ConvertedPlayer(12), "-", false )
call TriggerRegisterPlayerChatEvent( gg_trg_cheats, ConvertedPlayer(13), "-", false )
call TriggerRegisterPlayerChatEvent( gg_trg_cheats, ConvertedPlayer(14), "-", false )
call TriggerRegisterPlayerChatEvent( gg_trg_cheats, ConvertedPlayer(15), "-", false )
call TriggerRegisterPlayerChatEvent( gg_trg_cheats, ConvertedPlayer(16), "-", false )
call TriggerAddAction( gg_trg_cheats, function Trig_cheats_Actions )
endfunction