- Joined
- Sep 3, 2006
- Messages
- 1,738
Herro, I was looking through a map's (a regular WC3 map) script and I found an area that intrigued me. I was wondering if someone could explain this to me.
Warning: It's a wall of text.
EDIT: It looks normal here, but in the trigger section it's setup like normal text in my editor.
Warning: It's a wall of text.
JASS:
call ExecuteFunc("TU")
set i=0
set X=CreateForce()
set O=CreateForce()
set B=CreateMultiboard()
set i=0
loop
exitwhen(i>9)
set D[i]=0
set F[i]=0
set ne[i]=""
set Ve[i]=false
set Ee[i]=false
set Nx[i]=CreateTimer()
set bx[i]=0
set kx[i]=false
set sx[i]=false
set wx[i]=false
set Wx[i]=false
set xo[i]=false
set co[i]=CreateTimer()
set Co[i]=0
set do[i]=false
set Do[i]=false
set go[i]=0
set Go[i]=false
set ho[i]=false
set Dr[i]=CreateGroup()
set Fr[i]=0
set Kr[i]=0
set lr[i]=CreateTimer()
set Lr[i]=0
set li[i]=0
set Ti[i]=0
set ja[i]=0
set Ja[i]=false
set jV[i]=0
set uV[i]=false
set YV[i]="0000000000"
set eE[i]=12
set VE[i]=false
set i=i+1
endloop
set T=6
set w=2
set i=0
loop
exitwhen(i>3)
set ev[i]=0
set Ar[i]=0
set Nr[i]=0
set TV[i]=0
set rE[i]=0
set i=i+1
endloop
set Vv=CreateTimer()
set Ev=CreateTimer()
set i=0
loop
exitwhen(i>21)
set Iv[i]=""
set i=i+1
endloop
set Nv=CreateTimer()
set bv=CreateTimer()
set gv=CreateTimer()
set Gv=CreateTrigger()
set jv=CreateTimer()
set Kv=CreateGroup()
set Lv=CreateTimer()
set mv=CreateTimer()
set sv=CreateTimer()
set Sv=CreateGroup()
set uv=CreateTimer()
set Uv=CreateTrigger()
set wv=CreateTimer()
set Wv=CreateTimer()
set yv=CreateTrigger()
set Zv=CreateTimer()
set Xe=CreateTimer()
set Ie=CreateTimer()
set Ae=CreateTimer()
set Ne=CreateTimer()
set Be=CreateTimer()
set fe=CreateTimer()
set Ge=CreateTimer()
set he=CreateTimer()
set He=CreateTimer()
set je=CreateGroup()
set le=CreateTimer()
set Le=CreateTimer()
set Me=CreateTimer()
set se=CreateTimer()
set Se=CreateTrigger()
set te=CreateTimer()
set Ue=CreateTimer()
set Ze=CreateTimer()
set ox=CreateTimer()
set ix=CreateTimer()
set ax=CreateTimer()
set nx=CreateTimer()
set Vx=CreateTimer()
set Ex=CreateTimer()
set Ax=CreateTimer()
set Fx=CreateTimer()
set gx=CreateTimer()
set Gx=CreateTimer()
set Hx=CreateTimer()
set i=0
loop
exitwhen(i>20)
set Kx[i]=false
set eo[i]=0
set i=i+1
endloop
set Mx=CreateTimer()
set qx=CreateTimer()
set Qx=CreateTimer()
set Sx=CreateTimer()
set Tx=CreateGroup()
set yx=CreateGroup()
set zx=CreateGroup()
set i=0
loop
exitwhen(i>25)
set vo[i]=""
set Rr[i]=""
set i=i+1
endloop
set oo=CreateTimer()
set ro=CreateGroup()
set io=CreateTimer()
set ao=CreateTimer()
set Bo=CreateForce()
set fo=CreateTimer()
set ko=true
set mo=CreateTimer()
set Mo=CreateTimer()
set i=0
loop
exitwhen(i>10)
set po[i]=""
set qo[i]=false
set Qo[i]=false
set so[i]=false
set So[i]=false
set To[i]=false
set uo[i]=false
set Uo[i]=false
set wo[i]=false
set Wo[i]=false
set yo[i]=false
set fr[i]=0
set Sa[i]=""
set Sn[i]=""
set yV[i]=""
set i=i+1
endloop
set Po=11
set ar=CreateGroup()
set nr=CreateTimer()
set dr=CreateTimer()
set gr=CreateTimer()
set jr=CreateTimer()
set Jr=CreateTimer()
set kr=CreateTimer()
set mr=CreateGroup()
set pr=CreateTimer()
set Pr=CreateTimer()
set Ur=CreateTimer()
set yr=35
set Yr=CreateTimer()
set zr=CreateTimer()
set oi=CreateTimer()
set ri=CreateTimer()
set Ei=CreateTimer()
set Oi=CreateTimer()
set Ai=CreateTimer()
set Ni=CreateGroup()
set ci=CreateTimer()
set Ci=CreateGroup()
set Di=CreateTimer()
set fi=CreateTimer()
set Hi=CreateTimer()
set i=0
loop
exitwhen(i>1000)
set Ji[i]=CreateTrigger()
set ki[i]=0
set mi[i]=0
set Mi[i]=0
set i=i+1
endloop
set Ki=-1
set pi=-1
set Pi=CreateGroup()
set qi=CreateGroup()
set Qi=7
set si=7
set ui=CreateTimer()
set Wi=CreateTimer()
set zi=CreateGroup()
set va=CreateGroup()
set ea=CreateTimer()
set i=0
loop
exitwhen(i>5)
set oa[i]=""
set i=i+1
endloop
set ia=CreateGroup()
set aa=CreateGroup()
set na=CreateGroup()
set Xa=CreateTimer()
set Ra=8.
set Ia=CreateGroup()
set Ba=550.
set da=CreateTimer()
set Ga=true
set ha=true
set Ha=true
set ka=CreateGroup()
set Ma=CreateGroup()
set pa=CreateGroup()
set Pa=CreateGroup()
set i=0
loop
exitwhen(i>4)
set sa[i]=""
set i=i+1
endloop
set Ta=CreateGroup()
set ya=CreateTrigger()
set Ya=CreateGroup()
set za=CreateTimer()
set vn=.9
set On=CreateTimer()
set In=CreateTimer()
set Bn=CreateGroup()
set Gn=CreateGroup()
set hn=CreateTimer()
set Mn=true
set pn=true
set Pn=true
set qn=true
set Qn=true
set sn=true
set tn=7
set Tn=7
set un=7
set Un=7
set iV=CreateGroup()
set XV=CreateTimer()
set RV=CreateTimer()
set AV=CreateTimer()
set NV=true
set CV=CreateTimer()
set DV=CreateTimer()
set HV=CreateGroup()
set mV=CreateRegion()
set UV=10
set wV=18
set WV=6
set i=0
loop
exitwhen(i>11)
set BE[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>7)
set cE[i]=0
set i=i+1
endloop
set dX=CreateTrigger()
call TriggerAddAction(dX,function zj)
set DX=CreateTrigger()
call TriggerAddAction(DX,function aJ)
set fX=CreateTrigger()
call TriggerAddAction(fX,function VJ)
set FX=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(FX,EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER)
call TriggerAddCondition(FX,Condition(function XJ))
call TriggerAddAction(FX,function OJ)
set gX=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gX,EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER)
call TriggerRegisterAnyUnitEventBJ(gX,EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER)
call TriggerRegisterAnyUnitEventBJ(gX,EVENT_PLAYER_UNIT_ISSUED_ORDER)
call TriggerAddCondition(gX,Condition(function IJ))
call TriggerAddAction(gX,function AJ)
set GX=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(GX,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(GX,Condition(function bJ))
call TriggerAddAction(GX,function BJ)
call dJ()
set HX=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(HX,EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(HX,Condition(function DJ))
call TriggerAddAction(HX,function fJ)
set jX=CreateTrigger()
call TriggerRegisterEnterRectSimple(jX,bj_mapInitialPlayableArea)
call TriggerAddCondition(jX,Condition(function gJ))
call TriggerAddAction(jX,function GJ)
set JX=CreateTrigger()
call TriggerRegisterEnterRectSimple(JX,bj_mapInitialPlayableArea)
call TriggerAddCondition(JX,Condition(function HJ))
call TriggerAddAction(JX,function jJ)
set kX=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(kX,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(kX,Condition(function kJ))
call TriggerAddAction(kX,function KJ)
set KX=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(KX,300.)
call TriggerAddAction(KX,function MJ)
set lX=CreateTrigger()
call TriggerRegisterEnterRectSimple(lX,CE)
call TriggerAddCondition(lX,Condition(function PJ))
call TriggerAddAction(lX,function qJ)
set LX=CreateTrigger()
call TriggerRegisterEnterRectSimple(LX,dE)
call TriggerAddCondition(LX,Condition(function sJ))
call TriggerAddAction(LX,function SJ)
set mX=CreateTrigger()
call TriggerRegisterEnterRectSimple(mX,DE)
call TriggerAddCondition(mX,Condition(function TJ))
call TriggerAddAction(mX,function uJ)
set MX=CreateTrigger()
call TriggerRegisterEnterRectSimple(MX,fE)
call TriggerAddCondition(MX,Condition(function wJ))
call TriggerAddAction(MX,function WJ)
set pX=CreateTrigger()
call TriggerRegisterEnterRectSimple(pX,lE)
call TriggerAddCondition(pX,Condition(function YJ))
call TriggerAddAction(pX,function zJ)
set PX=CreateTrigger()
call TriggerRegisterEnterRectSimple(PX,ME)
call TriggerRegisterEnterRectSimple(PX,KE)
call TriggerAddCondition(PX,Condition(function vk))
call TriggerAddAction(PX,function ek)
set qX=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(qX,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(qX,Condition(function ok))
call TriggerAddAction(qX,function rk)
set QX=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(QX,EVENT_PLAYER_UNIT_SELL)
call TriggerAddCondition(QX,Condition(function ak))
call TriggerAddAction(QX,function nk)
set sX=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(sX,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(sX,Condition(function Ek))
call TriggerAddAction(sX,function Ok)
set SX=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(SX,EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(SX,Condition(function Ik))
call TriggerAddAction(SX,function Ak)
set tX=CreateTrigger()
call TriggerRegisterEnterRectSimple(tX,bj_mapInitialPlayableArea)
call TriggerAddCondition(tX,Condition(function bk))
call TriggerAddAction(tX,function Ck)
set TX=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(TX,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(TX,Condition(function Fk))
call TriggerAddAction(TX,function hk)
set uX=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(uX,EVENT_PLAYER_HERO_REVIVE_FINISH)
call TriggerAddAction(uX,function Kk)
set UX=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(UX,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(UX,Condition(function Lk))
call TriggerAddAction(UX,function mk)
set wX=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(wX,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(wX,Condition(function pk))
call TriggerAddAction(wX,function Pk)
set WX=CreateTrigger()
call TriggerRegisterEnterRectSimple(WX,bj_mapInitialPlayableArea)
call TriggerAddCondition(WX,Condition(function Sk))
call TriggerAddAction(WX,function Tk)
set yX=CreateTrigger()
call TriggerRegisterEnterRectSimple(yX,FE)
call TriggerAddAction(yX,function Uk)
set YX=CreateTrigger()
call TriggerRegisterEnterRectSimple(YX,gE)
call TriggerAddAction(YX,function Wk)
set zX=CreateTrigger()
call TriggerRegisterEnterRectSimple(zX,SE)
call TriggerAddAction(zX,function Yk)
set ZX=CreateTrigger()
call TriggerRegisterEnterRectSimple(ZX,GE)
call TriggerAddAction(ZX,function Zk)
set vO=CreateTrigger()
call TriggerRegisterEnterRectSimple(vO,jE)
call TriggerAddAction(vO,function eK)
set eO=CreateTrigger()
call TriggerRegisterEnterRectSimple(eO,HE)
call TriggerAddAction(eO,function oK)
set xO=CreateTrigger()
call TriggerRegisterEnterRectSimple(xO,hE)
call TriggerAddAction(xO,function iK)
set oO=CreateTrigger()
call TriggerRegisterEnterRectSimple(oO,sE)
call TriggerAddCondition(oO,Condition(function nK))
call TriggerAddAction(oO,function VK)
set rO=CreateTrigger()
call TriggerRegisterEnterRectSimple(rO,mE)
call TriggerRegisterEnterRectSimple(rO,qE)
call TriggerRegisterEnterRectSimple(rO,JE)
call TriggerAddCondition(rO,Condition(function XK))
call TriggerAddAction(rO,function OK)
set iO=CreateTrigger()
call TriggerRegisterEnterRectSimple(iO,LE)
call TriggerRegisterEnterRectSimple(iO,QE)
call TriggerRegisterEnterRectSimple(iO,kE)
call TriggerAddCondition(iO,Condition(function IK))
call TriggerAddAction(iO,function AK)
set aO=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(aO,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(aO,Condition(function bK))
call TriggerAddAction(aO,function BK)
set QK=CreateTrigger()
set nO=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(nO,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerRegisterAnyUnitEventBJ(QK,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(nO,Condition(function FK))
call TriggerAddCondition(QK,Condition(function pK))
call TriggerAddAction(nO,function gK)
call TriggerAddAction(QK,function PK)
set QK=null
set VO=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(VO,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(VO,Condition(function sK))
call TriggerAddAction(VO,function tK)
set EO=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(EO,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(EO,Condition(function uK))
call TriggerAddAction(EO,function UK)
set XO=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(XO,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(XO,Condition(function yK))
call TriggerAddAction(XO,function YK)
set El=CreateTrigger()
set Xl=CreateTrigger()
set Ol=CreateTrigger()
set Rl=CreateTrigger()
set OO=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(OO,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerRegisterAnyUnitEventBJ(El,EVENT_PLAYER_UNIT_ISSUED_ORDER)
call TriggerRegisterAnyUnitEventBJ(Xl,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerRegisterAnyUnitEventBJ(Ol,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterAnyUnitEventBJ(Rl,EVENT_PLAYER_UNIT_DROP_ITEM)
call TriggerAddCondition(OO,Condition(function ZK))
call TriggerAddCondition(El,Condition(function xl))
call TriggerAddCondition(Xl,Condition(function ol))
call TriggerAddCondition(Ol,Condition(function al))
call TriggerAddCondition(Rl,Condition(function rl))
call TriggerAddAction(OO,function el)
call TriggerAddAction(El,function il)
call TriggerAddAction(Xl,function il)
call TriggerAddAction(Ol,function nl)
call TriggerAddAction(Rl,function il)
set El=null
set Xl=null
set Ol=null
set Rl=null
set RO=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(RO,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(RO,Condition(function Il))
call TriggerAddAction(RO,function Al)
set IO=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(IO,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(IO,Condition(function Bl))
call TriggerAddAction(IO,function cl)
set AO=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(AO,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(AO,Condition(function dl))
call TriggerAddAction(AO,function Dl)
set NO=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(NO,EVENT_PLAYER_UNIT_DROP_ITEM)
call TriggerAddCondition(NO,Condition(function Gl))
call TriggerAddAction(NO,function Jl)
set bO=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(bO,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(bO,Condition(function Kl))
call TriggerAddAction(bO,function ll)
set BO=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(BO,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(BO,Condition(function ml))
call TriggerAddAction(BO,function pl)
set cO=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(cO,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(cO,Condition(function ql))
call TriggerAddAction(cO,function sl)
set rL=CreateTrigger()
set iL=CreateTrigger()
set aL=CreateTrigger()
set nL=CreateTrigger()
set CO=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(CO,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerRegisterAnyUnitEventBJ(rL,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerRegisterAnyUnitEventBJ(rL,EVENT_PLAYER_UNIT_DROP_ITEM)
call TriggerRegisterAnyUnitEventBJ(nL,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerRegisterEnterRectSimple(iL,pE)
call TriggerRegisterEnterRectSimple(iL,PE)
call TriggerRegisterLeaveRectSimple(aL,pE)
call TriggerRegisterLeaveRectSimple(aL,PE)
call TriggerAddCondition(CO,Condition(function tl))
call TriggerAddCondition(rL,Condition(function ul))
call TriggerAddCondition(iL,Condition(function Wl))
call TriggerAddCondition(aL,Condition(function Wl))
call TriggerAddCondition(nL,Condition(function zl))
call TriggerAddAction(CO,function Tl)
call TriggerAddAction(rL,function Ul)
call TriggerAddAction(iL,function yl)
call TriggerAddAction(aL,function Yl)
call TriggerAddAction(nL,function Zl)
set rL=null
set iL=null
set aL=null
set nL=null
set dO=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(dO,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(dO,Condition(function VL))
call TriggerAddAction(dO,function EL)
set DO=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(DO,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(DO,Condition(function OL))
call TriggerAddAction(DO,function RL)
call qL()
set FO=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(FO,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(FO,Condition(function yL))
call TriggerAddAction(FO,function zL)
set gO=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gO,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gO,Condition(function vm))
call TriggerAddAction(gO,function em)
set GO=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(GO,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(GO,Condition(function om))
call TriggerAddAction(GO,function rm)
set hO=CreateTrigger()
call TriggerRegisterGameStateEventTimeOfDay(hO,EQUAL,6.)
call TriggerAddAction(hO,function am)
set HO=CreateTrigger()
call TriggerRegisterGameStateEventTimeOfDay(HO,EQUAL,18.)
call TriggerAddAction(HO,function Vm)
call Im()
call Nm()
call dm()
call gm()
call Jm()
set LO=CreateTrigger()
call TriggerRegisterUnitEvent(LO,DI,EVENT_UNIT_DEATH)
call TriggerAddAction(LO,function km)
set mO=CreateTrigger()
call TriggerRegisterUnitEvent(mO,UI,EVENT_UNIT_DEATH)
call TriggerAddAction(mO,function lm)
set MO=CreateTrigger()
call TriggerRegisterUnitEvent(MO,HI,EVENT_UNIT_DEATH)
call TriggerAddAction(MO,function mm)
set pO=CreateTrigger()
call TriggerRegisterUnitEvent(pO,yI,EVENT_UNIT_DEATH)
call TriggerAddAction(pO,function pm)
set PO=CreateTrigger()
call TriggerRegisterUnitEvent(PO,zI,EVENT_UNIT_DEATH)
call TriggerAddAction(PO,function qm)
set qO=CreateTrigger()
call TriggerRegisterUnitEvent(qO,WI,EVENT_UNIT_DEATH)
call TriggerAddAction(qO,function sm)
set QO=CreateTrigger()
call TriggerRegisterUnitEvent(QO,eA,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(QO,oA,EVENT_UNIT_DEATH)
call TriggerAddCondition(QO,Condition(function tm))
call TriggerAddAction(QO,function Tm)
set sO=CreateTrigger()
call TriggerRegisterUnitEvent(sO,RA,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(sO,IA,EVENT_UNIT_DEATH)
call TriggerAddCondition(sO,Condition(function Um))
call TriggerAddAction(sO,function wm)
set SO=CreateTrigger()
call TriggerRegisterUnitEvent(SO,AA,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(SO,NA,EVENT_UNIT_DEATH)
call TriggerAddCondition(SO,Condition(function ym))
call TriggerAddAction(SO,function Ym)
set tO=CreateTrigger()
call TriggerRegisterUnitEvent(tO,bI,EVENT_UNIT_DEATH)
call TriggerAddAction(tO,function Zm)
set TO=CreateTrigger()
call TriggerRegisterUnitEvent(TO,lI,EVENT_UNIT_DEATH)
call TriggerAddAction(TO,function eM)
set uO=CreateTrigger()
call TriggerRegisterUnitEvent(uO,YI,EVENT_UNIT_DEATH)
call TriggerAddAction(uO,function oM)
set UO=CreateTrigger()
call TriggerRegisterUnitEvent(UO,FA,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(UO,fA,EVENT_UNIT_DEATH)
call TriggerAddCondition(UO,Condition(function iM))
call TriggerAddAction(UO,function aM)
set wO=CreateTrigger()
call TriggerRegisterUnitEvent(wO,ZI,EVENT_UNIT_DEATH)
call TriggerAddAction(wO,function VM)
set WO=CreateTrigger()
call TriggerRegisterUnitEvent(WO,iA,EVENT_UNIT_DEATH)
call TriggerAddAction(WO,function XM)
set yO=CreateTrigger()
call TriggerRegisterUnitEvent(yO,pI,EVENT_UNIT_DEATH)
call TriggerAddAction(yO,function RM)
set YO=CreateTrigger()
call TriggerRegisterUnitEvent(YO,BI,EVENT_UNIT_DEATH)
call TriggerAddAction(YO,function AM)
set zO=CreateTrigger()
call TriggerRegisterUnitEvent(zO,hI,EVENT_UNIT_DEATH)
call TriggerAddAction(zO,function bM)
set ZO=CreateTrigger()
call TriggerRegisterUnitEvent(ZO,FI,EVENT_UNIT_DEATH)
call TriggerAddAction(ZO,function cM)
set vR=CreateTrigger()
call TriggerRegisterUnitEvent(vR,dI,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(vR,gA,EVENT_UNIT_DEATH)
call TriggerAddCondition(vR,Condition(function dM))
call TriggerAddAction(vR,function DM)
set eR=CreateTrigger()
call TriggerRegisterUnitEvent(eR,bA,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(eR,TI,EVENT_UNIT_DEATH)
call TriggerAddCondition(eR,Condition(function FM))
call TriggerAddAction(eR,function gM)
set xR=CreateTrigger()
call TriggerRegisterUnitEvent(xR,BA,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(xR,DA,EVENT_UNIT_DEATH)
call TriggerAddCondition(xR,Condition(function hM))
call TriggerAddAction(xR,function HM)
set oR=CreateTrigger()
call TriggerRegisterUnitEvent(oR,qI,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(oR,sI,EVENT_UNIT_DEATH)
call TriggerAddCondition(oR,Condition(function JM))
call TriggerAddAction(oR,function kM)
set rR=CreateTrigger()
call TriggerRegisterUnitEvent(rR,CI,EVENT_UNIT_DEATH)
call TriggerAddAction(rR,function lM)
set iR=CreateTrigger()
call TriggerRegisterUnitEvent(iR,QI,EVENT_UNIT_DEATH)
call TriggerAddAction(iR,function mM)
set aR=CreateTrigger()
call TriggerRegisterUnitEvent(aR,rA,EVENT_UNIT_DEATH)
call TriggerAddAction(aR,function pM)
set nR=CreateTrigger()
call TriggerRegisterUnitEvent(nR,hA,EVENT_UNIT_DEATH)
call TriggerAddAction(nR,function qM)
set VR=CreateTrigger()
call TriggerRegisterUnitEvent(VR,GA,EVENT_UNIT_DEATH)
call TriggerAddAction(VR,function sM)
set zM=CreateTrigger()
set ER=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(ER,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerRegisterAnyUnitEventBJ(zM,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(ER,Condition(function tM))
call TriggerAddCondition(zM,Condition(function UM))
call TriggerAddAction(ER,function TM)
call TriggerAddAction(zM,function yM)
set zM=null
set XR=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(XR,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(XR,Condition(function ZM))
call TriggerAddAction(XR,function ep)
set OR=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(OR,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(OR,Condition(function op))
call TriggerAddAction(OR,function rp)
set RR=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(RR,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(RR,Condition(function ap))
call TriggerAddAction(RR,function Op)
set fp=CreateTrigger()
set IR=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(IR,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerRegisterAnyUnitEventBJ(fp,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(IR,Condition(function cp))
call TriggerAddCondition(fp,Condition(function Ip))
call TriggerAddAction(IR,function dp)
call TriggerAddAction(fp,function Bp)
set fp=null
set AR=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(AR,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(AR,Condition(function Fp))
call TriggerAddAction(AR,function gp)
set NR=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(NR,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(NR,Condition(function hp))
call TriggerAddAction(NR,function Jp)
set Qp=CreateTrigger()
set bR=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(bR,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerRegisterAnyUnitEventBJ(Qp,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(bR,Condition(function Kp))
call TriggerAddCondition(Qp,Condition(function pp))
call TriggerAddAction(bR,function mp)
call TriggerAddAction(Qp,function Pp)
set Qp=null
set Zp=CreateTrigger()
set vP=CreateTrigger()
set BR=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(BR,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerRegisterAnyUnitEventBJ(Zp,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerRegisterAnyUnitEventBJ(vP,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(BR,Condition(function Sp))
call TriggerAddCondition(Zp,Condition(function wp))
call TriggerAddCondition(vP,Condition(function yp))
call TriggerAddAction(BR,function Up)
call TriggerAddAction(Zp,function Wp)
call TriggerAddAction(vP,function Yp)
set Zp=null
set vP=null
set bP=CreateTrigger()
set BP=CreateTrigger()
set cP=CreateTrigger()
set CP=CreateTrigger()
set dP=CreateTrigger()
set DP=CreateTrigger()
set cR=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(cR,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerRegisterAnyUnitEventBJ(BP,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerRegisterAnyUnitEventBJ(CP,EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER)
call TriggerRegisterAnyUnitEventBJ(cP,EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER)
call TriggerRegisterAnyUnitEventBJ(cP,EVENT_PLAYER_UNIT_ISSUED_ORDER)
call TriggerRegisterAnyUnitEventBJ(cP,EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterAnyUnitEventBJ(dP,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(cR,Condition(function eP))
call TriggerAddCondition(BP,Condition(function rP))
call TriggerAddCondition(CP,Condition(function aP))
call TriggerAddCondition(cP,Condition(function VP))
call TriggerAddCondition(dP,Condition(function OP))
call TriggerAddCondition(DP,Condition(function IP))
call TriggerAddAction(cR,function xP)
call TriggerAddAction(BP,function iP)
call TriggerAddAction(CP,function nP)
call TriggerAddAction(cP,function EP)
call TriggerAddAction(dP,function RP)
call TriggerAddAction(DP,function AP)
set BP=null
set CP=null
set cP=null
set dP=null
set DP=null
set MP=CreateTrigger()
set pP=CreateTrigger()
set CR=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(CR,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerRegisterAnyUnitEventBJ(MP,EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER)
call TriggerRegisterAnyUnitEventBJ(pP,EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER)
call TriggerAddCondition(CR,Condition(function fP))
call TriggerAddCondition(MP,Condition(function jP))
call TriggerAddCondition(pP,Condition(function lP))
call TriggerAddAction(CR,function gP)
call TriggerAddAction(MP,function JP)
call TriggerAddAction(pP,function LP)
set MP=null
set pP=null
set dR=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(dR,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(dR,Condition(function PP))
call TriggerAddAction(dR,function SP)
set DR=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(DR,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(DR,Condition(function TP))
call TriggerAddAction(DR,function UP)
set fR=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(fR,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(fR,Condition(function WP))
call TriggerAddAction(fR,function yP)
set Eq=CreateTrigger()
set FR=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(FR,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerRegisterAnyUnitEventBJ(Eq,EVENT_PLAYER_UNIT_SPELL_ENDCAST)
call TriggerAddCondition(FR,Condition(function zP))
call TriggerAddCondition(Eq,Condition(function aq))
call TriggerAddAction(FR,function iq)
call TriggerAddAction(Eq,function nq)
set Eq=null
set Bq=CreateTrigger()
set cq=CreateTrigger()
set gR=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(Bq,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerRegisterAnyUnitEventBJ(cq,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerRegisterAnyUnitEventBJ(gR,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gR,Condition(function Oq))
call TriggerAddCondition(Bq,Condition(function Iq))
call TriggerAddCondition(cq,Condition(function Iq))
call TriggerAddAction(gR,function Rq)
call TriggerAddAction(Bq,function Aq)
call TriggerAddAction(cq,function Nq)
set Bq=null
set cq=null
set GR=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(GR,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(GR,Condition(function dq))
call TriggerAddAction(GR,function Dq)
set Jq=CreateTrigger()
set hR=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(hR,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerRegisterAnyUnitEventBJ(Jq,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(hR,Condition(function hq))
call TriggerAddCondition(Jq,Condition(function gq))
call TriggerAddAction(hR,function Hq)
call TriggerAddAction(Jq,function Gq)
set Jq=null
set Pq=CreateTrigger()
set HR=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(HR,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerRegisterAnyUnitEventBJ(Pq,EVENT_PLAYER_UNIT_ISSUED_ORDER)
call TriggerRegisterAnyUnitEventBJ(Pq,EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER)
call TriggerRegisterAnyUnitEventBJ(Pq,EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER)
call TriggerAddCondition(HR,Condition(function kq))
call TriggerAddCondition(Pq,Condition(function mq))
call TriggerAddAction(HR,function Lq)
call TriggerAddAction(Pq,function Mq)
set Pq=null
set jR=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(jR,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(jR,Condition(function qq))
call TriggerAddAction(jR,function fQ)
set pQ=CreateTrigger()
set PQ=CreateTrigger()
set JR=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(JR,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerRegisterAnyUnitEventBJ(pQ,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerRegisterAnyUnitEventBJ(PQ,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(JR,Condition(function hQ))
call TriggerAddCondition(pQ,Condition(function KQ))
call TriggerAddCondition(PQ,Condition(function LQ))
call TriggerAddAction(JR,function JQ)
call TriggerAddAction(pQ,function lQ)
call TriggerAddAction(PQ,function mQ)
set pQ=null
set PQ=null
set yQ=CreateTrigger()
set YQ=CreateTrigger()
set kR=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(kR,EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER)
call TriggerRegisterAnyUnitEventBJ(kR,EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER)
call TriggerRegisterAnyUnitEventBJ(kR,EVENT_PLAYER_UNIT_ISSUED_ORDER)
call TriggerRegisterAnyUnitEventBJ(kR,EVENT_PLAYER_UNIT_DROP_ITEM)
call TriggerRegisterAnyUnitEventBJ(kR,EVENT_PLAYER_UNIT_PAWN_ITEM)
call TriggerRegisterAnyUnitEventBJ(kR,EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterAnyUnitEventBJ(YQ,EVENT_PLAYER_HERO_SKILL)
call TriggerRegisterAnyUnitEventBJ(yQ,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(kR,Condition(function SQ))
call TriggerAddCondition(YQ,Condition(function UQ))
call TriggerAddCondition(yQ,Condition(function TQ))
call TriggerAddAction(kR,function tQ)
call TriggerAddAction(YQ,function wQ)
call TriggerAddAction(yQ,function uQ)
set yQ=null
set YQ=null
set KR=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(KR,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(KR,Condition(function zQ))
call TriggerAddAction(KR,function es)
set lR=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(lR,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(lR,Condition(function os))
call TriggerAddAction(lR,function ns)
set LR=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(LR,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(LR,Condition(function Is))
call TriggerAddAction(LR,function bs)
set ls=CreateTrigger()
set Ls=CreateTrigger()
set ms=CreateTrigger()
set mR=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(mR,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterAnyUnitEventBJ(ls,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerRegisterAnyUnitEventBJ(Ls,EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterAnyUnitEventBJ(ms,EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER)
call TriggerRegisterAnyUnitEventBJ(ms,EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER)
call TriggerRegisterAnyUnitEventBJ(ms,EVENT_PLAYER_UNIT_ISSUED_ORDER)
call TriggerAddCondition(mR,Condition(function Ds))
call TriggerAddCondition(ls,Condition(function hs))
call TriggerAddCondition(Ls,Condition(function Fs))
call TriggerAddCondition(ms,Condition(function js))
call TriggerAddAction(mR,function fs)
call TriggerAddAction(ls,function Hs)
call TriggerAddAction(Ls,function gs)
call TriggerAddAction(ms,function ks)
set ls=null
set Ls=null
set ms=null
set ws=CreateTrigger()
set Ws=CreateTrigger()
set ys=CreateTrigger()
set MR=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(MR,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerRegisterAnyUnitEventBJ(ws,EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER)
call TriggerRegisterAnyUnitEventBJ(ws,EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER)
call TriggerRegisterAnyUnitEventBJ(Ws,EVENT_PLAYER_UNIT_ISSUED_ORDER)
call TriggerRegisterAnyUnitEventBJ(ys,EVENT_PLAYER_UNIT_SPELL_ENDCAST)
call TriggerAddCondition(MR,Condition(function Ms))
call TriggerAddCondition(ws,Condition(function Ss))
call TriggerAddCondition(Ws,Condition(function Ss))
call TriggerAddCondition(ys,Condition(function Ms))
call TriggerAddAction(MR,function ss)
call TriggerAddAction(ws,function ts)
call TriggerAddAction(Ws,function Ts)
call TriggerAddAction(ys,function us)
set ws=null
set Ws=null
set ys=null
set pR=CreateTrigger()
call TriggerRegisterEnterRectSimple(pR,bj_mapInitialPlayableArea)
call TriggerAddCondition(pR,Condition(function Ys))
call TriggerAddAction(pR,function zs)
set PR=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(PR,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(PR,Condition(function vS))
call TriggerAddAction(PR,function eS)
call XS()
set QR=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(QR,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(QR,Condition(function mh))
call TriggerAddAction(QR,function IS)
set gS=CreateTrigger()
set GS=CreateTrigger()
set sR=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(sR,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerRegisterAnyUnitEventBJ(gS,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerRegisterAnyUnitEventBJ(GS,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(sR,Condition(function NS))
call TriggerAddCondition(gS,Condition(function cS))
call TriggerAddCondition(GS,Condition(function dS))
call TriggerAddAction(sR,function bS)
call TriggerAddAction(gS,function CS)
call TriggerAddAction(GS,function DS)
set gS=null
set GS=null
call SS()
set tR=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(tR,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(tR,Condition(function yS))
call TriggerAddAction(tR,function ZS)
set It=CreateTrigger()
set At=CreateTrigger()
set TR=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(TR,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerRegisterEnterRectSimple(It,bj_mapInitialPlayableArea)
call TriggerRegisterAnyUnitEventBJ(At,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(TR,Condition(function et))
call TriggerAddCondition(It,Condition(function Vt))
call TriggerAddCondition(At,Condition(function Xt))
call TriggerAddAction(TR,function rt)
call TriggerAddAction(It,function Et)
call TriggerAddAction(At,function Ot)
set It=null
set At=null
set gt=CreateTrigger()
set Gt=CreateTrigger()
set uR=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(uR,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerRegisterEnterRectSimple(gt,bj_mapInitialPlayableArea)
call TriggerRegisterAnyUnitEventBJ(Gt,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(uR,Condition(function Nt))
call TriggerAddCondition(gt,Condition(function ct))
call TriggerAddCondition(Gt,Condition(function ct))
call TriggerAddAction(uR,function bt)
call TriggerAddAction(gt,function Ct)
call TriggerAddAction(Gt,function Dt)
set gt=null
set Gt=null
set Pt=CreateTrigger()
set qt=CreateTrigger()
set Qt=CreateTrigger()
set UR=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(UR,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerRegisterAnyUnitEventBJ(Pt,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerRegisterAnyUnitEventBJ(qt,EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterAnyUnitEventBJ(Qt,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(UR,Condition(function ht))
call TriggerAddCondition(Pt,Condition(function Kt))
call TriggerAddCondition(qt,Condition(function Jt))
call TriggerAddCondition(Qt,Condition(function Lt))
call TriggerAddAction(UR,function Ht)
call TriggerAddAction(Pt,function lt)
call TriggerAddAction(qt,function kt)
call TriggerAddAction(Qt,function mt)
set Pt=null
set qt=null
set Qt=null
set Zt=CreateTrigger()
set vT=CreateTrigger()
set eT=CreateTrigger()
set wR=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(wR,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerRegisterAnyUnitEventBJ(Zt,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerRegisterAnyUnitEventBJ(vT,EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterAnyUnitEventBJ(eT,EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER)
call TriggerRegisterAnyUnitEventBJ(eT,EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER)
call TriggerAddCondition(wR,Condition(function St))
call TriggerAddCondition(Zt,Condition(function ut))
call TriggerAddCondition(vT,Condition(function wt))
call TriggerAddCondition(eT,Condition(function yt))
call TriggerAddAction(wR,function tt)
call TriggerAddAction(Zt,function Ut)
call TriggerAddAction(vT,function Wt)
call TriggerAddAction(eT,function Yt)
set Zt=null
set vT=null
set eT=null
call bT()
set yR=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(yR,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(yR,Condition(function gT))
call TriggerAddAction(yR,function GT)
set YR=CreateTrigger()
call TriggerRegisterEnterRectSimple(YR,pE)
call TriggerRegisterEnterRectSimple(YR,PE)
call TriggerAddCondition(YR,Condition(function HT))
call TriggerAddAction(YR,function jT)
call sT()
set vu=CreateTrigger()
set eu=CreateTrigger()
set ZR=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(ZR,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerRegisterAnyUnitEventBJ(eu,EVENT_PLAYER_UNIT_ISSUED_ORDER)
call TriggerRegisterAnyUnitEventBJ(vu,EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER)
call TriggerRegisterAnyUnitEventBJ(vu,EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER)
call TriggerAddCondition(ZR,Condition(function tT))
call TriggerAddCondition(vu,Condition(function wT))
call TriggerAddCondition(eu,Condition(function YT))
call TriggerAddAction(ZR,function uT)
call TriggerAddAction(vu,function yT)
call TriggerAddAction(eu,function zT)
set vu=null
set eu=null
set vI=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(vI,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(vI,Condition(function xu))
call TriggerAddAction(vI,function au)
set Nu=CreateTrigger()
set bu=CreateTrigger()
set eI=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(eI,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterAnyUnitEventBJ(Nu,EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER)
call TriggerRegisterAnyUnitEventBJ(bu,EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER)
call TriggerAddCondition(eI,Condition(function Ru))
call TriggerAddCondition(Nu,Condition(function Eu))
call TriggerAddCondition(bu,Condition(function Xu))
call TriggerAddAction(eI,function Iu)
call TriggerAddAction(Nu,function Ou)
call TriggerAddAction(bu,function Ou)
set Nu=null
set bu=null
set Fu=CreateTrigger()
set xI=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(xI,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerRegisterAnyUnitEventBJ(Fu,EVENT_PLAYER_UNIT_SPELL_ENDCAST)
call TriggerAddCondition(xI,Condition(function Bu))
call TriggerAddCondition(Fu,Condition(function Bu))
call TriggerAddAction(xI,function du)
call TriggerAddAction(Fu,function Du)
set Fu=null
set oI=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(oI,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(oI,Condition(function gu))
call TriggerAddAction(oI,function Hu)
set rI=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(rI,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(rI,Condition(function Ju))
call TriggerAddAction(rI,function ku)
set iI=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(iI,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(iI,Condition(function lu))
call TriggerAddAction(iI,function mu)
set su=CreateTrigger()
set aI=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(aI,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerRegisterEnterRectSimple(su,bj_mapInitialPlayableArea)
call TriggerAddCondition(aI,Condition(function pu))
call TriggerAddCondition(su,Condition(function th))
call TriggerAddAction(aI,function qu)
call TriggerAddAction(su,function Th)
set su=null
set nI=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(nI,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(nI,Condition(function Su))
call TriggerAddAction(nI,function Tu)
set VI=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(VI,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(VI,Condition(function Uu))
call TriggerAddAction(VI,function Wu)
set NU=CreateTrigger()
set bU=CreateTrigger()
set EI=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(EI,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerRegisterAnyUnitEventBJ(NU,EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER)
call TriggerRegisterAnyUnitEventBJ(NU,EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER)
call TriggerRegisterAnyUnitEventBJ(bU,EVENT_PLAYER_UNIT_ISSUED_ORDER)
call TriggerAddCondition(EI,Condition(function Yu))
call TriggerAddCondition(NU,Condition(function eU))
call TriggerAddCondition(bU,Condition(function RU))
call TriggerAddAction(EI,function Zu)
call TriggerAddAction(NU,function aU)
call TriggerAddAction(bU,function IU)
set NU=null
set bU=null
set XI=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(XI,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(XI,Condition(function BU))
call TriggerAddAction(XI,function cU)
set OI=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(OI,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(OI,Condition(function dU))
call TriggerAddAction(OI,function DU)
set RI=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(RI,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(RI,Condition(function FU))
call TriggerAddAction(RI,function gU)
set II=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(II,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(II,Condition(function hU))
call TriggerAddAction(II,function kU)
set AI=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(AI,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(AI,Condition(function lU))
call TriggerAddAction(AI,function pU)
set tU=CreateTrigger()
set NI=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(NI,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerRegisterAnyUnitEventBJ(tU,EVENT_PLAYER_UNIT_SPELL_ENDCAST)
call TriggerAddCondition(NI,Condition(function qU))
call TriggerAddCondition(tU,Condition(function qU))
call TriggerAddAction(NI,function QU)
call TriggerAddAction(tU,function sU)
set tU=null
call ConditionalTriggerExecute(dX)
call ConditionalTriggerExecute(DX)
call ConditionalTriggerExecute(fX)
call ConditionalTriggerExecute(tX)
endfunction
function config takes nothing returns nothing
call SetMapName("TRIGSTR_009")
call SetMapDescription("TRIGSTR_011")
EDIT: It looks normal here, but in the trigger section it's setup like normal text in my editor.