Name | Type | is_array | initial_value |
Angle | integer | Yes | |
BP | location | No | |
BusStatiion | unit | No | |
Camera | integer | No | |
Car | group | No | |
Casino | unit | No | |
CP | location | No | |
Dice | integer | No | |
Distribute | unit | No | |
Dome | unit | No | |
DP | location | No | |
EP | location | Yes | |
Group_Abandon | group | No | |
Group_Bus | group | No | |
Group_Commercial | group | No | |
Group_FiireStation | group | No | |
Group_Fiiretruck | group | No | |
Group_Flies | group | No | |
Group_Gangster | group | No | |
Group_Hospital | group | No | |
Group_Industrial | group | No | |
Group_Officer | group | No | |
Group_Park | group | No | |
Group_Police | group | No | |
Group_Residence | group | No | |
Group_Select | group | No | |
Group_Squaters | group | No | |
Group_Thief | group | No | |
Group_Unride | group | No | |
Group_Water | group | No | |
Group_Wind | group | No | |
GroupOffline | group | No | |
Increnator | unit | No | |
IP | location | No | |
King | string | Yes | |
Knowledge | integer | No | |
MeterTxt | string | Yes | |
Motorist | unitcode | Yes | |
Name | string | Yes | |
P | location | Yes | |
P1 | unit | No | |
P2 | unit | No | |
Point | location | No | |
PowerComsume | integer | No | |
PowerMax | integer | No | |
PowerMeter | leaderboard | No | |
PP | location | No | |
Prisoner | unit | No | |
QP | location | No | |
R | real | No | |
Request | unit | No | |
RP | location | No | |
Run_Time | integer | No | |
Sound | sound | No | |
SP | location | No | |
Target | unit | No | |
TaxCom | integer | No | |
TaxInd | integer | No | |
TaxRes | integer | No | |
Terrain | terraintype | No | |
Thiief | unit | No | |
Time | integer | No | |
TimeDate | leaderboard | No | |
TownHall | unit | No | |
TP | location | No | |
TxtCrimes | string | No | |
TxtPolution | string | No | |
TxtPower | string | No | |
TxtValue | string | No | |
TxtWater | string | No | |
UP | location | No | |
WaterGroup | group | No | |
XP | location | No |
function Trig_FX_Func003001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01E' )
endfunction
function Trig_FX_Func004001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01D' )
endfunction
function Trig_FX_Func005001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h017' )
endfunction
function Trig_FX_Func006001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h022' )
endfunction
function Trig_FX_Func007001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h00N' )
endfunction
function Trig_FX_Func008001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h00C' )
endfunction
function Trig_FX_Func009001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h006' )
endfunction
function Trig_FX_Func010001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h00O' )
endfunction
function Trig_FX_Func011001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h005' )
endfunction
function Trig_FX_Func012001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h018' )
endfunction
function Trig_FX_Func013001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h00Q' )
endfunction
function Trig_FX_Func014001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h00P' )
endfunction
function Trig_FX_Func015001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01U' )
endfunction
function Trig_FX_Func016001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01V' )
endfunction
function Trig_FX_Func018001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01X' )
endfunction
function Trig_FX_Func019001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01W' )
endfunction
function Trig_FX_Func020001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h019' )
endfunction
function Trig_FX_Func021001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h00U' )
endfunction
function Trig_FX_Func022001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01B' )
endfunction
function Trig_FX_Func023001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h014' )
endfunction
function Trig_FX_Func024001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01Y' )
endfunction
function Trig_FX_Func025001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h02H' )
endfunction
function Trig_FX_Func026001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h016' )
endfunction
function Trig_FX_Func027001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01R' )
endfunction
function Trig_FX_Func028001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h00M' )
endfunction
function Trig_FX_Func029001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01N' )
endfunction
function Trig_FX_Func030001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h02F' )
endfunction
function Trig_FX_Func031001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h00R' )
endfunction
function Trig_FX_Func032001 takes nothing returns boolean
return ( IsUnitInGroup(GetTriggerUnit(), udg_Group_Residence) == true )
endfunction
function Trig_FX_Func033001 takes nothing returns boolean
return ( IsUnitInGroup(GetTriggerUnit(), udg_Group_Commercial) == true )
endfunction
function Trig_FX_Func034001 takes nothing returns boolean
return ( IsUnitInGroup(GetTriggerUnit(), udg_Group_Industrial) == true )
endfunction
function Trig_FX_Func035001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h003' )
endfunction
function Trig_FX_Func036001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h008' )
endfunction
function Trig_FX_Func037001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h002' )
endfunction
function Trig_FX_Actions takes nothing returns nothing
call StopSoundBJ( udg_Sound, false )
//
if ( Trig_FX_Func003001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_Ambulance, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Func004001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_FireTruck, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Func005001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_Police__2_u, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Func006001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CARHRN1, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Func007001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CARHRN2, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Func008001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CARHRN2, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Func009001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CARHRN3, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Func010001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CARHRN4, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Func011001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CARHRN4, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Func012001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CARHRN5, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Func013001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CARHRN6, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Func014001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CARHRN6, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Func015001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_Protest, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Func016001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_Protest, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
//
if ( Trig_FX_Func018001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CASINO, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Func019001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CITYHALL, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Func020001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_JUNKYRD, 50.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Func021001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_SCHOOL, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Func022001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_FIRESTN, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Func023001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_HSPITAL, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Func024001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CITYJAIL, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Func025001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CITYJAIL, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Func026001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_POLICE, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Func027001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_PARK, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Func028001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_WTRTOWER, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Func029001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_BUSSTOP, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Func030001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_PSOLAR, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Func031001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_PWIND, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Func032001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_DOORBELL, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Func033001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_FASTFOOD, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Func034001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_IND02TRK, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Func035001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_UC, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Func036001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_UC, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Func037001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_UC, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
set udg_Sound = GetLastPlayedSound()
endfunction
//===========================================================================
function InitTrig_FX takes nothing returns nothing
set gg_trg_FX = CreateTrigger( )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_FX, Player(0), true )
call TriggerAddAction( gg_trg_FX, function Trig_FX_Actions )
endfunction
function Trig_FX_Copy_Func003001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01E' )
endfunction
function Trig_FX_Copy_Func004001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01D' )
endfunction
function Trig_FX_Copy_Func005001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h017' )
endfunction
function Trig_FX_Copy_Func006001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h022' )
endfunction
function Trig_FX_Copy_Func007001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h00N' )
endfunction
function Trig_FX_Copy_Func008001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h00C' )
endfunction
function Trig_FX_Copy_Func009001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h006' )
endfunction
function Trig_FX_Copy_Func010001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h00O' )
endfunction
function Trig_FX_Copy_Func011001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h005' )
endfunction
function Trig_FX_Copy_Func012001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h018' )
endfunction
function Trig_FX_Copy_Func013001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h00Q' )
endfunction
function Trig_FX_Copy_Func014001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h00P' )
endfunction
function Trig_FX_Copy_Func015001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01U' )
endfunction
function Trig_FX_Copy_Func016001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01V' )
endfunction
function Trig_FX_Copy_Func018001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01X' )
endfunction
function Trig_FX_Copy_Func019001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01W' )
endfunction
function Trig_FX_Copy_Func020001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h019' )
endfunction
function Trig_FX_Copy_Func021001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h00U' )
endfunction
function Trig_FX_Copy_Func022001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01B' )
endfunction
function Trig_FX_Copy_Func023001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h014' )
endfunction
function Trig_FX_Copy_Func024001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01Y' )
endfunction
function Trig_FX_Copy_Func025001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h02H' )
endfunction
function Trig_FX_Copy_Func026001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h016' )
endfunction
function Trig_FX_Copy_Func027001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01R' )
endfunction
function Trig_FX_Copy_Func028001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h00M' )
endfunction
function Trig_FX_Copy_Func029001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01N' )
endfunction
function Trig_FX_Copy_Func030001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h02F' )
endfunction
function Trig_FX_Copy_Func031001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h00R' )
endfunction
function Trig_FX_Copy_Func032001 takes nothing returns boolean
return ( IsUnitInGroup(GetTriggerUnit(), udg_Group_Residence) == true )
endfunction
function Trig_FX_Copy_Func033001 takes nothing returns boolean
return ( IsUnitInGroup(GetTriggerUnit(), udg_Group_Commercial) == true )
endfunction
function Trig_FX_Copy_Func034001 takes nothing returns boolean
return ( IsUnitInGroup(GetTriggerUnit(), udg_Group_Industrial) == true )
endfunction
function Trig_FX_Copy_Func035001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h003' )
endfunction
function Trig_FX_Copy_Func036001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h008' )
endfunction
function Trig_FX_Copy_Func037001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h002' )
endfunction
function Trig_FX_Copy_Actions takes nothing returns nothing
call StopSoundBJ( udg_Sound, false )
//
if ( Trig_FX_Copy_Func003001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_Ambulance, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_Func004001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_FireTruck, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_Func005001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_Police__2_u, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_Func006001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CARHRN1, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_Func007001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CARHRN2, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_Func008001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CARHRN2, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_Func009001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CARHRN3, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_Func010001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CARHRN4, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_Func011001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CARHRN4, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_Func012001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CARHRN5, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_Func013001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CARHRN6, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_Func014001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CARHRN6, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_Func015001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_Protest, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_Func016001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_Protest, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
//
if ( Trig_FX_Copy_Func018001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CASINO, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_Func019001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CITYHALL, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_Func020001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_JUNKYRD, 50.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_Func021001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_SCHOOL, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_Func022001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_FIRESTN, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_Func023001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_HSPITAL, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_Func024001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CITYJAIL, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_Func025001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CITYJAIL, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_Func026001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_POLICE, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_Func027001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_PARK, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_Func028001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_WTRTOWER, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_Func029001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_BUSSTOP, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_Func030001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_PSOLAR, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_Func031001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_PWIND, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_Func032001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_DOORBELL, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_Func033001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_FASTFOOD, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_Func034001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_IND02TRK, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_Func035001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_UC, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_Func036001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_UC, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_Func037001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_UC, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
set udg_Sound = GetLastPlayedSound()
endfunction
//===========================================================================
function InitTrig_FX_Copy takes nothing returns nothing
set gg_trg_FX_Copy = CreateTrigger( )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_FX_Copy, Player(1), true )
call TriggerAddAction( gg_trg_FX_Copy, function Trig_FX_Copy_Actions )
endfunction
function Trig_FX_Copy_2_Func003001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01E' )
endfunction
function Trig_FX_Copy_2_Func004001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01D' )
endfunction
function Trig_FX_Copy_2_Func005001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h017' )
endfunction
function Trig_FX_Copy_2_Func006001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h022' )
endfunction
function Trig_FX_Copy_2_Func007001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h00N' )
endfunction
function Trig_FX_Copy_2_Func008001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h00C' )
endfunction
function Trig_FX_Copy_2_Func009001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h006' )
endfunction
function Trig_FX_Copy_2_Func010001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h00O' )
endfunction
function Trig_FX_Copy_2_Func011001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h005' )
endfunction
function Trig_FX_Copy_2_Func012001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h018' )
endfunction
function Trig_FX_Copy_2_Func013001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h00Q' )
endfunction
function Trig_FX_Copy_2_Func014001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h00P' )
endfunction
function Trig_FX_Copy_2_Func015001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01U' )
endfunction
function Trig_FX_Copy_2_Func016001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01V' )
endfunction
function Trig_FX_Copy_2_Func018001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01X' )
endfunction
function Trig_FX_Copy_2_Func019001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01W' )
endfunction
function Trig_FX_Copy_2_Func020001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h019' )
endfunction
function Trig_FX_Copy_2_Func021001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h00U' )
endfunction
function Trig_FX_Copy_2_Func022001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01B' )
endfunction
function Trig_FX_Copy_2_Func023001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h014' )
endfunction
function Trig_FX_Copy_2_Func024001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01Y' )
endfunction
function Trig_FX_Copy_2_Func025001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h02H' )
endfunction
function Trig_FX_Copy_2_Func026001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h016' )
endfunction
function Trig_FX_Copy_2_Func027001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01R' )
endfunction
function Trig_FX_Copy_2_Func028001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h00M' )
endfunction
function Trig_FX_Copy_2_Func029001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01N' )
endfunction
function Trig_FX_Copy_2_Func030001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h02F' )
endfunction
function Trig_FX_Copy_2_Func031001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h00R' )
endfunction
function Trig_FX_Copy_2_Func032001 takes nothing returns boolean
return ( IsUnitInGroup(GetTriggerUnit(), udg_Group_Residence) == true )
endfunction
function Trig_FX_Copy_2_Func033001 takes nothing returns boolean
return ( IsUnitInGroup(GetTriggerUnit(), udg_Group_Commercial) == true )
endfunction
function Trig_FX_Copy_2_Func034001 takes nothing returns boolean
return ( IsUnitInGroup(GetTriggerUnit(), udg_Group_Industrial) == true )
endfunction
function Trig_FX_Copy_2_Func035001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h003' )
endfunction
function Trig_FX_Copy_2_Func036001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h008' )
endfunction
function Trig_FX_Copy_2_Func037001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h002' )
endfunction
function Trig_FX_Copy_2_Actions takes nothing returns nothing
call StopSoundBJ( udg_Sound, false )
//
if ( Trig_FX_Copy_2_Func003001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_Ambulance, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_2_Func004001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_FireTruck, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_2_Func005001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_Police__2_u, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_2_Func006001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CARHRN1, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_2_Func007001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CARHRN2, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_2_Func008001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CARHRN2, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_2_Func009001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CARHRN3, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_2_Func010001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CARHRN4, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_2_Func011001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CARHRN4, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_2_Func012001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CARHRN5, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_2_Func013001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CARHRN6, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_2_Func014001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CARHRN6, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_2_Func015001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_Protest, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_2_Func016001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_Protest, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
//
if ( Trig_FX_Copy_2_Func018001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CASINO, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_2_Func019001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CITYHALL, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_2_Func020001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_JUNKYRD, 50.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_2_Func021001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_SCHOOL, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_2_Func022001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_FIRESTN, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_2_Func023001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_HSPITAL, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_2_Func024001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CITYJAIL, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_2_Func025001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CITYJAIL, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_2_Func026001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_POLICE, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_2_Func027001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_PARK, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_2_Func028001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_WTRTOWER, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_2_Func029001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_BUSSTOP, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_2_Func030001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_PSOLAR, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_2_Func031001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_PWIND, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_2_Func032001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_DOORBELL, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_2_Func033001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_FASTFOOD, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_2_Func034001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_IND02TRK, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_2_Func035001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_UC, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_2_Func036001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_UC, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_2_Func037001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_UC, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
set udg_Sound = GetLastPlayedSound()
endfunction
//===========================================================================
function InitTrig_FX_Copy_2 takes nothing returns nothing
set gg_trg_FX_Copy_2 = CreateTrigger( )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_FX_Copy_2, Player(2), true )
call TriggerAddAction( gg_trg_FX_Copy_2, function Trig_FX_Copy_2_Actions )
endfunction
function Trig_FX_Copy_3_Func003001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01E' )
endfunction
function Trig_FX_Copy_3_Func004001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01D' )
endfunction
function Trig_FX_Copy_3_Func005001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h017' )
endfunction
function Trig_FX_Copy_3_Func006001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h022' )
endfunction
function Trig_FX_Copy_3_Func007001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h00N' )
endfunction
function Trig_FX_Copy_3_Func008001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h00C' )
endfunction
function Trig_FX_Copy_3_Func009001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h006' )
endfunction
function Trig_FX_Copy_3_Func010001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h00O' )
endfunction
function Trig_FX_Copy_3_Func011001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h005' )
endfunction
function Trig_FX_Copy_3_Func012001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h018' )
endfunction
function Trig_FX_Copy_3_Func013001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h00Q' )
endfunction
function Trig_FX_Copy_3_Func014001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h00P' )
endfunction
function Trig_FX_Copy_3_Func015001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01U' )
endfunction
function Trig_FX_Copy_3_Func016001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01V' )
endfunction
function Trig_FX_Copy_3_Func018001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01X' )
endfunction
function Trig_FX_Copy_3_Func019001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01W' )
endfunction
function Trig_FX_Copy_3_Func020001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h019' )
endfunction
function Trig_FX_Copy_3_Func021001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h00U' )
endfunction
function Trig_FX_Copy_3_Func022001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01B' )
endfunction
function Trig_FX_Copy_3_Func023001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h014' )
endfunction
function Trig_FX_Copy_3_Func024001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01Y' )
endfunction
function Trig_FX_Copy_3_Func025001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h02H' )
endfunction
function Trig_FX_Copy_3_Func026001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h016' )
endfunction
function Trig_FX_Copy_3_Func027001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01R' )
endfunction
function Trig_FX_Copy_3_Func028001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h00M' )
endfunction
function Trig_FX_Copy_3_Func029001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01N' )
endfunction
function Trig_FX_Copy_3_Func030001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h02F' )
endfunction
function Trig_FX_Copy_3_Func031001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h00R' )
endfunction
function Trig_FX_Copy_3_Func032001 takes nothing returns boolean
return ( IsUnitInGroup(GetTriggerUnit(), udg_Group_Residence) == true )
endfunction
function Trig_FX_Copy_3_Func033001 takes nothing returns boolean
return ( IsUnitInGroup(GetTriggerUnit(), udg_Group_Commercial) == true )
endfunction
function Trig_FX_Copy_3_Func034001 takes nothing returns boolean
return ( IsUnitInGroup(GetTriggerUnit(), udg_Group_Industrial) == true )
endfunction
function Trig_FX_Copy_3_Func035001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h003' )
endfunction
function Trig_FX_Copy_3_Func036001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h008' )
endfunction
function Trig_FX_Copy_3_Func037001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h002' )
endfunction
function Trig_FX_Copy_3_Actions takes nothing returns nothing
call StopSoundBJ( udg_Sound, false )
//
if ( Trig_FX_Copy_3_Func003001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_Ambulance, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_3_Func004001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_FireTruck, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_3_Func005001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_Police__2_u, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_3_Func006001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CARHRN1, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_3_Func007001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CARHRN2, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_3_Func008001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CARHRN2, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_3_Func009001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CARHRN3, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_3_Func010001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CARHRN4, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_3_Func011001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CARHRN4, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_3_Func012001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CARHRN5, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_3_Func013001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CARHRN6, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_3_Func014001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CARHRN6, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_3_Func015001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_Protest, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_3_Func016001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_Protest, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
//
if ( Trig_FX_Copy_3_Func018001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CASINO, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_3_Func019001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CITYHALL, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_3_Func020001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_JUNKYRD, 50.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_3_Func021001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_SCHOOL, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_3_Func022001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_FIRESTN, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_3_Func023001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_HSPITAL, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_3_Func024001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CITYJAIL, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_3_Func025001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CITYJAIL, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_3_Func026001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_POLICE, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_3_Func027001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_PARK, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_3_Func028001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_WTRTOWER, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_3_Func029001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_BUSSTOP, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_3_Func030001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_PSOLAR, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_3_Func031001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_PWIND, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_3_Func032001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_DOORBELL, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_3_Func033001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_FASTFOOD, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_3_Func034001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_IND02TRK, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_3_Func035001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_UC, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_3_Func036001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_UC, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_3_Func037001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_UC, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
set udg_Sound = GetLastPlayedSound()
endfunction
//===========================================================================
function InitTrig_FX_Copy_3 takes nothing returns nothing
set gg_trg_FX_Copy_3 = CreateTrigger( )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_FX_Copy_3, Player(3), true )
call TriggerAddAction( gg_trg_FX_Copy_3, function Trig_FX_Copy_3_Actions )
endfunction
function Trig_FX_Copy_4_Func003001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01E' )
endfunction
function Trig_FX_Copy_4_Func004001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01D' )
endfunction
function Trig_FX_Copy_4_Func005001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h017' )
endfunction
function Trig_FX_Copy_4_Func006001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h022' )
endfunction
function Trig_FX_Copy_4_Func007001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h00N' )
endfunction
function Trig_FX_Copy_4_Func008001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h00C' )
endfunction
function Trig_FX_Copy_4_Func009001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h006' )
endfunction
function Trig_FX_Copy_4_Func010001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h00O' )
endfunction
function Trig_FX_Copy_4_Func011001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h005' )
endfunction
function Trig_FX_Copy_4_Func012001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h018' )
endfunction
function Trig_FX_Copy_4_Func013001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h00Q' )
endfunction
function Trig_FX_Copy_4_Func014001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h00P' )
endfunction
function Trig_FX_Copy_4_Func015001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01U' )
endfunction
function Trig_FX_Copy_4_Func016001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01V' )
endfunction
function Trig_FX_Copy_4_Func018001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01X' )
endfunction
function Trig_FX_Copy_4_Func019001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01W' )
endfunction
function Trig_FX_Copy_4_Func020001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h019' )
endfunction
function Trig_FX_Copy_4_Func021001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h00U' )
endfunction
function Trig_FX_Copy_4_Func022001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01B' )
endfunction
function Trig_FX_Copy_4_Func023001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h014' )
endfunction
function Trig_FX_Copy_4_Func024001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01Y' )
endfunction
function Trig_FX_Copy_4_Func025001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h02H' )
endfunction
function Trig_FX_Copy_4_Func026001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h016' )
endfunction
function Trig_FX_Copy_4_Func027001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01R' )
endfunction
function Trig_FX_Copy_4_Func028001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h00M' )
endfunction
function Trig_FX_Copy_4_Func029001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h01N' )
endfunction
function Trig_FX_Copy_4_Func030001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h02F' )
endfunction
function Trig_FX_Copy_4_Func031001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h00R' )
endfunction
function Trig_FX_Copy_4_Func032001 takes nothing returns boolean
return ( IsUnitInGroup(GetTriggerUnit(), udg_Group_Residence) == true )
endfunction
function Trig_FX_Copy_4_Func033001 takes nothing returns boolean
return ( IsUnitInGroup(GetTriggerUnit(), udg_Group_Commercial) == true )
endfunction
function Trig_FX_Copy_4_Func034001 takes nothing returns boolean
return ( IsUnitInGroup(GetTriggerUnit(), udg_Group_Industrial) == true )
endfunction
function Trig_FX_Copy_4_Func035001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h003' )
endfunction
function Trig_FX_Copy_4_Func036001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h008' )
endfunction
function Trig_FX_Copy_4_Func037001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h002' )
endfunction
function Trig_FX_Copy_4_Actions takes nothing returns nothing
call StopSoundBJ( udg_Sound, false )
//
if ( Trig_FX_Copy_4_Func003001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_Ambulance, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_4_Func004001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_FireTruck, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_4_Func005001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_Police__2_u, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_4_Func006001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CARHRN1, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_4_Func007001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CARHRN2, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_4_Func008001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CARHRN2, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_4_Func009001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CARHRN3, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_4_Func010001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CARHRN4, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_4_Func011001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CARHRN4, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_4_Func012001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CARHRN5, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_4_Func013001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CARHRN6, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_4_Func014001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CARHRN6, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_4_Func015001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_Protest, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_4_Func016001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_Protest, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
//
if ( Trig_FX_Copy_4_Func018001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CASINO, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_4_Func019001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CITYHALL, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_4_Func020001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_JUNKYRD, 50.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_4_Func021001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_SCHOOL, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_4_Func022001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_FIRESTN, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_4_Func023001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_HSPITAL, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_4_Func024001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CITYJAIL, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_4_Func025001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_CITYJAIL, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_4_Func026001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_POLICE, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_4_Func027001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_PARK, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_4_Func028001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_WTRTOWER, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_4_Func029001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_BUSSTOP, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_4_Func030001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_PSOLAR, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_4_Func031001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_PWIND, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_4_Func032001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_DOORBELL, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_4_Func033001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_FASTFOOD, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_4_Func034001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_IND02TRK, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_4_Func035001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_UC, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_4_Func036001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_UC, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
if ( Trig_FX_Copy_4_Func037001() ) then
call PlaySoundOnUnitBJ( gg_snd_fx_UC, 100.00, GetTriggerUnit() )
else
call DoNothing( )
endif
set udg_Sound = GetLastPlayedSound()
endfunction
//===========================================================================
function InitTrig_FX_Copy_4 takes nothing returns nothing
set gg_trg_FX_Copy_4 = CreateTrigger( )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_FX_Copy_4, Player(4), true )
call TriggerAddAction( gg_trg_FX_Copy_4, function Trig_FX_Copy_4_Actions )
endfunction
function Trig_Retired_Func002C takes nothing returns boolean
if ( not ( GetPlayerState(Player(0), PLAYER_STATE_RESOURCE_GOLD) <= 0 ) ) then
return false
endif
return true
endfunction
function Trig_Retired_Actions takes nothing returns nothing
call TriggerSleepAction( 5.00 )
if ( Trig_Retired_Func002C() ) then
call CustomDefeatBJ( Player(0), "TRIGSTR_649" )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Retired takes nothing returns nothing
set gg_trg_Retired = CreateTrigger( )
call TriggerRegisterPlayerStateEvent( gg_trg_Retired, Player(0), PLAYER_STATE_RESOURCE_GOLD, LESS_THAN_OR_EQUAL, 0.00 )
call TriggerAddAction( gg_trg_Retired, function Trig_Retired_Actions )
endfunction
function Trig_Retired_Copy_Func002C takes nothing returns boolean
if ( not ( GetPlayerState(Player(1), PLAYER_STATE_RESOURCE_GOLD) <= 0 ) ) then
return false
endif
return true
endfunction
function Trig_Retired_Copy_Actions takes nothing returns nothing
call TriggerSleepAction( 5.00 )
if ( Trig_Retired_Copy_Func002C() ) then
call CustomDefeatBJ( Player(1), "TRIGSTR_650" )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Retired_Copy takes nothing returns nothing
set gg_trg_Retired_Copy = CreateTrigger( )
call TriggerRegisterPlayerStateEvent( gg_trg_Retired_Copy, Player(1), PLAYER_STATE_RESOURCE_GOLD, LESS_THAN_OR_EQUAL, 0.00 )
call TriggerAddAction( gg_trg_Retired_Copy, function Trig_Retired_Copy_Actions )
endfunction
function Trig_Retired_Copy_2_Func002C takes nothing returns boolean
if ( not ( GetPlayerState(Player(2), PLAYER_STATE_RESOURCE_GOLD) <= 0 ) ) then
return false
endif
return true
endfunction
function Trig_Retired_Copy_2_Actions takes nothing returns nothing
call TriggerSleepAction( 5.00 )
if ( Trig_Retired_Copy_2_Func002C() ) then
call CustomDefeatBJ( Player(2), "TRIGSTR_651" )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Retired_Copy_2 takes nothing returns nothing
set gg_trg_Retired_Copy_2 = CreateTrigger( )
call TriggerRegisterPlayerStateEvent( gg_trg_Retired_Copy_2, Player(2), PLAYER_STATE_RESOURCE_GOLD, LESS_THAN_OR_EQUAL, 0.00 )
call TriggerAddAction( gg_trg_Retired_Copy_2, function Trig_Retired_Copy_2_Actions )
endfunction
function Trig_Retired_Copy_3_Func002C takes nothing returns boolean
if ( not ( GetPlayerState(Player(3), PLAYER_STATE_RESOURCE_GOLD) <= 0 ) ) then
return false
endif
return true
endfunction
function Trig_Retired_Copy_3_Actions takes nothing returns nothing
call TriggerSleepAction( 5.00 )
if ( Trig_Retired_Copy_3_Func002C() ) then
call CustomDefeatBJ( Player(3), "TRIGSTR_652" )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Retired_Copy_3 takes nothing returns nothing
set gg_trg_Retired_Copy_3 = CreateTrigger( )
call TriggerRegisterPlayerStateEvent( gg_trg_Retired_Copy_3, Player(3), PLAYER_STATE_RESOURCE_GOLD, LESS_THAN_OR_EQUAL, 0.00 )
call TriggerAddAction( gg_trg_Retired_Copy_3, function Trig_Retired_Copy_3_Actions )
endfunction
function Trig_Retired_Copy_4_Func002C takes nothing returns boolean
if ( not ( GetPlayerState(Player(4), PLAYER_STATE_RESOURCE_GOLD) <= 0 ) ) then
return false
endif
return true
endfunction
function Trig_Retired_Copy_4_Actions takes nothing returns nothing
call TriggerSleepAction( 5.00 )
if ( Trig_Retired_Copy_4_Func002C() ) then
call CustomDefeatBJ( Player(4), "TRIGSTR_653" )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Retired_Copy_4 takes nothing returns nothing
set gg_trg_Retired_Copy_4 = CreateTrigger( )
call TriggerRegisterPlayerStateEvent( gg_trg_Retired_Copy_4, Player(4), PLAYER_STATE_RESOURCE_GOLD, LESS_THAN_OR_EQUAL, 0.00 )
call TriggerAddAction( gg_trg_Retired_Copy_4, function Trig_Retired_Copy_4_Actions )
endfunction
function Trig_Zoom_In_Func001001 takes nothing returns boolean
return ( udg_Camera > 1500 )
endfunction
function Trig_Zoom_In_Actions takes nothing returns nothing
if ( Trig_Zoom_In_Func001001() ) then
set udg_Camera = ( udg_Camera - 500 )
else
call DoNothing( )
endif
call SetCameraFieldForPlayer( Player(0), CAMERA_FIELD_TARGET_DISTANCE, I2R(udg_Camera), 0 )
endfunction
//===========================================================================
function InitTrig_Zoom_In takes nothing returns nothing
set gg_trg_Zoom_In = CreateTrigger( )
call TriggerRegisterPlayerKeyEventBJ( gg_trg_Zoom_In, Player(0), bj_KEYEVENTTYPE_DEPRESS, bj_KEYEVENTKEY_UP )
call TriggerRegisterPlayerKeyEventBJ( gg_trg_Zoom_In, Player(1), bj_KEYEVENTTYPE_DEPRESS, bj_KEYEVENTKEY_UP )
call TriggerRegisterPlayerKeyEventBJ( gg_trg_Zoom_In, Player(2), bj_KEYEVENTTYPE_DEPRESS, bj_KEYEVENTKEY_UP )
call TriggerRegisterPlayerKeyEventBJ( gg_trg_Zoom_In, Player(3), bj_KEYEVENTTYPE_DEPRESS, bj_KEYEVENTKEY_UP )
call TriggerRegisterPlayerKeyEventBJ( gg_trg_Zoom_In, Player(4), bj_KEYEVENTTYPE_DEPRESS, bj_KEYEVENTKEY_UP )
call TriggerAddAction( gg_trg_Zoom_In, function Trig_Zoom_In_Actions )
endfunction
function Trig_Zoom_Out_Func001001 takes nothing returns boolean
return ( udg_Camera < 3500 )
endfunction
function Trig_Zoom_Out_Actions takes nothing returns nothing
if ( Trig_Zoom_Out_Func001001() ) then
set udg_Camera = ( udg_Camera + 500 )
else
call DoNothing( )
endif
call SetCameraFieldForPlayer( Player(0), CAMERA_FIELD_TARGET_DISTANCE, I2R(udg_Camera), 0 )
endfunction
//===========================================================================
function InitTrig_Zoom_Out takes nothing returns nothing
set gg_trg_Zoom_Out = CreateTrigger( )
call TriggerRegisterPlayerKeyEventBJ( gg_trg_Zoom_Out, Player(0), bj_KEYEVENTTYPE_DEPRESS, bj_KEYEVENTKEY_DOWN )
call TriggerRegisterPlayerKeyEventBJ( gg_trg_Zoom_Out, Player(1), bj_KEYEVENTTYPE_DEPRESS, bj_KEYEVENTKEY_DOWN )
call TriggerRegisterPlayerKeyEventBJ( gg_trg_Zoom_Out, Player(2), bj_KEYEVENTTYPE_DEPRESS, bj_KEYEVENTKEY_DOWN )
call TriggerRegisterPlayerKeyEventBJ( gg_trg_Zoom_Out, Player(3), bj_KEYEVENTTYPE_DEPRESS, bj_KEYEVENTKEY_DOWN )
call TriggerRegisterPlayerKeyEventBJ( gg_trg_Zoom_Out, Player(4), bj_KEYEVENTTYPE_DEPRESS, bj_KEYEVENTKEY_DOWN )
call TriggerAddAction( gg_trg_Zoom_Out, function Trig_Zoom_Out_Actions )
endfunction
function Trig_Builders_Func001Func001C takes nothing returns boolean
if ( ( GetUnitTypeId(GetConstructedStructure()) == 'h002' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetConstructedStructure()) == 'h003' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetConstructedStructure()) == 'h008' ) ) then
return true
endif
return false
endfunction
function Trig_Builders_Func001Func002001 takes nothing returns boolean
return ( GetRandomInt(1, 2) == 1 )
endfunction
function Trig_Builders_Func001C takes nothing returns boolean
if ( not Trig_Builders_Func001Func001C() ) then
return false
endif
return true
endfunction
function Trig_Builders_Func002C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetConstructedStructure()) == 'h019' ) ) then
return false
endif
return true
endfunction
function Trig_Builders_Func003C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetConstructedStructure()) == 'h01W' ) ) then
return false
endif
return true
endfunction
function Trig_Builders_Func004C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetConstructedStructure()) == 'h01X' ) ) then
return false
endif
return true
endfunction
function Trig_Builders_Func005C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetConstructedStructure()) == 'h01Y' ) ) then
return false
endif
return true
endfunction
function Trig_Builders_Func006C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetConstructedStructure()) == 'h02A' ) ) then
return false
endif
return true
endfunction
function Trig_Builders_Func007C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetConstructedStructure()) == 'h02B' ) ) then
return false
endif
return true
endfunction
function Trig_Builders_Func008C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetConstructedStructure()) == 'h02G' ) ) then
return false
endif
return true
endfunction
function Trig_Builders_Func009C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetConstructedStructure()) == 'h02H' ) ) then
return false
endif
return true
endfunction
function Trig_Builders_Actions takes nothing returns nothing
if ( Trig_Builders_Func001C() ) then
if ( Trig_Builders_Func001Func002001() ) then
set udg_CP = GetRectCenter(gg_rct_Start1)
else
set udg_CP = GetRectCenter(gg_rct_Start2)
endif
call CreateNUnitsAtLoc( 1, 'h000', GetOwningPlayer(GetTriggerUnit()), udg_CP, bj_UNIT_FACING )
call IssueTargetOrderBJ( GetLastCreatedUnit(), "thunderbolt", GetConstructedStructure() )
call RemoveLocation(udg_CP)
else
endif
if ( Trig_Builders_Func002C() ) then
set udg_Increnator = GetConstructedStructure()
call UnitRemoveAbilityBJ( 'A00M', udg_Request )
else
endif
if ( Trig_Builders_Func003C() ) then
set udg_TownHall = GetConstructedStructure()
call UnitRemoveAbilityBJ( 'A00B', udg_Request )
call GroupAddUnitSimple( GetConstructedStructure(), udg_Group_Park )
else
endif
if ( Trig_Builders_Func004C() ) then
set udg_Casino = GetConstructedStructure()
call GroupAddUnitSimple( GetConstructedStructure(), udg_Group_Squaters )
call UnitRemoveAbilityBJ( 'A00P', udg_Request )
else
endif
if ( Trig_Builders_Func005C() ) then
set udg_Prisoner = GetConstructedStructure()
call UnitRemoveAbilityBJ( 'A00Q', udg_Request )
else
endif
if ( Trig_Builders_Func006C() ) then
set udg_Dome = GetConstructedStructure()
call UnitRemoveAbilityBJ( 'A00R', udg_Request )
else
endif
if ( Trig_Builders_Func007C() ) then
call UnitRemoveAbilityBJ( 'A00S', udg_Request )
call GroupAddUnitSimple( GetConstructedStructure(), udg_Group_Park )
else
endif
if ( Trig_Builders_Func008C() ) then
set udg_Distribute = GetConstructedStructure()
call UnitRemoveAbilityBJ( 'A00I', udg_Request )
call EnableTrigger( gg_trg_Distriibute )
else
endif
if ( Trig_Builders_Func009C() ) then
call UnitRemoveAbilityBJ( 'A00J', udg_Request )
else
endif
endfunction
//===========================================================================
function InitTrig_Builders takes nothing returns nothing
set gg_trg_Builders = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Builders, EVENT_PLAYER_UNIT_CONSTRUCT_FINISH )
call TriggerAddAction( gg_trg_Builders, function Trig_Builders_Actions )
endfunction
function Trig_Build_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A000' ) ) then
return false
endif
return true
endfunction
function Trig_Build_Func002Func005001 takes nothing returns boolean
return ( udg_Dice == 0 )
endfunction
function Trig_Build_Func002Func006001 takes nothing returns boolean
return ( udg_Dice == 1 )
endfunction
function Trig_Build_Func002Func007001 takes nothing returns boolean
return ( udg_Dice == 2 )
endfunction
function Trig_Build_Func002Func008001 takes nothing returns boolean
return ( udg_Dice == 3 )
endfunction
function Trig_Build_Func002Func009001 takes nothing returns boolean
return ( udg_Dice == 4 )
endfunction
function Trig_Build_Func002Func010001 takes nothing returns boolean
return ( udg_Dice == 5 )
endfunction
function Trig_Build_Func002Func011001 takes nothing returns boolean
return ( udg_Dice == 6 )
endfunction
function Trig_Build_Func002Func012001 takes nothing returns boolean
return ( udg_Dice == 7 )
endfunction
function Trig_Build_Func002Func013001 takes nothing returns boolean
return ( udg_Dice == 8 )
endfunction
function Trig_Build_Func002Func014001 takes nothing returns boolean
return ( udg_Dice == 9 )
endfunction
function Trig_Build_Func002Func016001001001003 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h00M' )
endfunction
function Trig_Build_Func002Func016001 takes nothing returns boolean
return ( CountUnitsInGroup(GetUnitsInRangeOfLocMatching(1200.00, udg_XP, Condition(function Trig_Build_Func002Func016001001001003))) >= 1 )
endfunction
function Trig_Build_Func002Func017C takes nothing returns boolean
if ( not ( udg_PowerComsume >= udg_PowerMax ) ) then
return false
endif
return true
endfunction
function Trig_Build_Func002Func018001 takes nothing returns boolean
return ( udg_PowerComsume > udg_PowerMax )
endfunction
function Trig_Build_Func002Func019001 takes nothing returns boolean
return ( udg_PowerComsume > udg_PowerMax )
endfunction
function Trig_Build_Func002C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'h002' ) ) then
return false
endif
return true
endfunction
function Trig_Build_Func003Func005001 takes nothing returns boolean
return ( udg_Dice == 1 )
endfunction
function Trig_Build_Func003Func006001 takes nothing returns boolean
return ( udg_Dice == 2 )
endfunction
function Trig_Build_Func003Func007001 takes nothing returns boolean
return ( udg_Dice == 3 )
endfunction
function Trig_Build_Func003Func008001 takes nothing returns boolean
return ( udg_Dice == 4 )
endfunction
function Trig_Build_Func003Func009001 takes nothing returns boolean
return ( udg_Dice == 5 )
endfunction
function Trig_Build_Func003Func010001 takes nothing returns boolean
return ( udg_Dice == 6 )
endfunction
function Trig_Build_Func003Func011001 takes nothing returns boolean
return ( udg_Dice == 7 )
endfunction
function Trig_Build_Func003Func012001 takes nothing returns boolean
return ( udg_Dice == 8 )
endfunction
function Trig_Build_Func003Func013001 takes nothing returns boolean
return ( udg_Dice == 9 )
endfunction
function Trig_Build_Func003Func015001001001003 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h00M' )
endfunction
function Trig_Build_Func003Func015001 takes nothing returns boolean
return ( CountUnitsInGroup(GetUnitsInRangeOfLocMatching(1200.00, udg_XP, Condition(function Trig_Build_Func003Func015001001001003))) >= 1 )
endfunction
function Trig_Build_Func003Func016C takes nothing returns boolean
if ( not ( udg_PowerComsume >= udg_PowerMax ) ) then
return false
endif
return true
endfunction
function Trig_Build_Func003Func017001 takes nothing returns boolean
return ( udg_PowerComsume > udg_PowerMax )
endfunction
function Trig_Build_Func003Func018001 takes nothing returns boolean
return ( udg_PowerComsume > udg_PowerMax )
endfunction
function Trig_Build_Func003C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'h008' ) ) then
return false
endif
return true
endfunction
function Trig_Build_Func004Func005001 takes nothing returns boolean
return ( udg_Dice == 0 )
endfunction
function Trig_Build_Func004Func006001 takes nothing returns boolean
return ( udg_Dice == 1 )
endfunction
function Trig_Build_Func004Func007001 takes nothing returns boolean
return ( udg_Dice == 2 )
endfunction
function Trig_Build_Func004Func008001 takes nothing returns boolean
return ( udg_Dice == 3 )
endfunction
function Trig_Build_Func004Func009001 takes nothing returns boolean
return ( udg_Dice == 4 )
endfunction
function Trig_Build_Func004Func010001 takes nothing returns boolean
return ( udg_Dice == 5 )
endfunction
function Trig_Build_Func004Func011001 takes nothing returns boolean
return ( udg_Dice == 6 )
endfunction
function Trig_Build_Func004Func012001 takes nothing returns boolean
return ( udg_Dice == 7 )
endfunction
function Trig_Build_Func004Func013001 takes nothing returns boolean
return ( udg_Dice == 8 )
endfunction
function Trig_Build_Func004Func014001 takes nothing returns boolean
return ( udg_Dice == 9 )
endfunction
function Trig_Build_Func004Func015001 takes nothing returns boolean
return ( udg_Dice == 10 )
endfunction
function Trig_Build_Func004Func016001 takes nothing returns boolean
return ( udg_Dice == 11 )
endfunction
function Trig_Build_Func004Func017001 takes nothing returns boolean
return ( udg_Dice == 12 )
endfunction
function Trig_Build_Func004Func018001 takes nothing returns boolean
return ( udg_Dice == 13 )
endfunction
function Trig_Build_Func004Func019001 takes nothing returns boolean
return ( udg_Dice == 14 )
endfunction
function Trig_Build_Func004Func021001001001003 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h00M' )
endfunction
function Trig_Build_Func004Func021001 takes nothing returns boolean
return ( CountUnitsInGroup(GetUnitsInRangeOfLocMatching(1200.00, udg_XP, Condition(function Trig_Build_Func004Func021001001001003))) >= 1 )
endfunction
function Trig_Build_Func004Func022C takes nothing returns boolean
if ( not ( udg_PowerComsume >= udg_PowerMax ) ) then
return false
endif
return true
endfunction
function Trig_Build_Func004Func023001 takes nothing returns boolean
return ( udg_PowerComsume > udg_PowerMax )
endfunction
function Trig_Build_Func004Func024001 takes nothing returns boolean
return ( udg_PowerComsume > udg_PowerMax )
endfunction
function Trig_Build_Func004C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'h003' ) ) then
return false
endif
return true
endfunction
function Trig_Build_Func005Func005001 takes nothing returns boolean
return ( udg_Dice == 0 )
endfunction
function Trig_Build_Func005Func007001001001003 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h00M' )
endfunction
function Trig_Build_Func005Func007001 takes nothing returns boolean
return ( CountUnitsInGroup(GetUnitsInRangeOfLocMatching(1200.00, udg_XP, Condition(function Trig_Build_Func005Func007001001001003))) >= 1 )
endfunction
function Trig_Build_Func005Func008C takes nothing returns boolean
if ( not ( udg_PowerComsume >= udg_PowerMax ) ) then
return false
endif
return true
endfunction
function Trig_Build_Func005Func009001 takes nothing returns boolean
return ( udg_PowerComsume > udg_PowerMax )
endfunction
function Trig_Build_Func005Func010001 takes nothing returns boolean
return ( udg_PowerComsume > udg_PowerMax )
endfunction
function Trig_Build_Func005C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'h00S' ) ) then
return false
endif
return true
endfunction
function Trig_Build_Actions takes nothing returns nothing
call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetSpellAbilityUnit() )
if ( Trig_Build_Func002C() ) then
set udg_XP = GetUnitLoc(GetSpellTargetUnit())
call RemoveUnit( GetSpellTargetUnit() )
set udg_Dice = GetRandomInt(0, 9)
set udg_PowerComsume = ( udg_PowerComsume + 5 )
if ( Trig_Build_Func002Func005001() ) then
call CreateNUnitsAtLoc( 1, 'h01G', GetOwningPlayer(GetSpellTargetUnit()), udg_XP, I2R(udg_Angle[GetRandomInt(1, 4)]) )
else
call DoNothing( )
endif
if ( Trig_Build_Func002Func006001() ) then
call CreateNUnitsAtLoc( 1, 'h004', GetOwningPlayer(GetSpellTargetUnit()), udg_XP, I2R(udg_Angle[GetRandomInt(1, 4)]) )
else
call DoNothing( )
endif
if ( Trig_Build_Func002Func007001() ) then
call CreateNUnitsAtLoc( 1, 'h023', GetOwningPlayer(GetSpellTargetUnit()), udg_XP, I2R(udg_Angle[GetRandomInt(1, 4)]) )
else
call DoNothing( )
endif
if ( Trig_Build_Func002Func008001() ) then
call CreateNUnitsAtLoc( 1, 'h024', GetOwningPlayer(GetSpellTargetUnit()), udg_XP, I2R(udg_Angle[GetRandomInt(1, 4)]) )
else
call DoNothing( )
endif
if ( Trig_Build_Func002Func009001() ) then
call CreateNUnitsAtLoc( 1, 'h01H', GetOwningPlayer(GetSpellTargetUnit()), udg_XP, I2R(udg_Angle[GetRandomInt(1, 4)]) )
else
call DoNothing( )
endif
if ( Trig_Build_Func002Func010001() ) then
call CreateNUnitsAtLoc( 1, 'h00I', GetOwningPlayer(GetSpellTargetUnit()), udg_XP, I2R(udg_Angle[GetRandomInt(1, 4)]) )
else
call DoNothing( )
endif
if ( Trig_Build_Func002Func011001() ) then
call CreateNUnitsAtLoc( 1, 'h00J', GetOwningPlayer(GetSpellTargetUnit()), udg_XP, I2R(udg_Angle[GetRandomInt(1, 4)]) )
else
call DoNothing( )
endif
if ( Trig_Build_Func002Func012001() ) then
call CreateNUnitsAtLoc( 1, 'h025', GetOwningPlayer(GetSpellTargetUnit()), udg_XP, I2R(udg_Angle[GetRandomInt(1, 4)]) )
else
call DoNothing( )
endif
if ( Trig_Build_Func002Func013001() ) then
call CreateNUnitsAtLoc( 1, 'h01I', GetOwningPlayer(GetSpellTargetUnit()), udg_XP, I2R(udg_Angle[GetRandomInt(1, 4)]) )
else
call DoNothing( )
endif
if ( Trig_Build_Func002Func014001() ) then
call CreateNUnitsAtLoc( 1, 'h00D', GetOwningPlayer(GetSpellTargetUnit()), udg_XP, I2R(udg_Angle[GetRandomInt(1, 4)]) )
else
call DoNothing( )
endif
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_Group_Residence )
if ( Trig_Build_Func002Func016001() ) then
call UnitAddAbilityBJ( 'A004', GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_Build_Func002Func017C() ) then
call CreateNUnitsAtLoc( 1, 'n001', GetOwningPlayer(GetTriggerUnit()), udg_XP, 90.00 )
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_GroupOffline )
else
endif
if ( Trig_Build_Func002Func018001() ) then
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_654" )
else
call DoNothing( )
endif
if ( Trig_Build_Func002Func019001() ) then
call PlaySoundBJ( gg_snd_fx_UNPWRD )
else
call DoNothing( )
endif
call LeaderboardSetLabelBJ( udg_PowerMeter, ( "Power Consume : [" + ( I2S(udg_PowerComsume) + ( "/" + ( I2S(udg_PowerMax) + "]" ) ) ) ) )
call RemoveLocation(udg_XP)
else
endif
if ( Trig_Build_Func003C() ) then
set udg_XP = GetUnitLoc(GetSpellTargetUnit())
call RemoveUnit( GetSpellTargetUnit() )
set udg_Dice = GetRandomInt(1, 9)
set udg_PowerComsume = ( udg_PowerComsume + 10 )
if ( Trig_Build_Func003Func005001() ) then
call CreateNUnitsAtLoc( 1, 'h012', GetOwningPlayer(GetSpellTargetUnit()), udg_XP, I2R(udg_Angle[GetRandomInt(1, 4)]) )
else
call DoNothing( )
endif
if ( Trig_Build_Func003Func006001() ) then
call CreateNUnitsAtLoc( 1, 'h013', GetOwningPlayer(GetSpellTargetUnit()), udg_XP, I2R(udg_Angle[GetRandomInt(1, 4)]) )
else
call DoNothing( )
endif
if ( Trig_Build_Func003Func007001() ) then
call CreateNUnitsAtLoc( 1, 'h007', GetOwningPlayer(GetSpellTargetUnit()), udg_XP, I2R(udg_Angle[GetRandomInt(1, 4)]) )
else
call DoNothing( )
endif
if ( Trig_Build_Func003Func008001() ) then
call CreateNUnitsAtLoc( 1, 'h01J', GetOwningPlayer(GetSpellTargetUnit()), udg_XP, I2R(udg_Angle[GetRandomInt(1, 4)]) )
else
call DoNothing( )
endif
if ( Trig_Build_Func003Func009001() ) then
call CreateNUnitsAtLoc( 1, 'h01K', GetOwningPlayer(GetSpellTargetUnit()), udg_XP, I2R(udg_Angle[GetRandomInt(1, 4)]) )
else
call DoNothing( )
endif
if ( Trig_Build_Func003Func010001() ) then
call CreateNUnitsAtLoc( 1, 'h01L', GetOwningPlayer(GetSpellTargetUnit()), udg_XP, I2R(udg_Angle[GetRandomInt(1, 4)]) )
else
call DoNothing( )
endif
if ( Trig_Build_Func003Func011001() ) then
call CreateNUnitsAtLoc( 1, 'h026', GetOwningPlayer(GetSpellTargetUnit()), udg_XP, I2R(udg_Angle[GetRandomInt(1, 4)]) )
else
call DoNothing( )
endif
if ( Trig_Build_Func003Func012001() ) then
call CreateNUnitsAtLoc( 1, 'h028', GetOwningPlayer(GetSpellTargetUnit()), udg_XP, I2R(udg_Angle[GetRandomInt(1, 4)]) )
else
call DoNothing( )
endif
if ( Trig_Build_Func003Func013001() ) then
call CreateNUnitsAtLoc( 1, 'h027', GetOwningPlayer(GetSpellTargetUnit()), udg_XP, I2R(udg_Angle[GetRandomInt(1, 4)]) )
else
call DoNothing( )
endif
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_Group_Industrial )
if ( Trig_Build_Func003Func015001() ) then
call UnitAddAbilityBJ( 'A004', GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_Build_Func003Func016C() ) then
call CreateNUnitsAtLoc( 1, 'n001', GetOwningPlayer(GetTriggerUnit()), udg_XP, 90.00 )
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_GroupOffline )
else
endif
if ( Trig_Build_Func003Func017001() ) then
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_655" )
else
call DoNothing( )
endif
if ( Trig_Build_Func003Func018001() ) then
call PlaySoundBJ( gg_snd_fx_UNPWRD )
else
call DoNothing( )
endif
call LeaderboardSetLabelBJ( udg_PowerMeter, ( "Power Consume : [" + ( I2S(udg_PowerComsume) + ( "/" + ( I2S(udg_PowerMax) + "]" ) ) ) ) )
call RemoveLocation(udg_XP)
else
endif
if ( Trig_Build_Func004C() ) then
set udg_XP = GetUnitLoc(GetSpellTargetUnit())
call RemoveUnit( GetSpellTargetUnit() )
set udg_Dice = GetRandomInt(0, 14)
set udg_PowerComsume = ( udg_PowerComsume + 5 )
if ( Trig_Build_Func004Func005001() ) then
call CreateNUnitsAtLoc( 1, 'h00V', GetOwningPlayer(GetSpellTargetUnit()), udg_XP, I2R(udg_Angle[GetRandomInt(1, 4)]) )
else
call DoNothing( )
endif
if ( Trig_Build_Func004Func006001() ) then
call CreateNUnitsAtLoc( 1, 'h020', GetOwningPlayer(GetSpellTargetUnit()), udg_XP, I2R(udg_Angle[GetRandomInt(1, 4)]) )
else
call DoNothing( )
endif
if ( Trig_Build_Func004Func007001() ) then
call CreateNUnitsAtLoc( 1, 'h00X', GetOwningPlayer(GetSpellTargetUnit()), udg_XP, I2R(udg_Angle[GetRandomInt(1, 4)]) )
else
call DoNothing( )
endif
if ( Trig_Build_Func004Func008001() ) then
call CreateNUnitsAtLoc( 1, 'h01M', GetOwningPlayer(GetSpellTargetUnit()), udg_XP, I2R(udg_Angle[GetRandomInt(1, 4)]) )
else
call DoNothing( )
endif
if ( Trig_Build_Func004Func009001() ) then
call CreateNUnitsAtLoc( 1, 'h00W', GetOwningPlayer(GetSpellTargetUnit()), udg_XP, I2R(udg_Angle[GetRandomInt(1, 4)]) )
else
call DoNothing( )
endif
if ( Trig_Build_Func004Func010001() ) then
call CreateNUnitsAtLoc( 1, 'h00T', GetOwningPlayer(GetSpellTargetUnit()), udg_XP, I2R(udg_Angle[GetRandomInt(1, 4)]) )
else
call DoNothing( )
endif
if ( Trig_Build_Func004Func011001() ) then
call CreateNUnitsAtLoc( 1, 'h009', GetOwningPlayer(GetSpellTargetUnit()), udg_XP, I2R(udg_Angle[GetRandomInt(1, 4)]) )
else
call DoNothing( )
endif
if ( Trig_Build_Func004Func012001() ) then
call CreateNUnitsAtLoc( 1, 'h011', GetOwningPlayer(GetSpellTargetUnit()), udg_XP, I2R(udg_Angle[GetRandomInt(1, 4)]) )
else
call DoNothing( )
endif
if ( Trig_Build_Func004Func013001() ) then
call CreateNUnitsAtLoc( 1, 'h00Z', GetOwningPlayer(GetSpellTargetUnit()), udg_XP, I2R(udg_Angle[GetRandomInt(1, 4)]) )
else
call DoNothing( )
endif
if ( Trig_Build_Func004Func014001() ) then
call CreateNUnitsAtLoc( 1, 'h00Y', GetOwningPlayer(GetSpellTargetUnit()), udg_XP, I2R(udg_Angle[GetRandomInt(1, 4)]) )
else
call DoNothing( )
endif
if ( Trig_Build_Func004Func015001() ) then
call CreateNUnitsAtLoc( 1, 'h010', GetOwningPlayer(GetSpellTargetUnit()), udg_XP, I2R(udg_Angle[GetRandomInt(1, 4)]) )
else
call DoNothing( )
endif
if ( Trig_Build_Func004Func016001() ) then
call CreateNUnitsAtLoc( 1, 'h01Z', GetOwningPlayer(GetSpellTargetUnit()), udg_XP, I2R(udg_Angle[GetRandomInt(1, 4)]) )
else
call DoNothing( )
endif
if ( Trig_Build_Func004Func017001() ) then
call CreateNUnitsAtLoc( 1, 'h02D', GetOwningPlayer(GetSpellTargetUnit()), udg_XP, I2R(udg_Angle[GetRandomInt(1, 4)]) )
else
call DoNothing( )
endif
if ( Trig_Build_Func004Func018001() ) then
call CreateNUnitsAtLoc( 1, 'h02C', GetOwningPlayer(GetSpellTargetUnit()), udg_XP, I2R(udg_Angle[GetRandomInt(1, 4)]) )
else
call DoNothing( )
endif
if ( Trig_Build_Func004Func019001() ) then
call CreateNUnitsAtLoc( 1, 'h02E', GetOwningPlayer(GetSpellTargetUnit()), udg_XP, I2R(udg_Angle[GetRandomInt(1, 4)]) )
else
call DoNothing( )
endif
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_Group_Commercial )
if ( Trig_Build_Func004Func021001() ) then
call UnitAddAbilityBJ( 'A004', GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_Build_Func004Func022C() ) then
call CreateNUnitsAtLoc( 1, 'n001', GetOwningPlayer(GetTriggerUnit()), udg_XP, 90.00 )
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_GroupOffline )
else
endif
if ( Trig_Build_Func004Func023001() ) then
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_656" )
else
call DoNothing( )
endif
if ( Trig_Build_Func004Func024001() ) then
call PlaySoundBJ( gg_snd_fx_UNPWRD )
else
call DoNothing( )
endif
call LeaderboardSetLabelBJ( udg_PowerMeter, ( "Power Consume : [" + ( I2S(udg_PowerComsume) + ( "/" + ( I2S(udg_PowerMax) + "]" ) ) ) ) )
call RemoveLocation(udg_XP)
else
endif
if ( Trig_Build_Func005C() ) then
set udg_XP = GetUnitLoc(GetSpellTargetUnit())
call RemoveUnit( GetSpellTargetUnit() )
set udg_Dice = GetRandomInt(0, 14)
set udg_PowerComsume = ( udg_PowerComsume + 5 )
if ( Trig_Build_Func005Func005001() ) then
call CreateNUnitsAtLoc( 1, 'h00D', GetOwningPlayer(GetSpellTargetUnit()), udg_XP, I2R(udg_Angle[GetRandomInt(1, 4)]) )
else
call DoNothing( )
endif
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_Group_Residence )
if ( Trig_Build_Func005Func007001() ) then
call UnitAddAbilityBJ( 'A004', GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_Build_Func005Func008C() ) then
call CreateNUnitsAtLoc( 1, 'n001', GetOwningPlayer(GetTriggerUnit()), udg_XP, 90.00 )
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_GroupOffline )
else
endif
if ( Trig_Build_Func005Func009001() ) then
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_657" )
else
call DoNothing( )
endif
if ( Trig_Build_Func005Func010001() ) then
call PlaySoundBJ( gg_snd_fx_UNPWRD )
else
call DoNothing( )
endif
call LeaderboardSetLabelBJ( udg_PowerMeter, ( "Power Consume : [" + ( I2S(udg_PowerComsume) + ( "/" + ( I2S(udg_PowerMax) + "]" ) ) ) ) )
call RemoveLocation(udg_XP)
else
endif
endfunction
//===========================================================================
function InitTrig_Build takes nothing returns nothing
set gg_trg_Build = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Build, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Build, Condition( function Trig_Build_Conditions ) )
call TriggerAddAction( gg_trg_Build, function Trig_Build_Actions )
endfunction
function Trig_Services_Func001Func005001003 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == true )
endfunction
function Trig_Services_Func001Func005Func001C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A004', GetEnumUnit()) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Services_Func001Func005A takes nothing returns nothing
if ( Trig_Services_Func001Func005Func001C() ) then
call DoNothing( )
else
call UnitAddAbilityBJ( 'A004', GetEnumUnit() )
call SetUnitLifePercentBJ( GetEnumUnit(), 100 )
endif
endfunction
function Trig_Services_Func001C takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A005' ) ) then
return false
endif
return true
endfunction
function Trig_Services_Func002Func005001001001003 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h00M' )
endfunction
function Trig_Services_Func002Func005001 takes nothing returns boolean
return ( CountUnitsInGroup(GetUnitsInRangeOfLocMatching(1200.00, udg_XP, Condition(function Trig_Services_Func002Func005001001001003))) >= 1 )
endfunction
function Trig_Services_Func002Func007001 takes nothing returns boolean
return ( udg_PowerMax >= udg_PowerComsume )
endfunction
function Trig_Services_Func002Func007002002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Services_Func002C takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A006' ) ) then
return false
endif
return true
endfunction
function Trig_Services_Func003Func005001001001003 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h00M' )
endfunction
function Trig_Services_Func003Func005001 takes nothing returns boolean
return ( CountUnitsInGroup(GetUnitsInRangeOfLocMatching(1200.00, udg_XP, Condition(function Trig_Services_Func003Func005001001001003))) >= 1 )
endfunction
function Trig_Services_Func003Func007001 takes nothing returns boolean
return ( udg_PowerMax >= udg_PowerComsume )
endfunction
function Trig_Services_Func003Func007002002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Services_Func003C takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00T' ) ) then
return false
endif
return true
endfunction
function Trig_Services_Func004Func004001001001003 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h00M' )
endfunction
function Trig_Services_Func004Func004001 takes nothing returns boolean
return ( CountUnitsInGroup(GetUnitsInRangeOfLocMatching(1200.00, udg_XP, Condition(function Trig_Services_Func004Func004001001001003))) >= 1 )
endfunction
function Trig_Services_Func004Func008001003 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h00S' )
endfunction
function Trig_Services_Func004Func008A takes nothing returns nothing
set udg_SP = GetUnitLoc(GetEnumUnit())
call RemoveUnit( GetEnumUnit() )
call CreateNUnitsAtLoc( 1, 'h00D', GetOwningPlayer(GetTriggerUnit()), udg_SP, I2R(udg_Angle[GetRandomInt(1, 4)]) )
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_Group_Residence )
call RemoveLocation(udg_SP)
endfunction
function Trig_Services_Func004C takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A007' ) ) then
return false
endif
return true
endfunction
function Trig_Services_Func005Func005001001001003 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h00M' )
endfunction
function Trig_Services_Func005Func005001 takes nothing returns boolean
return ( CountUnitsInGroup(GetUnitsInRangeOfLocMatching(1200.00, udg_XP, Condition(function Trig_Services_Func005Func005001001001003))) >= 1 )
endfunction
function Trig_Services_Func005C takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A009' ) ) then
return false
endif
return true
endfunction
function Trig_Services_Func006Func005001001001003 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h00M' )
endfunction
function Trig_Services_Func006Func005001 takes nothing returns boolean
return ( CountUnitsInGroup(GetUnitsInRangeOfLocMatching(1200.00, udg_XP, Condition(function Trig_Services_Func006Func005001001001003))) >= 1 )
endfunction
function Trig_Services_Func006C takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00C' ) ) then
return false
endif
return true
endfunction
function Trig_Services_Func007Func005001001001003 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h00M' )
endfunction
function Trig_Services_Func007Func005001 takes nothing returns boolean
return ( CountUnitsInGroup(GetUnitsInRangeOfLocMatching(1200.00, udg_XP, Condition(function Trig_Services_Func007Func005001001001003))) >= 1 )
endfunction
function Trig_Services_Func007C takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00G' ) ) then
return false
endif
return true
endfunction
function Trig_Services_Func008C takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00F' ) ) then
return false
endif
return true
endfunction
function Trig_Services_Func009C takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00D' ) ) then
return false
endif
return true
endfunction
function Trig_Services_Actions takes nothing returns nothing
if ( Trig_Services_Func001C() ) then
set udg_XP = GetUnitLoc(GetTriggerUnit())
call RemoveUnit( GetTriggerUnit() )
call CreateNUnitsAtLoc( 1, 'h00M', GetOwningPlayer(GetTriggerUnit()), udg_XP, I2R(udg_Angle[GetRandomInt(1, 4)]) )
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_Group_Water )
call ForGroupBJ( GetUnitsInRangeOfLocMatching(1200.00, udg_XP, Condition(function Trig_Services_Func001Func005001003)), function Trig_Services_Func001Func005A )
call RemoveLocation(udg_XP)
else
endif
if ( Trig_Services_Func002C() ) then
set udg_XP = GetUnitLoc(GetTriggerUnit())
call RemoveUnit( GetTriggerUnit() )
call CreateNUnitsAtLoc( 1, 'h00R', GetOwningPlayer(GetTriggerUnit()), udg_XP, 270.00 )
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_Group_Wind )
if ( Trig_Services_Func002Func005001() ) then
call UnitAddAbilityBJ( 'A004', GetLastCreatedUnit() )
else
call DoNothing( )
endif
set udg_PowerMax = ( udg_PowerMax + 75 )
if ( Trig_Services_Func002Func007001() ) then
call ForGroupBJ( udg_GroupOffline, function Trig_Services_Func002Func007002002 )
else
call DoNothing( )
endif
call LeaderboardSetLabelBJ( udg_PowerMeter, ( "Power Consume : [" + ( I2S(udg_PowerComsume) + ( "/" + ( I2S(udg_PowerMax) + "]" ) ) ) ) )
call RemoveLocation(udg_XP)
else
endif
if ( Trig_Services_Func003C() ) then
set udg_XP = GetUnitLoc(GetTriggerUnit())
call RemoveUnit( GetTriggerUnit() )
call CreateNUnitsAtLoc( 1, 'h02F', GetOwningPlayer(GetTriggerUnit()), udg_XP, 270.00 )
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_Group_Wind )
if ( Trig_Services_Func003Func005001() ) then
call UnitAddAbilityBJ( 'A004', GetLastCreatedUnit() )
else
call DoNothing( )
endif
set udg_PowerMax = ( udg_PowerMax + 75 )
if ( Trig_Services_Func003Func007001() ) then
call ForGroupBJ( udg_GroupOffline, function Trig_Services_Func003Func007002002 )
else
call DoNothing( )
endif
call LeaderboardSetLabelBJ( udg_PowerMeter, ( "Power Consume : [" + ( I2S(udg_PowerComsume) + ( "/" + ( I2S(udg_PowerMax) + "]" ) ) ) ) )
call RemoveLocation(udg_XP)
else
endif
if ( Trig_Services_Func004C() ) then
set udg_XP = GetUnitLoc(GetTriggerUnit())
call RemoveUnit( GetTriggerUnit() )
call CreateNUnitsAtLoc( 1, 'h00U', GetOwningPlayer(GetTriggerUnit()), udg_XP, I2R(udg_Angle[GetRandomInt(1, 4)]) )
if ( Trig_Services_Func004Func004001() ) then
call UnitAddAbilityBJ( 'A004', GetLastCreatedUnit() )
else
call DoNothing( )
endif
set udg_PowerComsume = ( udg_PowerComsume + 5 )
set udg_Knowledge = ( udg_Knowledge + 50 )
call LeaderboardSetLabelBJ( udg_PowerMeter, ( "Power Consume : [" + ( I2S(udg_PowerComsume) + ( "/" + ( I2S(udg_PowerMax) + "]" ) ) ) ) )
call ForGroupBJ( GetUnitsInRangeOfLocMatching(1200.00, udg_XP, Condition(function Trig_Services_Func004Func008001003)), function Trig_Services_Func004Func008A )
call RemoveLocation(udg_XP)
else
endif
if ( Trig_Services_Func005C() ) then
set udg_XP = GetUnitLoc(GetTriggerUnit())
call RemoveUnit( GetTriggerUnit() )
call CreateNUnitsAtLoc( 1, 'h014', GetOwningPlayer(GetTriggerUnit()), udg_XP, I2R(udg_Angle[GetRandomInt(1, 4)]) )
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_Group_Hospital )
if ( Trig_Services_Func005Func005001() ) then
call UnitAddAbilityBJ( 'A004', GetLastCreatedUnit() )
else
call DoNothing( )
endif
set udg_PowerComsume = ( udg_PowerComsume + 5 )
call LeaderboardSetLabelBJ( udg_PowerMeter, ( "Power Consume : [" + ( I2S(udg_PowerComsume) + ( "/" + ( I2S(udg_PowerMax) + "]" ) ) ) ) )
call RemoveLocation(udg_XP)
else
endif
if ( Trig_Services_Func006C() ) then
set udg_XP = GetUnitLoc(GetTriggerUnit())
call RemoveUnit( GetTriggerUnit() )
call CreateNUnitsAtLoc( 1, 'h016', GetOwningPlayer(GetTriggerUnit()), udg_XP, I2R(udg_Angle[GetRandomInt(1, 4)]) )
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_Group_Police )
if ( Trig_Services_Func006Func005001() ) then
call UnitAddAbilityBJ( 'A004', GetLastCreatedUnit() )
else
call DoNothing( )
endif
set udg_PowerComsume = ( udg_PowerComsume + 5 )
call LeaderboardSetLabelBJ( udg_PowerMeter, ( "Power Consume : [" + ( I2S(udg_PowerComsume) + ( "/" + ( I2S(udg_PowerMax) + "]" ) ) ) ) )
call RemoveLocation(udg_XP)
else
endif
if ( Trig_Services_Func007C() ) then
set udg_XP = GetUnitLoc(GetTriggerUnit())
call RemoveUnit( GetTriggerUnit() )
call CreateNUnitsAtLoc( 1, 'h01B', GetOwningPlayer(GetTriggerUnit()), udg_XP, I2R(udg_Angle[GetRandomInt(1, 4)]) )
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_Group_FiireStation )
if ( Trig_Services_Func007Func005001() ) then
call UnitAddAbilityBJ( 'A004', GetLastCreatedUnit() )
else
call DoNothing( )
endif
set udg_PowerComsume = ( udg_PowerComsume + 5 )
call LeaderboardSetLabelBJ( udg_PowerMeter, ( "Power Consume : [" + ( I2S(udg_PowerComsume) + ( "/" + ( I2S(udg_PowerMax) + "]" ) ) ) ) )
call RemoveLocation(udg_XP)
else
endif
if ( Trig_Services_Func008C() ) then
set udg_XP = GetUnitLoc(GetTriggerUnit())
call RemoveUnit( GetTriggerUnit() )
call CreateNUnitsAtLoc( 1, 'h01N', GetOwningPlayer(GetTriggerUnit()), udg_XP, I2R(udg_Angle[GetRandomInt(1, 4)]) )
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_Group_Bus )
call RemoveLocation(udg_XP)
else
endif
if ( Trig_Services_Func009C() ) then
set udg_XP = GetUnitLoc(GetTriggerUnit())
call RemoveUnit( GetTriggerUnit() )
call CreateNUnitsAtLoc( 1, 'h01R', GetOwningPlayer(GetTriggerUnit()), udg_XP, I2R(udg_Angle[GetRandomInt(1, 4)]) )
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_Group_Park )
call RemoveLocation(udg_XP)
else
endif
endfunction
//===========================================================================
function InitTrig_Services takes nothing returns nothing
set gg_trg_Services = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Services, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddAction( gg_trg_Services, function Trig_Services_Actions )
endfunction
function Trig_Roads_Func003C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetConstructedStructure()) == 'h001' ) ) then
return false
endif
return true
endfunction
function Trig_Roads_Func004C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetConstructedStructure()) == 'h00A' ) ) then
return false
endif
return true
endfunction
function Trig_Roads_Actions takes nothing returns nothing
call AddUnitAnimationPropertiesBJ( false, "none", GetConstructedStructure() )
call AddUnitAnimationPropertiesBJ( true, "alternate", GetConstructedStructure() )
if ( Trig_Roads_Func003C() ) then
set udg_Terrain = 'Nrck'
set udg_CP = GetUnitLoc(GetConstructedStructure())
call RemoveUnit( GetConstructedStructure() )
call SetTerrainTypeBJ( udg_CP, udg_Terrain, -1, 1, 1 )
call RemoveLocation(udg_CP)
else
endif
if ( Trig_Roads_Func004C() ) then
set udg_Terrain = 'Adrg'
set udg_CP = GetUnitLoc(GetConstructedStructure())
call RemoveUnit( GetConstructedStructure() )
call SetTerrainTypeBJ( udg_CP, udg_Terrain, -1, 1, 1 )
call RemoveLocation(udg_CP)
else
endif
endfunction
//===========================================================================
function InitTrig_Roads takes nothing returns nothing
set gg_trg_Roads = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Roads, EVENT_PLAYER_UNIT_CONSTRUCT_FINISH )
call TriggerAddAction( gg_trg_Roads, function Trig_Roads_Actions )
endfunction
function Trig_Next_Day_Normal_Func003Func003Func002001001 takes nothing returns boolean
return ( GetUnitTypeId(GetEnumUnit()) == 'H00F' )
endfunction
function Trig_Next_Day_Normal_Func003Func003Func002001002 takes nothing returns boolean
return ( GetPlayerState(GetOwningPlayer(GetEnumUnit()), PLAYER_STATE_RESOURCE_FOOD_USED) > GetPlayerState(GetOwningPlayer(GetEnumUnit()), PLAYER_STATE_RESOURCE_FOOD_CAP) )
endfunction
function Trig_Next_Day_Normal_Func003Func003Func002001 takes nothing returns boolean
return GetBooleanAnd( Trig_Next_Day_Normal_Func003Func003Func002001001(), Trig_Next_Day_Normal_Func003Func003Func002001002() )
endfunction
function Trig_Next_Day_Normal_Func003Func003Func003001001 takes nothing returns boolean
return ( GetUnitTypeId(GetEnumUnit()) == 'H00G' )
endfunction
function Trig_Next_Day_Normal_Func003Func003Func003001002 takes nothing returns boolean
return ( GetPlayerState(GetOwningPlayer(GetEnumUnit()), PLAYER_STATE_RESOURCE_FOOD_CAP) > GetPlayerState(GetOwningPlayer(GetEnumUnit()), PLAYER_STATE_RESOURCE_FOOD_USED) )
endfunction
function Trig_Next_Day_Normal_Func003Func003Func003001 takes nothing returns boolean
return GetBooleanAnd( Trig_Next_Day_Normal_Func003Func003Func003001001(), Trig_Next_Day_Normal_Func003Func003Func003001002() )
endfunction
function Trig_Next_Day_Normal_Func003Func003Func004001001 takes nothing returns boolean
return ( GetUnitTypeId(GetEnumUnit()) == 'H00E' )
endfunction
function Trig_Next_Day_Normal_Func003Func003Func004001002 takes nothing returns boolean
return ( CountUnitsInGroup(udg_Group_Commercial) > CountUnitsInGroup(udg_Group_Industrial) )
endfunction
function Trig_Next_Day_Normal_Func003Func003Func004001 takes nothing returns boolean
return GetBooleanAnd( Trig_Next_Day_Normal_Func003Func003Func004001001(), Trig_Next_Day_Normal_Func003Func003Func004001002() )
endfunction
function Trig_Next_Day_Normal_Func003Func003Func005001 takes nothing returns boolean
return ( GetUnitTypeId(GetEnumUnit()) == 'h01B' )
endfunction
function Trig_Next_Day_Normal_Func003Func003Func006001 takes nothing returns boolean
return ( GetUnitTypeId(GetEnumUnit()) == 'h016' )
endfunction
function Trig_Next_Day_Normal_Func003Func003Func007001 takes nothing returns boolean
return ( GetUnitTypeId(GetEnumUnit()) == 'h019' )
endfunction
function Trig_Next_Day_Normal_Func003Func003A takes nothing returns nothing
call SetUnitManaBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_MANA, GetEnumUnit()) + 2.00 ) )
if ( Trig_Next_Day_Normal_Func003Func003Func002001() ) then
call SetUnitManaBJ( GetEnumUnit(), 0 )
else
call DoNothing( )
endif
if ( Trig_Next_Day_Normal_Func003Func003Func003001() ) then
call SetUnitManaBJ( GetEnumUnit(), 0 )
else
call DoNothing( )
endif
if ( Trig_Next_Day_Normal_Func003Func003Func004001() ) then
call SetUnitManaBJ( GetEnumUnit(), 0 )
else
call DoNothing( )
endif
if ( Trig_Next_Day_Normal_Func003Func003Func005001() ) then
call SetUnitManaPercentBJ( GetEnumUnit(), 100 )
else
call DoNothing( )
endif
if ( Trig_Next_Day_Normal_Func003Func003Func006001() ) then
call SetUnitManaPercentBJ( GetEnumUnit(), 100 )
else
call DoNothing( )
endif
if ( Trig_Next_Day_Normal_Func003Func003Func007001() ) then
call SetUnitManaPercentBJ( GetEnumUnit(), 100 )
else
call DoNothing( )
endif
endfunction
function Trig_Next_Day_Normal_Func003Func024Func001002 takes nothing returns nothing
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - 2.00 ) )
endfunction
function Trig_Next_Day_Normal_Func003Func024Func002002 takes nothing returns nothing
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - 2.00 ) )
endfunction
function Trig_Next_Day_Normal_Func003Func024Func003002 takes nothing returns nothing
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - 2.00 ) )
endfunction
function Trig_Next_Day_Normal_Func003Func024C takes nothing returns boolean
if ( not ( udg_PowerComsume > udg_PowerMax ) ) then
return false
endif
return true
endfunction
function Trig_Next_Day_Normal_Func003C takes nothing returns boolean
if ( not ( udg_Time <= 0 ) ) then
return false
endif
return true
endfunction
function Trig_Next_Day_Normal_Actions takes nothing returns nothing
set udg_Time = ( udg_Time - 1 )
call LeaderboardSetLabelBJ( udg_PowerMeter, ( "Next Day : " + udg_MeterTxt[udg_Time] ) )
if ( Trig_Next_Day_Normal_Func003C() ) then
set udg_Time = 24
call LeaderboardSetLabelBJ( udg_TimeDate, ( "Next Day : " + udg_MeterTxt[udg_Time] ) )
call ForGroupBJ( GetUnitsInRectAll(GetPlayableMapRect()), function Trig_Next_Day_Normal_Func003Func003A )
call SetPlayerStateBJ( Player(0), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(0), PLAYER_STATE_RESOURCE_GOLD) - ( CountUnitsInGroup(udg_Group_FiireStation) * 25 ) ) )
call SetPlayerStateBJ( Player(0), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(0), PLAYER_STATE_RESOURCE_GOLD) - ( CountUnitsInGroup(udg_Group_Hospital) * 25 ) ) )
call SetPlayerStateBJ( Player(0), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(0), PLAYER_STATE_RESOURCE_GOLD) - ( CountUnitsInGroup(udg_Group_Police) * 25 ) ) )
call SetPlayerStateBJ( Player(0), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(0), PLAYER_STATE_RESOURCE_GOLD) - ( CountUnitsInGroup(udg_Group_Bus) * 5 ) ) )
call SetPlayerStateBJ( Player(0), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(0), PLAYER_STATE_RESOURCE_GOLD) - ( CountUnitsInGroup(udg_Group_Park) * 2 ) ) )
call SetPlayerStateBJ( Player(0), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(0), PLAYER_STATE_RESOURCE_GOLD) - ( CountUnitsInGroup(udg_Group_Water) * 5 ) ) )
call SetPlayerStateBJ( Player(0), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(0), PLAYER_STATE_RESOURCE_GOLD) - ( CountUnitsInGroup(udg_Group_Wind) * 10 ) ) )
call SetPlayerStateBJ( Player(0), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(0), PLAYER_STATE_RESOURCE_GOLD) - ( CountLivingPlayerUnitsOfTypeId('h00U', Player(0)) * 25 ) ) )
call SetPlayerStateBJ( Player(0), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(0), PLAYER_STATE_RESOURCE_GOLD) - ( CountLivingPlayerUnitsOfTypeId('h019', Player(0)) * 50 ) ) )
call SetPlayerStateBJ( Player(0), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(0), PLAYER_STATE_RESOURCE_GOLD) - ( CountLivingPlayerUnitsOfTypeId('h01W', Player(0)) * 150 ) ) )
call SetPlayerStateBJ( Player(0), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(0), PLAYER_STATE_RESOURCE_GOLD) - ( CountLivingPlayerUnitsOfTypeId('h01Y', Player(0)) * 75 ) ) )
call SetPlayerStateBJ( Player(0), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(0), PLAYER_STATE_RESOURCE_GOLD) - ( CountLivingPlayerUnitsOfTypeId('h02G', Player(0)) * 100 ) ) )
call SetPlayerStateBJ( Player(0), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(0), PLAYER_STATE_RESOURCE_GOLD) - ( CountLivingPlayerUnitsOfTypeId('h02H', Player(0)) * 50 ) ) )
call AdjustPlayerStateBJ( ( udg_TaxRes * CountUnitsInGroup(udg_Group_Residence) ), Player(0), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( ( udg_TaxCom * CountUnitsInGroup(udg_Group_Commercial) ), Player(0), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( ( udg_TaxInd * CountUnitsInGroup(udg_Group_Industrial) ), Player(0), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( ( CountLivingPlayerUnitsOfTypeId('h02B', Player(0)) * 25 ), Player(0), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( ( CountLivingPlayerUnitsOfTypeId('h01X', Player(0)) * 100 ), Player(0), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( ( CountLivingPlayerUnitsOfTypeId('h02A', Player(0)) * 150 ), Player(0), PLAYER_STATE_RESOURCE_GOLD )
call ClearTextMessagesBJ( GetPlayersAll() )
if ( Trig_Next_Day_Normal_Func003Func024C() ) then
call ForGroupBJ( udg_Group_Residence, function Trig_Next_Day_Normal_Func003Func024Func001002 )
call ForGroupBJ( udg_Group_Commercial, function Trig_Next_Day_Normal_Func003Func024Func002002 )
call ForGroupBJ( udg_Group_Industrial, function Trig_Next_Day_Normal_Func003Func024Func003002 )
else
endif
call ConditionalTriggerExecute( gg_trg_Requested )
call ConditionalTriggerExecute( gg_trg_Requested_Copy )
call ConditionalTriggerExecute( gg_trg_Requested_Copy_2 )
call ConditionalTriggerExecute( gg_trg_Requested_Copy_3 )
call ConditionalTriggerExecute( gg_trg_Requested_Copy_4 )
call ConditionalTriggerExecute( gg_trg_Next_Day_Normal_Copy )
call ConditionalTriggerExecute( gg_trg_Next_Day_Normal_Copy_Copy )
call ConditionalTriggerExecute( gg_trg_Next_Day_Normal_Copy_Copy_2 )
call ConditionalTriggerExecute( gg_trg_Next_Day_Normal_Copy_Copy_3 )
else
endif
endfunction
//===========================================================================
function InitTrig_Next_Day_Normal takes nothing returns nothing
set gg_trg_Next_Day_Normal = CreateTrigger( )
call TriggerRegisterGameStateEventTimeOfDay( gg_trg_Next_Day_Normal, EQUAL, 1.00 )
call TriggerRegisterGameStateEventTimeOfDay( gg_trg_Next_Day_Normal, EQUAL, 2.00 )
call TriggerRegisterGameStateEventTimeOfDay( gg_trg_Next_Day_Normal, EQUAL, 3.00 )
call TriggerRegisterGameStateEventTimeOfDay( gg_trg_Next_Day_Normal, EQUAL, 4.00 )
call TriggerRegisterGameStateEventTimeOfDay( gg_trg_Next_Day_Normal, EQUAL, 5.00 )
call TriggerRegisterGameStateEventTimeOfDay( gg_trg_Next_Day_Normal, EQUAL, 6.00 )
call TriggerRegisterGameStateEventTimeOfDay( gg_trg_Next_Day_Normal, EQUAL, 7.00 )
call TriggerRegisterGameStateEventTimeOfDay( gg_trg_Next_Day_Normal, EQUAL, 8.00 )
call TriggerRegisterGameStateEventTimeOfDay( gg_trg_Next_Day_Normal, EQUAL, 9.00 )
call TriggerRegisterGameStateEventTimeOfDay( gg_trg_Next_Day_Normal, EQUAL, 10.00 )
call TriggerRegisterGameStateEventTimeOfDay( gg_trg_Next_Day_Normal, EQUAL, 11.00 )
call TriggerRegisterGameStateEventTimeOfDay( gg_trg_Next_Day_Normal, EQUAL, 12.00 )
call TriggerRegisterGameStateEventTimeOfDay( gg_trg_Next_Day_Normal, EQUAL, 13.00 )
call TriggerRegisterGameStateEventTimeOfDay( gg_trg_Next_Day_Normal, EQUAL, 14.00 )
call TriggerRegisterGameStateEventTimeOfDay( gg_trg_Next_Day_Normal, EQUAL, 15.00 )
call TriggerRegisterGameStateEventTimeOfDay( gg_trg_Next_Day_Normal, EQUAL, 16.00 )
call TriggerRegisterGameStateEventTimeOfDay( gg_trg_Next_Day_Normal, EQUAL, 17.00 )
call TriggerRegisterGameStateEventTimeOfDay( gg_trg_Next_Day_Normal, EQUAL, 18.00 )
call TriggerRegisterGameStateEventTimeOfDay( gg_trg_Next_Day_Normal, EQUAL, 19.00 )
call TriggerRegisterGameStateEventTimeOfDay( gg_trg_Next_Day_Normal, EQUAL, 20.00 )
call TriggerRegisterGameStateEventTimeOfDay( gg_trg_Next_Day_Normal, EQUAL, 21.00 )
call TriggerRegisterGameStateEventTimeOfDay( gg_trg_Next_Day_Normal, EQUAL, 22.00 )
call TriggerRegisterGameStateEventTimeOfDay( gg_trg_Next_Day_Normal, EQUAL, 23.00 )
call TriggerRegisterGameStateEventTimeOfDay( gg_trg_Next_Day_Normal, EQUAL, 24.00 )
call TriggerAddAction( gg_trg_Next_Day_Normal, function Trig_Next_Day_Normal_Actions )
endfunction
function Trig_Next_Day_Normal_Copy_Func001Func001Func002001001 takes nothing returns boolean
return ( GetUnitTypeId(GetEnumUnit()) == 'H00F' )
endfunction
function Trig_Next_Day_Normal_Copy_Func001Func001Func002001002 takes nothing returns boolean
return ( GetPlayerState(GetOwningPlayer(GetEnumUnit()), PLAYER_STATE_RESOURCE_FOOD_USED) > GetPlayerState(GetOwningPlayer(GetEnumUnit()), PLAYER_STATE_RESOURCE_FOOD_CAP) )
endfunction
function Trig_Next_Day_Normal_Copy_Func001Func001Func002001 takes nothing returns boolean
return GetBooleanAnd( Trig_Next_Day_Normal_Copy_Func001Func001Func002001001(), Trig_Next_Day_Normal_Copy_Func001Func001Func002001002() )
endfunction
function Trig_Next_Day_Normal_Copy_Func001Func001Func003001001 takes nothing returns boolean
return ( GetUnitTypeId(GetEnumUnit()) == 'H00G' )
endfunction
function Trig_Next_Day_Normal_Copy_Func001Func001Func003001002 takes nothing returns boolean
return ( GetPlayerState(GetOwningPlayer(GetEnumUnit()), PLAYER_STATE_RESOURCE_FOOD_CAP) > GetPlayerState(GetOwningPlayer(GetEnumUnit()), PLAYER_STATE_RESOURCE_FOOD_USED) )
endfunction
function Trig_Next_Day_Normal_Copy_Func001Func001Func003001 takes nothing returns boolean
return GetBooleanAnd( Trig_Next_Day_Normal_Copy_Func001Func001Func003001001(), Trig_Next_Day_Normal_Copy_Func001Func001Func003001002() )
endfunction
function Trig_Next_Day_Normal_Copy_Func001Func001Func004001001 takes nothing returns boolean
return ( GetUnitTypeId(GetEnumUnit()) == 'H00E' )
endfunction
function Trig_Next_Day_Normal_Copy_Func001Func001Func004001002 takes nothing returns boolean
return ( CountUnitsInGroup(udg_Group_Commercial) > CountUnitsInGroup(udg_Group_Industrial) )
endfunction
function Trig_Next_Day_Normal_Copy_Func001Func001Func004001 takes nothing returns boolean
return GetBooleanAnd( Trig_Next_Day_Normal_Copy_Func001Func001Func004001001(), Trig_Next_Day_Normal_Copy_Func001Func001Func004001002() )
endfunction
function Trig_Next_Day_Normal_Copy_Func001Func001Func005001 takes nothing returns boolean
return ( GetUnitTypeId(GetEnumUnit()) == 'h01B' )
endfunction
function Trig_Next_Day_Normal_Copy_Func001Func001Func006001 takes nothing returns boolean
return ( GetUnitTypeId(GetEnumUnit()) == 'h016' )
endfunction
function Trig_Next_Day_Normal_Copy_Func001Func001Func007001 takes nothing returns boolean
return ( GetUnitTypeId(GetEnumUnit()) == 'h019' )
endfunction
function Trig_Next_Day_Normal_Copy_Func001Func001A takes nothing returns nothing
call SetUnitManaBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_MANA, GetEnumUnit()) + 2.00 ) )
if ( Trig_Next_Day_Normal_Copy_Func001Func001Func002001() ) then
call SetUnitManaBJ( GetEnumUnit(), 0 )
else
call DoNothing( )
endif
if ( Trig_Next_Day_Normal_Copy_Func001Func001Func003001() ) then
call SetUnitManaBJ( GetEnumUnit(), 0 )
else
call DoNothing( )
endif
if ( Trig_Next_Day_Normal_Copy_Func001Func001Func004001() ) then
call SetUnitManaBJ( GetEnumUnit(), 0 )
else
call DoNothing( )
endif
if ( Trig_Next_Day_Normal_Copy_Func001Func001Func005001() ) then
call SetUnitManaPercentBJ( GetEnumUnit(), 100 )
else
call DoNothing( )
endif
if ( Trig_Next_Day_Normal_Copy_Func001Func001Func006001() ) then
call SetUnitManaPercentBJ( GetEnumUnit(), 100 )
else
call DoNothing( )
endif
if ( Trig_Next_Day_Normal_Copy_Func001Func001Func007001() ) then
call SetUnitManaPercentBJ( GetEnumUnit(), 100 )
else
call DoNothing( )
endif
endfunction
function Trig_Next_Day_Normal_Copy_Func001Func022Func001002 takes nothing returns nothing
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - 2.00 ) )
endfunction
function Trig_Next_Day_Normal_Copy_Func001Func022Func002002 takes nothing returns nothing
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - 2.00 ) )
endfunction
function Trig_Next_Day_Normal_Copy_Func001Func022Func003002 takes nothing returns nothing
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - 2.00 ) )
endfunction
function Trig_Next_Day_Normal_Copy_Func001Func022C takes nothing returns boolean
if ( not ( udg_PowerComsume > udg_PowerMax ) ) then
return false
endif
return true
endfunction
function Trig_Next_Day_Normal_Copy_Func001C takes nothing returns boolean
if ( not ( udg_Time <= 0 ) ) then
return false
endif
return true
endfunction
function Trig_Next_Day_Normal_Copy_Actions takes nothing returns nothing
if ( Trig_Next_Day_Normal_Copy_Func001C() ) then
call ForGroupBJ( GetUnitsInRectAll(GetPlayableMapRect()), function Trig_Next_Day_Normal_Copy_Func001Func001A )
call SetPlayerStateBJ( Player(1), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(1), PLAYER_STATE_RESOURCE_GOLD) - ( CountUnitsInGroup(udg_Group_FiireStation) * 25 ) ) )
call SetPlayerStateBJ( Player(1), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(1), PLAYER_STATE_RESOURCE_GOLD) - ( CountUnitsInGroup(udg_Group_Hospital) * 25 ) ) )
call SetPlayerStateBJ( Player(1), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(1), PLAYER_STATE_RESOURCE_GOLD) - ( CountUnitsInGroup(udg_Group_Police) * 25 ) ) )
call SetPlayerStateBJ( Player(1), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(1), PLAYER_STATE_RESOURCE_GOLD) - ( CountUnitsInGroup(udg_Group_Bus) * 5 ) ) )
call SetPlayerStateBJ( Player(1), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(1), PLAYER_STATE_RESOURCE_GOLD) - ( CountUnitsInGroup(udg_Group_Park) * 2 ) ) )
call SetPlayerStateBJ( Player(1), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(1), PLAYER_STATE_RESOURCE_GOLD) - ( CountUnitsInGroup(udg_Group_Water) * 5 ) ) )
call SetPlayerStateBJ( Player(1), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(1), PLAYER_STATE_RESOURCE_GOLD) - ( CountUnitsInGroup(udg_Group_Wind) * 10 ) ) )
call SetPlayerStateBJ( Player(1), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(1), PLAYER_STATE_RESOURCE_GOLD) - ( CountLivingPlayerUnitsOfTypeId('h00U', Player(1)) * 25 ) ) )
call SetPlayerStateBJ( Player(1), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(1), PLAYER_STATE_RESOURCE_GOLD) - ( CountLivingPlayerUnitsOfTypeId('h019', Player(1)) * 50 ) ) )
call SetPlayerStateBJ( Player(1), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(1), PLAYER_STATE_RESOURCE_GOLD) - ( CountLivingPlayerUnitsOfTypeId('h01W', Player(1)) * 150 ) ) )
call SetPlayerStateBJ( Player(1), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(1), PLAYER_STATE_RESOURCE_GOLD) - ( CountLivingPlayerUnitsOfTypeId('h01Y', Player(1)) * 75 ) ) )
call SetPlayerStateBJ( Player(1), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(1), PLAYER_STATE_RESOURCE_GOLD) - ( CountLivingPlayerUnitsOfTypeId('h02G', Player(1)) * 100 ) ) )
call SetPlayerStateBJ( Player(1), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(1), PLAYER_STATE_RESOURCE_GOLD) - ( CountLivingPlayerUnitsOfTypeId('h02H', Player(1)) * 50 ) ) )
call AdjustPlayerStateBJ( ( udg_TaxRes * CountUnitsInGroup(udg_Group_Residence) ), Player(1), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( ( udg_TaxCom * CountUnitsInGroup(udg_Group_Commercial) ), Player(1), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( ( udg_TaxInd * CountUnitsInGroup(udg_Group_Industrial) ), Player(1), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( ( CountLivingPlayerUnitsOfTypeId('h02B', Player(1)) * 25 ), Player(1), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( ( CountLivingPlayerUnitsOfTypeId('h01X', Player(1)) * 100 ), Player(1), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( ( CountLivingPlayerUnitsOfTypeId('h02A', Player(1)) * 150 ), Player(1), PLAYER_STATE_RESOURCE_GOLD )
call ClearTextMessagesBJ( GetPlayersAll() )
if ( Trig_Next_Day_Normal_Copy_Func001Func022C() ) then
call ForGroupBJ( udg_Group_Residence, function Trig_Next_Day_Normal_Copy_Func001Func022Func001002 )
call ForGroupBJ( udg_Group_Commercial, function Trig_Next_Day_Normal_Copy_Func001Func022Func002002 )
call ForGroupBJ( udg_Group_Industrial, function Trig_Next_Day_Normal_Copy_Func001Func022Func003002 )
else
endif
else
endif
endfunction
//===========================================================================
function InitTrig_Next_Day_Normal_Copy takes nothing returns nothing
set gg_trg_Next_Day_Normal_Copy = CreateTrigger( )
call TriggerAddAction( gg_trg_Next_Day_Normal_Copy, function Trig_Next_Day_Normal_Copy_Actions )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_Func001Func001Func002001001 takes nothing returns boolean
return ( GetUnitTypeId(GetEnumUnit()) == 'H00F' )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_Func001Func001Func002001002 takes nothing returns boolean
return ( GetPlayerState(GetOwningPlayer(GetEnumUnit()), PLAYER_STATE_RESOURCE_FOOD_USED) > GetPlayerState(GetOwningPlayer(GetEnumUnit()), PLAYER_STATE_RESOURCE_FOOD_CAP) )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_Func001Func001Func002001 takes nothing returns boolean
return GetBooleanAnd( Trig_Next_Day_Normal_Copy_Copy_Func001Func001Func002001001(), Trig_Next_Day_Normal_Copy_Copy_Func001Func001Func002001002() )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_Func001Func001Func003001001 takes nothing returns boolean
return ( GetUnitTypeId(GetEnumUnit()) == 'H00G' )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_Func001Func001Func003001002 takes nothing returns boolean
return ( GetPlayerState(GetOwningPlayer(GetEnumUnit()), PLAYER_STATE_RESOURCE_FOOD_CAP) > GetPlayerState(GetOwningPlayer(GetEnumUnit()), PLAYER_STATE_RESOURCE_FOOD_USED) )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_Func001Func001Func003001 takes nothing returns boolean
return GetBooleanAnd( Trig_Next_Day_Normal_Copy_Copy_Func001Func001Func003001001(), Trig_Next_Day_Normal_Copy_Copy_Func001Func001Func003001002() )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_Func001Func001Func004001001 takes nothing returns boolean
return ( GetUnitTypeId(GetEnumUnit()) == 'H00E' )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_Func001Func001Func004001002 takes nothing returns boolean
return ( CountUnitsInGroup(udg_Group_Commercial) > CountUnitsInGroup(udg_Group_Industrial) )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_Func001Func001Func004001 takes nothing returns boolean
return GetBooleanAnd( Trig_Next_Day_Normal_Copy_Copy_Func001Func001Func004001001(), Trig_Next_Day_Normal_Copy_Copy_Func001Func001Func004001002() )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_Func001Func001Func005001 takes nothing returns boolean
return ( GetUnitTypeId(GetEnumUnit()) == 'h01B' )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_Func001Func001Func006001 takes nothing returns boolean
return ( GetUnitTypeId(GetEnumUnit()) == 'h016' )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_Func001Func001Func007001 takes nothing returns boolean
return ( GetUnitTypeId(GetEnumUnit()) == 'h019' )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_Func001Func001A takes nothing returns nothing
call SetUnitManaBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_MANA, GetEnumUnit()) + 2.00 ) )
if ( Trig_Next_Day_Normal_Copy_Copy_Func001Func001Func002001() ) then
call SetUnitManaBJ( GetEnumUnit(), 0 )
else
call DoNothing( )
endif
if ( Trig_Next_Day_Normal_Copy_Copy_Func001Func001Func003001() ) then
call SetUnitManaBJ( GetEnumUnit(), 0 )
else
call DoNothing( )
endif
if ( Trig_Next_Day_Normal_Copy_Copy_Func001Func001Func004001() ) then
call SetUnitManaBJ( GetEnumUnit(), 0 )
else
call DoNothing( )
endif
if ( Trig_Next_Day_Normal_Copy_Copy_Func001Func001Func005001() ) then
call SetUnitManaPercentBJ( GetEnumUnit(), 100 )
else
call DoNothing( )
endif
if ( Trig_Next_Day_Normal_Copy_Copy_Func001Func001Func006001() ) then
call SetUnitManaPercentBJ( GetEnumUnit(), 100 )
else
call DoNothing( )
endif
if ( Trig_Next_Day_Normal_Copy_Copy_Func001Func001Func007001() ) then
call SetUnitManaPercentBJ( GetEnumUnit(), 100 )
else
call DoNothing( )
endif
endfunction
function Trig_Next_Day_Normal_Copy_Copy_Func001Func022Func001002 takes nothing returns nothing
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - 2.00 ) )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_Func001Func022Func002002 takes nothing returns nothing
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - 2.00 ) )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_Func001Func022Func003002 takes nothing returns nothing
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - 2.00 ) )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_Func001Func022C takes nothing returns boolean
if ( not ( udg_PowerComsume > udg_PowerMax ) ) then
return false
endif
return true
endfunction
function Trig_Next_Day_Normal_Copy_Copy_Func001C takes nothing returns boolean
if ( not ( udg_Time <= 0 ) ) then
return false
endif
return true
endfunction
function Trig_Next_Day_Normal_Copy_Copy_Actions takes nothing returns nothing
if ( Trig_Next_Day_Normal_Copy_Copy_Func001C() ) then
call ForGroupBJ( GetUnitsInRectAll(GetPlayableMapRect()), function Trig_Next_Day_Normal_Copy_Copy_Func001Func001A )
call SetPlayerStateBJ( Player(2), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(2), PLAYER_STATE_RESOURCE_GOLD) - ( CountUnitsInGroup(udg_Group_FiireStation) * 25 ) ) )
call SetPlayerStateBJ( Player(2), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(2), PLAYER_STATE_RESOURCE_GOLD) - ( CountUnitsInGroup(udg_Group_Hospital) * 25 ) ) )
call SetPlayerStateBJ( Player(2), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(2), PLAYER_STATE_RESOURCE_GOLD) - ( CountUnitsInGroup(udg_Group_Police) * 25 ) ) )
call SetPlayerStateBJ( Player(2), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(2), PLAYER_STATE_RESOURCE_GOLD) - ( CountUnitsInGroup(udg_Group_Bus) * 5 ) ) )
call SetPlayerStateBJ( Player(2), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(2), PLAYER_STATE_RESOURCE_GOLD) - ( CountUnitsInGroup(udg_Group_Park) * 2 ) ) )
call SetPlayerStateBJ( Player(2), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(2), PLAYER_STATE_RESOURCE_GOLD) - ( CountUnitsInGroup(udg_Group_Water) * 5 ) ) )
call SetPlayerStateBJ( Player(2), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(2), PLAYER_STATE_RESOURCE_GOLD) - ( CountUnitsInGroup(udg_Group_Wind) * 10 ) ) )
call SetPlayerStateBJ( Player(2), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(2), PLAYER_STATE_RESOURCE_GOLD) - ( CountLivingPlayerUnitsOfTypeId('h00U', Player(2)) * 25 ) ) )
call SetPlayerStateBJ( Player(2), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(2), PLAYER_STATE_RESOURCE_GOLD) - ( CountLivingPlayerUnitsOfTypeId('h019', Player(2)) * 50 ) ) )
call SetPlayerStateBJ( Player(2), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(2), PLAYER_STATE_RESOURCE_GOLD) - ( CountLivingPlayerUnitsOfTypeId('h01W', Player(2)) * 150 ) ) )
call SetPlayerStateBJ( Player(2), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(2), PLAYER_STATE_RESOURCE_GOLD) - ( CountLivingPlayerUnitsOfTypeId('h01Y', Player(2)) * 75 ) ) )
call SetPlayerStateBJ( Player(2), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(2), PLAYER_STATE_RESOURCE_GOLD) - ( CountLivingPlayerUnitsOfTypeId('h02G', Player(2)) * 100 ) ) )
call SetPlayerStateBJ( Player(2), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(2), PLAYER_STATE_RESOURCE_GOLD) - ( CountLivingPlayerUnitsOfTypeId('h02H', Player(2)) * 50 ) ) )
call AdjustPlayerStateBJ( ( udg_TaxRes * CountUnitsInGroup(udg_Group_Residence) ), Player(1), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( ( udg_TaxCom * CountUnitsInGroup(udg_Group_Commercial) ), Player(1), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( ( udg_TaxInd * CountUnitsInGroup(udg_Group_Industrial) ), Player(1), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( ( CountLivingPlayerUnitsOfTypeId('h02B', Player(2)) * 25 ), Player(1), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( ( CountLivingPlayerUnitsOfTypeId('h01X', Player(2)) * 100 ), Player(1), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( ( CountLivingPlayerUnitsOfTypeId('h02A', Player(2)) * 150 ), Player(1), PLAYER_STATE_RESOURCE_GOLD )
call ClearTextMessagesBJ( GetPlayersAll() )
if ( Trig_Next_Day_Normal_Copy_Copy_Func001Func022C() ) then
call ForGroupBJ( udg_Group_Residence, function Trig_Next_Day_Normal_Copy_Copy_Func001Func022Func001002 )
call ForGroupBJ( udg_Group_Commercial, function Trig_Next_Day_Normal_Copy_Copy_Func001Func022Func002002 )
call ForGroupBJ( udg_Group_Industrial, function Trig_Next_Day_Normal_Copy_Copy_Func001Func022Func003002 )
else
endif
else
endif
endfunction
//===========================================================================
function InitTrig_Next_Day_Normal_Copy_Copy takes nothing returns nothing
set gg_trg_Next_Day_Normal_Copy_Copy = CreateTrigger( )
call TriggerAddAction( gg_trg_Next_Day_Normal_Copy_Copy, function Trig_Next_Day_Normal_Copy_Copy_Actions )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_2_Func001Func001Func002001001 takes nothing returns boolean
return ( GetUnitTypeId(GetEnumUnit()) == 'H00F' )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_2_Func001Func001Func002001002 takes nothing returns boolean
return ( GetPlayerState(GetOwningPlayer(GetEnumUnit()), PLAYER_STATE_RESOURCE_FOOD_USED) > GetPlayerState(GetOwningPlayer(GetEnumUnit()), PLAYER_STATE_RESOURCE_FOOD_CAP) )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_2_Func001Func001Func002001 takes nothing returns boolean
return GetBooleanAnd( Trig_Next_Day_Normal_Copy_Copy_2_Func001Func001Func002001001(), Trig_Next_Day_Normal_Copy_Copy_2_Func001Func001Func002001002() )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_2_Func001Func001Func003001001 takes nothing returns boolean
return ( GetUnitTypeId(GetEnumUnit()) == 'H00G' )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_2_Func001Func001Func003001002 takes nothing returns boolean
return ( GetPlayerState(GetOwningPlayer(GetEnumUnit()), PLAYER_STATE_RESOURCE_FOOD_CAP) > GetPlayerState(GetOwningPlayer(GetEnumUnit()), PLAYER_STATE_RESOURCE_FOOD_USED) )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_2_Func001Func001Func003001 takes nothing returns boolean
return GetBooleanAnd( Trig_Next_Day_Normal_Copy_Copy_2_Func001Func001Func003001001(), Trig_Next_Day_Normal_Copy_Copy_2_Func001Func001Func003001002() )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_2_Func001Func001Func004001001 takes nothing returns boolean
return ( GetUnitTypeId(GetEnumUnit()) == 'H00E' )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_2_Func001Func001Func004001002 takes nothing returns boolean
return ( CountUnitsInGroup(udg_Group_Commercial) > CountUnitsInGroup(udg_Group_Industrial) )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_2_Func001Func001Func004001 takes nothing returns boolean
return GetBooleanAnd( Trig_Next_Day_Normal_Copy_Copy_2_Func001Func001Func004001001(), Trig_Next_Day_Normal_Copy_Copy_2_Func001Func001Func004001002() )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_2_Func001Func001Func005001 takes nothing returns boolean
return ( GetUnitTypeId(GetEnumUnit()) == 'h01B' )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_2_Func001Func001Func006001 takes nothing returns boolean
return ( GetUnitTypeId(GetEnumUnit()) == 'h016' )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_2_Func001Func001Func007001 takes nothing returns boolean
return ( GetUnitTypeId(GetEnumUnit()) == 'h019' )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_2_Func001Func001A takes nothing returns nothing
call SetUnitManaBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_MANA, GetEnumUnit()) + 2.00 ) )
if ( Trig_Next_Day_Normal_Copy_Copy_2_Func001Func001Func002001() ) then
call SetUnitManaBJ( GetEnumUnit(), 0 )
else
call DoNothing( )
endif
if ( Trig_Next_Day_Normal_Copy_Copy_2_Func001Func001Func003001() ) then
call SetUnitManaBJ( GetEnumUnit(), 0 )
else
call DoNothing( )
endif
if ( Trig_Next_Day_Normal_Copy_Copy_2_Func001Func001Func004001() ) then
call SetUnitManaBJ( GetEnumUnit(), 0 )
else
call DoNothing( )
endif
if ( Trig_Next_Day_Normal_Copy_Copy_2_Func001Func001Func005001() ) then
call SetUnitManaPercentBJ( GetEnumUnit(), 100 )
else
call DoNothing( )
endif
if ( Trig_Next_Day_Normal_Copy_Copy_2_Func001Func001Func006001() ) then
call SetUnitManaPercentBJ( GetEnumUnit(), 100 )
else
call DoNothing( )
endif
if ( Trig_Next_Day_Normal_Copy_Copy_2_Func001Func001Func007001() ) then
call SetUnitManaPercentBJ( GetEnumUnit(), 100 )
else
call DoNothing( )
endif
endfunction
function Trig_Next_Day_Normal_Copy_Copy_2_Func001Func022Func001002 takes nothing returns nothing
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - 2.00 ) )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_2_Func001Func022Func002002 takes nothing returns nothing
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - 2.00 ) )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_2_Func001Func022Func003002 takes nothing returns nothing
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - 2.00 ) )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_2_Func001Func022C takes nothing returns boolean
if ( not ( udg_PowerComsume > udg_PowerMax ) ) then
return false
endif
return true
endfunction
function Trig_Next_Day_Normal_Copy_Copy_2_Func001C takes nothing returns boolean
if ( not ( udg_Time <= 0 ) ) then
return false
endif
return true
endfunction
function Trig_Next_Day_Normal_Copy_Copy_2_Actions takes nothing returns nothing
if ( Trig_Next_Day_Normal_Copy_Copy_2_Func001C() ) then
call ForGroupBJ( GetUnitsInRectAll(GetPlayableMapRect()), function Trig_Next_Day_Normal_Copy_Copy_2_Func001Func001A )
call SetPlayerStateBJ( Player(3), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(3), PLAYER_STATE_RESOURCE_GOLD) - ( CountUnitsInGroup(udg_Group_FiireStation) * 25 ) ) )
call SetPlayerStateBJ( Player(3), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(3), PLAYER_STATE_RESOURCE_GOLD) - ( CountUnitsInGroup(udg_Group_Hospital) * 25 ) ) )
call SetPlayerStateBJ( Player(3), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(3), PLAYER_STATE_RESOURCE_GOLD) - ( CountUnitsInGroup(udg_Group_Police) * 25 ) ) )
call SetPlayerStateBJ( Player(3), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(3), PLAYER_STATE_RESOURCE_GOLD) - ( CountUnitsInGroup(udg_Group_Bus) * 5 ) ) )
call SetPlayerStateBJ( Player(3), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(3), PLAYER_STATE_RESOURCE_GOLD) - ( CountUnitsInGroup(udg_Group_Park) * 2 ) ) )
call SetPlayerStateBJ( Player(3), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(3), PLAYER_STATE_RESOURCE_GOLD) - ( CountUnitsInGroup(udg_Group_Water) * 5 ) ) )
call SetPlayerStateBJ( Player(3), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(3), PLAYER_STATE_RESOURCE_GOLD) - ( CountUnitsInGroup(udg_Group_Wind) * 10 ) ) )
call SetPlayerStateBJ( Player(3), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(3), PLAYER_STATE_RESOURCE_GOLD) - ( CountLivingPlayerUnitsOfTypeId('h00U', Player(3)) * 25 ) ) )
call SetPlayerStateBJ( Player(3), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(3), PLAYER_STATE_RESOURCE_GOLD) - ( CountLivingPlayerUnitsOfTypeId('h019', Player(3)) * 50 ) ) )
call SetPlayerStateBJ( Player(3), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(3), PLAYER_STATE_RESOURCE_GOLD) - ( CountLivingPlayerUnitsOfTypeId('h01W', Player(3)) * 150 ) ) )
call SetPlayerStateBJ( Player(3), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(3), PLAYER_STATE_RESOURCE_GOLD) - ( CountLivingPlayerUnitsOfTypeId('h01Y', Player(3)) * 75 ) ) )
call SetPlayerStateBJ( Player(3), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(3), PLAYER_STATE_RESOURCE_GOLD) - ( CountLivingPlayerUnitsOfTypeId('h02G', Player(3)) * 100 ) ) )
call SetPlayerStateBJ( Player(3), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(3), PLAYER_STATE_RESOURCE_GOLD) - ( CountLivingPlayerUnitsOfTypeId('h02H', Player(3)) * 50 ) ) )
call AdjustPlayerStateBJ( ( udg_TaxRes * CountUnitsInGroup(udg_Group_Residence) ), Player(3), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( ( udg_TaxCom * CountUnitsInGroup(udg_Group_Commercial) ), Player(3), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( ( udg_TaxInd * CountUnitsInGroup(udg_Group_Industrial) ), Player(3), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( ( CountLivingPlayerUnitsOfTypeId('h02B', Player(3)) * 25 ), Player(3), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( ( CountLivingPlayerUnitsOfTypeId('h01X', Player(3)) * 100 ), Player(3), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( ( CountLivingPlayerUnitsOfTypeId('h02A', Player(3)) * 150 ), Player(3), PLAYER_STATE_RESOURCE_GOLD )
call ClearTextMessagesBJ( GetPlayersAll() )
if ( Trig_Next_Day_Normal_Copy_Copy_2_Func001Func022C() ) then
call ForGroupBJ( udg_Group_Residence, function Trig_Next_Day_Normal_Copy_Copy_2_Func001Func022Func001002 )
call ForGroupBJ( udg_Group_Commercial, function Trig_Next_Day_Normal_Copy_Copy_2_Func001Func022Func002002 )
call ForGroupBJ( udg_Group_Industrial, function Trig_Next_Day_Normal_Copy_Copy_2_Func001Func022Func003002 )
else
endif
else
endif
endfunction
//===========================================================================
function InitTrig_Next_Day_Normal_Copy_Copy_2 takes nothing returns nothing
set gg_trg_Next_Day_Normal_Copy_Copy_2 = CreateTrigger( )
call TriggerAddAction( gg_trg_Next_Day_Normal_Copy_Copy_2, function Trig_Next_Day_Normal_Copy_Copy_2_Actions )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_3_Func001Func001Func002001001 takes nothing returns boolean
return ( GetUnitTypeId(GetEnumUnit()) == 'H00F' )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_3_Func001Func001Func002001002 takes nothing returns boolean
return ( GetPlayerState(GetOwningPlayer(GetEnumUnit()), PLAYER_STATE_RESOURCE_FOOD_USED) > GetPlayerState(GetOwningPlayer(GetEnumUnit()), PLAYER_STATE_RESOURCE_FOOD_CAP) )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_3_Func001Func001Func002001 takes nothing returns boolean
return GetBooleanAnd( Trig_Next_Day_Normal_Copy_Copy_3_Func001Func001Func002001001(), Trig_Next_Day_Normal_Copy_Copy_3_Func001Func001Func002001002() )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_3_Func001Func001Func003001001 takes nothing returns boolean
return ( GetUnitTypeId(GetEnumUnit()) == 'H00G' )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_3_Func001Func001Func003001002 takes nothing returns boolean
return ( GetPlayerState(GetOwningPlayer(GetEnumUnit()), PLAYER_STATE_RESOURCE_FOOD_CAP) > GetPlayerState(GetOwningPlayer(GetEnumUnit()), PLAYER_STATE_RESOURCE_FOOD_USED) )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_3_Func001Func001Func003001 takes nothing returns boolean
return GetBooleanAnd( Trig_Next_Day_Normal_Copy_Copy_3_Func001Func001Func003001001(), Trig_Next_Day_Normal_Copy_Copy_3_Func001Func001Func003001002() )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_3_Func001Func001Func004001001 takes nothing returns boolean
return ( GetUnitTypeId(GetEnumUnit()) == 'H00E' )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_3_Func001Func001Func004001002 takes nothing returns boolean
return ( CountUnitsInGroup(udg_Group_Commercial) > CountUnitsInGroup(udg_Group_Industrial) )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_3_Func001Func001Func004001 takes nothing returns boolean
return GetBooleanAnd( Trig_Next_Day_Normal_Copy_Copy_3_Func001Func001Func004001001(), Trig_Next_Day_Normal_Copy_Copy_3_Func001Func001Func004001002() )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_3_Func001Func001Func005001 takes nothing returns boolean
return ( GetUnitTypeId(GetEnumUnit()) == 'h01B' )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_3_Func001Func001Func006001 takes nothing returns boolean
return ( GetUnitTypeId(GetEnumUnit()) == 'h016' )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_3_Func001Func001Func007001 takes nothing returns boolean
return ( GetUnitTypeId(GetEnumUnit()) == 'h019' )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_3_Func001Func001A takes nothing returns nothing
call SetUnitManaBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_MANA, GetEnumUnit()) + 2.00 ) )
if ( Trig_Next_Day_Normal_Copy_Copy_3_Func001Func001Func002001() ) then
call SetUnitManaBJ( GetEnumUnit(), 0 )
else
call DoNothing( )
endif
if ( Trig_Next_Day_Normal_Copy_Copy_3_Func001Func001Func003001() ) then
call SetUnitManaBJ( GetEnumUnit(), 0 )
else
call DoNothing( )
endif
if ( Trig_Next_Day_Normal_Copy_Copy_3_Func001Func001Func004001() ) then
call SetUnitManaBJ( GetEnumUnit(), 0 )
else
call DoNothing( )
endif
if ( Trig_Next_Day_Normal_Copy_Copy_3_Func001Func001Func005001() ) then
call SetUnitManaPercentBJ( GetEnumUnit(), 100 )
else
call DoNothing( )
endif
if ( Trig_Next_Day_Normal_Copy_Copy_3_Func001Func001Func006001() ) then
call SetUnitManaPercentBJ( GetEnumUnit(), 100 )
else
call DoNothing( )
endif
if ( Trig_Next_Day_Normal_Copy_Copy_3_Func001Func001Func007001() ) then
call SetUnitManaPercentBJ( GetEnumUnit(), 100 )
else
call DoNothing( )
endif
endfunction
function Trig_Next_Day_Normal_Copy_Copy_3_Func001Func022Func001002 takes nothing returns nothing
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - 2.00 ) )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_3_Func001Func022Func002002 takes nothing returns nothing
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - 2.00 ) )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_3_Func001Func022Func003002 takes nothing returns nothing
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - 2.00 ) )
endfunction
function Trig_Next_Day_Normal_Copy_Copy_3_Func001Func022C takes nothing returns boolean
if ( not ( udg_PowerComsume > udg_PowerMax ) ) then
return false
endif
return true
endfunction
function Trig_Next_Day_Normal_Copy_Copy_3_Func001C takes nothing returns boolean
if ( not ( udg_Time <= 0 ) ) then
return false
endif
return true
endfunction
function Trig_Next_Day_Normal_Copy_Copy_3_Actions takes nothing returns nothing
if ( Trig_Next_Day_Normal_Copy_Copy_3_Func001C() ) then
call ForGroupBJ( GetUnitsInRectAll(GetPlayableMapRect()), function Trig_Next_Day_Normal_Copy_Copy_3_Func001Func001A )
call SetPlayerStateBJ( Player(4), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(4), PLAYER_STATE_RESOURCE_GOLD) - ( CountUnitsInGroup(udg_Group_FiireStation) * 25 ) ) )
call SetPlayerStateBJ( Player(4), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(4), PLAYER_STATE_RESOURCE_GOLD) - ( CountUnitsInGroup(udg_Group_Hospital) * 25 ) ) )
call SetPlayerStateBJ( Player(4), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(4), PLAYER_STATE_RESOURCE_GOLD) - ( CountUnitsInGroup(udg_Group_Police) * 25 ) ) )
call SetPlayerStateBJ( Player(4), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(4), PLAYER_STATE_RESOURCE_GOLD) - ( CountUnitsInGroup(udg_Group_Bus) * 5 ) ) )
call SetPlayerStateBJ( Player(4), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(4), PLAYER_STATE_RESOURCE_GOLD) - ( CountUnitsInGroup(udg_Group_Park) * 2 ) ) )
call SetPlayerStateBJ( Player(4), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(4), PLAYER_STATE_RESOURCE_GOLD) - ( CountUnitsInGroup(udg_Group_Water) * 5 ) ) )
call SetPlayerStateBJ( Player(4), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(4), PLAYER_STATE_RESOURCE_GOLD) - ( CountUnitsInGroup(udg_Group_Wind) * 10 ) ) )
call SetPlayerStateBJ( Player(4), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(4), PLAYER_STATE_RESOURCE_GOLD) - ( CountLivingPlayerUnitsOfTypeId('h00U', Player(4)) * 25 ) ) )
call SetPlayerStateBJ( Player(4), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(4), PLAYER_STATE_RESOURCE_GOLD) - ( CountLivingPlayerUnitsOfTypeId('h019', Player(4)) * 50 ) ) )
call SetPlayerStateBJ( Player(4), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(4), PLAYER_STATE_RESOURCE_GOLD) - ( CountLivingPlayerUnitsOfTypeId('h01W', Player(4)) * 150 ) ) )
call SetPlayerStateBJ( Player(4), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(4), PLAYER_STATE_RESOURCE_GOLD) - ( CountLivingPlayerUnitsOfTypeId('h01Y', Player(4)) * 75 ) ) )
call SetPlayerStateBJ( Player(4), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(4), PLAYER_STATE_RESOURCE_GOLD) - ( CountLivingPlayerUnitsOfTypeId('h02G', Player(4)) * 100 ) ) )
call SetPlayerStateBJ( Player(4), PLAYER_STATE_RESOURCE_GOLD, ( GetPlayerState(Player(4), PLAYER_STATE_RESOURCE_GOLD) - ( CountLivingPlayerUnitsOfTypeId('h02H', Player(4)) * 50 ) ) )
call AdjustPlayerStateBJ( ( udg_TaxRes * CountUnitsInGroup(udg_Group_Residence) ), Player(4), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( ( udg_TaxCom * CountUnitsInGroup(udg_Group_Commercial) ), Player(4), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( ( udg_TaxInd * CountUnitsInGroup(udg_Group_Industrial) ), Player(4), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( ( CountLivingPlayerUnitsOfTypeId('h02B', Player(4)) * 25 ), Player(4), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( ( CountLivingPlayerUnitsOfTypeId('h01X', Player(4)) * 100 ), Player(4), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( ( CountLivingPlayerUnitsOfTypeId('h02A', Player(4)) * 150 ), Player(4), PLAYER_STATE_RESOURCE_GOLD )
call ClearTextMessagesBJ( GetPlayersAll() )
if ( Trig_Next_Day_Normal_Copy_Copy_3_Func001Func022C() ) then
call ForGroupBJ( udg_Group_Residence, function Trig_Next_Day_Normal_Copy_Copy_3_Func001Func022Func001002 )
call ForGroupBJ( udg_Group_Commercial, function Trig_Next_Day_Normal_Copy_Copy_3_Func001Func022Func002002 )
call ForGroupBJ( udg_Group_Industrial, function Trig_Next_Day_Normal_Copy_Copy_3_Func001Func022Func003002 )
else
endif
else
endif
endfunction
//===========================================================================
function InitTrig_Next_Day_Normal_Copy_Copy_3 takes nothing returns nothing
set gg_trg_Next_Day_Normal_Copy_Copy_3 = CreateTrigger( )
call TriggerAddAction( gg_trg_Next_Day_Normal_Copy_Copy_3, function Trig_Next_Day_Normal_Copy_Copy_3_Actions )
endfunction
function Trig_Requested_Func001Func001001001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h019' )
endfunction
function Trig_Requested_Func001C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Requested_Func001Func001001001002))) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00M', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00B', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00P', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00Q', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00R', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00S', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00I', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00J', GetTriggerUnit()) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Requested_Func002Func001001001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01W' )
endfunction
function Trig_Requested_Func002C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Requested_Func002Func001001001002))) == 0 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(0), PLAYER_STATE_RESOURCE_FOOD_USED) >= 75 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(0), PLAYER_STATE_RESOURCE_FOOD_CAP) >= 75 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00M', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00B', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00P', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00Q', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00R', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00S', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00I', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00J', GetTriggerUnit()) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Requested_Func003Func001001001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h02B' )
endfunction
function Trig_Requested_Func003C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Requested_Func003Func001001001002))) == 0 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(0), PLAYER_STATE_RESOURCE_FOOD_USED) >= 100 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(0), PLAYER_STATE_RESOURCE_FOOD_CAP) >= 100 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00M', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00B', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00P', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00Q', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00R', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00S', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00I', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00J', GetTriggerUnit()) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Requested_Func004Func001001001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01X' )
endfunction
function Trig_Requested_Func004C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Requested_Func004Func001001001002))) == 0 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(0), PLAYER_STATE_RESOURCE_FOOD_USED) >= 150 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(0), PLAYER_STATE_RESOURCE_FOOD_CAP) >= 150 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00M', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00B', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00P', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00Q', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00R', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00S', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00I', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00J', GetTriggerUnit()) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Requested_Func005Func001001001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h02G' )
endfunction
function Trig_Requested_Func005C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Requested_Func005Func001001001002))) == 0 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(udg_Group_Squaters) >= 10 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(0), PLAYER_STATE_RESOURCE_FOOD_USED) >= 100 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(0), PLAYER_STATE_RESOURCE_FOOD_CAP) >= 100 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00M', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00B', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00P', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00Q', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00R', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00S', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00I', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00J', GetTriggerUnit()) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Requested_Func006Func001001001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h02H' )
endfunction
function Trig_Requested_Func006C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Requested_Func006Func001001001002))) == 0 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(udg_Group_Squaters) >= 10 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(0), PLAYER_STATE_RESOURCE_FOOD_USED) >= 150 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(0), PLAYER_STATE_RESOURCE_FOOD_CAP) >= 150 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00M', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00B', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00P', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00Q', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00R', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00S', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00I', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00J', GetTriggerUnit()) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Requested_Func007Func001001001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01Y' )
endfunction
function Trig_Requested_Func007C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Requested_Func007Func001001001002))) == 0 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(udg_Group_Squaters) >= 8 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(0), PLAYER_STATE_RESOURCE_FOOD_USED) > GetPlayerState(Player(0), PLAYER_STATE_RESOURCE_FOOD_CAP) ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00M', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00B', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00P', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00Q', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00R', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00S', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00I', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00J', GetTriggerUnit()) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Requested_Func008Func001001001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h02A' )
endfunction
function Trig_Requested_Func008C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Requested_Func008Func001001001002))) == 0 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(0), PLAYER_STATE_RESOURCE_FOOD_USED) >= 200 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(0), PLAYER_STATE_RESOURCE_FOOD_CAP) >= 200 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00M', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00B', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00P', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00Q', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00R', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00S', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00I', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00J', GetTriggerUnit()) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Requested_Actions takes nothing returns nothing
if ( Trig_Requested_Func001C() ) then
call UnitAddAbilityBJ( 'A00M', udg_Request )
else
endif
if ( Trig_Requested_Func002C() ) then
call UnitAddAbilityBJ( 'A00B', udg_Request )
else
endif
if ( Trig_Requested_Func003C() ) then
call UnitAddAbilityBJ( 'A00S', udg_Request )
else
endif
if ( Trig_Requested_Func004C() ) then
call UnitAddAbilityBJ( 'A00P', udg_Request )
else
endif
if ( Trig_Requested_Func005C() ) then
call UnitAddAbilityBJ( 'A00I', udg_Request )
call DisableTrigger( gg_trg_Distriibute )
else
endif
if ( Trig_Requested_Func006C() ) then
call UnitAddAbilityBJ( 'A00J', udg_Request )
else
endif
if ( Trig_Requested_Func007C() ) then
call UnitAddAbilityBJ( 'A00Q', udg_Request )
else
endif
if ( Trig_Requested_Func008C() ) then
call UnitAddAbilityBJ( 'A00R', udg_Request )
else
endif
endfunction
//===========================================================================
function InitTrig_Requested takes nothing returns nothing
set gg_trg_Requested = CreateTrigger( )
call TriggerAddAction( gg_trg_Requested, function Trig_Requested_Actions )
endfunction
function Trig_Requested_Copy_Func001Func001001001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h019' )
endfunction
function Trig_Requested_Copy_Func001C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Requested_Copy_Func001Func001001001002))) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00M', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00B', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00P', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00Q', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00R', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00S', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00I', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00J', GetTriggerUnit()) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Requested_Copy_Func002Func001001001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01W' )
endfunction
function Trig_Requested_Copy_Func002C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Requested_Copy_Func002Func001001001002))) == 0 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(1), PLAYER_STATE_RESOURCE_FOOD_USED) >= 75 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(1), PLAYER_STATE_RESOURCE_FOOD_CAP) >= 75 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00M', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00B', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00P', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00Q', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00R', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00S', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00I', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00J', GetTriggerUnit()) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Requested_Copy_Func003Func001001001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h02B' )
endfunction
function Trig_Requested_Copy_Func003C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Requested_Copy_Func003Func001001001002))) == 0 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(1), PLAYER_STATE_RESOURCE_FOOD_USED) >= 100 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(1), PLAYER_STATE_RESOURCE_FOOD_CAP) >= 100 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00M', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00B', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00P', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00Q', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00R', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00S', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00I', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00J', GetTriggerUnit()) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Requested_Copy_Func004Func001001001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01X' )
endfunction
function Trig_Requested_Copy_Func004C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Requested_Copy_Func004Func001001001002))) == 0 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(1), PLAYER_STATE_RESOURCE_FOOD_USED) >= 150 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(1), PLAYER_STATE_RESOURCE_FOOD_CAP) >= 150 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00M', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00B', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00P', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00Q', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00R', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00S', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00I', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00J', GetTriggerUnit()) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Requested_Copy_Func005Func001001001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h02G' )
endfunction
function Trig_Requested_Copy_Func005C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Requested_Copy_Func005Func001001001002))) == 0 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(udg_Group_Squaters) >= 10 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(1), PLAYER_STATE_RESOURCE_FOOD_USED) >= 100 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(1), PLAYER_STATE_RESOURCE_FOOD_CAP) >= 100 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00M', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00B', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00P', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00Q', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00R', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00S', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00I', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00J', GetTriggerUnit()) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Requested_Copy_Func006Func001001001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h02H' )
endfunction
function Trig_Requested_Copy_Func006C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Requested_Copy_Func006Func001001001002))) == 0 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(udg_Group_Squaters) >= 10 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(1), PLAYER_STATE_RESOURCE_FOOD_USED) >= 150 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(1), PLAYER_STATE_RESOURCE_FOOD_CAP) >= 150 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00M', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00B', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00P', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00Q', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00R', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00S', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00I', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00J', GetTriggerUnit()) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Requested_Copy_Func007Func001001001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01Y' )
endfunction
function Trig_Requested_Copy_Func007C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Requested_Copy_Func007Func001001001002))) == 0 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(udg_Group_Squaters) >= 8 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(1), PLAYER_STATE_RESOURCE_FOOD_USED) > GetPlayerState(Player(1), PLAYER_STATE_RESOURCE_FOOD_CAP) ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00M', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00B', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00P', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00Q', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00R', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00S', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00I', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00J', GetTriggerUnit()) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Requested_Copy_Func008Func001001001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h02A' )
endfunction
function Trig_Requested_Copy_Func008C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Requested_Copy_Func008Func001001001002))) == 0 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(1), PLAYER_STATE_RESOURCE_FOOD_USED) >= 200 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(1), PLAYER_STATE_RESOURCE_FOOD_CAP) >= 200 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00M', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00B', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00P', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00Q', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00R', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00S', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00I', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00J', GetTriggerUnit()) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Requested_Copy_Actions takes nothing returns nothing
if ( Trig_Requested_Copy_Func001C() ) then
call UnitAddAbilityBJ( 'A00M', udg_Request )
else
endif
if ( Trig_Requested_Copy_Func002C() ) then
call UnitAddAbilityBJ( 'A00B', udg_Request )
else
endif
if ( Trig_Requested_Copy_Func003C() ) then
call UnitAddAbilityBJ( 'A00S', udg_Request )
else
endif
if ( Trig_Requested_Copy_Func004C() ) then
call UnitAddAbilityBJ( 'A00P', udg_Request )
else
endif
if ( Trig_Requested_Copy_Func005C() ) then
call UnitAddAbilityBJ( 'A00I', udg_Request )
call DisableTrigger( gg_trg_Distriibute )
else
endif
if ( Trig_Requested_Copy_Func006C() ) then
call UnitAddAbilityBJ( 'A00J', udg_Request )
else
endif
if ( Trig_Requested_Copy_Func007C() ) then
call UnitAddAbilityBJ( 'A00Q', udg_Request )
else
endif
if ( Trig_Requested_Copy_Func008C() ) then
call UnitAddAbilityBJ( 'A00R', udg_Request )
else
endif
endfunction
//===========================================================================
function InitTrig_Requested_Copy takes nothing returns nothing
set gg_trg_Requested_Copy = CreateTrigger( )
call TriggerAddAction( gg_trg_Requested_Copy, function Trig_Requested_Copy_Actions )
endfunction
function Trig_Requested_Copy_2_Func001Func001001001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h019' )
endfunction
function Trig_Requested_Copy_2_Func001C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Requested_Copy_2_Func001Func001001001002))) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00M', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00B', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00P', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00Q', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00R', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00S', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00I', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00J', GetTriggerUnit()) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Requested_Copy_2_Func002Func001001001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01W' )
endfunction
function Trig_Requested_Copy_2_Func002C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Requested_Copy_2_Func002Func001001001002))) == 0 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(2), PLAYER_STATE_RESOURCE_FOOD_USED) >= 75 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(2), PLAYER_STATE_RESOURCE_FOOD_CAP) >= 75 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00M', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00B', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00P', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00Q', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00R', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00S', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00I', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00J', GetTriggerUnit()) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Requested_Copy_2_Func003Func001001001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h02B' )
endfunction
function Trig_Requested_Copy_2_Func003C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Requested_Copy_2_Func003Func001001001002))) == 0 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(2), PLAYER_STATE_RESOURCE_FOOD_USED) >= 100 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(2), PLAYER_STATE_RESOURCE_FOOD_CAP) >= 100 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00M', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00B', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00P', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00Q', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00R', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00S', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00I', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00J', GetTriggerUnit()) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Requested_Copy_2_Func004Func001001001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01X' )
endfunction
function Trig_Requested_Copy_2_Func004C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Requested_Copy_2_Func004Func001001001002))) == 0 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(2), PLAYER_STATE_RESOURCE_FOOD_USED) >= 150 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(2), PLAYER_STATE_RESOURCE_FOOD_CAP) >= 150 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00M', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00B', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00P', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00Q', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00R', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00S', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00I', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00J', GetTriggerUnit()) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Requested_Copy_2_Func005Func001001001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h02G' )
endfunction
function Trig_Requested_Copy_2_Func005C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Requested_Copy_2_Func005Func001001001002))) == 0 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(udg_Group_Squaters) >= 10 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(2), PLAYER_STATE_RESOURCE_FOOD_USED) >= 100 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(2), PLAYER_STATE_RESOURCE_FOOD_CAP) >= 100 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00M', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00B', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00P', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00Q', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00R', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00S', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00I', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00J', GetTriggerUnit()) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Requested_Copy_2_Func006Func001001001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h02H' )
endfunction
function Trig_Requested_Copy_2_Func006C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Requested_Copy_2_Func006Func001001001002))) == 0 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(udg_Group_Squaters) >= 10 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(2), PLAYER_STATE_RESOURCE_FOOD_USED) >= 150 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(2), PLAYER_STATE_RESOURCE_FOOD_CAP) >= 150 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00M', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00B', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00P', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00Q', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00R', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00S', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00I', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00J', GetTriggerUnit()) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Requested_Copy_2_Func007Func001001001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01Y' )
endfunction
function Trig_Requested_Copy_2_Func007C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Requested_Copy_2_Func007Func001001001002))) == 0 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(udg_Group_Squaters) >= 8 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(2), PLAYER_STATE_RESOURCE_FOOD_USED) > GetPlayerState(Player(2), PLAYER_STATE_RESOURCE_FOOD_CAP) ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00M', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00B', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00P', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00Q', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00R', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00S', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00I', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00J', GetTriggerUnit()) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Requested_Copy_2_Func008Func001001001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h02A' )
endfunction
function Trig_Requested_Copy_2_Func008C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Requested_Copy_2_Func008Func001001001002))) == 0 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(2), PLAYER_STATE_RESOURCE_FOOD_USED) >= 200 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(2), PLAYER_STATE_RESOURCE_FOOD_CAP) >= 200 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00M', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00B', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00P', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00Q', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00R', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00S', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00I', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00J', GetTriggerUnit()) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Requested_Copy_2_Actions takes nothing returns nothing
if ( Trig_Requested_Copy_2_Func001C() ) then
call UnitAddAbilityBJ( 'A00M', udg_Request )
else
endif
if ( Trig_Requested_Copy_2_Func002C() ) then
call UnitAddAbilityBJ( 'A00B', udg_Request )
else
endif
if ( Trig_Requested_Copy_2_Func003C() ) then
call UnitAddAbilityBJ( 'A00S', udg_Request )
else
endif
if ( Trig_Requested_Copy_2_Func004C() ) then
call UnitAddAbilityBJ( 'A00P', udg_Request )
else
endif
if ( Trig_Requested_Copy_2_Func005C() ) then
call UnitAddAbilityBJ( 'A00I', udg_Request )
call DisableTrigger( gg_trg_Distriibute )
else
endif
if ( Trig_Requested_Copy_2_Func006C() ) then
call UnitAddAbilityBJ( 'A00J', udg_Request )
else
endif
if ( Trig_Requested_Copy_2_Func007C() ) then
call UnitAddAbilityBJ( 'A00Q', udg_Request )
else
endif
if ( Trig_Requested_Copy_2_Func008C() ) then
call UnitAddAbilityBJ( 'A00R', udg_Request )
else
endif
endfunction
//===========================================================================
function InitTrig_Requested_Copy_2 takes nothing returns nothing
set gg_trg_Requested_Copy_2 = CreateTrigger( )
call TriggerAddAction( gg_trg_Requested_Copy_2, function Trig_Requested_Copy_2_Actions )
endfunction
function Trig_Requested_Copy_3_Func001Func001001001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h019' )
endfunction
function Trig_Requested_Copy_3_Func001C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Requested_Copy_3_Func001Func001001001002))) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00M', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00B', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00P', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00Q', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00R', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00S', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00I', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00J', GetTriggerUnit()) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Requested_Copy_3_Func002Func001001001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01W' )
endfunction
function Trig_Requested_Copy_3_Func002C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Requested_Copy_3_Func002Func001001001002))) == 0 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(3), PLAYER_STATE_RESOURCE_FOOD_USED) >= 75 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(3), PLAYER_STATE_RESOURCE_FOOD_CAP) >= 75 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00M', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00B', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00P', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00Q', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00R', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00S', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00I', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00J', GetTriggerUnit()) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Requested_Copy_3_Func003Func001001001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h02B' )
endfunction
function Trig_Requested_Copy_3_Func003C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Requested_Copy_3_Func003Func001001001002))) == 0 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(3), PLAYER_STATE_RESOURCE_FOOD_USED) >= 100 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(3), PLAYER_STATE_RESOURCE_FOOD_CAP) >= 100 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00M', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00B', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00P', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00Q', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00R', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00S', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00I', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00J', GetTriggerUnit()) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Requested_Copy_3_Func004Func001001001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01X' )
endfunction
function Trig_Requested_Copy_3_Func004C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Requested_Copy_3_Func004Func001001001002))) == 0 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(3), PLAYER_STATE_RESOURCE_FOOD_USED) >= 150 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(3), PLAYER_STATE_RESOURCE_FOOD_CAP) >= 150 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00M', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00B', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00P', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00Q', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00R', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00S', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00I', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00J', GetTriggerUnit()) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Requested_Copy_3_Func005Func001001001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h02G' )
endfunction
function Trig_Requested_Copy_3_Func005C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Requested_Copy_3_Func005Func001001001002))) == 0 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(udg_Group_Squaters) >= 10 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(3), PLAYER_STATE_RESOURCE_FOOD_USED) >= 100 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(3), PLAYER_STATE_RESOURCE_FOOD_CAP) >= 100 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00M', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00B', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00P', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00Q', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00R', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00S', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00I', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00J', GetTriggerUnit()) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Requested_Copy_3_Func006Func001001001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h02H' )
endfunction
function Trig_Requested_Copy_3_Func006C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Requested_Copy_3_Func006Func001001001002))) == 0 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(udg_Group_Squaters) >= 10 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(3), PLAYER_STATE_RESOURCE_FOOD_USED) >= 150 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(3), PLAYER_STATE_RESOURCE_FOOD_CAP) >= 150 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00M', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00B', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00P', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00Q', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00R', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00S', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00I', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00J', GetTriggerUnit()) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Requested_Copy_3_Func007Func001001001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01Y' )
endfunction
function Trig_Requested_Copy_3_Func007C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Requested_Copy_3_Func007Func001001001002))) == 0 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(udg_Group_Squaters) >= 8 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(3), PLAYER_STATE_RESOURCE_FOOD_USED) > GetPlayerState(Player(3), PLAYER_STATE_RESOURCE_FOOD_CAP) ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00M', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00B', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00P', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00Q', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00R', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00S', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00I', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00J', GetTriggerUnit()) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Requested_Copy_3_Func008Func001001001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h02A' )
endfunction
function Trig_Requested_Copy_3_Func008C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Requested_Copy_3_Func008Func001001001002))) == 0 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(3), PLAYER_STATE_RESOURCE_FOOD_USED) >= 200 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(3), PLAYER_STATE_RESOURCE_FOOD_CAP) >= 200 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00M', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00B', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00P', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00Q', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00R', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00S', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00I', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00J', GetTriggerUnit()) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Requested_Copy_3_Actions takes nothing returns nothing
if ( Trig_Requested_Copy_3_Func001C() ) then
call UnitAddAbilityBJ( 'A00M', udg_Request )
else
endif
if ( Trig_Requested_Copy_3_Func002C() ) then
call UnitAddAbilityBJ( 'A00B', udg_Request )
else
endif
if ( Trig_Requested_Copy_3_Func003C() ) then
call UnitAddAbilityBJ( 'A00S', udg_Request )
else
endif
if ( Trig_Requested_Copy_3_Func004C() ) then
call UnitAddAbilityBJ( 'A00P', udg_Request )
else
endif
if ( Trig_Requested_Copy_3_Func005C() ) then
call UnitAddAbilityBJ( 'A00I', udg_Request )
call DisableTrigger( gg_trg_Distriibute )
else
endif
if ( Trig_Requested_Copy_3_Func006C() ) then
call UnitAddAbilityBJ( 'A00J', udg_Request )
else
endif
if ( Trig_Requested_Copy_3_Func007C() ) then
call UnitAddAbilityBJ( 'A00Q', udg_Request )
else
endif
if ( Trig_Requested_Copy_3_Func008C() ) then
call UnitAddAbilityBJ( 'A00R', udg_Request )
else
endif
endfunction
//===========================================================================
function InitTrig_Requested_Copy_3 takes nothing returns nothing
set gg_trg_Requested_Copy_3 = CreateTrigger( )
call TriggerAddAction( gg_trg_Requested_Copy_3, function Trig_Requested_Copy_3_Actions )
endfunction
function Trig_Requested_Copy_4_Func001Func001001001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h019' )
endfunction
function Trig_Requested_Copy_4_Func001C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Requested_Copy_4_Func001Func001001001002))) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00M', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00B', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00P', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00Q', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00R', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00S', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00I', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00J', GetTriggerUnit()) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Requested_Copy_4_Func002Func001001001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01W' )
endfunction
function Trig_Requested_Copy_4_Func002C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Requested_Copy_4_Func002Func001001001002))) == 0 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(4), PLAYER_STATE_RESOURCE_FOOD_USED) >= 75 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(4), PLAYER_STATE_RESOURCE_FOOD_CAP) >= 75 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00M', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00B', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00P', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00Q', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00R', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00S', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00I', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00J', GetTriggerUnit()) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Requested_Copy_4_Func003Func001001001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h02B' )
endfunction
function Trig_Requested_Copy_4_Func003C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Requested_Copy_4_Func003Func001001001002))) == 0 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(4), PLAYER_STATE_RESOURCE_FOOD_USED) >= 100 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(4), PLAYER_STATE_RESOURCE_FOOD_CAP) >= 100 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00M', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00B', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00P', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00Q', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00R', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00S', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00I', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00J', GetTriggerUnit()) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Requested_Copy_4_Func004Func001001001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01X' )
endfunction
function Trig_Requested_Copy_4_Func004C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Requested_Copy_4_Func004Func001001001002))) == 0 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(4), PLAYER_STATE_RESOURCE_FOOD_USED) >= 150 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(4), PLAYER_STATE_RESOURCE_FOOD_CAP) >= 150 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00M', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00B', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00P', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00Q', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00R', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00S', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00I', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00J', GetTriggerUnit()) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Requested_Copy_4_Func005Func001001001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h02G' )
endfunction
function Trig_Requested_Copy_4_Func005C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Requested_Copy_4_Func005Func001001001002))) == 0 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(udg_Group_Squaters) >= 10 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(4), PLAYER_STATE_RESOURCE_FOOD_USED) >= 100 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(4), PLAYER_STATE_RESOURCE_FOOD_CAP) >= 100 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00M', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00B', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00P', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00Q', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00R', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00S', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00I', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00J', GetTriggerUnit()) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Requested_Copy_4_Func006Func001001001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h02H' )
endfunction
function Trig_Requested_Copy_4_Func006C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Requested_Copy_4_Func006Func001001001002))) == 0 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(udg_Group_Squaters) >= 10 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(4), PLAYER_STATE_RESOURCE_FOOD_USED) >= 150 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(4), PLAYER_STATE_RESOURCE_FOOD_CAP) >= 150 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00M', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00B', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00P', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00Q', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00R', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00S', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00I', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00J', GetTriggerUnit()) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Requested_Copy_4_Func007Func001001001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01Y' )
endfunction
function Trig_Requested_Copy_4_Func007C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Requested_Copy_4_Func007Func001001001002))) == 0 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(udg_Group_Squaters) >= 8 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(4), PLAYER_STATE_RESOURCE_FOOD_USED) > GetPlayerState(Player(4), PLAYER_STATE_RESOURCE_FOOD_CAP) ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00M', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00B', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00P', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00Q', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00R', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00S', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00I', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00J', GetTriggerUnit()) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Requested_Copy_4_Func008Func001001001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h02A' )
endfunction
function Trig_Requested_Copy_4_Func008C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Requested_Copy_4_Func008Func001001001002))) == 0 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(4), PLAYER_STATE_RESOURCE_FOOD_USED) >= 200 ) ) then
return false
endif
if ( not ( GetPlayerState(Player(4), PLAYER_STATE_RESOURCE_FOOD_CAP) >= 200 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00M', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00B', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00P', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00Q', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00R', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00S', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00I', GetTriggerUnit()) == 0 ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00J', GetTriggerUnit()) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Requested_Copy_4_Actions takes nothing returns nothing
if ( Trig_Requested_Copy_4_Func001C() ) then
call UnitAddAbilityBJ( 'A00M', udg_Request )
else
endif
if ( Trig_Requested_Copy_4_Func002C() ) then
call UnitAddAbilityBJ( 'A00B', udg_Request )
else
endif
if ( Trig_Requested_Copy_4_Func003C() ) then
call UnitAddAbilityBJ( 'A00S', udg_Request )
else
endif
if ( Trig_Requested_Copy_4_Func004C() ) then
call UnitAddAbilityBJ( 'A00P', udg_Request )
else
endif
if ( Trig_Requested_Copy_4_Func005C() ) then
call UnitAddAbilityBJ( 'A00I', udg_Request )
call DisableTrigger( gg_trg_Distriibute )
else
endif
if ( Trig_Requested_Copy_4_Func006C() ) then
call UnitAddAbilityBJ( 'A00J', udg_Request )
else
endif
if ( Trig_Requested_Copy_4_Func007C() ) then
call UnitAddAbilityBJ( 'A00Q', udg_Request )
else
endif
if ( Trig_Requested_Copy_4_Func008C() ) then
call UnitAddAbilityBJ( 'A00R', udg_Request )
else
endif
endfunction
//===========================================================================
function InitTrig_Requested_Copy_4 takes nothing returns nothing
set gg_trg_Requested_Copy_4 = CreateTrigger( )
call TriggerAddAction( gg_trg_Requested_Copy_4, function Trig_Requested_Copy_4_Actions )
endfunction
function Trig_InTax_Copy_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00K' ) ) then
return false
endif
if ( not ( GetTriggerPlayer() == Player(1) ) ) then
return false
endif
return true
endfunction
function Trig_InTax_Copy_Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'H00E' ) ) then
return false
endif
return true
endfunction
function Trig_InTax_Copy_Func002C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'H00G' ) ) then
return false
endif
return true
endfunction
function Trig_InTax_Copy_Func003C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'H00F' ) ) then
return false
endif
return true
endfunction
function Trig_InTax_Copy_Actions takes nothing returns nothing
if ( Trig_InTax_Copy_Func001C() ) then
set udg_TaxCom = ( udg_TaxCom + 1 )
call ClearTextMessagesBJ( bj_FORCE_PLAYER[1] )
call DisplayTextToForce( bj_FORCE_PLAYER[1], "TRIGSTR_857" )
call DisplayTextToForce( bj_FORCE_PLAYER[1], ( "|cff008000Residential|r" + I2S(udg_TaxRes) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[1], ( "|cff0000ffCommercial|r" + I2S(udg_TaxCom) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[1], ( "|cffff0000Industrial|r" + I2S(udg_TaxInd) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[1], "TRIGSTR_858" )
else
endif
if ( Trig_InTax_Copy_Func002C() ) then
set udg_TaxInd = ( udg_TaxInd + 1 )
call ClearTextMessagesBJ( bj_FORCE_PLAYER[1] )
call DisplayTextToForce( bj_FORCE_PLAYER[1], "TRIGSTR_859" )
call DisplayTextToForce( bj_FORCE_PLAYER[1], ( "|cff008000Residential|r" + I2S(udg_TaxRes) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[1], ( "|cff0000ffCommercial|r" + I2S(udg_TaxCom) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[1], ( "|cffff0000Industrial|r" + I2S(udg_TaxInd) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[1], "TRIGSTR_860" )
else
endif
if ( Trig_InTax_Copy_Func003C() ) then
set udg_TaxRes = ( udg_TaxRes + 1 )
call ClearTextMessagesBJ( bj_FORCE_PLAYER[1] )
call DisplayTextToForce( bj_FORCE_PLAYER[1], "TRIGSTR_861" )
call DisplayTextToForce( bj_FORCE_PLAYER[1], ( "|cff008000Residential|r" + I2S(udg_TaxRes) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[1], ( "|cff0000ffCommercial|r" + I2S(udg_TaxCom) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[1], ( "|cffff0000Industrial|r" + I2S(udg_TaxInd) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[1], "TRIGSTR_862" )
else
endif
endfunction
//===========================================================================
function InitTrig_InTax_Copy takes nothing returns nothing
set gg_trg_InTax_Copy = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_InTax_Copy, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_InTax_Copy, Condition( function Trig_InTax_Copy_Conditions ) )
call TriggerAddAction( gg_trg_InTax_Copy, function Trig_InTax_Copy_Actions )
endfunction
function Trig_InTax_Copy_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00K' ) ) then
return false
endif
if ( not ( GetTriggerPlayer() == Player(2) ) ) then
return false
endif
return true
endfunction
function Trig_InTax_Copy_2_Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'H00E' ) ) then
return false
endif
return true
endfunction
function Trig_InTax_Copy_2_Func002C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'H00G' ) ) then
return false
endif
return true
endfunction
function Trig_InTax_Copy_2_Func003C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'H00F' ) ) then
return false
endif
return true
endfunction
function Trig_InTax_Copy_2_Actions takes nothing returns nothing
if ( Trig_InTax_Copy_2_Func001C() ) then
set udg_TaxCom = ( udg_TaxCom + 1 )
call ClearTextMessagesBJ( bj_FORCE_PLAYER[2] )
call DisplayTextToForce( bj_FORCE_PLAYER[2], "TRIGSTR_863" )
call DisplayTextToForce( bj_FORCE_PLAYER[2], ( "|cff008000Residential|r" + I2S(udg_TaxRes) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[2], ( "|cff0000ffCommercial|r" + I2S(udg_TaxCom) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[2], ( "|cffff0000Industrial|r" + I2S(udg_TaxInd) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[2], "TRIGSTR_864" )
else
endif
if ( Trig_InTax_Copy_2_Func002C() ) then
set udg_TaxInd = ( udg_TaxInd + 1 )
call ClearTextMessagesBJ( bj_FORCE_PLAYER[2] )
call DisplayTextToForce( bj_FORCE_PLAYER[2], "TRIGSTR_865" )
call DisplayTextToForce( bj_FORCE_PLAYER[2], ( "|cff008000Residential|r" + I2S(udg_TaxRes) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[2], ( "|cff0000ffCommercial|r" + I2S(udg_TaxCom) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[2], ( "|cffff0000Industrial|r" + I2S(udg_TaxInd) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[2], "TRIGSTR_866" )
else
endif
if ( Trig_InTax_Copy_2_Func003C() ) then
set udg_TaxRes = ( udg_TaxRes + 1 )
call ClearTextMessagesBJ( bj_FORCE_PLAYER[2] )
call DisplayTextToForce( bj_FORCE_PLAYER[2], "TRIGSTR_867" )
call DisplayTextToForce( bj_FORCE_PLAYER[2], ( "|cff008000Residential|r" + I2S(udg_TaxRes) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[2], ( "|cff0000ffCommercial|r" + I2S(udg_TaxCom) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[2], ( "|cffff0000Industrial|r" + I2S(udg_TaxInd) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[2], "TRIGSTR_868" )
else
endif
endfunction
//===========================================================================
function InitTrig_InTax_Copy_2 takes nothing returns nothing
set gg_trg_InTax_Copy_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_InTax_Copy_2, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_InTax_Copy_2, Condition( function Trig_InTax_Copy_2_Conditions ) )
call TriggerAddAction( gg_trg_InTax_Copy_2, function Trig_InTax_Copy_2_Actions )
endfunction
function Trig_InTax_Copy_3_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00K' ) ) then
return false
endif
if ( not ( GetTriggerPlayer() == Player(3) ) ) then
return false
endif
return true
endfunction
function Trig_InTax_Copy_3_Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'H00E' ) ) then
return false
endif
return true
endfunction
function Trig_InTax_Copy_3_Func002C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'H00G' ) ) then
return false
endif
return true
endfunction
function Trig_InTax_Copy_3_Func003C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'H00F' ) ) then
return false
endif
return true
endfunction
function Trig_InTax_Copy_3_Actions takes nothing returns nothing
if ( Trig_InTax_Copy_3_Func001C() ) then
set udg_TaxCom = ( udg_TaxCom + 1 )
call ClearTextMessagesBJ( bj_FORCE_PLAYER[3] )
call DisplayTextToForce( bj_FORCE_PLAYER[3], "TRIGSTR_869" )
call DisplayTextToForce( bj_FORCE_PLAYER[3], ( "|cff008000Residential|r" + I2S(udg_TaxRes) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[3], ( "|cff0000ffCommercial|r" + I2S(udg_TaxCom) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[3], ( "|cffff0000Industrial|r" + I2S(udg_TaxInd) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[3], "TRIGSTR_870" )
else
endif
if ( Trig_InTax_Copy_3_Func002C() ) then
set udg_TaxInd = ( udg_TaxInd + 1 )
call ClearTextMessagesBJ( bj_FORCE_PLAYER[3] )
call DisplayTextToForce( bj_FORCE_PLAYER[3], "TRIGSTR_871" )
call DisplayTextToForce( bj_FORCE_PLAYER[3], ( "|cff008000Residential|r" + I2S(udg_TaxRes) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[3], ( "|cff0000ffCommercial|r" + I2S(udg_TaxCom) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[3], ( "|cffff0000Industrial|r" + I2S(udg_TaxInd) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[3], "TRIGSTR_872" )
else
endif
if ( Trig_InTax_Copy_3_Func003C() ) then
set udg_TaxRes = ( udg_TaxRes + 1 )
call ClearTextMessagesBJ( bj_FORCE_PLAYER[3] )
call DisplayTextToForce( bj_FORCE_PLAYER[3], "TRIGSTR_873" )
call DisplayTextToForce( bj_FORCE_PLAYER[3], ( "|cff008000Residential|r" + I2S(udg_TaxRes) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[3], ( "|cff0000ffCommercial|r" + I2S(udg_TaxCom) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[3], ( "|cffff0000Industrial|r" + I2S(udg_TaxInd) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[3], "TRIGSTR_874" )
else
endif
endfunction
//===========================================================================
function InitTrig_InTax_Copy_3 takes nothing returns nothing
set gg_trg_InTax_Copy_3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_InTax_Copy_3, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_InTax_Copy_3, Condition( function Trig_InTax_Copy_3_Conditions ) )
call TriggerAddAction( gg_trg_InTax_Copy_3, function Trig_InTax_Copy_3_Actions )
endfunction
function Trig_InTax_Copy_4_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00K' ) ) then
return false
endif
if ( not ( GetTriggerPlayer() == Player(4) ) ) then
return false
endif
return true
endfunction
function Trig_InTax_Copy_4_Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'H00E' ) ) then
return false
endif
return true
endfunction
function Trig_InTax_Copy_4_Func002C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'H00G' ) ) then
return false
endif
return true
endfunction
function Trig_InTax_Copy_4_Func003C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'H00F' ) ) then
return false
endif
return true
endfunction
function Trig_InTax_Copy_4_Actions takes nothing returns nothing
if ( Trig_InTax_Copy_4_Func001C() ) then
set udg_TaxCom = ( udg_TaxCom + 1 )
call ClearTextMessagesBJ( bj_FORCE_PLAYER[4] )
call DisplayTextToForce( bj_FORCE_PLAYER[4], "TRIGSTR_875" )
call DisplayTextToForce( bj_FORCE_PLAYER[4], ( "|cff008000Residential|r" + I2S(udg_TaxRes) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[4], ( "|cff0000ffCommercial|r" + I2S(udg_TaxCom) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[4], ( "|cffff0000Industrial|r" + I2S(udg_TaxInd) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[4], "TRIGSTR_876" )
else
endif
if ( Trig_InTax_Copy_4_Func002C() ) then
set udg_TaxInd = ( udg_TaxInd + 1 )
call ClearTextMessagesBJ( bj_FORCE_PLAYER[4] )
call DisplayTextToForce( bj_FORCE_PLAYER[4], "TRIGSTR_877" )
call DisplayTextToForce( bj_FORCE_PLAYER[4], ( "|cff008000Residential|r" + I2S(udg_TaxRes) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[4], ( "|cff0000ffCommercial|r" + I2S(udg_TaxCom) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[4], ( "|cffff0000Industrial|r" + I2S(udg_TaxInd) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[4], "TRIGSTR_878" )
else
endif
if ( Trig_InTax_Copy_4_Func003C() ) then
set udg_TaxRes = ( udg_TaxRes + 1 )
call ClearTextMessagesBJ( bj_FORCE_PLAYER[4] )
call DisplayTextToForce( bj_FORCE_PLAYER[4], "TRIGSTR_879" )
call DisplayTextToForce( bj_FORCE_PLAYER[4], ( "|cff008000Residential|r" + I2S(udg_TaxRes) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[4], ( "|cff0000ffCommercial|r" + I2S(udg_TaxCom) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[4], ( "|cffff0000Industrial|r" + I2S(udg_TaxInd) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[4], "TRIGSTR_880" )
else
endif
endfunction
//===========================================================================
function InitTrig_InTax_Copy_4 takes nothing returns nothing
set gg_trg_InTax_Copy_4 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_InTax_Copy_4, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_InTax_Copy_4, Condition( function Trig_InTax_Copy_4_Conditions ) )
call TriggerAddAction( gg_trg_InTax_Copy_4, function Trig_InTax_Copy_4_Actions )
endfunction
function Trig_DeTax_Copy_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00V' ) ) then
return false
endif
if ( not ( GetTriggerPlayer() == Player(0) ) ) then
return false
endif
return true
endfunction
function Trig_DeTax_Copy_Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'H00E' ) ) then
return false
endif
return true
endfunction
function Trig_DeTax_Copy_Func002C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'H00G' ) ) then
return false
endif
return true
endfunction
function Trig_DeTax_Copy_Func003C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'H00F' ) ) then
return false
endif
return true
endfunction
function Trig_DeTax_Copy_Actions takes nothing returns nothing
if ( Trig_DeTax_Copy_Func001C() ) then
set udg_TaxCom = ( udg_TaxCom - 1 )
call ClearTextMessagesBJ( bj_FORCE_PLAYER[0] )
call DisplayTextToForce( bj_FORCE_PLAYER[0], "TRIGSTR_803" )
call DisplayTextToForce( bj_FORCE_PLAYER[0], ( "|cff008000Residential|r" + I2S(udg_TaxRes) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[0], ( "|cff0000ffCommercial|r" + I2S(udg_TaxCom) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[0], ( "|cffff0000Industrial|r" + I2S(udg_TaxInd) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[0], "TRIGSTR_804" )
else
endif
if ( Trig_DeTax_Copy_Func002C() ) then
set udg_TaxInd = ( udg_TaxInd - 1 )
call ClearTextMessagesBJ( bj_FORCE_PLAYER[0] )
call DisplayTextToForce( bj_FORCE_PLAYER[0], "TRIGSTR_805" )
call DisplayTextToForce( bj_FORCE_PLAYER[0], ( "|cff008000Residential|r" + I2S(udg_TaxRes) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[0], ( "|cff0000ffCommercial|r" + I2S(udg_TaxCom) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[0], ( "|cffff0000Industrial|r" + I2S(udg_TaxInd) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[0], "TRIGSTR_806" )
else
endif
if ( Trig_DeTax_Copy_Func003C() ) then
set udg_TaxRes = ( udg_TaxRes - 1 )
call ClearTextMessagesBJ( bj_FORCE_PLAYER[0] )
call DisplayTextToForce( bj_FORCE_PLAYER[0], "TRIGSTR_807" )
call DisplayTextToForce( bj_FORCE_PLAYER[0], ( "|cff008000Residential|r" + I2S(udg_TaxRes) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[0], ( "|cff0000ffCommercial|r" + I2S(udg_TaxCom) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[0], ( "|cffff0000Industrial|r" + I2S(udg_TaxInd) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[0], "TRIGSTR_808" )
else
endif
endfunction
//===========================================================================
function InitTrig_DeTax_Copy takes nothing returns nothing
set gg_trg_DeTax_Copy = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_DeTax_Copy, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_DeTax_Copy, Condition( function Trig_DeTax_Copy_Conditions ) )
call TriggerAddAction( gg_trg_DeTax_Copy, function Trig_DeTax_Copy_Actions )
endfunction
function Trig_DeTax_Copy_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00V' ) ) then
return false
endif
if ( not ( GetTriggerPlayer() == Player(2) ) ) then
return false
endif
return true
endfunction
function Trig_DeTax_Copy_2_Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'H00E' ) ) then
return false
endif
return true
endfunction
function Trig_DeTax_Copy_2_Func002C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'H00G' ) ) then
return false
endif
return true
endfunction
function Trig_DeTax_Copy_2_Func003C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'H00F' ) ) then
return false
endif
return true
endfunction
function Trig_DeTax_Copy_2_Actions takes nothing returns nothing
if ( Trig_DeTax_Copy_2_Func001C() ) then
set udg_TaxCom = ( udg_TaxCom - 1 )
call ClearTextMessagesBJ( bj_FORCE_PLAYER[0] )
call DisplayTextToForce( bj_FORCE_PLAYER[2], "TRIGSTR_809" )
call DisplayTextToForce( bj_FORCE_PLAYER[2], ( "|cff008000Residential|r" + I2S(udg_TaxRes) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[2], ( "|cff0000ffCommercial|r" + I2S(udg_TaxCom) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[2], ( "|cffff0000Industrial|r" + I2S(udg_TaxInd) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[2], "TRIGSTR_810" )
else
endif
if ( Trig_DeTax_Copy_2_Func002C() ) then
set udg_TaxInd = ( udg_TaxInd - 1 )
call ClearTextMessagesBJ( bj_FORCE_PLAYER[2] )
call DisplayTextToForce( bj_FORCE_PLAYER[2], "TRIGSTR_811" )
call DisplayTextToForce( bj_FORCE_PLAYER[2], ( "|cff008000Residential|r" + I2S(udg_TaxRes) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[2], ( "|cff0000ffCommercial|r" + I2S(udg_TaxCom) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[2], ( "|cffff0000Industrial|r" + I2S(udg_TaxInd) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[2], "TRIGSTR_812" )
else
endif
if ( Trig_DeTax_Copy_2_Func003C() ) then
set udg_TaxRes = ( udg_TaxRes - 1 )
call ClearTextMessagesBJ( bj_FORCE_PLAYER[2] )
call DisplayTextToForce( bj_FORCE_PLAYER[2], "TRIGSTR_813" )
call DisplayTextToForce( bj_FORCE_PLAYER[2], ( "|cff008000Residential|r" + I2S(udg_TaxRes) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[2], ( "|cff0000ffCommercial|r" + I2S(udg_TaxCom) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[2], ( "|cffff0000Industrial|r" + I2S(udg_TaxInd) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[2], "TRIGSTR_814" )
else
endif
endfunction
//===========================================================================
function InitTrig_DeTax_Copy_2 takes nothing returns nothing
set gg_trg_DeTax_Copy_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_DeTax_Copy_2, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_DeTax_Copy_2, Condition( function Trig_DeTax_Copy_2_Conditions ) )
call TriggerAddAction( gg_trg_DeTax_Copy_2, function Trig_DeTax_Copy_2_Actions )
endfunction
function Trig_DeTax_Copy_3_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00V' ) ) then
return false
endif
if ( not ( GetTriggerPlayer() == Player(3) ) ) then
return false
endif
return true
endfunction
function Trig_DeTax_Copy_3_Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'H00E' ) ) then
return false
endif
return true
endfunction
function Trig_DeTax_Copy_3_Func002C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'H00G' ) ) then
return false
endif
return true
endfunction
function Trig_DeTax_Copy_3_Func003C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'H00F' ) ) then
return false
endif
return true
endfunction
function Trig_DeTax_Copy_3_Actions takes nothing returns nothing
if ( Trig_DeTax_Copy_3_Func001C() ) then
set udg_TaxCom = ( udg_TaxCom - 1 )
call ClearTextMessagesBJ( bj_FORCE_PLAYER[3] )
call DisplayTextToForce( bj_FORCE_PLAYER[3], "TRIGSTR_815" )
call DisplayTextToForce( bj_FORCE_PLAYER[3], ( "|cff008000Residential|r" + I2S(udg_TaxRes) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[3], ( "|cff0000ffCommercial|r" + I2S(udg_TaxCom) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[3], ( "|cffff0000Industrial|r" + I2S(udg_TaxInd) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[3], "TRIGSTR_816" )
else
endif
if ( Trig_DeTax_Copy_3_Func002C() ) then
set udg_TaxInd = ( udg_TaxInd - 1 )
call ClearTextMessagesBJ( bj_FORCE_PLAYER[3] )
call DisplayTextToForce( bj_FORCE_PLAYER[3], "TRIGSTR_817" )
call DisplayTextToForce( bj_FORCE_PLAYER[3], ( "|cff008000Residential|r" + I2S(udg_TaxRes) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[3], ( "|cff0000ffCommercial|r" + I2S(udg_TaxCom) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[3], ( "|cffff0000Industrial|r" + I2S(udg_TaxInd) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[3], "TRIGSTR_818" )
else
endif
if ( Trig_DeTax_Copy_3_Func003C() ) then
set udg_TaxRes = ( udg_TaxRes - 1 )
call ClearTextMessagesBJ( bj_FORCE_PLAYER[3] )
call DisplayTextToForce( bj_FORCE_PLAYER[3], "TRIGSTR_819" )
call DisplayTextToForce( bj_FORCE_PLAYER[3], ( "|cff008000Residential|r" + I2S(udg_TaxRes) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[3], ( "|cff0000ffCommercial|r" + I2S(udg_TaxCom) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[3], ( "|cffff0000Industrial|r" + I2S(udg_TaxInd) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[3], "TRIGSTR_820" )
else
endif
endfunction
//===========================================================================
function InitTrig_DeTax_Copy_3 takes nothing returns nothing
set gg_trg_DeTax_Copy_3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_DeTax_Copy_3, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_DeTax_Copy_3, Condition( function Trig_DeTax_Copy_3_Conditions ) )
call TriggerAddAction( gg_trg_DeTax_Copy_3, function Trig_DeTax_Copy_3_Actions )
endfunction
function Trig_DeTax_Copy_4_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00V' ) ) then
return false
endif
if ( not ( GetTriggerPlayer() == Player(1) ) ) then
return false
endif
return true
endfunction
function Trig_DeTax_Copy_4_Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'H00E' ) ) then
return false
endif
return true
endfunction
function Trig_DeTax_Copy_4_Func002C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'H00G' ) ) then
return false
endif
return true
endfunction
function Trig_DeTax_Copy_4_Func003C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'H00F' ) ) then
return false
endif
return true
endfunction
function Trig_DeTax_Copy_4_Actions takes nothing returns nothing
if ( Trig_DeTax_Copy_4_Func001C() ) then
set udg_TaxCom = ( udg_TaxCom - 1 )
call ClearTextMessagesBJ( bj_FORCE_PLAYER[0] )
call DisplayTextToForce( bj_FORCE_PLAYER[1], "TRIGSTR_821" )
call DisplayTextToForce( bj_FORCE_PLAYER[1], ( "|cff008000Residential|r" + I2S(udg_TaxRes) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[1], ( "|cff0000ffCommercial|r" + I2S(udg_TaxCom) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[1], ( "|cffff0000Industrial|r" + I2S(udg_TaxInd) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[1], "TRIGSTR_822" )
else
endif
if ( Trig_DeTax_Copy_4_Func002C() ) then
set udg_TaxInd = ( udg_TaxInd - 1 )
call ClearTextMessagesBJ( bj_FORCE_PLAYER[1] )
call DisplayTextToForce( bj_FORCE_PLAYER[1], "TRIGSTR_823" )
call DisplayTextToForce( bj_FORCE_PLAYER[1], ( "|cff008000Residential|r" + I2S(udg_TaxRes) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[1], ( "|cff0000ffCommercial|r" + I2S(udg_TaxCom) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[1], ( "|cffff0000Industrial|r" + I2S(udg_TaxInd) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[1], "TRIGSTR_824" )
else
endif
if ( Trig_DeTax_Copy_4_Func003C() ) then
set udg_TaxRes = ( udg_TaxRes - 1 )
call ClearTextMessagesBJ( bj_FORCE_PLAYER[0] )
call DisplayTextToForce( bj_FORCE_PLAYER[1], "TRIGSTR_825" )
call DisplayTextToForce( bj_FORCE_PLAYER[1], ( "|cff008000Residential|r" + I2S(udg_TaxRes) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[1], ( "|cff0000ffCommercial|r" + I2S(udg_TaxCom) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[1], ( "|cffff0000Industrial|r" + I2S(udg_TaxInd) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[1], "TRIGSTR_826" )
else
endif
endfunction
//===========================================================================
function InitTrig_DeTax_Copy_4 takes nothing returns nothing
set gg_trg_DeTax_Copy_4 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_DeTax_Copy_4, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_DeTax_Copy_4, Condition( function Trig_DeTax_Copy_4_Conditions ) )
call TriggerAddAction( gg_trg_DeTax_Copy_4, function Trig_DeTax_Copy_4_Actions )
endfunction
function Trig_Status_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_STRUCTURE) == true ) ) then
return false
endif
return true
endfunction
function Trig_Status_Func004001 takes nothing returns boolean
return ( udg_PowerComsume <= udg_PowerMax )
endfunction
function Trig_Status_Func005001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A004', GetTriggerUnit()) == 1 )
endfunction
function Trig_Status_Func006001001001003 takes nothing returns boolean
return ( IsUnitInGroup(GetFilterUnit(), udg_Group_Park) == true )
endfunction
function Trig_Status_Func006001 takes nothing returns boolean
return ( CountUnitsInGroup(GetUnitsInRangeOfLocMatching(800.00, udg_Point, Condition(function Trig_Status_Func006001001001003))) >= 3 )
endfunction
function Trig_Status_Func007001001001003 takes nothing returns boolean
return ( IsUnitInGroup(GetFilterUnit(), udg_Group_Industrial) == true )
endfunction
function Trig_Status_Func007001 takes nothing returns boolean
return ( CountUnitsInGroup(GetUnitsInRangeOfLocMatching(800.00, udg_Point, Condition(function Trig_Status_Func007001001001003))) >= 3 )
endfunction
function Trig_Status_Func008001001001003 takes nothing returns boolean
return ( IsUnitInGroup(GetFilterUnit(), udg_Group_Squaters) == true )
endfunction
function Trig_Status_Func008001 takes nothing returns boolean
return ( CountUnitsInGroup(GetUnitsInRangeOfLocMatching(800.00, udg_Point, Condition(function Trig_Status_Func008001001001003))) >= 3 )
endfunction
function Trig_Status_Actions takes nothing returns nothing
set udg_Point = GetUnitLoc(GetTriggerUnit())
call ClearTextMessagesBJ( GetPlayersAll() )
if ( Trig_Status_Func004001() ) then
set udg_TxtPower = "|cff008000Yes|r"
else
set udg_TxtPower = "|cffff0000No|r"
endif
if ( Trig_Status_Func005001() ) then
set udg_TxtWater = "|cff008000Yes|r"
else
set udg_TxtWater = "|cffff0000No|r"
endif
if ( Trig_Status_Func006001() ) then
set udg_TxtValue = "|cffff0000High|r"
else
set udg_TxtValue = "Low"
endif
if ( Trig_Status_Func007001() ) then
set udg_TxtPolution = "|cffff0000High|r"
else
set udg_TxtPolution = "Low"
endif
if ( Trig_Status_Func008001() ) then
set udg_TxtCrimes = "|cffff0000High|r"
else
set udg_TxtCrimes = "Low"
endif
call DisplayTextToForce( bj_FORCE_PLAYER[0], ( "Name : " + GetUnitName(GetTriggerUnit()) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[0], ( "Powered : " + udg_TxtPower ) )
call DisplayTextToForce( bj_FORCE_PLAYER[0], ( "Watered : " + udg_TxtWater ) )
call DisplayTextToForce( bj_FORCE_PLAYER[0], ( "Land Value : " + udg_TxtValue ) )
call DisplayTextToForce( bj_FORCE_PLAYER[0], ( "Pollution : " + udg_TxtPolution ) )
call DisplayTextToForce( bj_FORCE_PLAYER[0], ( "Crimes : " + udg_TxtCrimes ) )
call RemoveLocation(udg_Point)
endfunction
//===========================================================================
function InitTrig_Status takes nothing returns nothing
set gg_trg_Status = CreateTrigger( )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_Status, Player(0), true )
call TriggerAddCondition( gg_trg_Status, Condition( function Trig_Status_Conditions ) )
call TriggerAddAction( gg_trg_Status, function Trig_Status_Actions )
endfunction
function Trig_Status_Copy_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_STRUCTURE) == true ) ) then
return false
endif
return true
endfunction
function Trig_Status_Copy_Func004001 takes nothing returns boolean
return ( udg_PowerComsume <= udg_PowerMax )
endfunction
function Trig_Status_Copy_Func005001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A004', GetTriggerUnit()) == 1 )
endfunction
function Trig_Status_Copy_Func006001001001003 takes nothing returns boolean
return ( IsUnitInGroup(GetFilterUnit(), udg_Group_Park) == true )
endfunction
function Trig_Status_Copy_Func006001 takes nothing returns boolean
return ( CountUnitsInGroup(GetUnitsInRangeOfLocMatching(800.00, udg_Point, Condition(function Trig_Status_Copy_Func006001001001003))) >= 3 )
endfunction
function Trig_Status_Copy_Func007001001001003 takes nothing returns boolean
return ( IsUnitInGroup(GetFilterUnit(), udg_Group_Industrial) == true )
endfunction
function Trig_Status_Copy_Func007001 takes nothing returns boolean
return ( CountUnitsInGroup(GetUnitsInRangeOfLocMatching(800.00, udg_Point, Condition(function Trig_Status_Copy_Func007001001001003))) >= 3 )
endfunction
function Trig_Status_Copy_Func008001001001003 takes nothing returns boolean
return ( IsUnitInGroup(GetFilterUnit(), udg_Group_Squaters) == true )
endfunction
function Trig_Status_Copy_Func008001 takes nothing returns boolean
return ( CountUnitsInGroup(GetUnitsInRangeOfLocMatching(800.00, udg_Point, Condition(function Trig_Status_Copy_Func008001001001003))) >= 3 )
endfunction
function Trig_Status_Copy_Actions takes nothing returns nothing
set udg_Point = GetUnitLoc(GetTriggerUnit())
call ClearTextMessagesBJ( GetPlayersAll() )
if ( Trig_Status_Copy_Func004001() ) then
set udg_TxtPower = "|cff008000Yes|r"
else
set udg_TxtPower = "|cffff0000No|r"
endif
if ( Trig_Status_Copy_Func005001() ) then
set udg_TxtWater = "|cff008000Yes|r"
else
set udg_TxtWater = "|cffff0000No|r"
endif
if ( Trig_Status_Copy_Func006001() ) then
set udg_TxtValue = "|cffff0000High|r"
else
set udg_TxtValue = "Low"
endif
if ( Trig_Status_Copy_Func007001() ) then
set udg_TxtPolution = "|cffff0000High|r"
else
set udg_TxtPolution = "Low"
endif
if ( Trig_Status_Copy_Func008001() ) then
set udg_TxtCrimes = "|cffff0000High|r"
else
set udg_TxtCrimes = "Low"
endif
call DisplayTextToForce( bj_FORCE_PLAYER[1], ( "Name : " + GetUnitName(GetTriggerUnit()) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[1], ( "Powered : " + udg_TxtPower ) )
call DisplayTextToForce( bj_FORCE_PLAYER[1], ( "Watered : " + udg_TxtWater ) )
call DisplayTextToForce( bj_FORCE_PLAYER[1], ( "Land Value : " + udg_TxtValue ) )
call DisplayTextToForce( bj_FORCE_PLAYER[1], ( "Pollution : " + udg_TxtPolution ) )
call DisplayTextToForce( bj_FORCE_PLAYER[1], ( "Crimes : " + udg_TxtCrimes ) )
call RemoveLocation(udg_Point)
endfunction
//===========================================================================
function InitTrig_Status_Copy takes nothing returns nothing
set gg_trg_Status_Copy = CreateTrigger( )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_Status_Copy, Player(1), true )
call TriggerAddCondition( gg_trg_Status_Copy, Condition( function Trig_Status_Copy_Conditions ) )
call TriggerAddAction( gg_trg_Status_Copy, function Trig_Status_Copy_Actions )
endfunction
function Trig_Status_Copy_2_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_STRUCTURE) == true ) ) then
return false
endif
return true
endfunction
function Trig_Status_Copy_2_Func004001 takes nothing returns boolean
return ( udg_PowerComsume <= udg_PowerMax )
endfunction
function Trig_Status_Copy_2_Func005001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A004', GetTriggerUnit()) == 1 )
endfunction
function Trig_Status_Copy_2_Func006001001001003 takes nothing returns boolean
return ( IsUnitInGroup(GetFilterUnit(), udg_Group_Park) == true )
endfunction
function Trig_Status_Copy_2_Func006001 takes nothing returns boolean
return ( CountUnitsInGroup(GetUnitsInRangeOfLocMatching(800.00, udg_Point, Condition(function Trig_Status_Copy_2_Func006001001001003))) >= 3 )
endfunction
function Trig_Status_Copy_2_Func007001001001003 takes nothing returns boolean
return ( IsUnitInGroup(GetFilterUnit(), udg_Group_Industrial) == true )
endfunction
function Trig_Status_Copy_2_Func007001 takes nothing returns boolean
return ( CountUnitsInGroup(GetUnitsInRangeOfLocMatching(800.00, udg_Point, Condition(function Trig_Status_Copy_2_Func007001001001003))) >= 3 )
endfunction
function Trig_Status_Copy_2_Func008001001001003 takes nothing returns boolean
return ( IsUnitInGroup(GetFilterUnit(), udg_Group_Squaters) == true )
endfunction
function Trig_Status_Copy_2_Func008001 takes nothing returns boolean
return ( CountUnitsInGroup(GetUnitsInRangeOfLocMatching(800.00, udg_Point, Condition(function Trig_Status_Copy_2_Func008001001001003))) >= 3 )
endfunction
function Trig_Status_Copy_2_Actions takes nothing returns nothing
set udg_Point = GetUnitLoc(GetTriggerUnit())
call ClearTextMessagesBJ( GetPlayersAll() )
if ( Trig_Status_Copy_2_Func004001() ) then
set udg_TxtPower = "|cff008000Yes|r"
else
set udg_TxtPower = "|cffff0000No|r"
endif
if ( Trig_Status_Copy_2_Func005001() ) then
set udg_TxtWater = "|cff008000Yes|r"
else
set udg_TxtWater = "|cffff0000No|r"
endif
if ( Trig_Status_Copy_2_Func006001() ) then
set udg_TxtValue = "|cffff0000High|r"
else
set udg_TxtValue = "Low"
endif
if ( Trig_Status_Copy_2_Func007001() ) then
set udg_TxtPolution = "|cffff0000High|r"
else
set udg_TxtPolution = "Low"
endif
if ( Trig_Status_Copy_2_Func008001() ) then
set udg_TxtCrimes = "|cffff0000High|r"
else
set udg_TxtCrimes = "Low"
endif
call DisplayTextToForce( bj_FORCE_PLAYER[2], ( "Name : " + GetUnitName(GetTriggerUnit()) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[2], ( "Powered : " + udg_TxtPower ) )
call DisplayTextToForce( bj_FORCE_PLAYER[2], ( "Watered : " + udg_TxtWater ) )
call DisplayTextToForce( bj_FORCE_PLAYER[2], ( "Land Value : " + udg_TxtValue ) )
call DisplayTextToForce( bj_FORCE_PLAYER[2], ( "Pollution : " + udg_TxtPolution ) )
call DisplayTextToForce( bj_FORCE_PLAYER[2], ( "Crimes : " + udg_TxtCrimes ) )
call RemoveLocation(udg_Point)
endfunction
//===========================================================================
function InitTrig_Status_Copy_2 takes nothing returns nothing
set gg_trg_Status_Copy_2 = CreateTrigger( )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_Status_Copy_2, Player(2), true )
call TriggerAddCondition( gg_trg_Status_Copy_2, Condition( function Trig_Status_Copy_2_Conditions ) )
call TriggerAddAction( gg_trg_Status_Copy_2, function Trig_Status_Copy_2_Actions )
endfunction
function Trig_Status_Copy_3_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_STRUCTURE) == true ) ) then
return false
endif
return true
endfunction
function Trig_Status_Copy_3_Func004001 takes nothing returns boolean
return ( udg_PowerComsume <= udg_PowerMax )
endfunction
function Trig_Status_Copy_3_Func005001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A004', GetTriggerUnit()) == 1 )
endfunction
function Trig_Status_Copy_3_Func006001001001003 takes nothing returns boolean
return ( IsUnitInGroup(GetFilterUnit(), udg_Group_Park) == true )
endfunction
function Trig_Status_Copy_3_Func006001 takes nothing returns boolean
return ( CountUnitsInGroup(GetUnitsInRangeOfLocMatching(800.00, udg_Point, Condition(function Trig_Status_Copy_3_Func006001001001003))) >= 3 )
endfunction
function Trig_Status_Copy_3_Func007001001001003 takes nothing returns boolean
return ( IsUnitInGroup(GetFilterUnit(), udg_Group_Industrial) == true )
endfunction
function Trig_Status_Copy_3_Func007001 takes nothing returns boolean
return ( CountUnitsInGroup(GetUnitsInRangeOfLocMatching(800.00, udg_Point, Condition(function Trig_Status_Copy_3_Func007001001001003))) >= 3 )
endfunction
function Trig_Status_Copy_3_Func008001001001003 takes nothing returns boolean
return ( IsUnitInGroup(GetFilterUnit(), udg_Group_Squaters) == true )
endfunction
function Trig_Status_Copy_3_Func008001 takes nothing returns boolean
return ( CountUnitsInGroup(GetUnitsInRangeOfLocMatching(800.00, udg_Point, Condition(function Trig_Status_Copy_3_Func008001001001003))) >= 3 )
endfunction
function Trig_Status_Copy_3_Actions takes nothing returns nothing
set udg_Point = GetUnitLoc(GetTriggerUnit())
call ClearTextMessagesBJ( GetPlayersAll() )
if ( Trig_Status_Copy_3_Func004001() ) then
set udg_TxtPower = "|cff008000Yes|r"
else
set udg_TxtPower = "|cffff0000No|r"
endif
if ( Trig_Status_Copy_3_Func005001() ) then
set udg_TxtWater = "|cff008000Yes|r"
else
set udg_TxtWater = "|cffff0000No|r"
endif
if ( Trig_Status_Copy_3_Func006001() ) then
set udg_TxtValue = "|cffff0000High|r"
else
set udg_TxtValue = "Low"
endif
if ( Trig_Status_Copy_3_Func007001() ) then
set udg_TxtPolution = "|cffff0000High|r"
else
set udg_TxtPolution = "Low"
endif
if ( Trig_Status_Copy_3_Func008001() ) then
set udg_TxtCrimes = "|cffff0000High|r"
else
set udg_TxtCrimes = "Low"
endif
call DisplayTextToForce( bj_FORCE_PLAYER[3], ( "Name : " + GetUnitName(GetTriggerUnit()) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[3], ( "Powered : " + udg_TxtPower ) )
call DisplayTextToForce( bj_FORCE_PLAYER[3], ( "Watered : " + udg_TxtWater ) )
call DisplayTextToForce( bj_FORCE_PLAYER[3], ( "Land Value : " + udg_TxtValue ) )
call DisplayTextToForce( bj_FORCE_PLAYER[3], ( "Pollution : " + udg_TxtPolution ) )
call DisplayTextToForce( bj_FORCE_PLAYER[3], ( "Crimes : " + udg_TxtCrimes ) )
call RemoveLocation(udg_Point)
endfunction
//===========================================================================
function InitTrig_Status_Copy_3 takes nothing returns nothing
set gg_trg_Status_Copy_3 = CreateTrigger( )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_Status_Copy_3, Player(3), true )
call TriggerAddCondition( gg_trg_Status_Copy_3, Condition( function Trig_Status_Copy_3_Conditions ) )
call TriggerAddAction( gg_trg_Status_Copy_3, function Trig_Status_Copy_3_Actions )
endfunction
function Trig_Status_Copy_4_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_STRUCTURE) == true ) ) then
return false
endif
return true
endfunction
function Trig_Status_Copy_4_Func004001 takes nothing returns boolean
return ( udg_PowerComsume <= udg_PowerMax )
endfunction
function Trig_Status_Copy_4_Func005001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A004', GetTriggerUnit()) == 1 )
endfunction
function Trig_Status_Copy_4_Func006001001001003 takes nothing returns boolean
return ( IsUnitInGroup(GetFilterUnit(), udg_Group_Park) == true )
endfunction
function Trig_Status_Copy_4_Func006001 takes nothing returns boolean
return ( CountUnitsInGroup(GetUnitsInRangeOfLocMatching(800.00, udg_Point, Condition(function Trig_Status_Copy_4_Func006001001001003))) >= 3 )
endfunction
function Trig_Status_Copy_4_Func007001001001003 takes nothing returns boolean
return ( IsUnitInGroup(GetFilterUnit(), udg_Group_Industrial) == true )
endfunction
function Trig_Status_Copy_4_Func007001 takes nothing returns boolean
return ( CountUnitsInGroup(GetUnitsInRangeOfLocMatching(800.00, udg_Point, Condition(function Trig_Status_Copy_4_Func007001001001003))) >= 3 )
endfunction
function Trig_Status_Copy_4_Func008001001001003 takes nothing returns boolean
return ( IsUnitInGroup(GetFilterUnit(), udg_Group_Squaters) == true )
endfunction
function Trig_Status_Copy_4_Func008001 takes nothing returns boolean
return ( CountUnitsInGroup(GetUnitsInRangeOfLocMatching(800.00, udg_Point, Condition(function Trig_Status_Copy_4_Func008001001001003))) >= 3 )
endfunction
function Trig_Status_Copy_4_Actions takes nothing returns nothing
set udg_Point = GetUnitLoc(GetTriggerUnit())
call ClearTextMessagesBJ( GetPlayersAll() )
if ( Trig_Status_Copy_4_Func004001() ) then
set udg_TxtPower = "|cff008000Yes|r"
else
set udg_TxtPower = "|cffff0000No|r"
endif
if ( Trig_Status_Copy_4_Func005001() ) then
set udg_TxtWater = "|cff008000Yes|r"
else
set udg_TxtWater = "|cffff0000No|r"
endif
if ( Trig_Status_Copy_4_Func006001() ) then
set udg_TxtValue = "|cffff0000High|r"
else
set udg_TxtValue = "Low"
endif
if ( Trig_Status_Copy_4_Func007001() ) then
set udg_TxtPolution = "|cffff0000High|r"
else
set udg_TxtPolution = "Low"
endif
if ( Trig_Status_Copy_4_Func008001() ) then
set udg_TxtCrimes = "|cffff0000High|r"
else
set udg_TxtCrimes = "Low"
endif
call DisplayTextToForce( bj_FORCE_PLAYER[4], ( "Name : " + GetUnitName(GetTriggerUnit()) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[4], ( "Powered : " + udg_TxtPower ) )
call DisplayTextToForce( bj_FORCE_PLAYER[4], ( "Watered : " + udg_TxtWater ) )
call DisplayTextToForce( bj_FORCE_PLAYER[4], ( "Land Value : " + udg_TxtValue ) )
call DisplayTextToForce( bj_FORCE_PLAYER[4], ( "Pollution : " + udg_TxtPolution ) )
call DisplayTextToForce( bj_FORCE_PLAYER[4], ( "Crimes : " + udg_TxtCrimes ) )
call RemoveLocation(udg_Point)
endfunction
//===========================================================================
function InitTrig_Status_Copy_4 takes nothing returns nothing
set gg_trg_Status_Copy_4 = CreateTrigger( )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_Status_Copy_4, Player(4), true )
call TriggerAddCondition( gg_trg_Status_Copy_4, Condition( function Trig_Status_Copy_4_Conditions ) )
call TriggerAddAction( gg_trg_Status_Copy_4, function Trig_Status_Copy_4_Actions )
endfunction
function Trig_Bug_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) != 'h01F' ) ) then
return false
endif
return true
endfunction
function Trig_Bug_Func002C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetDyingUnit()) == Player(11) ) ) then
return false
endif
return true
endfunction
function Trig_Bug_Func003C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'h000' ) ) then
return false
endif
return true
endfunction
function Trig_Bug_Actions takes nothing returns nothing
if ( Trig_Bug_Func002C() ) then
call RemoveUnit( GetDyingUnit() )
else
endif
if ( Trig_Bug_Func003C() ) then
call RemoveUnit( GetDyingUnit() )
else
endif
endfunction
//===========================================================================
function InitTrig_Bug takes nothing returns nothing
set gg_trg_Bug = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Bug, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Bug, Condition( function Trig_Bug_Conditions ) )
call TriggerAddAction( gg_trg_Bug, function Trig_Bug_Actions )
endfunction
function Trig_Flood_Actions takes nothing returns nothing
set udg_EP[0] = GetRandomLocInRect(GetPlayableMapRect())
call PanCameraToTimedLocForPlayer( GetTriggerPlayer(), udg_EP[0], 1.00 )
call CreateNUnitsAtLoc( 1, 'h01S', Player(PLAYER_NEUTRAL_AGGRESSIVE), udg_EP[0], bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 60.00, 'BTLF', GetLastCreatedUnit() )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 8
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call PlaySoundBJ( gg_snd_WaterStreamLoop1 )
set udg_EP[1] = PolarProjectionBJ(udg_EP[0], 250.00, ( 45.00 * I2R(GetForLoopIndexA()) ))
call CreateNUnitsAtLoc( 1, 'h01S', Player(PLAYER_NEUTRAL_AGGRESSIVE), udg_EP[1], bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 60.00, 'BTLF', GetLastCreatedUnit() )
call RemoveLocation(udg_EP[1])
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call RemoveLocation(udg_EP[0])
endfunction
//===========================================================================
function InitTrig_Flood takes nothing returns nothing
set gg_trg_Flood = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Flood, Player(0), "-flood", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Flood, Player(1), "-flood", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Flood, Player(2), "-flood", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Flood, Player(3), "-flood", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Flood, Player(4), "-flood", true )
call TriggerAddAction( gg_trg_Flood, function Trig_Flood_Actions )
endfunction
function Trig_Fire_Func001001002002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == true )
endfunction
function Trig_Fire_Func001A takes nothing returns nothing
set udg_EP[0] = GetUnitLoc(GetEnumUnit())
call PanCameraToTimedLocForPlayer( GetTriggerPlayer(), udg_EP[0], 1.00 )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 4
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set udg_EP[1] = PolarProjectionBJ(udg_EP[0], 50.00, ( 90.00 * I2R(GetForLoopIndexA()) ))
call CreateNUnitsAtLoc( 1, 'h01T', Player(PLAYER_NEUTRAL_AGGRESSIVE), udg_EP[1], bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 60.00, 'BTLF', GetLastCreatedUnit() )
call RemoveLocation(udg_EP[1])
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call RemoveLocation(udg_EP[0])
endfunction
function Trig_Fire_Actions takes nothing returns nothing
call ForGroupBJ( GetRandomSubGroup(1, GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Fire_Func001001002002))), function Trig_Fire_Func001A )
endfunction
//===========================================================================
function InitTrig_Fire takes nothing returns nothing
set gg_trg_Fire = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Fire, Player(0), "-fire", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Fire, Player(1), "-fire", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Fire, Player(2), "-fire", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Fire, Player(3), "-fire", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Fire, Player(4), "-fire", true )
call TriggerAddAction( gg_trg_Fire, function Trig_Fire_Actions )
endfunction
function Trig_Wild_Fire_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetKillingUnitBJ()) == 'h01T' ) ) then
return false
endif
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_STRUCTURE) == true ) ) then
return false
endif
return true
endfunction
function Trig_Wild_Fire_Actions takes nothing returns nothing
set udg_EP[0] = GetUnitLoc(GetDyingUnit())
call CreateNUnitsAtLoc( 1, 'h01T', Player(PLAYER_NEUTRAL_AGGRESSIVE), udg_EP[0], bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 30.00, 'BTLF', GetLastCreatedUnit() )
call RemoveLocation(udg_EP[0])
endfunction
//===========================================================================
function InitTrig_Wild_Fire takes nothing returns nothing
set gg_trg_Wild_Fire = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Wild_Fire, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Wild_Fire, Condition( function Trig_Wild_Fire_Conditions ) )
call TriggerAddAction( gg_trg_Wild_Fire, function Trig_Wild_Fire_Actions )
endfunction
function Trig_Quake_Func002Func001001002002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == true )
endfunction
function Trig_Quake_Func002Func001A takes nothing returns nothing
set udg_QP = GetUnitLoc(GetEnumUnit())
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnumUnit()), udg_QP, 0.50 )
call PingMinimapLocForForce( GetPlayersAll(), udg_QP, 5.00 )
call AddSpecialEffectLocBJ( udg_QP, "Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call KillUnit( GetEnumUnit() )
call RemoveUnit( GetEnumUnit() )
call RemoveLocation(udg_QP)
endfunction
function Trig_Quake_Actions takes nothing returns nothing
call CameraSetEQNoiseForPlayer( Player(0), 3 )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 3
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call ForGroupBJ( GetRandomSubGroup(1, GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Quake_Func002Func001001002002))), function Trig_Quake_Func002Func001A )
call TriggerSleepAction( 1.00 )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call TriggerSleepAction( 3.00 )
call CameraClearNoiseForPlayer( Player(0) )
endfunction
//===========================================================================
function InitTrig_Quake takes nothing returns nothing
set gg_trg_Quake = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Quake, Player(0), "-quake", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Quake, Player(1), "-quake", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Quake, Player(2), "-quake", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Quake, Player(3), "-quake", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Quake, Player(4), "-quake", true )
call TriggerAddAction( gg_trg_Quake, function Trig_Quake_Actions )
endfunction
function Trig_Riot_Func006A takes nothing returns nothing
set udg_EP[0] = GetUnitLoc(GetEnumUnit())
call PanCameraToTimedLocForPlayer( GetTriggerPlayer(), udg_EP[0], 1.00 )
call PingMinimapLocForForce( GetPlayersAll(), udg_EP[0], 5.00 )
call ClearTextMessagesBJ( GetPlayersAll() )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 10
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set udg_EP[1] = PolarProjectionBJ(udg_EP[0], 150.00, GetRandomDirectionDeg())
call CreateNUnitsAtLoc( 1, 'h01P', Player(11), udg_EP[1], bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 60.00, 'BTLF', GetLastCreatedUnit() )
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_Group_Gangster )
call RemoveLocation(udg_EP[1])
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopBIndex = 1
set bj_forLoopBIndexEnd = 10
loop
exitwhen bj_forLoopBIndex > bj_forLoopBIndexEnd
set udg_EP[1] = PolarProjectionBJ(udg_EP[0], 150.00, GetRandomDirectionDeg())
call CreateNUnitsAtLoc( 1, 'h01P', Player(PLAYER_NEUTRAL_AGGRESSIVE), udg_EP[1], bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 60.00, 'BTLF', GetLastCreatedUnit() )
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_Group_Gangster )
call RemoveLocation(udg_EP[1])
set bj_forLoopBIndex = bj_forLoopBIndex + 1
endloop
call RemoveLocation(udg_EP[0])
endfunction
function Trig_Riot_Actions takes nothing returns nothing
call ForGroupBJ( GetRandomSubGroup(1, udg_Group_Residence), function Trig_Riot_Func006A )
endfunction
//===========================================================================
function InitTrig_Riot takes nothing returns nothing
set gg_trg_Riot = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Riot, Player(0), "-riot", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Riot, Player(1), "-riot", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Riot, Player(2), "-riot", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Riot, Player(3), "-riot", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Riot, Player(4), "-riot", true )
call TriggerAddAction( gg_trg_Riot, function Trig_Riot_Actions )
endfunction