// Map deprotected by X-deprotect (version 2006-10-02) by zibada
// http://dimon.xgm.ru/xdep/
// Visit our modmaking community at http://xgm.ru/
Name | Type | is_array | initial_value |
boolean01 | boolean | No | |
boolean02 | boolean | No | |
boolean03 | boolean | No | |
boolean04 | boolean | No | |
boolean05 | boolean | No | |
booleans01 | boolean | Yes | |
booleans02 | boolean | Yes | |
buttons01 | button | Yes | |
dialog01 | dialog | No | |
effects01 | effect | Yes | |
effects02 | effect | Yes | |
effects03 | effect | Yes | |
effects04 | effect | Yes | |
effects05 | effect | Yes | |
forces01 | force | Yes | |
forces02 | force | Yes | |
groups01 | group | Yes | |
integer01 | integer | No | |
integer02 | integer | No | |
integer03 | integer | No | |
integer04 | integer | No | |
integer05 | integer | No | |
integers01 | integer | Yes | |
integers02 | integer | Yes | |
integers03 | integer | Yes | |
integers04 | integer | Yes | |
integers05 | integer | Yes | |
integers06 | integer | Yes | |
integers07 | integer | Yes | |
integers08 | integer | Yes | |
integers09 | integer | Yes | |
integers10 | integer | Yes | |
integers11 | integer | Yes | |
integers12 | integer | Yes | |
integers13 | integer | Yes | |
integers14 | integer | Yes | |
location01 | location | No | |
locations01 | location | Yes | |
locations02 | location | Yes | |
real01 | real | No | |
rect01 | rect | No | |
rect02 | rect | No | |
rect03 | rect | No | |
rect04 | rect | No | |
rect05 | rect | No | |
rect06 | rect | No | |
rect07 | rect | No | |
rect08 | rect | No | |
rect09 | rect | No | |
rect10 | rect | No | |
rect11 | rect | No | |
rect12 | rect | No | |
rect13 | rect | No | |
rect14 | rect | No | |
rect15 | rect | No | |
rect16 | rect | No | |
rect17 | rect | No | |
rect18 | rect | No | |
rect19 | rect | No | |
rect20 | rect | No | |
rect21 | rect | No | |
rect22 | rect | No | |
rect23 | rect | No | |
rect24 | rect | No | |
rect25 | rect | No | |
rect26 | rect | No | |
rect27 | rect | No | |
rect28 | rect | No | |
rect29 | rect | No | |
rect30 | rect | No | |
rect31 | rect | No | |
rects01 | rect | Yes | |
sound01 | sound | No | |
sound02 | sound | No | |
sound03 | sound | No | |
sound04 | sound | No | |
sound05 | sound | No | |
sound06 | sound | No | |
sound07 | sound | No | |
sound08 | sound | No | |
sound09 | sound | No | |
sound10 | sound | No | |
sound11 | sound | No | |
sound12 | sound | No | |
sound13 | sound | No | |
sound14 | sound | No | |
sound15 | sound | No | |
sound16 | sound | No | |
sound17 | sound | No | |
sound18 | sound | No | |
sound19 | sound | No | |
sound20 | sound | No | |
sound21 | sound | No | |
sound22 | sound | No | |
sound23 | sound | No | |
timerdialogs01 | timerdialog | Yes | |
timers01 | timer | Yes | |
trigger01 | trigger | No | |
trigger02 | trigger | No | |
trigger03 | trigger | No | |
trigger04 | trigger | No | |
trigger05 | trigger | No | |
trigger06 | trigger | No | |
trigger07 | trigger | No | |
trigger08 | trigger | No | |
trigger09 | trigger | No | |
trigger10 | trigger | No | |
trigger100 | trigger | No | |
trigger101 | trigger | No | |
trigger102 | trigger | No | |
trigger103 | trigger | No | |
trigger104 | trigger | No | |
trigger105 | trigger | No | |
trigger106 | trigger | No | |
trigger107 | trigger | No | |
trigger108 | trigger | No | |
trigger109 | trigger | No | |
trigger11 | trigger | No | |
trigger110 | trigger | No | |
trigger111 | trigger | No | |
trigger112 | trigger | No | |
trigger113 | trigger | No | |
trigger114 | trigger | No | |
trigger115 | trigger | No | |
trigger116 | trigger | No | |
trigger117 | trigger | No | |
trigger118 | trigger | No | |
trigger119 | trigger | No | |
trigger12 | trigger | No | |
trigger120 | trigger | No | |
trigger121 | trigger | No | |
trigger122 | trigger | No | |
trigger123 | trigger | No | |
trigger124 | trigger | No | |
trigger125 | trigger | No | |
trigger126 | trigger | No | |
trigger127 | trigger | No | |
trigger128 | trigger | No | |
trigger129 | trigger | No | |
trigger13 | trigger | No | |
trigger130 | trigger | No | |
trigger131 | trigger | No | |
trigger132 | trigger | No | |
trigger133 | trigger | No | |
trigger134 | trigger | No | |
trigger135 | trigger | No | |
trigger136 | trigger | No | |
trigger137 | trigger | No | |
trigger138 | trigger | No | |
trigger139 | trigger | No | |
trigger14 | trigger | No | |
trigger140 | trigger | No | |
trigger141 | trigger | No | |
trigger142 | trigger | No | |
trigger143 | trigger | No | |
trigger144 | trigger | No | |
trigger145 | trigger | No | |
trigger146 | trigger | No | |
trigger147 | trigger | No | |
trigger148 | trigger | No | |
trigger149 | trigger | No | |
trigger15 | trigger | No | |
trigger150 | trigger | No | |
trigger151 | trigger | No | |
trigger152 | trigger | No | |
trigger153 | trigger | No | |
trigger154 | trigger | No | |
trigger155 | trigger | No | |
trigger156 | trigger | No | |
trigger157 | trigger | No | |
trigger158 | trigger | No | |
trigger159 | trigger | No | |
trigger16 | trigger | No | |
trigger160 | trigger | No | |
trigger161 | trigger | No | |
trigger162 | trigger | No | |
trigger163 | trigger | No | |
trigger164 | trigger | No | |
trigger165 | trigger | No | |
trigger166 | trigger | No | |
trigger167 | trigger | No | |
trigger168 | trigger | No | |
trigger169 | trigger | No | |
trigger17 | trigger | No | |
trigger170 | trigger | No | |
trigger171 | trigger | No | |
trigger172 | trigger | No | |
trigger173 | trigger | No | |
trigger174 | trigger | No | |
trigger175 | trigger | No | |
trigger176 | trigger | No | |
trigger177 | trigger | No | |
trigger178 | trigger | No | |
trigger179 | trigger | No | |
trigger18 | trigger | No | |
trigger180 | trigger | No | |
trigger181 | trigger | No | |
trigger182 | trigger | No | |
trigger183 | trigger | No | |
trigger184 | trigger | No | |
trigger185 | trigger | No | |
trigger186 | trigger | No | |
trigger187 | trigger | No | |
trigger188 | trigger | No | |
trigger189 | trigger | No | |
trigger19 | trigger | No | |
trigger190 | trigger | No | |
trigger191 | trigger | No | |
trigger192 | trigger | No | |
trigger193 | trigger | No | |
trigger194 | trigger | No | |
trigger195 | trigger | No | |
trigger196 | trigger | No | |
trigger197 | trigger | No | |
trigger198 | trigger | No | |
trigger20 | trigger | No | |
trigger21 | trigger | No | |
trigger22 | trigger | No | |
trigger23 | trigger | No | |
trigger24 | trigger | No | |
trigger25 | trigger | No | |
trigger26 | trigger | No | |
trigger27 | trigger | No | |
trigger28 | trigger | No | |
trigger29 | trigger | No | |
trigger30 | trigger | No | |
trigger31 | trigger | No | |
trigger32 | trigger | No | |
trigger33 | trigger | No | |
trigger34 | trigger | No | |
trigger35 | trigger | No | |
trigger36 | trigger | No | |
trigger37 | trigger | No | |
trigger38 | trigger | No | |
trigger39 | trigger | No | |
trigger40 | trigger | No | |
trigger41 | trigger | No | |
trigger42 | trigger | No | |
trigger43 | trigger | No | |
trigger44 | trigger | No | |
trigger45 | trigger | No | |
trigger46 | trigger | No | |
trigger47 | trigger | No | |
trigger48 | trigger | No | |
trigger49 | trigger | No | |
trigger50 | trigger | No | |
trigger51 | trigger | No | |
trigger52 | trigger | No | |
trigger53 | trigger | No | |
trigger54 | trigger | No | |
trigger55 | trigger | No | |
trigger56 | trigger | No | |
trigger57 | trigger | No | |
trigger58 | trigger | No | |
trigger59 | trigger | No | |
trigger60 | trigger | No | |
trigger61 | trigger | No | |
trigger62 | trigger | No | |
trigger63 | trigger | No | |
trigger64 | trigger | No | |
trigger65 | trigger | No | |
trigger66 | trigger | No | |
trigger67 | trigger | No | |
trigger68 | trigger | No | |
trigger69 | trigger | No | |
trigger70 | trigger | No | |
trigger71 | trigger | No | |
trigger72 | trigger | No | |
trigger73 | trigger | No | |
trigger74 | trigger | No | |
trigger75 | trigger | No | |
trigger76 | trigger | No | |
trigger77 | trigger | No | |
trigger78 | trigger | No | |
trigger79 | trigger | No | |
trigger80 | trigger | No | |
trigger81 | trigger | No | |
trigger82 | trigger | No | |
trigger83 | trigger | No | |
trigger84 | trigger | No | |
trigger85 | trigger | No | |
trigger86 | trigger | No | |
trigger87 | trigger | No | |
trigger88 | trigger | No | |
trigger89 | trigger | No | |
trigger90 | trigger | No | |
trigger91 | trigger | No | |
trigger92 | trigger | No | |
trigger93 | trigger | No | |
trigger94 | trigger | No | |
trigger95 | trigger | No | |
trigger96 | trigger | No | |
trigger97 | trigger | No | |
trigger98 | trigger | No | |
trigger99 | trigger | No | |
unit01 | unit | No | |
unit02 | unit | No | |
unit03 | unit | No | |
unit04 | unit | No | |
unit05 | unit | No | |
unit06 | unit | No | |
unit07 | unit | No | |
unit08 | unit | No | |
unit09 | unit | No | |
unit10 | unit | No | |
unit11 | unit | No | |
unit12 | unit | No | |
unit13 | unit | No | |
unit14 | unit | No | |
unit15 | unit | No | |
unit16 | unit | No | |
unit17 | unit | No | |
unit18 | unit | No | |
unit19 | unit | No | |
unit20 | unit | No | |
unit21 | unit | No | |
unit22 | unit | No | |
unit23 | unit | No | |
unit24 | unit | No | |
unit25 | unit | No | |
unit26 | unit | No | |
unit27 | unit | No | |
unit28 | unit | No | |
unit29 | unit | No | |
unit30 | unit | No | |
unit31 | unit | No | |
unit32 | unit | No | |
unit33 | unit | No | |
unit34 | unit | No | |
unit35 | unit | No | |
unit36 | unit | No | |
unit37 | unit | No | |
unit38 | unit | No | |
unit39 | unit | No | |
unit40 | unit | No | |
unit41 | unit | No | |
unit42 | unit | No | |
unit43 | unit | No | |
unit44 | unit | No | |
unit45 | unit | No | |
unit46 | unit | No | |
units01 | unit | Yes | |
units02 | unit | Yes | |
units03 | unit | Yes | |
units04 | unit | Yes | |
units05 | unit | Yes | |
units06 | unit | Yes | |
units07 | unit | Yes |
// Map deprotected by X-deprotect (version 2006-10-02) by zibada
// http://dimon.xgm.ru/xdep/
// Visit our modmaking community at http://xgm.ru/
function InitGlobals2 takes nothing returns nothing
local integer i=0
set i=0
loop
exitwhen(i>12)
set udg_timers01[i]=CreateTimer()
set i=i+1
endloop
set i=0
loop
exitwhen(i>12)
set udg_groups01[i]=CreateGroup()
set i=i+1
endloop
set udg_integer01=0
set udg_boolean01=false
set udg_boolean02=false
set udg_boolean03=false
set i=0
loop
exitwhen(i>2)
set udg_integers03[i]=100
set i=i+1
endloop
set i=0
loop
exitwhen(i>10)
set udg_integers04[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>4)
set udg_integers05[i]=0
set i=i+1
endloop
set udg_dialog01=DialogCreate()
set i=0
loop
exitwhen(i>4)
set udg_integers06[i]=0
set i=i+1
endloop
set udg_real01=100.00
set udg_integer02=0
set udg_integer03=0
set i=0
loop
exitwhen(i>4)
set udg_forces01[i]=CreateForce()
set i=i+1
endloop
set i=0
loop
exitwhen(i>4)
set udg_forces02[i]=CreateForce()
set i=i+1
endloop
set udg_integer04=0
set udg_boolean04=false
set i=0
loop
exitwhen(i>4)
set udg_integers07[i]=0
set i=i+1
endloop
set udg_integer05=0
set i=0
loop
exitwhen(i>4)
set udg_booleans01[i]=false
set i=i+1
endloop
set udg_boolean05=false
set i=0
loop
exitwhen(i>10)
set udg_integers10[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>8)
set udg_booleans02[i]=false
set i=i+1
endloop
endfunction
//***************************************************************************
//*
//*Sounds
//*
//***************************************************************************
//***************************************************************************
//*
//*Unit Creation
//*
//***************************************************************************
//===========================================================================
function CreateBuildingsForPlayer0 takes nothing returns nothing
local player p=Player(0)
local unit u
local integer unitID
local trigger t
local real life
set udg_unit39=CreateUnit(p,'h000',6400.0,2816.0,270.000)
endfunction
//===========================================================================
function CreateBuildingsForPlayer1 takes nothing returns nothing
local player p=Player(1)
local unit u
local integer unitID
local trigger t
local real life
set udg_unit40=CreateUnit(p,'h000',6400.0,3328.0,270.000)
endfunction
//===========================================================================
function CreateBuildingsForPlayer2 takes nothing returns nothing
local player p=Player(2)
local unit u
local integer unitID
local trigger t
local real life
set udg_unit34=CreateUnit(p,'h000',6400.0,3840.0,270.000)
endfunction
//===========================================================================
function CreateBuildingsForPlayer3 takes nothing returns nothing
local player p=Player(3)
local unit u
local integer unitID
local trigger t
local real life
set udg_unit31=CreateUnit(p,'h000',6400.0,4352.0,270.000)
endfunction
//===========================================================================
function CreateBuildingsForPlayer4 takes nothing returns nothing
local player p=Player(4)
local unit u
local integer unitID
local trigger t
local real life
set udg_unit35=CreateUnit(p,'h000',-2304.0,2816.0,270.000)
endfunction
//===========================================================================
function CreateBuildingsForPlayer5 takes nothing returns nothing
local player p=Player(5)
local unit u
local integer unitID
local trigger t
local real life
set udg_unit36=CreateUnit(p,'h000',-2304.0,3328.0,270.000)
endfunction
//===========================================================================
function CreateBuildingsForPlayer6 takes nothing returns nothing
local player p=Player(6)
local unit u
local integer unitID
local trigger t
local real life
set udg_unit37=CreateUnit(p,'h000',-2304.0,3840.0,270.000)
endfunction
//===========================================================================
function CreateBuildingsForPlayer7 takes nothing returns nothing
local player p=Player(7)
local unit u
local integer unitID
local trigger t
local real life
set udg_unit38=CreateUnit(p,'h000',-2304.0,4352.0,270.000)
endfunction
//===========================================================================
function CreateNeutralPassiveBuildings2 takes nothing returns nothing
local player p=Player(PLAYER_NEUTRAL_PASSIVE)
local unit u
local integer unitID
local trigger t
local real life
set udg_unit02=CreateUnit(p,'ncop',1216.0,-1152.0,270.000)
set udg_unit03=CreateUnit(p,'ncop',1216.0,-960.0,270.000)
set udg_unit04=CreateUnit(p,'ncop',1216.0,-768.0,270.000)
set udg_unit05=CreateUnit(p,'ncop',1216.0,-320.0,270.000)
set udg_unit06=CreateUnit(p,'ncop',1216.0,-128.0,270.000)
set udg_unit07=CreateUnit(p,'ncop',1216.0,64.0,270.000)
set udg_unit08=CreateUnit(p,'ncop',2880.0,-1152.0,270.000)
set udg_unit09=CreateUnit(p,'ncop',2880.0,-960.0,270.000)
set udg_unit10=CreateUnit(p,'ncop',2880.0,-768.0,270.000)
set udg_unit11=CreateUnit(p,'ncop',2880.0,-320.0,270.000)
set udg_unit12=CreateUnit(p,'ncop',2880.0,-128.0,270.000)
set udg_unit13=CreateUnit(p,'ncop',2880.0,64.0,270.000)
set udg_unit14=CreateUnit(p,'ncop',2368.0,256.0,270.000)
set udg_unit15=CreateUnit(p,'ncop',2176.0,256.0,270.000)
set udg_unit16=CreateUnit(p,'ncop',1984.0,256.0,270.000)
set udg_unit17=CreateUnit(p,'ncop',1408.0,256.0,270.000)
set udg_unit18=CreateUnit(p,'ncop',1600.0,256.0,270.000)
set udg_unit19=CreateUnit(p,'ncop',1792.0,256.0,270.000)
set udg_unit20=CreateUnit(p,'ncop',2560.0,-1344.0,270.000)
set udg_unit21=CreateUnit(p,'ncop',2368.0,-1344.0,270.000)
set udg_unit22=CreateUnit(p,'ncop',2176.0,-1344.0,270.000)
set udg_unit23=CreateUnit(p,'ncop',1408.0,-1344.0,270.000)
set udg_unit24=CreateUnit(p,'ncop',1600.0,-1344.0,270.000)
set udg_unit25=CreateUnit(p,'ncop',1792.0,-1344.0,270.000)
set udg_unit26=CreateUnit(p,'n000',-2304.0,-3072.0,270.000)
set udg_unit27=CreateUnit(p,'n000',6400.0,-3072.0,270.000)
set u=CreateUnit(p,'n001',-2816.0,-2688.0,270.000)
set u=CreateUnit(p,'n001',5888.0,-2688.0,270.000)
set u=CreateUnit(p,'n003',-960.0,-256.0,270.000)
set u=CreateUnit(p,'n003',7744.0,-256.0,270.000)
set u=CreateUnit(p,'n004',-2304.0,-2688.0,270.000)
set u=CreateUnit(p,'n005',-1792.0,-2688.0,270.000)
set u=CreateUnit(p,'n004',6400.0,-2688.0,270.000)
set u=CreateUnit(p,'n005',6912.0,-2688.0,270.000)
set u=CreateUnit(p,'n006',5376.0,-2688.0,270.000)
set u=CreateUnit(p,'n006',-3328.0,-2688.0,270.000)
set u=CreateUnit(p,'n007',5056.0,-256.0,270.000)
set u=CreateUnit(p,'n007',-3648.0,-256.0,270.000)
set u=CreateUnit(p,'n008',-1280.0,-2688.0,270.000)
set u=CreateUnit(p,'n008',7424.0,-2688.0,270.000)
set u=CreateUnit(p,'ncop',-4096.0,192.0,270.000)
set u=CreateUnit(p,'ncop',-3904.0,-4480.0,270.000)
set u=CreateUnit(p,'ncop',-704.0,-4480.0,270.000)
set u=CreateUnit(p,'ncop',-512.0,192.0,270.000)
set u=CreateUnit(p,'ncop',4800.0,-4480.0,270.000)
set u=CreateUnit(p,'ncop',8000.0,-4480.0,270.000)
set u=CreateUnit(p,'ncop',4608.0,192.0,270.000)
set u=CreateUnit(p,'ncop',8192.0,192.0,270.000)
set udg_unit30=CreateUnit(p,'ncop',1984.0,-1344.0,270.000)
set u=CreateUnit(p,'n01Z',-4864.0,-6400.0,270.000)
set udg_unit32=CreateUnit(p,'ncop',2560.0,256.0,270.000)
set udg_unit33=CreateUnit(p,'ncop',2752.0,256.0,270.000)
set u=CreateUnit(p,'n01Z',8960.0,-6400.0,270.000)
set udg_unit29=CreateUnit(p,'ncop',1216.0,-576.0,270.000)
set udg_unit28=CreateUnit(p,'ncop',2880.0,-576.0,270.000)
set udg_unit41=CreateUnit(p,'ncop',2752.0,-1344.0,270.000)
set udg_unit42=CreateUnit(p,'ncop',1600.0,-128.0,270.000)
set udg_unit43=CreateUnit(p,'ncop',1600.0,-960.0,270.000)
set udg_unit44=CreateUnit(p,'ncop',2496.0,-960.0,270.000)
set udg_unit45=CreateUnit(p,'ncop',2496.0,-128.0,270.000)
set udg_unit46=CreateUnit(p,'n021',2048.0,-128.0,270.000)
endfunction
//===========================================================================
function CreateNeutralPassive2 takes nothing returns nothing
local player p=Player(PLAYER_NEUTRAL_PASSIVE)
local unit u
local integer unitID
local trigger t
local real life
set u=CreateUnit(p,'E003',1079.5,-313.5,0.000)
call SetUnitState(u,UNIT_STATE_MANA,48)
set u=CreateUnit(p,'E005',1096.4,-133.2,0.000)
call SetUnitState(u,UNIT_STATE_MANA,48)
set u=CreateUnit(p,'E006',1077.7,64.5,0.000)
call SetUnitState(u,UNIT_STATE_MANA,48)
set u=CreateUnit(p,'E007',1406.2,384.1,270.000)
call SetUnitState(u,UNIT_STATE_MANA,16)
set u=CreateUnit(p,'E001',1601.7,376.7,280.000)
call SetUnitState(u,UNIT_STATE_MANA,48)
set u=CreateUnit(p,'E004',1790.2,384.8,270.000)
call SetUnitState(u,UNIT_STATE_MANA,48)
set u=CreateUnit(p,'E002',1988.4,393.0,270.000)
call SetUnitState(u,UNIT_STATE_MANA,48)
set u=CreateUnit(p,'E000',2170.2,387.8,270.000)
call SetUnitState(u,UNIT_STATE_MANA,48)
set u=CreateUnit(p,'E008',2370.5,389.2,270.000)
call SetUnitState(u,UNIT_STATE_MANA,48)
set u=CreateUnit(p,'E009',2977.2,61.0,180.000)
call SetUnitState(u,UNIT_STATE_MANA,48)
set u=CreateUnit(p,'E00A',2999.8,-1148.4,180.000)
call SetUnitState(u,UNIT_STATE_MANA,96)
set u=CreateUnit(p,'E00D',2984.4,-320.6,180.000)
call SetUnitState(u,UNIT_STATE_MANA,96)
set u=CreateUnit(p,'E00C',2988.4,-119.1,180.000)
call SetUnitState(u,UNIT_STATE_MANA,96)
set u=CreateUnit(p,'E00E',2988.6,-765.2,180.000)
call SetUnitState(u,UNIT_STATE_MANA,48)
set u=CreateUnit(p,'E00G',2992.0,-958.9,180.000)
call SetUnitState(u,UNIT_STATE_MANA,96)
set u=CreateUnit(p,'E00B',1103.3,-768.8,0.000)
call SetUnitState(u,UNIT_STATE_MANA,48)
set u=CreateUnit(p,'E00F',1098.1,-961.0,0.000)
call SetUnitState(u,UNIT_STATE_MANA,128)
set u=CreateUnit(p,'E00H',1101.3,-1158.9,0.000)
call SetUnitState(u,UNIT_STATE_MANA,64)
set u=CreateUnit(p,'E00K',2172.3,-1444.4,90.000)
call SetUnitState(u,UNIT_STATE_MANA,144)
set u=CreateUnit(p,'E00J',2364.3,-1446.7,90.000)
call SetUnitState(u,UNIT_STATE_MANA,144)
set u=CreateUnit(p,'E00I',2556.3,-1435.9,90.000)
call SetUnitState(u,UNIT_STATE_MANA,144)
set u=CreateUnit(p,'E00O',1412.2,-1450.5,90.000)
call SetUnitState(u,UNIT_STATE_MANA,144)
set u=CreateUnit(p,'E00M',1601.6,-1431.3,90.000)
call SetUnitState(u,UNIT_STATE_MANA,144)
set u=CreateUnit(p,'E00N',1791.9,-1461.2,90.000)
call SetUnitState(u,UNIT_STATE_MANA,144)
set u=CreateUnit(p,'E00L',1988.2,-1440.5,90.000)
call SetUnitState(u,UNIT_STATE_MANA,128)
set u=CreateUnit(p,'E00P',2564.1,388.5,270.000)
call SetUnitState(u,UNIT_STATE_MANA,144)
set u=CreateUnit(p,'E00Q',2747.8,381.0,270.000)
call SetUnitState(u,UNIT_STATE_MANA,48)
set u=CreateUnit(p,'E00R',2996.1,-580.8,180.000)
call SetUnitState(u,UNIT_STATE_MANA,48)
set u=CreateUnit(p,'E00T',1104.3,-584.2,0.000)
call SetUnitState(u,UNIT_STATE_MANA,144)
set u=CreateUnit(p,'E00Y',2748.9,-1443.8,90.000)
call SetUnitState(u,UNIT_STATE_MANA,96)
set u=CreateUnit(p,'E00Z',1496.9,-25.1,315.000)
set u=CreateUnit(p,'E010',1505.5,-1050.9,55.000)
set u=CreateUnit(p,'E011',2586.5,-1051.1,140.000)
set u=CreateUnit(p,'E00S',2594.2,-29.5,225.000)
call SetUnitState(u,UNIT_STATE_MANA,48)
endfunction
//===========================================================================
//===========================================================================
//===========================================================================
//***************************************************************************
//*
//*Regions
//*
//***************************************************************************
function CreateRegions2 takes nothing returns nothing
local weathereffect we
set udg_rect01=Rect(960.0,-1600.0,3136.0,576.0)
set we=AddWeatherEffect(udg_rect01,'LRma')
call EnableWeatherEffect(we,true)
set udg_rect02=Rect(-5024.0,-6624.0,416.0,7040.0)
set udg_rect03=Rect(3680.0,-6624.0,9120.0,7072.0)
set udg_rect04=Rect(-2432.0,-3200.0,-2176.0,-2944.0)
set udg_rect05=Rect(6272.0,-3200.0,6528.0,-2944.0)
set udg_rect06=Rect(-3968.0,-4544.0,-3840.0,-4416.0)
set udg_rect07=Rect(-4160.0,128.0,-4032.0,256.0)
set udg_rect08=Rect(-768.0,-4544.0,-640.0,-4416.0)
set udg_rect09=Rect(-576.0,128.0,-448.0,256.0)
set udg_rect10=Rect(4736.0,-4544.0,4864.0,-4416.0)
set udg_rect11=Rect(4544.0,128.0,4672.0,256.0)
set udg_rect12=Rect(7936.0,-4544.0,8064.0,-4416.0)
set udg_rect13=Rect(8128.0,128.0,8256.0,256.0)
set udg_rect14=Rect(-4576.0,6432.0,-4128.0,6880.0)
set udg_rect15=Rect(-480.0,6432.0,-32.0,6880.0)
set udg_rect16=Rect(4128.0,6432.0,4576.0,6880.0)
set udg_rect17=Rect(8224.0,6432.0,8672.0,6880.0)
set udg_rect18=Rect(-4928.0,3712.0,-3776.0,4960.0)
set udg_rect19=Rect(-800.0,3680.0,288.0,4960.0)
set udg_rect20=Rect(-4064.0,704.0,-3616.0,1568.0)
set udg_rect21=Rect(-992.0,704.0,-544.0,1568.0)
set udg_rect22=Rect(-2912.0,-1248.0,-1696.0,-352.0)
set udg_rect23=Rect(-4864.0,-4704.0,-4064.0,-4256.0)
set udg_rect24=Rect(-544.0,-4672.0,288.0,-4256.0)
set udg_rect25=Rect(3808.0,3744.0,4896.0,4928.0)
set udg_rect26=Rect(7904.0,3776.0,8992.0,4928.0)
set udg_rect27=Rect(4640.0,704.0,5088.0,1568.0)
set udg_rect28=Rect(7712.0,672.0,8160.0,1568.0)
set udg_rect29=Rect(5856.0,-1216.0,6976.0,-416.0)
set udg_rect30=Rect(3808.0,-4736.0,4640.0,-4256.0)
set udg_rect31=Rect(8160.0,-4672.0,8992.0,-4256.0)
endfunction
//***************************************************************************
//*
//*Triggers
//*
//***************************************************************************
//===========================================================================
//Trigger:GeneralInitialization
//===========================================================================
function Trig_GeneralInitialization_Func007002 takes nothing returns nothing
call SetUnitInvulnerable(GetEnumUnit(),true)
endfunction
function Trig_GeneralInitialization_Func009Func001C takes nothing returns boolean
if(not(GetPlayerSlotState(ConvertedPlayer(GetForLoopIndexA()))==PLAYER_SLOT_STATE_PLAYING))then
return false
endif
if(not(GetPlayerController(ConvertedPlayer(GetForLoopIndexA()))==MAP_CONTROL_USER))then
return false
endif
return true
endfunction
function Trig_GeneralInitialization_Func010Func001C takes nothing returns boolean
if(not(GetPlayerSlotState(ConvertedPlayer(GetForLoopIndexB()))==PLAYER_SLOT_STATE_PLAYING))then
return false
endif
if(not(GetPlayerController(ConvertedPlayer(GetForLoopIndexB()))==MAP_CONTROL_USER))then
return false
endif
return true
endfunction
function Trig_GeneralInitialization_Func018001001 takes nothing returns boolean
return(udg_boolean02==true)
endfunction
function Trig_GeneralInitialization_Func018001002 takes nothing returns boolean
return(udg_boolean03==true)
endfunction
function Trig_GeneralInitialization_Func018001 takes nothing returns boolean
return GetBooleanAnd(Trig_GeneralInitialization_Func018001001(),Trig_GeneralInitialization_Func018001002())
endfunction
function Trig_GeneralInitialization_Func021A takes nothing returns nothing
call FogEnableOff()
call FogMaskEnableOff()
endfunction
function Trig_GeneralInitialization_Func022Func001001 takes nothing returns boolean
return(GetPlayerSlotState(ConvertedPlayer(GetForLoopIndexA()))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_GeneralInitialization_Actions takes nothing returns nothing
call TriggerSleepAction(0.10)
call ConditionalTriggerExecute(udg_trigger02)
call ConditionalTriggerExecute(udg_trigger11)
call UseTimeOfDayBJ(false)
call SetTimeOfDay(12)
call CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED,"Contact Information","If you would like to send comments or suggestions or report bugs, email me at [email protected].\n\nI intend to keep this version updated awhile, at least if it needs updating. Heh. It probably does, this is my first map!","ReplaceableTextures\\CommandButtons\\BTNSelectHeroOn.blp")
call ForGroupBJ(GetUnitsInRectAll(udg_rect01),function Trig_GeneralInitialization_Func007002)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call UnitAddItemByIdSwapped('I007',udg_units02[GetForLoopIndexA()])
call UnitAddItemByIdSwapped('I01P',udg_units02[GetForLoopIndexA()])
call UnitAddItemByIdSwapped('I01Q',udg_units02[GetForLoopIndexA()])
call UnitAddItemByIdSwapped('I01R',udg_units02[GetForLoopIndexA()])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_GeneralInitialization_Func009Func001C())then
set udg_boolean02=true
call ForceAddPlayerSimple(ConvertedPlayer(GetForLoopIndexA()),udg_forces01[1])
call ForceAddPlayerSimple(ConvertedPlayer(GetForLoopIndexA()),udg_forces02[1])
call ForceAddPlayerSimple(ConvertedPlayer(GetForLoopIndexA()),udg_forces02[3])
call ForceAddPlayerSimple(ConvertedPlayer(GetForLoopIndexA()),udg_forces01[3])
else
call RemoveUnit(udg_units02[GetForLoopIndexA()])
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopBIndex=5
set bj_forLoopBIndexEnd=8
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
if(Trig_GeneralInitialization_Func010Func001C())then
set udg_boolean03=true
call ForceAddPlayerSimple(ConvertedPlayer(GetForLoopIndexB()),udg_forces01[2])
call ForceAddPlayerSimple(ConvertedPlayer(GetForLoopIndexB()),udg_forces02[2])
call ForceAddPlayerSimple(ConvertedPlayer(GetForLoopIndexB()),udg_forces02[3])
call ForceAddPlayerSimple(ConvertedPlayer(GetForLoopIndexB()),udg_forces01[3])
else
call RemoveUnit(udg_units02[GetForLoopIndexB()])
endif
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
call TriggerSleepAction(1.00)
//End Part 1
call ConditionalTriggerExecute(udg_trigger04)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call DialogDisplayBJ(true,udg_dialog01,ConvertedPlayer(GetForLoopIndexA()))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call PolledWait(12.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call DialogDisplayBJ(false,udg_dialog01,ConvertedPlayer(GetForLoopIndexA()))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
//End Part 2
if(Trig_GeneralInitialization_Func018001())then
set udg_boolean01=false
else
set udg_boolean01=true
endif
call ConditionalTriggerExecute(udg_trigger03)
call ConditionalTriggerExecute(udg_trigger06)
call ForForce(GetPlayersAll(),function Trig_GeneralInitialization_Func021A)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_GeneralInitialization_Func022Func001001())then
call CreateNUnitsAtLoc(1,'u001',ConvertedPlayer(GetForLoopIndexA()),GetRectCenter(udg_rect01),bj_UNIT_FACING)
else
call DoNothing()
endif
set udg_units03[GetForLoopIndexA()]=GetLastCreatedUnit()
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopBIndex=9
set bj_forLoopBIndexEnd=12
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,ConvertedPlayer(GetForLoopIndexB()))
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
call PlaySoundBJ(udg_sound05)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"Welcome to |cff87ceebEnfo's Team Survival: Ripped Off!|r\n|cffffcc00Information can be found in the Quest Log.|r\nLet the game begin!")
call ConditionalTriggerExecute(udg_trigger10)
call ConditionalTriggerExecute(udg_trigger07)
//End Part 3
call DestroyTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
//===========================================================================
//Trigger:Variables
//===========================================================================
function Trig_Variables_Actions takes nothing returns nothing
set udg_integers06[1]=0
set udg_integers06[2]=0
set udg_integers06[3]=0
set udg_integers06[4]=0
set udg_integers14[1]='A09F'
set udg_integers14[2]='A097'
set udg_integers14[3]='A098'
set udg_integers14[4]='A09A'
set udg_integers14[5]='A09B'
set udg_integers14[6]='A09C'
set udg_integers14[7]='A09D'
set udg_integers14[8]='A09E'
set udg_integers14[9]='A099'
set udg_integers14[10]='A094'
set udg_integers01[1]='A05F'
set udg_integers01[2]='A05G'
set udg_integers01[3]='A05H'
set udg_integers01[4]='A05J'
set udg_integers01[5]='A05I'
set udg_integers01[6]='A05K'
set udg_integers01[7]='A05L'
set udg_integers01[8]='A05M'
set udg_integers01[9]='A05N'
set udg_integers01[10]='A05O'
set udg_integers02[1]='n00S'
set udg_integers02[2]='n00T'
set udg_integers02[3]='n00U'
set udg_integers02[4]='n00V'
set udg_integers02[5]='n00W'
set udg_integers02[6]='n00X'
set udg_integers02[7]='n00Y'
set udg_integers02[8]='n00Z'
set udg_integers02[9]='e00V'
set udg_integers02[10]='n010'
set udg_integers02[11]='n011'
set udg_integers02[12]='n012'
set udg_integers02[13]='n013'
set udg_integers02[14]='n014'
set udg_integers02[15]='n015'
set udg_integers02[16]='n016'
set udg_integers02[17]='n017'
set udg_integers02[18]='n018'
set udg_integers02[19]='n019'
set udg_integers02[20]='n01A'
set udg_integers02[21]='n01B'
set udg_integers02[22]='n01C'
set udg_integers02[23]='n01D'
set udg_integers02[24]='n01E'
set udg_integers02[25]='n01F'
set udg_integers02[26]='n01G'
set udg_integers02[27]='n01H'
set udg_integers02[28]='n01I'
set udg_integers02[29]='n01J'
set udg_integers02[30]='n01P'
set udg_integers02[31]='n01L'
set udg_integers02[32]='e00W'
set udg_integers02[33]='n01M'
set udg_integers02[34]='n01N'
set udg_integers02[35]='u003'
set udg_integers02[36]='u004'
set udg_integers02[37]='u005'
set udg_integers02[38]='u006'
set udg_integers02[39]='u007'
set udg_integers02[40]='n01O'
set udg_units02[1]=udg_unit39
set udg_units02[2]=udg_unit40
set udg_units02[3]=udg_unit34
set udg_units02[4]=udg_unit31
set udg_units02[5]=udg_unit35
set udg_units02[6]=udg_unit36
set udg_units02[7]=udg_unit37
set udg_units02[8]=udg_unit38
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_rects01[GetForLoopIndexA()]=udg_rect04
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopBIndex=5
set bj_forLoopBIndexEnd=8
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
set udg_rects01[GetForLoopIndexB()]=udg_rect05
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
call DestroyTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
//===========================================================================
//Trigger:Multiboard
//===========================================================================
function Trig_Multiboard_Func010Func008Func001C takes nothing returns boolean
if(not(GetPlayerSlotState(ConvertedPlayer(GetForLoopIndexA()))==PLAYER_SLOT_STATE_PLAYING))then
return false
endif
if(not(GetPlayerController(ConvertedPlayer(GetForLoopIndexA()))==MAP_CONTROL_USER))then
return false
endif
return true
endfunction
function Trig_Multiboard_Func010C takes nothing returns boolean
if(not(udg_boolean02==true))then
return false
endif
return true
endfunction
function Trig_Multiboard_Func011Func008Func001C takes nothing returns boolean
if(not(GetPlayerSlotState(ConvertedPlayer(GetForLoopIndexB()))==PLAYER_SLOT_STATE_PLAYING))then
return false
endif
if(not(GetPlayerController(ConvertedPlayer(GetForLoopIndexB()))==MAP_CONTROL_USER))then
return false
endif
return true
endfunction
function Trig_Multiboard_Func011C takes nothing returns boolean
if(not(udg_boolean03==true))then
return false
endif
return true
endfunction
function Trig_Multiboard_Actions takes nothing returns nothing
call CreateMultiboardBJ(2,16,"Enfo's Team Survival")
call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),0,0,true,false)
call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),1,0,13.00)
call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),2,0,3.00)
set udg_integer01=1
call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),2,udg_integer01,false,false)
set udg_integer01=(udg_integer01+1)
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,udg_integer01,"-------------------")
call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),2,udg_integer01,false,false)
if(Trig_Multiboard_Func010C())then
set udg_integer01=(udg_integer01+1)
call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),1,udg_integer01,true,true)
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,udg_integer01,"Team 1")
call MultiboardSetItemIconBJ(GetLastCreatedMultiboard(),1,udg_integer01,"ReplaceableTextures\\CommandButtons\\BTNAbility_Warrior_Challange.blp")
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),2,udg_integer01,I2S(udg_integers03[1]))
call MultiboardSetItemColorBJ(GetLastCreatedMultiboard(),0,udg_integer01,100.00,50.00,100.00,0)
set udg_integers04[9]=udg_integer01
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Multiboard_Func010Func008Func001C())then
set udg_integer01=(udg_integer01+1)
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,udg_integer01,GetPlayerName(ConvertedPlayer(GetForLoopIndexA())))
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),2,udg_integer01,"0")
call MultiboardSetItemColorBJ(GetLastCreatedMultiboard(),0,udg_integer01,50.00,50.00,50.00,0)
set udg_integers04[GetForLoopIndexA()]=udg_integer01
else
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
endif
if(Trig_Multiboard_Func011C())then
set udg_integer01=(udg_integer01+1)
call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),1,udg_integer01,true,true)
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,udg_integer01,"Team 2")
call MultiboardSetItemIconBJ(GetLastCreatedMultiboard(),1,udg_integer01,"ReplaceableTextures\\CommandButtons\\BTNAbility_Warrior_Challange.blp")
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),2,udg_integer01,I2S(udg_integers03[2]))
call MultiboardSetItemColorBJ(GetLastCreatedMultiboard(),0,udg_integer01,50.00,100.00,100.00,0)
set udg_integers04[10]=udg_integer01
set bj_forLoopBIndex=5
set bj_forLoopBIndexEnd=8
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
if(Trig_Multiboard_Func011Func008Func001C())then
set udg_integer01=(udg_integer01+1)
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,udg_integer01,GetPlayerName(ConvertedPlayer(GetForLoopIndexB())))
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),2,udg_integer01,"0")
call MultiboardSetItemColorBJ(GetLastCreatedMultiboard(),0,udg_integer01,50.00,50.00,50.00,0)
set udg_integers04[GetForLoopIndexB()]=udg_integer01
else
endif
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
else
endif
call MultiboardSetRowCount(GetLastCreatedMultiboard(),udg_integer01)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
//===========================================================================
//Trigger:VoteBox
//===========================================================================
function Trig_VoteBox_Actions takes nothing returns nothing
call DialogSetMessageBJ(udg_dialog01,"Difficulty Vote")
call DialogAddButtonBJ(udg_dialog01,"Easy")
set udg_buttons01[1]=GetLastCreatedButtonBJ()
call DialogAddButtonBJ(udg_dialog01,"Normal")
set udg_buttons01[2]=GetLastCreatedButtonBJ()
call DialogAddButtonBJ(udg_dialog01,"Hard")
set udg_buttons01[3]=GetLastCreatedButtonBJ()
call DialogAddButtonBJ(udg_dialog01,"Ego Destroyer")
set udg_buttons01[4]=GetLastCreatedButtonBJ()
call DestroyTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
//===========================================================================
//Trigger:TallyVote
//===========================================================================
function Trig_TallyVote_Func001001 takes nothing returns boolean
return(GetClickedButtonBJ()==udg_buttons01[1])
endfunction
function Trig_TallyVote_Func002001 takes nothing returns boolean
return(GetClickedButtonBJ()==udg_buttons01[2])
endfunction
function Trig_TallyVote_Func003001 takes nothing returns boolean
return(GetClickedButtonBJ()==udg_buttons01[3])
endfunction
function Trig_TallyVote_Func004001 takes nothing returns boolean
return(GetClickedButtonBJ()==udg_buttons01[4])
endfunction
function Trig_TallyVote_Actions takes nothing returns nothing
if(Trig_TallyVote_Func001001())then
set udg_integers06[1]=(udg_integers06[1]+1)
else
call DoNothing()
endif
if(Trig_TallyVote_Func002001())then
set udg_integers06[2]=(udg_integers06[2]+1)
else
call DoNothing()
endif
if(Trig_TallyVote_Func003001())then
set udg_integers06[3]=(udg_integers06[3]+1)
else
call DoNothing()
endif
if(Trig_TallyVote_Func004001())then
set udg_integers06[4]=(udg_integers06[4]+1)
else
call DoNothing()
endif
endfunction
//===========================================================================
//===========================================================================
//Trigger:Difficulty
//===========================================================================
function Trig_Difficulty_Func001Func004A takes nothing returns nothing
call SetPlayerHandicapBJ(GetEnumPlayer(),udg_real01)
endfunction
function Trig_Difficulty_Func001C takes nothing returns boolean
if(not(udg_integers06[1]>udg_integers06[2]))then
return false
endif
if(not(udg_integers06[1]>udg_integers06[3]))then
return false
endif
if(not(udg_integers06[1]>udg_integers06[4]))then
return false
endif
return true
endfunction
function Trig_Difficulty_Func002Func004A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'o012',GetEnumPlayer(),GetRectCenter(GetPlayableMapRect()),bj_UNIT_FACING)
call UnitAddAbilityBJ('A06E',GetLastCreatedUnit())
call SetPlayerHandicapBJ(GetEnumPlayer(),udg_real01)
endfunction
function Trig_Difficulty_Func002C takes nothing returns boolean
if(not(udg_integers06[2]>=udg_integers06[1]))then
return false
endif
if(not(udg_integers06[2]>udg_integers06[3]))then
return false
endif
if(not(udg_integers06[2]>udg_integers06[4]))then
return false
endif
return true
endfunction
function Trig_Difficulty_Func003Func004A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'o012',GetEnumPlayer(),GetRectCenter(GetPlayableMapRect()),bj_UNIT_FACING)
call UnitAddAbilityBJ('A06G',GetLastCreatedUnit())
call SetPlayerHandicapBJ(GetEnumPlayer(),udg_real01)
endfunction
function Trig_Difficulty_Func003C takes nothing returns boolean
if(not(udg_integers06[3]>udg_integers06[1]))then
return false
endif
if(not(udg_integers06[3]>=udg_integers06[2]))then
return false
endif
if(not(udg_integers06[3]>udg_integers06[4]))then
return false
endif
return true
endfunction
function Trig_Difficulty_Func004Func004A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'o012',GetEnumPlayer(),GetRectCenter(GetPlayableMapRect()),bj_UNIT_FACING)
call UnitAddAbilityBJ('A06F',GetLastCreatedUnit())
call SetPlayerHandicapBJ(GetEnumPlayer(),udg_real01)
endfunction
function Trig_Difficulty_Func004C takes nothing returns boolean
if(not(udg_integers06[4]>udg_integers06[1]))then
return false
endif
if(not(udg_integers06[4]>udg_integers06[2]))then
return false
endif
if(not(udg_integers06[4]>=udg_integers06[3]))then
return false
endif
return true
endfunction
function Trig_Difficulty_Func005Func004A takes nothing returns nothing
call SetPlayerHandicapBJ(GetEnumPlayer(),udg_real01)
endfunction
function Trig_Difficulty_Func005C takes nothing returns boolean
if(not(udg_integers06[1]==udg_integers06[2]))then
return false
endif
if(not(udg_integers06[1]==udg_integers06[3]))then
return false
endif
if(not(udg_integers06[1]==udg_integers06[4]))then
return false
endif
return true
endfunction
function Trig_Difficulty_Actions takes nothing returns nothing
if(Trig_Difficulty_Func001C())then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"Difficulty - Easy - 80% creep life, 100% creep damage.")
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,2,"Easy")
set udg_real01=80.00
call ForForce(GetPlayersByMapControl(MAP_CONTROL_COMPUTER),function Trig_Difficulty_Func001Func004A)
else
endif
if(Trig_Difficulty_Func002C())then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"Difficulty - Normal - 100% creep life, 125% creep damage.")
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,2,"Normal")
set udg_real01=100.00
call ForForce(GetPlayersByMapControl(MAP_CONTROL_COMPUTER),function Trig_Difficulty_Func002Func004A)
else
endif
if(Trig_Difficulty_Func003C())then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"Difficulty - Hard - 125% creep life, 150% creep damage.")
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,2,"Hard")
set udg_real01=125.00
call ForForce(GetPlayersByMapControl(MAP_CONTROL_COMPUTER),function Trig_Difficulty_Func003Func004A)
else
endif
if(Trig_Difficulty_Func004C())then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"HAHAHA! PUNY MORTAL, YOUR WILL SHALL BE BROKEN!\n150% creep life, 300% creep damage!\nBEHOLD YOUR INEVITABLE DOOM!")
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,2,"Prove Your Worth")
set udg_real01=150.00
call ForForce(GetPlayersByMapControl(MAP_CONTROL_COMPUTER),function Trig_Difficulty_Func004Func004A)
else
endif
if(Trig_Difficulty_Func005C())then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"Difficulty - Easy - 80% creep life, 100% creep damage.")
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,2,"Easy")
set udg_real01=80.00
call ForForce(GetPlayersByMapControl(MAP_CONTROL_COMPUTER),function Trig_Difficulty_Func005Func004A)
else
endif
call DestroyTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
//===========================================================================
//Trigger:SpawnUnits
//===========================================================================
function Trig_SpawnUnits_Func003001 takes nothing returns boolean
return(udg_integer03>40)
endfunction
function Trig_SpawnUnits_Func005002 takes nothing returns nothing
call AdjustPlayerStateBJ((udg_integer03*250),GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function Trig_SpawnUnits_Func006Func001001 takes nothing returns boolean
return(udg_boolean04==true)
endfunction
function Trig_SpawnUnits_Actions takes nothing returns nothing
set udg_integer03=(udg_integer03+1)
call ConditionalTriggerExecute(udg_trigger77)
if(Trig_SpawnUnits_Func003001())then
set udg_integer03=40
else
call DoNothing()
endif
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Level "+(I2S(udg_integer03)+" has begun!")))
call ForForce(GetPlayersAll(),function Trig_SpawnUnits_Func005002)
set udg_integer04=1
loop
exitwhen udg_integer04>udg_integer02
if(Trig_SpawnUnits_Func006Func001001())then
return
else
call DoNothing()
endif
call ConditionalTriggerExecute(udg_trigger08)
call ConditionalTriggerExecute(udg_trigger09)
call TriggerSleepAction(5.00)
set udg_integer04=udg_integer04+1
endloop
call ConditionalTriggerExecute(udg_trigger79)
call ConditionalTriggerExecute(udg_trigger80)
call TriggerSleepAction(3.00)
call ConditionalTriggerExecute(udg_trigger79)
call ConditionalTriggerExecute(udg_trigger80)
call TriggerSleepAction(3.00)
call ConditionalTriggerExecute(udg_trigger79)
call ConditionalTriggerExecute(udg_trigger80)
call TriggerSleepAction(3.00)
call ConditionalTriggerExecute(GetTriggeringTrigger())
endfunction
//===========================================================================
//===========================================================================
//Trigger:SpawnLeft
//===========================================================================
function Trig_SpawnLeft_Conditions takes nothing returns boolean
if(not(udg_boolean02==true))then
return false
endif
return true
endfunction
function Trig_SpawnLeft_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,udg_integers02[udg_integer03],Player(10),OffsetLocation(GetRectCenter(udg_rect14),-200.00,135.00),bj_UNIT_FACING)
call RemoveGuardPosition(GetLastCreatedUnit())
set udg_integers07[1]=(udg_integers07[1]+1)
call CreateNUnitsAtLoc(1,udg_integers02[udg_integer03],Player(10),GetRectCenter(udg_rect14),bj_UNIT_FACING)
call RemoveGuardPosition(GetLastCreatedUnit())
set udg_integers07[1]=(udg_integers07[1]+1)
call CreateNUnitsAtLoc(1,udg_integers02[udg_integer03],Player(10),OffsetLocation(GetRectCenter(udg_rect14),200.00,-135.00),bj_UNIT_FACING)
call RemoveGuardPosition(GetLastCreatedUnit())
set udg_integers07[1]=(udg_integers07[1]+1)
call CreateNUnitsAtLoc(1,udg_integers02[udg_integer03],Player(11),OffsetLocation(GetRectCenter(udg_rect15),-200.00,135.00),bj_UNIT_FACING)
call RemoveGuardPosition(GetLastCreatedUnit())
set udg_integers07[2]=(udg_integers07[2]+1)
call CreateNUnitsAtLoc(1,udg_integers02[udg_integer03],Player(11),GetRectCenter(udg_rect15),bj_UNIT_FACING)
call RemoveGuardPosition(GetLastCreatedUnit())
set udg_integers07[2]=(udg_integers07[2]+1)
call CreateNUnitsAtLoc(1,udg_integers02[udg_integer03],Player(11),OffsetLocation(GetRectCenter(udg_rect15),200.00,-135.00),bj_UNIT_FACING)
call RemoveGuardPosition(GetLastCreatedUnit())
set udg_integers07[2]=(udg_integers07[2]+1)
endfunction
//===========================================================================
//===========================================================================
//Trigger:SpawnRight
//===========================================================================
function Trig_SpawnRight_Conditions takes nothing returns boolean
if(not(udg_boolean03==true))then
return false
endif
return true
endfunction
function Trig_SpawnRight_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,udg_integers02[udg_integer03],Player(8),OffsetLocation(GetRectCenter(udg_rect16),-200.00,135.00),bj_UNIT_FACING)
call RemoveGuardPosition(GetLastCreatedUnit())
set udg_integers07[3]=(udg_integers07[3]+1)
call CreateNUnitsAtLoc(1,udg_integers02[udg_integer03],Player(8),GetRectCenter(udg_rect16),bj_UNIT_FACING)
call RemoveGuardPosition(GetLastCreatedUnit())
set udg_integers07[3]=(udg_integers07[3]+1)
call CreateNUnitsAtLoc(1,udg_integers02[udg_integer03],Player(8),OffsetLocation(GetRectCenter(udg_rect16),200.00,-135.00),bj_UNIT_FACING)
call RemoveGuardPosition(GetLastCreatedUnit())
set udg_integers07[3]=(udg_integers07[3]+1)
call CreateNUnitsAtLoc(1,udg_integers02[udg_integer03],Player(9),OffsetLocation(GetRectCenter(udg_rect17),-200.00,135.00),bj_UNIT_FACING)
call RemoveGuardPosition(GetLastCreatedUnit())
set udg_integers07[4]=(udg_integers07[4]+1)
call CreateNUnitsAtLoc(1,udg_integers02[udg_integer03],Player(9),GetRectCenter(udg_rect17),bj_UNIT_FACING)
call RemoveGuardPosition(GetLastCreatedUnit())
set udg_integers07[4]=(udg_integers07[4]+1)
call CreateNUnitsAtLoc(1,udg_integers02[udg_integer03],Player(9),OffsetLocation(GetRectCenter(udg_rect17),200.00,-135.00),bj_UNIT_FACING)
call RemoveGuardPosition(GetLastCreatedUnit())
set udg_integers07[4]=(udg_integers07[4]+1)
endfunction
//===========================================================================
//===========================================================================
//Trigger:Color
//===========================================================================
function Trig_Color_Actions takes nothing returns nothing
call SetPlayerColorBJ(Player(8),PLAYER_COLOR_LIGHT_BLUE,true)
call SetPlayerColorBJ(Player(10),PLAYER_COLOR_LIGHT_BLUE,true)
call SetPlayerColorBJ(Player(11),PLAYER_COLOR_LIGHT_BLUE,true)
endfunction
//===========================================================================
//===========================================================================
//Trigger:InitializeAlchemy
//===========================================================================
function Trig_InitializeAlchemy_Actions takes nothing returns nothing
set udg_integers08[1]='I026'
set udg_integers08[2]='I026'
set udg_integers08[3]='I026'
set udg_integers08[4]='I026'
set udg_integers08[5]='I026'
set udg_integers08[6]='I026'
set udg_integers08[7]='I026'
set udg_integers08[8]='I026'
set udg_integers08[9]='I028'
set udg_integers08[10]='I028'
set udg_integers08[11]='I028'
set udg_integers08[12]='I028'
set udg_integers08[13]='I028'
set udg_integers08[14]='I028'
set udg_integers08[15]='I028'
set udg_integers08[16]='I028'
set udg_integers08[17]='I02A'
set udg_integers08[18]='I02A'
set udg_integers08[19]='I02A'
set udg_integers08[20]='I02A'
set udg_integers08[21]='I02A'
set udg_integers08[22]='I02A'
set udg_integers08[23]='I02A'
set udg_integers08[24]='I02A'
set udg_integers08[25]='I025'
set udg_integers08[26]='I025'
set udg_integers08[27]='I025'
set udg_integers08[28]='I025'
set udg_integers08[29]='I025'
set udg_integers08[30]='I027'
set udg_integers08[31]='I027'
set udg_integers08[32]='I027'
set udg_integers08[33]='I027'
set udg_integers08[34]='I027'
set udg_integers08[35]='I029'
set udg_integers08[36]='I029'
set udg_integers08[37]='I029'
set udg_integers08[38]='I029'
set udg_integers08[39]='I029'
set udg_integers08[40]='I02E'
set udg_integers08[41]='I02E'
set udg_integers08[42]='I02E'
set udg_integers08[43]='I02E'
set udg_integers08[44]='I02E'
set udg_integers08[45]='I02D'
set udg_integers08[46]='I02D'
set udg_integers08[47]='I02D'
set udg_integers08[48]='I02D'
set udg_integers08[49]='I02D'
set udg_integers08[50]='I02G'
set udg_integers08[51]='I02G'
set udg_integers08[52]='I02G'
set udg_integers08[53]='I02G'
set udg_integers08[54]='I02G'
set udg_integers08[55]='I02F'
set udg_integers08[56]='I02F'
set udg_integers08[57]='I02F'
set udg_integers08[58]='I02F'
set udg_integers08[59]='I02F'
set udg_integers08[60]='I02I'
set udg_integers08[61]='I02I'
set udg_integers08[62]='I02I'
set udg_integers08[63]='I02I'
set udg_integers08[64]='I02I'
set udg_integers08[65]='I02H'
set udg_integers08[66]='I02H'
set udg_integers08[67]='I02H'
set udg_integers08[68]='I02H'
set udg_integers08[69]='I02K'
set udg_integers08[70]='I02K'
set udg_integers08[71]='I02K'
set udg_integers08[72]='I02J'
set udg_integers08[73]='I02J'
set udg_integers08[74]='I02J'
set udg_integers08[75]='I02L'
set udg_integers08[76]='I02L'
set udg_integers08[77]='I02L'
set udg_integers08[78]='I02M'
set udg_integers08[79]='I02M'
set udg_integers08[80]='I02M'
set udg_integers08[81]='I02R'
set udg_integers08[82]='I02Q'
set udg_integers08[83]='I02O'
set udg_integers08[84]='I02P'
set udg_integers08[85]='I02N'
call DestroyTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
//===========================================================================
//Trigger:Select King
//===========================================================================
function Trig_Select_King_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='u001'))then
return false
endif
return true
endfunction
function Trig_Select_King_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger102)
call EnableTrigger(udg_trigger103)
call EnableTrigger(udg_trigger104)
call EnableTrigger(udg_trigger105)
call EnableTrigger(udg_trigger106)
call EnableTrigger(udg_trigger107)
call EnableTrigger(udg_trigger108)
call RemoveUnit(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'E00S',GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rects01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]),bj_UNIT_FACING)
set udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetLastCreatedUnit()
set udg_integers12[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]='A095'
set udg_integers11[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]='A08N'
set udg_integers13[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]='A08V'
call SetPlayerAbilityAvailableBJ(false,'A095',GetOwningPlayer(GetTriggerUnit()))
call UnitAddAbilityBJ('A09H',udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetLastCreatedUnit()),0.30)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
set udg_effects01[103]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[103])
endfunction
//===========================================================================
//===========================================================================
//Trigger:Select Naroom
//===========================================================================
function Trig_Select_Naroom_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='u001'))then
return false
endif
return true
endfunction
function Trig_Select_Naroom_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger160)
call RemoveUnit(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'E011',GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rects01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]),bj_UNIT_FACING)
set udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetLastCreatedUnit()
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetLastCreatedUnit()),0.30)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
set udg_effects01[102]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[102])
endfunction
//===========================================================================
//===========================================================================
//Trigger:Select Galactic
//===========================================================================
function Trig_Select_Galactic_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='u001'))then
return false
endif
return true
endfunction
function Trig_Select_Galactic_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound22)
call EnableTrigger(udg_trigger123)
call EnableTrigger(udg_trigger50)
call EnableTrigger(udg_trigger51)
call RemoveUnit(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'E010',GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rects01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]),bj_UNIT_FACING)
set udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetLastCreatedUnit()
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetLastCreatedUnit()),0.30)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
set udg_effects01[101]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[101])
endfunction
//===========================================================================
//===========================================================================
//Trigger:Select Ghoul
//===========================================================================
function Trig_Select_Ghoul_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='u001'))then
return false
endif
return true
endfunction
function Trig_Select_Ghoul_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound22)
call EnableTrigger(udg_trigger156)
call RemoveUnit(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'E00Z',GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rects01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]),bj_UNIT_FACING)
set udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetLastCreatedUnit()
call ModifyHeroStat(bj_HEROSTAT_INT,GetLastCreatedUnit(),bj_MODIFYMETHOD_SET,0)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetLastCreatedUnit()),0.30)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
set udg_effects01[100]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[100])
endfunction
//===========================================================================
//===========================================================================
//Trigger:Select Ahlen
//===========================================================================
function Trig_Select_Ahlen_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='u001'))then
return false
endif
return true
endfunction
function Trig_Select_Ahlen_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound22)
call EnableTrigger(udg_trigger153)
call EnableTrigger(udg_trigger141)
call RemoveUnit(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'E005',GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rects01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]),bj_UNIT_FACING)
set udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetLastCreatedUnit()
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetLastCreatedUnit()),0.30)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
set udg_effects01[17]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[17])
endfunction
//===========================================================================
//===========================================================================
//Trigger:Select Barbarian
//===========================================================================
function Trig_Select_Barbarian_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='u001'))then
return false
endif
return true
endfunction
function Trig_Select_Barbarian_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound22)
call EnableTrigger(udg_trigger127)
call RemoveUnit(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'E000',GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rects01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]),bj_UNIT_FACING)
set udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetLastCreatedUnit()
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetLastCreatedUnit()),0.30)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
set udg_effects01[18]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[18])
endfunction
//===========================================================================
//===========================================================================
//Trigger:Select Trader
//===========================================================================
function Trig_Select_Trader_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='u001'))then
return false
endif
return true
endfunction
function Trig_Select_Trader_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound22)
call EnableTrigger(udg_trigger125)
call RemoveUnit(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'E00A',GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rects01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]),bj_UNIT_FACING)
set udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetLastCreatedUnit()
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetLastCreatedUnit()),0.30)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
set udg_effects01[19]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[19])
endfunction
//===========================================================================
//===========================================================================
//Trigger:Select BattleChanter
//===========================================================================
function Trig_Select_BattleChanter_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='u001'))then
return false
endif
return true
endfunction
function Trig_Select_BattleChanter_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound22)
call EnableTrigger(udg_trigger132)
call RemoveUnit(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'E00H',GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rects01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]),bj_UNIT_FACING)
set udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetLastCreatedUnit()
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetLastCreatedUnit()),0.30)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
set udg_effects01[20]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[20])
endfunction
//===========================================================================
//===========================================================================
//Trigger:Select Bard
//===========================================================================
function Trig_Select_Bard_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='u001'))then
return false
endif
return true
endfunction
function Trig_Select_Bard_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound22)
call EnableTrigger(udg_trigger149)
call RemoveUnit(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'E00F',GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rects01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]),bj_UNIT_FACING)
set udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetLastCreatedUnit()
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetLastCreatedUnit()),0.30)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
set udg_effects01[21]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[21])
endfunction
//===========================================================================
//===========================================================================
//Trigger:Select Nightblade
//===========================================================================
function Trig_Select_Nightblade_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='u001'))then
return false
endif
return true
endfunction
function Trig_Select_Nightblade_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound22)
call EnableTrigger(udg_trigger147)
call EnableTrigger(udg_trigger148)
call RemoveUnit(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'E00B',GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rects01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]),bj_UNIT_FACING)
set udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetLastCreatedUnit()
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetLastCreatedUnit()),0.30)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
set udg_effects01[22]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[22])
endfunction
//===========================================================================
//===========================================================================
//Trigger:Select HolyWarrior
//===========================================================================
function Trig_Select_HolyWarrior_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='u001'))then
return false
endif
return true
endfunction
function Trig_Select_HolyWarrior_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound22)
call EnableTrigger(udg_trigger140)
call RemoveUnit(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'E003',GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rects01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]),bj_UNIT_FACING)
set udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetLastCreatedUnit()
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetLastCreatedUnit()),0.30)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
set udg_effects01[23]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[23])
endfunction
//===========================================================================
//===========================================================================
//Trigger:Select Nightmare
//===========================================================================
function Trig_Select_Nightmare_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='u001'))then
return false
endif
return true
endfunction
function Trig_Select_Nightmare_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound22)
call EnableTrigger(udg_trigger131)
call RemoveUnit(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'E006',GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rects01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]),bj_UNIT_FACING)
set udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetLastCreatedUnit()
call ModifyHeroStat(bj_HEROSTAT_AGI,GetLastCreatedUnit(),bj_MODIFYMETHOD_SET,0)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetLastCreatedUnit()),0.30)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
set udg_effects01[24]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[24])
endfunction
//===========================================================================
//===========================================================================
//Trigger:Select Weaponsmith
//===========================================================================
function Trig_Select_Weaponsmith_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='u001'))then
return false
endif
return true
endfunction
function Trig_Select_Weaponsmith_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound22)
call EnableTrigger(udg_trigger145)
call EnableTrigger(udg_trigger143)
call EnableTrigger(udg_trigger146)
call RemoveUnit(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'E007',GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rects01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]),bj_UNIT_FACING)
set udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetLastCreatedUnit()
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetLastCreatedUnit()),0.30)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
set udg_effects01[25]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[25])
endfunction
//===========================================================================
//===========================================================================
//Trigger:Select CoreMagi
//===========================================================================
function Trig_Select_CoreMagi_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='u001'))then
return false
endif
return true
endfunction
function Trig_Select_CoreMagi_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound22)
call EnableTrigger(udg_trigger116)
call RemoveUnit(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'E001',GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rects01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]),bj_UNIT_FACING)
set udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetLastCreatedUnit()
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetLastCreatedUnit()),0.30)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
set udg_effects01[26]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[26])
endfunction
//===========================================================================
//===========================================================================
//Trigger:Select Paladin
//===========================================================================
function Trig_Select_Paladin_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='u001'))then
return false
endif
return true
endfunction
function Trig_Select_Paladin_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound22)
call RemoveUnit(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'E004',GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rects01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]),bj_UNIT_FACING)
set udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetLastCreatedUnit()
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetLastCreatedUnit()),0.30)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
set udg_effects01[27]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[27])
endfunction
//===========================================================================
//===========================================================================
//Trigger:Select BloodDancer
//===========================================================================
function Trig_Select_BloodDancer_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='u001'))then
return false
endif
return true
endfunction
function Trig_Select_BloodDancer_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound22)
call RemoveUnit(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'E002',GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rects01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]),bj_UNIT_FACING)
set udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetLastCreatedUnit()
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetLastCreatedUnit()),0.30)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
set udg_effects01[28]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[28])
endfunction
//===========================================================================
//===========================================================================
//Trigger:Select Thief
//===========================================================================
function Trig_Select_Thief_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='u001'))then
return false
endif
return true
endfunction
function Trig_Select_Thief_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound22)
call EnableTrigger(udg_trigger129)
call RemoveUnit(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'E009',GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rects01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]),bj_UNIT_FACING)
set udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetLastCreatedUnit()
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetLastCreatedUnit()),0.30)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
set udg_effects01[29]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[29])
endfunction
//===========================================================================
//===========================================================================
//Trigger:Select Cabalist
//===========================================================================
function Trig_Select_Cabalist_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='u001'))then
return false
endif
return true
endfunction
function Trig_Select_Cabalist_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound22)
call RemoveUnit(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'E00C',GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rects01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]),bj_UNIT_FACING)
set udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetLastCreatedUnit()
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetLastCreatedUnit()),0.30)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
set udg_effects01[30]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[30])
endfunction
//===========================================================================
//===========================================================================
//Trigger:Select Entropist
//===========================================================================
function Trig_Select_Entropist_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='u001'))then
return false
endif
return true
endfunction
function Trig_Select_Entropist_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound22)
call EnableTrigger(udg_trigger128)
call RemoveUnit(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'E00D',GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rects01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]),bj_UNIT_FACING)
set udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetLastCreatedUnit()
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetLastCreatedUnit()),0.30)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
set udg_effects01[31]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[31])
endfunction
//===========================================================================
//===========================================================================
//Trigger:Select Cleric
//===========================================================================
function Trig_Select_Cleric_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='u001'))then
return false
endif
return true
endfunction
function Trig_Select_Cleric_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound22)
call EnableTrigger(udg_trigger114)
call RemoveUnit(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'E00E',GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rects01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]),bj_UNIT_FACING)
set udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetLastCreatedUnit()
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetLastCreatedUnit()),0.30)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
set udg_effects01[32]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[32])
endfunction
//===========================================================================
//===========================================================================
//Trigger:Select Hypnotist
//===========================================================================
function Trig_Select_Hypnotist_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='u001'))then
return false
endif
return true
endfunction
function Trig_Select_Hypnotist_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound22)
call EnableTrigger(udg_trigger138)
call EnableTrigger(udg_trigger151)
call RemoveUnit(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'E00G',GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rects01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]),bj_UNIT_FACING)
set udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetLastCreatedUnit()
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetLastCreatedUnit()),0.30)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
set udg_effects01[33]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[33])
endfunction
//===========================================================================
//===========================================================================
//Trigger:Select Empath
//===========================================================================
function Trig_Select_Empath_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='u001'))then
return false
endif
return true
endfunction
function Trig_Select_Empath_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound22)
call EnableTrigger(udg_trigger155)
call RemoveUnit(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'E00Y',GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rects01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]),bj_UNIT_FACING)
set udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetLastCreatedUnit()
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetLastCreatedUnit()),0.30)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
set udg_effects01[34]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[34])
endfunction
//===========================================================================
//===========================================================================
//Trigger:Select Mentalist
//===========================================================================
function Trig_Select_Mentalist_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='u001'))then
return false
endif
return true
endfunction
function Trig_Select_Mentalist_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound22)
call EnableTrigger(udg_trigger139)
call RemoveUnit(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'E00I',GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rects01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]),bj_UNIT_FACING)
set udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetLastCreatedUnit()
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetLastCreatedUnit()),0.30)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
set udg_effects01[35]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[35])
endfunction
//===========================================================================
//===========================================================================
//Trigger:Select ArcaneMistress
//===========================================================================
function Trig_Select_ArcaneMistress_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='u001'))then
return false
endif
return true
endfunction
function Trig_Select_ArcaneMistress_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound22)
call EnableTrigger(udg_trigger122)
call RemoveUnit(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'E00J',GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rects01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]),bj_UNIT_FACING)
set udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetLastCreatedUnit()
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetLastCreatedUnit()),0.30)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
set udg_effects01[36]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[36])
endfunction
//===========================================================================
//===========================================================================
//Trigger:Select WarriorMage
//===========================================================================
function Trig_Select_WarriorMage_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='u001'))then
return false
endif
return true
endfunction
function Trig_Select_WarriorMage_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound22)
call EnableTrigger(udg_trigger142)
call EnableTrigger(udg_trigger150)
call RemoveUnit(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'E00N',GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rects01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]),bj_UNIT_FACING)
set udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetLastCreatedUnit()
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetLastCreatedUnit()),0.30)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
set udg_effects01[37]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[37])
endfunction
//===========================================================================
//===========================================================================
//Trigger:Select MoonMage
//===========================================================================
function Trig_Select_MoonMage_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='u001'))then
return false
endif
return true
endfunction
function Trig_Select_MoonMage_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound22)
call EnableTrigger(udg_trigger126)
call EnableTrigger(udg_trigger137)
call EnableTrigger(udg_trigger124)
call RemoveUnit(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'E00M',GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rects01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]),bj_UNIT_FACING)
set udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetLastCreatedUnit()
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetLastCreatedUnit()),0.30)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
set udg_effects01[38]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[38])
endfunction
//===========================================================================
//===========================================================================
//Trigger:Select Evoker
//===========================================================================
function Trig_Select_Evoker_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='u001'))then
return false
endif
return true
endfunction
function Trig_Select_Evoker_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound22)
call RemoveUnit(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'E00O',GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rects01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]),bj_UNIT_FACING)
set udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetLastCreatedUnit()
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetLastCreatedUnit()),0.30)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
set udg_effects01[39]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[39])
endfunction
//===========================================================================
//===========================================================================
//Trigger:Select Ranger
//===========================================================================
function Trig_Select_Ranger_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='u001'))then
return false
endif
return true
endfunction
function Trig_Select_Ranger_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound22)
call RemoveUnit(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'E008',GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rects01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]),bj_UNIT_FACING)
set udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetLastCreatedUnit()
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetLastCreatedUnit()),0.30)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
set udg_effects01[40]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[40])
endfunction
//===========================================================================
//===========================================================================
//Trigger:Select ArderialMagi
//===========================================================================
function Trig_Select_ArderialMagi_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='u001'))then
return false
endif
return true
endfunction
function Trig_Select_ArderialMagi_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound22)
call EnableTrigger(udg_trigger117)
call EnableTrigger(udg_trigger133)
call EnableTrigger(udg_trigger134)
call RemoveUnit(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'E00P',GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rects01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]),bj_UNIT_FACING)
set udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetLastCreatedUnit()
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetLastCreatedUnit()),0.30)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
set udg_effects01[41]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[41])
endfunction
//===========================================================================
//===========================================================================
//Trigger:Select CaldMagi
//===========================================================================
function Trig_Select_CaldMagi_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='u001'))then
return false
endif
return true
endfunction
function Trig_Select_CaldMagi_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound22)
call EnableTrigger(udg_trigger135)
call EnableTrigger(udg_trigger136)
call RemoveUnit(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'E00L',GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rects01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]),bj_UNIT_FACING)
set udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetLastCreatedUnit()
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetLastCreatedUnit()),0.30)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
set udg_effects01[42]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[42])
endfunction
//===========================================================================
//===========================================================================
//Trigger:Select Tempest
//===========================================================================
function Trig_Select_Tempest_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='u001'))then
return false
endif
return true
endfunction
function Trig_Select_Tempest_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound22)
call EnableTrigger(udg_trigger158)
call RemoveUnit(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'E00K',GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rects01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]),bj_UNIT_FACING)
set udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetLastCreatedUnit()
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetLastCreatedUnit()),0.30)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
set udg_effects01[43]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[43])
endfunction
//===========================================================================
//===========================================================================
//Trigger:Select BadMan
//===========================================================================
function Trig_Select_BadMan_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='u001'))then
return false
endif
return true
endfunction
function Trig_Select_BadMan_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound22)
call EnableTrigger(udg_trigger113)
call EnableTrigger(udg_trigger152)
call EnableTrigger(udg_trigger154)
call RemoveUnit(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'E00Q',GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rects01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]),bj_UNIT_FACING)
set udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetLastCreatedUnit()
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetLastCreatedUnit()),0.30)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
set udg_effects01[44]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[44])
endfunction
//===========================================================================
//===========================================================================
//Trigger:Select Enforcer
//===========================================================================
function Trig_Select_Enforcer_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='u001'))then
return false
endif
return true
endfunction
function Trig_Select_Enforcer_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound22)
call RemoveUnit(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'E00R',GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rects01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]),bj_UNIT_FACING)
set udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetLastCreatedUnit()
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetLastCreatedUnit()),0.30)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
set udg_effects01[45]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[45])
endfunction
//===========================================================================
//===========================================================================
//Trigger:Select ShadowMagi
//===========================================================================
function Trig_Select_ShadowMagi_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='u001'))then
return false
endif
return true
endfunction
function Trig_Select_ShadowMagi_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound22)
call EnableTrigger(udg_trigger115)
call EnableTrigger(udg_trigger110)
call EnableTrigger(udg_trigger111)
call EnableTrigger(udg_trigger112)
call RemoveUnit(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'E00T',GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rects01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]),bj_UNIT_FACING)
set udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetLastCreatedUnit()
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetLastCreatedUnit()),0.30)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
set udg_effects01[46]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[46])
endfunction
//===========================================================================
//===========================================================================
//Trigger:Select Repick
//===========================================================================
function Trig_Select_Repick_Func001Func001A takes nothing returns nothing
call RemoveUnit(udg_units03[GetConvertedPlayerId(GetTriggerPlayer())])
call RemoveUnit(udg_units01[GetConvertedPlayerId(GetTriggerPlayer())])
endfunction
function Trig_Select_Repick_Func001C takes nothing returns boolean
if(not(GetUnitTypeId(udg_units03[GetConvertedPlayerId(GetTriggerPlayer())])!='E00F'))then
return false
endif
if(not(GetUnitTypeId(udg_units03[GetConvertedPlayerId(GetTriggerPlayer())])!='E00G'))then
return false
endif
if(not(GetUnitTypeId(udg_units03[GetConvertedPlayerId(GetTriggerPlayer())])!='E00A'))then
return false
endif
if(not(GetUnitTypeId(udg_units03[GetConvertedPlayerId(GetTriggerPlayer())])!='u001'))then
return false
endif
return true
endfunction
function Trig_Select_Repick_Actions takes nothing returns nothing
if(Trig_Select_Repick_Func001C())then
call ForGroupBJ(GetUnitsOfPlayerAll(GetTriggerPlayer()),function Trig_Select_Repick_Func001Func001A)
call CreateNUnitsAtLoc(1,'u001',GetTriggerPlayer(),GetRectCenter(udg_rect01),bj_UNIT_FACING)
set udg_units03[GetConvertedPlayerId(GetTriggerPlayer())]=GetLastCreatedUnit()
set udg_booleans02[GetConvertedPlayerId(GetTriggerPlayer())]=true
else
endif
endfunction
//===========================================================================
//===========================================================================
//Trigger:Select Random
//===========================================================================
function Trig_Select_Random_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='u001'))then
return false
endif
return true
endfunction
function Trig_Select_Random_Func003002001001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='ncop')
endfunction
function Trig_Select_Random_Func004001 takes nothing returns boolean
return(udg_booleans02[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==false)
endfunction
function Trig_Select_Random_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(udg_rect01))
call TriggerSleepAction(0.01)
call SetUnitPositionLoc(GetTriggerUnit(),GetUnitLoc(GroupPickRandomUnit(GetUnitsInRectMatching(udg_rect01,Condition(function Trig_Select_Random_Func003002001001002)))))
if(Trig_Select_Random_Func004001())then
call AdjustPlayerStateBJ(1000,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
else
call DoNothing()
endif
endfunction
//===========================================================================
//===========================================================================
//Trigger:StaffApocalypse
//===========================================================================
function Trig_StaffApocalypse_Conditions takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='A01N'))then
return false
endif
return true
endfunction
function Trig_StaffApocalypse_Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A01N',GetTriggerUnit())==GetForLoopIndexA()))then
return false
endif
return true
endfunction
function Trig_StaffApocalypse_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_StaffApocalypse_Func001Func001C())then
call SetPlayerTechResearchedSwap('R001',GetForLoopIndexA(),GetOwningPlayer(GetTriggerUnit()))
else
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
//===========================================================================
//===========================================================================
//Trigger:Incendiary
//===========================================================================
function Trig_Incendiary_Conditions takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='A08F'))then
return false
endif
return true
endfunction
function Trig_Incendiary_Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A08F',GetTriggerUnit())==GetForLoopIndexA()))then
return false
endif
return true
endfunction
function Trig_Incendiary_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Incendiary_Func001Func001C())then
call SetPlayerTechResearchedSwap('R005',GetForLoopIndexA(),GetOwningPlayer(GetTriggerUnit()))
else
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
//===========================================================================
//===========================================================================
//Trigger:ThemalRegulator
//===========================================================================
function Trig_ThemalRegulator_Func001C takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='A08F'))then
return false
endif
if(not(GetUnitAbilityLevelSwapped('A08F',GetTriggerUnit())==1))then
return false
endif
return true
endfunction
function Trig_ThemalRegulator_Conditions takes nothing returns boolean
if(not Trig_ThemalRegulator_Func001C())then
return false
endif
return true
endfunction
function Trig_ThemalRegulator_Actions takes nothing returns nothing
call PlaySoundOnUnitBJ(udg_sound20,100,GetTriggerUnit())
call UnitRemoveAbilityBJ('A08E',GetTriggerUnit())
call UnitAddAbilityBJ('A08D',GetTriggerUnit())
call UnitAddAbilityBJ('A08G',GetTriggerUnit())
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit())),10.00,"|cff6666ffThermal Regulator now active.|r")
endfunction
//===========================================================================
//===========================================================================
//Trigger:PhysicalSupremacy
//===========================================================================
function Trig_PhysicalSupremacy_Conditions takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='A06R'))then
return false
endif
return true
endfunction
function Trig_PhysicalSupremacy_Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A06R',GetTriggerUnit())==GetForLoopIndexA()))then
return false
endif
return true
endfunction
function Trig_PhysicalSupremacy_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_PhysicalSupremacy_Func001Func001C())then
call SetPlayerTechResearchedSwap('R002',GetForLoopIndexA(),GetOwningPlayer(GetTriggerUnit()))
else
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
//===========================================================================
//===========================================================================
//Trigger:NetherTouch
//===========================================================================
function Trig_NetherTouch_Func001C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='E00R'))then
return false
endif
if(not(GetLearnedSkillBJ()=='A06S'))then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_USER))then
return false
endif
return true
endfunction
function Trig_NetherTouch_Conditions takes nothing returns boolean
if(not Trig_NetherTouch_Func001C())then
return false
endif
return true
endfunction
function Trig_NetherTouch_Actions takes nothing returns nothing
call SetPlayerTechResearchedSwap('R003',GetUnitAbilityLevelSwapped('A06S',GetTriggerUnit()),GetOwningPlayer(GetTriggerUnit()))
endfunction
//===========================================================================
//===========================================================================
//Trigger:BuyHammer
//===========================================================================
function Trig_BuyHammer_Func001C takes nothing returns boolean
if(not(GetItemTypeId(GetSoldItem())=='I01N'))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),'I004')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),'I008')==true))then
return false
endif
return true
endfunction
function Trig_BuyHammer_Actions takes nothing returns nothing
if(Trig_BuyHammer_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I004'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I008'))
call UnitAddItemByIdSwapped('I01M',GetBuyingUnit())
else
endif
call ConditionalTriggerExecute(udg_trigger63)
endfunction
//===========================================================================
//===========================================================================
//Trigger:KingsShield
//===========================================================================
function Trig_KingsShield_Func001C takes nothing returns boolean
if(not(GetItemTypeId(GetSoldItem())=='I02U'))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),'I00A')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),'I00D')==true))then
return false
endif
return true
endfunction
function Trig_KingsShield_Actions takes nothing returns nothing
if(Trig_KingsShield_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I00A'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I00D'))
call UnitAddItemByIdSwapped('I02V',GetBuyingUnit())
else
endif
call ConditionalTriggerExecute(udg_trigger63)
endfunction
//===========================================================================
//===========================================================================
//Trigger:LightHammer
//===========================================================================
function Trig_LightHammer_Func001C takes nothing returns boolean
if(not(GetItemTypeId(GetSoldItem())=='I02S'))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),'I001')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),'I000')==true))then
return false
endif
return true
endfunction
function Trig_LightHammer_Actions takes nothing returns nothing
if(Trig_LightHammer_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I001'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I000'))
call UnitAddItemByIdSwapped('I02T',GetBuyingUnit())
else
endif
call ConditionalTriggerExecute(udg_trigger63)
endfunction
//===========================================================================
//===========================================================================
//Trigger:BuyHand
//===========================================================================
function Trig_BuyHand_Func001C takes nothing returns boolean
if(not(GetItemTypeId(GetSoldItem())=='I01T'))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),'I010')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),'I011')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),'I00N')==true))then
return false
endif
return true
endfunction
function Trig_BuyHand_Actions takes nothing returns nothing
if(Trig_BuyHand_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I010'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I011'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I00N'))
call UnitAddItemByIdSwapped('I01S',GetBuyingUnit())
else
endif
call ConditionalTriggerExecute(udg_trigger63)
endfunction
//===========================================================================
//===========================================================================
//Trigger:SteelNimshaEffect
//===========================================================================
function Trig_SteelNimshaEffect_Conditions takes nothing returns boolean
if(not(IsUnitType(GetAttackedUnitBJ(),UNIT_TYPE_HERO)==false))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetAttacker(),'I005')==true))then
return false
endif
return true
endfunction
function Trig_SteelNimshaEffect_Actions takes nothing returns nothing
call UnitAddAbilityBJ('A01H',GetAttackedUnitBJ())
endfunction
//===========================================================================
//===========================================================================
//Trigger:AcidNimshaEffect
//===========================================================================
function Trig_AcidNimshaEffect_Conditions takes nothing returns boolean
if(not(IsUnitType(GetAttackedUnitBJ(),UNIT_TYPE_HERO)==false))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetAttacker(),'I004')==true))then
return false
endif
return true
endfunction
function Trig_AcidNimshaEffect_Actions takes nothing returns nothing
call UnitAddAbilityBJ('A01G',GetAttackedUnitBJ())
endfunction
//===========================================================================
//===========================================================================
//Trigger:Destruction
//===========================================================================
function Trig_Destruction_Conditions takes nothing returns boolean
if(not(IsUnitType(GetAttackedUnitBJ(),UNIT_TYPE_HERO)==false))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetAttacker(),'I01M')==true))then
return false
endif
return true
endfunction
function Trig_Destruction_Actions takes nothing returns nothing
call UnitAddAbilityBJ('A06Q',GetAttackedUnitBJ())
endfunction
//===========================================================================
//===========================================================================
//Trigger:BuyElvenSlippers
//===========================================================================
function Trig_BuyElvenSlippers_Func001C takes nothing returns boolean
if(not(GetItemTypeId(GetSoldItem())=='I01L'))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),'I006')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),'I01O')==true))then
return false
endif
return true
endfunction
function Trig_BuyElvenSlippers_Actions takes nothing returns nothing
if(Trig_BuyElvenSlippers_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I006'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I01O'))
call UnitAddItemByIdSwapped('I01E',GetBuyingUnit())
else
endif
call ConditionalTriggerExecute(udg_trigger63)
endfunction
//===========================================================================
//===========================================================================
//Trigger:KillBlink
//===========================================================================
function Trig_KillBlink_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())!='u001'))then
return false
endif
return true
endfunction
function Trig_KillBlink_Func002Func001001 takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),GetUnitsOfPlayerAll(ConvertedPlayer(GetForLoopIndexA())))==true)
endfunction
function Trig_KillBlink_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_KillBlink_Func002Func001001())then
call KillUnit(GetTriggerUnit())
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
//===========================================================================
//===========================================================================
//Trigger:RecipeSFX
//===========================================================================
function Trig_RecipeSFX_Func001C takes nothing returns boolean
if((GetItemTypeId(GetSoldItem())=='I01T'))then
return true
endif
if((GetItemTypeId(GetSoldItem())=='I01L'))then
return true
endif
if((GetItemTypeId(GetSoldItem())=='I01N'))then
return true
endif
if((GetItemTypeId(GetSoldItem())=='I02U'))then
return true
endif
if((GetItemTypeId(GetSoldItem())=='I02S'))then
return true
endif
return false
endfunction
function Trig_RecipeSFX_Conditions takes nothing returns boolean
if(not Trig_RecipeSFX_Func001C())then
return false
endif
return true
endfunction
function Trig_RecipeSFX_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call TriggerSleepAction(0.20)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
//===========================================================================
//===========================================================================
//Trigger:BuyLongBow
//===========================================================================
function Trig_BuyLongBow_Func001C takes nothing returns boolean
if(not(GetItemTypeId(GetSoldItem())=='I022'))then
return false
endif
if(not(GetUnitTypeId(GetBuyingUnit())=='E008'))then
return false
endif
return true
endfunction
function Trig_BuyLongBow_Actions takes nothing returns nothing
if(Trig_BuyLongBow_Func001C())then
call UnitAddItemByIdSwapped('I01Z',GetBuyingUnit())
else
endif
endfunction
//===========================================================================
//===========================================================================
//Trigger:BuyEternity
//===========================================================================
function Trig_BuyEternity_Func001C takes nothing returns boolean
if(not(GetItemTypeId(GetSoldItem())=='I020'))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),'I00O')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),'I01S')==true))then
return false
endif
return true
endfunction
function Trig_BuyEternity_Actions takes nothing returns nothing
if(Trig_BuyEternity_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I00O'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I01S'))
call UnitAddItemByIdSwapped('I01Y',GetBuyingUnit())
else
endif
endfunction
//===========================================================================
//===========================================================================
//Trigger:BuyGlowing
//===========================================================================
function Trig_BuyGlowing_Func001C takes nothing returns boolean
if(not(GetItemTypeId(GetSoldItem())=='I021'))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),'I00E')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),'I00F')==true))then
return false
endif
return true
endfunction
function Trig_BuyGlowing_Actions takes nothing returns nothing
if(Trig_BuyGlowing_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I00E'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I00F'))
call UnitAddItemByIdSwapped('I01X',GetBuyingUnit())
else
endif
endfunction
//===========================================================================
//===========================================================================
//Trigger:BuyTrueBlade
//===========================================================================
function Trig_BuyTrueBlade_Func001C takes nothing returns boolean
if(not(GetItemTypeId(GetSoldItem())=='I023'))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),'I00B')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),'I003')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),'I004')==true))then
return false
endif
return true
endfunction
function Trig_BuyTrueBlade_Actions takes nothing returns nothing
if(Trig_BuyTrueBlade_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I00B'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I003'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I004'))
call UnitAddItemByIdSwapped('I01W',GetBuyingUnit())
else
endif
endfunction
//===========================================================================
//===========================================================================
//Trigger:HeroDeath
//===========================================================================
function Trig_HeroDeath_Conditions takes nothing returns boolean
if(not(IsUnitType(GetDyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_HeroDeath_Func013Func001C takes nothing returns boolean
if(not(GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))==GetForLoopIndexA()))then
return false
endif
return true
endfunction
function Trig_HeroDeath_Func014Func001C takes nothing returns boolean
if(not(GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))==GetForLoopIndexB()))then
return false
endif
return true
endfunction
function Trig_HeroDeath_Actions takes nothing returns nothing
call StartTimerBJ(udg_timers01[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))],false,(I2R(GetHeroLevel(GetDyingUnit()))+40.00))
call CreateTimerDialogBJ(udg_timers01[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))],"Hero Revives In:")
set udg_timerdialogs01[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]=GetLastCreatedTimerDialogBJ()
call TimerDialogDisplayBJ(false,udg_timerdialogs01[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))])
call TimerDialogDisplayForPlayerBJ(true,udg_timerdialogs01[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))],GetOwningPlayer(GetDyingUnit()))
call DisplayTimedTextToForce(GetPlayersAll(),5.00,(((GetPlayerName(GetOwningPlayer(GetDyingUnit()))+"'s")+(" "+GetUnitName(GetDyingUnit())))+(" "+"was just struck down!")))
call DisplayTimedTextToForce(GetPlayersAll(),5.00,("Hero revives in: "+(I2S((GetHeroLevel(GetDyingUnit())+40))+" seconds.")))
call TriggerSleepAction((I2R(GetHeroLevel(GetDyingUnit()))+10.00))
call DisplayTimedTextToForce(GetPlayersAll(),5.00,(("30 seconds until"+" ")+(GetPlayerName(GetOwningPlayer(GetDyingUnit()))+("'s"+((" "+GetUnitName(GetDyingUnit()))+" revives.")))))
call TriggerSleepAction(30.00)
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialogs01[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))],GetOwningPlayer(GetDyingUnit()))
call DestroyTimerDialogBJ(udg_timerdialogs01[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_HeroDeath_Func013Func001C())then
call ReviveHeroLoc(GetDyingUnit(),GetRectCenter(udg_rect04),true)
call SetUnitInvulnerable(GetTriggerUnit(),true)
call TriggerSleepAction(1.50)
call SetUnitInvulnerable(GetTriggerUnit(),false)
else
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopBIndex=5
set bj_forLoopBIndexEnd=8
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
if(Trig_HeroDeath_Func014Func001C())then
call ReviveHeroLoc(GetDyingUnit(),GetRectCenter(udg_rect05),true)
call SetUnitInvulnerable(GetTriggerUnit(),true)
call SetUnitManaPercentBJ(udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))],15.00)
call TriggerSleepAction(3.00)
call SetUnitInvulnerable(GetTriggerUnit(),false)
else
endif
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
endfunction
//===========================================================================
//===========================================================================
//Trigger:TeleportLeft1
//===========================================================================
function Trig_TeleportLeft1_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_TeleportLeft1_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
set udg_effects01[1]=GetLastCreatedEffectBJ()
call SetUnitPositionLoc(GetTriggerUnit(),OffsetLocation(GetRectCenter(udg_rect07),0,-200.00))
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[1])
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
set udg_effects01[2]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[2])
endfunction
//===========================================================================
//===========================================================================
//Trigger:TeleportLeft1a
//===========================================================================
function Trig_TeleportLeft1a_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_TeleportLeft1a_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
set udg_effects01[3]=GetLastCreatedEffectBJ()
call SetUnitPositionLoc(GetTriggerUnit(),OffsetLocation(GetRectCenter(udg_rect06),200.00,0.00))
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[3])
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
set udg_effects01[4]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[4])
endfunction
//===========================================================================
//===========================================================================
//Trigger:TeleportLeft2
//===========================================================================
function Trig_TeleportLeft2_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_TeleportLeft2_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
set udg_effects01[5]=GetLastCreatedEffectBJ()
call SetUnitPositionLoc(GetTriggerUnit(),OffsetLocation(GetRectCenter(udg_rect09),0,-200.00))
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[5])
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
set udg_effects01[6]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[6])
endfunction
//===========================================================================
//===========================================================================
//Trigger:TeleportLeft2a
//===========================================================================
function Trig_TeleportLeft2a_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_TeleportLeft2a_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
set udg_effects01[7]=GetLastCreatedEffectBJ()
call SetUnitPositionLoc(GetTriggerUnit(),OffsetLocation(GetRectCenter(udg_rect08),-200.00,0.00))
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[7])
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
set udg_effects01[8]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[8])
endfunction
//===========================================================================
//===========================================================================
//Trigger:TeleportRight1
//===========================================================================
function Trig_TeleportRight1_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_TeleportRight1_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
set udg_effects01[9]=GetLastCreatedEffectBJ()
call SetUnitPositionLoc(GetTriggerUnit(),OffsetLocation(GetRectCenter(udg_rect11),0,-200.00))
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[9])
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
set udg_effects01[10]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[10])
endfunction
//===========================================================================
//===========================================================================
//Trigger:TeleportRight1a
//===========================================================================
function Trig_TeleportRight1a_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_TeleportRight1a_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
set udg_effects01[11]=GetLastCreatedEffectBJ()
call SetUnitPositionLoc(GetTriggerUnit(),OffsetLocation(GetRectCenter(udg_rect10),200.00,0.00))
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[11])
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
set udg_effects01[12]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[12])
endfunction
//===========================================================================
//===========================================================================
//Trigger:TeleportRight2
//===========================================================================
function Trig_TeleportRight2_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_TeleportRight2_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
set udg_effects01[13]=GetLastCreatedEffectBJ()
call SetUnitPositionLoc(GetTriggerUnit(),OffsetLocation(GetRectCenter(udg_rect13),0,-200.00))
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[13])
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
set udg_effects01[14]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[14])
endfunction
//===========================================================================
//===========================================================================
//Trigger:TeleportRight2a
//===========================================================================
function Trig_TeleportRight2a_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_TeleportRight2a_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
set udg_effects01[15]=GetLastCreatedEffectBJ()
call SetUnitPositionLoc(GetTriggerUnit(),OffsetLocation(GetRectCenter(udg_rect12),-200.00,0))
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[15])
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
set udg_effects01[16]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.10)
call DestroyEffectBJ(udg_effects01[16])
endfunction
//===========================================================================
//===========================================================================
//Trigger:Waves
//===========================================================================
function Trig_Waves_Func001C takes nothing returns boolean
if(not(udg_boolean01==true))then
return false
endif
return true
endfunction
function Trig_Waves_Actions takes nothing returns nothing
if(Trig_Waves_Func001C())then
set udg_integer02=8
else
set udg_integer02=((CountPlayersInForceBJ(udg_forces02[3])/2)+8)
endif
endfunction
//===========================================================================
//===========================================================================
//Trigger:GameOver
//===========================================================================
function Trig_GameOver_Func001001 takes nothing returns boolean
return(udg_integers03[1]==0)
endfunction
function Trig_GameOver_Func001002 takes nothing returns boolean
return(udg_integers03[2]==0)
endfunction
function Trig_GameOver_Conditions takes nothing returns boolean
if(not GetBooleanOr(Trig_GameOver_Func001001(),Trig_GameOver_Func001002()))then
return false
endif
return true
endfunction
function Trig_GameOver_Func004Func003Func001A takes nothing returns nothing
call KillUnit(GetEnumUnit())
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_GameOver_Func004Func003Func002A takes nothing returns nothing
call KillUnit(GetEnumUnit())
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_GameOver_Func004Func003Func003A takes nothing returns nothing
call KillUnit(GetEnumUnit())
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_GameOver_Func004Func003Func004A takes nothing returns nothing
call KillUnit(GetEnumUnit())
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_GameOver_Func004Func003C takes nothing returns boolean
if(not(udg_boolean04==true))then
return false
endif
return true
endfunction
function Trig_GameOver_Func004C takes nothing returns boolean
if(not(udg_integers03[1]==0))then
return false
endif
return true
endfunction
function Trig_GameOver_Func005Func003Func001A takes nothing returns nothing
call KillUnit(GetEnumUnit())
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_GameOver_Func005Func003Func002A takes nothing returns nothing
call KillUnit(GetEnumUnit())
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_GameOver_Func005Func003Func003A takes nothing returns nothing
call KillUnit(GetEnumUnit())
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_GameOver_Func005Func003Func004A takes nothing returns nothing
call KillUnit(GetEnumUnit())
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_GameOver_Func005Func003C takes nothing returns boolean
if(not(udg_boolean04==true))then
return false
endif
return true
endfunction
function Trig_GameOver_Func005C takes nothing returns boolean
if(not(udg_integers03[2]==0))then
return false
endif
return true
endfunction
function Trig_GameOver_Actions takes nothing returns nothing
set udg_boolean04=true
call PlaySoundBJ(udg_sound06)
if(Trig_GameOver_Func004C())then
call DisplayTimedTextToForce(GetPlayersAll(),30,"Team 2 is victorious! Boo YAH!\n|cff87ceebThank You for Playing!|r")
call DisableTrigger(udg_trigger07)
if(Trig_GameOver_Func004Func003C())then
call ForGroupBJ(GetUnitsOfPlayerAll(Player(8)),function Trig_GameOver_Func004Func003Func001A)
call ForGroupBJ(GetUnitsOfPlayerAll(Player(9)),function Trig_GameOver_Func004Func003Func002A)
call ForGroupBJ(GetUnitsOfPlayerAll(Player(10)),function Trig_GameOver_Func004Func003Func003A)
call ForGroupBJ(GetUnitsOfPlayerAll(Player(11)),function Trig_GameOver_Func004Func003Func004A)
else
endif
else
endif
if(Trig_GameOver_Func005C())then
call DisplayTimedTextToForce(GetPlayersAll(),20.00,"Team 1 is victorious! Boo YAH!\n|cff87ceebThank You for Playing!|r")
call DisableTrigger(udg_trigger07)
if(Trig_GameOver_Func005Func003C())then
call ForGroupBJ(GetUnitsOfPlayerAll(Player(8)),function Trig_GameOver_Func005Func003Func001A)
call ForGroupBJ(GetUnitsOfPlayerAll(Player(9)),function Trig_GameOver_Func005Func003Func002A)
call ForGroupBJ(GetUnitsOfPlayerAll(Player(10)),function Trig_GameOver_Func005Func003Func003A)
call ForGroupBJ(GetUnitsOfPlayerAll(Player(11)),function Trig_GameOver_Func005Func003Func004A)
else
endif
else
endif
endfunction
//===========================================================================
//===========================================================================
//Trigger:ClogCheckLeft
//===========================================================================
function Trig_ClogCheckLeft_Func001001 takes nothing returns boolean
return(udg_integers07[1]>=100)
endfunction
function Trig_ClogCheckLeft_Func001002 takes nothing returns boolean
return(udg_integers07[2]>=100)
endfunction
function Trig_ClogCheckLeft_Conditions takes nothing returns boolean
if(not GetBooleanOr(Trig_ClogCheckLeft_Func001001(),Trig_ClogCheckLeft_Func001002()))then
return false
endif
return true
endfunction
function Trig_ClogCheckLeft_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound06)
call DisplayTimedTextToForce(GetPlayersAll(),5.00,"|cffffcc00Team 1 is not killing fast enough! If there are more than 110 units on either side, monsters will be teleported to the goal! Pick it up, or lose lives!|r")
call DisplayTimedTextToForce(GetPlayersAll(),5.00,("Monster Count Left Side for Team 1: "+I2S(udg_integers07[1])))
call DisplayTimedTextToForce(GetPlayersAll(),5.00,("Monster Count Right Side for Team 1: "+I2S(udg_integers07[2])))
call ConditionalTriggerExecute(udg_trigger81)
call ConditionalTriggerExecute(udg_trigger82)
endfunction
//===========================================================================
//===========================================================================
//Trigger:ClogCheckRight
//===========================================================================
function Trig_ClogCheckRight_Func001001 takes nothing returns boolean
return(udg_integers07[3]>=100)
endfunction
function Trig_ClogCheckRight_Func001002 takes nothing returns boolean
return(udg_integers07[4]>=100)
endfunction
function Trig_ClogCheckRight_Conditions takes nothing returns boolean
if(not GetBooleanOr(Trig_ClogCheckRight_Func001001(),Trig_ClogCheckRight_Func001002()))then
return false
endif
return true
endfunction
function Trig_ClogCheckRight_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound06)
call DisplayTimedTextToForce(GetPlayersAll(),5.00,"|cffffcc00Team 2 is not killing fast enough! If there are more than 110 units on either side, monsters will be teleported to the goal! Pick it up, or lose lives!|r")
call DisplayTimedTextToForce(GetPlayersAll(),5.00,("Monster Count Left Side for Team 2: "+I2S(udg_integers07[3])))
call DisplayTimedTextToForce(GetPlayersAll(),5.00,("Monster Count Right Side for Team 2: "+I2S(udg_integers07[4])))
call ConditionalTriggerExecute(udg_trigger83)
call ConditionalTriggerExecute(udg_trigger84)
endfunction
//===========================================================================
//===========================================================================
//Trigger:ClogKillTeam1Left
//===========================================================================
function Trig_ClogKillTeam1Left_Conditions takes nothing returns boolean
if(not(udg_integers07[1]>=110))then
return false
endif
return true
endfunction
function Trig_ClogKillTeam1Left_Func003Func001A takes nothing returns nothing
call SetUnitPathing(GetEnumUnit(),false)
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(udg_rect04))
set udg_booleans01[1]=false
endfunction
function Trig_ClogKillTeam1Left_Func003C takes nothing returns boolean
if(not(udg_booleans01[1]==true))then
return false
endif
return true
endfunction
function Trig_ClogKillTeam1Left_Actions takes nothing returns nothing
set udg_booleans01[1]=true
call DisplayTimedTextToForce(GetPlayersAll(),5.00,"Team 1 has had 10 units teleported to the goal! BOGGLE")
if(Trig_ClogKillTeam1Left_Func003C())then
call ForGroupBJ(GetRandomSubGroup(10,GetUnitsOfPlayerAll(Player(10))),function Trig_ClogKillTeam1Left_Func003Func001A)
else
endif
endfunction
//===========================================================================
//===========================================================================
//Trigger:ClogKillTeam1Right
//===========================================================================
function Trig_ClogKillTeam1Right_Conditions takes nothing returns boolean
if(not(udg_integers07[2]>=110))then
return false
endif
return true
endfunction
function Trig_ClogKillTeam1Right_Func003Func001A takes nothing returns nothing
call SetUnitPathing(GetEnumUnit(),false)
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(udg_rect04))
set udg_booleans01[2]=false
endfunction
function Trig_ClogKillTeam1Right_Func003C takes nothing returns boolean
if(not(udg_booleans01[2]==true))then
return false
endif
return true
endfunction
function Trig_ClogKillTeam1Right_Actions takes nothing returns nothing
set udg_booleans01[2]=true
call DisplayTimedTextToForce(GetPlayersAll(),5.00,"Team 1 has had 10 units teleported to the goal! BOGGLE")
if(Trig_ClogKillTeam1Right_Func003C())then
call ForGroupBJ(GetRandomSubGroup(10,GetUnitsOfPlayerAll(Player(11))),function Trig_ClogKillTeam1Right_Func003Func001A)
else
endif
endfunction
//===========================================================================
//===========================================================================
//Trigger:ClogKillTeam2Left
//===========================================================================
function Trig_ClogKillTeam2Left_Conditions takes nothing returns boolean
if(not(udg_integers07[3]>=110))then
return false
endif
return true
endfunction
function Trig_ClogKillTeam2Left_Func003Func001A takes nothing returns nothing
call SetUnitPathing(GetEnumUnit(),false)
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(udg_rect05))
set udg_booleans01[3]=false
endfunction
function Trig_ClogKillTeam2Left_Func003C takes nothing returns boolean
if(not(udg_booleans01[3]==true))then
return false
endif
return true
endfunction
function Trig_ClogKillTeam2Left_Actions takes nothing returns nothing
set udg_booleans01[3]=true
call DisplayTimedTextToForce(GetPlayersAll(),5.00,"Team 2 has had 10 units teleported to the goal! BOGGLE")
if(Trig_ClogKillTeam2Left_Func003C())then
call ForGroupBJ(GetRandomSubGroup(10,GetUnitsOfPlayerAll(Player(8))),function Trig_ClogKillTeam2Left_Func003Func001A)
else
endif
endfunction
//===========================================================================
//===========================================================================
//Trigger:ClogKillTeam2Right
//===========================================================================
function Trig_ClogKillTeam2Right_Conditions takes nothing returns boolean
if(not(udg_integers07[4]>=110))then
return false
endif
return true
endfunction
function Trig_ClogKillTeam2Right_Func003Func001A takes nothing returns nothing
call SetUnitPathing(GetEnumUnit(),false)
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(udg_rect05))
set udg_booleans01[4]=false
endfunction
function Trig_ClogKillTeam2Right_Func003C takes nothing returns boolean
if(not(udg_booleans01[4]==true))then
return false
endif
return true
endfunction
function Trig_ClogKillTeam2Right_Actions takes nothing returns nothing
set udg_booleans01[4]=true
call DisplayTimedTextToForce(GetPlayersAll(),5.00,"Team 2 has had 10 units teleported to the goal! BOGGLE")
if(Trig_ClogKillTeam2Right_Func003C())then
call ForGroupBJ(GetRandomSubGroup(10,GetUnitsOfPlayerAll(Player(9))),function Trig_ClogKillTeam2Right_Func003Func001A)
else
endif
endfunction
//===========================================================================
//===========================================================================
//Trigger:MovementLeftTeam1
//===========================================================================
function Trig_MovementLeftTeam1_Func003001002002 takes nothing returns boolean
return(IsUnitAliveBJ(GetTriggerUnit())==true)
endfunction
function Trig_MovementLeftTeam1_Conditions takes nothing returns boolean
if(not(IsUnitInGroup(GetTriggerUnit(),GetUnitsOfPlayerMatching(Player(10),Condition(function Trig_MovementLeftTeam1_Func003001002002)))==true))then
return false
endif
return true
endfunction
function Trig_MovementLeftTeam1_Actions takes nothing returns nothing
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetRectCenter(udg_rect04))
endfunction
//===========================================================================
//===========================================================================
//Trigger:MoveInsA
//===========================================================================
function Trig_MoveInsA_Actions takes nothing returns nothing
call IssuePointOrderLocBJ(GetAttackedUnitBJ(),"attack",GetRectCenter(udg_rect05))
endfunction
//===========================================================================
//===========================================================================
//Trigger:MoveIns2A
//===========================================================================
function Trig_MoveIns2A_Actions takes nothing returns nothing
call IssuePointOrderLocBJ(GetAttackedUnitBJ(),"attack",GetRectCenter(udg_rect04))
endfunction
//===========================================================================
//===========================================================================
//Trigger:MovementRightTeam1
//===========================================================================
function Trig_MovementRightTeam1_Func003001002002 takes nothing returns boolean
return(IsUnitAliveBJ(GetTriggerUnit())==true)
endfunction
function Trig_MovementRightTeam1_Conditions takes nothing returns boolean
if(not(IsUnitInGroup(GetTriggerUnit(),GetUnitsOfPlayerMatching(Player(11),Condition(function Trig_MovementRightTeam1_Func003001002002)))==true))then
return false
endif
return true
endfunction
function Trig_MovementRightTeam1_Actions takes nothing returns nothing
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetRectCenter(udg_rect04))
endfunction
//===========================================================================
//===========================================================================
//Trigger:MovementLeftTeam2
//===========================================================================
function Trig_MovementLeftTeam2_Func003001002002 takes nothing returns boolean
return(IsUnitAliveBJ(GetTriggerUnit())==true)
endfunction
function Trig_MovementLeftTeam2_Conditions takes nothing returns boolean
if(not(IsUnitInGroup(GetTriggerUnit(),GetUnitsOfPlayerMatching(Player(8),Condition(function Trig_MovementLeftTeam2_Func003001002002)))==true))then
return false
endif
return true
endfunction
function Trig_MovementLeftTeam2_Actions takes nothing returns nothing
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetRectCenter(udg_rect05))
endfunction
//===========================================================================
//===========================================================================
//Trigger:MovementRightTeam2
//===========================================================================
function Trig_MovementRightTeam2_Func003001002002 takes nothing returns boolean
return(IsUnitAliveBJ(GetTriggerUnit())==true)
endfunction
function Trig_MovementRightTeam2_Conditions takes nothing returns boolean
if(not(IsUnitInGroup(GetTriggerUnit(),GetUnitsOfPlayerMatching(Player(9),Condition(function Trig_MovementRightTeam2_Func003001002002)))==true))then
return false
endif
return true
endfunction
function Trig_MovementRightTeam2_Actions takes nothing returns nothing
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetRectCenter(udg_rect05))
endfunction
//===========================================================================
//===========================================================================
//Trigger:LifeCounter
//===========================================================================
function Trig_LifeCounter_Func010001 takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(8))
endfunction
function Trig_LifeCounter_Func010002 takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(9))
endfunction
function Trig_LifeCounter_Conditions takes nothing returns boolean
if(not GetBooleanOr(Trig_LifeCounter_Func010001(),Trig_LifeCounter_Func010002()))then
return false
endif
return true
endfunction
function Trig_LifeCounter_Actions takes nothing returns nothing
set udg_integers03[2]=(udg_integers03[2]-1)
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),2,udg_integers04[10],I2S(udg_integers03[2]))
call DisplayTimedTextToForce(udg_forces02[2],3.00,("|cffff4040You have lost a life! "+("Number of lives remaining: "+I2S(udg_integers03[2]))))
call ConditionalTriggerExecute(udg_trigger78)
call KillUnit(GetTriggerUnit())
call RemoveUnit(GetTriggerUnit())
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Human\\Flare\\FlareCaster.mdl")
call TriggerSleepAction(0.10)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
//===========================================================================
//===========================================================================
//Trigger:LifeCounter2
//===========================================================================
function Trig_LifeCounter2_Func001001 takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(10))
endfunction
function Trig_LifeCounter2_Func001002 takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(11))
endfunction
function Trig_LifeCounter2_Conditions takes nothing returns boolean
if(not GetBooleanOr(Trig_LifeCounter2_Func001001(),Trig_LifeCounter2_Func001002()))then
return false
endif
return true
endfunction
function Trig_LifeCounter2_Actions takes nothing returns nothing
set udg_integers03[1]=(udg_integers03[1]-1)
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),2,udg_integers04[9],I2S(udg_integers03[1]))
call DisplayTimedTextToForce(udg_forces02[1],3.00,("|cffff4040You have lost a life! "+("Number of lives remaining: "+I2S(udg_integers03[1]))))
call ConditionalTriggerExecute(udg_trigger78)
call KillUnit(GetTriggerUnit())
call RemoveUnit(GetTriggerUnit())
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Human\\Flare\\FlareCaster.mdl")
call TriggerSleepAction(0.10)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
//===========================================================================
//===========================================================================
//Trigger:HeroDeparture
//===========================================================================
function Trig_HeroDeparture_Func009001001001 takes nothing returns boolean
return(IsPlayerAlly(GetFilterPlayer(),GetTriggerPlayer())==true)
endfunction
function Trig_HeroDeparture_Func009001001002 takes nothing returns boolean
return(GetPlayerController(GetFilterPlayer())!=MAP_CONTROL_COMPUTER)
endfunction
function Trig_HeroDeparture_Func009001001 takes nothing returns boolean
return GetBooleanAnd(Trig_HeroDeparture_Func009001001001(),Trig_HeroDeparture_Func009001001002())
endfunction
function Trig_HeroDeparture_Func009Func001Func001001003001001001 takes nothing returns boolean
return(IsPlayerAlly(GetFilterPlayer(),GetTriggerPlayer())==true)
endfunction
function Trig_HeroDeparture_Func009Func001Func001001003001001002 takes nothing returns boolean
return(GetPlayerController(GetFilterPlayer())!=MAP_CONTROL_COMPUTER)
endfunction
function Trig_HeroDeparture_Func009Func001Func001001003001001 takes nothing returns boolean
return GetBooleanAnd(Trig_HeroDeparture_Func009Func001Func001001003001001001(),Trig_HeroDeparture_Func009Func001Func001001003001001002())
endfunction
function Trig_HeroDeparture_Func009Func001Func002001003001001001 takes nothing returns boolean
return(IsPlayerAlly(GetFilterPlayer(),GetTriggerPlayer())==true)
endfunction
function Trig_HeroDeparture_Func009Func001Func002001003001001002 takes nothing returns boolean
return(GetPlayerController(GetFilterPlayer())!=MAP_CONTROL_COMPUTER)
endfunction
function Trig_HeroDeparture_Func009Func001Func002001003001001 takes nothing returns boolean
return GetBooleanAnd(Trig_HeroDeparture_Func009Func001Func002001003001001001(),Trig_HeroDeparture_Func009Func001Func002001003001001002())
endfunction
function Trig_HeroDeparture_Func009Func001Func003001003001001001 takes nothing returns boolean
return(IsPlayerAlly(GetFilterPlayer(),GetTriggerPlayer())==true)
endfunction
function Trig_HeroDeparture_Func009Func001Func003001003001001002 takes nothing returns boolean
return(GetPlayerController(GetFilterPlayer())!=MAP_CONTROL_COMPUTER)
endfunction
function Trig_HeroDeparture_Func009Func001Func003001003001001 takes nothing returns boolean
return GetBooleanAnd(Trig_HeroDeparture_Func009Func001Func003001003001001001(),Trig_HeroDeparture_Func009Func001Func003001003001001002())
endfunction
function Trig_HeroDeparture_Func009Func001Func004001 takes nothing returns boolean
return(GetPlayerController(GetEnumPlayer())==MAP_CONTROL_USER)
endfunction
function Trig_HeroDeparture_Func009Func001Func004002 takes nothing returns boolean
return(GetPlayerSlotState(GetEnumPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_HeroDeparture_Func009Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_HeroDeparture_Func009Func001Func004001(),Trig_HeroDeparture_Func009Func001Func004002()))then
return false
endif
return true
endfunction
function Trig_HeroDeparture_Func009A takes nothing returns nothing
if(Trig_HeroDeparture_Func009Func001C())then
call AdjustPlayerStateBJ((GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)/CountPlayersInForceBJ(GetPlayersMatching(Condition(function Trig_HeroDeparture_Func009Func001Func001001003001001)))),GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ((GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_LUMBER)/CountPlayersInForceBJ(GetPlayersMatching(Condition(function Trig_HeroDeparture_Func009Func001Func002001003001001)))),GetEnumPlayer(),PLAYER_STATE_RESOURCE_LUMBER)
call AddHeroXPSwapped((GetHeroXP(udg_units03[GetConvertedPlayerId(GetTriggerPlayer())])/CountPlayersInForceBJ(GetPlayersMatching(Condition(function Trig_HeroDeparture_Func009Func001Func003001003001001)))),udg_units03[GetConvertedPlayerId(GetEnumPlayer())],true)
else
endif
endfunction
function Trig_HeroDeparture_Func012002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_HeroDeparture_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound06)
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,udg_integers04[GetConvertedPlayerId(GetTriggerPlayer())],"(Left the Game)")
call DisplayTimedTextToForce(GetPlayersAll(),20.00,(GetPlayerName(GetTriggerPlayer())+" has left the game!"))
call DisplayTimedTextToForce(GetPlayersAllies(GetTriggerPlayer()),20.00,("Your share of experience: "+I2S((GetHeroXP(udg_units03[GetConvertedPlayerId(GetTriggerPlayer())])/CountPlayersInForceBJ(udg_forces02[2])))))
call DisplayTimedTextToForce(GetPlayersAllies(GetTriggerPlayer()),20.00,("Your share of gold: "+I2S((GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)/CountPlayersInForceBJ(udg_forces02[2])))))
call DisplayTimedTextToForce(GetPlayersAllies(GetTriggerPlayer()),20.00,("Your share of lumber: "+I2S((GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_LUMBER)/CountPlayersInForceBJ(udg_forces02[2])))))
call ForceRemovePlayerSimple(GetTriggerPlayer(),udg_forces02[2])
call ForceRemovePlayerSimple(GetTriggerPlayer(),udg_forces02[3])
call ForForce(GetPlayersMatching(Condition(function Trig_HeroDeparture_Func009001001)),function Trig_HeroDeparture_Func009A)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call UnitRemoveItemFromSlotSwapped(GetForLoopIndexA(),udg_units03[GetConvertedPlayerId(GetTriggerPlayer())])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveUnit(udg_units03[GetConvertedPlayerId(GetTriggerPlayer())])
call ForGroupBJ(GetUnitsOfPlayerAll(GetTriggerPlayer()),function Trig_HeroDeparture_Func012002)
endfunction
//===========================================================================
//===========================================================================
//Trigger:HeroDeparture2
//===========================================================================
function Trig_HeroDeparture2_Func009001001001 takes nothing returns boolean
return(IsPlayerAlly(GetFilterPlayer(),GetTriggerPlayer())==true)
endfunction
function Trig_HeroDeparture2_Func009001001002 takes nothing returns boolean
return(GetPlayerController(GetFilterPlayer())!=MAP_CONTROL_COMPUTER)
endfunction
function Trig_HeroDeparture2_Func009001001 takes nothing returns boolean
return GetBooleanAnd(Trig_HeroDeparture2_Func009001001001(),Trig_HeroDeparture2_Func009001001002())
endfunction
function Trig_HeroDeparture2_Func009Func001Func001001003001001001 takes nothing returns boolean
return(IsPlayerAlly(GetFilterPlayer(),GetTriggerPlayer())==true)
endfunction
function Trig_HeroDeparture2_Func009Func001Func001001003001001002 takes nothing returns boolean
return(GetPlayerController(GetFilterPlayer())!=MAP_CONTROL_COMPUTER)
endfunction
function Trig_HeroDeparture2_Func009Func001Func001001003001001 takes nothing returns boolean
return GetBooleanAnd(Trig_HeroDeparture2_Func009Func001Func001001003001001001(),Trig_HeroDeparture2_Func009Func001Func001001003001001002())
endfunction
function Trig_HeroDeparture2_Func009Func001Func002001003001001001 takes nothing returns boolean
return(IsPlayerAlly(GetFilterPlayer(),GetTriggerPlayer())==true)
endfunction
function Trig_HeroDeparture2_Func009Func001Func002001003001001002 takes nothing returns boolean
return(GetPlayerController(GetFilterPlayer())!=MAP_CONTROL_COMPUTER)
endfunction
function Trig_HeroDeparture2_Func009Func001Func002001003001001 takes nothing returns boolean
return GetBooleanAnd(Trig_HeroDeparture2_Func009Func001Func002001003001001001(),Trig_HeroDeparture2_Func009Func001Func002001003001001002())
endfunction
function Trig_HeroDeparture2_Func009Func001Func003001003001001001 takes nothing returns boolean
return(IsPlayerAlly(GetFilterPlayer(),GetTriggerPlayer())==true)
endfunction
function Trig_HeroDeparture2_Func009Func001Func003001003001001002 takes nothing returns boolean
return(GetPlayerController(GetFilterPlayer())!=MAP_CONTROL_COMPUTER)
endfunction
function Trig_HeroDeparture2_Func009Func001Func003001003001001 takes nothing returns boolean
return GetBooleanAnd(Trig_HeroDeparture2_Func009Func001Func003001003001001001(),Trig_HeroDeparture2_Func009Func001Func003001003001001002())
endfunction
function Trig_HeroDeparture2_Func009Func001Func004001 takes nothing returns boolean
return(GetPlayerController(GetEnumPlayer())==MAP_CONTROL_USER)
endfunction
function Trig_HeroDeparture2_Func009Func001Func004002 takes nothing returns boolean
return(GetPlayerSlotState(GetEnumPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_HeroDeparture2_Func009Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_HeroDeparture2_Func009Func001Func004001(),Trig_HeroDeparture2_Func009Func001Func004002()))then
return false
endif
return true
endfunction
function Trig_HeroDeparture2_Func009A takes nothing returns nothing
if(Trig_HeroDeparture2_Func009Func001C())then
call AdjustPlayerStateBJ((GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)/CountPlayersInForceBJ(GetPlayersMatching(Condition(function Trig_HeroDeparture2_Func009Func001Func001001003001001)))),GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ((GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_LUMBER)/CountPlayersInForceBJ(GetPlayersMatching(Condition(function Trig_HeroDeparture2_Func009Func001Func002001003001001)))),GetEnumPlayer(),PLAYER_STATE_RESOURCE_LUMBER)
call AddHeroXPSwapped((GetHeroXP(udg_units03[GetConvertedPlayerId(GetTriggerPlayer())])/CountPlayersInForceBJ(GetPlayersMatching(Condition(function Trig_HeroDeparture2_Func009Func001Func003001003001001)))),udg_units03[GetConvertedPlayerId(GetEnumPlayer())],true)
else
endif
endfunction
function Trig_HeroDeparture2_Func012002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_HeroDeparture2_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound06)
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,udg_integers04[GetConvertedPlayerId(GetTriggerPlayer())],"(Left the Game)")
call DisplayTimedTextToForce(GetPlayersAll(),20.00,(GetPlayerName(GetTriggerPlayer())+" has left the game!"))
call DisplayTimedTextToForce(GetPlayersAllies(GetTriggerPlayer()),20.00,("Your share of experience: "+I2S((GetHeroXP(udg_units03[GetConvertedPlayerId(GetTriggerPlayer())])/CountPlayersInForceBJ(udg_forces02[1])))))
call DisplayTimedTextToForce(GetPlayersAllies(GetTriggerPlayer()),20.00,("Your share of gold: "+I2S((GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)/CountPlayersInForceBJ(udg_forces02[1])))))
call DisplayTimedTextToForce(GetPlayersAllies(GetTriggerPlayer()),20.00,("Your share of lumber: "+I2S((GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_LUMBER)/CountPlayersInForceBJ(udg_forces02[1])))))
call ForceRemovePlayerSimple(GetTriggerPlayer(),udg_forces02[1])
call ForceRemovePlayerSimple(GetTriggerPlayer(),udg_forces02[3])
call ForForce(GetPlayersMatching(Condition(function Trig_HeroDeparture2_Func009001001)),function Trig_HeroDeparture2_Func009A)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call UnitRemoveItemFromSlotSwapped(GetForLoopIndexA(),udg_units03[GetConvertedPlayerId(GetTriggerPlayer())])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveUnit(udg_units03[GetConvertedPlayerId(GetTriggerPlayer())])
call ForGroupBJ(GetUnitsOfPlayerAll(GetTriggerPlayer()),function Trig_HeroDeparture2_Func012002)
endfunction
//===========================================================================
//===========================================================================
//Trigger:UnitDeath
//===========================================================================
function Trig_UnitDeath_Func002C takes nothing returns boolean
if(not(GetUnitTypeId(udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))])=='E00B'))then
return false
endif
return true
endfunction
function Trig_UnitDeath_Func003C takes nothing returns boolean
if(not(UnitHasBuffBJ(udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))],'B017')==true))then
return false
endif
return true
endfunction
function Trig_UnitDeath_Actions takes nothing returns nothing
set udg_integers07[3]=(udg_integers07[3]-1)
if(Trig_UnitDeath_Func002C())then
call AdjustPlayerStateBJ((GetUnitLevel(GetTriggerUnit())*(GetUnitLevel(GetTriggerUnit())+2)),GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
else
endif
if(Trig_UnitDeath_Func003C())then
call AddHeroXPSwapped((GetUnitLevel(GetTriggerUnit())*14),udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))],true)
else
endif
endfunction
//===========================================================================
//===========================================================================
//Trigger:UnitDeath2
//===========================================================================
function Trig_UnitDeath2_Func002C takes nothing returns boolean
if(not(GetUnitTypeId(udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))])=='E00B'))then
return false
endif
return true
endfunction
function Trig_UnitDeath2_Func003C takes nothing returns boolean
if(not(UnitHasBuffBJ(udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))],'B017')==true))then
return false
endif
return true
endfunction
function Trig_UnitDeath2_Actions takes nothing returns nothing
set udg_integers07[4]=(udg_integers07[4]-1)
if(Trig_UnitDeath2_Func002C())then
call AdjustPlayerStateBJ((GetUnitLevel(GetTriggerUnit())*(GetUnitLevel(GetTriggerUnit())+2)),GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
else
endif
if(Trig_UnitDeath2_Func003C())then
call AddHeroXPSwapped((GetUnitLevel(GetTriggerUnit())*14),udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))],true)
else
endif
endfunction
//===========================================================================
//===========================================================================
//Trigger:UnitDeath3
//===========================================================================
function Trig_UnitDeath3_Func002C takes nothing returns boolean
if(not(GetUnitTypeId(udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))])=='E00B'))then
return false
endif
return true
endfunction
function Trig_UnitDeath3_Func003C takes nothing returns boolean
if(not(UnitHasBuffBJ(udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))],'B017')==true))then
return false
endif
return true
endfunction
function Trig_UnitDeath3_Actions takes nothing returns nothing
set udg_integers07[1]=(udg_integers07[1]-1)
if(Trig_UnitDeath3_Func002C())then
call AdjustPlayerStateBJ((GetUnitLevel(GetTriggerUnit())*(GetUnitLevel(GetTriggerUnit())+2)),GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
else
endif
if(Trig_UnitDeath3_Func003C())then
call AddHeroXPSwapped((GetUnitLevel(GetTriggerUnit())*14),udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))],true)
else
endif
endfunction
//===========================================================================
//===========================================================================
//Trigger:UnitDeath4
//===========================================================================
function Trig_UnitDeath4_Func002C takes nothing returns boolean
if(not(GetUnitTypeId(udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))])=='E00B'))then
return false
endif
return true
endfunction
function Trig_UnitDeath4_Func003C takes nothing returns boolean
if(not(UnitHasBuffBJ(udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))],'B017')==true))then
return false
endif
return true
endfunction
function Trig_UnitDeath4_Actions takes nothing returns nothing
set udg_integers07[2]=(udg_integers07[2]-1)
if(Trig_UnitDeath4_Func002C())then
call AdjustPlayerStateBJ((GetUnitLevel(GetTriggerUnit())*(GetUnitLevel(GetTriggerUnit())+2)),GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
else
endif
if(Trig_UnitDeath4_Func003C())then
call AddHeroXPSwapped((GetUnitLevel(GetTriggerUnit())*14),udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))],true)
else
endif
endfunction
//===========================================================================
//===========================================================================
//Trigger:UnitDeath5
//===========================================================================
function Trig_UnitDeath5_Func002C takes nothing returns boolean
if((GetOwningPlayer(GetKillingUnitBJ())==Player(0)))then
return true
endif
if((GetOwningPlayer(GetKillingUnitBJ())==Player(1)))then
return true
endif
if((GetOwningPlayer(GetKillingUnitBJ())==Player(2)))then
return true
endif
if((GetOwningPlayer(GetKillingUnitBJ())==Player(3)))then
return true
endif
if((GetOwningPlayer(GetKillingUnitBJ())==Player(4)))then
return true
endif
if((GetOwningPlayer(GetKillingUnitBJ())==Player(5)))then
return true
endif
if((GetOwningPlayer(GetKillingUnitBJ())==Player(6)))then
return true
endif
if((GetOwningPlayer(GetKillingUnitBJ())==Player(7)))then
return true
endif
return false
endfunction
function Trig_UnitDeath5_Conditions takes nothing returns boolean
if(not Trig_UnitDeath5_Func002C())then
return false
endif
return true
endfunction
function Trig_UnitDeath5_Actions takes nothing returns nothing
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),2,udg_integers04[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))],I2S(GetPlayerScore(GetOwningPlayer(GetKillingUnitBJ()),PLAYER_SCORE_UNITS_KILLED)))
endfunction
//===========================================================================
//===========================================================================
//Trigger:FeedbackDeth
//===========================================================================
function Trig_FeedbackDeth_Func004001 takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(10))
endfunction
function Trig_FeedbackDeth_Func004002 takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(11))
endfunction
function Trig_FeedbackDeth_Conditions takes nothing returns boolean
if(not GetBooleanOr(Trig_FeedbackDeth_Func004001(),Trig_FeedbackDeth_Func004002()))then
return false
endif
return true
endfunction
function Trig_FeedbackDeth_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("origin",GetTriggerUnit(),"Abilities\\Spells\\Human\\Feedback\\ArcaneTowerAttack.mdl")
call TriggerSleepAction(0.10)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
//===========================================================================
//===========================================================================
//Trigger:FeedbackDeth2
//===========================================================================
function Trig_FeedbackDeth2_Func004001 takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(8))
endfunction
function Trig_FeedbackDeth2_Func004002 takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(9))
endfunction
function Trig_FeedbackDeth2_Conditions takes nothing returns boolean
if(not GetBooleanOr(Trig_FeedbackDeth2_Func004001(),Trig_FeedbackDeth2_Func004002()))then
return false
endif
return true
endfunction
function Trig_FeedbackDeth2_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("origin",GetTriggerUnit(),"Abilities\\Spells\\Human\\Feedback\\ArcaneTowerAttack.mdl")
call TriggerSleepAction(0.10)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
//===========================================================================
//===========================================================================
//Trigger:StanceActivate
//===========================================================================
function Trig_StanceActivate_Conditions takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='A08N'))then
return false
endif
return true
endfunction
function Trig_StanceActivate_Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A08N',GetTriggerUnit())==1))then
return false
endif
return true
endfunction
function Trig_StanceActivate_Actions takes nothing returns nothing
if(Trig_StanceActivate_Func001C())then
call SetPlayerTechResearchedSwap('R006',1,GetOwningPlayer(GetTriggerUnit()))
else
endif
endfunction
//===========================================================================
//===========================================================================
//Trigger:LevelOffDef
//===========================================================================
function Trig_LevelOffDef_Func003001 takes nothing returns boolean
return(GetLearnedSkillBJ()=='A08N')
endfunction
function Trig_LevelOffDef_Func003002 takes nothing returns boolean
return(GetLearnedSkillBJ()=='A095')
endfunction
function Trig_LevelOffDef_Conditions takes nothing returns boolean
if(not GetBooleanOr(Trig_LevelOffDef_Func003001(),Trig_LevelOffDef_Func003002()))then
return false
endif
return true
endfunction
function Trig_LevelOffDef_Func001001 takes nothing returns boolean
return(GetLearnedSkillBJ()=='A08N')
endfunction
function Trig_LevelOffDef_Func002001 takes nothing returns boolean
return(GetLearnedSkillBJ()=='A095')
endfunction
function Trig_LevelOffDef_Actions takes nothing returns nothing
if(Trig_LevelOffDef_Func001001())then
set udg_integers11[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetSpellAbilityId()
else
call DoNothing()
endif
if(Trig_LevelOffDef_Func002001())then
set udg_integers12[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetSpellAbilityId()
else
call DoNothing()
endif
endfunction
//===========================================================================
//===========================================================================
//Trigger:OffDef
//===========================================================================
function Trig_OffDef_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A08V'))then
return false
endif
return true
endfunction
function Trig_OffDef_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ(udg_integers11[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))],GetTriggerUnit())
call UnitRemoveAbilityBJ('A08V',GetTriggerUnit())
call SetPlayerAbilityAvailableBJ(false,'A08N',GetOwningPlayer(GetTriggerUnit()))
call UnitAddAbilityBJ(udg_integers12[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))],GetTriggerUnit())
call SetPlayerAbilityAvailableBJ(true,'A095',GetOwningPlayer(GetTriggerUnit()))
call UnitAddAbilityBJ('A08O',GetTriggerUnit())
set udg_integers13[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]='A08O'
endfunction
//===========================================================================
//===========================================================================
//Trigger:DefOff
//===========================================================================
function Trig_DefOff_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A08O'))then
return false
endif
return true
endfunction
function Trig_DefOff_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ(udg_integers12[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))],GetTriggerUnit())
call SetPlayerAbilityAvailableBJ(false,'A095',GetOwningPlayer(GetTriggerUnit()))
call UnitRemoveAbilityBJ('A08O',GetTriggerUnit())
call UnitAddAbilityBJ(udg_integers11[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))],GetTriggerUnit())
call SetPlayerAbilityAvailableBJ(true,'A08N',GetOwningPlayer(GetTriggerUnit()))
call UnitAddAbilityBJ('A08V',GetTriggerUnit())
set udg_integers13[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]='A08V'
endfunction
//===========================================================================
//===========================================================================
//Trigger:BladeofWrath
//===========================================================================
function Trig_BladeofWrath_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A093'))then
return false
endif
return true
endfunction
function Trig_BladeofWrath_Func002Func001001002003001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_BladeofWrath_Func002Func001001002003002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_BladeofWrath_Func002Func001001002003 takes nothing returns boolean
return GetBooleanAnd(Trig_BladeofWrath_Func002Func001001002003001(),Trig_BladeofWrath_Func002Func001001002003002())
endfunction
function Trig_BladeofWrath_Func002Func001A takes nothing returns nothing
call SetUnitPositionLoc(GetTriggerUnit(),GetUnitLoc(GetEnumUnit()))
call CreateNUnitsAtLoc(1,'o014',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),bj_UNIT_FACING)
set udg_unit01=GetLastCreatedUnit()
call UnitAddAbilityBJ(udg_integers14[GetUnitAbilityLevelSwapped('A093',GetTriggerUnit())],udg_unit01)
call IssueImmediateOrderBJ(udg_unit01,"stomp")
call PlaySoundAtPointBJ(udg_sound18,100,GetUnitLoc(udg_unit01),0)
call KillUnit(udg_unit01)
call RemoveUnit(udg_unit01)
endfunction
function Trig_BladeofWrath_Actions takes nothing returns nothing
set udg_locations01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetUnitLoc(GetTriggerUnit())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call ForGroupBJ(GetRandomSubGroup(1,GetUnitsInRangeOfLocMatching(500.00,udg_locations01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))],Condition(function Trig_BladeofWrath_Func002Func001001002003))),function Trig_BladeofWrath_Func002Func001A)
call TriggerSleepAction(0.30)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
//===========================================================================
//===========================================================================
//Trigger:BladeofWrath2
//===========================================================================
function Trig_BladeofWrath2_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A093'))then
return false
endif
return true
endfunction
function Trig_BladeofWrath2_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ(udg_integers13[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))],GetTriggerUnit())
call UnitAddAbilityBJ('A096',GetTriggerUnit())
call TriggerSleepAction(12.00)
call UnitRemoveAbilityBJ('A096',GetTriggerUnit())
call UnitAddAbilityBJ(udg_integers13[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))],GetTriggerUnit())
endfunction
//===========================================================================
//===========================================================================
//Trigger:Temperance
//===========================================================================
function Trig_Temperance_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A09H'))then
return false
endif
return true
endfunction
function Trig_Temperance_Actions takes nothing returns nothing
call UnitAddItemByIdSwapped('I018',GetTriggerUnit())
call UnitAddItemByIdSwapped('I018',GetTriggerUnit())
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\NightElf\\BattleRoar\\RoarCaster.mdl")
call TriggerSleepAction(0.00)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
//===========================================================================
//===========================================================================
//Trigger:Temp2
//===========================================================================
function Trig_Temp2_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A09H'))then
return false
endif
return true
endfunction
function Trig_Temp2_Actions takes nothing returns nothing
call PlaySoundOnUnitBJ(udg_sound23,100,GetTriggerUnit())
endfunction
//===========================================================================
//===========================================================================
//Trigger:ShadowBond
//===========================================================================
function Trig_ShadowBond_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A08R'))then
return false
endif
return true
endfunction
function Trig_ShadowBond_Func001Func001Func003002 takes nothing returns nothing
call IssueTargetOrderBJ(GetLastCreatedUnit(),"antimagicshell",GetEnumUnit())
endfunction
function Trig_ShadowBond_Func001Func001Func005002 takes nothing returns nothing
call IssueTargetOrderBJ(GetLastCreatedUnit(),"antimagicshell",GetEnumUnit())
endfunction
function Trig_ShadowBond_Func001Func001Func007002 takes nothing returns nothing
call IssueTargetOrderBJ(GetLastCreatedUnit(),"antimagicshell",GetEnumUnit())
endfunction
function Trig_ShadowBond_Func001Func001Func009002 takes nothing returns nothing
call IssueTargetOrderBJ(GetLastCreatedUnit(),"antimagicshell",GetEnumUnit())
endfunction
function Trig_ShadowBond_Func001Func001Func011002 takes nothing returns nothing
call IssueTargetOrderBJ(GetLastCreatedUnit(),"antimagicshell",GetEnumUnit())
endfunction
function Trig_ShadowBond_Func001Func001Func013002 takes nothing returns nothing
call IssueTargetOrderBJ(GetLastCreatedUnit(),"antimagicshell",GetEnumUnit())
endfunction
function Trig_ShadowBond_Func001Func001Func015002 takes nothing returns nothing
call IssueTargetOrderBJ(GetLastCreatedUnit(),"antimagicshell",GetEnumUnit())
endfunction
function Trig_ShadowBond_Func001Func001Func017002 takes nothing returns nothing
call IssueTargetOrderBJ(GetLastCreatedUnit(),"antimagicshell",GetEnumUnit())
endfunction
function Trig_ShadowBond_Func001Func001Func019002 takes nothing returns nothing
call IssueTargetOrderBJ(GetLastCreatedUnit(),"antimagicshell",GetEnumUnit())
endfunction
function Trig_ShadowBond_Func001Func001Func021002 takes nothing returns nothing
call IssueTargetOrderBJ(GetLastCreatedUnit(),"antimagicshell",GetEnumUnit())
endfunction
function Trig_ShadowBond_Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A08R',GetTriggerUnit())==GetForLoopIndexA()))then
return false
endif
return true
endfunction
function Trig_ShadowBond_Func002Func001Func002002 takes nothing returns nothing
call UnitAddAbilityBJ('A08U',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func002Func001Func004002 takes nothing returns nothing
call UnitAddAbilityBJ('A08U',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func002Func001Func006002 takes nothing returns nothing
call UnitAddAbilityBJ('A08U',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func002Func001Func008002 takes nothing returns nothing
call UnitAddAbilityBJ('A08U',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func002Func001Func010002 takes nothing returns nothing
call UnitAddAbilityBJ('A08U',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func002Func001Func012002 takes nothing returns nothing
call UnitAddAbilityBJ('A08U',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func002Func001Func014002 takes nothing returns nothing
call UnitAddAbilityBJ('A08U',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func002Func001Func016002 takes nothing returns nothing
call UnitAddAbilityBJ('A08U',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func002Func001Func018002 takes nothing returns nothing
call UnitAddAbilityBJ('A08U',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func002Func001Func020002 takes nothing returns nothing
call UnitAddAbilityBJ('A08U',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func002Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A08R',GetTriggerUnit())==GetForLoopIndexA()))then
return false
endif
return true
endfunction
function Trig_ShadowBond_Func003Func001Func002002 takes nothing returns nothing
call UnitAddAbilityBJ('A08S',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func003Func001Func004002 takes nothing returns nothing
call UnitAddAbilityBJ('A08S',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func003Func001Func006002 takes nothing returns nothing
call UnitAddAbilityBJ('A08S',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func003Func001Func008002 takes nothing returns nothing
call UnitAddAbilityBJ('A08S',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func003Func001Func010002 takes nothing returns nothing
call UnitAddAbilityBJ('A08S',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func003Func001Func012002 takes nothing returns nothing
call UnitAddAbilityBJ('A08S',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func003Func001Func014002 takes nothing returns nothing
call UnitAddAbilityBJ('A08S',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func003Func001Func016002 takes nothing returns nothing
call UnitAddAbilityBJ('A08S',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func003Func001Func018002 takes nothing returns nothing
call UnitAddAbilityBJ('A08S',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func003Func001Func020002 takes nothing returns nothing
call UnitAddAbilityBJ('A08S',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func003Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A08R',GetTriggerUnit())==GetForLoopIndexA()))then
return false
endif
return true
endfunction
function Trig_ShadowBond_Func004Func001Func002002 takes nothing returns nothing
call UnitAddAbilityBJ('A08W',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func004Func001Func004002 takes nothing returns nothing
call UnitAddAbilityBJ('A08W',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func004Func001Func006002 takes nothing returns nothing
call UnitAddAbilityBJ('A08W',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func004Func001Func008002 takes nothing returns nothing
call UnitAddAbilityBJ('A08W',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func004Func001Func010002 takes nothing returns nothing
call UnitAddAbilityBJ('A08W',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func004Func001Func012002 takes nothing returns nothing
call UnitAddAbilityBJ('A08W',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func004Func001Func014002 takes nothing returns nothing
call UnitAddAbilityBJ('A08W',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func004Func001Func016002 takes nothing returns nothing
call UnitAddAbilityBJ('A08W',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func004Func001Func018002 takes nothing returns nothing
call UnitAddAbilityBJ('A08W',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func004Func001Func020002 takes nothing returns nothing
call UnitAddAbilityBJ('A08W',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func004Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A08R',GetTriggerUnit())==GetForLoopIndexA()))then
return false
endif
return true
endfunction
function Trig_ShadowBond_Func005Func001Func002002 takes nothing returns nothing
call UnitAddAbilityBJ('A08T',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func005Func001Func004002 takes nothing returns nothing
call UnitAddAbilityBJ('A08T',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func005Func001Func006002 takes nothing returns nothing
call UnitAddAbilityBJ('A08T',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func005Func001Func008002 takes nothing returns nothing
call UnitAddAbilityBJ('A08T',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func005Func001Func010002 takes nothing returns nothing
call UnitAddAbilityBJ('A08T',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func005Func001Func012002 takes nothing returns nothing
call UnitAddAbilityBJ('A08T',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func005Func001Func014002 takes nothing returns nothing
call UnitAddAbilityBJ('A08T',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func005Func001Func016002 takes nothing returns nothing
call UnitAddAbilityBJ('A08T',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func005Func001Func018002 takes nothing returns nothing
call UnitAddAbilityBJ('A08T',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func005Func001Func020002 takes nothing returns nothing
call UnitAddAbilityBJ('A08T',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func005Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A08R',GetTriggerUnit())==GetForLoopIndexA()))then
return false
endif
return true
endfunction
function Trig_ShadowBond_Func006Func001Func002002 takes nothing returns nothing
call UnitAddAbilityBJ('A08Z',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func006Func001Func004002 takes nothing returns nothing
call UnitAddAbilityBJ('A08Z',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func006Func001Func006002 takes nothing returns nothing
call UnitAddAbilityBJ('A08Z',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func006Func001Func008002 takes nothing returns nothing
call UnitAddAbilityBJ('A08Z',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func006Func001Func010002 takes nothing returns nothing
call UnitAddAbilityBJ('A08Z',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func006Func001Func012002 takes nothing returns nothing
call UnitAddAbilityBJ('A08Z',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func006Func001Func014002 takes nothing returns nothing
call UnitAddAbilityBJ('A08Z',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func006Func001Func016002 takes nothing returns nothing
call UnitAddAbilityBJ('A08Z',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func006Func001Func018002 takes nothing returns nothing
call UnitAddAbilityBJ('A08Z',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func006Func001Func020002 takes nothing returns nothing
call UnitAddAbilityBJ('A08Z',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func006Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A08R',GetTriggerUnit())==GetForLoopIndexA()))then
return false
endif
return true
endfunction
function Trig_ShadowBond_Func007Func001Func002002 takes nothing returns nothing
call UnitAddAbilityBJ('A091',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func007Func001Func004002 takes nothing returns nothing
call UnitAddAbilityBJ('A091',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func007Func001Func006002 takes nothing returns nothing
call UnitAddAbilityBJ('A091',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func007Func001Func008002 takes nothing returns nothing
call UnitAddAbilityBJ('A091',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func007Func001Func010002 takes nothing returns nothing
call UnitAddAbilityBJ('A091',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func007Func001Func012002 takes nothing returns nothing
call UnitAddAbilityBJ('A091',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func007Func001Func014002 takes nothing returns nothing
call UnitAddAbilityBJ('A091',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func007Func001Func016002 takes nothing returns nothing
call UnitAddAbilityBJ('A091',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func007Func001Func018002 takes nothing returns nothing
call UnitAddAbilityBJ('A091',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func007Func001Func020002 takes nothing returns nothing
call UnitAddAbilityBJ('A091',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func007Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A08R',GetTriggerUnit())==GetForLoopIndexA()))then
return false
endif
return true
endfunction
function Trig_ShadowBond_Func008Func001Func002002 takes nothing returns nothing
call UnitAddAbilityBJ('A090',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func008Func001Func004002 takes nothing returns nothing
call UnitAddAbilityBJ('A090',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func008Func001Func006002 takes nothing returns nothing
call UnitAddAbilityBJ('A090',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func008Func001Func008002 takes nothing returns nothing
call UnitAddAbilityBJ('A090',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func008Func001Func010002 takes nothing returns nothing
call UnitAddAbilityBJ('A090',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func008Func001Func012002 takes nothing returns nothing
call UnitAddAbilityBJ('A090',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func008Func001Func014002 takes nothing returns nothing
call UnitAddAbilityBJ('A090',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func008Func001Func016002 takes nothing returns nothing
call UnitAddAbilityBJ('A090',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func008Func001Func018002 takes nothing returns nothing
call UnitAddAbilityBJ('A090',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func008Func001Func020002 takes nothing returns nothing
call UnitAddAbilityBJ('A090',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func008Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A08R',GetTriggerUnit())==GetForLoopIndexA()))then
return false
endif
return true
endfunction
function Trig_ShadowBond_Func009Func001Func002002 takes nothing returns nothing
call UnitAddAbilityBJ('A092',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func009Func001Func004002 takes nothing returns nothing
call UnitAddAbilityBJ('A092',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func009Func001Func006002 takes nothing returns nothing
call UnitAddAbilityBJ('A092',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func009Func001Func008002 takes nothing returns nothing
call UnitAddAbilityBJ('A092',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func009Func001Func010002 takes nothing returns nothing
call UnitAddAbilityBJ('A092',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func009Func001Func012002 takes nothing returns nothing
call UnitAddAbilityBJ('A092',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func009Func001Func014002 takes nothing returns nothing
call UnitAddAbilityBJ('A092',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func009Func001Func016002 takes nothing returns nothing
call UnitAddAbilityBJ('A092',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func009Func001Func018002 takes nothing returns nothing
call UnitAddAbilityBJ('A092',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func009Func001Func020002 takes nothing returns nothing
call UnitAddAbilityBJ('A092',GetEnumUnit())
endfunction
function Trig_ShadowBond_Func009Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A08R',GetTriggerUnit())==GetForLoopIndexA()))then
return false
endif
return true
endfunction
function Trig_ShadowBond_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_ShadowBond_Func001Func001C())then
call CreateNUnitsAtLoc(1,'o013',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),bj_UNIT_FACING)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00A'),function Trig_ShadowBond_Func001Func001Func003002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00B'),function Trig_ShadowBond_Func001Func001Func005002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00C'),function Trig_ShadowBond_Func001Func001Func007002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00D'),function Trig_ShadowBond_Func001Func001Func009002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00E'),function Trig_ShadowBond_Func001Func001Func011002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00F'),function Trig_ShadowBond_Func001Func001Func013002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00G'),function Trig_ShadowBond_Func001Func001Func015002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n009'),function Trig_ShadowBond_Func001Func001Func017002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00I'),function Trig_ShadowBond_Func001Func001Func019002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00H'),function Trig_ShadowBond_Func001Func001Func021002)
call KillUnit(GetLastCreatedUnit())
call RemoveUnit(GetLastCreatedUnit())
else
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=2
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_ShadowBond_Func002Func001C())then
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00A'),function Trig_ShadowBond_Func002Func001Func002002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00B'),function Trig_ShadowBond_Func002Func001Func004002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00C'),function Trig_ShadowBond_Func002Func001Func006002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00D'),function Trig_ShadowBond_Func002Func001Func008002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00E'),function Trig_ShadowBond_Func002Func001Func010002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00F'),function Trig_ShadowBond_Func002Func001Func012002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00G'),function Trig_ShadowBond_Func002Func001Func014002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n009'),function Trig_ShadowBond_Func002Func001Func016002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00I'),function Trig_ShadowBond_Func002Func001Func018002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00H'),function Trig_ShadowBond_Func002Func001Func020002)
else
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=3
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_ShadowBond_Func003Func001C())then
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00A'),function Trig_ShadowBond_Func003Func001Func002002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00B'),function Trig_ShadowBond_Func003Func001Func004002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00C'),function Trig_ShadowBond_Func003Func001Func006002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00D'),function Trig_ShadowBond_Func003Func001Func008002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00E'),function Trig_ShadowBond_Func003Func001Func010002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00F'),function Trig_ShadowBond_Func003Func001Func012002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00G'),function Trig_ShadowBond_Func003Func001Func014002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n009'),function Trig_ShadowBond_Func003Func001Func016002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00I'),function Trig_ShadowBond_Func003Func001Func018002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00H'),function Trig_ShadowBond_Func003Func001Func020002)
else
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=4
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_ShadowBond_Func004Func001C())then
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00A'),function Trig_ShadowBond_Func004Func001Func002002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00B'),function Trig_ShadowBond_Func004Func001Func004002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00C'),function Trig_ShadowBond_Func004Func001Func006002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00D'),function Trig_ShadowBond_Func004Func001Func008002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00E'),function Trig_ShadowBond_Func004Func001Func010002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00F'),function Trig_ShadowBond_Func004Func001Func012002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00G'),function Trig_ShadowBond_Func004Func001Func014002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n009'),function Trig_ShadowBond_Func004Func001Func016002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00I'),function Trig_ShadowBond_Func004Func001Func018002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00H'),function Trig_ShadowBond_Func004Func001Func020002)
else
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=5
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_ShadowBond_Func005Func001C())then
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00A'),function Trig_ShadowBond_Func005Func001Func002002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00B'),function Trig_ShadowBond_Func005Func001Func004002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00C'),function Trig_ShadowBond_Func005Func001Func006002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00D'),function Trig_ShadowBond_Func005Func001Func008002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00E'),function Trig_ShadowBond_Func005Func001Func010002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00F'),function Trig_ShadowBond_Func005Func001Func012002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00G'),function Trig_ShadowBond_Func005Func001Func014002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n009'),function Trig_ShadowBond_Func005Func001Func016002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00I'),function Trig_ShadowBond_Func005Func001Func018002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00H'),function Trig_ShadowBond_Func005Func001Func020002)
else
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=6
set bj_forLoopAIndexEnd=7
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_ShadowBond_Func006Func001C())then
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00A'),function Trig_ShadowBond_Func006Func001Func002002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00B'),function Trig_ShadowBond_Func006Func001Func004002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00C'),function Trig_ShadowBond_Func006Func001Func006002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00D'),function Trig_ShadowBond_Func006Func001Func008002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00E'),function Trig_ShadowBond_Func006Func001Func010002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00F'),function Trig_ShadowBond_Func006Func001Func012002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00G'),function Trig_ShadowBond_Func006Func001Func014002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n009'),function Trig_ShadowBond_Func006Func001Func016002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00I'),function Trig_ShadowBond_Func006Func001Func018002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00H'),function Trig_ShadowBond_Func006Func001Func020002)
else
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=7
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_ShadowBond_Func007Func001C())then
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00A'),function Trig_ShadowBond_Func007Func001Func002002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00B'),function Trig_ShadowBond_Func007Func001Func004002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00C'),function Trig_ShadowBond_Func007Func001Func006002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00D'),function Trig_ShadowBond_Func007Func001Func008002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00E'),function Trig_ShadowBond_Func007Func001Func010002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00F'),function Trig_ShadowBond_Func007Func001Func012002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00G'),function Trig_ShadowBond_Func007Func001Func014002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n009'),function Trig_ShadowBond_Func007Func001Func016002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00I'),function Trig_ShadowBond_Func007Func001Func018002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00H'),function Trig_ShadowBond_Func007Func001Func020002)
else
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=8
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_ShadowBond_Func008Func001C())then
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00A'),function Trig_ShadowBond_Func008Func001Func002002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00B'),function Trig_ShadowBond_Func008Func001Func004002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00C'),function Trig_ShadowBond_Func008Func001Func006002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00D'),function Trig_ShadowBond_Func008Func001Func008002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00E'),function Trig_ShadowBond_Func008Func001Func010002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00F'),function Trig_ShadowBond_Func008Func001Func012002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00G'),function Trig_ShadowBond_Func008Func001Func014002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n009'),function Trig_ShadowBond_Func008Func001Func016002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00I'),function Trig_ShadowBond_Func008Func001Func018002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00H'),function Trig_ShadowBond_Func008Func001Func020002)
else
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=9
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_ShadowBond_Func009Func001C())then
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00A'),function Trig_ShadowBond_Func009Func001Func002002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00B'),function Trig_ShadowBond_Func009Func001Func004002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00C'),function Trig_ShadowBond_Func009Func001Func006002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00D'),function Trig_ShadowBond_Func009Func001Func008002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00E'),function Trig_ShadowBond_Func009Func001Func010002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00F'),function Trig_ShadowBond_Func009Func001Func012002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00G'),function Trig_ShadowBond_Func009Func001Func014002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n009'),function Trig_ShadowBond_Func009Func001Func016002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00I'),function Trig_ShadowBond_Func009Func001Func018002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00H'),function Trig_ShadowBond_Func009Func001Func020002)
else
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
//===========================================================================
//===========================================================================
//Trigger:ShadowHealFix
//===========================================================================
function Trig_ShadowHealFix_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A08R'))then
return false
endif
return true
endfunction
function Trig_ShadowHealFix_Func001Func002002001 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())!=GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetEnumUnit()))
endfunction
function Trig_ShadowHealFix_Func001Func002002 takes nothing returns nothing
if(Trig_ShadowHealFix_Func001Func002002001())then
call SetUnitLifeBJ(GetEnumUnit(),GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetEnumUnit()))
else
call DoNothing()
endif
endfunction
function Trig_ShadowHealFix_Func001Func004002001 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())!=GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetEnumUnit()))
endfunction
function Trig_ShadowHealFix_Func001Func004002 takes nothing returns nothing
if(Trig_ShadowHealFix_Func001Func004002001())then
call SetUnitLifeBJ(GetEnumUnit(),GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetEnumUnit()))
else
call DoNothing()
endif
endfunction
function Trig_ShadowHealFix_Func001Func006002001 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())!=GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetEnumUnit()))
endfunction
function Trig_ShadowHealFix_Func001Func006002 takes nothing returns nothing
if(Trig_ShadowHealFix_Func001Func006002001())then
call SetUnitLifeBJ(GetEnumUnit(),GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetEnumUnit()))
else
call DoNothing()
endif
endfunction
function Trig_ShadowHealFix_Func001Func008002001 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())!=GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetEnumUnit()))
endfunction
function Trig_ShadowHealFix_Func001Func008002 takes nothing returns nothing
if(Trig_ShadowHealFix_Func001Func008002001())then
call SetUnitLifeBJ(GetEnumUnit(),GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetEnumUnit()))
else
call DoNothing()
endif
endfunction
function Trig_ShadowHealFix_Func001Func010002001 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())!=GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetEnumUnit()))
endfunction
function Trig_ShadowHealFix_Func001Func010002 takes nothing returns nothing
if(Trig_ShadowHealFix_Func001Func010002001())then
call SetUnitLifeBJ(GetEnumUnit(),GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetEnumUnit()))
else
call DoNothing()
endif
endfunction
function Trig_ShadowHealFix_Func001Func012002001 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())!=GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetEnumUnit()))
endfunction
function Trig_ShadowHealFix_Func001Func012002 takes nothing returns nothing
if(Trig_ShadowHealFix_Func001Func012002001())then
call SetUnitLifeBJ(GetEnumUnit(),GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetEnumUnit()))
else
call DoNothing()
endif
endfunction
function Trig_ShadowHealFix_Func001Func014002001 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())!=GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetEnumUnit()))
endfunction
function Trig_ShadowHealFix_Func001Func014002 takes nothing returns nothing
if(Trig_ShadowHealFix_Func001Func014002001())then
call SetUnitLifeBJ(GetEnumUnit(),GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetEnumUnit()))
else
call DoNothing()
endif
endfunction
function Trig_ShadowHealFix_Func001Func016002001 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())!=GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetEnumUnit()))
endfunction
function Trig_ShadowHealFix_Func001Func016002 takes nothing returns nothing
if(Trig_ShadowHealFix_Func001Func016002001())then
call SetUnitLifeBJ(GetEnumUnit(),GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetEnumUnit()))
else
call DoNothing()
endif
endfunction
function Trig_ShadowHealFix_Func001Func018002001 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())!=GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetEnumUnit()))
endfunction
function Trig_ShadowHealFix_Func001Func018002 takes nothing returns nothing
if(Trig_ShadowHealFix_Func001Func018002001())then
call SetUnitLifeBJ(GetEnumUnit(),GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetEnumUnit()))
else
call DoNothing()
endif
endfunction
function Trig_ShadowHealFix_Func001Func020002001 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())!=GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetEnumUnit()))
endfunction
function Trig_ShadowHealFix_Func001Func020002 takes nothing returns nothing
if(Trig_ShadowHealFix_Func001Func020002001())then
call SetUnitLifeBJ(GetEnumUnit(),GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetEnumUnit()))
else
call DoNothing()
endif
endfunction
function Trig_ShadowHealFix_Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A08R',GetTriggerUnit())==10))then
return false
endif
return true
endfunction
function Trig_ShadowHealFix_Actions takes nothing returns nothing
if(Trig_ShadowHealFix_Func001C())then
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00A'),function Trig_ShadowHealFix_Func001Func002002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00B'),function Trig_ShadowHealFix_Func001Func004002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00C'),function Trig_ShadowHealFix_Func001Func006002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00D'),function Trig_ShadowHealFix_Func001Func008002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00E'),function Trig_ShadowHealFix_Func001Func010002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00F'),function Trig_ShadowHealFix_Func001Func012002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00G'),function Trig_ShadowHealFix_Func001Func014002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n009'),function Trig_ShadowHealFix_Func001Func016002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00I'),function Trig_ShadowHealFix_Func001Func018002)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00H'),function Trig_ShadowHealFix_Func001Func020002)
else
endif
endfunction
//===========================================================================
//===========================================================================
//Trigger:ShadowHealSFX
//===========================================================================
function Trig_ShadowHealSFX_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A08R'))then
return false
endif
return true
endfunction
function Trig_ShadowHealSFX_Func001Func002Func001C takes nothing returns boolean
if(not(IsUnitAliveBJ(GetEnumUnit())==true))then
return false
endif
return true
endfunction
function Trig_ShadowHealSFX_Func001Func002A takes nothing returns nothing
if(Trig_ShadowHealSFX_Func001Func002Func001C())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
endif
endfunction
function Trig_ShadowHealSFX_Func001Func004Func001C takes nothing returns boolean
if(not(IsUnitAliveBJ(GetEnumUnit())==true))then
return false
endif
return true
endfunction
function Trig_ShadowHealSFX_Func001Func004A takes nothing returns nothing
if(Trig_ShadowHealSFX_Func001Func004Func001C())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
endif
endfunction
function Trig_ShadowHealSFX_Func001Func006Func001C takes nothing returns boolean
if(not(IsUnitAliveBJ(GetEnumUnit())==true))then
return false
endif
return true
endfunction
function Trig_ShadowHealSFX_Func001Func006A takes nothing returns nothing
if(Trig_ShadowHealSFX_Func001Func006Func001C())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
endif
endfunction
function Trig_ShadowHealSFX_Func001Func008Func001C takes nothing returns boolean
if(not(IsUnitAliveBJ(GetEnumUnit())==true))then
return false
endif
return true
endfunction
function Trig_ShadowHealSFX_Func001Func008A takes nothing returns nothing
if(Trig_ShadowHealSFX_Func001Func008Func001C())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
endif
endfunction
function Trig_ShadowHealSFX_Func001Func010Func001C takes nothing returns boolean
if(not(IsUnitAliveBJ(GetEnumUnit())==true))then
return false
endif
return true
endfunction
function Trig_ShadowHealSFX_Func001Func010A takes nothing returns nothing
if(Trig_ShadowHealSFX_Func001Func010Func001C())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
endif
endfunction
function Trig_ShadowHealSFX_Func001Func012Func001C takes nothing returns boolean
if(not(IsUnitAliveBJ(GetEnumUnit())==true))then
return false
endif
return true
endfunction
function Trig_ShadowHealSFX_Func001Func012A takes nothing returns nothing
if(Trig_ShadowHealSFX_Func001Func012Func001C())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
endif
endfunction
function Trig_ShadowHealSFX_Func001Func014Func001C takes nothing returns boolean
if(not(IsUnitAliveBJ(GetEnumUnit())==true))then
return false
endif
return true
endfunction
function Trig_ShadowHealSFX_Func001Func014A takes nothing returns nothing
if(Trig_ShadowHealSFX_Func001Func014Func001C())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
endif
endfunction
function Trig_ShadowHealSFX_Func001Func016Func001C takes nothing returns boolean
if(not(IsUnitAliveBJ(GetEnumUnit())==true))then
return false
endif
return true
endfunction
function Trig_ShadowHealSFX_Func001Func016A takes nothing returns nothing
if(Trig_ShadowHealSFX_Func001Func016Func001C())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
endif
endfunction
function Trig_ShadowHealSFX_Func001Func018Func001C takes nothing returns boolean
if(not(IsUnitAliveBJ(GetEnumUnit())==true))then
return false
endif
return true
endfunction
function Trig_ShadowHealSFX_Func001Func018A takes nothing returns nothing
if(Trig_ShadowHealSFX_Func001Func018Func001C())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
endif
endfunction
function Trig_ShadowHealSFX_Func001Func020Func001C takes nothing returns boolean
if(not(IsUnitAliveBJ(GetEnumUnit())==true))then
return false
endif
return true
endfunction
function Trig_ShadowHealSFX_Func001Func020A takes nothing returns nothing
if(Trig_ShadowHealSFX_Func001Func020Func001C())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
endif
endfunction
function Trig_ShadowHealSFX_Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A08R',GetTriggerUnit())==10))then
return false
endif
return true
endfunction
function Trig_ShadowHealSFX_Actions takes nothing returns nothing
if(Trig_ShadowHealSFX_Func001C())then
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00A'),function Trig_ShadowHealSFX_Func001Func002A)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00B'),function Trig_ShadowHealSFX_Func001Func004A)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00C'),function Trig_ShadowHealSFX_Func001Func006A)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00D'),function Trig_ShadowHealSFX_Func001Func008A)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00E'),function Trig_ShadowHealSFX_Func001Func010A)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00F'),function Trig_ShadowHealSFX_Func001Func012A)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00G'),function Trig_ShadowHealSFX_Func001Func014A)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n009'),function Trig_ShadowHealSFX_Func001Func016A)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00I'),function Trig_ShadowHealSFX_Func001Func018A)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'n00H'),function Trig_ShadowHealSFX_Func001Func020A)
else
endif
endfunction
//===========================================================================
//===========================================================================
//Trigger:Hellfire
//===========================================================================
function Trig_Hellfire_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A09I'))then
return false
endif
return true
endfunction
function Trig_Hellfire_Actions takes nothing returns nothing
set udg_locations02[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetSpellTargetLoc()
call CreateNUnitsAtLocFacingLocBJ(1,'o015',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(udg_locations02[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))],(220.00+GetRandomReal(0,40.00)),(0.00+GetRandomReal(0,40.00))),udg_locations02[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
set udg_units04[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetLastCreatedUnit()
call SetUnitAnimation(udg_units04[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))],"stand work")
call AddSpecialEffectTargetUnitBJ("overhead",udg_units04[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))],"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
set udg_effects02[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetLastCreatedEffectBJ()
call PolledWait(0.40)
call CreateNUnitsAtLocFacingLocBJ(1,'o015',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(udg_locations02[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))],(220.00+GetRandomReal(0,40.00)),(90.00+GetRandomReal(0,40.00))),udg_locations02[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
set udg_units05[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetLastCreatedUnit()
call SetUnitAnimation(udg_units05[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))],"stand work")
call AddSpecialEffectTargetUnitBJ("overhead",udg_units05[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))],"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call PolledWait(0.40)
call CreateNUnitsAtLocFacingLocBJ(1,'o015',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(udg_locations02[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))],(220.00+GetRandomReal(0,40.00)),(180.00+GetRandomReal(0,40.00))),udg_locations02[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
set udg_units06[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetLastCreatedUnit()
call SetUnitAnimation(udg_units06[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))],"stand work")
call AddSpecialEffectTargetUnitBJ("overhead",udg_units06[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))],"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call PolledWait(0.40)
call CreateNUnitsAtLocFacingLocBJ(1,'o015',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(udg_locations02[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))],(220.00+GetRandomReal(0,40.00)),(270.00+GetRandomReal(0,40.00))),udg_locations02[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
set udg_units07[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetLastCreatedUnit()
call SetUnitAnimation(udg_units07[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))],"stand work")
call AddSpecialEffectTargetUnitBJ("overhead",udg_units07[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))],"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call PolledWait(0.40)
call DestroyEffectBJ(udg_effects02[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
call DestroyEffectBJ(udg_effects03[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
call DestroyEffectBJ(udg_effects04[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
call DestroyEffectBJ(udg_effects05[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
call SetUnitAnimation(udg_units04[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))],"death")
call SetUnitAnimation(udg_units05[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))],"death")
call SetUnitAnimation(udg_units06[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))],"death")
call SetUnitAnimation(udg_units07[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))],"death")
call PolledWait(0.40)
call RemoveUnit(udg_units04[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
call RemoveUnit(udg_units05[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
call RemoveUnit(udg_units06[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
call RemoveUnit(udg_units07[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
endfunction
//===========================================================================
//===========================================================================
//Trigger:AesrelaEverild
//===========================================================================
function Trig_AesrelaEverild_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A030'))then
return false
endif
return true
endfunction
function Trig_AesrelaEverild_Func001002 takes nothing returns nothing
call UnitRemoveAbilityBJ('Apiv',GetEnumUnit())
endfunction
function Trig_AesrelaEverild_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRangeOfLocAll(1500.00,GetUnitLoc(GetTriggerUnit())),function Trig_AesrelaEverild_Func001002)
endfunction
//===========================================================================
//===========================================================================
//Trigger:ShroudofTerror
//===========================================================================
function Trig_ShroudofTerror_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A04F'))then
return false
endif
return true
endfunction
function Trig_ShroudofTerror_Actions takes nothing returns nothing
call PlaySoundOnUnitBJ(udg_sound16,100,GetSpellTargetUnit())
call CreateNUnitsAtLoc(1,'o010',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetSpellTargetUnit()),bj_UNIT_FACING)
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"silence",GetUnitLoc(GetSpellTargetUnit()))
call RemoveUnit(GetLastCreatedUnit())
endfunction
//===========================================================================
//===========================================================================
//Trigger:Maelstrom
//===========================================================================
function Trig_Maelstrom_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A06L'))then
return false
endif
return true
endfunction
function Trig_Maelstrom_Actions takes nothing returns nothing
call PlaySoundOnUnitBJ(udg_sound14,100,GetTriggerUnit())
call AddSpecialEffectLocBJ(OffsetLocation(GetUnitLoc(GetTriggerUnit()),-200.00,0),"Abilities\\Spells\\Undead\\DarkRitual\\DarkRitualTarget.mdl")
call TriggerSleepAction(0.03)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(OffsetLocation(GetUnitLoc(GetTriggerUnit()),0.00,-200.00),"Abilities\\Spells\\Undead\\DarkRitual\\DarkRitualTarget.mdl")
call TriggerSleepAction(0.03)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(OffsetLocation(GetUnitLoc(GetTriggerUnit()),200.00,0.00),"Abilities\\Spells\\Undead\\DarkRitual\\DarkRitualTarget.mdl")
call TriggerSleepAction(0.03)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(OffsetLocation(GetUnitLoc(GetTriggerUnit()),0.00,200.00),"Abilities\\Spells\\Undead\\DarkRitual\\DarkRitualTarget.mdl")
call TriggerSleepAction(0.03)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
//===========================================================================
//===========================================================================
//Trigger:ElectricMatrix
//===========================================================================
function Trig_ElectricMatrix_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A06M'))then
return false
endif
return true
endfunction
function Trig_ElectricMatrix_Actions takes nothing returns nothing
call PlaySoundOnUnitBJ(udg_sound12,100,GetTriggerUnit())
call TerrainDeformationRippleBJ(1.40,false,GetUnitLoc(GetSpellTargetUnit()),200.00,400.00,80.00,0.20,10.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call ConditionalTriggerExecute(udg_trigger118)
call ConditionalTriggerExecute(udg_trigger119)
call ConditionalTriggerExecute(udg_trigger120)
call ConditionalTriggerExecute(udg_trigger121)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
//===========================================================================
//===========================================================================
//Trigger:Elec1
//===========================================================================
function Trig_Elec1_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(OffsetLocation(GetUnitLoc(GetSpellTargetUnit()),100.00,0),"Abilities\\Spells\\Other\\Monsoon\\MonsoonBoltTarget.mdl")
call TriggerSleepAction(0.03)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
//===========================================================================
//===========================================================================
//Trigger:Elec2
//===========================================================================
function Trig_Elec2_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(OffsetLocation(GetUnitLoc(GetSpellTargetUnit()),-100.00,0),"Abilities\\Spells\\Other\\Monsoon\\MonsoonBoltTarget.mdl")
call TriggerSleepAction(0.03)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
//===========================================================================
//===========================================================================
//Trigger:Elec3
//===========================================================================
function Trig_Elec3_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(OffsetLocation(GetUnitLoc(GetSpellTargetUnit()),0.00,100.00),"Abilities\\Spells\\Other\\Monsoon\\MonsoonBoltTarget.mdl")
call TriggerSleepAction(0.03)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
//===========================================================================
//===========================================================================
//Trigger:Elec4
//===========================================================================
function Trig_Elec4_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(OffsetLocation(GetUnitLoc(GetSpellTargetUnit()),0.00,-100.00),"Abilities\\Spells\\Other\\Monsoon\\MonsoonBoltTarget.mdl")
call TriggerSleepAction(0.03)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
//===========================================================================
//===========================================================================
//Trigger:TargetedMagic
//===========================================================================
function Trig_TargetedMagic_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A06N'))then
return false
endif
return true
endfunction
function Trig_TargetedMagic_Func001001003001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_TargetedMagic_Func001001003002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_TargetedMagic_Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_TargetedMagic_Func001001003001(),Trig_TargetedMagic_Func001001003002())
endfunction
function Trig_TargetedMagic_Func001A takes nothing returns nothing
call IssueTargetOrderBJ(GetTriggerUnit(),"thunderbolt",GetEnumUnit())
endfunction
function Trig_TargetedMagic_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRangeOfLocMatching(7000.00,GetUnitLoc(GetTriggerUnit()),Condition(function Trig_TargetedMagic_Func001001003)),function Trig_TargetedMagic_Func001A)
endfunction
//===========================================================================
//===========================================================================
//Trigger:Explosive
//===========================================================================
function Trig_Explosive_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A08C'))then
return false
endif
return true
endfunction
function Trig_Explosive_Func001001003001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_Explosive_Func001001003002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Explosive_Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Explosive_Func001001003001(),Trig_Explosive_Func001001003002())
endfunction
function Trig_Explosive_Func001A takes nothing returns nothing
call IssueTargetOrderBJ(GetTriggerUnit(),"firebolt",GetEnumUnit())
endfunction
function Trig_Explosive_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRangeOfLocMatching(800.00,GetUnitLoc(GetTriggerUnit()),Condition(function Trig_Explosive_Func001001003)),function Trig_Explosive_Func001A)
endfunction
//===========================================================================
//===========================================================================
//Trigger:Moongate
//===========================================================================
function Trig_Moongate_Func005001 takes nothing returns boolean
return(GetSpellAbilityId()=='A02J')
endfunction
function Trig_Moongate_Func005002 takes nothing returns boolean
return(RectContainsUnit(GetPlayableMapRect(),udg_units01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])==true)
endfunction
function Trig_Moongate_Conditions takes nothing returns boolean
if(not GetBooleanAnd(Trig_Moongate_Func005001(),Trig_Moongate_Func005002()))then
return false
endif
return true
endfunction
function Trig_Moongate_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetSpellTargetUnit(),GetUnitLoc(udg_units01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\NightElf\\Blink\\BlinkTarget.mdl")
call TriggerSleepAction(0.10)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
//===========================================================================
//===========================================================================
//Trigger:CollectAssets
//===========================================================================
function Trig_CollectAssets_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A055'))then
return false
endif
return true
endfunction
function Trig_CollectAssets_Actions takes nothing returns nothing
call PlaySoundOnUnitBJ(udg_sound15,100,GetTriggerUnit())
call AdjustPlayerStateBJ((2+(GetHeroLevel(GetTriggerUnit())/4)),GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER)
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Objects\\Spawnmodels\\Other\\ToonBoom\\ToonBoom.mdl")
call TriggerSleepAction(0.10)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
//===========================================================================
//===========================================================================
//Trigger:DetonateStarlightSphere
//===========================================================================
function Trig_DetonateStarlightSphere_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A03J'))then
return false
endif
return true
endfunction
function Trig_DetonateStarlightSphere_Actions takes nothing returns nothing
call PlaySoundAtPointBJ(udg_sound04,100,GetUnitLoc(GetTriggerUnit()),0)
call TerrainDeformationCraterBJ(1.50,false,GetUnitLoc(GetTriggerUnit()),400.00,100.00)
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Units\\NightElf\\Wisp\\WispExplode.mdl")
call TriggerSleepAction(0.03)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
//===========================================================================
//===========================================================================
//Trigger:EverildsRage
//===========================================================================
function Trig_EverildsRage_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A02Q'))then
return false
endif
return true
endfunction
function Trig_EverildsRage_Actions takes nothing returns nothing
call PlaySoundOnUnitBJ(udg_sound11,100,GetTriggerUnit())
call ModifyHeroStat(bj_HEROSTAT_STR,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,4)
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")
call TriggerSleepAction(0.00)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
//===========================================================================
//===========================================================================
//Trigger:FistofStone
//===========================================================================
function Trig_FistofStone_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetSummonedUnit())=='u000'))then
return false
endif
return true
endfunction
function Trig_FistofStone_Actions takes nothing returns nothing
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetSummonedUnit())
endfunction
//===========================================================================
//===========================================================================
//Trigger:SleightofHand
//===========================================================================
function Trig_SleightofHand_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A02L'))then
return false
endif
return true
endfunction
function Trig_SleightofHand_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound07)
call DisplayTimedTextToForce(GetPlayersAll(),4.00,(GetPlayerName(GetOwningPlayer(GetTriggerUnit()))+(" has stolen "+(I2S((GetPlayerState(GetOwningPlayer(GetSpellTargetUnit()),PLAYER_STATE_RESOURCE_GOLD)/10))+(" gold from "+(GetPlayerName(GetOwningPlayer(GetSpellTargetUnit()))+"!"))))))
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)+(GetPlayerState(GetOwningPlayer(GetSpellTargetUnit()),PLAYER_STATE_RESOURCE_GOLD)/10)))
call SetPlayerStateBJ(GetOwningPlayer(GetSpellTargetUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetSpellTargetUnit()),PLAYER_STATE_RESOURCE_GOLD)-(GetPlayerState(GetOwningPlayer(GetSpellTargetUnit()),PLAYER_STATE_RESOURCE_GOLD)/10)))
call AddSpecialEffectLocBJ(GetUnitLoc(GetSpellTargetUnit()),"Abilities\\Spells\\Human\\Flare\\FlareCaster.mdl")
call TriggerSleepAction(0.10)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
//===========================================================================
//===========================================================================
//Trigger:MoonbeamTimer
//===========================================================================
function Trig_MoonbeamTimer_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetSummonedUnit())=='o000'))then
return false
endif
return true
endfunction
function Trig_MoonbeamTimer_Actions takes nothing returns nothing
call RemoveUnit(udg_units01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
call UnitApplyTimedLifeBJ(90.00,'BTLF',GetSummonedUnit())
set udg_units01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetSummonedUnit()
endfunction
//===========================================================================
//===========================================================================
//Trigger:PowerofNight
//===========================================================================
function Trig_PowerofNight_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A04A'))then
return false
endif
return true
endfunction
function Trig_PowerofNight_Func004Func001C takes nothing returns boolean
if(not(UnitHasBuffBJ(GroupPickRandomUnit(GetUnitsInRectAll(GetPlayableMapRect())),'B00N')==true))then
return false
endif
return true
endfunction
function Trig_PowerofNight_Actions takes nothing returns nothing
call SetTimeOfDay(24.00)
call TriggerSleepAction((16.00+(2.00*I2R(GetUnitAbilityLevelSwapped('A04A',GetTriggerUnit())))))
call SetTimeOfDay(12.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_PowerofNight_Func004Func001C())then
call DoNothing()
else
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
//===========================================================================
//===========================================================================
//Trigger:MuseInspiration
//===========================================================================
function Trig_MuseInspiration_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A046'))then
return false
endif
return true
endfunction
function Trig_MuseInspiration_Actions takes nothing returns nothing
call PlaySoundOnUnitBJ(udg_sound02,100,GetTriggerUnit())
call PlaySoundOnUnitBJ(udg_sound02,100,GetSpellTargetUnit())
call UnitResetCooldown(GetSpellTargetUnit())
call AddSpecialEffectLocBJ(GetUnitLoc(GetSpellTargetUnit()),"Abilities\\Spells\\Undead\\AnimateDead\\AnimateDeadTarget.mdl")
call TriggerSleepAction(0.10)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
//===========================================================================
//===========================================================================
//Trigger:SummonXyx
//===========================================================================
function Trig_SummonXyx_Func003C takes nothing returns boolean
if((GetUnitTypeId(GetSummonedUnit())=='o00O'))then
return true
endif
if((GetUnitTypeId(GetSummonedUnit())=='o00P'))then
return true
endif
if((GetUnitTypeId(GetSummonedUnit())=='o00Q'))then
return true
endif
if((GetUnitTypeId(GetSummonedUnit())=='o00R'))then
return true
endif
if((GetUnitTypeId(GetSummonedUnit())=='o00S'))then
return true
endif
if((GetUnitTypeId(GetSummonedUnit())=='o00T'))then
return true
endif
if((GetUnitTypeId(GetSummonedUnit())=='o00U'))then
return true
endif
if((GetUnitTypeId(GetSummonedUnit())=='o00V'))then
return true
endif
if((GetUnitTypeId(GetSummonedUnit())=='o00W'))then
return true
endif
if((GetUnitTypeId(GetSummonedUnit())=='o00X'))then
return true
endif
return false
endfunction
function Trig_SummonXyx_Conditions takes nothing returns boolean
if(not Trig_SummonXyx_Func003C())then
return false
endif
return true
endfunction
function Trig_SummonXyx_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,GetUnitTypeId(GetSummonedUnit()),GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),GetRandomReal(0,600.00),(GetUnitFacing(GetTriggerUnit())+GetRandomReal(-90.00,90.00))),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(30.00,'BTLF',GetLastCreatedUnit())
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_groups01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
call RemoveUnit(GetSummonedUnit())
call TriggerSleepAction(30.00)
call GroupClear(udg_groups01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
endfunction
//===========================================================================
//===========================================================================
//Trigger:ThunderStorm
//===========================================================================
function Trig_ThunderStorm_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A05E'))then
return false
endif
return true
endfunction
function Trig_ThunderStorm_Func001Func002003001003001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_ThunderStorm_Func001Func002003001003002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_ThunderStorm_Func001Func002003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_ThunderStorm_Func001Func002003001003001(),Trig_ThunderStorm_Func001Func002003001003002())
endfunction
function Trig_ThunderStorm_Func001A takes nothing returns nothing
call UnitAddAbilityBJ(udg_integers01[GetUnitAbilityLevelSwapped('A05E',GetTriggerUnit())],GetEnumUnit())
call IssueTargetOrderBJ(GetEnumUnit(),"chainlightning",GroupPickRandomUnit(GetUnitsInRangeOfLocMatching(900.00,GetUnitLoc(GetEnumUnit()),Condition(function Trig_ThunderStorm_Func001Func002003001003))))
endfunction
function Trig_ThunderStorm_Actions takes nothing returns nothing
call ForGroupBJ(udg_groups01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))],function Trig_ThunderStorm_Func001A)
endfunction
//===========================================================================
//===========================================================================
//Trigger:Scroll of Fire
//===========================================================================
function Trig_Scroll_of_Fire_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A05S'))then
return false
endif
return true
endfunction
function Trig_Scroll_of_Fire_Func002001003001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_Scroll_of_Fire_Func002001003002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==false)
endfunction
function Trig_Scroll_of_Fire_Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Scroll_of_Fire_Func002001003001(),Trig_Scroll_of_Fire_Func002001003002())
endfunction
function Trig_Scroll_of_Fire_Func002A takes nothing returns nothing
call UnitAddAbilityBJ('A05B',GetEnumUnit())
endfunction
function Trig_Scroll_of_Fire_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRangeOfLocMatching(900.00,GetUnitLoc(GetSpellAbilityUnit()),Condition(function Trig_Scroll_of_Fire_Func002001003)),function Trig_Scroll_of_Fire_Func002A)
endfunction
//===========================================================================
//===========================================================================
//Trigger:Incinerate
//===========================================================================
function Trig_Incinerate_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A05R'))then
return false
endif
return true
endfunction
function Trig_Incinerate_Func001001003001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_Incinerate_Func001001003002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==false)
endfunction
function Trig_Incinerate_Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Incinerate_Func001001003001(),Trig_Incinerate_Func001001003002())
endfunction
function Trig_Incinerate_Func001A takes nothing returns nothing
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())*0.50))
endfunction
function Trig_Incinerate_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRangeOfLocMatching(600.00,GetSpellTargetLoc(),Condition(function Trig_Incinerate_Func001001003)),function Trig_Incinerate_Func001A)
endfunction
//===========================================================================
//===========================================================================
//Trigger:Burn
//===========================================================================
function Trig_Burn_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A04M'))then
return false
endif
return true
endfunction
function Trig_Burn_Func021Func001C takes nothing returns boolean
if(not(UnitHasBuffBJ(udg_units03[GetForLoopIndexA()],'B01B')==true))then
return false
endif
return true
endfunction
function Trig_Burn_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]),"Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaosTarget.mdl")
call TriggerSleepAction(0.10)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]),"Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaosTarget.mdl")
call TriggerSleepAction(0.10)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call SetTimeOfDay(24.00)
call TerrainDeformationRippleBJ(10.00,false,GetUnitLoc(udg_units01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]),300.00,300.00,30.00,0.25,30.00)
call CreateNUnitsAtLoc(1,'o00Y',GetTriggerPlayer(),GetUnitLoc(udg_units01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(20.00,'BTLF',GetLastCreatedUnit())
call KillUnit(udg_units01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
call RemoveUnit(udg_units01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
set udg_units01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetLastCreatedUnit()
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CameraSetEQNoiseForPlayer(ConvertedPlayer(GetForLoopIndexA()),10.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(3.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CameraClearNoiseForPlayer(ConvertedPlayer(GetForLoopIndexA()))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(17.00)
call KillUnit(udg_units01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
call RemoveUnit(udg_units01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
call SetTimeOfDay(12)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Burn_Func021Func001C())then
call DoNothing()
else
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
//===========================================================================
//===========================================================================
//Trigger:MindShout
//===========================================================================
function Trig_MindShout_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A04I'))then
return false
endif
return true
endfunction
function Trig_MindShout_Func008Func001C takes nothing returns boolean
if(not(IsUnitEnemy(GetEnumUnit(),GetOwningPlayer(GetTriggerUnit()))==true))then
return false
endif
return true
endfunction
function Trig_MindShout_Func008A takes nothing returns nothing
if(Trig_MindShout_Func008Func001C())then
call IssueTargetOrderBJ(udg_units01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))],"hex",GetEnumUnit())
else
endif
endfunction
function Trig_MindShout_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call TriggerSleepAction(0.10)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateNUnitsAtLoc(1,'o010',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(udg_units01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]),bj_UNIT_FACING)
call KillUnit(udg_units01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
call RemoveUnit(udg_units01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
set udg_units01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetLastCreatedUnit()
call ForGroupBJ(GetUnitsInRangeOfLocAll(750.00,GetUnitLoc(udg_units01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])),function Trig_MindShout_Func008A)
call KillUnit(udg_units01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
call RemoveUnit(udg_units01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
endfunction
//===========================================================================
//===========================================================================
//Trigger:Dazzle
//===========================================================================
function Trig_Dazzle_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A04L'))then
return false
endif
return true
endfunction
function Trig_Dazzle_Func007Func001Func005001 takes nothing returns boolean
return(IsUnitEnemy(GetEnumUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_Dazzle_Func007Func001Func005002 takes nothing returns boolean
return(IsUnitAliveBJ(GetEnumUnit())==true)
endfunction
function Trig_Dazzle_Func007Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_Dazzle_Func007Func001Func005001(),Trig_Dazzle_Func007Func001Func005002()))then
return false
endif
return true
endfunction
function Trig_Dazzle_Func007A takes nothing returns nothing
if(Trig_Dazzle_Func007Func001C())then
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())*0.44))
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Objects\\Spawnmodels\\NightElf\\NEDeathSmall\\NEDeathSmall.mdl")
call TriggerSleepAction(0.10)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
endif
endfunction
function Trig_Dazzle_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("origin",udg_units01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))],"Abilities\\Spells\\Undead\\DeathPact\\DeathPactTarget.mdl")
call TriggerSleepAction(0.10)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]),"Objects\\Spawnmodels\\NightElf\\NEDeathMedium\\NEDeath.mdl")
call TriggerSleepAction(0.10)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call ForGroupBJ(GetUnitsInRangeOfLocAll(750.00,GetUnitLoc(udg_units01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])),function Trig_Dazzle_Func007A)
call KillUnit(udg_units01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
call RemoveUnit(udg_units01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
endfunction
//===========================================================================
//===========================================================================
//Trigger:FallenOne
//===========================================================================
function Trig_FallenOne_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A04H'))then
return false
endif
return true
endfunction
function Trig_FallenOne_Func006Func001C takes nothing returns boolean
if(not(IsUnitEnemy(GetEnumUnit(),GetOwningPlayer(GetTriggerUnit()))==true))then
return false
endif
return true
endfunction
function Trig_FallenOne_Func006A takes nothing returns nothing
if(Trig_FallenOne_Func006Func001C())then
call SetUnitLifeBJ(GetEnumUnit(),1.00)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\Resurrect\\ResurrectTarget.mdl")
call TriggerSleepAction(0.10)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
endif
endfunction
function Trig_FallenOne_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'o00Z',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"stomp")
call KillUnit(GetLastCreatedUnit())
call RemoveUnit(GetLastCreatedUnit())
call SetUnitLifeBJ(GetTriggerUnit(),1.00)
call ForGroupBJ(GetUnitsInRangeOfLocAll(750.00,GetUnitLoc(GetTriggerUnit())),function Trig_FallenOne_Func006A)
endfunction
//===========================================================================
//===========================================================================
//Trigger:CataclysmicStrike
//===========================================================================
function Trig_CataclysmicStrike_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A041'))then
return false
endif
return true
endfunction
function Trig_CataclysmicStrike_Actions takes nothing returns nothing
set udg_location01=GetSpellTargetLoc()
set udg_unit01=GetSpellTargetUnit()
call PolledWait(0.20)
call SetUnitPositionLocFacingBJ(GetTriggerUnit(),GetUnitLoc(udg_unit01),bj_UNIT_FACING)
call PlaySoundOnUnitBJ(udg_sound09,100,GetTriggerUnit())
call TerrainDeformationRippleBJ(4.00,false,udg_location01,200.00,500.00,48.00,0.60,300.00)
call CreateNUnitsAtLoc(1,'o00Z',GetOwningPlayer(GetTriggerUnit()),udg_location01,bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"stomp")
call KillUnit(GetLastCreatedUnit())
call RemoveUnit(GetLastCreatedUnit())
call SetUnitLifeBJ(udg_unit01,(GetUnitLifePercent(udg_unit01)*0.01))
call UnitDamageTargetBJ(GetTriggerUnit(),udg_unit01,2000.00,ATTACK_TYPE_HERO,DAMAGE_TYPE_NORMAL)
endfunction
//===========================================================================
//===========================================================================
//Trigger:IceFortress
//===========================================================================
function Trig_IceFortress_Func003001 takes nothing returns boolean
return(GetUnitTypeId(GetSummoningUnit())=='E00N')
endfunction
function Trig_IceFortress_Func003002 takes nothing returns boolean
return(GetUnitTypeId(GetSummonedUnit())=='o00C')
endfunction
function Trig_IceFortress_Conditions takes nothing returns boolean
if(not GetBooleanAnd(Trig_IceFortress_Func003001(),Trig_IceFortress_Func003002()))then
return false
endif
return true
endfunction
function Trig_IceFortress_Func001Func001001 takes nothing returns boolean
return(IsUnitEnemy(GetEnumUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_IceFortress_Func001A takes nothing returns nothing
if(Trig_IceFortress_Func001Func001001())then
call IssueTargetOrderBJ(GetEnumUnit(),"attack",GetSummonedUnit())
else
call DoNothing()
endif
endfunction
function Trig_IceFortress_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRangeOfLocAll(600.00,GetUnitLoc(GetSummonedUnit())),function Trig_IceFortress_Func001A)
endfunction
//===========================================================================
//===========================================================================
//Trigger:CambrinthCharge
//===========================================================================
function Trig_CambrinthCharge_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A029'))then
return false
endif
return true
endfunction
function Trig_CambrinthCharge_Func007C takes nothing returns boolean
if(not(GetUnitCurrentOrder(GetTriggerUnit())==String2OrderIdBJ("tranquility")))then
return false
endif
return true
endfunction
function Trig_CambrinthCharge_Func012C takes nothing returns boolean
if(not(GetUnitCurrentOrder(GetTriggerUnit())==String2OrderIdBJ("tranquility")))then
return false
endif
return true
endfunction
function Trig_CambrinthCharge_Func017C takes nothing returns boolean
if(not(GetUnitCurrentOrder(GetTriggerUnit())==String2OrderIdBJ("tranquility")))then
return false
endif
return true
endfunction
function Trig_CambrinthCharge_Actions takes nothing returns nothing
call PlaySoundOnUnitBJ(udg_sound10,100,GetTriggerUnit())
call AddSpecialEffectTargetUnitBJ("weapon",GetTriggerUnit(),"Abilities\\Spells\\Other\\Monsoon\\MonsoonBoltTarget.mdl")
call TriggerSleepAction(0.10)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call PolledWait(0.68)
if(Trig_CambrinthCharge_Func007C())then
else
return
endif
call AddSpecialEffectTargetUnitBJ("weapon",GetTriggerUnit(),"Abilities\\Spells\\Other\\Monsoon\\MonsoonBoltTarget.mdl")
call TriggerSleepAction(0.10)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call PolledWait(0.68)
if(Trig_CambrinthCharge_Func012C())then
else
return
endif
call AddSpecialEffectTargetUnitBJ("weapon",GetTriggerUnit(),"Abilities\\Spells\\Other\\Monsoon\\MonsoonBoltTarget.mdl")
call TriggerSleepAction(0.10)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call PolledWait(0.68)
if(Trig_CambrinthCharge_Func017C())then
else
return
endif
call AddSpecialEffectTargetUnitBJ("weapon",GetTriggerUnit(),"Abilities\\Spells\\Other\\Monsoon\\MonsoonBoltTarget.mdl")
call TriggerSleepAction(0.10)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call PlaySoundOnUnitBJ(udg_sound10,100,GetTriggerUnit())
call UnitRemoveAbilityBJ('A029',GetTriggerUnit())
call UnitAddAbilityBJ('A02N',GetTriggerUnit())
call AddSpecialEffectTargetUnitBJ("weapon",GetTriggerUnit(),"Abilities\\Spells\\Other\\Monsoon\\MonsoonBoltTarget.mdl")
call TriggerSleepAction(0.10)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call EnableTrigger(udg_trigger144)
endfunction
//===========================================================================
//===========================================================================
//Trigger:CambrinthStrike
//===========================================================================
function Trig_CambrinthStrike_Conditions takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A02N',GetAttackedUnitBJ())==1))then
return false
endif
return true
endfunction
function Trig_CambrinthStrike_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ('A02N',GetAttackedUnitBJ())
call UnitAddAbilityBJ('A029',GetAttackedUnitBJ())
call TriggerSleepAction(0.10)
call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call TriggerSleepAction(0.10)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
//===========================================================================
//Trigger:Forge
//===========================================================================
function Trig_Forge_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A057'))then
return false
endif
return true
endfunction
function Trig_Forge_Func003C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A02N',GetSpellAbilityUnit())==1))then
return false
endif
return true
endfunction
function Trig_Forge_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=GetUnitAbilityLevelSwapped('A057',GetTriggerUnit())
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call UnitAddItemByIdSwapped('I018',GetTriggerUnit())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_Forge_Func003C())then
call UnitRemoveAbilityBJ('A02N',GetTriggerUnit())
call UnitAddAbilityBJ('A029',GetTriggerUnit())
call DisableTrigger(udg_trigger144)
call PlaySoundOnUnitBJ(udg_sound10,100,GetTriggerUnit())
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=GetUnitAbilityLevelSwapped('A057',GetTriggerUnit())
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call UnitAddItemByIdSwapped('I018',GetSpellAbilityUnit())
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
call AddSpecialEffectTargetUnitBJ("weapon",GetTriggerUnit(),"Abilities\\Spells\\Human\\Flare\\FlareCaster.mdl")
call TriggerSleepAction(0.10)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
endif
endfunction
//===========================================================================
//===========================================================================
//Trigger:ThunderMaul
//===========================================================================
function Trig_ThunderMaul_Func014001 takes nothing returns boolean
return(GetSpellAbilityId()=='A058')
endfunction
function Trig_ThunderMaul_Func014002 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A02N',GetTriggerUnit())==1)
endfunction
function Trig_ThunderMaul_Conditions takes nothing returns boolean
if(not GetBooleanAnd(Trig_ThunderMaul_Func014001(),Trig_ThunderMaul_Func014002()))then
return false
endif
return true
endfunction
function Trig_ThunderMaul_Func006001003001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_ThunderMaul_Func006001003002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_ThunderMaul_Func006001003 takes nothing returns boolean
return GetBooleanAnd(Trig_ThunderMaul_Func006001003001(),Trig_ThunderMaul_Func006001003002())
endfunction
function Trig_ThunderMaul_Func006A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Other\\Monsoon\\MonsoonBoltTarget.mdl")
call TriggerSleepAction(0.00)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function Trig_ThunderMaul_Actions takes nothing returns nothing
call PlaySoundOnUnitBJ(udg_sound10,100,GetTriggerUnit())
call AddSpecialEffectTargetUnitBJ("weapon",GetTriggerUnit(),"Abilities\\Spells\\Other\\Monsoon\\MonsoonBoltTarget.mdl")
call TriggerSleepAction(0.00)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call PolledWait(0.30)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(3000.00,GetUnitLoc(GetTriggerUnit()),Condition(function Trig_ThunderMaul_Func006001003)),function Trig_ThunderMaul_Func006A)
call CreateNUnitsAtLoc(1,'o00Z',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"thunderclap")
call KillUnit(GetLastCreatedUnit())
call RemoveUnit(GetLastCreatedUnit())
call UnitRemoveAbilityBJ('A02N',GetTriggerUnit())
call UnitAddAbilityBJ('A029',GetTriggerUnit())
call DisableTrigger(udg_trigger144)
endfunction
//===========================================================================
//===========================================================================
//Trigger:CloakofDamaris
//===========================================================================
function Trig_CloakofDamaris_Func003001 takes nothing returns boolean
return(GetSpellAbilityId()=='A04O')
endfunction
function Trig_CloakofDamaris_Func003002 takes nothing returns boolean
return(GetPlayerController(GetOwningPlayer(GetSpellTargetUnit()))==MAP_CONTROL_COMPUTER)
endfunction
function Trig_CloakofDamaris_Conditions takes nothing returns boolean
if(not GetBooleanAnd(Trig_CloakofDamaris_Func003001(),Trig_CloakofDamaris_Func003002()))then
return false
endif
return true
endfunction
function Trig_CloakofDamaris_Func001Func001001 takes nothing returns boolean
return(GetOwningPlayer(GetSpellTargetUnit())==ConvertedPlayer(GetForLoopIndexA()))
endfunction
function Trig_CloakofDamaris_Func002Func001001 takes nothing returns boolean
return(GetOwningPlayer(GetSpellTargetUnit())==ConvertedPlayer(GetForLoopIndexB()))
endfunction
function Trig_CloakofDamaris_Actions takes nothing returns nothing
set bj_forLoopAIndex=9
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_CloakofDamaris_Func001Func001001())then
call IssuePointOrderLocBJ(GetSpellTargetUnit(),"attack",GetRectCenter(udg_rect05))
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopBIndex=11
set bj_forLoopBIndexEnd=12
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
if(Trig_CloakofDamaris_Func002Func001001())then
call IssuePointOrderLocBJ(GetSpellTargetUnit(),"attack",GetRectCenter(udg_rect04))
else
call DoNothing()
endif
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
endfunction
//===========================================================================
//===========================================================================
//Trigger:BladesofVenom
//===========================================================================
function Trig_BladesofVenom_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A03K'))then
return false
endif
return true
endfunction
function Trig_BladesofVenom_Func003Func001001 takes nothing returns boolean
return(IsUnitEnemy(GetEnumUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_BladesofVenom_Func003A takes nothing returns nothing
if(Trig_BladesofVenom_Func003Func001001())then
call IssueTargetOrderBJ(GetLastCreatedUnit(),"shadowstrike",GetEnumUnit())
else
call DoNothing()
endif
endfunction
function Trig_BladesofVenom_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'o00Z',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(120.00,'BTLF',GetLastCreatedUnit())
call ForGroupBJ(GetUnitsInRangeOfLocAll(475.00,GetUnitLoc(GetLastCreatedUnit())),function Trig_BladesofVenom_Func003A)
endfunction
//===========================================================================
//===========================================================================
//Trigger:UnnervingSymphony
//===========================================================================
function Trig_UnnervingSymphony_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A02T'))then
return false
endif
return true
endfunction
function Trig_UnnervingSymphony_Func002Func001Func006001 takes nothing returns boolean
return(IsUnitEnemy(GetEnumUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_UnnervingSymphony_Func002Func001Func006002 takes nothing returns boolean
return(IsUnitAliveBJ(GetEnumUnit())==true)
endfunction
function Trig_UnnervingSymphony_Func002Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_UnnervingSymphony_Func002Func001Func006001(),Trig_UnnervingSymphony_Func002Func001Func006002()))then
return false
endif
return true
endfunction
function Trig_UnnervingSymphony_Func002A takes nothing returns nothing
if(Trig_UnnervingSymphony_Func002Func001C())then
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())*(1.00/4.00)))
call IssueTargetOrderBJ(GetLastCreatedUnit(),"banish",GetEnumUnit())
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Undead\\AnimateDead\\AnimateDeadTarget.mdl")
call TriggerSleepAction(0.10)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
endif
endfunction
function Trig_UnnervingSymphony_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'o00Z',GetOwningPlayer(GetTriggerUnit()),GetSpellTargetLoc(),bj_UNIT_FACING)
call ForGroupBJ(GetUnitsInRangeOfLocAll((150.00+(55.00*I2R(GetUnitAbilityLevelSwapped('A02T',GetTriggerUnit())))),GetSpellTargetLoc()),function Trig_UnnervingSymphony_Func002A)
call KillUnit(GetLastCreatedUnit())
call RemoveUnit(GetLastCreatedUnit())
endfunction
//===========================================================================
//===========================================================================
//Trigger:Tingle
//===========================================================================
function Trig_Tingle_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A02M'))then
return false
endif
return true
endfunction
function Trig_Tingle_Func003Func001Func003001 takes nothing returns boolean
return(IsItemOwned(UnitItemInSlotBJ(udg_unit01,GetForLoopIndexA()))==true)
endfunction
function Trig_Tingle_Func003Func001Func003002 takes nothing returns boolean
return(udg_boolean05==true)
endfunction
function Trig_Tingle_Func003Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_Tingle_Func003Func001Func003001(),Trig_Tingle_Func003Func001Func003002()))then
return false
endif
return true
endfunction
function Trig_Tingle_Actions takes nothing returns nothing
set udg_unit01=GetSpellTargetUnit()
set udg_boolean05=true
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Tingle_Func003Func001C())then
call UnitRemoveItemFromSlotSwapped(GetForLoopIndexA(),udg_unit01)
set udg_boolean05=false
else
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call AddSpecialEffectLocBJ(GetUnitLoc(GetSpellTargetUnit()),"Doodads\\Cinematic\\Lightningbolt\\Lightningbolt.mdl")
call TriggerSleepAction(0.10)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
//===========================================================================
//===========================================================================
//Trigger:Prediction
//===========================================================================
function Trig_Prediction_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A04J'))then
return false
endif
return true
endfunction
function Trig_Prediction_Actions takes nothing returns nothing
call ModifyHeroStat(bj_HEROSTAT_STR,GetSpellTargetUnit(),bj_MODIFYMETHOD_ADD,GetRandomInt(2,12))
call ModifyHeroStat(bj_HEROSTAT_AGI,GetSpellTargetUnit(),bj_MODIFYMETHOD_ADD,GetRandomInt(2,12))
call ModifyHeroStat(bj_HEROSTAT_INT,GetSpellTargetUnit(),bj_MODIFYMETHOD_ADD,GetRandomInt(2,12))
call AddSpecialEffectLocBJ(GetUnitLoc(GetSpellTargetUnit()),"Abilities\\Spells\\Items\\AIsm\\AIsmTarget.mdl")
call TriggerSleepAction(0.10)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
//===========================================================================
//===========================================================================
//Trigger:MalevolentCorruption
//===========================================================================
function Trig_MalevolentCorruption_Conditions takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='A08M'))then
return false
endif
return true
endfunction
function Trig_MalevolentCorruption_Func001001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A08M',GetTriggerUnit())==1)
endfunction
function Trig_MalevolentCorruption_Func002001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A08M',GetTriggerUnit())==2)
endfunction
function Trig_MalevolentCorruption_Func003001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A08M',GetTriggerUnit())==3)
endfunction
function Trig_MalevolentCorruption_Func004001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A08M',GetTriggerUnit())==4)
endfunction
function Trig_MalevolentCorruption_Func005001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A08M',GetTriggerUnit())==5)
endfunction
function Trig_MalevolentCorruption_Func006001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A08M',GetTriggerUnit())==6)
endfunction
function Trig_MalevolentCorruption_Func007001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A08M',GetTriggerUnit())==7)
endfunction
function Trig_MalevolentCorruption_Func008001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A08M',GetTriggerUnit())==8)
endfunction
function Trig_MalevolentCorruption_Func009001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A08M',GetTriggerUnit())==9)
endfunction
function Trig_MalevolentCorruption_Func010001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A08M',GetTriggerUnit())==10)
endfunction
function Trig_MalevolentCorruption_Actions takes nothing returns nothing
if(Trig_MalevolentCorruption_Func001001())then
call SetPlayerTechResearchedSwap('R000',1,GetOwningPlayer(GetTriggerUnit()))
else
call DoNothing()
endif
if(Trig_MalevolentCorruption_Func002001())then
call SetPlayerTechResearchedSwap('R004',1,GetOwningPlayer(GetTriggerUnit()))
else
call DoNothing()
endif
if(Trig_MalevolentCorruption_Func003001())then
call SetPlayerTechResearchedSwap('R000',2,GetOwningPlayer(GetTriggerUnit()))
else
call DoNothing()
endif
if(Trig_MalevolentCorruption_Func004001())then
call SetPlayerTechResearchedSwap('R004',2,GetOwningPlayer(GetTriggerUnit()))
else
call DoNothing()
endif
if(Trig_MalevolentCorruption_Func005001())then
call SetPlayerTechResearchedSwap('R000',3,GetOwningPlayer(GetTriggerUnit()))
else
call DoNothing()
endif
if(Trig_MalevolentCorruption_Func006001())then
call SetPlayerTechResearchedSwap('R004',3,GetOwningPlayer(GetTriggerUnit()))
else
call DoNothing()
endif
if(Trig_MalevolentCorruption_Func007001())then
call SetPlayerTechResearchedSwap('R000',4,GetOwningPlayer(GetTriggerUnit()))
else
call DoNothing()
endif
if(Trig_MalevolentCorruption_Func008001())then
call SetPlayerTechResearchedSwap('R004',4,GetOwningPlayer(GetTriggerUnit()))
else
call DoNothing()
endif
if(Trig_MalevolentCorruption_Func009001())then
call SetPlayerTechResearchedSwap('R000',5,GetOwningPlayer(GetTriggerUnit()))
else
call DoNothing()
endif
if(Trig_MalevolentCorruption_Func010001())then
call SetPlayerTechResearchedSwap('R004',5,GetOwningPlayer(GetTriggerUnit()))
else
call DoNothing()
endif
endfunction
//===========================================================================
//===========================================================================
//Trigger:DragonDance
//===========================================================================
function Trig_DragonDance_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A02V'))then
return false
endif
return true
endfunction
function Trig_DragonDance_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ('A02E',GetTriggerUnit())
call UnitAddAbilityBJ('A070',GetTriggerUnit())
call TriggerSleepAction(30.00)
call UnitRemoveAbilityBJ('A070',GetTriggerUnit())
call UnitAddAbilityBJ('A02E',GetTriggerUnit())
endfunction
//===========================================================================
//===========================================================================
//Trigger:SoulOverride
//===========================================================================
function Trig_SoulOverride_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A07Z'))then
return false
endif
return true
endfunction
function Trig_SoulOverride_Actions takes nothing returns nothing
call UnitAddAbilityBJ('A071',GetSpellTargetUnit())
call UnitAddAbilityBJ('A072',GetSpellTargetUnit())
call UnitAddAbilityBJ('A073',GetSpellTargetUnit())
call SetUnitLifePercentBJ(GetSpellTargetUnit(),100)
endfunction
//===========================================================================
//===========================================================================
//Trigger:Alchemy
//===========================================================================
function Trig_Alchemy_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A07X'))then
return false
endif
return true
endfunction
function Trig_Alchemy_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound01)
call CreateItemLoc(udg_integers08[GetRandomInt(1,85)],GetUnitLoc(GetTriggerUnit()))
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Objects\\Spawnmodels\\Other\\ToonBoom\\ToonBoom.mdl")
set udg_effects01[276]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.20)
call DestroyEffectBJ(udg_effects01[276])
endfunction
//===========================================================================
//===========================================================================
//Trigger:SiphonEnergy
//===========================================================================
function Trig_SiphonEnergy_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A088'))then
return false
endif
return true
endfunction
function Trig_SiphonEnergy_Actions takes nothing returns nothing
call ModifyHeroStat(bj_HEROSTAT_AGI,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,3)
call ModifyHeroStat(bj_HEROSTAT_STR,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,1)
endfunction
//===========================================================================
//===========================================================================
//Trigger:NetherFixMaybe
//===========================================================================
function Trig_NetherFixMaybe_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='E00R'))then
return false
endif
return true
endfunction
function Trig_NetherFixMaybe_Func002001 takes nothing returns boolean
return(IsUnitDeadBJ(GetEventTargetUnit())==true)
endfunction
function Trig_NetherFixMaybe_Actions takes nothing returns nothing
call IssueTargetOrderBJ(GetTriggerUnit(),"attack",GetEventTargetUnit())
loop
exitwhen(Trig_NetherFixMaybe_Func002001())
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL,0.50))
endloop
endfunction
//===========================================================================
//===========================================================================
//Trigger:Zephyr
//===========================================================================
function Trig_Zephyr_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetSummonedUnit())=='o001'))then
return false
endif
return true
endfunction
function Trig_Zephyr_Actions takes nothing returns nothing
call UnitAddAbilityBJ('A02B',GetSummonedUnit())
endfunction
//===========================================================================
//===========================================================================
//Trigger:Jomay
//===========================================================================
function Trig_Jomay_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetSummonedUnit())=='o011'))then
return false
endif
return true
endfunction
function Trig_Jomay_Actions takes nothing returns nothing
call UnitAddAbilityBJ('A06D',GetSummonedUnit())
endfunction
//===========================================================================
//===========================================================================
//Trigger:Grow
//===========================================================================
function Trig_Grow_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A08J'))then
return false
endif
return true
endfunction
function Trig_Grow_Func001001003001 takes nothing returns boolean
return(IsUnitAlly(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_Grow_Func001001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Grow_Func001001003002002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==false)
endfunction
function Trig_Grow_Func001001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Grow_Func001001003002001(),Trig_Grow_Func001001003002002())
endfunction
function Trig_Grow_Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Grow_Func001001003001(),Trig_Grow_Func001001003002())
endfunction
function Trig_Grow_Func001A takes nothing returns nothing
call SetUnitScalePercent(GetEnumUnit(),140.00,140.00,140.00)
endfunction
function Trig_Grow_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRangeOfLocMatching(600.00,GetSpellTargetLoc(),Condition(function Trig_Grow_Func001001003)),function Trig_Grow_Func001A)
endfunction
//===========================================================================
//===========================================================================
//Trigger:TeamLeft
//===========================================================================
function Trig_TeamLeft_Func001001 takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(10))
endfunction
function Trig_TeamLeft_Func001002 takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(11))
endfunction
function Trig_TeamLeft_Conditions takes nothing returns boolean
if(not GetBooleanOr(Trig_TeamLeft_Func001001(),Trig_TeamLeft_Func001002()))then
return false
endif
return true
endfunction
function Trig_TeamLeft_Actions takes nothing returns nothing
call SetUnitMoveSpeed(GetTriggerUnit(),(GetUnitDefaultMoveSpeed(GetTriggerUnit())+10.00))
endfunction
//===========================================================================
//===========================================================================
//Trigger:TeamRight
//===========================================================================
function Trig_TeamRight_Func001001 takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(8))
endfunction
function Trig_TeamRight_Func001002 takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(9))
endfunction
function Trig_TeamRight_Conditions takes nothing returns boolean
if(not GetBooleanOr(Trig_TeamRight_Func001001(),Trig_TeamRight_Func001002()))then
return false
endif
return true
endfunction
function Trig_TeamRight_Actions takes nothing returns nothing
call SetUnitMoveSpeed(GetTriggerUnit(),(GetUnitDefaultMoveSpeed(GetTriggerUnit())+10.00))
endfunction
//===========================================================================
//===========================================================================
//Trigger:KillHero
//===========================================================================
function Trig_KillHero_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())!='u001'))then
return false
endif
return true
endfunction
function Trig_KillHero_Actions takes nothing returns nothing
call KillUnit(GetTriggerUnit())
endfunction
//===========================================================================
//===========================================================================
//Trigger:TurnOnKill
//===========================================================================
function Trig_TurnOnKill_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger163)
endfunction
//===========================================================================
//===========================================================================
//Trigger:WhorlDisplacement
//===========================================================================
function Trig_WhorlDisplacement_Func007001 takes nothing returns boolean
return(GetSpellAbilityId()=='A06A')
endfunction
function Trig_WhorlDisplacement_Func007002 takes nothing returns boolean
return(GetPlayerController(GetOwningPlayer(GetSpellTargetUnit()))==MAP_CONTROL_COMPUTER)
endfunction
function Trig_WhorlDisplacement_Conditions takes nothing returns boolean
if(not GetBooleanAnd(Trig_WhorlDisplacement_Func007001(),Trig_WhorlDisplacement_Func007002()))then
return false
endif
return true
endfunction
function Trig_WhorlDisplacement_Func002Func001001 takes nothing returns boolean
return(GetRandomInt(1,0)==0)
endfunction
function Trig_WhorlDisplacement_Func002C takes nothing returns boolean
if(not(IsPlayerAlly(GetOwningPlayer(GetSpellTargetUnit()),Player(0))==true))then
return false
endif
return true
endfunction
function Trig_WhorlDisplacement_Func003Func001001 takes nothing returns boolean
return(GetRandomInt(1,0)==0)
endfunction
function Trig_WhorlDisplacement_Func003C takes nothing returns boolean
if(not(IsPlayerAlly(GetOwningPlayer(GetSpellTargetUnit()),Player(4))==true))then
return false
endif
return true
endfunction
function Trig_WhorlDisplacement_Actions takes nothing returns nothing
if(Trig_WhorlDisplacement_Func002C())then
if(Trig_WhorlDisplacement_Func002Func001001())then
call SetUnitPositionLoc(GetSpellTargetUnit(),GetRectCenter(udg_rect16))
else
call SetUnitPositionLoc(GetSpellTargetUnit(),GetRectCenter(udg_rect17))
endif
else
endif
if(Trig_WhorlDisplacement_Func003C())then
if(Trig_WhorlDisplacement_Func003Func001001())then
call SetUnitPositionLoc(GetSpellTargetUnit(),GetRectCenter(udg_rect14))
else
call SetUnitPositionLoc(GetSpellTargetUnit(),GetRectCenter(udg_rect15))
endif
else
endif
call AddSpecialEffectLocBJ(GetSpellTargetLoc(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl")
call TriggerSleepAction(0.03)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
//===========================================================================
//===========================================================================
//Trigger:GlythtidesGift
//===========================================================================
function Trig_GlythtidesGift_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A05X'))then
return false
endif
return true
endfunction
function Trig_GlythtidesGift_Actions takes nothing returns nothing
call CameraSetTargetNoiseForPlayer(GetOwningPlayer(GetSpellTargetUnit()),800.00,300.00)
call TriggerSleepAction(15.00)
call CameraClearNoiseForPlayer(GetOwningPlayer(GetSpellTargetUnit()))
endfunction
//===========================================================================
//===========================================================================
//Trigger:KalestraumsDarkrift
//===========================================================================
function Trig_KalestraumsDarkrift_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A063'))then
return false
endif
return true
endfunction
function Trig_KalestraumsDarkrift_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,udg_integers02[(udg_integer03+3)],GetOwningPlayer(GetTriggerUnit()),GetSpellTargetLoc(),bj_UNIT_FACING)
call TriggerExecute(udg_trigger170)
call CreateNUnitsAtLoc(1,udg_integers02[(udg_integer03+3)],GetOwningPlayer(GetTriggerUnit()),GetSpellTargetLoc(),bj_UNIT_FACING)
call TriggerExecute(udg_trigger170)
call CreateNUnitsAtLoc(1,udg_integers02[(udg_integer03+3)],GetOwningPlayer(GetTriggerUnit()),GetSpellTargetLoc(),bj_UNIT_FACING)
call TriggerExecute(udg_trigger170)
call CreateNUnitsAtLoc(1,udg_integers02[(udg_integer03+3)],GetOwningPlayer(GetTriggerUnit()),GetSpellTargetLoc(),bj_UNIT_FACING)
call TriggerExecute(udg_trigger170)
call CreateNUnitsAtLoc(1,udg_integers02[(udg_integer03+3)],GetOwningPlayer(GetTriggerUnit()),GetSpellTargetLoc(),bj_UNIT_FACING)
call TriggerExecute(udg_trigger170)
call CreateNUnitsAtLoc(1,udg_integers02[(udg_integer03+3)],GetOwningPlayer(GetTriggerUnit()),GetSpellTargetLoc(),bj_UNIT_FACING)
call TriggerExecute(udg_trigger170)
endfunction
//===========================================================================
//===========================================================================
//Trigger:Kalestraum3840
//===========================================================================
function Trig_Kalestraum3840_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A063'))then
return false
endif
return true
endfunction
function Trig_Kalestraum3840_Func003Func013001 takes nothing returns boolean
return(udg_integer03==38)
endfunction
function Trig_Kalestraum3840_Func003Func013002001 takes nothing returns boolean
return(udg_integer03==39)
endfunction
function Trig_Kalestraum3840_Func003Func013002002 takes nothing returns boolean
return(udg_integer03==40)
endfunction
function Trig_Kalestraum3840_Func003Func013002 takes nothing returns boolean
return GetBooleanOr(Trig_Kalestraum3840_Func003Func013002001(),Trig_Kalestraum3840_Func003Func013002002())
endfunction
function Trig_Kalestraum3840_Func003C takes nothing returns boolean
if(not GetBooleanOr(Trig_Kalestraum3840_Func003Func013001(),Trig_Kalestraum3840_Func003Func013002()))then
return false
endif
return true
endfunction
function Trig_Kalestraum3840_Actions takes nothing returns nothing
if(Trig_Kalestraum3840_Func003C())then
call CreateNUnitsAtLoc(1,udg_integers02[40],GetOwningPlayer(GetTriggerUnit()),GetSpellTargetLoc(),bj_UNIT_FACING)
call TriggerExecute(udg_trigger170)
call CreateNUnitsAtLoc(1,udg_integers02[40],GetOwningPlayer(GetTriggerUnit()),GetSpellTargetLoc(),bj_UNIT_FACING)
call TriggerExecute(udg_trigger170)
call CreateNUnitsAtLoc(1,udg_integers02[40],GetOwningPlayer(GetTriggerUnit()),GetSpellTargetLoc(),bj_UNIT_FACING)
call TriggerExecute(udg_trigger170)
call CreateNUnitsAtLoc(1,udg_integers02[40],GetOwningPlayer(GetTriggerUnit()),GetSpellTargetLoc(),bj_UNIT_FACING)
call TriggerExecute(udg_trigger170)
call CreateNUnitsAtLoc(1,udg_integers02[40],GetOwningPlayer(GetTriggerUnit()),GetSpellTargetLoc(),bj_UNIT_FACING)
call TriggerExecute(udg_trigger170)
call CreateNUnitsAtLoc(1,udg_integers02[40],GetOwningPlayer(GetTriggerUnit()),GetSpellTargetLoc(),bj_UNIT_FACING)
call TriggerExecute(udg_trigger170)
else
endif
endfunction
//===========================================================================
//===========================================================================
//Trigger:KalestraumSFX
//===========================================================================
function Trig_KalestraumSFX_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A063'))then
return false
endif
return true
endfunction
function Trig_KalestraumSFX_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(GetSpellTargetLoc(),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call TriggerSleepAction(0.03)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
//===========================================================================
//===========================================================================
//Trigger:KalestraumDelay
//===========================================================================
function Trig_KalestraumDelay_Actions takes nothing returns nothing
local unit udg_unit01
set udg_unit01=GetLastCreatedUnit()
call ShowUnitHide(udg_unit01)
call TriggerSleepAction(0.60)
call ShowUnitShow(udg_unit01)
call UnitApplyTimedLifeBJ(60,'BTLF',udg_unit01)
endfunction
//===========================================================================
//===========================================================================
//Trigger:RemoveSidhlot
//===========================================================================
function Trig_RemoveSidhlot_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='n00Q'))then
return false
endif
return true
endfunction
function Trig_RemoveSidhlot_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
call RemoveUnit(GetTriggerUnit())
call TriggerSleepAction(0.03)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
//===========================================================================
//===========================================================================
//Trigger:RemoveArhat
//===========================================================================
function Trig_RemoveArhat_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='n00O'))then
return false
endif
return true
endfunction
function Trig_RemoveArhat_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call RemoveUnit(GetTriggerUnit())
call TriggerSleepAction(0.03)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
//===========================================================================
//===========================================================================
//Trigger:RemoveHavroth
//===========================================================================
function Trig_RemoveHavroth_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='n00P'))then
return false
endif
return true
endfunction
function Trig_RemoveHavroth_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call RemoveUnit(GetTriggerUnit())
call TriggerSleepAction(0.03)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
//===========================================================================
//===========================================================================
//Trigger:RemoveUthmor
//===========================================================================
function Trig_RemoveUthmor_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='n00R'))then
return false
endif
return true
endfunction
function Trig_RemoveUthmor_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call RemoveUnit(GetTriggerUnit())
call TriggerSleepAction(0.03)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
//===========================================================================
//===========================================================================
//Trigger:SiphonAuto1
//===========================================================================
function Trig_SiphonAuto1_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetAttackedUnitBJ()))])=='E00Z'))then
return false
endif
return true
endfunction
function Trig_SiphonAuto1_Func003003001003001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetAttackedUnitBJ()))==true)
endfunction
function Trig_SiphonAuto1_Func003003001003002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_SiphonAuto1_Func003003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_SiphonAuto1_Func003003001003001(),Trig_SiphonAuto1_Func003003001003002())
endfunction
function Trig_SiphonAuto1_Actions takes nothing returns nothing
call IssueTargetOrderBJ(udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetAttackedUnitBJ()))],"deathcoil",GroupPickRandomUnit(GetUnitsInRangeOfLocMatching(900.00,GetUnitLoc(GetAttackedUnitBJ()),Condition(function Trig_SiphonAuto1_Func003003001003))))
endfunction
//===========================================================================
//===========================================================================
//Trigger:SiphonAuto2
//===========================================================================
function Trig_SiphonAuto2_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetAttackedUnitBJ()))])=='E00Z'))then
return false
endif
return true
endfunction
function Trig_SiphonAuto2_Func003003001003001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetAttackedUnitBJ()))==true)
endfunction
function Trig_SiphonAuto2_Func003003001003002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_SiphonAuto2_Func003003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_SiphonAuto2_Func003003001003001(),Trig_SiphonAuto2_Func003003001003002())
endfunction
function Trig_SiphonAuto2_Actions takes nothing returns nothing
call IssueTargetOrderBJ(udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetAttackedUnitBJ()))],"deathcoil",GroupPickRandomUnit(GetUnitsInRangeOfLocMatching(900.00,GetUnitLoc(GetAttackedUnitBJ()),Condition(function Trig_SiphonAuto2_Func003003001003))))
endfunction
//===========================================================================
//===========================================================================
//Trigger:SiphonAuto3
//===========================================================================
function Trig_SiphonAuto3_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetAttackedUnitBJ()))])=='E00Z'))then
return false
endif
return true
endfunction
function Trig_SiphonAuto3_Func003003001003001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetAttackedUnitBJ()))==true)
endfunction
function Trig_SiphonAuto3_Func003003001003002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_SiphonAuto3_Func003003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_SiphonAuto3_Func003003001003001(),Trig_SiphonAuto3_Func003003001003002())
endfunction
function Trig_SiphonAuto3_Actions takes nothing returns nothing
call IssueTargetOrderBJ(udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetAttackedUnitBJ()))],"deathcoil",GroupPickRandomUnit(GetUnitsInRangeOfLocMatching(900.00,GetUnitLoc(GetAttackedUnitBJ()),Condition(function Trig_SiphonAuto3_Func003003001003))))
endfunction
//===========================================================================
//===========================================================================
//Trigger:SiphonAuto4
//===========================================================================
function Trig_SiphonAuto4_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetAttackedUnitBJ()))])=='E00Z'))then
return false
endif
return true
endfunction
function Trig_SiphonAuto4_Func003003001003001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetAttackedUnitBJ()))==true)
endfunction
function Trig_SiphonAuto4_Func003003001003002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_SiphonAuto4_Func003003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_SiphonAuto4_Func003003001003001(),Trig_SiphonAuto4_Func003003001003002())
endfunction
function Trig_SiphonAuto4_Actions takes nothing returns nothing
call IssueTargetOrderBJ(udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetAttackedUnitBJ()))],"deathcoil",GroupPickRandomUnit(GetUnitsInRangeOfLocMatching(900.00,GetUnitLoc(GetAttackedUnitBJ()),Condition(function Trig_SiphonAuto4_Func003003001003))))
endfunction
//===========================================================================
//===========================================================================
//Trigger:SiphonAuto5
//===========================================================================
function Trig_SiphonAuto5_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetAttackedUnitBJ()))])=='E00Z'))then
return false
endif
return true
endfunction
function Trig_SiphonAuto5_Func003003001003001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetAttackedUnitBJ()))==true)
endfunction
function Trig_SiphonAuto5_Func003003001003002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_SiphonAuto5_Func003003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_SiphonAuto5_Func003003001003001(),Trig_SiphonAuto5_Func003003001003002())
endfunction
function Trig_SiphonAuto5_Actions takes nothing returns nothing
call IssueTargetOrderBJ(udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetAttackedUnitBJ()))],"deathcoil",GroupPickRandomUnit(GetUnitsInRangeOfLocMatching(900.00,GetUnitLoc(GetAttackedUnitBJ()),Condition(function Trig_SiphonAuto5_Func003003001003))))
endfunction
//===========================================================================
//===========================================================================
//Trigger:SiphonAuto6
//===========================================================================
function Trig_SiphonAuto6_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetAttackedUnitBJ()))])=='E00Z'))then
return false
endif
return true
endfunction
function Trig_SiphonAuto6_Func003003001003001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetAttackedUnitBJ()))==true)
endfunction
function Trig_SiphonAuto6_Func003003001003002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_SiphonAuto6_Func003003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_SiphonAuto6_Func003003001003001(),Trig_SiphonAuto6_Func003003001003002())
endfunction
function Trig_SiphonAuto6_Actions takes nothing returns nothing
call IssueTargetOrderBJ(udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetAttackedUnitBJ()))],"deathcoil",GroupPickRandomUnit(GetUnitsInRangeOfLocMatching(900.00,GetUnitLoc(GetAttackedUnitBJ()),Condition(function Trig_SiphonAuto6_Func003003001003))))
endfunction
//===========================================================================
//===========================================================================
//Trigger:SiphonAuto7
//===========================================================================
function Trig_SiphonAuto7_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetAttackedUnitBJ()))])=='E00Z'))then
return false
endif
return true
endfunction
function Trig_SiphonAuto7_Func003003001003001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetAttackedUnitBJ()))==true)
endfunction
function Trig_SiphonAuto7_Func003003001003002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_SiphonAuto7_Func003003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_SiphonAuto7_Func003003001003001(),Trig_SiphonAuto7_Func003003001003002())
endfunction
function Trig_SiphonAuto7_Actions takes nothing returns nothing
call IssueTargetOrderBJ(udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetAttackedUnitBJ()))],"deathcoil",GroupPickRandomUnit(GetUnitsInRangeOfLocMatching(900.00,GetUnitLoc(GetAttackedUnitBJ()),Condition(function Trig_SiphonAuto7_Func003003001003))))
endfunction
//===========================================================================
//===========================================================================
//Trigger:SiphonAuto8
//===========================================================================
function Trig_SiphonAuto8_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetAttackedUnitBJ()))])=='E00Z'))then
return false
endif
return true
endfunction
function Trig_SiphonAuto8_Func003003001003001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetAttackedUnitBJ()))==true)
endfunction
function Trig_SiphonAuto8_Func003003001003002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_SiphonAuto8_Func003003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_SiphonAuto8_Func003003001003001(),Trig_SiphonAuto8_Func003003001003002())
endfunction
function Trig_SiphonAuto8_Actions takes nothing returns nothing
call IssueTargetOrderBJ(udg_units03[GetConvertedPlayerId(GetOwningPlayer(GetAttackedUnitBJ()))],"deathcoil",GroupPickRandomUnit(GetUnitsInRangeOfLocMatching(900.00,GetUnitLoc(GetAttackedUnitBJ()),Condition(function Trig_SiphonAuto8_Func003003001003))))
endfunction
//===========================================================================
//===========================================================================
//Trigger:AutoOn1
//===========================================================================
function Trig_AutoOn1_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(udg_units03[GetConvertedPlayerId(GetTriggerPlayer())])=='E00Z'))then
return false
endif
return true
endfunction
function Trig_AutoOn1_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger175)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],5.00,"|cff33ff00Siphon Energy autocasting enabled.|r")
endfunction
//===========================================================================
//===========================================================================
//Trigger:AutoOn2
//===========================================================================
function Trig_AutoOn2_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(udg_units03[GetConvertedPlayerId(GetTriggerPlayer())])=='E00Z'))then
return false
endif
return true
endfunction
function Trig_AutoOn2_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger176)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[1],5.00,"|cff33ff00Siphon Energy autocasting enabled.|r")
endfunction
//===========================================================================
//===========================================================================
//Trigger:AutoOn3
//===========================================================================
function Trig_AutoOn3_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(udg_units03[GetConvertedPlayerId(GetTriggerPlayer())])=='E00Z'))then
return false
endif
return true
endfunction
function Trig_AutoOn3_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger177)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],5.00,"|cff33ff00Siphon Energy autocasting enabled.|r")
endfunction
//===========================================================================
//===========================================================================
//Trigger:AutoOn4
//===========================================================================
function Trig_AutoOn4_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(udg_units03[GetConvertedPlayerId(GetTriggerPlayer())])=='E00Z'))then
return false
endif
return true
endfunction
function Trig_AutoOn4_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger178)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[3],5.00,"|cff33ff00Siphon Energy autocasting enabled.|r")
endfunction
//===========================================================================
//===========================================================================
//Trigger:AutoOn5
//===========================================================================
function Trig_AutoOn5_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(udg_units03[GetConvertedPlayerId(GetTriggerPlayer())])=='E00Z'))then
return false
endif
return true
endfunction
function Trig_AutoOn5_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger179)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[4],5.00,"|cff33ff00Siphon Energy autocasting enabled.|r")
endfunction
//===========================================================================
//===========================================================================
//Trigger:AutoOn6
//===========================================================================
function Trig_AutoOn6_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(udg_units03[GetConvertedPlayerId(GetTriggerPlayer())])=='E00Z'))then
return false
endif
return true
endfunction
function Trig_AutoOn6_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger180)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[5],5.00,"|cff33ff00Siphon Energy autocasting enabled.|r")
endfunction
//===========================================================================
//===========================================================================
//Trigger:AutoOn7
//===========================================================================
function Trig_AutoOn7_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(udg_units03[GetConvertedPlayerId(GetTriggerPlayer())])=='E00Z'))then
return false
endif
return true
endfunction
function Trig_AutoOn7_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger181)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[6],5.00,"|cff33ff00Siphon Energy autocasting enabled.|r")
endfunction
//===========================================================================
//===========================================================================
//Trigger:AutoOn8
//===========================================================================
function Trig_AutoOn8_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(udg_units03[GetConvertedPlayerId(GetTriggerPlayer())])=='E00Z'))then
return false
endif
return true
endfunction
function Trig_AutoOn8_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger182)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],5.00,"|cff33ff00Siphon Energy autocasting enabled.|r")
endfunction
//===========================================================================
//===========================================================================
//Trigger:AutoOff1
//===========================================================================
function Trig_AutoOff1_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(udg_units03[GetConvertedPlayerId(GetTriggerPlayer())])=='E00Z'))then
return false
endif
return true
endfunction
function Trig_AutoOff1_Actions takes nothing returns nothing
call DisableTrigger(udg_trigger175)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],5.00,"|cff33ff00Siphon Energy autocasting disabled.|r")
endfunction
//===========================================================================
//===========================================================================
//Trigger:AutoOff2
//===========================================================================
function Trig_AutoOff2_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(udg_units03[GetConvertedPlayerId(GetTriggerPlayer())])=='E00Z'))then
return false
endif
return true
endfunction
function Trig_AutoOff2_Actions takes nothing returns nothing
call DisableTrigger(udg_trigger176)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[1],5.00,"|cff33ff00Siphon Energy autocasting disabled.|r")
endfunction
//===========================================================================
//===========================================================================
//Trigger:AutoOff3
//===========================================================================
function Trig_AutoOff3_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(udg_units03[GetConvertedPlayerId(GetTriggerPlayer())])=='E00Z'))then
return false
endif
return true
endfunction
function Trig_AutoOff3_Actions takes nothing returns nothing
call DisableTrigger(udg_trigger177)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],5.00,"|cff33ff00Siphon Energy autocasting disabled.|r")
endfunction
//===========================================================================
//===========================================================================
//Trigger:AutoOff4
//===========================================================================
function Trig_AutoOff4_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(udg_units03[GetConvertedPlayerId(GetTriggerPlayer())])=='E00Z'))then
return false
endif
return true
endfunction
function Trig_AutoOff4_Actions takes nothing returns nothing
call DisableTrigger(udg_trigger178)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[3],5.00,"|cff33ff00Siphon Energy autocasting disabled.|r")
endfunction
//===========================================================================
//===========================================================================
//Trigger:AutoOff5
//===========================================================================
function Trig_AutoOff5_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(udg_units03[GetConvertedPlayerId(GetTriggerPlayer())])=='E00Z'))then
return false
endif
return true
endfunction
function Trig_AutoOff5_Actions takes nothing returns nothing
call DisableTrigger(udg_trigger179)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[4],5.00,"|cff33ff00Siphon Energy autocasting disabled.|r")
endfunction
//===========================================================================
//===========================================================================
//Trigger:AutoOff6
//===========================================================================
function Trig_AutoOff6_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(udg_units03[GetConvertedPlayerId(GetTriggerPlayer())])=='E00Z'))then
return false
endif
return true
endfunction
function Trig_AutoOff6_Actions takes nothing returns nothing
call DisableTrigger(udg_trigger180)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[5],5.00,"|cff33ff00Siphon Energy autocasting disabled.|r")
endfunction
//===========================================================================
//===========================================================================
//Trigger:AutoOff7
//===========================================================================
function Trig_AutoOff7_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(udg_units03[GetConvertedPlayerId(GetTriggerPlayer())])=='E00Z'))then
return false
endif
return true
endfunction
function Trig_AutoOff7_Actions takes nothing returns nothing
call DisableTrigger(udg_trigger181)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[6],5.00,"|cff33ff00Siphon Energy autocasting disabled.|r")
endfunction
//===========================================================================
//===========================================================================
//Trigger:AutoOff8
//===========================================================================
function Trig_AutoOff8_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(udg_units03[GetConvertedPlayerId(GetTriggerPlayer())])=='E00Z'))then
return false
endif
return true
endfunction
function Trig_AutoOff8_Actions takes nothing returns nothing
call DisableTrigger(udg_trigger182)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],5.00,"|cff33ff00Siphon Energy autocasting disabled.|r")
endfunction
//===========================================================================
//===========================================================================
//===========================================================================
//***************************************************************************
//*
//*Players
//*
//***************************************************************************
//***************************************************************************
//*
//*Main Initialization
//*
//***************************************************************************
//===========================================================================
function main2 takes nothing returns nothing
call SetCameraBounds(-5376.0+GetCameraMargin(CAMERA_MARGIN_LEFT),-7168.0+GetCameraMargin(CAMERA_MARGIN_BOTTOM),9472.0-GetCameraMargin(CAMERA_MARGIN_RIGHT),7680.0-GetCameraMargin(CAMERA_MARGIN_TOP),-5376.0+GetCameraMargin(CAMERA_MARGIN_LEFT),7680.0-GetCameraMargin(CAMERA_MARGIN_TOP),9472.0-GetCameraMargin(CAMERA_MARGIN_RIGHT),-7168.0+GetCameraMargin(CAMERA_MARGIN_BOTTOM))
call SetDayNightModels("Environment\\DNC\\DNCDalaran\\DNCDalaranTerrain\\DNCDalaranTerrain.mdl","Environment\\DNC\\DNCDalaran\\DNCDalaranUnit\\DNCDalaranUnit.mdl")
call NewSoundEnvironment("Default")
call SetAmbientDaySound("DalaranDay")
call SetAmbientNightSound("DalaranNight")
call SetMapMusic("Music",true,0)
set udg_sound01=CreateSound("Abilities\\Spells\\NightElf\\Tranquility\\Tranquility.wav",false,true,true,10,10,"SpellsEAX")
call SetSoundParamsFromLabel(udg_sound01,"Tranquility")
call SetSoundDuration(udg_sound01,3572)
set udg_sound02=CreateSound("Abilities\\Spells\\NightElf\\FaerieFire\\FaerieFireLaunch1.wav",false,true,true,10,10,"SpellsEAX")
call SetSoundParamsFromLabel(udg_sound02,"FaerieFire")
call SetSoundDuration(udg_sound02,2067)
set udg_sound03=CreateSound("Abilities\\Spells\\Undead\\ReviveUndead\\ReviveUndead.wav",false,true,true,10,10,"SpellsEAX")
call SetSoundParamsFromLabel(udg_sound03,"ReviveUndead")
call SetSoundDuration(udg_sound03,3623)
set udg_sound04=CreateSound("Abilities\\Spells\\Other\\StormEarthFire\\PandarenUltimate.wav",false,true,true,10,10,"SpellsEAX")
call SetSoundParamsFromLabel(udg_sound04,"StormEarthFireSound")
call SetSoundDuration(udg_sound04,3251)
set udg_sound05=CreateSound("Sound\\Interface\\Hint.wav",false,false,false,10,10,"")
call SetSoundParamsFromLabel(udg_sound05,"Hint")
call SetSoundDuration(udg_sound05,2006)
set udg_sound06=CreateSound("Sound\\Interface\\Warning.wav",false,false,false,10,10,"")
call SetSoundParamsFromLabel(udg_sound06,"Warning")
call SetSoundDuration(udg_sound06,1904)
set udg_sound07=CreateSound("Sound\\Interface\\GoodJob.wav",false,false,false,10,10,"")
call SetSoundParamsFromLabel(udg_sound07,"GoodJob")
call SetSoundDuration(udg_sound07,2548)
set udg_sound08=CreateSound("Abilities\\Spells\\Undead\\DeathandDecay\\DeathAndDecayTarget1.wav",false,true,true,10,10,"SpellsEAX")
call SetSoundParamsFromLabel(udg_sound08,"DeathAndDecayTarget")
call SetSoundDuration(udg_sound08,1268)
set udg_sound09=CreateSound("Units\\Orc\\HeroBladeMaster\\CriticalStrike.wav",false,true,true,10,10,"SpellsEAX")
call SetSoundParamsFromLabel(udg_sound09,"CriticalStrike")
call SetSoundDuration(udg_sound09,1962)
set udg_sound10=CreateSound("Abilities\\Spells\\Orc\\LightningBolt\\LightningBolt.wav",false,true,true,10,10,"SpellsEAX")
call SetSoundParamsFromLabel(udg_sound10,"LightningBolt")
call SetSoundDuration(udg_sound10,2136)
set udg_sound11=CreateSound("Abilities\\Spells\\Other\\ANsa\\SacrificeUnit.wav",false,true,true,10,10,"SpellsEAX")
call SetSoundParamsFromLabel(udg_sound11,"SacrificeUnit")
call SetSoundDuration(udg_sound11,2693)
set udg_sound12=CreateSound("Abilities\\Spells\\Other\\TinkerRocket\\TinkerMissileLaunch1.wav",false,true,true,10,10,"MissilesEAX")
call SetSoundParamsFromLabel(udg_sound12,"ClusterRocketsLaunch")
call SetSoundDuration(udg_sound12,871)
set udg_sound13=CreateSound("Sound\\Buildings\\Fire\\NightElvesLargeFireLoop1.wav",false,true,true,10,10,"SpellsEAX")
call SetSoundParamsFromLabel(udg_sound13,"NightElfFireLarge")
call SetSoundDuration(udg_sound13,3030)
set udg_sound14=CreateSound("Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.wav",false,true,true,10,10,"SpellsEAX")
call SetSoundParamsFromLabel(udg_sound14,"ThunderClap")
call SetSoundDuration(udg_sound14,3451)
set udg_sound15=CreateSound("Abilities\\Spells\\Items\\ResourceItems\\BundleOfLumber.wav",false,true,true,10,10,"SpellsEAX")
call SetSoundParamsFromLabel(udg_sound15,"ReceiveLumber")
call SetSoundDuration(udg_sound15,1347)
set udg_sound16=CreateSound("Units\\NightElf\\HeroDemonHunter\\DemonHunterDeathAlternate1.wav",false,true,true,10,10,"HeroAcksEAX")
call SetSoundParamsFromLabel(udg_sound16,"HeroDemonHunterDeathAlternate")
call SetSoundDuration(udg_sound16,2003)
set udg_sound17=CreateSound("Abilities\\Spells\\Human\\FlakCannons\\FlakCannon.wav",false,true,true,10,10,"SpellsEAX")
call SetSoundParamsFromLabel(udg_sound17,"FlakCannonHit")
call SetSoundDuration(udg_sound17,1419)
set udg_sound18=CreateSound("Abilities\\Spells\\NightElf\\FaerieDragonInvis\\PhaseShift1.wav",false,true,true,10,10,"SpellsEAX")
call SetSoundParamsFromLabel(udg_sound18,"PhaseShift")
call SetSoundDuration(udg_sound18,1251)
set udg_sound19=CreateSound("Abilities\\Spells\\Orc\\Shockwave\\Shockwave.wav",false,true,true,10,10,"SpellsEAX")
call SetSoundParamsFromLabel(udg_sound19,"ShockWave")
call SetSoundDuration(udg_sound19,2847)
set udg_sound20=CreateSound("Abilities\\Spells\\Undead\\DeathPact\\DeathPactTargetBirth1.wav",false,true,true,10,10,"SpellsEAX")
call SetSoundParamsFromLabel(udg_sound20,"DeathPactTarget")
call SetSoundDuration(udg_sound20,1635)
set udg_sound21=CreateSound("Sound\\Ambient\\DoodadEffects\\SargerasLaugh.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound21,"SargerasLaugh")
call SetSoundDuration(udg_sound21,3326)
set udg_sound22=CreateSound("Abilities\\Spells\\Human\\HolyBolt\\HolyBolt.wav",false,true,true,10,10,"SpellsEAX")
call SetSoundParamsFromLabel(udg_sound22,"HolyBolt")
call SetSoundDuration(udg_sound22,1591)
set udg_sound23=CreateSound("Buildings\\Human\\Blacksmith\\BlacksmithWhat1.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound23,"BlacksmithWhat")
call SetSoundDuration(udg_sound23,3059)
call CreateRegions2()
call CreateNeutralPassiveBuildings2()
call CreateBuildingsForPlayer0()
call CreateBuildingsForPlayer1()
call CreateBuildingsForPlayer2()
call CreateBuildingsForPlayer3()
call CreateBuildingsForPlayer4()
call CreateBuildingsForPlayer5()
call CreateBuildingsForPlayer6()
call CreateBuildingsForPlayer7()
call CreateNeutralPassive2()
call InitGlobals2()
set udg_trigger01=CreateTrigger()
call TriggerAddAction(udg_trigger01,function Trig_GeneralInitialization_Actions)
set udg_trigger02=CreateTrigger()
call DisableTrigger(udg_trigger02)
call TriggerAddAction(udg_trigger02,function Trig_Variables_Actions)
set udg_trigger03=CreateTrigger()
call DisableTrigger(udg_trigger03)
call TriggerAddAction(udg_trigger03,function Trig_Multiboard_Actions)
set udg_trigger04=CreateTrigger()
call DisableTrigger(udg_trigger04)
call TriggerAddAction(udg_trigger04,function Trig_VoteBox_Actions)
set udg_trigger05=CreateTrigger()
call TriggerRegisterDialogEventBJ(udg_trigger05,udg_dialog01)
call TriggerAddAction(udg_trigger05,function Trig_TallyVote_Actions)
set udg_trigger06=CreateTrigger()
call DisableTrigger(udg_trigger06)
call TriggerAddAction(udg_trigger06,function Trig_Difficulty_Actions)
set udg_trigger07=CreateTrigger()
call DisableTrigger(udg_trigger07)
call TriggerAddAction(udg_trigger07,function Trig_SpawnUnits_Actions)
set udg_trigger08=CreateTrigger()
call DisableTrigger(udg_trigger08)
call TriggerAddCondition(udg_trigger08,Condition(function Trig_SpawnLeft_Conditions))
call TriggerAddAction(udg_trigger08,function Trig_SpawnLeft_Actions)
set udg_trigger09=CreateTrigger()
call DisableTrigger(udg_trigger09)
call TriggerAddCondition(udg_trigger09,Condition(function Trig_SpawnRight_Conditions))
call TriggerAddAction(udg_trigger09,function Trig_SpawnRight_Actions)
set udg_trigger10=CreateTrigger()
call DisableTrigger(udg_trigger10)
call TriggerAddAction(udg_trigger10,function Trig_Color_Actions)
set udg_trigger11=CreateTrigger()
call DisableTrigger(udg_trigger11)
call TriggerAddAction(udg_trigger11,function Trig_InitializeAlchemy_Actions)
set udg_trigger13=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(udg_trigger13,70.00,udg_unit45)
call TriggerAddCondition(udg_trigger13,Condition(function Trig_Select_King_Conditions))
call TriggerAddAction(udg_trigger13,function Trig_Select_King_Actions)
set udg_trigger14=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(udg_trigger14,70.00,udg_unit44)
call TriggerAddCondition(udg_trigger14,Condition(function Trig_Select_Naroom_Conditions))
call TriggerAddAction(udg_trigger14,function Trig_Select_Naroom_Actions)
set udg_trigger15=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(udg_trigger15,70.00,udg_unit43)
call TriggerAddCondition(udg_trigger15,Condition(function Trig_Select_Galactic_Conditions))
call TriggerAddAction(udg_trigger15,function Trig_Select_Galactic_Actions)
set udg_trigger16=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(udg_trigger16,70.00,udg_unit42)
call TriggerAddCondition(udg_trigger16,Condition(function Trig_Select_Ghoul_Conditions))
call TriggerAddAction(udg_trigger16,function Trig_Select_Ghoul_Actions)
set udg_trigger17=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(udg_trigger17,70.00,udg_unit06)
call TriggerAddCondition(udg_trigger17,Condition(function Trig_Select_Ahlen_Conditions))
call TriggerAddAction(udg_trigger17,function Trig_Select_Ahlen_Actions)
set udg_trigger18=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(udg_trigger18,70.00,udg_unit15)
call TriggerAddCondition(udg_trigger18,Condition(function Trig_Select_Barbarian_Conditions))
call TriggerAddAction(udg_trigger18,function Trig_Select_Barbarian_Actions)
set udg_trigger19=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(udg_trigger19,70.00,udg_unit08)
call TriggerAddCondition(udg_trigger19,Condition(function Trig_Select_Trader_Conditions))
call TriggerAddAction(udg_trigger19,function Trig_Select_Trader_Actions)
set udg_trigger20=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(udg_trigger20,70.00,udg_unit02)
call TriggerAddCondition(udg_trigger20,Condition(function Trig_Select_BattleChanter_Conditions))
call TriggerAddAction(udg_trigger20,function Trig_Select_BattleChanter_Actions)
set udg_trigger21=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(udg_trigger21,70.00,udg_unit03)
call TriggerAddCondition(udg_trigger21,Condition(function Trig_Select_Bard_Conditions))
call TriggerAddAction(udg_trigger21,function Trig_Select_Bard_Actions)
set udg_trigger22=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(udg_trigger22,70.00,udg_unit04)
call TriggerAddCondition(udg_trigger22,Condition(function Trig_Select_Nightblade_Conditions))
call TriggerAddAction(udg_trigger22,function Trig_Select_Nightblade_Actions)
set udg_trigger23=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(udg_trigger23,70.00,udg_unit05)
call TriggerAddCondition(udg_trigger23,Condition(function Trig_Select_HolyWarrior_Conditions))
call TriggerAddAction(udg_trigger23,function Trig_Select_HolyWarrior_Actions)
set udg_trigger24=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(udg_trigger24,70.00,udg_unit07)
call TriggerAddCondition(udg_trigger24,Condition(function Trig_Select_Nightmare_Conditions))
call TriggerAddAction(udg_trigger24,function Trig_Select_Nightmare_Actions)
set udg_trigger25=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(udg_trigger25,70.00,udg_unit17)
call TriggerAddCondition(udg_trigger25,Condition(function Trig_Select_Weaponsmith_Conditions))
call TriggerAddAction(udg_trigger25,function Trig_Select_Weaponsmith_Actions)
set udg_trigger26=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(udg_trigger26,70.00,udg_unit18)
call TriggerAddCondition(udg_trigger26,Condition(function Trig_Select_CoreMagi_Conditions))
call TriggerAddAction(udg_trigger26,function Trig_Select_CoreMagi_Actions)
set udg_trigger27=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(udg_trigger27,70.00,udg_unit19)
call TriggerAddCondition(udg_trigger27,Condition(function Trig_Select_Paladin_Conditions))
call TriggerAddAction(udg_trigger27,function Trig_Select_Paladin_Actions)
set udg_trigger28=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(udg_trigger28,70.00,udg_unit16)
call TriggerAddCondition(udg_trigger28,Condition(function Trig_Select_BloodDancer_Conditions))
call TriggerAddAction(udg_trigger28,function Trig_Select_BloodDancer_Actions)
set udg_trigger29=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(udg_trigger29,70.00,udg_unit13)
call TriggerAddCondition(udg_trigger29,Condition(function Trig_Select_Thief_Conditions))
call TriggerAddAction(udg_trigger29,function Trig_Select_Thief_Actions)
set udg_trigger30=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(udg_trigger30,70.00,udg_unit12)
call TriggerAddCondition(udg_trigger30,Condition(function Trig_Select_Cabalist_Conditions))
call TriggerAddAction(udg_trigger30,function Trig_Select_Cabalist_Actions)
set udg_trigger31=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(udg_trigger31,70.00,udg_unit11)
call TriggerAddCondition(udg_trigger31,Condition(function Trig_Select_Entropist_Conditions))
call TriggerAddAction(udg_trigger31,function Trig_Select_Entropist_Actions)
set udg_trigger32=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(udg_trigger32,70.00,udg_unit10)
call TriggerAddCondition(udg_trigger32,Condition(function Trig_Select_Cleric_Conditions))
call TriggerAddAction(udg_trigger32,function Trig_Select_Cleric_Actions)
set udg_trigger33=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(udg_trigger33,70.00,udg_unit09)
call TriggerAddCondition(udg_trigger33,Condition(function Trig_Select_Hypnotist_Conditions))
call TriggerAddAction(udg_trigger33,function Trig_Select_Hypnotist_Actions)
set udg_trigger34=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(udg_trigger34,70.00,udg_unit41)
call TriggerAddCondition(udg_trigger34,Condition(function Trig_Select_Empath_Conditions))
call TriggerAddAction(udg_trigger34,function Trig_Select_Empath_Actions)
set udg_trigger35=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(udg_trigger35,70.00,udg_unit20)
call TriggerAddCondition(udg_trigger35,Condition(function Trig_Select_Mentalist_Conditions))
call TriggerAddAction(udg_trigger35,function Trig_Select_Mentalist_Actions)
set udg_trigger36=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(udg_trigger36,70.00,udg_unit21)
call TriggerAddCondition(udg_trigger36,Condition(function Trig_Select_ArcaneMistress_Conditions))
call TriggerAddAction(udg_trigger36,function Trig_Select_ArcaneMistress_Actions)
set udg_trigger37=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(udg_trigger37,70.00,udg_unit25)
call TriggerAddCondition(udg_trigger37,Condition(function Trig_Select_WarriorMage_Conditions))
call TriggerAddAction(udg_trigger37,function Trig_Select_WarriorMage_Actions)
set udg_trigger38=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(udg_trigger38,70.00,udg_unit24)
call TriggerAddCondition(udg_trigger38,Condition(function Trig_Select_MoonMage_Conditions))
call TriggerAddAction(udg_trigger38,function Trig_Select_MoonMage_Actions)
set udg_trigger39=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(udg_trigger39,70.00,udg_unit23)
call TriggerAddCondition(udg_trigger39,Condition(function Trig_Select_Evoker_Conditions))
call TriggerAddAction(udg_trigger39,function Trig_Select_Evoker_Actions)
set udg_trigger40=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(udg_trigger40,70.00,udg_unit14)
call TriggerAddCondition(udg_trigger40,Condition(function Trig_Select_Ranger_Conditions))
call TriggerAddAction(udg_trigger40,function Trig_Select_Ranger_Actions)
set udg_trigger41=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(udg_trigger41,70.00,udg_unit32)
call TriggerAddCondition(udg_trigger41,Condition(function Trig_Select_ArderialMagi_Conditions))
call TriggerAddAction(udg_trigger41,function Trig_Select_ArderialMagi_Actions)
set udg_trigger42=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(udg_trigger42,70.00,udg_unit30)
call TriggerAddCondition(udg_trigger42,Condition(function Trig_Select_CaldMagi_Conditions))
call TriggerAddAction(udg_trigger42,function Trig_Select_CaldMagi_Actions)
set udg_trigger43=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(udg_trigger43,70.00,udg_unit22)
call TriggerAddCondition(udg_trigger43,Condition(function Trig_Select_Tempest_Conditions))
call TriggerAddAction(udg_trigger43,function Trig_Select_Tempest_Actions)
set udg_trigger44=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(udg_trigger44,70.00,udg_unit33)
call TriggerAddCondition(udg_trigger44,Condition(function Trig_Select_BadMan_Conditions))
call TriggerAddAction(udg_trigger44,function Trig_Select_BadMan_Actions)
set udg_trigger45=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(udg_trigger45,70.00,udg_unit28)
call TriggerAddCondition(udg_trigger45,Condition(function Trig_Select_Enforcer_Conditions))
call TriggerAddAction(udg_trigger45,function Trig_Select_Enforcer_Actions)
set udg_trigger46=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(udg_trigger46,70.00,udg_unit29)
call TriggerAddCondition(udg_trigger46,Condition(function Trig_Select_ShadowMagi_Conditions))
call TriggerAddAction(udg_trigger46,function Trig_Select_ShadowMagi_Actions)
set udg_trigger47=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger47,Player(0),"!repick",true)
call TriggerRegisterPlayerChatEvent(udg_trigger47,Player(1),"!repick",true)
call TriggerRegisterPlayerChatEvent(udg_trigger47,Player(2),"!repick",true)
call TriggerRegisterPlayerChatEvent(udg_trigger47,Player(3),"!repick",true)
call TriggerRegisterPlayerChatEvent(udg_trigger47,Player(4),"!repick",true)
call TriggerRegisterPlayerChatEvent(udg_trigger47,Player(5),"!repick",true)
call TriggerRegisterPlayerChatEvent(udg_trigger47,Player(6),"!repick",true)
call TriggerRegisterPlayerChatEvent(udg_trigger47,Player(7),"!repick",true)
call TriggerAddAction(udg_trigger47,function Trig_Select_Repick_Actions)
set udg_trigger48=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(udg_trigger48,70.00,udg_unit46)
call TriggerAddCondition(udg_trigger48,Condition(function Trig_Select_Random_Conditions))
call TriggerAddAction(udg_trigger48,function Trig_Select_Random_Actions)
set udg_trigger49=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger49,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger49,Condition(function Trig_StaffApocalypse_Conditions))
call TriggerAddAction(udg_trigger49,function Trig_StaffApocalypse_Actions)
set udg_trigger50=CreateTrigger()
call DisableTrigger(udg_trigger50)
call TriggerRegisterAnyUnitEventBJ(udg_trigger50,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger50,Condition(function Trig_Incendiary_Conditions))
call TriggerAddAction(udg_trigger50,function Trig_Incendiary_Actions)
set udg_trigger51=CreateTrigger()
call DisableTrigger(udg_trigger51)
call TriggerRegisterAnyUnitEventBJ(udg_trigger51,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger51,Condition(function Trig_ThemalRegulator_Conditions))
call TriggerAddAction(udg_trigger51,function Trig_ThemalRegulator_Actions)
set udg_trigger52=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger52,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger52,Condition(function Trig_PhysicalSupremacy_Conditions))
call TriggerAddAction(udg_trigger52,function Trig_PhysicalSupremacy_Actions)
set udg_trigger53=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger53,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger53,Condition(function Trig_NetherTouch_Conditions))
call TriggerAddAction(udg_trigger53,function Trig_NetherTouch_Actions)
set udg_trigger54=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger54,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddAction(udg_trigger54,function Trig_BuyHammer_Actions)
set udg_trigger55=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger55,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddAction(udg_trigger55,function Trig_KingsShield_Actions)
set udg_trigger56=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger56,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddAction(udg_trigger56,function Trig_LightHammer_Actions)
set udg_trigger57=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger57,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddAction(udg_trigger57,function Trig_BuyHand_Actions)
set udg_trigger58=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trigger58,Player(0),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger58,Player(1),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger58,Player(2),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger58,Player(3),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger58,Player(4),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger58,Player(5),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger58,Player(6),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger58,Player(7),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger58,Player(8),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger58,Player(9),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger58,Player(10),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger58,Player(11),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger58,Condition(function Trig_SteelNimshaEffect_Conditions))
call TriggerAddAction(udg_trigger58,function Trig_SteelNimshaEffect_Actions)
set udg_trigger59=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trigger59,Player(0),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger59,Player(1),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger59,Player(2),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger59,Player(3),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger59,Player(4),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger59,Player(5),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger59,Player(6),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger59,Player(7),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger59,Player(8),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger59,Player(9),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger59,Player(10),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger59,Player(11),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger59,Condition(function Trig_AcidNimshaEffect_Conditions))
call TriggerAddAction(udg_trigger59,function Trig_AcidNimshaEffect_Actions)
set udg_trigger60=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trigger60,Player(0),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger60,Player(1),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger60,Player(2),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger60,Player(3),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger60,Player(4),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger60,Player(5),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger60,Player(6),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger60,Player(7),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger60,Player(8),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger60,Player(9),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger60,Player(10),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger60,Player(11),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger60,Condition(function Trig_Destruction_Conditions))
call TriggerAddAction(udg_trigger60,function Trig_Destruction_Actions)
set udg_trigger61=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger61,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddAction(udg_trigger61,function Trig_BuyElvenSlippers_Actions)
set udg_trigger62=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger62,udg_rect01)
call TriggerAddCondition(udg_trigger62,Condition(function Trig_KillBlink_Conditions))
call TriggerAddAction(udg_trigger62,function Trig_KillBlink_Actions)
set udg_trigger63=CreateTrigger()
call TriggerAddCondition(udg_trigger63,Condition(function Trig_RecipeSFX_Conditions))
call TriggerAddAction(udg_trigger63,function Trig_RecipeSFX_Actions)
set udg_trigger64=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger64,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddAction(udg_trigger64,function Trig_BuyLongBow_Actions)
set udg_trigger65=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger65,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddAction(udg_trigger65,function Trig_BuyEternity_Actions)
set udg_trigger66=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger66,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddAction(udg_trigger66,function Trig_BuyGlowing_Actions)
set udg_trigger67=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger67,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddAction(udg_trigger67,function Trig_BuyTrueBlade_Actions)
set udg_trigger68=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger68,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger68,Condition(function Trig_HeroDeath_Conditions))
call TriggerAddAction(udg_trigger68,function Trig_HeroDeath_Actions)
set udg_trigger69=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger69,udg_rect06)
call TriggerAddCondition(udg_trigger69,Condition(function Trig_TeleportLeft1_Conditions))
call TriggerAddAction(udg_trigger69,function Trig_TeleportLeft1_Actions)
set udg_trigger70=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger70,udg_rect07)
call TriggerAddCondition(udg_trigger70,Condition(function Trig_TeleportLeft1a_Conditions))
call TriggerAddAction(udg_trigger70,function Trig_TeleportLeft1a_Actions)
set udg_trigger71=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger71,udg_rect08)
call TriggerAddCondition(udg_trigger71,Condition(function Trig_TeleportLeft2_Conditions))
call TriggerAddAction(udg_trigger71,function Trig_TeleportLeft2_Actions)
set udg_trigger72=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger72,udg_rect09)
call TriggerAddCondition(udg_trigger72,Condition(function Trig_TeleportLeft2a_Conditions))
call TriggerAddAction(udg_trigger72,function Trig_TeleportLeft2a_Actions)
set udg_trigger73=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger73,udg_rect10)
call TriggerAddCondition(udg_trigger73,Condition(function Trig_TeleportRight1_Conditions))
call TriggerAddAction(udg_trigger73,function Trig_TeleportRight1_Actions)
set udg_trigger74=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger74,udg_rect11)
call TriggerAddCondition(udg_trigger74,Condition(function Trig_TeleportRight1a_Conditions))
call TriggerAddAction(udg_trigger74,function Trig_TeleportRight1a_Actions)
set udg_trigger75=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger75,udg_rect12)
call TriggerAddCondition(udg_trigger75,Condition(function Trig_TeleportRight2_Conditions))
call TriggerAddAction(udg_trigger75,function Trig_TeleportRight2_Actions)
set udg_trigger76=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger76,udg_rect13)
call TriggerAddCondition(udg_trigger76,Condition(function Trig_TeleportRight2a_Conditions))
call TriggerAddAction(udg_trigger76,function Trig_TeleportRight2a_Actions)
set udg_trigger77=CreateTrigger()
call DisableTrigger(udg_trigger77)
call TriggerAddAction(udg_trigger77,function Trig_Waves_Actions)
set udg_trigger78=CreateTrigger()
call DisableTrigger(udg_trigger78)
call TriggerAddCondition(udg_trigger78,Condition(function Trig_GameOver_Conditions))
call TriggerAddAction(udg_trigger78,function Trig_GameOver_Actions)
set udg_trigger79=CreateTrigger()
call DisableTrigger(udg_trigger79)
call TriggerAddCondition(udg_trigger79,Condition(function Trig_ClogCheckLeft_Conditions))
call TriggerAddAction(udg_trigger79,function Trig_ClogCheckLeft_Actions)
set udg_trigger80=CreateTrigger()
call DisableTrigger(udg_trigger80)
call TriggerAddCondition(udg_trigger80,Condition(function Trig_ClogCheckRight_Conditions))
call TriggerAddAction(udg_trigger80,function Trig_ClogCheckRight_Actions)
set udg_trigger81=CreateTrigger()
call DisableTrigger(udg_trigger81)
call TriggerAddCondition(udg_trigger81,Condition(function Trig_ClogKillTeam1Left_Conditions))
call TriggerAddAction(udg_trigger81,function Trig_ClogKillTeam1Left_Actions)
set udg_trigger82=CreateTrigger()
call DisableTrigger(udg_trigger82)
call TriggerAddCondition(udg_trigger82,Condition(function Trig_ClogKillTeam1Right_Conditions))
call TriggerAddAction(udg_trigger82,function Trig_ClogKillTeam1Right_Actions)
set udg_trigger83=CreateTrigger()
call DisableTrigger(udg_trigger83)
call TriggerAddCondition(udg_trigger83,Condition(function Trig_ClogKillTeam2Left_Conditions))
call TriggerAddAction(udg_trigger83,function Trig_ClogKillTeam2Left_Actions)
set udg_trigger84=CreateTrigger()
call DisableTrigger(udg_trigger84)
call TriggerAddCondition(udg_trigger84,Condition(function Trig_ClogKillTeam2Right_Conditions))
call TriggerAddAction(udg_trigger84,function Trig_ClogKillTeam2Right_Actions)
set udg_trigger85=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger85,udg_rect14)
call TriggerAddCondition(udg_trigger85,Condition(function Trig_MovementLeftTeam1_Conditions))
call TriggerAddAction(udg_trigger85,function Trig_MovementLeftTeam1_Actions)
set udg_trigger86=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trigger86,Player(8),EVENT_PLAYER_UNIT_ISSUED_ORDER)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger86,Player(9),EVENT_PLAYER_UNIT_ISSUED_ORDER)
call TriggerAddAction(udg_trigger86,function Trig_MoveInsA_Actions)
set udg_trigger87=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trigger87,Player(10),EVENT_PLAYER_UNIT_ISSUED_ORDER)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger87,Player(11),EVENT_PLAYER_UNIT_ISSUED_ORDER)
call TriggerAddAction(udg_trigger87,function Trig_MoveIns2A_Actions)
set udg_trigger88=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger88,udg_rect15)
call TriggerAddCondition(udg_trigger88,Condition(function Trig_MovementRightTeam1_Conditions))
call TriggerAddAction(udg_trigger88,function Trig_MovementRightTeam1_Actions)
set udg_trigger89=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger89,udg_rect16)
call TriggerAddCondition(udg_trigger89,Condition(function Trig_MovementLeftTeam2_Conditions))
call TriggerAddAction(udg_trigger89,function Trig_MovementLeftTeam2_Actions)
set udg_trigger90=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger90,udg_rect17)
call TriggerAddCondition(udg_trigger90,Condition(function Trig_MovementRightTeam2_Conditions))
call TriggerAddAction(udg_trigger90,function Trig_MovementRightTeam2_Actions)
set udg_trigger91=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger91,udg_rect05)
call TriggerAddCondition(udg_trigger91,Condition(function Trig_LifeCounter_Conditions))
call TriggerAddAction(udg_trigger91,function Trig_LifeCounter_Actions)
set udg_trigger92=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger92,udg_rect04)
call TriggerAddCondition(udg_trigger92,Condition(function Trig_LifeCounter2_Conditions))
call TriggerAddAction(udg_trigger92,function Trig_LifeCounter2_Actions)
set udg_trigger93=CreateTrigger()
call TriggerRegisterPlayerEventLeave(udg_trigger93,Player(4))
call TriggerRegisterPlayerEventLeave(udg_trigger93,Player(5))
call TriggerRegisterPlayerEventLeave(udg_trigger93,Player(6))
call TriggerRegisterPlayerEventLeave(udg_trigger93,Player(7))
call TriggerAddAction(udg_trigger93,function Trig_HeroDeparture_Actions)
set udg_trigger94=CreateTrigger()
call TriggerRegisterPlayerEventLeave(udg_trigger94,Player(0))
call TriggerRegisterPlayerEventLeave(udg_trigger94,Player(1))
call TriggerRegisterPlayerEventLeave(udg_trigger94,Player(2))
call TriggerRegisterPlayerEventLeave(udg_trigger94,Player(3))
call TriggerAddAction(udg_trigger94,function Trig_HeroDeparture2_Actions)
set udg_trigger95=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trigger95,Player(8),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddAction(udg_trigger95,function Trig_UnitDeath_Actions)
set udg_trigger96=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trigger96,Player(9),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddAction(udg_trigger96,function Trig_UnitDeath2_Actions)
set udg_trigger97=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trigger97,Player(10),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddAction(udg_trigger97,function Trig_UnitDeath3_Actions)
set udg_trigger98=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trigger98,Player(11),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddAction(udg_trigger98,function Trig_UnitDeath4_Actions)
set udg_trigger99=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trigger99,Player(8),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger99,Player(9),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger99,Player(10),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger99,Player(11),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger99,Condition(function Trig_UnitDeath5_Conditions))
call TriggerAddAction(udg_trigger99,function Trig_UnitDeath5_Actions)
set udg_trigger100=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(udg_trigger100,148.00,udg_unit26)
call TriggerAddCondition(udg_trigger100,Condition(function Trig_FeedbackDeth_Conditions))
call TriggerAddAction(udg_trigger100,function Trig_FeedbackDeth_Actions)
set udg_trigger101=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(udg_trigger101,148.00,udg_unit27)
call TriggerAddCondition(udg_trigger101,Condition(function Trig_FeedbackDeth2_Conditions))
call TriggerAddAction(udg_trigger101,function Trig_FeedbackDeth2_Actions)
set udg_trigger102=CreateTrigger()
call DisableTrigger(udg_trigger102)
call TriggerRegisterAnyUnitEventBJ(udg_trigger102,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger102,Condition(function Trig_StanceActivate_Conditions))
call TriggerAddAction(udg_trigger102,function Trig_StanceActivate_Actions)
set udg_trigger103=CreateTrigger()
call DisableTrigger(udg_trigger103)
call TriggerRegisterAnyUnitEventBJ(udg_trigger103,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger103,Condition(function Trig_LevelOffDef_Conditions))
call TriggerAddAction(udg_trigger103,function Trig_LevelOffDef_Actions)
set udg_trigger104=CreateTrigger()
call DisableTrigger(udg_trigger104)
call TriggerRegisterAnyUnitEventBJ(udg_trigger104,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger104,Condition(function Trig_OffDef_Conditions))
call TriggerAddAction(udg_trigger104,function Trig_OffDef_Actions)
set udg_trigger105=CreateTrigger()
call DisableTrigger(udg_trigger105)
call TriggerRegisterAnyUnitEventBJ(udg_trigger105,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger105,Condition(function Trig_DefOff_Conditions))
call TriggerAddAction(udg_trigger105,function Trig_DefOff_Actions)
set udg_trigger106=CreateTrigger()
call DisableTrigger(udg_trigger106)
call TriggerRegisterAnyUnitEventBJ(udg_trigger106,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger106,Condition(function Trig_BladeofWrath_Conditions))
call TriggerAddAction(udg_trigger106,function Trig_BladeofWrath_Actions)
set udg_trigger107=CreateTrigger()
call DisableTrigger(udg_trigger107)
call TriggerRegisterAnyUnitEventBJ(udg_trigger107,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger107,Condition(function Trig_BladeofWrath2_Conditions))
call TriggerAddAction(udg_trigger107,function Trig_BladeofWrath2_Actions)
set udg_trigger108=CreateTrigger()
call DisableTrigger(udg_trigger108)
call TriggerRegisterAnyUnitEventBJ(udg_trigger108,EVENT_PLAYER_UNIT_SPELL_FINISH)
call TriggerAddCondition(udg_trigger108,Condition(function Trig_Temperance_Conditions))
call TriggerAddAction(udg_trigger108,function Trig_Temperance_Actions)
set udg_trigger109=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger109,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger109,Condition(function Trig_Temp2_Conditions))
call TriggerAddAction(udg_trigger109,function Trig_Temp2_Actions)
set udg_trigger110=CreateTrigger()
call DisableTrigger(udg_trigger110)
call TriggerRegisterAnyUnitEventBJ(udg_trigger110,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger110,Condition(function Trig_ShadowBond_Conditions))
call TriggerAddAction(udg_trigger110,function Trig_ShadowBond_Actions)
set udg_trigger111=CreateTrigger()
call DisableTrigger(udg_trigger111)
call TriggerRegisterAnyUnitEventBJ(udg_trigger111,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger111,Condition(function Trig_ShadowHealFix_Conditions))
call TriggerAddAction(udg_trigger111,function Trig_ShadowHealFix_Actions)
set udg_trigger112=CreateTrigger()
call DisableTrigger(udg_trigger112)
call TriggerRegisterAnyUnitEventBJ(udg_trigger112,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger112,Condition(function Trig_ShadowHealSFX_Conditions))
call TriggerAddAction(udg_trigger112,function Trig_ShadowHealSFX_Actions)
set udg_trigger113=CreateTrigger()
call DisableTrigger(udg_trigger113)
call TriggerRegisterAnyUnitEventBJ(udg_trigger113,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger113,Condition(function Trig_Hellfire_Conditions))
call TriggerAddAction(udg_trigger113,function Trig_Hellfire_Actions)
set udg_trigger114=CreateTrigger()
call DisableTrigger(udg_trigger114)
call TriggerRegisterAnyUnitEventBJ(udg_trigger114,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger114,Condition(function Trig_AesrelaEverild_Conditions))
call TriggerAddAction(udg_trigger114,function Trig_AesrelaEverild_Actions)
set udg_trigger115=CreateTrigger()
call DisableTrigger(udg_trigger115)
call TriggerRegisterAnyUnitEventBJ(udg_trigger115,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger115,Condition(function Trig_ShroudofTerror_Conditions))
call TriggerAddAction(udg_trigger115,function Trig_ShroudofTerror_Actions)
set udg_trigger116=CreateTrigger()
call DisableTrigger(udg_trigger116)
call TriggerRegisterAnyUnitEventBJ(udg_trigger116,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger116,Condition(function Trig_Maelstrom_Conditions))
call TriggerAddAction(udg_trigger116,function Trig_Maelstrom_Actions)
set udg_trigger117=CreateTrigger()
call DisableTrigger(udg_trigger117)
call TriggerRegisterAnyUnitEventBJ(udg_trigger117,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger117,Condition(function Trig_ElectricMatrix_Conditions))
call TriggerAddAction(udg_trigger117,function Trig_ElectricMatrix_Actions)
set udg_trigger118=CreateTrigger()
call DisableTrigger(udg_trigger118)
call TriggerAddAction(udg_trigger118,function Trig_Elec1_Actions)
set udg_trigger119=CreateTrigger()
call DisableTrigger(udg_trigger119)
call TriggerAddAction(udg_trigger119,function Trig_Elec2_Actions)
set udg_trigger120=CreateTrigger()
call DisableTrigger(udg_trigger120)
call TriggerAddAction(udg_trigger120,function Trig_Elec3_Actions)
set udg_trigger121=CreateTrigger()
call DisableTrigger(udg_trigger121)
call TriggerAddAction(udg_trigger121,function Trig_Elec4_Actions)
set udg_trigger122=CreateTrigger()
call DisableTrigger(udg_trigger122)
call TriggerRegisterAnyUnitEventBJ(udg_trigger122,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger122,Condition(function Trig_TargetedMagic_Conditions))
call TriggerAddAction(udg_trigger122,function Trig_TargetedMagic_Actions)
set udg_trigger123=CreateTrigger()
call DisableTrigger(udg_trigger123)
call TriggerRegisterAnyUnitEventBJ(udg_trigger123,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger123,Condition(function Trig_Explosive_Conditions))
call TriggerAddAction(udg_trigger123,function Trig_Explosive_Actions)
set udg_trigger124=CreateTrigger()
call DisableTrigger(udg_trigger124)
call TriggerRegisterAnyUnitEventBJ(udg_trigger124,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger124,Condition(function Trig_Moongate_Conditions))
call TriggerAddAction(udg_trigger124,function Trig_Moongate_Actions)
set udg_trigger125=CreateTrigger()
call DisableTrigger(udg_trigger125)
call TriggerRegisterAnyUnitEventBJ(udg_trigger125,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger125,Condition(function Trig_CollectAssets_Conditions))
call TriggerAddAction(udg_trigger125,function Trig_CollectAssets_Actions)
set udg_trigger126=CreateTrigger()
call DisableTrigger(udg_trigger126)
call TriggerRegisterAnyUnitEventBJ(udg_trigger126,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger126,Condition(function Trig_DetonateStarlightSphere_Conditions))
call TriggerAddAction(udg_trigger126,function Trig_DetonateStarlightSphere_Actions)
set udg_trigger127=CreateTrigger()
call DisableTrigger(udg_trigger127)
call TriggerRegisterAnyUnitEventBJ(udg_trigger127,EVENT_PLAYER_UNIT_SPELL_FINISH)
call TriggerAddCondition(udg_trigger127,Condition(function Trig_EverildsRage_Conditions))
call TriggerAddAction(udg_trigger127,function Trig_EverildsRage_Actions)
set udg_trigger128=CreateTrigger()
call DisableTrigger(udg_trigger128)
call TriggerRegisterAnyUnitEventBJ(udg_trigger128,EVENT_PLAYER_UNIT_SUMMON)
call TriggerAddCondition(udg_trigger128,Condition(function Trig_FistofStone_Conditions))
call TriggerAddAction(udg_trigger128,function Trig_FistofStone_Actions)
set udg_trigger129=CreateTrigger()
call DisableTrigger(udg_trigger129)
call TriggerRegisterAnyUnitEventBJ(udg_trigger129,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger129,Condition(function Trig_SleightofHand_Conditions))
call TriggerAddAction(udg_trigger129,function Trig_SleightofHand_Actions)
set udg_trigger130=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger130,EVENT_PLAYER_UNIT_SUMMON)
call TriggerAddCondition(udg_trigger130,Condition(function Trig_MoonbeamTimer_Conditions))
call TriggerAddAction(udg_trigger130,function Trig_MoonbeamTimer_Actions)
set udg_trigger131=CreateTrigger()
call DisableTrigger(udg_trigger131)
call TriggerRegisterAnyUnitEventBJ(udg_trigger131,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger131,Condition(function Trig_PowerofNight_Conditions))
call TriggerAddAction(udg_trigger131,function Trig_PowerofNight_Actions)
set udg_trigger132=CreateTrigger()
call DisableTrigger(udg_trigger132)
call TriggerRegisterAnyUnitEventBJ(udg_trigger132,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger132,Condition(function Trig_MuseInspiration_Conditions))
call TriggerAddAction(udg_trigger132,function Trig_MuseInspiration_Actions)
set udg_trigger133=CreateTrigger()
call DisableTrigger(udg_trigger133)
call TriggerRegisterAnyUnitEventBJ(udg_trigger133,EVENT_PLAYER_UNIT_SUMMON)
call TriggerAddCondition(udg_trigger133,Condition(function Trig_SummonXyx_Conditions))
call TriggerAddAction(udg_trigger133,function Trig_SummonXyx_Actions)
set udg_trigger134=CreateTrigger()
call DisableTrigger(udg_trigger134)
call TriggerRegisterAnyUnitEventBJ(udg_trigger134,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger134,Condition(function Trig_ThunderStorm_Conditions))
call TriggerAddAction(udg_trigger134,function Trig_ThunderStorm_Actions)
set udg_trigger135=CreateTrigger()
call DisableTrigger(udg_trigger135)
call TriggerRegisterAnyUnitEventBJ(udg_trigger135,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger135,Condition(function Trig_Scroll_of_Fire_Conditions))
call TriggerAddAction(udg_trigger135,function Trig_Scroll_of_Fire_Actions)
set udg_trigger136=CreateTrigger()
call DisableTrigger(udg_trigger136)
call TriggerRegisterAnyUnitEventBJ(udg_trigger136,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger136,Condition(function Trig_Incinerate_Conditions))
call TriggerAddAction(udg_trigger136,function Trig_Incinerate_Actions)
set udg_trigger137=CreateTrigger()
call DisableTrigger(udg_trigger137)
call TriggerRegisterAnyUnitEventBJ(udg_trigger137,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger137,Condition(function Trig_Burn_Conditions))
call TriggerAddAction(udg_trigger137,function Trig_Burn_Actions)
set udg_trigger138=CreateTrigger()
call DisableTrigger(udg_trigger138)
call TriggerRegisterAnyUnitEventBJ(udg_trigger138,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger138,Condition(function Trig_MindShout_Conditions))
call TriggerAddAction(udg_trigger138,function Trig_MindShout_Actions)
set udg_trigger139=CreateTrigger()
call DisableTrigger(udg_trigger139)
call TriggerRegisterAnyUnitEventBJ(udg_trigger139,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger139,Condition(function Trig_Dazzle_Conditions))
call TriggerAddAction(udg_trigger139,function Trig_Dazzle_Actions)
set udg_trigger140=CreateTrigger()
call DisableTrigger(udg_trigger140)
call TriggerRegisterAnyUnitEventBJ(udg_trigger140,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger140,Condition(function Trig_FallenOne_Conditions))
call TriggerAddAction(udg_trigger140,function Trig_FallenOne_Actions)
set udg_trigger141=CreateTrigger()
call DisableTrigger(udg_trigger141)
call TriggerRegisterAnyUnitEventBJ(udg_trigger141,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger141,Condition(function Trig_CataclysmicStrike_Conditions))
call TriggerAddAction(udg_trigger141,function Trig_CataclysmicStrike_Actions)
set udg_trigger142=CreateTrigger()
call DisableTrigger(udg_trigger142)
call TriggerRegisterAnyUnitEventBJ(udg_trigger142,EVENT_PLAYER_UNIT_SUMMON)
call TriggerAddCondition(udg_trigger142,Condition(function Trig_IceFortress_Conditions))
call TriggerAddAction(udg_trigger142,function Trig_IceFortress_Actions)
set udg_trigger143=CreateTrigger()
call DisableTrigger(udg_trigger143)
call TriggerRegisterAnyUnitEventBJ(udg_trigger143,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger143,Condition(function Trig_CambrinthCharge_Conditions))
call TriggerAddAction(udg_trigger143,function Trig_CambrinthCharge_Actions)
set udg_trigger144=CreateTrigger()
call DisableTrigger(udg_trigger144)
call TriggerRegisterAnyUnitEventBJ(udg_trigger144,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger144,Condition(function Trig_CambrinthStrike_Conditions))
call TriggerAddAction(udg_trigger144,function Trig_CambrinthStrike_Actions)
set udg_trigger145=CreateTrigger()
call DisableTrigger(udg_trigger145)
call TriggerRegisterAnyUnitEventBJ(udg_trigger145,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger145,Condition(function Trig_Forge_Conditions))
call TriggerAddAction(udg_trigger145,function Trig_Forge_Actions)
set udg_trigger146=CreateTrigger()
call DisableTrigger(udg_trigger146)
call TriggerRegisterAnyUnitEventBJ(udg_trigger146,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger146,Condition(function Trig_ThunderMaul_Conditions))
call TriggerAddAction(udg_trigger146,function Trig_ThunderMaul_Actions)
set udg_trigger147=CreateTrigger()
call DisableTrigger(udg_trigger147)
call TriggerRegisterAnyUnitEventBJ(udg_trigger147,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger147,Condition(function Trig_CloakofDamaris_Conditions))
call TriggerAddAction(udg_trigger147,function Trig_CloakofDamaris_Actions)
set udg_trigger148=CreateTrigger()
call DisableTrigger(udg_trigger148)
call TriggerRegisterAnyUnitEventBJ(udg_trigger148,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger148,Condition(function Trig_BladesofVenom_Conditions))
call TriggerAddAction(udg_trigger148,function Trig_BladesofVenom_Actions)
set udg_trigger149=CreateTrigger()
call DisableTrigger(udg_trigger149)
call TriggerRegisterAnyUnitEventBJ(udg_trigger149,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger149,Condition(function Trig_UnnervingSymphony_Conditions))
call TriggerAddAction(udg_trigger149,function Trig_UnnervingSymphony_Actions)
set udg_trigger150=CreateTrigger()
call DisableTrigger(udg_trigger150)
call TriggerRegisterAnyUnitEventBJ(udg_trigger150,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger150,Condition(function Trig_Tingle_Conditions))
call TriggerAddAction(udg_trigger150,function Trig_Tingle_Actions)
set udg_trigger151=CreateTrigger()
call DisableTrigger(udg_trigger151)
call TriggerRegisterAnyUnitEventBJ(udg_trigger151,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger151,Condition(function Trig_Prediction_Conditions))
call TriggerAddAction(udg_trigger151,function Trig_Prediction_Actions)
set udg_trigger152=CreateTrigger()
call DisableTrigger(udg_trigger152)
call TriggerRegisterAnyUnitEventBJ(udg_trigger152,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger152,Condition(function Trig_MalevolentCorruption_Conditions))
call TriggerAddAction(udg_trigger152,function Trig_MalevolentCorruption_Actions)
set udg_trigger153=CreateTrigger()
call DisableTrigger(udg_trigger153)
call TriggerRegisterAnyUnitEventBJ(udg_trigger153,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger153,Condition(function Trig_DragonDance_Conditions))
call TriggerAddAction(udg_trigger153,function Trig_DragonDance_Actions)
set udg_trigger154=CreateTrigger()
call DisableTrigger(udg_trigger154)
call TriggerRegisterAnyUnitEventBJ(udg_trigger154,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger154,Condition(function Trig_SoulOverride_Conditions))
call TriggerAddAction(udg_trigger154,function Trig_SoulOverride_Actions)
set udg_trigger155=CreateTrigger()
call DisableTrigger(udg_trigger155)
call TriggerRegisterAnyUnitEventBJ(udg_trigger155,EVENT_PLAYER_UNIT_SPELL_FINISH)
call TriggerAddCondition(udg_trigger155,Condition(function Trig_Alchemy_Conditions))
call TriggerAddAction(udg_trigger155,function Trig_Alchemy_Actions)
set udg_trigger156=CreateTrigger()
call DisableTrigger(udg_trigger156)
call TriggerRegisterAnyUnitEventBJ(udg_trigger156,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger156,Condition(function Trig_SiphonEnergy_Conditions))
call TriggerAddAction(udg_trigger156,function Trig_SiphonEnergy_Actions)
set udg_trigger157=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger157,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger157,Condition(function Trig_NetherFixMaybe_Conditions))
call TriggerAddAction(udg_trigger157,function Trig_NetherFixMaybe_Actions)
set udg_trigger158=CreateTrigger()
call DisableTrigger(udg_trigger158)
call TriggerRegisterAnyUnitEventBJ(udg_trigger158,EVENT_PLAYER_UNIT_SUMMON)
call TriggerAddCondition(udg_trigger158,Condition(function Trig_Zephyr_Conditions))
call TriggerAddAction(udg_trigger158,function Trig_Zephyr_Actions)
set udg_trigger159=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger159,EVENT_PLAYER_UNIT_SUMMON)
call TriggerAddCondition(udg_trigger159,Condition(function Trig_Jomay_Conditions))
call TriggerAddAction(udg_trigger159,function Trig_Jomay_Actions)
set udg_trigger160=CreateTrigger()
call DisableTrigger(udg_trigger160)
call TriggerRegisterAnyUnitEventBJ(udg_trigger160,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger160,Condition(function Trig_Grow_Conditions))
call TriggerAddAction(udg_trigger160,function Trig_Grow_Actions)
set udg_trigger161=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger161,udg_rect18)
call TriggerRegisterEnterRectSimple(udg_trigger161,udg_rect20)
call TriggerRegisterEnterRectSimple(udg_trigger161,udg_rect19)
call TriggerRegisterEnterRectSimple(udg_trigger161,udg_rect21)
call TriggerRegisterEnterRectSimple(udg_trigger161,udg_rect22)
call TriggerRegisterEnterRectSimple(udg_trigger161,udg_rect23)
call TriggerRegisterEnterRectSimple(udg_trigger161,udg_rect24)
call TriggerAddCondition(udg_trigger161,Condition(function Trig_TeamLeft_Conditions))
call TriggerAddAction(udg_trigger161,function Trig_TeamLeft_Actions)
set udg_trigger162=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger162,udg_rect25)
call TriggerRegisterEnterRectSimple(udg_trigger162,udg_rect27)
call TriggerRegisterEnterRectSimple(udg_trigger162,udg_rect26)
call TriggerRegisterEnterRectSimple(udg_trigger162,udg_rect28)
call TriggerRegisterEnterRectSimple(udg_trigger162,udg_rect29)
call TriggerRegisterEnterRectSimple(udg_trigger162,udg_rect30)
call TriggerRegisterEnterRectSimple(udg_trigger162,udg_rect31)
call TriggerAddCondition(udg_trigger162,Condition(function Trig_TeamRight_Conditions))
call TriggerAddAction(udg_trigger162,function Trig_TeamRight_Actions)
set udg_trigger163=CreateTrigger()
call DisableTrigger(udg_trigger163)
call TriggerRegisterUnitInRangeSimple(udg_trigger163,600.00,udg_unit42)
call TriggerRegisterUnitInRangeSimple(udg_trigger163,600.00,udg_unit43)
call TriggerRegisterUnitInRangeSimple(udg_trigger163,600.00,udg_unit44)
call TriggerRegisterUnitInRangeSimple(udg_trigger163,600.00,udg_unit45)
call TriggerAddCondition(udg_trigger163,Condition(function Trig_KillHero_Conditions))
call TriggerAddAction(udg_trigger163,function Trig_KillHero_Actions)
set udg_trigger164=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trigger164,30.00)
call TriggerAddAction(udg_trigger164,function Trig_TurnOnKill_Actions)
set udg_trigger165=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger165,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger165,Condition(function Trig_WhorlDisplacement_Conditions))
call TriggerAddAction(udg_trigger165,function Trig_WhorlDisplacement_Actions)
set udg_trigger166=CreateTrigger()
call TriggerAddCondition(udg_trigger166,Condition(function Trig_GlythtidesGift_Conditions))
call TriggerAddAction(udg_trigger166,function Trig_GlythtidesGift_Actions)
set udg_trigger167=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger167,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger167,Condition(function Trig_KalestraumsDarkrift_Conditions))
call TriggerAddAction(udg_trigger167,function Trig_KalestraumsDarkrift_Actions)
set udg_trigger168=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger168,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger168,Condition(function Trig_Kalestraum3840_Conditions))
call TriggerAddAction(udg_trigger168,function Trig_Kalestraum3840_Actions)
set udg_trigger169=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger169,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger169,Condition(function Trig_KalestraumSFX_Conditions))
call TriggerAddAction(udg_trigger169,function Trig_KalestraumSFX_Actions)
set udg_trigger170=CreateTrigger()
call TriggerAddAction(udg_trigger170,function Trig_KalestraumDelay_Actions)
set udg_trigger171=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger171,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger171,Condition(function Trig_RemoveSidhlot_Conditions))
call TriggerAddAction(udg_trigger171,function Trig_RemoveSidhlot_Actions)
set udg_trigger172=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger172,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger172,Condition(function Trig_RemoveArhat_Conditions))
call TriggerAddAction(udg_trigger172,function Trig_RemoveArhat_Actions)
set udg_trigger173=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger173,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger173,Condition(function Trig_RemoveHavroth_Conditions))
call TriggerAddAction(udg_trigger173,function Trig_RemoveHavroth_Actions)
set udg_trigger174=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger174,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger174,Condition(function Trig_RemoveUthmor_Conditions))
call TriggerAddAction(udg_trigger174,function Trig_RemoveUthmor_Actions)
set udg_trigger175=CreateTrigger()
call DisableTrigger(udg_trigger175)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger175,Player(0),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger175,Condition(function Trig_SiphonAuto1_Conditions))
call TriggerAddAction(udg_trigger175,function Trig_SiphonAuto1_Actions)
set udg_trigger176=CreateTrigger()
call DisableTrigger(udg_trigger176)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger176,Player(1),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger176,Condition(function Trig_SiphonAuto2_Conditions))
call TriggerAddAction(udg_trigger176,function Trig_SiphonAuto2_Actions)
set udg_trigger177=CreateTrigger()
call DisableTrigger(udg_trigger177)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger177,Player(2),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger177,Condition(function Trig_SiphonAuto3_Conditions))
call TriggerAddAction(udg_trigger177,function Trig_SiphonAuto3_Actions)
set udg_trigger178=CreateTrigger()
call DisableTrigger(udg_trigger178)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger178,Player(3),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger178,Condition(function Trig_SiphonAuto4_Conditions))
call TriggerAddAction(udg_trigger178,function Trig_SiphonAuto4_Actions)
set udg_trigger179=CreateTrigger()
call DisableTrigger(udg_trigger179)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger179,Player(4),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger179,Condition(function Trig_SiphonAuto5_Conditions))
call TriggerAddAction(udg_trigger179,function Trig_SiphonAuto5_Actions)
set udg_trigger180=CreateTrigger()
call DisableTrigger(udg_trigger180)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger180,Player(5),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger180,Condition(function Trig_SiphonAuto6_Conditions))
call TriggerAddAction(udg_trigger180,function Trig_SiphonAuto6_Actions)
set udg_trigger181=CreateTrigger()
call DisableTrigger(udg_trigger181)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger181,Player(6),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger181,Condition(function Trig_SiphonAuto7_Conditions))
call TriggerAddAction(udg_trigger181,function Trig_SiphonAuto7_Actions)
set udg_trigger182=CreateTrigger()
call DisableTrigger(udg_trigger182)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger182,Player(7),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger182,Condition(function Trig_SiphonAuto8_Conditions))
call TriggerAddAction(udg_trigger182,function Trig_SiphonAuto8_Actions)
set udg_trigger183=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger183,Player(0),"!siphonon",true)
call TriggerAddCondition(udg_trigger183,Condition(function Trig_AutoOn1_Conditions))
call TriggerAddAction(udg_trigger183,function Trig_AutoOn1_Actions)
set udg_trigger184=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger184,Player(1),"!siphonon",true)
call TriggerAddCondition(udg_trigger184,Condition(function Trig_AutoOn2_Conditions))
call TriggerAddAction(udg_trigger184,function Trig_AutoOn2_Actions)
set udg_trigger185=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger185,Player(2),"!siphonon",true)
call TriggerAddCondition(udg_trigger185,Condition(function Trig_AutoOn3_Conditions))
call TriggerAddAction(udg_trigger185,function Trig_AutoOn3_Actions)
set udg_trigger186=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger186,Player(3),"!siphonon",true)
call TriggerAddCondition(udg_trigger186,Condition(function Trig_AutoOn4_Conditions))
call TriggerAddAction(udg_trigger186,function Trig_AutoOn4_Actions)
set udg_trigger187=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger187,Player(4),"!siphonon",true)
call TriggerAddCondition(udg_trigger187,Condition(function Trig_AutoOn5_Conditions))
call TriggerAddAction(udg_trigger187,function Trig_AutoOn5_Actions)
set udg_trigger188=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger188,Player(5),"!siphonon",true)
call TriggerAddCondition(udg_trigger188,Condition(function Trig_AutoOn6_Conditions))
call TriggerAddAction(udg_trigger188,function Trig_AutoOn6_Actions)
set udg_trigger189=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger189,Player(6),"!siphonon",true)
call TriggerAddCondition(udg_trigger189,Condition(function Trig_AutoOn7_Conditions))
call TriggerAddAction(udg_trigger189,function Trig_AutoOn7_Actions)
set udg_trigger190=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger190,Player(7),"!siphonon",true)
call TriggerAddCondition(udg_trigger190,Condition(function Trig_AutoOn8_Conditions))
call TriggerAddAction(udg_trigger190,function Trig_AutoOn8_Actions)
set udg_trigger191=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger191,Player(0),"!siphonoff",true)
call TriggerAddCondition(udg_trigger191,Condition(function Trig_AutoOff1_Conditions))
call TriggerAddAction(udg_trigger191,function Trig_AutoOff1_Actions)
set udg_trigger192=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger192,Player(1),"!siphonoff",true)
call TriggerAddCondition(udg_trigger192,Condition(function Trig_AutoOff2_Conditions))
call TriggerAddAction(udg_trigger192,function Trig_AutoOff2_Actions)
set udg_trigger193=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger193,Player(2),"!siphonoff",true)
call TriggerAddCondition(udg_trigger193,Condition(function Trig_AutoOff3_Conditions))
call TriggerAddAction(udg_trigger193,function Trig_AutoOff3_Actions)
set udg_trigger194=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger194,Player(3),"!siphonoff",true)
call TriggerAddCondition(udg_trigger194,Condition(function Trig_AutoOff4_Conditions))
call TriggerAddAction(udg_trigger194,function Trig_AutoOff4_Actions)
set udg_trigger195=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger195,Player(4),"!siphonoff",true)
call TriggerAddCondition(udg_trigger195,Condition(function Trig_AutoOff5_Conditions))
call TriggerAddAction(udg_trigger195,function Trig_AutoOff5_Actions)
set udg_trigger196=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger196,Player(5),"!siphonoff",true)
call TriggerAddCondition(udg_trigger196,Condition(function Trig_AutoOff6_Conditions))
call TriggerAddAction(udg_trigger196,function Trig_AutoOff6_Actions)
set udg_trigger197=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger197,Player(6),"!siphonoff",true)
call TriggerAddCondition(udg_trigger197,Condition(function Trig_AutoOff7_Conditions))
call TriggerAddAction(udg_trigger197,function Trig_AutoOff7_Actions)
set udg_trigger198=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger198,Player(7),"!siphonoff",true)
call TriggerAddCondition(udg_trigger198,Condition(function Trig_AutoOff8_Conditions))
call TriggerAddAction(udg_trigger198,function Trig_AutoOff8_Actions)
call ConditionalTriggerExecute(udg_trigger01)
endfunction
//***************************************************************************
//*
//*Map Configuration
//*
//***************************************************************************
function InitTrig_init takes nothing returns nothing
call ExecuteFunc("main2")
endfunction