//=========================================================================================
//Requires a global gamecache variable named udg_cscache
//
//Handle Variables System by: kattana
//=========================================================================================
function H2I takes handle h returns integer
return h
return 0
endfunction
function Cache takes nothing returns gamecache
if udg_cscache==null then
set udg_cscache=InitGameCache("Cache")
endif
return udg_cscache
endfunction
function SetHandleInt takes handle subject, string key, integer value returns nothing
call StoreInteger(Cache(),I2S(H2I(subject)),key,value)
endfunction
function SetHandleHandle takes handle subject, string key, handle value returns nothing
if value==null then
call FlushStoredInteger(Cache(),I2S(H2I(subject)),key)
else
call StoreInteger(Cache(),I2S(H2I(subject)),key,H2I(value))
endif
endfunction
function SetHandleReal takes handle subject, string key, real value returns nothing
if value==0 then
call FlushStoredReal(Cache(),I2S(H2I(subject)),key)
else
call StoreReal(Cache(),I2S(H2I(subject)),key,value)
endif
endfunction
function GetHandleHandle takes handle subject, string key returns handle
return GetStoredInteger(Cache(),I2S(H2I(subject)),key)
return null
endfunction
function GetHandleEffect takes handle subject, string key returns effect
return GetStoredInteger(Cache(),I2S(H2I(subject)),key)
return null
endfunction
function GetHandleUnit takes handle subject, string key returns unit
return GetStoredInteger(Cache(),I2S(H2I(subject)),key)
return null
endfunction
function GetHandleLightning takes handle subject, string key returns lightning
return GetStoredInteger(Cache(),I2S(H2I(subject)),key)
return null
endfunction
function GetHandleReal takes handle subject, string key returns real
return GetStoredReal(Cache(),I2S(H2I(subject)),key)
endfunction
function GetHandleInt takes handle subject, string key returns integer
return GetStoredInteger(Cache(),I2S(H2I(subject)),key)
endfunction
function FlushHandleLocals takes handle subject returns nothing
call FlushStoredMission(Cache(),I2S(H2I(subject)))
endfunction
Name | Type | is_array | initial_value |
____Glove | itemtype | No | |
____Helmet | itemtype | No | |
____Ring | itemtype | No | |
____Shield | itemtype | No | |
____Staff | itemtype | No | |
____Sword | itemtype | No | |
Add | real | Yes | |
AgilCaster | unit | No | |
AllAngles | real | Yes | |
AllDistance | real | Yes | |
AllUnits | unit | Yes | |
AllUnitsNumber | integer | No | |
angle | real | Yes | |
AnotherTime | integer | No | |
AttackDummy | unit | No | |
AttackedUnit | unit | No | |
attackpoint | location | No | |
bdoors | boolean | Yes | |
bDuel | boolean | No | false |
blademaster | unit | No | |
BottomLeftNewUnit | unit | No | |
BottomNewUnit | unit | No | |
BottomRightNewUnit | unit | No | |
bPasued | boolean | No | false |
bTeam1Playing | boolean | No | |
bTeam2Playing | boolean | No | |
Caster | unit | No | |
CastingUnit | unit | No | |
Counter | integer | No | |
CreepSpawnNumber | integer | No | 0 |
CreepSpawnTriggers | trigger | Yes | |
Crowd | group | No | |
cscache | gamecache | No | |
Current_RGBT | real | Yes | |
Current_Terrain | terraintype | No | |
CurrentNumber | integer | No | |
Damage | real | No | |
DegreesTurned | real | No | |
distance | real | Yes | |
DrifterEffect | effect | No | |
DriftGlow | effect | Yes | |
DriftingUnit | unit | No | |
DriftTime | real | No | |
DuelTimer | timer | No | |
DuelTimerWindow | timerdialog | No | |
Eye_Angle | real | No | |
ForCreateFire1 | integervar | No | |
ForCreateFire2 | integervar | No | |
ForExtra | integervar | No | |
ForUnitSpin | integervar | No | |
HeroDuelSpots | rect | Yes | |
Heroes | unit | Yes | |
HeroesInArena | group | No | |
HeroesInTeam1SafeZone | group | No | |
HeroesInTeam2SafeZone | group | No | |
HeroSaveDirection | real | Yes | |
HeroSavePoints | location | Yes | |
ID | integer | No | |
InnerFire | unit | Yes | |
JumpCaster | unit | No | |
JumpCasterPoint | location | No | |
JumpSecPoint | location | No | |
JumpSecSecPoint | location | No | |
JumpTargetPoint | location | No | |
JumpTrailEffects | effect | Yes | |
Kills | integer | Yes | |
LightningAlive | boolean | No | |
LightningChains | lightning | Yes | |
LightningStrike | effect | Yes | |
LocPoint1 | location | No | |
LocPoint2 | location | No | |
LocPoint3 | location | No | |
LocReal | real | No | |
LotusAngle | real | No | |
LotusCaster | unit | No | |
LotusDummy | unit | No | |
LotusFade | real | No | |
LotusPoint | location | No | |
LotusTarget | unit | No | |
MagicLinkLightning | lightning | Yes | |
MaxTeamKills | integer | No | 10 |
New_RGBT | real | Yes | |
Original_Color | playercolor | No | |
OuterFire | unit | Yes | |
OuterFireAngles | real | Yes | |
PentagramTimer | integer | No | |
PlayerUnits | unit | Yes | |
Point | location | No | |
PointFire | unit | Yes | |
PointFireAngles | real | Yes | |
PositionOfAttackingUnit | location | No | |
RandomTaunt | integer | No | 1 |
RespawnTime | real | No | |
RGBT | real | Yes | |
rot | real | No | |
RuinAngles | real | Yes | |
Ruins | unit | Yes | |
ScalingSize | real | No | |
SFXCounter | integer | No | |
SFXTrapped | effect | Yes | |
sound | weapontype | No | |
StomperEffect | effect | No | |
StomperPoint | location | No | |
strDebugMSG | string | No | |
SwordEffect | effect | No | |
SwordEffect2 | effect | No | |
Team1 | force | No | |
Team1Kills | integer | No | |
Team1Leader | integer | No | 14 |
Team1LeaderHero | unit | No | UnitNull |
Team2 | force | No | |
Team2Kills | integer | No | |
Team2Leader | integer | No | 14 |
Team2LeaderHero | unit | No | UnitNull |
temp_bHasUnitBeenStored | boolean | Yes | |
temp_CreepSpawnLoc | location | No | |
temp_CustomizedTime | integer | Yes | |
temp_MaxCustomizedArray | integer | No | |
temp_RevivingCreeps | group | No | |
temp_SecondsPerLevel | integer | No | |
temp_TimeFrequencyMAX | integer | Yes | |
temp_TimeLeft | integer | Yes | |
temp_UnitGroup | group | No | |
temp_UnitTypes | unitcode | Yes | |
temp_UnitTypes_ForTime | unitcode | Yes | |
TempAmount | integer | Yes | |
TempAngle1 | real | No | |
TempAngle2 | real | Yes | |
TempDistance | real | No | |
TempMaxKill | integer | No | |
TempReduceCounter | integer | No | |
TempUnitGroup | group | No | |
TheLeaderBoard | leaderboard | No | |
TimeSpheres | group | No | |
TopLeftNewUnit | unit | No | |
TopRightNewUnit | unit | No | |
udg_cache | gamecache | No | |
udg_cscache | gamecache | No | |
victim | unit | No | |
X | real | Yes | |
Y | real | Yes | |
zz_bDisableRanges | boolean | No | |
zz_bDisableSameTime | boolean | No | |
zz_bGlove | boolean | Yes | |
zz_bHelmet | boolean | Yes | |
zz_bIsThereHero | boolean | No | |
zz_bRing | boolean | Yes | |
zz_bShield | boolean | Yes | |
zz_bStaff | boolean | Yes | |
zz_bSword | boolean | Yes | |
zz_DamageTextTime | real | No | |
zz_Experience | real | No | |
zz_ExperienceFloatingTextTime | real | No | |
zz_ExperiencePerLevel | real | No | |
zz_ExtraXPForKiller | real | No | |
zz_ExtraXPForOther | real | No | |
zz_FinalExperience | real | No | |
zz_FinalOtherExperience | real | No | |
zz_Hero | group | No | |
zz_HeroAllies | group | No | |
zz_HeroAlliesAmount | integer | No | |
zz_HeroKillerLoc | location | No | |
zz_IntegerItemClassCheck | integer | No | |
zz_Item | itemcode | Yes | |
zz_ItemCreepLevel | integer | Yes | |
zz_ItemPercentInPool | real | Yes | |
zz_ItemPool | itemcode | Yes | |
zz_ItemPool_ID | integer | No | |
zz_MaxRangeOfExp | real | No | |
zz_NumOfItems | integer | No | |
zz_OtherExperience | real | No | |
zz_PercentOfDropping | real | Yes | |
zz_RandomItem | integer | No | |
zz_SpellTextTime | real | No | |
zz_TimeCreeps | integer | No | |
zz_TimeRange | integer | Yes | |
zz_TreeRevivalInterval | real | No | |
zzConvertRealToInteger | integer | Yes | |
zzStr_ExperienceTag | string | No |
function Trig_Set_Cam_View_to_Game_Actions takes nothing returns nothing
call ResetToGameCameraForPlayer( GetTriggerPlayer(), 5.00 )
endfunction
//===========================================================================
function InitTrig_Set_Cam_View_to_Game takes nothing returns nothing
set gg_trg_Set_Cam_View_to_Game = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Game, Player(0), "Game", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Game, Player(1), "Game", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Game, Player(2), "Game", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Game, Player(3), "Game", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Game, Player(4), "Game", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Game, Player(5), "Game", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Game, Player(6), "Game", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Game, Player(7), "Game", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Game, Player(8), "Game", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Game, Player(9), "Game", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Game, Player(10), "Game", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Game, Player(11), "Game", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Game, Player(0), "Min", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Game, Player(1), "Min", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Game, Player(2), "Min", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Game, Player(3), "Min", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Game, Player(4), "Min", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Game, Player(5), "Min", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Game, Player(6), "Min", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Game, Player(7), "Min", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Game, Player(8), "Min", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Game, Player(9), "Min", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Game, Player(10), "Min", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Game, Player(11), "Min", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Game, Player(0), "Minimum", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Game, Player(1), "Minimum", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Game, Player(2), "Minimum", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Game, Player(3), "Minimum", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Game, Player(4), "Minimum", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Game, Player(5), "Minimum", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Game, Player(6), "Minimum", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Game, Player(7), "Minimum", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Game, Player(8), "Minimum", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Game, Player(9), "Minimum", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Game, Player(10), "Minimum", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Game, Player(11), "Minimum", true )
call TriggerAddAction( gg_trg_Set_Cam_View_to_Game, function Trig_Set_Cam_View_to_Game_Actions )
endfunction
function Trig_Set_Cam_View_to_Medium_Actions takes nothing returns nothing
call SetCameraFieldForPlayer( GetTriggerPlayer(), CAMERA_FIELD_TARGET_DISTANCE, 2000.00, 5.00 )
endfunction
//===========================================================================
function InitTrig_Set_Cam_View_to_Medium takes nothing returns nothing
set gg_trg_Set_Cam_View_to_Medium = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Medium, Player(0), "Med", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Medium, Player(1), "Med", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Medium, Player(2), "Med", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Medium, Player(3), "Med", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Medium, Player(4), "Med", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Medium, Player(5), "Med", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Medium, Player(6), "Med", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Medium, Player(7), "Med", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Medium, Player(8), "Med", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Medium, Player(9), "Med", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Medium, Player(10), "Med", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Medium, Player(11), "Med", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Medium, Player(0), "Medium", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Medium, Player(1), "Medium", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Medium, Player(2), "Medium", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Medium, Player(3), "Medium", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Medium, Player(4), "Medium", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Medium, Player(5), "Medium", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Medium, Player(6), "Medium", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Medium, Player(7), "Medium", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Medium, Player(8), "Medium", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Medium, Player(9), "Medium", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Medium, Player(10), "Medium", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Medium, Player(11), "Medium", true )
call TriggerAddAction( gg_trg_Set_Cam_View_to_Medium, function Trig_Set_Cam_View_to_Medium_Actions )
endfunction
function Trig_Set_Cam_View_to_Maxium_Actions takes nothing returns nothing
call SetCameraFieldForPlayer( GetTriggerPlayer(), CAMERA_FIELD_TARGET_DISTANCE, 2700.00, 5.00 )
endfunction
//===========================================================================
function InitTrig_Set_Cam_View_to_Maxium takes nothing returns nothing
set gg_trg_Set_Cam_View_to_Maxium = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Maxium, Player(0), "Max", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Maxium, Player(1), "Max", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Maxium, Player(2), "Max", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Maxium, Player(3), "Max", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Maxium, Player(4), "Max", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Maxium, Player(5), "Max", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Maxium, Player(6), "Max", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Maxium, Player(7), "Max", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Maxium, Player(8), "Max", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Maxium, Player(9), "Max", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Maxium, Player(10), "Max", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Maxium, Player(11), "Max", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Maxium, Player(0), "Maximum", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Maxium, Player(1), "Maximum", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Maxium, Player(2), "Maximum", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Maxium, Player(3), "Maximum", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Maxium, Player(4), "Maximum", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Maxium, Player(5), "Maximum", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Maxium, Player(6), "Maximum", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Maxium, Player(7), "Maximum", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Maxium, Player(8), "Maximum", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Maxium, Player(9), "Maximum", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Maxium, Player(10), "Maximum", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Set_Cam_View_to_Maxium, Player(11), "Maximum", true )
call TriggerAddAction( gg_trg_Set_Cam_View_to_Maxium, function Trig_Set_Cam_View_to_Maxium_Actions )
endfunction
function Trig_Reset_Actions takes nothing returns nothing
call SetCameraFieldForPlayer( GetTriggerPlayer(), CAMERA_FIELD_ROTATION, 90.00, 5.00 )
call ResetToGameCameraForPlayer( GetTriggerPlayer(), 5.00 )
endfunction
//===========================================================================
function InitTrig_Reset takes nothing returns nothing
set gg_trg_Reset = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Reset, Player(0), "Reset", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Reset, Player(1), "Reset", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Reset, Player(2), "Reset", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Reset, Player(3), "Reset", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Reset, Player(4), "Reset", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Reset, Player(5), "Reset", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Reset, Player(6), "Reset", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Reset, Player(7), "Reset", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Reset, Player(8), "Reset", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Reset, Player(9), "Reset", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Reset, Player(10), "Reset", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Reset, Player(11), "Reset", true )
call TriggerAddAction( gg_trg_Reset, function Trig_Reset_Actions )
endfunction
function Trig_jerkred_test_Conditions takes nothing returns boolean
if ( not ( CountLivingPlayerUnitsOfTypeId('o000', Player(0)) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_jerkred_test_Actions takes nothing returns nothing
call SetUnitExplodedBJ( udg_Heroes[GetConvertedPlayerId(Player(0))], true )
call TriggerSleepAction( 0.10 )
call KillUnit( udg_Heroes[GetConvertedPlayerId(Player(0))] )
call RemoveUnit( udg_Heroes[GetConvertedPlayerId(Player(0))] )
call PanCameraToTimedLocForPlayer( Player(0), GetRectCenter(gg_rct_Gebiet_164), 1.00 )
call CreateNUnitsAtLoc( 1, 'o000', Player(0), GetRectCenter(gg_rct_Gebiet_164), bj_UNIT_FACING )
call CinematicModeBJ( true, bj_FORCE_PLAYER[0] )
endfunction
//===========================================================================
function InitTrig_jerkred_test takes nothing returns nothing
set gg_trg_jerkred_test = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_jerkred_test, Player(0), "jerk red", true )
call TriggerAddCondition( gg_trg_jerkred_test, Condition( function Trig_jerkred_test_Conditions ) )
call TriggerAddAction( gg_trg_jerkred_test, function Trig_jerkred_test_Actions )
endfunction
function Trig_jerkblue_Conditions takes nothing returns boolean
if ( not ( CountLivingPlayerUnitsOfTypeId('o000', Player(1)) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_jerkblue_Actions takes nothing returns nothing
call SetUnitExplodedBJ( udg_Heroes[GetConvertedPlayerId(Player(1))], true )
call TriggerSleepAction( 0.10 )
call KillUnit( udg_Heroes[GetConvertedPlayerId(Player(1))] )
call RemoveUnit( udg_Heroes[GetConvertedPlayerId(Player(1))] )
call PanCameraToTimedLocForPlayer( Player(1), GetRectCenter(gg_rct_Gebiet_164), 1.00 )
call CreateNUnitsAtLoc( 1, 'o000', Player(1), GetRectCenter(gg_rct_Gebiet_164), bj_UNIT_FACING )
call CinematicModeBJ( true, bj_FORCE_PLAYER[1] )
endfunction
//===========================================================================
function InitTrig_jerkblue takes nothing returns nothing
set gg_trg_jerkblue = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_jerkblue, Player(0), "jerk blue", true )
call TriggerAddCondition( gg_trg_jerkblue, Condition( function Trig_jerkblue_Conditions ) )
call TriggerAddAction( gg_trg_jerkblue, function Trig_jerkblue_Actions )
endfunction
function Trig_jerkgreyblue_Conditions takes nothing returns boolean
if ( not ( CountLivingPlayerUnitsOfTypeId('o000', Player(2)) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_jerkgreyblue_Actions takes nothing returns nothing
call SetUnitExplodedBJ( udg_Heroes[GetConvertedPlayerId(Player(2))], true )
call TriggerSleepAction( 0.10 )
call KillUnit( udg_Heroes[GetConvertedPlayerId(Player(2))] )
call RemoveUnit( udg_Heroes[GetConvertedPlayerId(Player(2))] )
call PanCameraToTimedLocForPlayer( Player(2), GetRectCenter(gg_rct_Gebiet_164), 1.00 )
call CreateNUnitsAtLoc( 1, 'o000', Player(2), GetRectCenter(gg_rct_Gebiet_164), bj_UNIT_FACING )
call CinematicModeBJ( true, bj_FORCE_PLAYER[2] )
endfunction
//===========================================================================
function InitTrig_jerkgreyblue takes nothing returns nothing
set gg_trg_jerkgreyblue = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_jerkgreyblue, Player(0), "jerk greyblue", true )
call TriggerAddCondition( gg_trg_jerkgreyblue, Condition( function Trig_jerkgreyblue_Conditions ) )
call TriggerAddAction( gg_trg_jerkgreyblue, function Trig_jerkgreyblue_Actions )
endfunction
function Trig_jerkpurple_Conditions takes nothing returns boolean
if ( not ( CountLivingPlayerUnitsOfTypeId('o000', Player(3)) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_jerkpurple_Actions takes nothing returns nothing
call SetUnitExplodedBJ( udg_Heroes[GetConvertedPlayerId(Player(3))], true )
call TriggerSleepAction( 0.10 )
call KillUnit( udg_Heroes[GetConvertedPlayerId(Player(3))] )
call RemoveUnit( udg_Heroes[GetConvertedPlayerId(Player(3))] )
call PanCameraToTimedLocForPlayer( Player(3), GetRectCenter(gg_rct_Gebiet_164), 1.00 )
call CreateNUnitsAtLoc( 1, 'o000', Player(3), GetRectCenter(gg_rct_Gebiet_164), bj_UNIT_FACING )
call CinematicModeBJ( true, bj_FORCE_PLAYER[3] )
endfunction
//===========================================================================
function InitTrig_jerkpurple takes nothing returns nothing
set gg_trg_jerkpurple = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_jerkpurple, Player(0), "jerk purple", true )
call TriggerAddCondition( gg_trg_jerkpurple, Condition( function Trig_jerkpurple_Conditions ) )
call TriggerAddAction( gg_trg_jerkpurple, function Trig_jerkpurple_Actions )
endfunction
function Trig_jerkyellow_Conditions takes nothing returns boolean
if ( not ( CountLivingPlayerUnitsOfTypeId('o000', Player(4)) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_jerkyellow_Actions takes nothing returns nothing
call SetUnitExplodedBJ( udg_Heroes[GetConvertedPlayerId(Player(4))], true )
call TriggerSleepAction( 0.10 )
call KillUnit( udg_Heroes[GetConvertedPlayerId(Player(4))] )
call RemoveUnit( udg_Heroes[GetConvertedPlayerId(Player(4))] )
call PanCameraToTimedLocForPlayer( Player(4), GetRectCenter(gg_rct_Gebiet_164), 1.00 )
call CreateNUnitsAtLoc( 1, 'o000', Player(4), GetRectCenter(gg_rct_Gebiet_164), bj_UNIT_FACING )
call CinematicModeBJ( true, bj_FORCE_PLAYER[4] )
endfunction
//===========================================================================
function InitTrig_jerkyellow takes nothing returns nothing
set gg_trg_jerkyellow = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_jerkyellow, Player(0), "jerk yellow", true )
call TriggerAddCondition( gg_trg_jerkyellow, Condition( function Trig_jerkyellow_Conditions ) )
call TriggerAddAction( gg_trg_jerkyellow, function Trig_jerkyellow_Actions )
endfunction
function Trig_jerkorange_Conditions takes nothing returns boolean
if ( not ( CountLivingPlayerUnitsOfTypeId('o000', Player(5)) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_jerkorange_Actions takes nothing returns nothing
call SetUnitExplodedBJ( udg_Heroes[GetConvertedPlayerId(Player(5))], true )
call TriggerSleepAction( 0.10 )
call KillUnit( udg_Heroes[GetConvertedPlayerId(Player(5))] )
call RemoveUnit( udg_Heroes[GetConvertedPlayerId(Player(5))] )
call PanCameraToTimedLocForPlayer( Player(5), GetRectCenter(gg_rct_Gebiet_164), 1.00 )
call CreateNUnitsAtLoc( 1, 'o000', Player(5), GetRectCenter(gg_rct_Gebiet_164), bj_UNIT_FACING )
call CinematicModeBJ( true, bj_FORCE_PLAYER[5] )
endfunction
//===========================================================================
function InitTrig_jerkorange takes nothing returns nothing
set gg_trg_jerkorange = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_jerkorange, Player(0), "jerk orange", true )
call TriggerAddCondition( gg_trg_jerkorange, Condition( function Trig_jerkorange_Conditions ) )
call TriggerAddAction( gg_trg_jerkorange, function Trig_jerkorange_Actions )
endfunction
function Trig_jerkgreen_Conditions takes nothing returns boolean
if ( not ( CountLivingPlayerUnitsOfTypeId('o000', Player(6)) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_jerkgreen_Actions takes nothing returns nothing
call SetUnitExplodedBJ( udg_Heroes[GetConvertedPlayerId(Player(6))], true )
call TriggerSleepAction( 0.10 )
call KillUnit( udg_Heroes[GetConvertedPlayerId(Player(6))] )
call RemoveUnit( udg_Heroes[GetConvertedPlayerId(Player(6))] )
call PanCameraToTimedLocForPlayer( Player(6), GetRectCenter(gg_rct_Gebiet_164), 1.00 )
call CreateNUnitsAtLoc( 1, 'o000', Player(6), GetRectCenter(gg_rct_Gebiet_164), bj_UNIT_FACING )
call CinematicModeBJ( true, bj_FORCE_PLAYER[6] )
endfunction
//===========================================================================
function InitTrig_jerkgreen takes nothing returns nothing
set gg_trg_jerkgreen = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_jerkgreen, Player(0), "jerk green", true )
call TriggerAddCondition( gg_trg_jerkgreen, Condition( function Trig_jerkgreen_Conditions ) )
call TriggerAddAction( gg_trg_jerkgreen, function Trig_jerkgreen_Actions )
endfunction
function Trig_jerkpink_Conditions takes nothing returns boolean
if ( not ( CountLivingPlayerUnitsOfTypeId('o000', Player(7)) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_jerkpink_Actions takes nothing returns nothing
call SetUnitExplodedBJ( udg_Heroes[GetConvertedPlayerId(Player(7))], true )
call TriggerSleepAction( 0.10 )
call KillUnit( udg_Heroes[GetConvertedPlayerId(Player(7))] )
call RemoveUnit( udg_Heroes[GetConvertedPlayerId(Player(7))] )
call PanCameraToTimedLocForPlayer( Player(7), GetRectCenter(gg_rct_Gebiet_164), 1.00 )
call CreateNUnitsAtLoc( 1, 'o000', Player(7), GetRectCenter(gg_rct_Gebiet_164), bj_UNIT_FACING )
call CinematicModeBJ( true, bj_FORCE_PLAYER[7] )
endfunction
//===========================================================================
function InitTrig_jerkpink takes nothing returns nothing
set gg_trg_jerkpink = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_jerkpink, Player(0), "jerk pink", true )
call TriggerAddCondition( gg_trg_jerkpink, Condition( function Trig_jerkpink_Conditions ) )
call TriggerAddAction( gg_trg_jerkpink, function Trig_jerkpink_Actions )
endfunction
function Trig_jerkgrey_Conditions takes nothing returns boolean
if ( not ( CountLivingPlayerUnitsOfTypeId('o000', Player(8)) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_jerkgrey_Actions takes nothing returns nothing
call SetUnitExplodedBJ( udg_Heroes[GetConvertedPlayerId(Player(8))], true )
call TriggerSleepAction( 0.10 )
call KillUnit( udg_Heroes[GetConvertedPlayerId(Player(8))] )
call RemoveUnit( udg_Heroes[GetConvertedPlayerId(Player(8))] )
call PanCameraToTimedLocForPlayer( Player(8), GetRectCenter(gg_rct_Gebiet_164), 1.00 )
call CreateNUnitsAtLoc( 1, 'o000', Player(8), GetRectCenter(gg_rct_Gebiet_164), bj_UNIT_FACING )
call CinematicModeBJ( true, bj_FORCE_PLAYER[8] )
endfunction
//===========================================================================
function InitTrig_jerkgrey takes nothing returns nothing
set gg_trg_jerkgrey = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_jerkgrey, Player(0), "jerk grey", true )
call TriggerAddCondition( gg_trg_jerkgrey, Condition( function Trig_jerkgrey_Conditions ) )
call TriggerAddAction( gg_trg_jerkgrey, function Trig_jerkgrey_Actions )
endfunction
function Trig_jerklightblue_Conditions takes nothing returns boolean
if ( not ( CountLivingPlayerUnitsOfTypeId('o000', Player(9)) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_jerklightblue_Actions takes nothing returns nothing
call SetUnitExplodedBJ( udg_Heroes[GetConvertedPlayerId(Player(9))], true )
call TriggerSleepAction( 0.10 )
call KillUnit( udg_Heroes[GetConvertedPlayerId(Player(9))] )
call RemoveUnit( udg_Heroes[GetConvertedPlayerId(Player(9))] )
call PanCameraToTimedLocForPlayer( Player(9), GetRectCenter(gg_rct_Gebiet_164), 1.00 )
call CreateNUnitsAtLoc( 1, 'o000', Player(9), GetRectCenter(gg_rct_Gebiet_164), bj_UNIT_FACING )
call CinematicModeBJ( true, bj_FORCE_PLAYER[9] )
endfunction
//===========================================================================
function InitTrig_jerklightblue takes nothing returns nothing
set gg_trg_jerklightblue = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_jerklightblue, Player(0), "jerk lightblue", true )
call TriggerAddCondition( gg_trg_jerklightblue, Condition( function Trig_jerklightblue_Conditions ) )
call TriggerAddAction( gg_trg_jerklightblue, function Trig_jerklightblue_Actions )
endfunction
function Trig_jerkdarkgreen_Conditions takes nothing returns boolean
if ( not ( CountLivingPlayerUnitsOfTypeId('o000', Player(10)) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_jerkdarkgreen_Actions takes nothing returns nothing
call SetUnitExplodedBJ( udg_Heroes[GetConvertedPlayerId(Player(10))], true )
call TriggerSleepAction( 0.10 )
call KillUnit( udg_Heroes[GetConvertedPlayerId(Player(10))] )
call RemoveUnit( udg_Heroes[GetConvertedPlayerId(Player(10))] )
call PanCameraToTimedLocForPlayer( Player(10), GetRectCenter(gg_rct_Gebiet_164), 1.00 )
call CreateNUnitsAtLoc( 1, 'o000', Player(10), GetRectCenter(gg_rct_Gebiet_164), bj_UNIT_FACING )
call CinematicModeBJ( true, bj_FORCE_PLAYER[10] )
endfunction
//===========================================================================
function InitTrig_jerkdarkgreen takes nothing returns nothing
set gg_trg_jerkdarkgreen = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_jerkdarkgreen, Player(0), "jerk darkgreen", true )
call TriggerAddCondition( gg_trg_jerkdarkgreen, Condition( function Trig_jerkdarkgreen_Conditions ) )
call TriggerAddAction( gg_trg_jerkdarkgreen, function Trig_jerkdarkgreen_Actions )
endfunction
function Trig_jerkbrown_Conditions takes nothing returns boolean
if ( not ( CountLivingPlayerUnitsOfTypeId('o000', Player(11)) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_jerkbrown_Actions takes nothing returns nothing
call SetUnitExplodedBJ( udg_Heroes[GetConvertedPlayerId(Player(11))], true )
call TriggerSleepAction( 0.10 )
call KillUnit( udg_Heroes[GetConvertedPlayerId(Player(11))] )
call RemoveUnit( udg_Heroes[GetConvertedPlayerId(Player(11))] )
call PanCameraToTimedLocForPlayer( Player(11), GetRectCenter(gg_rct_Gebiet_164), 1.00 )
call CreateNUnitsAtLoc( 1, 'o000', Player(11), GetRectCenter(gg_rct_Gebiet_164), bj_UNIT_FACING )
call CinematicModeBJ( true, bj_FORCE_PLAYER[11] )
endfunction
//===========================================================================
function InitTrig_jerkbrown takes nothing returns nothing
set gg_trg_jerkbrown = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_jerkbrown, Player(0), "jerk brown", true )
call TriggerAddCondition( gg_trg_jerkbrown, Condition( function Trig_jerkbrown_Conditions ) )
call TriggerAddAction( gg_trg_jerkbrown, function Trig_jerkbrown_Actions )
endfunction
function Trig_host_Actions takes nothing returns nothing
call DisplayTimedTextToForce( bj_FORCE_PLAYER[0], 30, "TRIGSTR_1824" )
endfunction
//===========================================================================
function InitTrig_host takes nothing returns nothing
set gg_trg_host = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_host, Player(0), "-kick", true )
call TriggerAddAction( gg_trg_host, function Trig_host_Actions )
endfunction
function Trig_Taunt_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( udg_RandomTaunt == 10 ) ) then
return false
endif
return true
endfunction
function Trig_Taunt_Func002Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( udg_RandomTaunt == 9 ) ) then
return false
endif
return true
endfunction
function Trig_Taunt_Func002Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( udg_RandomTaunt == 8 ) ) then
return false
endif
return true
endfunction
function Trig_Taunt_Func002Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( udg_RandomTaunt == 7 ) ) then
return false
endif
return true
endfunction
function Trig_Taunt_Func002Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( udg_RandomTaunt == 6 ) ) then
return false
endif
return true
endfunction
function Trig_Taunt_Func002Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( udg_RandomTaunt == 5 ) ) then
return false
endif
return true
endfunction
function Trig_Taunt_Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( udg_RandomTaunt == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Taunt_Func002Func001Func001C takes nothing returns boolean
if ( not ( udg_RandomTaunt == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Taunt_Func002Func001C takes nothing returns boolean
if ( not ( udg_RandomTaunt == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Taunt_Func002C takes nothing returns boolean
if ( not ( udg_RandomTaunt == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Taunt_Actions takes nothing returns nothing
set udg_RandomTaunt = GetRandomInt(1, 10)
if ( Trig_Taunt_Func002C() ) then
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + " thinks that you are noobish!" ) )
call PlaySoundAtPointBJ( gg_snd_CentaurPissed1, 100, GetRectCenter(gg_rct_Arena), 0 )
else
if ( Trig_Taunt_Func002Func001C() ) then
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + " thinks that you are too small." ) )
call PlaySoundBJ( gg_snd_CentaurPissed2 )
else
if ( Trig_Taunt_Func002Func001Func001C() ) then
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + " thinks that you are a kiddy." ) )
call PlaySoundBJ( gg_snd_DragonYes2 )
else
if ( Trig_Taunt_Func002Func001Func001Func001C() ) then
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + " thinks that he got big balls." ) )
call PlaySoundBJ( gg_snd_ForestTrollPissed4 )
else
if ( Trig_Taunt_Func002Func001Func001Func001Func001C() ) then
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + " thinks that you will loose." ) )
call PlaySoundBJ( gg_snd_GnollPissed4 )
else
if ( Trig_Taunt_Func002Func001Func001Func001Func001Func001C() ) then
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + " is angry. because of YOU!" ) )
call PlaySoundBJ( gg_snd_MurlocPissed2 )
else
if ( Trig_Taunt_Func002Func001Func001Func001Func001Func001Func001C() ) then
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + " would like to kick you phat ass!" ) )
call PlaySoundBJ( gg_snd_TichondriusPissed3 )
else
if ( Trig_Taunt_Func002Func001Func001Func001Func001Func001Func001Func001C() ) then
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + " says: OMFG WTF IS WRONG WITH U? STFU NOOB!" ) )
call PlaySoundBJ( gg_snd_TuskarrWhat2 )
else
if ( Trig_Taunt_Func002Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + " would like to get a glas of whine. " ) )
call PlaySoundBJ( gg_snd_UnbrokenDeath1 )
else
if ( Trig_Taunt_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + " would like to get a bottle of whine. and cheese please!" ) )
call PlaySoundBJ( gg_snd_OgrePissed5 )
else
call DoNothing( )
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
call DisableTrigger( GetTriggeringTrigger() )
call TriggerSleepAction( 1.00 )
call EnableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Taunt takes nothing returns nothing
set gg_trg_Taunt = CreateTrigger( )
call DisableTrigger( gg_trg_Taunt )
call TriggerRegisterPlayerEventEndCinematic( gg_trg_Taunt, Player(0) )
call TriggerRegisterPlayerEventEndCinematic( gg_trg_Taunt, Player(1) )
call TriggerRegisterPlayerEventEndCinematic( gg_trg_Taunt, Player(2) )
call TriggerRegisterPlayerEventEndCinematic( gg_trg_Taunt, Player(3) )
call TriggerRegisterPlayerEventEndCinematic( gg_trg_Taunt, Player(4) )
call TriggerRegisterPlayerEventEndCinematic( gg_trg_Taunt, Player(5) )
call TriggerRegisterPlayerEventEndCinematic( gg_trg_Taunt, Player(6) )
call TriggerRegisterPlayerEventEndCinematic( gg_trg_Taunt, Player(7) )
call TriggerRegisterPlayerEventEndCinematic( gg_trg_Taunt, Player(8) )
call TriggerRegisterPlayerEventEndCinematic( gg_trg_Taunt, Player(9) )
call TriggerRegisterPlayerEventEndCinematic( gg_trg_Taunt, Player(10) )
call TriggerRegisterPlayerEventEndCinematic( gg_trg_Taunt, Player(11) )
call TriggerAddAction( gg_trg_Taunt, function Trig_Taunt_Actions )
endfunction
function Trig_Untitled_Trigger_001_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(0), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(1), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(2), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(3), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(4), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(5), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(6), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(7), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(8), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(9), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(10), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(11), bj_ALLIANCE_UNALLIED )
endfunction
//===========================================================================
function InitTrig_Untitled_Trigger_001 takes nothing returns nothing
set gg_trg_Untitled_Trigger_001 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Untitled_Trigger_001, Player(0), "ronin", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Untitled_Trigger_001, Player(1), "ronin", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Untitled_Trigger_001, Player(2), "ronin", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Untitled_Trigger_001, Player(3), "ronin", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Untitled_Trigger_001, Player(4), "ronin", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Untitled_Trigger_001, Player(5), "ronin", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Untitled_Trigger_001, Player(6), "ronin", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Untitled_Trigger_001, Player(7), "ronin", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Untitled_Trigger_001, Player(8), "ronin", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Untitled_Trigger_001, Player(9), "ronin", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Untitled_Trigger_001, Player(10), "ronin", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Untitled_Trigger_001, Player(11), "ronin", true )
call TriggerAddAction( gg_trg_Untitled_Trigger_001, function Trig_Untitled_Trigger_001_Actions )
endfunction
function Trig_End_Duel_Func002002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRandomLocInRect(gg_rct_Crowd), GetRectCenter(gg_rct_Arena) )
endfunction
function Trig_End_Duel_Actions takes nothing returns nothing
call PauseAllUnitsBJ( true )
call ForGroupBJ( udg_Crowd, function Trig_End_Duel_Func002002 )
call SetUnitPositionLoc( gg_unit_Huth_0024, GetRectCenter(gg_rct_UtherHome) )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call SetUnitPositionLocFacingBJ( udg_Heroes[GetForLoopIndexA()], udg_HeroSavePoints[GetForLoopIndexA()], udg_HeroSaveDirection[GetForLoopIndexA()] )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call SetUnitInvulnerable( udg_Heroes[GetForLoopIndexA()], false )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call PanCameraToTimedLocForPlayer( ConvertedPlayer(GetForLoopIndexA()), udg_HeroSavePoints[GetForLoopIndexA()], 1.00 )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set udg_Team1Leader = 14
set udg_Team2Leader = 14
set udg_Team1LeaderHero = null
set udg_Team2LeaderHero = null
call TriggerSleepAction( 5.00 )
set udg_bDuel = false
set udg_bPasued = false
call PauseAllUnitsBJ( false )
call StartTimerBJ( udg_DuelTimer, false, 900.00 )
call StopMusicBJ( true )
endfunction
//===========================================================================
function InitTrig_End_Duel takes nothing returns nothing
set gg_trg_End_Duel = CreateTrigger( )
call TriggerAddAction( gg_trg_End_Duel, function Trig_End_Duel_Actions )
endfunction
function Trig_Start_Duel_Func007002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetEnumPlayer(), GetRectCenter(gg_rct_DuelArena), 0.50 )
endfunction
function Trig_Start_Duel_Func009002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRandomLocInRect(gg_rct_DuelCrowd), GetRectCenter(gg_rct_DuelArena) )
endfunction
function Trig_Start_Duel_Func010002 takes nothing returns nothing
call PauseUnitBJ( false, GetEnumUnit() )
endfunction
function Trig_Start_Duel_Func017003001001 takes nothing returns boolean
return ( udg_Kills[GetForLoopIndexA()] > udg_TempMaxKill )
endfunction
function Trig_Start_Duel_Func017003001002 takes nothing returns boolean
return ( GetPlayerSlotState(ConvertedPlayer(GetForLoopIndexA())) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Start_Duel_Func017003001 takes nothing returns boolean
return GetBooleanAnd( Trig_Start_Duel_Func017003001001(), Trig_Start_Duel_Func017003001002() )
endfunction
function Trig_Start_Duel_Func018003001001 takes nothing returns boolean
return ( udg_Kills[GetForLoopIndexA()] == udg_TempMaxKill )
endfunction
function Trig_Start_Duel_Func018003001002 takes nothing returns boolean
return ( GetPlayerSlotState(ConvertedPlayer(GetForLoopIndexA())) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Start_Duel_Func018003001 takes nothing returns boolean
return GetBooleanAnd( Trig_Start_Duel_Func018003001001(), Trig_Start_Duel_Func018003001002() )
endfunction
function Trig_Start_Duel_Func025003001001 takes nothing returns boolean
return ( udg_Kills[GetForLoopIndexA()] > udg_TempMaxKill )
endfunction
function Trig_Start_Duel_Func025003001002 takes nothing returns boolean
return ( GetPlayerSlotState(ConvertedPlayer(GetForLoopIndexA())) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Start_Duel_Func025003001 takes nothing returns boolean
return GetBooleanAnd( Trig_Start_Duel_Func025003001001(), Trig_Start_Duel_Func025003001002() )
endfunction
function Trig_Start_Duel_Func026003001001 takes nothing returns boolean
return ( udg_Kills[GetForLoopIndexA()] == udg_TempMaxKill )
endfunction
function Trig_Start_Duel_Func026003001002 takes nothing returns boolean
return ( GetPlayerSlotState(ConvertedPlayer(GetForLoopIndexA())) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Start_Duel_Func026003001 takes nothing returns boolean
return GetBooleanAnd( Trig_Start_Duel_Func026003001001(), Trig_Start_Duel_Func026003001002() )
endfunction
function Trig_Start_Duel_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_058" )
call PauseAllUnitsBJ( true )
set udg_bPasued = true
set udg_bDuel = true
call TriggerSleepAction( 1.00 )
call ForForce( GetPlayersAll(), function Trig_Start_Duel_Func007002 )
call SetUnitPositionLoc( gg_unit_Huth_0024, GetRectCenter(gg_rct_UtherDuel) )
call ForGroupBJ( udg_Crowd, function Trig_Start_Duel_Func009002 )
call ForGroupBJ( udg_Crowd, function Trig_Start_Duel_Func010002 )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set udg_HeroSavePoints[GetForLoopIndexA()] = GetUnitLoc(udg_Heroes[GetForLoopIndexA()])
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set udg_HeroSaveDirection[GetForLoopIndexA()] = GetUnitFacing(udg_Heroes[GetForLoopIndexA()])
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call SetUnitPositionLoc( udg_Heroes[GetForLoopIndexA()], GetRectCenter(udg_HeroDuelSpots[GetForLoopIndexA()]) )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call SetUnitFacingToFaceLocTimed( udg_Heroes[GetForLoopIndexA()], GetRectCenter(gg_rct_DuelArena), 0 )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call SetUnitInvulnerable( udg_Heroes[GetForLoopIndexA()], true )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set udg_TempMaxKill = 0
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 6
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Start_Duel_Func017003001() ) then
set udg_TempMaxKill = udg_Kills[GetForLoopIndexA()]
else
call DoNothing( )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 6
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Start_Duel_Func018003001() ) then
set udg_Team1Leader = GetForLoopIndexA()
else
call DoNothing( )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set udg_Team1LeaderHero = udg_Heroes[udg_Team1Leader]
call SetUnitPositionLoc( udg_Team1LeaderHero, GetRectCenter(gg_rct_DuelTeam1Fighter) )
call SetUnitLifePercentBJ( udg_Team1LeaderHero, 30.00 )
call SetUnitManaPercentBJ( udg_Team1LeaderHero, 100.00 )
call SetUnitInvulnerable( udg_Team1LeaderHero, false )
set udg_TempMaxKill = 0
set bj_forLoopAIndex = 7
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Start_Duel_Func025003001() ) then
set udg_TempMaxKill = udg_Kills[GetForLoopIndexA()]
else
call DoNothing( )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 7
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Start_Duel_Func026003001() ) then
set udg_Team2Leader = GetForLoopIndexA()
else
call DoNothing( )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set udg_Team2LeaderHero = udg_Heroes[udg_Team2Leader]
call SetUnitPositionLoc( udg_Team2LeaderHero, GetRectCenter(gg_rct_DuelTeam2Fighter) )
call SetUnitLifePercentBJ( udg_Team2LeaderHero, 30.00 )
call SetUnitManaPercentBJ( udg_Team2LeaderHero, 100.00 )
call SetUnitInvulnerable( udg_Team2LeaderHero, false )
call TriggerSleepAction( 1.00 )
call CinematicModeBJ( true, GetPlayersAll() )
call TriggerSleepAction( 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_Firtsfighter, Player(0), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_Firtsfighter, Player(1), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_Firtsfighter, Player(2), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_Firtsfighter, Player(3), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_Firtsfighter, Player(4), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_Firtsfighter, Player(5), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_Firtsfighter, Player(6), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_Firtsfighter, Player(7), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_Firtsfighter, Player(8), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_Firtsfighter, Player(9), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_Firtsfighter, Player(10), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_Firtsfighter, Player(11), 1.00 )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(ConvertedPlayer(udg_Team1Leader)) + ( " Vs " + GetPlayerName(ConvertedPlayer(udg_Team2Leader)) ) ) )
call TriggerSleepAction( 3.00 )
call CameraSetupApplyForPlayer( true, gg_cam_secondfighter, Player(0), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_secondfighter, Player(1), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_secondfighter, Player(2), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_secondfighter, Player(3), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_secondfighter, Player(4), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_secondfighter, Player(5), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_secondfighter, Player(6), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_secondfighter, Player(7), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_secondfighter, Player(8), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_secondfighter, Player(9), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_secondfighter, Player(10), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_secondfighter, Player(11), 1.00 )
call TriggerSleepAction( 3.00 )
call ResetToGameCameraForPlayer( Player(0), 2.00 )
call ResetToGameCameraForPlayer( Player(1), 2.00 )
call ResetToGameCameraForPlayer( Player(2), 2.00 )
call ResetToGameCameraForPlayer( Player(3), 2.00 )
call ResetToGameCameraForPlayer( Player(4), 2.00 )
call ResetToGameCameraForPlayer( Player(5), 2.00 )
call ResetToGameCameraForPlayer( Player(6), 2.00 )
call ResetToGameCameraForPlayer( Player(7), 2.00 )
call ResetToGameCameraForPlayer( Player(8), 2.00 )
call ResetToGameCameraForPlayer( Player(9), 2.00 )
call ResetToGameCameraForPlayer( Player(10), 2.00 )
call ResetToGameCameraForPlayer( Player(11), 2.00 )
call TriggerSleepAction( 3.00 )
call CinematicModeBJ( false, GetPlayersAll() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_059" )
call TriggerSleepAction( 1.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_060" )
call TriggerSleepAction( 1.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_061" )
call TriggerSleepAction( 1.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_063" )
call PlayMusicBJ( gg_snd_PH1 )
call PauseUnitBJ( false, udg_Team1LeaderHero )
call PauseUnitBJ( false, udg_Team2LeaderHero )
endfunction
//===========================================================================
function InitTrig_Start_Duel takes nothing returns nothing
set gg_trg_Start_Duel = CreateTrigger( )
call TriggerRegisterTimerExpireEventBJ( gg_trg_Start_Duel, udg_DuelTimer )
call TriggerAddAction( gg_trg_Start_Duel, function Trig_Start_Duel_Actions )
endfunction
function Trig_Setup_Duel_Timer_Actions takes nothing returns nothing
set udg_HeroDuelSpots[1] = gg_rct_DuelPlayer1
set udg_HeroDuelSpots[2] = gg_rct_DuelPlayer2
set udg_HeroDuelSpots[3] = gg_rct_DuelPlayer3
set udg_HeroDuelSpots[4] = gg_rct_DuelPlayer4
set udg_HeroDuelSpots[5] = gg_rct_DuelPlayer5
set udg_HeroDuelSpots[6] = gg_rct_DuelPlayer6
set udg_HeroDuelSpots[7] = gg_rct_DuelPlayer7
set udg_HeroDuelSpots[8] = gg_rct_DuelPlayer8
set udg_HeroDuelSpots[9] = gg_rct_DuelPlayer9
set udg_HeroDuelSpots[10] = gg_rct_DuelPlayer10
set udg_HeroDuelSpots[11] = gg_rct_DuelPlayer11
set udg_HeroDuelSpots[12] = gg_rct_DuelPlayer12
call StartTimerBJ( udg_DuelTimer, false, 900.00 )
call CreateTimerDialogBJ( udg_DuelTimer, "TRIGSTR_050" )
set udg_DuelTimer = GetLastCreatedTimerBJ()
call TimerDialogDisplayBJ( true, udg_DuelTimerWindow )
endfunction
//===========================================================================
function InitTrig_Setup_Duel_Timer takes nothing returns nothing
set gg_trg_Setup_Duel_Timer = CreateTrigger( )
call TriggerAddAction( gg_trg_Setup_Duel_Timer, function Trig_Setup_Duel_Timer_Actions )
endfunction
function Trig_Setup_Crowd_Actions takes nothing returns nothing
call GroupAddUnitSimple( gg_unit_nvil_0004, udg_Crowd )
call GroupAddUnitSimple( gg_unit_nvk2_0027, udg_Crowd )
call GroupAddUnitSimple( gg_unit_nvlw_0021, udg_Crowd )
call GroupAddUnitSimple( gg_unit_nvil_0003, udg_Crowd )
call GroupAddUnitSimple( gg_unit_nvl2_0015, udg_Crowd )
call GroupAddUnitSimple( gg_unit_nvlw_0020, udg_Crowd )
call GroupAddUnitSimple( gg_unit_nvlw_0019, udg_Crowd )
call GroupAddUnitSimple( gg_unit_nvil_0005, udg_Crowd )
call GroupAddUnitSimple( gg_unit_nvil_0006, udg_Crowd )
call GroupAddUnitSimple( gg_unit_nvlk_0030, udg_Crowd )
call GroupAddUnitSimple( gg_unit_nvlw_0018, udg_Crowd )
call GroupAddUnitSimple( gg_unit_nvlk_0031, udg_Crowd )
call GroupAddUnitSimple( gg_unit_nvl2_0014, udg_Crowd )
call GroupAddUnitSimple( gg_unit_nvil_0002, udg_Crowd )
call GroupAddUnitSimple( gg_unit_nvlw_0017, udg_Crowd )
call GroupAddUnitSimple( gg_unit_nvk2_0026, udg_Crowd )
call GroupAddUnitSimple( gg_unit_nvil_0007, udg_Crowd )
call GroupAddUnitSimple( gg_unit_nvl2_0013, udg_Crowd )
call GroupAddUnitSimple( gg_unit_nvlw_0022, udg_Crowd )
call GroupAddUnitSimple( gg_unit_nvk2_0025, udg_Crowd )
call GroupAddUnitSimple( gg_unit_nvl2_0011, udg_Crowd )
call GroupAddUnitSimple( gg_unit_nvil_0001, udg_Crowd )
call GroupAddUnitSimple( gg_unit_nvil_0010, udg_Crowd )
call GroupAddUnitSimple( gg_unit_nvl2_0012, udg_Crowd )
call GroupAddUnitSimple( gg_unit_nvlk_0029, udg_Crowd )
call GroupAddUnitSimple( gg_unit_nvl2_0016, udg_Crowd )
call GroupAddUnitSimple( gg_unit_nvil_0008, udg_Crowd )
call GroupAddUnitSimple( gg_unit_nvlw_0023, udg_Crowd )
call GroupAddUnitSimple( gg_unit_nvil_0009, udg_Crowd )
call GroupAddUnitSimple( gg_unit_nvlw_0032, udg_Crowd )
call GroupAddUnitSimple( gg_unit_Huth_0024, udg_Crowd )
endfunction
//===========================================================================
function InitTrig_Setup_Crowd takes nothing returns nothing
set gg_trg_Setup_Crowd = CreateTrigger( )
call TriggerAddAction( gg_trg_Setup_Crowd, function Trig_Setup_Crowd_Actions )
endfunction
function Trig_Uther_Insult_Conditions takes nothing returns boolean
if ( not ( udg_bPasued == false ) ) then
return false
endif
return true
endfunction
function Trig_Uther_Insult_Actions takes nothing returns nothing
call SetUnitAnimation( gg_unit_Huth_0024, "Spell" )
call SetUnitExplodedBJ( udg_Heroes[GetConvertedPlayerId(GetTriggerPlayer())], true )
call TriggerSleepAction( 0.10 )
call KillUnit( udg_Heroes[GetConvertedPlayerId(GetTriggerPlayer())] )
endfunction
//===========================================================================
function InitTrig_Uther_Insult takes nothing returns nothing
set gg_trg_Uther_Insult = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Uther_Insult, Player(0), "Uther", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Uther_Insult, Player(1), "Uther", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Uther_Insult, Player(2), "Uther", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Uther_Insult, Player(3), "Uther", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Uther_Insult, Player(4), "Uther", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Uther_Insult, Player(5), "Uther", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Uther_Insult, Player(6), "Uther", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Uther_Insult, Player(7), "Uther", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Uther_Insult, Player(8), "Uther", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Uther_Insult, Player(9), "Uther", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Uther_Insult, Player(10), "Uther", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Uther_Insult, Player(11), "Uther", false )
call TriggerAddCondition( gg_trg_Uther_Insult, Condition( function Trig_Uther_Insult_Conditions ) )
call TriggerAddAction( gg_trg_Uther_Insult, function Trig_Uther_Insult_Actions )
endfunction
function Trig_Crowd_Member_Dies_Actions takes nothing returns nothing
call IssueImmediateOrderBJ( gg_unit_Huth_0024, "resurrection" )
call SetUnitExplodedBJ( udg_Heroes[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))], true )
call TriggerSleepAction( 0.10 )
call KillUnit( udg_Heroes[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] )
endfunction
//===========================================================================
function InitTrig_Crowd_Member_Dies takes nothing returns nothing
set gg_trg_Crowd_Member_Dies = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Crowd_Member_Dies, Player(PLAYER_NEUTRAL_PASSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddAction( gg_trg_Crowd_Member_Dies, function Trig_Crowd_Member_Dies_Actions )
endfunction
function Trig_Uther_Insult_Copy_Conditions takes nothing returns boolean
if ( not ( udg_bPasued == false ) ) then
return false
endif
return true
endfunction
function Trig_Uther_Insult_Copy_Actions takes nothing returns nothing
call SetUnitAnimation( gg_unit_Huth_0024, "Spell" )
call SetUnitExplodedBJ( udg_Heroes[GetConvertedPlayerId(GetTriggerPlayer())], true )
call TriggerSleepAction( 0.10 )
call KillUnit( udg_Heroes[GetConvertedPlayerId(GetTriggerPlayer())] )
endfunction
//===========================================================================
function InitTrig_Uther_Insult_Copy takes nothing returns nothing
set gg_trg_Uther_Insult_Copy = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Uther_Insult_Copy, Player(0), "-die", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Uther_Insult_Copy, Player(1), "-die", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Uther_Insult_Copy, Player(2), "-die", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Uther_Insult_Copy, Player(3), "-die", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Uther_Insult_Copy, Player(4), "-die", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Uther_Insult_Copy, Player(5), "-die", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Uther_Insult_Copy, Player(6), "-die", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Uther_Insult_Copy, Player(7), "-die", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Uther_Insult_Copy, Player(8), "-die", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Uther_Insult_Copy, Player(9), "-die", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Uther_Insult_Copy, Player(10), "-die", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Uther_Insult_Copy, Player(11), "-die", false )
call TriggerAddCondition( gg_trg_Uther_Insult_Copy, Condition( function Trig_Uther_Insult_Copy_Conditions ) )
call TriggerAddAction( gg_trg_Uther_Insult_Copy, function Trig_Uther_Insult_Copy_Actions )
endfunction
function Trig_Spawn_Next_Creep_Conditions takes nothing returns boolean
if ( not ( udg_bPasued == false ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_Next_Creep_Func005001 takes nothing returns boolean
return ( ModuloInteger(udg_CreepSpawnNumber, 50) == 0 )
endfunction
function Trig_Spawn_Next_Creep_Actions takes nothing returns nothing
call ConditionalTriggerExecute( udg_CreepSpawnTriggers[ModuloInteger(udg_CreepSpawnNumber, 25)] )
set udg_CreepSpawnNumber = ( udg_CreepSpawnNumber + 1 )
if ( Trig_Spawn_Next_Creep_Func005001() ) then
call TriggerExecute( gg_trg_Spawn_Boss )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Spawn_Next_Creep takes nothing returns nothing
set gg_trg_Spawn_Next_Creep = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Spawn_Next_Creep, 35.00 )
call TriggerAddCondition( gg_trg_Spawn_Next_Creep, Condition( function Trig_Spawn_Next_Creep_Conditions ) )
call TriggerAddAction( gg_trg_Spawn_Next_Creep, function Trig_Spawn_Next_Creep_Actions )
endfunction
function Trig_Spawn_Boss_Conditions takes nothing returns boolean
if ( not ( udg_bPasued == false ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_Boss_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'Nman', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Arena), 90.00 )
call PlaySoundBJ( gg_snd_TichondriusPissed3 )
call TriggerSleepAction( 4.00 )
call PlaySoundBJ( gg_snd_BigCheer )
endfunction
//===========================================================================
function InitTrig_Spawn_Boss takes nothing returns nothing
set gg_trg_Spawn_Boss = CreateTrigger( )
call TriggerAddCondition( gg_trg_Spawn_Boss, Condition( function Trig_Spawn_Boss_Conditions ) )
call TriggerAddAction( gg_trg_Spawn_Boss, function Trig_Spawn_Boss_Actions )
endfunction
function Trig_Setup_Creep_Spawn_Triggers_Actions takes nothing returns nothing
set udg_CreepSpawnTriggers[0] = gg_trg_Ogre_Warrior
set udg_CreepSpawnTriggers[1] = gg_trg_Mud_Golem
set udg_CreepSpawnTriggers[2] = gg_trg_Lightning_Lizard
set udg_CreepSpawnTriggers[3] = gg_trg_Black_Dragon_Whelp
set udg_CreepSpawnTriggers[4] = gg_trg_Centaur_Archer
set udg_CreepSpawnTriggers[5] = gg_trg_Forest_Troll_High_Priest
set udg_CreepSpawnTriggers[6] = gg_trg_Rock_Golem
set udg_CreepSpawnTriggers[7] = gg_trg_Razormane_Chieftain
set udg_CreepSpawnTriggers[8] = gg_trg_Harpy_Rogue
set udg_CreepSpawnTriggers[9] = gg_trg_Owlbear
set udg_CreepSpawnTriggers[10] = gg_trg_Ogre_Magi
set udg_CreepSpawnTriggers[11] = gg_trg_Ice_Revenant
set udg_CreepSpawnTriggers[12] = gg_trg_Thunder_Lizard
set udg_CreepSpawnTriggers[13] = gg_trg_Black_Drake
set udg_CreepSpawnTriggers[14] = gg_trg_Centaur_Sorceror
set udg_CreepSpawnTriggers[15] = gg_trg_Troll_Warlord
set udg_CreepSpawnTriggers[16] = gg_trg_Nerubian_Queen
set udg_CreepSpawnTriggers[17] = gg_trg_Razormane_Chieftain
set udg_CreepSpawnTriggers[18] = gg_trg_Harpy_Queen
set udg_CreepSpawnTriggers[19] = gg_trg_Berserk_Owlbear
set udg_CreepSpawnTriggers[20] = gg_trg_Ogre_Lord
set udg_CreepSpawnTriggers[21] = gg_trg_Granite_Golem
set udg_CreepSpawnTriggers[22] = gg_trg_Storm_Wyrm
set udg_CreepSpawnTriggers[23] = gg_trg_Black_Dragon
set udg_CreepSpawnTriggers[24] = gg_trg_Centaur_Khan
endfunction
//===========================================================================
function InitTrig_Setup_Creep_Spawn_Triggers takes nothing returns nothing
set gg_trg_Setup_Creep_Spawn_Triggers = CreateTrigger( )
call TriggerAddAction( gg_trg_Setup_Creep_Spawn_Triggers, function Trig_Setup_Creep_Spawn_Triggers_Actions )
endfunction
function Trig_Creep_Dies_Conditions takes nothing returns boolean
if ( not ( GetRandomInt(1, 10) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Creep_Dies_Actions takes nothing returns nothing
call CreateItemLoc( 'tpow', GetUnitLoc(GetTriggerUnit()) )
endfunction
//===========================================================================
function InitTrig_Creep_Dies takes nothing returns nothing
set gg_trg_Creep_Dies = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Creep_Dies, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Creep_Dies, Condition( function Trig_Creep_Dies_Conditions ) )
call TriggerAddAction( gg_trg_Creep_Dies, function Trig_Creep_Dies_Actions )
endfunction
function Trig_Creep_Dies_Potion_Conditions takes nothing returns boolean
if ( not ( GetRandomInt(1, 100) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Creep_Dies_Potion_Actions takes nothing returns nothing
call CreateItemLoc( 'I00H', GetUnitLoc(GetTriggerUnit()) )
endfunction
//===========================================================================
function InitTrig_Creep_Dies_Potion takes nothing returns nothing
set gg_trg_Creep_Dies_Potion = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Creep_Dies_Potion, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Creep_Dies_Potion, Condition( function Trig_Creep_Dies_Potion_Conditions ) )
call TriggerAddAction( gg_trg_Creep_Dies_Potion, function Trig_Creep_Dies_Potion_Actions )
endfunction
function Trig_Creep_Dies_Potion_2_Conditions takes nothing returns boolean
if ( not ( GetRandomInt(1, 200) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Creep_Dies_Potion_2_Actions takes nothing returns nothing
call CreateItemLoc( 'I00K', GetUnitLoc(GetTriggerUnit()) )
endfunction
//===========================================================================
function InitTrig_Creep_Dies_Potion_2 takes nothing returns nothing
set gg_trg_Creep_Dies_Potion_2 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Creep_Dies_Potion_2, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Creep_Dies_Potion_2, Condition( function Trig_Creep_Dies_Potion_2_Conditions ) )
call TriggerAddAction( gg_trg_Creep_Dies_Potion_2, function Trig_Creep_Dies_Potion_2_Actions )
endfunction
function Trig_Creep_Dies_Potion_Medium_Conditions takes nothing returns boolean
if ( not ( GetRandomInt(1, 200) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Creep_Dies_Potion_Medium_Actions takes nothing returns nothing
call CreateItemLoc( 'I00I', GetUnitLoc(GetTriggerUnit()) )
endfunction
//===========================================================================
function InitTrig_Creep_Dies_Potion_Medium takes nothing returns nothing
set gg_trg_Creep_Dies_Potion_Medium = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Creep_Dies_Potion_Medium, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Creep_Dies_Potion_Medium, Condition( function Trig_Creep_Dies_Potion_Medium_Conditions ) )
call TriggerAddAction( gg_trg_Creep_Dies_Potion_Medium, function Trig_Creep_Dies_Potion_Medium_Actions )
endfunction
function Trig_Creep_Dies_Potion_Medium_2_Conditions takes nothing returns boolean
if ( not ( GetRandomInt(1, 400) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Creep_Dies_Potion_Medium_2_Actions takes nothing returns nothing
call CreateItemLoc( 'I00L', GetUnitLoc(GetTriggerUnit()) )
endfunction
//===========================================================================
function InitTrig_Creep_Dies_Potion_Medium_2 takes nothing returns nothing
set gg_trg_Creep_Dies_Potion_Medium_2 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Creep_Dies_Potion_Medium_2, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Creep_Dies_Potion_Medium_2, Condition( function Trig_Creep_Dies_Potion_Medium_2_Conditions ) )
call TriggerAddAction( gg_trg_Creep_Dies_Potion_Medium_2, function Trig_Creep_Dies_Potion_Medium_2_Actions )
endfunction
function Trig_Creep_Dies_Potion_Big_Conditions takes nothing returns boolean
if ( not ( GetRandomInt(1, 400) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Creep_Dies_Potion_Big_Actions takes nothing returns nothing
call CreateItemLoc( 'I00J', GetUnitLoc(GetTriggerUnit()) )
endfunction
//===========================================================================
function InitTrig_Creep_Dies_Potion_Big takes nothing returns nothing
set gg_trg_Creep_Dies_Potion_Big = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Creep_Dies_Potion_Big, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Creep_Dies_Potion_Big, Condition( function Trig_Creep_Dies_Potion_Big_Conditions ) )
call TriggerAddAction( gg_trg_Creep_Dies_Potion_Big, function Trig_Creep_Dies_Potion_Big_Actions )
endfunction
function Trig_Creep_Dies_Potion_Big_2_Conditions takes nothing returns boolean
if ( not ( GetRandomInt(1, 600) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Creep_Dies_Potion_Big_2_Actions takes nothing returns nothing
call CreateItemLoc( 'I00M', GetUnitLoc(GetTriggerUnit()) )
endfunction
//===========================================================================
function InitTrig_Creep_Dies_Potion_Big_2 takes nothing returns nothing
set gg_trg_Creep_Dies_Potion_Big_2 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Creep_Dies_Potion_Big_2, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Creep_Dies_Potion_Big_2, Condition( function Trig_Creep_Dies_Potion_Big_2_Conditions ) )
call TriggerAddAction( gg_trg_Creep_Dies_Potion_Big_2, function Trig_Creep_Dies_Potion_Big_2_Actions )
endfunction
function Trig_Creep_Dies_Gold_Conditions takes nothing returns boolean
if ( not ( GetRandomInt(1, 40) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Creep_Dies_Gold_Actions takes nothing returns nothing
call CreateItemLoc( 'I01T', GetUnitLoc(GetTriggerUnit()) )
endfunction
//===========================================================================
function InitTrig_Creep_Dies_Gold takes nothing returns nothing
set gg_trg_Creep_Dies_Gold = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Creep_Dies_Gold, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Creep_Dies_Gold, Condition( function Trig_Creep_Dies_Gold_Conditions ) )
call TriggerAddAction( gg_trg_Creep_Dies_Gold, function Trig_Creep_Dies_Gold_Actions )
endfunction
function Trig_Creep_Dies_tem1_Conditions takes nothing returns boolean
if ( not ( GetRandomInt(1, 4000) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Creep_Dies_tem1_Actions takes nothing returns nothing
call CreateItemLoc( ChooseRandomItemExBJ(0, ITEM_TYPE_PERMANENT), GetUnitLoc(GetTriggerUnit()) )
endfunction
//===========================================================================
function InitTrig_Creep_Dies_tem1 takes nothing returns nothing
set gg_trg_Creep_Dies_tem1 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Creep_Dies_tem1, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Creep_Dies_tem1, Condition( function Trig_Creep_Dies_tem1_Conditions ) )
call TriggerAddAction( gg_trg_Creep_Dies_tem1, function Trig_Creep_Dies_tem1_Actions )
endfunction
function Trig_Creep_Dies_tem2_Conditions takes nothing returns boolean
if ( not ( GetRandomInt(1, 12000) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Creep_Dies_tem2_Actions takes nothing returns nothing
call CreateItemLoc( ChooseRandomItemExBJ(8, ITEM_TYPE_PERMANENT), GetUnitLoc(GetTriggerUnit()) )
endfunction
//===========================================================================
function InitTrig_Creep_Dies_tem2 takes nothing returns nothing
set gg_trg_Creep_Dies_tem2 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Creep_Dies_tem2, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Creep_Dies_tem2, Condition( function Trig_Creep_Dies_tem2_Conditions ) )
call TriggerAddAction( gg_trg_Creep_Dies_tem2, function Trig_Creep_Dies_tem2_Actions )
endfunction
function Trig_Boss_Dies_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'Nman' ) ) then
return false
endif
return true
endfunction
function Trig_Boss_Dies_Actions takes nothing returns nothing
call CreateItemLoc( 'nspi', GetUnitLoc(GetTriggerUnit()) )
call CreateItemLoc( 'modt', GetUnitLoc(GetTriggerUnit()) )
call CreateItemLoc( 'tkno', GetUnitLoc(GetTriggerUnit()) )
call CreateItemLoc( 'tkno', GetUnitLoc(GetTriggerUnit()) )
endfunction
//===========================================================================
function InitTrig_Boss_Dies takes nothing returns nothing
set gg_trg_Boss_Dies = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Boss_Dies, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Boss_Dies, Condition( function Trig_Boss_Dies_Conditions ) )
call TriggerAddAction( gg_trg_Boss_Dies, function Trig_Boss_Dies_Actions )
endfunction
function Trig_Move_Creep_Top_Right_Actions takes nothing returns nothing
call UnitWakeUpBJ( udg_TopRightNewUnit )
call IssuePointOrderLocBJ( udg_TopRightNewUnit, "attack", GetRectCenter(gg_rct_Creep_move_droite_haut) )
call TriggerSleepAction( 5.00 )
call ReplaceUnitBJ( udg_TopRightNewUnit, GetUnitTypeId(udg_TopRightNewUnit), bj_UNIT_STATE_METHOD_RELATIVE )
endfunction
//===========================================================================
function InitTrig_Move_Creep_Top_Right takes nothing returns nothing
set gg_trg_Move_Creep_Top_Right = CreateTrigger( )
call TriggerAddAction( gg_trg_Move_Creep_Top_Right, function Trig_Move_Creep_Top_Right_Actions )
endfunction
function Trig_Ogre_Warrior_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'nogr', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Creep_move_droite_haut), 270.00 )
set udg_TopRightNewUnit = GetLastCreatedUnit()
call TriggerExecute( gg_trg_Move_Creep_Top_Right )
endfunction
//===========================================================================
function InitTrig_Ogre_Warrior takes nothing returns nothing
set gg_trg_Ogre_Warrior = CreateTrigger( )
call TriggerAddAction( gg_trg_Ogre_Warrior, function Trig_Ogre_Warrior_Actions )
endfunction
function Trig_Forest_Troll_High_Priest_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'nfsh', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Creep_move_droite_haut), 270.00 )
set udg_TopRightNewUnit = GetLastCreatedUnit()
call TriggerExecute( gg_trg_Move_Creep_Top_Right )
endfunction
//===========================================================================
function InitTrig_Forest_Troll_High_Priest takes nothing returns nothing
set gg_trg_Forest_Troll_High_Priest = CreateTrigger( )
call TriggerAddAction( gg_trg_Forest_Troll_High_Priest, function Trig_Forest_Troll_High_Priest_Actions )
endfunction
function Trig_Ogre_Magi_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'nomg', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Creep_move_droite_haut), 270.00 )
set udg_TopRightNewUnit = GetLastCreatedUnit()
call TriggerExecute( gg_trg_Move_Creep_Top_Right )
endfunction
//===========================================================================
function InitTrig_Ogre_Magi takes nothing returns nothing
set gg_trg_Ogre_Magi = CreateTrigger( )
call TriggerAddAction( gg_trg_Ogre_Magi, function Trig_Ogre_Magi_Actions )
endfunction
function Trig_Troll_Warlord_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'nftk', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Creep_move_droite_haut), 270.00 )
set udg_TopRightNewUnit = GetLastCreatedUnit()
call TriggerExecute( gg_trg_Move_Creep_Top_Right )
endfunction
//===========================================================================
function InitTrig_Troll_Warlord takes nothing returns nothing
set gg_trg_Troll_Warlord = CreateTrigger( )
call TriggerAddAction( gg_trg_Troll_Warlord, function Trig_Troll_Warlord_Actions )
endfunction
function Trig_Ogre_Lord_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'nogl', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Creep_move_droite_haut), 270.00 )
set udg_TopRightNewUnit = GetLastCreatedUnit()
call TriggerExecute( gg_trg_Move_Creep_Top_Right )
endfunction
//===========================================================================
function InitTrig_Ogre_Lord takes nothing returns nothing
set gg_trg_Ogre_Lord = CreateTrigger( )
call TriggerAddAction( gg_trg_Ogre_Lord, function Trig_Ogre_Lord_Actions )
endfunction
function Trig_Move_Creep_Top_Left_Actions takes nothing returns nothing
call UnitWakeUpBJ( udg_TopLeftNewUnit )
call IssuePointOrderLocBJ( udg_TopLeftNewUnit, "attack", GetRectCenter(gg_rct_creep_move_gauche_haut) )
call TriggerSleepAction( 5.00 )
call ReplaceUnitBJ( udg_TopLeftNewUnit, GetUnitTypeId(udg_TopLeftNewUnit), bj_UNIT_STATE_METHOD_RELATIVE )
endfunction
//===========================================================================
function InitTrig_Move_Creep_Top_Left takes nothing returns nothing
set gg_trg_Move_Creep_Top_Left = CreateTrigger( )
call TriggerAddAction( gg_trg_Move_Creep_Top_Left, function Trig_Move_Creep_Top_Left_Actions )
endfunction
function Trig_Mud_Golem_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'ngrk', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_creep_move_gauche_haut), 270.00 )
set udg_TopLeftNewUnit = GetLastCreatedUnit()
call TriggerExecute( gg_trg_Move_Creep_Top_Left )
endfunction
//===========================================================================
function InitTrig_Mud_Golem takes nothing returns nothing
set gg_trg_Mud_Golem = CreateTrigger( )
call TriggerAddAction( gg_trg_Mud_Golem, function Trig_Mud_Golem_Actions )
endfunction
function Trig_Rock_Golem_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'ngst', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_creep_move_gauche_haut), 270.00 )
set udg_TopLeftNewUnit = GetLastCreatedUnit()
call TriggerExecute( gg_trg_Move_Creep_Top_Left )
endfunction
//===========================================================================
function InitTrig_Rock_Golem takes nothing returns nothing
set gg_trg_Rock_Golem = CreateTrigger( )
call TriggerAddAction( gg_trg_Rock_Golem, function Trig_Rock_Golem_Actions )
endfunction
function Trig_Ice_Revenant_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'nrvi', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_creep_move_gauche_haut), 270.00 )
set udg_TopLeftNewUnit = GetLastCreatedUnit()
call TriggerExecute( gg_trg_Move_Creep_Top_Left )
endfunction
//===========================================================================
function InitTrig_Ice_Revenant takes nothing returns nothing
set gg_trg_Ice_Revenant = CreateTrigger( )
call TriggerAddAction( gg_trg_Ice_Revenant, function Trig_Ice_Revenant_Actions )
endfunction
function Trig_Nerubian_Queen_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'nnwq', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_creep_move_gauche_haut), 270.00 )
set udg_TopLeftNewUnit = GetLastCreatedUnit()
call TriggerExecute( gg_trg_Move_Creep_Top_Left )
endfunction
//===========================================================================
function InitTrig_Nerubian_Queen takes nothing returns nothing
set gg_trg_Nerubian_Queen = CreateTrigger( )
call TriggerAddAction( gg_trg_Nerubian_Queen, function Trig_Nerubian_Queen_Actions )
endfunction
function Trig_Granite_Golem_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'nggr', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_creep_move_gauche_haut), 270.00 )
set udg_TopLeftNewUnit = GetLastCreatedUnit()
call TriggerExecute( gg_trg_Move_Creep_Top_Left )
endfunction
//===========================================================================
function InitTrig_Granite_Golem takes nothing returns nothing
set gg_trg_Granite_Golem = CreateTrigger( )
call TriggerAddAction( gg_trg_Granite_Golem, function Trig_Granite_Golem_Actions )
endfunction
function Trig_Move_Creep_Bottom_Left_Actions takes nothing returns nothing
call UnitWakeUpBJ( udg_BottomLeftNewUnit )
call IssuePointOrderLocBJ( udg_BottomLeftNewUnit, "attack", GetRectCenter(gg_rct_Creep_move_bas_gauche) )
call TriggerSleepAction( 5.00 )
call ReplaceUnitBJ( udg_BottomLeftNewUnit, GetUnitTypeId(udg_BottomLeftNewUnit), bj_UNIT_STATE_METHOD_RELATIVE )
endfunction
//===========================================================================
function InitTrig_Move_Creep_Bottom_Left takes nothing returns nothing
set gg_trg_Move_Creep_Bottom_Left = CreateTrigger( )
call TriggerAddAction( gg_trg_Move_Creep_Bottom_Left, function Trig_Move_Creep_Bottom_Left_Actions )
endfunction
function Trig_Lightning_Lizard_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'nltl', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Creep_move_bas_gauche), 45.00 )
set udg_BottomLeftNewUnit = GetLastCreatedUnit()
call TriggerExecute( gg_trg_Move_Creep_Bottom_Left )
endfunction
//===========================================================================
function InitTrig_Lightning_Lizard takes nothing returns nothing
set gg_trg_Lightning_Lizard = CreateTrigger( )
call TriggerAddAction( gg_trg_Lightning_Lizard, function Trig_Lightning_Lizard_Actions )
endfunction
function Trig_Razormane_Medicine_Man_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'nrzm', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Creep_move_bas_gauche), 45.00 )
set udg_BottomLeftNewUnit = GetLastCreatedUnit()
call TriggerExecute( gg_trg_Move_Creep_Bottom_Left )
endfunction
//===========================================================================
function InitTrig_Razormane_Medicine_Man takes nothing returns nothing
set gg_trg_Razormane_Medicine_Man = CreateTrigger( )
call TriggerAddAction( gg_trg_Razormane_Medicine_Man, function Trig_Razormane_Medicine_Man_Actions )
endfunction
function Trig_Thunder_Lizard_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'nthl', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Creep_move_bas_gauche), 45.00 )
set udg_BottomLeftNewUnit = GetLastCreatedUnit()
call TriggerExecute( gg_trg_Move_Creep_Bottom_Left )
endfunction
//===========================================================================
function InitTrig_Thunder_Lizard takes nothing returns nothing
set gg_trg_Thunder_Lizard = CreateTrigger( )
call TriggerAddAction( gg_trg_Thunder_Lizard, function Trig_Thunder_Lizard_Actions )
endfunction
function Trig_Razormane_Chieftain_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'nrzg', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Creep_move_bas_gauche), 45.00 )
set udg_BottomLeftNewUnit = GetLastCreatedUnit()
call TriggerExecute( gg_trg_Move_Creep_Bottom_Left )
endfunction
//===========================================================================
function InitTrig_Razormane_Chieftain takes nothing returns nothing
set gg_trg_Razormane_Chieftain = CreateTrigger( )
call TriggerAddAction( gg_trg_Razormane_Chieftain, function Trig_Razormane_Chieftain_Actions )
endfunction
function Trig_Storm_Wyrm_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'nstw', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Creep_move_bas_gauche), 45.00 )
set udg_BottomLeftNewUnit = GetLastCreatedUnit()
call TriggerExecute( gg_trg_Move_Creep_Bottom_Left )
endfunction
//===========================================================================
function InitTrig_Storm_Wyrm takes nothing returns nothing
set gg_trg_Storm_Wyrm = CreateTrigger( )
call TriggerAddAction( gg_trg_Storm_Wyrm, function Trig_Storm_Wyrm_Actions )
endfunction
function Trig_Move_Creep_Bottom_Actions takes nothing returns nothing
call UnitWakeUpBJ( udg_BottomNewUnit )
call IssuePointOrderLocBJ( udg_BottomNewUnit, "attack", GetRectCenter(gg_rct_creep_move_bas_millieu) )
call TriggerSleepAction( 5.00 )
call ReplaceUnitBJ( udg_BottomNewUnit, GetUnitTypeId(udg_BottomNewUnit), bj_UNIT_STATE_METHOD_RELATIVE )
endfunction
//===========================================================================
function InitTrig_Move_Creep_Bottom takes nothing returns nothing
set gg_trg_Move_Creep_Bottom = CreateTrigger( )
call TriggerAddAction( gg_trg_Move_Creep_Bottom, function Trig_Move_Creep_Bottom_Actions )
endfunction
function Trig_Black_Dragon_Whelp_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'nbdr', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_creep_move_bas_millieu), 90.00 )
set udg_BottomNewUnit = GetLastCreatedUnit()
call TriggerExecute( gg_trg_Move_Creep_Bottom )
endfunction
//===========================================================================
function InitTrig_Black_Dragon_Whelp takes nothing returns nothing
set gg_trg_Black_Dragon_Whelp = CreateTrigger( )
call TriggerAddAction( gg_trg_Black_Dragon_Whelp, function Trig_Black_Dragon_Whelp_Actions )
endfunction
function Trig_Harpy_Rogue_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'nhrr', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_creep_move_bas_millieu), 90.00 )
set udg_BottomNewUnit = GetLastCreatedUnit()
call TriggerExecute( gg_trg_Move_Creep_Bottom )
endfunction
//===========================================================================
function InitTrig_Harpy_Rogue takes nothing returns nothing
set gg_trg_Harpy_Rogue = CreateTrigger( )
call TriggerAddAction( gg_trg_Harpy_Rogue, function Trig_Harpy_Rogue_Actions )
endfunction
function Trig_Black_Drake_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'nbdk', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_creep_move_bas_millieu), 90.00 )
set udg_BottomNewUnit = GetLastCreatedUnit()
call TriggerExecute( gg_trg_Move_Creep_Bottom )
endfunction
//===========================================================================
function InitTrig_Black_Drake takes nothing returns nothing
set gg_trg_Black_Drake = CreateTrigger( )
call TriggerAddAction( gg_trg_Black_Drake, function Trig_Black_Drake_Actions )
endfunction
function Trig_Harpy_Queen_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'nhrq', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_creep_move_bas_millieu), 90.00 )
set udg_BottomNewUnit = GetLastCreatedUnit()
call TriggerExecute( gg_trg_Move_Creep_Bottom )
endfunction
//===========================================================================
function InitTrig_Harpy_Queen takes nothing returns nothing
set gg_trg_Harpy_Queen = CreateTrigger( )
call TriggerAddAction( gg_trg_Harpy_Queen, function Trig_Harpy_Queen_Actions )
endfunction
function Trig_Black_Dragon_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'nbwm', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_creep_move_bas_millieu), 90.00 )
set udg_BottomNewUnit = GetLastCreatedUnit()
call TriggerExecute( gg_trg_Move_Creep_Bottom )
endfunction
//===========================================================================
function InitTrig_Black_Dragon takes nothing returns nothing
set gg_trg_Black_Dragon = CreateTrigger( )
call TriggerAddAction( gg_trg_Black_Dragon, function Trig_Black_Dragon_Actions )
endfunction
function Trig_Move_Creep_Bottom_Right_Actions takes nothing returns nothing
call UnitWakeUpBJ( udg_BottomRightNewUnit )
call IssuePointOrderLocBJ( udg_BottomRightNewUnit, "attack", GetRectCenter(gg_rct_creep_move_bas_droite) )
call TriggerSleepAction( 5.00 )
call ReplaceUnitBJ( udg_BottomRightNewUnit, GetUnitTypeId(udg_BottomRightNewUnit), bj_UNIT_STATE_METHOD_RELATIVE )
endfunction
//===========================================================================
function InitTrig_Move_Creep_Bottom_Right takes nothing returns nothing
set gg_trg_Move_Creep_Bottom_Right = CreateTrigger( )
call TriggerAddAction( gg_trg_Move_Creep_Bottom_Right, function Trig_Move_Creep_Bottom_Right_Actions )
endfunction
function Trig_Centaur_Archer_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'ncea', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_creep_move_bas_droite), 135.00 )
set udg_BottomRightNewUnit = GetLastCreatedUnit()
call TriggerExecute( gg_trg_Move_Creep_Bottom_Right )
endfunction
//===========================================================================
function InitTrig_Centaur_Archer takes nothing returns nothing
set gg_trg_Centaur_Archer = CreateTrigger( )
call TriggerAddAction( gg_trg_Centaur_Archer, function Trig_Centaur_Archer_Actions )
endfunction
function Trig_Owlbear_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'nowb', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_creep_move_bas_droite), 135.00 )
set udg_BottomRightNewUnit = GetLastCreatedUnit()
call TriggerExecute( gg_trg_Move_Creep_Bottom_Right )
endfunction
//===========================================================================
function InitTrig_Owlbear takes nothing returns nothing
set gg_trg_Owlbear = CreateTrigger( )
call TriggerAddAction( gg_trg_Owlbear, function Trig_Owlbear_Actions )
endfunction
function Trig_Centaur_Sorceror_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'ncks', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_creep_move_bas_droite), 135.00 )
set udg_BottomRightNewUnit = GetLastCreatedUnit()
call TriggerExecute( gg_trg_Move_Creep_Bottom_Right )
endfunction
//===========================================================================
function InitTrig_Centaur_Sorceror takes nothing returns nothing
set gg_trg_Centaur_Sorceror = CreateTrigger( )
call TriggerAddAction( gg_trg_Centaur_Sorceror, function Trig_Centaur_Sorceror_Actions )
endfunction
function Trig_Berserk_Owlbear_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'nowk', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_creep_move_bas_droite), 135.00 )
set udg_BottomRightNewUnit = GetLastCreatedUnit()
call TriggerExecute( gg_trg_Move_Creep_Bottom_Right )
endfunction
//===========================================================================
function InitTrig_Berserk_Owlbear takes nothing returns nothing
set gg_trg_Berserk_Owlbear = CreateTrigger( )
call TriggerAddAction( gg_trg_Berserk_Owlbear, function Trig_Berserk_Owlbear_Actions )
endfunction
function Trig_Centaur_Khan_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'ncnk', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_creep_move_bas_droite), 135.00 )
set udg_BottomRightNewUnit = GetLastCreatedUnit()
call TriggerExecute( gg_trg_Move_Creep_Bottom_Right )
endfunction
//===========================================================================
function InitTrig_Centaur_Khan takes nothing returns nothing
set gg_trg_Centaur_Khan = CreateTrigger( )
call TriggerAddAction( gg_trg_Centaur_Khan, function Trig_Centaur_Khan_Actions )
endfunction
function Trig_Losing_Team_Help_Conditions takes nothing returns boolean
if ( not ( udg_bPasued == false ) ) then
return false
endif
return true
endfunction
function Trig_Losing_Team_Help_Func002001 takes nothing returns boolean
return ( udg_Team1Kills > udg_Team2Kills )
endfunction
function Trig_Losing_Team_Help_Func003001 takes nothing returns boolean
return ( udg_Team1Kills < udg_Team2Kills )
endfunction
function Trig_Losing_Team_Help_Actions takes nothing returns nothing
if ( Trig_Losing_Team_Help_Func002001() ) then
call CreateItemLoc( 'tkno', GetRectCenter(gg_rct_almosen2) )
else
call DoNothing( )
endif
if ( Trig_Losing_Team_Help_Func003001() ) then
call CreateItemLoc( 'tkno', GetRectCenter(gg_rct_almosen) )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Losing_Team_Help takes nothing returns nothing
set gg_trg_Losing_Team_Help = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Losing_Team_Help, 60.00 )
call TriggerAddCondition( gg_trg_Losing_Team_Help, Condition( function Trig_Losing_Team_Help_Conditions ) )
call TriggerAddAction( gg_trg_Losing_Team_Help, function Trig_Losing_Team_Help_Actions )
endfunction
function Trig_Team_1_Enter_Arena_Func007002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRandomLocInRect(gg_rct_Team1Entrance) )
endfunction
function Trig_Team_1_Enter_Arena_Func008001 takes nothing returns boolean
return ( GetPlayerController(GetOwningPlayer(GetTriggerUnit())) == MAP_CONTROL_COMPUTER )
endfunction
function Trig_Team_1_Enter_Arena_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_DTg7_0005 )
call SetUnitPositionLocFacingBJ( GetTriggerUnit(), GetRectCenter(gg_rct_Team1Spawn), 0.00 )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Team1Spawn), 0.30 )
call IssuePointOrderLocBJ( GetTriggerUnit(), "move", GetRectCenter(gg_rct_Team1Entrance) )
call TriggerSleepAction( 10.00 )
call ModifyGateBJ( bj_GATEOPERATION_CLOSE, gg_dest_DTg7_0005 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_Team1Spawn), function Trig_Team_1_Enter_Arena_Func007002 )
if ( Trig_Team_1_Enter_Arena_Func008001() ) then
call IssuePointOrderLocBJ( GetTriggerUnit(), "patrol", GetRectCenter(gg_rct_Arena) )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Team_1_Enter_Arena takes nothing returns nothing
set gg_trg_Team_1_Enter_Arena = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Team_1_Enter_Arena, gg_rct_Team1EnterArena )
call TriggerAddAction( gg_trg_Team_1_Enter_Arena, function Trig_Team_1_Enter_Arena_Actions )
endfunction
function Trig_Team_1_Back_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_DTg7_0005 )
call TriggerSleepAction( 10.00 )
call ModifyGateBJ( bj_GATEOPERATION_CLOSE, gg_dest_DTg7_0005 )
endfunction
//===========================================================================
function InitTrig_Team_1_Back takes nothing returns nothing
set gg_trg_Team_1_Back = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Team_1_Back, gg_rct_Team1Entrance )
call TriggerAddAction( gg_trg_Team_1_Back, function Trig_Team_1_Back_Actions )
endfunction
function Trig_Team_2_Back_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_DTg7_0006 )
call TriggerSleepAction( 10.00 )
call ModifyGateBJ( bj_GATEOPERATION_CLOSE, gg_dest_DTg7_0006 )
endfunction
//===========================================================================
function InitTrig_Team_2_Back takes nothing returns nothing
set gg_trg_Team_2_Back = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Team_2_Back, gg_rct_Team2Entrance )
call TriggerAddAction( gg_trg_Team_2_Back, function Trig_Team_2_Back_Actions )
endfunction
function Trig_Team_2_Enter_Arena_Func007002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRandomLocInRect(gg_rct_Team2Entrance) )
endfunction
function Trig_Team_2_Enter_Arena_Func008001 takes nothing returns boolean
return ( GetPlayerController(GetOwningPlayer(GetTriggerUnit())) == MAP_CONTROL_COMPUTER )
endfunction
function Trig_Team_2_Enter_Arena_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_DTg7_0006 )
call SetUnitPositionLocFacingBJ( GetTriggerUnit(), GetRectCenter(gg_rct_Team2Spawn), 180.00 )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Team2Spawn), 0.30 )
call IssuePointOrderLocBJ( GetTriggerUnit(), "move", GetRectCenter(gg_rct_Team2Entrance) )
call TriggerSleepAction( 10.00 )
call ModifyGateBJ( bj_GATEOPERATION_CLOSE, gg_dest_DTg7_0006 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_Team2Spawn), function Trig_Team_2_Enter_Arena_Func007002 )
if ( Trig_Team_2_Enter_Arena_Func008001() ) then
call IssuePointOrderLocBJ( GetTriggerUnit(), "patrol", GetRectCenter(gg_rct_Arena) )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Team_2_Enter_Arena takes nothing returns nothing
set gg_trg_Team_2_Enter_Arena = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Team_2_Enter_Arena, gg_rct_Team2EnterArena )
call TriggerAddAction( gg_trg_Team_2_Enter_Arena, function Trig_Team_2_Enter_Arena_Actions )
endfunction
function Trig_Hero_Enters_Team1_Safe_Zone_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_Hero_Enters_Team1_Safe_Zone_Actions takes nothing returns nothing
call GroupAddUnitSimple( GetTriggerUnit(), udg_HeroesInTeam1SafeZone )
endfunction
//===========================================================================
function InitTrig_Hero_Enters_Team1_Safe_Zone takes nothing returns nothing
set gg_trg_Hero_Enters_Team1_Safe_Zone = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Hero_Enters_Team1_Safe_Zone, gg_rct_Team1SafeArea )
call TriggerAddCondition( gg_trg_Hero_Enters_Team1_Safe_Zone, Condition( function Trig_Hero_Enters_Team1_Safe_Zone_Conditions ) )
call TriggerAddAction( gg_trg_Hero_Enters_Team1_Safe_Zone, function Trig_Hero_Enters_Team1_Safe_Zone_Actions )
endfunction
function Trig_Hero_Leaves_Team1_Safe_Zone_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_Hero_Leaves_Team1_Safe_Zone_Actions takes nothing returns nothing
call GroupRemoveUnitSimple( GetTriggerUnit(), udg_HeroesInTeam1SafeZone )
endfunction
//===========================================================================
function InitTrig_Hero_Leaves_Team1_Safe_Zone takes nothing returns nothing
set gg_trg_Hero_Leaves_Team1_Safe_Zone = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Hero_Leaves_Team1_Safe_Zone, gg_rct_Team1SafeArea )
call TriggerAddCondition( gg_trg_Hero_Leaves_Team1_Safe_Zone, Condition( function Trig_Hero_Leaves_Team1_Safe_Zone_Conditions ) )
call TriggerAddAction( gg_trg_Hero_Leaves_Team1_Safe_Zone, function Trig_Hero_Leaves_Team1_Safe_Zone_Actions )
endfunction
function Trig_Hero_Enters_Team2_Safe_Zone_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_Hero_Enters_Team2_Safe_Zone_Actions takes nothing returns nothing
call GroupAddUnitSimple( GetTriggerUnit(), udg_HeroesInTeam2SafeZone )
endfunction
//===========================================================================
function InitTrig_Hero_Enters_Team2_Safe_Zone takes nothing returns nothing
set gg_trg_Hero_Enters_Team2_Safe_Zone = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Hero_Enters_Team2_Safe_Zone, gg_rct_Team2SafeArea )
call TriggerAddCondition( gg_trg_Hero_Enters_Team2_Safe_Zone, Condition( function Trig_Hero_Enters_Team2_Safe_Zone_Conditions ) )
call TriggerAddAction( gg_trg_Hero_Enters_Team2_Safe_Zone, function Trig_Hero_Enters_Team2_Safe_Zone_Actions )
endfunction
function Trig_Hero_Leaves_Team2_Safe_Zone_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_Hero_Leaves_Team2_Safe_Zone_Actions takes nothing returns nothing
call GroupRemoveUnitSimple( GetTriggerUnit(), udg_HeroesInTeam2SafeZone )
endfunction
//===========================================================================
function InitTrig_Hero_Leaves_Team2_Safe_Zone takes nothing returns nothing
set gg_trg_Hero_Leaves_Team2_Safe_Zone = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Hero_Leaves_Team2_Safe_Zone, gg_rct_Team2SafeArea )
call TriggerAddCondition( gg_trg_Hero_Leaves_Team2_Safe_Zone, Condition( function Trig_Hero_Leaves_Team2_Safe_Zone_Conditions ) )
call TriggerAddAction( gg_trg_Hero_Leaves_Team2_Safe_Zone, function Trig_Hero_Leaves_Team2_Safe_Zone_Actions )
endfunction
function Trig_Hero_Enters_Arena_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_Hero_Enters_Arena_Actions takes nothing returns nothing
call GroupAddUnitSimple( GetTriggerUnit(), udg_HeroesInArena )
endfunction
//===========================================================================
function InitTrig_Hero_Enters_Arena takes nothing returns nothing
set gg_trg_Hero_Enters_Arena = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Hero_Enters_Arena, gg_rct_Arena )
call TriggerAddCondition( gg_trg_Hero_Enters_Arena, Condition( function Trig_Hero_Enters_Arena_Conditions ) )
call TriggerAddAction( gg_trg_Hero_Enters_Arena, function Trig_Hero_Enters_Arena_Actions )
endfunction
function Trig_Hero_Leaves_Arena_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_Hero_Leaves_Arena_Actions takes nothing returns nothing
call GroupRemoveUnitSimple( GetTriggerUnit(), udg_HeroesInArena )
endfunction
//===========================================================================
function InitTrig_Hero_Leaves_Arena takes nothing returns nothing
set gg_trg_Hero_Leaves_Arena = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Hero_Leaves_Arena, gg_rct_Arena )
call TriggerAddCondition( gg_trg_Hero_Leaves_Arena, Condition( function Trig_Hero_Leaves_Arena_Conditions ) )
call TriggerAddAction( gg_trg_Hero_Leaves_Arena, function Trig_Hero_Leaves_Arena_Actions )
endfunction
function Trig_Hero_Reward_In_Arena_Conditions takes nothing returns boolean
if ( not ( udg_bPasued == false ) ) then
return false
endif
return true
endfunction
function Trig_Hero_Reward_In_Arena_Func002002 takes nothing returns nothing
call AdjustPlayerStateBJ( 100, GetOwningPlayer(GetEnumUnit()), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Hero_Reward_In_Arena_Actions takes nothing returns nothing
call ForGroupBJ( udg_HeroesInArena, function Trig_Hero_Reward_In_Arena_Func002002 )
endfunction
//===========================================================================
function InitTrig_Hero_Reward_In_Arena takes nothing returns nothing
set gg_trg_Hero_Reward_In_Arena = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Hero_Reward_In_Arena, 10.00 )
call TriggerAddCondition( gg_trg_Hero_Reward_In_Arena, Condition( function Trig_Hero_Reward_In_Arena_Conditions ) )
call TriggerAddAction( gg_trg_Hero_Reward_In_Arena, function Trig_Hero_Reward_In_Arena_Actions )
endfunction
function Trig_Hero_Damage_In_Team1_Safe_Zone_Conditions takes nothing returns boolean
if ( not ( udg_bPasued == false ) ) then
return false
endif
return true
endfunction
function Trig_Hero_Damage_In_Team1_Safe_Zone_Actions takes nothing returns nothing
call SetDoodadAnimationRectBJ( "stand", 'YOlb', gg_rct_Team1SafeArea )
endfunction
//===========================================================================
function InitTrig_Hero_Damage_In_Team1_Safe_Zone takes nothing returns nothing
set gg_trg_Hero_Damage_In_Team1_Safe_Zone = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Hero_Damage_In_Team1_Safe_Zone, 20.00 )
call TriggerAddCondition( gg_trg_Hero_Damage_In_Team1_Safe_Zone, Condition( function Trig_Hero_Damage_In_Team1_Safe_Zone_Conditions ) )
call TriggerAddAction( gg_trg_Hero_Damage_In_Team1_Safe_Zone, function Trig_Hero_Damage_In_Team1_Safe_Zone_Actions )
endfunction
function Trig_Hero_Damage_In_Team2_Safe_Zone_Conditions takes nothing returns boolean
if ( not ( udg_bPasued == false ) ) then
return false
endif
return true
endfunction
function Trig_Hero_Damage_In_Team2_Safe_Zone_Actions takes nothing returns nothing
call SetDoodadAnimationRectBJ( "stand", 'YOlb', gg_rct_Team2SafeArea )
endfunction
//===========================================================================
function InitTrig_Hero_Damage_In_Team2_Safe_Zone takes nothing returns nothing
set gg_trg_Hero_Damage_In_Team2_Safe_Zone = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Hero_Damage_In_Team2_Safe_Zone, 20.00 )
call TriggerAddCondition( gg_trg_Hero_Damage_In_Team2_Safe_Zone, Condition( function Trig_Hero_Damage_In_Team2_Safe_Zone_Conditions ) )
call TriggerAddAction( gg_trg_Hero_Damage_In_Team2_Safe_Zone, function Trig_Hero_Damage_In_Team2_Safe_Zone_Actions )
endfunction
function Trig_CityTeam1NoBlockade_Actions takes nothing returns nothing
call SetUnitPathing( GetEnteringUnit(), false )
endfunction
//===========================================================================
function InitTrig_CityTeam1NoBlockade takes nothing returns nothing
set gg_trg_CityTeam1NoBlockade = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_CityTeam1NoBlockade, gg_rct_Team1SafeArea )
call TriggerAddAction( gg_trg_CityTeam1NoBlockade, function Trig_CityTeam1NoBlockade_Actions )
endfunction
function Trig_CityTeam2NoBlockade_Actions takes nothing returns nothing
call SetUnitPathing( GetEnteringUnit(), false )
endfunction
//===========================================================================
function InitTrig_CityTeam2NoBlockade takes nothing returns nothing
set gg_trg_CityTeam2NoBlockade = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_CityTeam2NoBlockade, gg_rct_Team2SafeArea )
call TriggerAddAction( gg_trg_CityTeam2NoBlockade, function Trig_CityTeam2NoBlockade_Actions )
endfunction
function Trig_CityTeam1NoBlockade_off_Actions takes nothing returns nothing
call SetUnitPathing( GetLeavingUnit(), true )
endfunction
//===========================================================================
function InitTrig_CityTeam1NoBlockade_off takes nothing returns nothing
set gg_trg_CityTeam1NoBlockade_off = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_CityTeam1NoBlockade_off, gg_rct_Team1SafeArea )
call TriggerAddAction( gg_trg_CityTeam1NoBlockade_off, function Trig_CityTeam1NoBlockade_off_Actions )
endfunction
function Trig_CityTeam2NoBlockade_off_Actions takes nothing returns nothing
call SetUnitPathing( GetLeavingUnit(), true )
endfunction
//===========================================================================
function InitTrig_CityTeam2NoBlockade_off takes nothing returns nothing
set gg_trg_CityTeam2NoBlockade_off = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_CityTeam2NoBlockade_off, gg_rct_Team2SafeArea )
call TriggerAddAction( gg_trg_CityTeam2NoBlockade_off, function Trig_CityTeam2NoBlockade_off_Actions )
endfunction
function Trig_Set_Up_Leaderboard_Func008002 takes nothing returns nothing
call LeaderboardAddItemBJ( GetEnumPlayer(), GetLastCreatedLeaderboard(), GetPlayerName(GetEnumPlayer()), 0 )
endfunction
function Trig_Set_Up_Leaderboard_Func012002 takes nothing returns nothing
call LeaderboardAddItemBJ( GetEnumPlayer(), GetLastCreatedLeaderboard(), GetPlayerName(GetEnumPlayer()), 0 )
endfunction
function Trig_Set_Up_Leaderboard_Actions takes nothing returns nothing
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set udg_Kills[GetForLoopIndexA()] = 0
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call TriggerSleepAction( 1.00 )
call CreateLeaderboardBJ( GetPlayersAll(), "TRIGSTR_021" )
set udg_TheLeaderBoard = GetLastCreatedLeaderboard()
call LeaderboardAddItemBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), GetLastCreatedLeaderboard(), "TRIGSTR_033", 0 )
call LeaderboardSetPlayerItemLabelColorBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), GetLastCreatedLeaderboard(), 100, 100, 100, 25.00 )
call LeaderboardSetPlayerItemValueColorBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), GetLastCreatedLeaderboard(), 100, 100, 100, 25.00 )
call ForForce( udg_Team1, function Trig_Set_Up_Leaderboard_Func008002 )
call LeaderboardAddItemBJ( Player(PLAYER_NEUTRAL_PASSIVE), GetLastCreatedLeaderboard(), "TRIGSTR_034", 0 )
call LeaderboardSetPlayerItemLabelColorBJ( Player(PLAYER_NEUTRAL_PASSIVE), GetLastCreatedLeaderboard(), 100, 100, 100, 25.00 )
call LeaderboardSetPlayerItemValueColorBJ( Player(PLAYER_NEUTRAL_PASSIVE), GetLastCreatedLeaderboard(), 100, 100, 100, 25.00 )
call ForForce( udg_Team2, function Trig_Set_Up_Leaderboard_Func012002 )
call LeaderboardSetPlayerItemStyleBJ( Player(bj_PLAYER_NEUTRAL_VICTIM), GetLastCreatedLeaderboard(), true, false, false )
call LeaderboardSetPlayerItemLabelColorBJ( Player(bj_PLAYER_NEUTRAL_VICTIM), GetLastCreatedLeaderboard(), 100, 100, 100, 25.00 )
call EnableTrigger( gg_trg_Update_Leaderboard )
endfunction
//===========================================================================
function InitTrig_Set_Up_Leaderboard takes nothing returns nothing
set gg_trg_Set_Up_Leaderboard = CreateTrigger( )
call TriggerAddAction( gg_trg_Set_Up_Leaderboard, function Trig_Set_Up_Leaderboard_Actions )
endfunction
function Trig_Update_Leaderboard_Func001002 takes nothing returns nothing
call LeaderboardSetPlayerItemValueBJ( GetEnumPlayer(), udg_TheLeaderBoard, udg_Kills[GetConvertedPlayerId(GetEnumPlayer())] )
endfunction
function Trig_Update_Leaderboard_Actions takes nothing returns nothing
call ForForce( GetPlayersAll(), function Trig_Update_Leaderboard_Func001002 )
call LeaderboardSetPlayerItemValueBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), udg_TheLeaderBoard, udg_Team1Kills )
call LeaderboardSetPlayerItemValueBJ( Player(PLAYER_NEUTRAL_PASSIVE), udg_TheLeaderBoard, udg_Team2Kills )
endfunction
//===========================================================================
function InitTrig_Update_Leaderboard takes nothing returns nothing
set gg_trg_Update_Leaderboard = CreateTrigger( )
call DisableTrigger( gg_trg_Update_Leaderboard )
call TriggerAddAction( gg_trg_Update_Leaderboard, function Trig_Update_Leaderboard_Actions )
endfunction
function Trig_Player_Quits_Func003002001 takes nothing returns boolean
return ( GetPlayerSlotState(GetEnumPlayer()) != PLAYER_SLOT_STATE_LEFT )
endfunction
function Trig_Player_Quits_Func003002 takes nothing returns nothing
if ( Trig_Player_Quits_Func003002001() ) then
set udg_bTeam1Playing = true
else
call LeaderboardSetPlayerItemLabelBJ( GetEnumPlayer(), GetLastCreatedLeaderboard(), "TRIGSTR_2137" )
endif
endfunction
function Trig_Player_Quits_Func004002001 takes nothing returns boolean
return ( GetPlayerSlotState(GetEnumPlayer()) == PLAYER_SLOT_STATE_LEFT )
endfunction
function Trig_Player_Quits_Func004002002002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Player_Quits_Func004002 takes nothing returns nothing
if ( Trig_Player_Quits_Func004002001() ) then
call ForGroupBJ( GetUnitsOfPlayerAll(GetEnumPlayer()), function Trig_Player_Quits_Func004002002002 )
else
call DoNothing( )
endif
endfunction
function Trig_Player_Quits_Func006002001 takes nothing returns boolean
return ( GetPlayerSlotState(GetEnumPlayer()) != PLAYER_SLOT_STATE_LEFT )
endfunction
function Trig_Player_Quits_Func006002 takes nothing returns nothing
if ( Trig_Player_Quits_Func006002001() ) then
set udg_bTeam2Playing = true
else
call LeaderboardSetPlayerItemLabelBJ( GetEnumPlayer(), GetLastCreatedLeaderboard(), "TRIGSTR_2142" )
endif
endfunction
function Trig_Player_Quits_Func007002001 takes nothing returns boolean
return ( GetPlayerSlotState(GetEnumPlayer()) == PLAYER_SLOT_STATE_LEFT )
endfunction
function Trig_Player_Quits_Func007002002002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Player_Quits_Func007002 takes nothing returns nothing
if ( Trig_Player_Quits_Func007002001() ) then
call ForGroupBJ( GetUnitsOfPlayerAll(GetEnumPlayer()), function Trig_Player_Quits_Func007002002002 )
else
call DoNothing( )
endif
endfunction
function Trig_Player_Quits_Func008001 takes nothing returns boolean
return ( udg_bTeam1Playing == false )
endfunction
function Trig_Player_Quits_Func009001 takes nothing returns boolean
return ( udg_bTeam2Playing == false )
endfunction
function Trig_Player_Quits_Actions takes nothing returns nothing
set udg_bTeam1Playing = false
call ForForce( udg_Team1, function Trig_Player_Quits_Func003002 )
call ForForce( udg_Team1, function Trig_Player_Quits_Func004002 )
set udg_bTeam2Playing = false
call ForForce( udg_Team2, function Trig_Player_Quits_Func006002 )
call ForForce( udg_Team2, function Trig_Player_Quits_Func007002 )
if ( Trig_Player_Quits_Func008001() ) then
call DisableTrigger( gg_trg_Setup_Duel_Timer )
else
call DoNothing( )
endif
if ( Trig_Player_Quits_Func009001() ) then
call DisableTrigger( gg_trg_Setup_Duel_Timer )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Player_Quits takes nothing returns nothing
set gg_trg_Player_Quits = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Player_Quits, 5.00 )
call TriggerAddAction( gg_trg_Player_Quits, function Trig_Player_Quits_Actions )
endfunction
function Trig_Team1_Death_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetDyingUnit(), 'ankh') == false ) ) then
return false
endif
return true
endfunction
function Trig_Team1_Death_Func002001 takes nothing returns boolean
return ( udg_bDuel == true )
endfunction
function Trig_Team1_Death_Func011001 takes nothing returns boolean
return ( GetOwningPlayer(GetKillingUnitBJ()) != Player(PLAYER_NEUTRAL_AGGRESSIVE) )
endfunction
function Trig_Team1_Death_Func013002 takes nothing returns nothing
call SetUnitFacingToFaceUnitTimed( GetEnumUnit(), GetKillingUnitBJ(), 0.25 )
endfunction
function Trig_Team1_Death_Func014001 takes nothing returns boolean
return ( GetOwningPlayer(GetKillingUnitBJ()) != Player(PLAYER_NEUTRAL_AGGRESSIVE) )
endfunction
function Trig_Team1_Death_Func015001 takes nothing returns boolean
return ( GetOwningPlayer(GetKillingUnitBJ()) != Player(PLAYER_NEUTRAL_AGGRESSIVE) )
endfunction
function Trig_Team1_Death_Func016001001 takes nothing returns boolean
return ( GetOwningPlayer(GetKillingUnitBJ()) != Player(PLAYER_NEUTRAL_AGGRESSIVE) )
endfunction
function Trig_Team1_Death_Func016001002 takes nothing returns boolean
return ( udg_bDuel == true )
endfunction
function Trig_Team1_Death_Func016001 takes nothing returns boolean
return GetBooleanAnd( Trig_Team1_Death_Func016001001(), Trig_Team1_Death_Func016001002() )
endfunction
function Trig_Team1_Death_Func017002 takes nothing returns nothing
call SetUnitAnimation( GetEnumUnit(), "Stand 2" )
endfunction
function Trig_Team1_Death_Func019001 takes nothing returns boolean
return ( udg_bDuel == true )
endfunction
function Trig_Team1_Death_Func020001 takes nothing returns boolean
return ( udg_bDuel == true )
endfunction
function Trig_Team1_Death_Func022001 takes nothing returns boolean
return ( GetTriggerUnit() == udg_Team1LeaderHero )
endfunction
function Trig_Team1_Death_Func024001 takes nothing returns boolean
return ( udg_bDuel == false )
endfunction
function Trig_Team1_Death_Func028001 takes nothing returns boolean
return ( GetPlayerController(GetOwningPlayer(GetTriggerUnit())) == MAP_CONTROL_COMPUTER )
endfunction
function Trig_Team1_Death_Actions takes nothing returns nothing
call UnitRemoveItemFromSlotSwapped( GetRandomInt(5, 6), GetTriggerUnit() )
if ( Trig_Team1_Death_Func002001() ) then
set udg_Team2Kills = ( udg_Team2Kills + 3 )
else
set udg_Team2Kills = ( udg_Team2Kills + 1 )
endif
if ( Trig_Team1_Death_Func011001() ) then
set udg_Kills[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] = ( udg_Kills[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] + 1 )
else
call DoNothing( )
endif
call TriggerExecute( gg_trg_Update_Leaderboard )
call ForGroupBJ( udg_Crowd, function Trig_Team1_Death_Func013002 )
if ( Trig_Team1_Death_Func014001() ) then
call PlaySoundBJ( gg_snd_BigCheer )
else
call PlaySoundBJ( gg_snd_SmallCheer )
endif
if ( Trig_Team1_Death_Func015001() ) then
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())) + ( " Defeats " + GetPlayerName(GetOwningPlayer(GetTriggerUnit())) ) ) )
else
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetTriggerUnit())) + " Dies To Creeps" ) )
endif
if ( Trig_Team1_Death_Func016001() ) then
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())) + " Wins the Duel" ) )
else
call DoNothing( )
endif
call ForGroupBJ( udg_Crowd, function Trig_Team1_Death_Func017002 )
call SetUnitAnimation( gg_unit_Huth_0024, "Stand Victory" )
if ( Trig_Team1_Death_Func019001() ) then
call TriggerExecute( gg_trg_End_Duel )
else
call DoNothing( )
endif
if ( Trig_Team1_Death_Func020001() ) then
set udg_bDuel = false
else
call DoNothing( )
endif
call TriggerSleepAction( 4.00 )
if ( Trig_Team1_Death_Func022001() ) then
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_DuelTeam1Fighter) )
else
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Team1GraveYard) )
endif
call TriggerSleepAction( 2 )
if ( Trig_Team1_Death_Func024001() ) then
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Team1GraveYard), 1.00 )
else
call DoNothing( )
endif
call TriggerSleepAction( 2 )
call ReviveHeroLoc( GetDyingUnit(), GetUnitLoc(GetTriggerUnit()), true )
call SetUnitManaPercentBJ( GetTriggerUnit(), 100 )
if ( Trig_Team1_Death_Func028001() ) then
call IssuePointOrderLocBJ( GetTriggerUnit(), "move", GetRectCenter(gg_rct_Team2EnterArena) )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Team1_Death takes nothing returns nothing
set gg_trg_Team1_Death = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Team1_Death, Player(0), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Team1_Death, Player(1), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Team1_Death, Player(2), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Team1_Death, Player(3), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Team1_Death, Player(4), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Team1_Death, Player(5), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Team1_Death, Condition( function Trig_Team1_Death_Conditions ) )
call TriggerAddAction( gg_trg_Team1_Death, function Trig_Team1_Death_Actions )
endfunction
function Trig_Team2_Death_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetDyingUnit(), 'ankh') == false ) ) then
return false
endif
return true
endfunction
function Trig_Team2_Death_Func002001 takes nothing returns boolean
return ( udg_bDuel == true )
endfunction
function Trig_Team2_Death_Func003001 takes nothing returns boolean
return ( GetOwningPlayer(GetKillingUnitBJ()) != Player(PLAYER_NEUTRAL_AGGRESSIVE) )
endfunction
function Trig_Team2_Death_Func013002 takes nothing returns nothing
call SetUnitFacingToFaceUnitTimed( GetEnumUnit(), GetKillingUnitBJ(), 0.25 )
endfunction
function Trig_Team2_Death_Func014001 takes nothing returns boolean
return ( GetOwningPlayer(GetKillingUnitBJ()) != Player(PLAYER_NEUTRAL_AGGRESSIVE) )
endfunction
function Trig_Team2_Death_Func015001 takes nothing returns boolean
return ( GetOwningPlayer(GetKillingUnitBJ()) != Player(PLAYER_NEUTRAL_AGGRESSIVE) )
endfunction
function Trig_Team2_Death_Func016001001 takes nothing returns boolean
return ( GetOwningPlayer(GetKillingUnitBJ()) != Player(PLAYER_NEUTRAL_AGGRESSIVE) )
endfunction
function Trig_Team2_Death_Func016001002 takes nothing returns boolean
return ( udg_bDuel == true )
endfunction
function Trig_Team2_Death_Func016001 takes nothing returns boolean
return GetBooleanAnd( Trig_Team2_Death_Func016001001(), Trig_Team2_Death_Func016001002() )
endfunction
function Trig_Team2_Death_Func017002 takes nothing returns nothing
call SetUnitAnimation( GetEnumUnit(), "Stand 2" )
endfunction
function Trig_Team2_Death_Func019001 takes nothing returns boolean
return ( udg_bDuel == true )
endfunction
function Trig_Team2_Death_Func020001 takes nothing returns boolean
return ( udg_bDuel == true )
endfunction
function Trig_Team2_Death_Func022001 takes nothing returns boolean
return ( GetTriggerUnit() == udg_Team2LeaderHero )
endfunction
function Trig_Team2_Death_Func024001 takes nothing returns boolean
return ( udg_bDuel == false )
endfunction
function Trig_Team2_Death_Func028001 takes nothing returns boolean
return ( GetPlayerController(GetOwningPlayer(GetTriggerUnit())) == MAP_CONTROL_COMPUTER )
endfunction
function Trig_Team2_Death_Actions takes nothing returns nothing
call UnitRemoveItemFromSlotSwapped( GetRandomInt(5, 6), GetTriggerUnit() )
if ( Trig_Team2_Death_Func002001() ) then
set udg_Team1Kills = ( udg_Team1Kills + 3 )
else
set udg_Team1Kills = ( udg_Team1Kills + 1 )
endif
if ( Trig_Team2_Death_Func003001() ) then
set udg_Kills[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] = ( udg_Kills[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] + 1 )
else
call DoNothing( )
endif
call TriggerExecute( gg_trg_Update_Leaderboard )
call ForGroupBJ( udg_Crowd, function Trig_Team2_Death_Func013002 )
if ( Trig_Team2_Death_Func014001() ) then
call PlaySoundBJ( gg_snd_BigCheer )
else
call PlaySoundBJ( gg_snd_SmallCheer )
endif
if ( Trig_Team2_Death_Func015001() ) then
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())) + ( " Defeats " + GetPlayerName(GetOwningPlayer(GetTriggerUnit())) ) ) )
else
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetTriggerUnit())) + " Dies To Creeps" ) )
endif
if ( Trig_Team2_Death_Func016001() ) then
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())) + " Wins the Duel" ) )
else
call DoNothing( )
endif
call ForGroupBJ( udg_Crowd, function Trig_Team2_Death_Func017002 )
call SetUnitAnimation( gg_unit_Huth_0024, "Stand Victory" )
if ( Trig_Team2_Death_Func019001() ) then
call TriggerExecute( gg_trg_End_Duel )
else
call DoNothing( )
endif
if ( Trig_Team2_Death_Func020001() ) then
set udg_bDuel = false
else
call DoNothing( )
endif
call TriggerSleepAction( 4.00 )
if ( Trig_Team2_Death_Func022001() ) then
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_DuelTeam2Fighter) )
else
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Team2GraveYard) )
endif
call TriggerSleepAction( 2 )
if ( Trig_Team2_Death_Func024001() ) then
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Team2GraveYard), 1.00 )
else
call DoNothing( )
endif
call TriggerSleepAction( 2 )
call ReviveHeroLoc( GetDyingUnit(), GetUnitLoc(GetTriggerUnit()), true )
call SetUnitManaPercentBJ( GetTriggerUnit(), 100 )
if ( Trig_Team2_Death_Func028001() ) then
call IssuePointOrderLocBJ( GetTriggerUnit(), "move", GetRectCenter(gg_rct_Team2EnterArena) )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Team2_Death takes nothing returns nothing
set gg_trg_Team2_Death = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Team2_Death, Player(6), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Team2_Death, Player(7), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Team2_Death, Player(8), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Team2_Death, Player(9), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Team2_Death, Player(10), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Team2_Death, Player(11), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Team2_Death, Condition( function Trig_Team2_Death_Conditions ) )
call TriggerAddAction( gg_trg_Team2_Death, function Trig_Team2_Death_Actions )
endfunction
function Trig_RedEnemy_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(0) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_RedEnemy_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(0), ALLIANCE_PASSIVE, false, Player(6) )
call SetPlayerAllianceBJ( Player(0), ALLIANCE_PASSIVE, false, Player(7) )
call SetPlayerAllianceBJ( Player(0), ALLIANCE_PASSIVE, false, Player(8) )
call SetPlayerAllianceBJ( Player(0), ALLIANCE_PASSIVE, false, Player(9) )
call SetPlayerAllianceBJ( Player(0), ALLIANCE_PASSIVE, false, Player(10) )
call SetPlayerAllianceBJ( Player(0), ALLIANCE_PASSIVE, false, Player(11) )
endfunction
//===========================================================================
function InitTrig_RedEnemy takes nothing returns nothing
set gg_trg_RedEnemy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_RedEnemy, gg_rct_Arena )
call TriggerAddCondition( gg_trg_RedEnemy, Condition( function Trig_RedEnemy_Conditions ) )
call TriggerAddAction( gg_trg_RedEnemy, function Trig_RedEnemy_Actions )
endfunction
function Trig_BlueEnemy_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(1) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_BlueEnemy_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(1), ALLIANCE_PASSIVE, false, Player(6) )
call SetPlayerAllianceBJ( Player(1), ALLIANCE_PASSIVE, false, Player(7) )
call SetPlayerAllianceBJ( Player(1), ALLIANCE_PASSIVE, false, Player(8) )
call SetPlayerAllianceBJ( Player(1), ALLIANCE_PASSIVE, false, Player(9) )
call SetPlayerAllianceBJ( Player(1), ALLIANCE_PASSIVE, false, Player(10) )
call SetPlayerAllianceBJ( Player(1), ALLIANCE_PASSIVE, false, Player(11) )
endfunction
//===========================================================================
function InitTrig_BlueEnemy takes nothing returns nothing
set gg_trg_BlueEnemy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_BlueEnemy, gg_rct_Arena )
call TriggerAddCondition( gg_trg_BlueEnemy, Condition( function Trig_BlueEnemy_Conditions ) )
call TriggerAddAction( gg_trg_BlueEnemy, function Trig_BlueEnemy_Actions )
endfunction
function Trig_BlueGreyEnemy_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(2) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_BlueGreyEnemy_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(2), ALLIANCE_PASSIVE, false, Player(6) )
call SetPlayerAllianceBJ( Player(2), ALLIANCE_PASSIVE, false, Player(7) )
call SetPlayerAllianceBJ( Player(2), ALLIANCE_PASSIVE, false, Player(8) )
call SetPlayerAllianceBJ( Player(2), ALLIANCE_PASSIVE, false, Player(9) )
call SetPlayerAllianceBJ( Player(2), ALLIANCE_PASSIVE, false, Player(10) )
call SetPlayerAllianceBJ( Player(2), ALLIANCE_PASSIVE, false, Player(11) )
endfunction
//===========================================================================
function InitTrig_BlueGreyEnemy takes nothing returns nothing
set gg_trg_BlueGreyEnemy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_BlueGreyEnemy, gg_rct_Arena )
call TriggerAddCondition( gg_trg_BlueGreyEnemy, Condition( function Trig_BlueGreyEnemy_Conditions ) )
call TriggerAddAction( gg_trg_BlueGreyEnemy, function Trig_BlueGreyEnemy_Actions )
endfunction
function Trig_LilaEnemy_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(3) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_LilaEnemy_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(3), ALLIANCE_PASSIVE, false, Player(6) )
call SetPlayerAllianceBJ( Player(3), ALLIANCE_PASSIVE, false, Player(7) )
call SetPlayerAllianceBJ( Player(3), ALLIANCE_PASSIVE, false, Player(8) )
call SetPlayerAllianceBJ( Player(3), ALLIANCE_PASSIVE, false, Player(9) )
call SetPlayerAllianceBJ( Player(3), ALLIANCE_PASSIVE, false, Player(10) )
call SetPlayerAllianceBJ( Player(3), ALLIANCE_PASSIVE, false, Player(11) )
endfunction
//===========================================================================
function InitTrig_LilaEnemy takes nothing returns nothing
set gg_trg_LilaEnemy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_LilaEnemy, gg_rct_Arena )
call TriggerAddCondition( gg_trg_LilaEnemy, Condition( function Trig_LilaEnemy_Conditions ) )
call TriggerAddAction( gg_trg_LilaEnemy, function Trig_LilaEnemy_Actions )
endfunction
function Trig_GelbEnemy_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(4) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_GelbEnemy_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(4), ALLIANCE_PASSIVE, false, Player(6) )
call SetPlayerAllianceBJ( Player(4), ALLIANCE_PASSIVE, false, Player(7) )
call SetPlayerAllianceBJ( Player(4), ALLIANCE_PASSIVE, false, Player(8) )
call SetPlayerAllianceBJ( Player(4), ALLIANCE_PASSIVE, false, Player(9) )
call SetPlayerAllianceBJ( Player(4), ALLIANCE_PASSIVE, false, Player(10) )
call SetPlayerAllianceBJ( Player(4), ALLIANCE_PASSIVE, false, Player(11) )
endfunction
//===========================================================================
function InitTrig_GelbEnemy takes nothing returns nothing
set gg_trg_GelbEnemy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_GelbEnemy, gg_rct_Arena )
call TriggerAddCondition( gg_trg_GelbEnemy, Condition( function Trig_GelbEnemy_Conditions ) )
call TriggerAddAction( gg_trg_GelbEnemy, function Trig_GelbEnemy_Actions )
endfunction
function Trig_OrangeEnemy_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(5) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_OrangeEnemy_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(5), ALLIANCE_PASSIVE, false, Player(6) )
call SetPlayerAllianceBJ( Player(5), ALLIANCE_PASSIVE, false, Player(7) )
call SetPlayerAllianceBJ( Player(5), ALLIANCE_PASSIVE, false, Player(8) )
call SetPlayerAllianceBJ( Player(5), ALLIANCE_PASSIVE, false, Player(9) )
call SetPlayerAllianceBJ( Player(5), ALLIANCE_PASSIVE, false, Player(10) )
call SetPlayerAllianceBJ( Player(5), ALLIANCE_PASSIVE, false, Player(11) )
endfunction
//===========================================================================
function InitTrig_OrangeEnemy takes nothing returns nothing
set gg_trg_OrangeEnemy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_OrangeEnemy, gg_rct_Arena )
call TriggerAddCondition( gg_trg_OrangeEnemy, Condition( function Trig_OrangeEnemy_Conditions ) )
call TriggerAddAction( gg_trg_OrangeEnemy, function Trig_OrangeEnemy_Actions )
endfunction
function Trig_GreenEnemy_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(6) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_GreenEnemy_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(6), ALLIANCE_PASSIVE, false, Player(0) )
call SetPlayerAllianceBJ( Player(6), ALLIANCE_PASSIVE, false, Player(1) )
call SetPlayerAllianceBJ( Player(6), ALLIANCE_PASSIVE, false, Player(2) )
call SetPlayerAllianceBJ( Player(6), ALLIANCE_PASSIVE, false, Player(3) )
call SetPlayerAllianceBJ( Player(6), ALLIANCE_PASSIVE, false, Player(4) )
call SetPlayerAllianceBJ( Player(6), ALLIANCE_PASSIVE, false, Player(5) )
endfunction
//===========================================================================
function InitTrig_GreenEnemy takes nothing returns nothing
set gg_trg_GreenEnemy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_GreenEnemy, gg_rct_Arena )
call TriggerAddCondition( gg_trg_GreenEnemy, Condition( function Trig_GreenEnemy_Conditions ) )
call TriggerAddAction( gg_trg_GreenEnemy, function Trig_GreenEnemy_Actions )
endfunction
function Trig_RosaEnemy_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(7) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_RosaEnemy_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(7), ALLIANCE_PASSIVE, false, Player(0) )
call SetPlayerAllianceBJ( Player(7), ALLIANCE_PASSIVE, false, Player(1) )
call SetPlayerAllianceBJ( Player(7), ALLIANCE_PASSIVE, false, Player(2) )
call SetPlayerAllianceBJ( Player(7), ALLIANCE_PASSIVE, false, Player(3) )
call SetPlayerAllianceBJ( Player(7), ALLIANCE_PASSIVE, false, Player(4) )
call SetPlayerAllianceBJ( Player(7), ALLIANCE_PASSIVE, false, Player(5) )
endfunction
//===========================================================================
function InitTrig_RosaEnemy takes nothing returns nothing
set gg_trg_RosaEnemy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_RosaEnemy, gg_rct_Arena )
call TriggerAddCondition( gg_trg_RosaEnemy, Condition( function Trig_RosaEnemy_Conditions ) )
call TriggerAddAction( gg_trg_RosaEnemy, function Trig_RosaEnemy_Actions )
endfunction
function Trig_GreyEnemy_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(8) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_GreyEnemy_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(8), ALLIANCE_PASSIVE, false, Player(0) )
call SetPlayerAllianceBJ( Player(8), ALLIANCE_PASSIVE, false, Player(1) )
call SetPlayerAllianceBJ( Player(8), ALLIANCE_PASSIVE, false, Player(2) )
call SetPlayerAllianceBJ( Player(8), ALLIANCE_PASSIVE, false, Player(3) )
call SetPlayerAllianceBJ( Player(8), ALLIANCE_PASSIVE, false, Player(4) )
call SetPlayerAllianceBJ( Player(8), ALLIANCE_PASSIVE, false, Player(5) )
endfunction
//===========================================================================
function InitTrig_GreyEnemy takes nothing returns nothing
set gg_trg_GreyEnemy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_GreyEnemy, gg_rct_Arena )
call TriggerAddCondition( gg_trg_GreyEnemy, Condition( function Trig_GreyEnemy_Conditions ) )
call TriggerAddAction( gg_trg_GreyEnemy, function Trig_GreyEnemy_Actions )
endfunction
function Trig_LightBlueEnemy_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(9) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_LightBlueEnemy_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(9), ALLIANCE_PASSIVE, false, Player(0) )
call SetPlayerAllianceBJ( Player(9), ALLIANCE_PASSIVE, false, Player(1) )
call SetPlayerAllianceBJ( Player(9), ALLIANCE_PASSIVE, false, Player(2) )
call SetPlayerAllianceBJ( Player(9), ALLIANCE_PASSIVE, false, Player(3) )
call SetPlayerAllianceBJ( Player(9), ALLIANCE_PASSIVE, false, Player(4) )
call SetPlayerAllianceBJ( Player(9), ALLIANCE_PASSIVE, false, Player(5) )
endfunction
//===========================================================================
function InitTrig_LightBlueEnemy takes nothing returns nothing
set gg_trg_LightBlueEnemy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_LightBlueEnemy, gg_rct_Arena )
call TriggerAddCondition( gg_trg_LightBlueEnemy, Condition( function Trig_LightBlueEnemy_Conditions ) )
call TriggerAddAction( gg_trg_LightBlueEnemy, function Trig_LightBlueEnemy_Actions )
endfunction
function Trig_DarkGreenEnemy_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(10) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_DarkGreenEnemy_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(10), ALLIANCE_PASSIVE, false, Player(0) )
call SetPlayerAllianceBJ( Player(10), ALLIANCE_PASSIVE, false, Player(1) )
call SetPlayerAllianceBJ( Player(10), ALLIANCE_PASSIVE, false, Player(2) )
call SetPlayerAllianceBJ( Player(10), ALLIANCE_PASSIVE, false, Player(3) )
call SetPlayerAllianceBJ( Player(10), ALLIANCE_PASSIVE, false, Player(4) )
call SetPlayerAllianceBJ( Player(10), ALLIANCE_PASSIVE, false, Player(5) )
endfunction
//===========================================================================
function InitTrig_DarkGreenEnemy takes nothing returns nothing
set gg_trg_DarkGreenEnemy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_DarkGreenEnemy, gg_rct_Arena )
call TriggerAddCondition( gg_trg_DarkGreenEnemy, Condition( function Trig_DarkGreenEnemy_Conditions ) )
call TriggerAddAction( gg_trg_DarkGreenEnemy, function Trig_DarkGreenEnemy_Actions )
endfunction
function Trig_BrownEnemy_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(11) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_BrownEnemy_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(11), ALLIANCE_PASSIVE, false, Player(0) )
call SetPlayerAllianceBJ( Player(11), ALLIANCE_PASSIVE, false, Player(1) )
call SetPlayerAllianceBJ( Player(11), ALLIANCE_PASSIVE, false, Player(2) )
call SetPlayerAllianceBJ( Player(11), ALLIANCE_PASSIVE, false, Player(3) )
call SetPlayerAllianceBJ( Player(11), ALLIANCE_PASSIVE, false, Player(4) )
call SetPlayerAllianceBJ( Player(11), ALLIANCE_PASSIVE, false, Player(5) )
endfunction
//===========================================================================
function InitTrig_BrownEnemy takes nothing returns nothing
set gg_trg_BrownEnemy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_BrownEnemy, gg_rct_Arena )
call TriggerAddCondition( gg_trg_BrownEnemy, Condition( function Trig_BrownEnemy_Conditions ) )
call TriggerAddAction( gg_trg_BrownEnemy, function Trig_BrownEnemy_Actions )
endfunction
function Trig_RedFriend_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetLeavingUnit()) == Player(0) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_RedFriend_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(0), ALLIANCE_PASSIVE, true, Player(6) )
call SetPlayerAllianceBJ( Player(0), ALLIANCE_PASSIVE, true, Player(7) )
call SetPlayerAllianceBJ( Player(0), ALLIANCE_PASSIVE, true, Player(8) )
call SetPlayerAllianceBJ( Player(0), ALLIANCE_PASSIVE, true, Player(9) )
call SetPlayerAllianceBJ( Player(0), ALLIANCE_PASSIVE, true, Player(10) )
call SetPlayerAllianceBJ( Player(0), ALLIANCE_PASSIVE, true, Player(11) )
endfunction
//===========================================================================
function InitTrig_RedFriend takes nothing returns nothing
set gg_trg_RedFriend = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_RedFriend, gg_rct_Arena )
call TriggerAddCondition( gg_trg_RedFriend, Condition( function Trig_RedFriend_Conditions ) )
call TriggerAddAction( gg_trg_RedFriend, function Trig_RedFriend_Actions )
endfunction
function Trig_BlueFriend_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetLeavingUnit()) == Player(1) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_BlueFriend_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(1), ALLIANCE_PASSIVE, true, Player(6) )
call SetPlayerAllianceBJ( Player(1), ALLIANCE_PASSIVE, true, Player(7) )
call SetPlayerAllianceBJ( Player(1), ALLIANCE_PASSIVE, true, Player(8) )
call SetPlayerAllianceBJ( Player(1), ALLIANCE_PASSIVE, true, Player(9) )
call SetPlayerAllianceBJ( Player(1), ALLIANCE_PASSIVE, true, Player(10) )
call SetPlayerAllianceBJ( Player(1), ALLIANCE_PASSIVE, true, Player(11) )
endfunction
//===========================================================================
function InitTrig_BlueFriend takes nothing returns nothing
set gg_trg_BlueFriend = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_BlueFriend, gg_rct_Arena )
call TriggerAddCondition( gg_trg_BlueFriend, Condition( function Trig_BlueFriend_Conditions ) )
call TriggerAddAction( gg_trg_BlueFriend, function Trig_BlueFriend_Actions )
endfunction
function Trig_BlueGreyFriend_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetLeavingUnit()) == Player(2) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_BlueGreyFriend_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(2), ALLIANCE_PASSIVE, true, Player(6) )
call SetPlayerAllianceBJ( Player(2), ALLIANCE_PASSIVE, true, Player(7) )
call SetPlayerAllianceBJ( Player(2), ALLIANCE_PASSIVE, true, Player(8) )
call SetPlayerAllianceBJ( Player(2), ALLIANCE_PASSIVE, true, Player(9) )
call SetPlayerAllianceBJ( Player(2), ALLIANCE_PASSIVE, true, Player(10) )
call SetPlayerAllianceBJ( Player(2), ALLIANCE_PASSIVE, true, Player(11) )
endfunction
//===========================================================================
function InitTrig_BlueGreyFriend takes nothing returns nothing
set gg_trg_BlueGreyFriend = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_BlueGreyFriend, gg_rct_Arena )
call TriggerAddCondition( gg_trg_BlueGreyFriend, Condition( function Trig_BlueGreyFriend_Conditions ) )
call TriggerAddAction( gg_trg_BlueGreyFriend, function Trig_BlueGreyFriend_Actions )
endfunction
function Trig_LilaFriend_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetLeavingUnit()) == Player(3) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_LilaFriend_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(3), ALLIANCE_PASSIVE, true, Player(6) )
call SetPlayerAllianceBJ( Player(3), ALLIANCE_PASSIVE, true, Player(7) )
call SetPlayerAllianceBJ( Player(3), ALLIANCE_PASSIVE, true, Player(8) )
call SetPlayerAllianceBJ( Player(3), ALLIANCE_PASSIVE, true, Player(9) )
call SetPlayerAllianceBJ( Player(3), ALLIANCE_PASSIVE, true, Player(10) )
call SetPlayerAllianceBJ( Player(3), ALLIANCE_PASSIVE, true, Player(11) )
endfunction
//===========================================================================
function InitTrig_LilaFriend takes nothing returns nothing
set gg_trg_LilaFriend = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_LilaFriend, gg_rct_Arena )
call TriggerAddCondition( gg_trg_LilaFriend, Condition( function Trig_LilaFriend_Conditions ) )
call TriggerAddAction( gg_trg_LilaFriend, function Trig_LilaFriend_Actions )
endfunction
function Trig_GelbFriend_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetLeavingUnit()) == Player(4) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_GelbFriend_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(4), ALLIANCE_PASSIVE, true, Player(6) )
call SetPlayerAllianceBJ( Player(4), ALLIANCE_PASSIVE, true, Player(7) )
call SetPlayerAllianceBJ( Player(4), ALLIANCE_PASSIVE, true, Player(8) )
call SetPlayerAllianceBJ( Player(4), ALLIANCE_PASSIVE, true, Player(9) )
call SetPlayerAllianceBJ( Player(4), ALLIANCE_PASSIVE, true, Player(10) )
call SetPlayerAllianceBJ( Player(4), ALLIANCE_PASSIVE, true, Player(11) )
endfunction
//===========================================================================
function InitTrig_GelbFriend takes nothing returns nothing
set gg_trg_GelbFriend = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_GelbFriend, gg_rct_Arena )
call TriggerAddCondition( gg_trg_GelbFriend, Condition( function Trig_GelbFriend_Conditions ) )
call TriggerAddAction( gg_trg_GelbFriend, function Trig_GelbFriend_Actions )
endfunction
function Trig_OrangeFriend_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetLeavingUnit()) == Player(5) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_OrangeFriend_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(5), ALLIANCE_PASSIVE, true, Player(6) )
call SetPlayerAllianceBJ( Player(5), ALLIANCE_PASSIVE, true, Player(7) )
call SetPlayerAllianceBJ( Player(5), ALLIANCE_PASSIVE, true, Player(8) )
call SetPlayerAllianceBJ( Player(5), ALLIANCE_PASSIVE, true, Player(9) )
call SetPlayerAllianceBJ( Player(5), ALLIANCE_PASSIVE, true, Player(10) )
call SetPlayerAllianceBJ( Player(5), ALLIANCE_PASSIVE, true, Player(11) )
endfunction
//===========================================================================
function InitTrig_OrangeFriend takes nothing returns nothing
set gg_trg_OrangeFriend = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_OrangeFriend, gg_rct_Arena )
call TriggerAddCondition( gg_trg_OrangeFriend, Condition( function Trig_OrangeFriend_Conditions ) )
call TriggerAddAction( gg_trg_OrangeFriend, function Trig_OrangeFriend_Actions )
endfunction
function Trig_GreenFriend_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetLeavingUnit()) == Player(6) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_GreenFriend_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(6), ALLIANCE_PASSIVE, true, Player(0) )
call SetPlayerAllianceBJ( Player(6), ALLIANCE_PASSIVE, true, Player(1) )
call SetPlayerAllianceBJ( Player(6), ALLIANCE_PASSIVE, true, Player(2) )
call SetPlayerAllianceBJ( Player(6), ALLIANCE_PASSIVE, true, Player(3) )
call SetPlayerAllianceBJ( Player(6), ALLIANCE_PASSIVE, true, Player(4) )
call SetPlayerAllianceBJ( Player(6), ALLIANCE_PASSIVE, true, Player(5) )
endfunction
//===========================================================================
function InitTrig_GreenFriend takes nothing returns nothing
set gg_trg_GreenFriend = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_GreenFriend, gg_rct_Arena )
call TriggerAddCondition( gg_trg_GreenFriend, Condition( function Trig_GreenFriend_Conditions ) )
call TriggerAddAction( gg_trg_GreenFriend, function Trig_GreenFriend_Actions )
endfunction
function Trig_RosaFriend_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetLeavingUnit()) == Player(7) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_RosaFriend_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(7), ALLIANCE_PASSIVE, true, Player(0) )
call SetPlayerAllianceBJ( Player(7), ALLIANCE_PASSIVE, true, Player(1) )
call SetPlayerAllianceBJ( Player(7), ALLIANCE_PASSIVE, true, Player(2) )
call SetPlayerAllianceBJ( Player(7), ALLIANCE_PASSIVE, true, Player(3) )
call SetPlayerAllianceBJ( Player(7), ALLIANCE_PASSIVE, true, Player(4) )
call SetPlayerAllianceBJ( Player(7), ALLIANCE_PASSIVE, true, Player(5) )
endfunction
//===========================================================================
function InitTrig_RosaFriend takes nothing returns nothing
set gg_trg_RosaFriend = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_RosaFriend, gg_rct_Arena )
call TriggerAddCondition( gg_trg_RosaFriend, Condition( function Trig_RosaFriend_Conditions ) )
call TriggerAddAction( gg_trg_RosaFriend, function Trig_RosaFriend_Actions )
endfunction
function Trig_GreyFriend_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetLeavingUnit()) == Player(8) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_GreyFriend_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(8), ALLIANCE_PASSIVE, true, Player(0) )
call SetPlayerAllianceBJ( Player(8), ALLIANCE_PASSIVE, true, Player(1) )
call SetPlayerAllianceBJ( Player(8), ALLIANCE_PASSIVE, true, Player(2) )
call SetPlayerAllianceBJ( Player(8), ALLIANCE_PASSIVE, true, Player(3) )
call SetPlayerAllianceBJ( Player(8), ALLIANCE_PASSIVE, true, Player(4) )
call SetPlayerAllianceBJ( Player(8), ALLIANCE_PASSIVE, true, Player(5) )
endfunction
//===========================================================================
function InitTrig_GreyFriend takes nothing returns nothing
set gg_trg_GreyFriend = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_GreyFriend, gg_rct_Arena )
call TriggerAddCondition( gg_trg_GreyFriend, Condition( function Trig_GreyFriend_Conditions ) )
call TriggerAddAction( gg_trg_GreyFriend, function Trig_GreyFriend_Actions )
endfunction
function Trig_LightBlueFriend_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetLeavingUnit()) == Player(9) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_LightBlueFriend_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(9), ALLIANCE_PASSIVE, true, Player(0) )
call SetPlayerAllianceBJ( Player(9), ALLIANCE_PASSIVE, true, Player(1) )
call SetPlayerAllianceBJ( Player(9), ALLIANCE_PASSIVE, true, Player(2) )
call SetPlayerAllianceBJ( Player(9), ALLIANCE_PASSIVE, true, Player(3) )
call SetPlayerAllianceBJ( Player(9), ALLIANCE_PASSIVE, true, Player(4) )
call SetPlayerAllianceBJ( Player(9), ALLIANCE_PASSIVE, true, Player(5) )
endfunction
//===========================================================================
function InitTrig_LightBlueFriend takes nothing returns nothing
set gg_trg_LightBlueFriend = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_LightBlueFriend, gg_rct_Arena )
call TriggerAddCondition( gg_trg_LightBlueFriend, Condition( function Trig_LightBlueFriend_Conditions ) )
call TriggerAddAction( gg_trg_LightBlueFriend, function Trig_LightBlueFriend_Actions )
endfunction
function Trig_DarkGreenFriend_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetLeavingUnit()) == Player(10) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_DarkGreenFriend_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(10), ALLIANCE_PASSIVE, true, Player(0) )
call SetPlayerAllianceBJ( Player(10), ALLIANCE_PASSIVE, true, Player(1) )
call SetPlayerAllianceBJ( Player(10), ALLIANCE_PASSIVE, true, Player(2) )
call SetPlayerAllianceBJ( Player(10), ALLIANCE_PASSIVE, true, Player(3) )
call SetPlayerAllianceBJ( Player(10), ALLIANCE_PASSIVE, true, Player(4) )
call SetPlayerAllianceBJ( Player(10), ALLIANCE_PASSIVE, true, Player(5) )
endfunction
//===========================================================================
function InitTrig_DarkGreenFriend takes nothing returns nothing
set gg_trg_DarkGreenFriend = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_DarkGreenFriend, gg_rct_Arena )
call TriggerAddCondition( gg_trg_DarkGreenFriend, Condition( function Trig_DarkGreenFriend_Conditions ) )
call TriggerAddAction( gg_trg_DarkGreenFriend, function Trig_DarkGreenFriend_Actions )
endfunction
function Trig_BrownFriend_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetLeavingUnit()) == Player(11) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_BrownFriend_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(11), ALLIANCE_PASSIVE, true, Player(0) )
call SetPlayerAllianceBJ( Player(11), ALLIANCE_PASSIVE, true, Player(1) )
call SetPlayerAllianceBJ( Player(11), ALLIANCE_PASSIVE, true, Player(2) )
call SetPlayerAllianceBJ( Player(11), ALLIANCE_PASSIVE, true, Player(3) )
call SetPlayerAllianceBJ( Player(11), ALLIANCE_PASSIVE, true, Player(4) )
call SetPlayerAllianceBJ( Player(11), ALLIANCE_PASSIVE, true, Player(5) )
endfunction
//===========================================================================
function InitTrig_BrownFriend takes nothing returns nothing
set gg_trg_BrownFriend = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_BrownFriend, gg_rct_Arena )
call TriggerAddCondition( gg_trg_BrownFriend, Condition( function Trig_BrownFriend_Conditions ) )
call TriggerAddAction( gg_trg_BrownFriend, function Trig_BrownFriend_Actions )
endfunction
function Trig_RedEnemy_Kopieren_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(0) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_RedEnemy_Kopieren_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(0), ALLIANCE_PASSIVE, false, Player(6) )
call SetPlayerAllianceBJ( Player(0), ALLIANCE_PASSIVE, false, Player(7) )
call SetPlayerAllianceBJ( Player(0), ALLIANCE_PASSIVE, false, Player(8) )
call SetPlayerAllianceBJ( Player(0), ALLIANCE_PASSIVE, false, Player(9) )
call SetPlayerAllianceBJ( Player(0), ALLIANCE_PASSIVE, false, Player(10) )
call SetPlayerAllianceBJ( Player(0), ALLIANCE_PASSIVE, false, Player(11) )
endfunction
//===========================================================================
function InitTrig_RedEnemy_Kopieren takes nothing returns nothing
set gg_trg_RedEnemy_Kopieren = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_RedEnemy_Kopieren, gg_rct_DuelArena )
call TriggerAddCondition( gg_trg_RedEnemy_Kopieren, Condition( function Trig_RedEnemy_Kopieren_Conditions ) )
call TriggerAddAction( gg_trg_RedEnemy_Kopieren, function Trig_RedEnemy_Kopieren_Actions )
endfunction
function Trig_BlueEnemy_Kopieren_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(1) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_BlueEnemy_Kopieren_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(1), ALLIANCE_PASSIVE, false, Player(6) )
call SetPlayerAllianceBJ( Player(1), ALLIANCE_PASSIVE, false, Player(7) )
call SetPlayerAllianceBJ( Player(1), ALLIANCE_PASSIVE, false, Player(8) )
call SetPlayerAllianceBJ( Player(1), ALLIANCE_PASSIVE, false, Player(9) )
call SetPlayerAllianceBJ( Player(1), ALLIANCE_PASSIVE, false, Player(10) )
call SetPlayerAllianceBJ( Player(1), ALLIANCE_PASSIVE, false, Player(11) )
endfunction
//===========================================================================
function InitTrig_BlueEnemy_Kopieren takes nothing returns nothing
set gg_trg_BlueEnemy_Kopieren = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_BlueEnemy_Kopieren, gg_rct_DuelArena )
call TriggerAddCondition( gg_trg_BlueEnemy_Kopieren, Condition( function Trig_BlueEnemy_Kopieren_Conditions ) )
call TriggerAddAction( gg_trg_BlueEnemy_Kopieren, function Trig_BlueEnemy_Kopieren_Actions )
endfunction
function Trig_BlueGreyEnemy_Kopieren_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(2) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_BlueGreyEnemy_Kopieren_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(2), ALLIANCE_PASSIVE, false, Player(6) )
call SetPlayerAllianceBJ( Player(2), ALLIANCE_PASSIVE, false, Player(7) )
call SetPlayerAllianceBJ( Player(2), ALLIANCE_PASSIVE, false, Player(8) )
call SetPlayerAllianceBJ( Player(2), ALLIANCE_PASSIVE, false, Player(9) )
call SetPlayerAllianceBJ( Player(2), ALLIANCE_PASSIVE, false, Player(10) )
call SetPlayerAllianceBJ( Player(2), ALLIANCE_PASSIVE, false, Player(11) )
endfunction
//===========================================================================
function InitTrig_BlueGreyEnemy_Kopieren takes nothing returns nothing
set gg_trg_BlueGreyEnemy_Kopieren = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_BlueGreyEnemy_Kopieren, gg_rct_DuelArena )
call TriggerAddCondition( gg_trg_BlueGreyEnemy_Kopieren, Condition( function Trig_BlueGreyEnemy_Kopieren_Conditions ) )
call TriggerAddAction( gg_trg_BlueGreyEnemy_Kopieren, function Trig_BlueGreyEnemy_Kopieren_Actions )
endfunction
function Trig_LilaEnemy_Kopieren_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(3) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_LilaEnemy_Kopieren_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(3), ALLIANCE_PASSIVE, false, Player(6) )
call SetPlayerAllianceBJ( Player(3), ALLIANCE_PASSIVE, false, Player(7) )
call SetPlayerAllianceBJ( Player(3), ALLIANCE_PASSIVE, false, Player(8) )
call SetPlayerAllianceBJ( Player(3), ALLIANCE_PASSIVE, false, Player(9) )
call SetPlayerAllianceBJ( Player(3), ALLIANCE_PASSIVE, false, Player(10) )
call SetPlayerAllianceBJ( Player(3), ALLIANCE_PASSIVE, false, Player(11) )
endfunction
//===========================================================================
function InitTrig_LilaEnemy_Kopieren takes nothing returns nothing
set gg_trg_LilaEnemy_Kopieren = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_LilaEnemy_Kopieren, gg_rct_DuelArena )
call TriggerAddCondition( gg_trg_LilaEnemy_Kopieren, Condition( function Trig_LilaEnemy_Kopieren_Conditions ) )
call TriggerAddAction( gg_trg_LilaEnemy_Kopieren, function Trig_LilaEnemy_Kopieren_Actions )
endfunction
function Trig_GelbEnemy_Kopieren_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(4) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_GelbEnemy_Kopieren_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(4), ALLIANCE_PASSIVE, false, Player(6) )
call SetPlayerAllianceBJ( Player(4), ALLIANCE_PASSIVE, false, Player(7) )
call SetPlayerAllianceBJ( Player(4), ALLIANCE_PASSIVE, false, Player(8) )
call SetPlayerAllianceBJ( Player(4), ALLIANCE_PASSIVE, false, Player(9) )
call SetPlayerAllianceBJ( Player(4), ALLIANCE_PASSIVE, false, Player(10) )
call SetPlayerAllianceBJ( Player(4), ALLIANCE_PASSIVE, false, Player(11) )
endfunction
//===========================================================================
function InitTrig_GelbEnemy_Kopieren takes nothing returns nothing
set gg_trg_GelbEnemy_Kopieren = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_GelbEnemy_Kopieren, gg_rct_DuelArena )
call TriggerAddCondition( gg_trg_GelbEnemy_Kopieren, Condition( function Trig_GelbEnemy_Kopieren_Conditions ) )
call TriggerAddAction( gg_trg_GelbEnemy_Kopieren, function Trig_GelbEnemy_Kopieren_Actions )
endfunction
function Trig_OrangeEnemy_Kopieren_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(5) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_OrangeEnemy_Kopieren_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(5), ALLIANCE_PASSIVE, false, Player(6) )
call SetPlayerAllianceBJ( Player(5), ALLIANCE_PASSIVE, false, Player(7) )
call SetPlayerAllianceBJ( Player(5), ALLIANCE_PASSIVE, false, Player(8) )
call SetPlayerAllianceBJ( Player(5), ALLIANCE_PASSIVE, false, Player(9) )
call SetPlayerAllianceBJ( Player(5), ALLIANCE_PASSIVE, false, Player(10) )
call SetPlayerAllianceBJ( Player(5), ALLIANCE_PASSIVE, false, Player(11) )
endfunction
//===========================================================================
function InitTrig_OrangeEnemy_Kopieren takes nothing returns nothing
set gg_trg_OrangeEnemy_Kopieren = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_OrangeEnemy_Kopieren, gg_rct_DuelArena )
call TriggerAddCondition( gg_trg_OrangeEnemy_Kopieren, Condition( function Trig_OrangeEnemy_Kopieren_Conditions ) )
call TriggerAddAction( gg_trg_OrangeEnemy_Kopieren, function Trig_OrangeEnemy_Kopieren_Actions )
endfunction
function Trig_GreenEnemy_Kopieren_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(6) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_GreenEnemy_Kopieren_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(6), ALLIANCE_PASSIVE, false, Player(0) )
call SetPlayerAllianceBJ( Player(6), ALLIANCE_PASSIVE, false, Player(1) )
call SetPlayerAllianceBJ( Player(6), ALLIANCE_PASSIVE, false, Player(2) )
call SetPlayerAllianceBJ( Player(6), ALLIANCE_PASSIVE, false, Player(3) )
call SetPlayerAllianceBJ( Player(6), ALLIANCE_PASSIVE, false, Player(4) )
call SetPlayerAllianceBJ( Player(6), ALLIANCE_PASSIVE, false, Player(5) )
endfunction
//===========================================================================
function InitTrig_GreenEnemy_Kopieren takes nothing returns nothing
set gg_trg_GreenEnemy_Kopieren = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_GreenEnemy_Kopieren, gg_rct_DuelArena )
call TriggerAddCondition( gg_trg_GreenEnemy_Kopieren, Condition( function Trig_GreenEnemy_Kopieren_Conditions ) )
call TriggerAddAction( gg_trg_GreenEnemy_Kopieren, function Trig_GreenEnemy_Kopieren_Actions )
endfunction
function Trig_RosaEnemy_Kopieren_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(7) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_RosaEnemy_Kopieren_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(7), ALLIANCE_PASSIVE, false, Player(0) )
call SetPlayerAllianceBJ( Player(7), ALLIANCE_PASSIVE, false, Player(1) )
call SetPlayerAllianceBJ( Player(7), ALLIANCE_PASSIVE, false, Player(2) )
call SetPlayerAllianceBJ( Player(7), ALLIANCE_PASSIVE, false, Player(3) )
call SetPlayerAllianceBJ( Player(7), ALLIANCE_PASSIVE, false, Player(4) )
call SetPlayerAllianceBJ( Player(7), ALLIANCE_PASSIVE, false, Player(5) )
endfunction
//===========================================================================
function InitTrig_RosaEnemy_Kopieren takes nothing returns nothing
set gg_trg_RosaEnemy_Kopieren = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_RosaEnemy_Kopieren, gg_rct_DuelArena )
call TriggerAddCondition( gg_trg_RosaEnemy_Kopieren, Condition( function Trig_RosaEnemy_Kopieren_Conditions ) )
call TriggerAddAction( gg_trg_RosaEnemy_Kopieren, function Trig_RosaEnemy_Kopieren_Actions )
endfunction
function Trig_GreyEnemy_Kopieren_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(8) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_GreyEnemy_Kopieren_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(8), ALLIANCE_PASSIVE, false, Player(0) )
call SetPlayerAllianceBJ( Player(8), ALLIANCE_PASSIVE, false, Player(1) )
call SetPlayerAllianceBJ( Player(8), ALLIANCE_PASSIVE, false, Player(2) )
call SetPlayerAllianceBJ( Player(8), ALLIANCE_PASSIVE, false, Player(3) )
call SetPlayerAllianceBJ( Player(8), ALLIANCE_PASSIVE, false, Player(4) )
call SetPlayerAllianceBJ( Player(8), ALLIANCE_PASSIVE, false, Player(5) )
endfunction
//===========================================================================
function InitTrig_GreyEnemy_Kopieren takes nothing returns nothing
set gg_trg_GreyEnemy_Kopieren = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_GreyEnemy_Kopieren, gg_rct_DuelArena )
call TriggerAddCondition( gg_trg_GreyEnemy_Kopieren, Condition( function Trig_GreyEnemy_Kopieren_Conditions ) )
call TriggerAddAction( gg_trg_GreyEnemy_Kopieren, function Trig_GreyEnemy_Kopieren_Actions )
endfunction
function Trig_LightBlueEnemy_Kopieren_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(9) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_LightBlueEnemy_Kopieren_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(9), ALLIANCE_PASSIVE, false, Player(0) )
call SetPlayerAllianceBJ( Player(9), ALLIANCE_PASSIVE, false, Player(1) )
call SetPlayerAllianceBJ( Player(9), ALLIANCE_PASSIVE, false, Player(2) )
call SetPlayerAllianceBJ( Player(9), ALLIANCE_PASSIVE, false, Player(3) )
call SetPlayerAllianceBJ( Player(9), ALLIANCE_PASSIVE, false, Player(4) )
call SetPlayerAllianceBJ( Player(9), ALLIANCE_PASSIVE, false, Player(5) )
endfunction
//===========================================================================
function InitTrig_LightBlueEnemy_Kopieren takes nothing returns nothing
set gg_trg_LightBlueEnemy_Kopieren = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_LightBlueEnemy_Kopieren, gg_rct_DuelArena )
call TriggerAddCondition( gg_trg_LightBlueEnemy_Kopieren, Condition( function Trig_LightBlueEnemy_Kopieren_Conditions ) )
call TriggerAddAction( gg_trg_LightBlueEnemy_Kopieren, function Trig_LightBlueEnemy_Kopieren_Actions )
endfunction
function Trig_DarkGreenEnemy_Kopieren_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(10) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_DarkGreenEnemy_Kopieren_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(10), ALLIANCE_PASSIVE, false, Player(0) )
call SetPlayerAllianceBJ( Player(10), ALLIANCE_PASSIVE, false, Player(1) )
call SetPlayerAllianceBJ( Player(10), ALLIANCE_PASSIVE, false, Player(2) )
call SetPlayerAllianceBJ( Player(10), ALLIANCE_PASSIVE, false, Player(3) )
call SetPlayerAllianceBJ( Player(10), ALLIANCE_PASSIVE, false, Player(4) )
call SetPlayerAllianceBJ( Player(10), ALLIANCE_PASSIVE, false, Player(5) )
endfunction
//===========================================================================
function InitTrig_DarkGreenEnemy_Kopieren takes nothing returns nothing
set gg_trg_DarkGreenEnemy_Kopieren = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_DarkGreenEnemy_Kopieren, gg_rct_DuelArena )
call TriggerAddCondition( gg_trg_DarkGreenEnemy_Kopieren, Condition( function Trig_DarkGreenEnemy_Kopieren_Conditions ) )
call TriggerAddAction( gg_trg_DarkGreenEnemy_Kopieren, function Trig_DarkGreenEnemy_Kopieren_Actions )
endfunction
function Trig_BrownEnemy_Kopieren_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(11) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_BrownEnemy_Kopieren_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(11), ALLIANCE_PASSIVE, false, Player(0) )
call SetPlayerAllianceBJ( Player(11), ALLIANCE_PASSIVE, false, Player(1) )
call SetPlayerAllianceBJ( Player(11), ALLIANCE_PASSIVE, false, Player(2) )
call SetPlayerAllianceBJ( Player(11), ALLIANCE_PASSIVE, false, Player(3) )
call SetPlayerAllianceBJ( Player(11), ALLIANCE_PASSIVE, false, Player(4) )
call SetPlayerAllianceBJ( Player(11), ALLIANCE_PASSIVE, false, Player(5) )
endfunction
//===========================================================================
function InitTrig_BrownEnemy_Kopieren takes nothing returns nothing
set gg_trg_BrownEnemy_Kopieren = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_BrownEnemy_Kopieren, gg_rct_DuelArena )
call TriggerAddCondition( gg_trg_BrownEnemy_Kopieren, Condition( function Trig_BrownEnemy_Kopieren_Conditions ) )
call TriggerAddAction( gg_trg_BrownEnemy_Kopieren, function Trig_BrownEnemy_Kopieren_Actions )
endfunction
function Trig_RedFriend_Kopieren_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetLeavingUnit()) == Player(0) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_RedFriend_Kopieren_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(0), ALLIANCE_PASSIVE, true, Player(6) )
call SetPlayerAllianceBJ( Player(0), ALLIANCE_PASSIVE, true, Player(7) )
call SetPlayerAllianceBJ( Player(0), ALLIANCE_PASSIVE, true, Player(8) )
call SetPlayerAllianceBJ( Player(0), ALLIANCE_PASSIVE, true, Player(9) )
call SetPlayerAllianceBJ( Player(0), ALLIANCE_PASSIVE, true, Player(10) )
call SetPlayerAllianceBJ( Player(0), ALLIANCE_PASSIVE, true, Player(11) )
endfunction
//===========================================================================
function InitTrig_RedFriend_Kopieren takes nothing returns nothing
set gg_trg_RedFriend_Kopieren = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_RedFriend_Kopieren, gg_rct_DuelArena )
call TriggerAddCondition( gg_trg_RedFriend_Kopieren, Condition( function Trig_RedFriend_Kopieren_Conditions ) )
call TriggerAddAction( gg_trg_RedFriend_Kopieren, function Trig_RedFriend_Kopieren_Actions )
endfunction
function Trig_BlueFriend_Kopieren_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetLeavingUnit()) == Player(1) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_BlueFriend_Kopieren_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(1), ALLIANCE_PASSIVE, true, Player(6) )
call SetPlayerAllianceBJ( Player(1), ALLIANCE_PASSIVE, true, Player(7) )
call SetPlayerAllianceBJ( Player(1), ALLIANCE_PASSIVE, true, Player(8) )
call SetPlayerAllianceBJ( Player(1), ALLIANCE_PASSIVE, true, Player(9) )
call SetPlayerAllianceBJ( Player(1), ALLIANCE_PASSIVE, true, Player(10) )
call SetPlayerAllianceBJ( Player(1), ALLIANCE_PASSIVE, true, Player(11) )
endfunction
//===========================================================================
function InitTrig_BlueFriend_Kopieren takes nothing returns nothing
set gg_trg_BlueFriend_Kopieren = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_BlueFriend_Kopieren, gg_rct_DuelArena )
call TriggerAddCondition( gg_trg_BlueFriend_Kopieren, Condition( function Trig_BlueFriend_Kopieren_Conditions ) )
call TriggerAddAction( gg_trg_BlueFriend_Kopieren, function Trig_BlueFriend_Kopieren_Actions )
endfunction
function Trig_BlueGreyFriend_Kopieren_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetLeavingUnit()) == Player(2) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_BlueGreyFriend_Kopieren_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(2), ALLIANCE_PASSIVE, true, Player(6) )
call SetPlayerAllianceBJ( Player(2), ALLIANCE_PASSIVE, true, Player(7) )
call SetPlayerAllianceBJ( Player(2), ALLIANCE_PASSIVE, true, Player(8) )
call SetPlayerAllianceBJ( Player(2), ALLIANCE_PASSIVE, true, Player(9) )
call SetPlayerAllianceBJ( Player(2), ALLIANCE_PASSIVE, true, Player(10) )
call SetPlayerAllianceBJ( Player(2), ALLIANCE_PASSIVE, true, Player(11) )
endfunction
//===========================================================================
function InitTrig_BlueGreyFriend_Kopieren takes nothing returns nothing
set gg_trg_BlueGreyFriend_Kopieren = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_BlueGreyFriend_Kopieren, gg_rct_DuelArena )
call TriggerAddCondition( gg_trg_BlueGreyFriend_Kopieren, Condition( function Trig_BlueGreyFriend_Kopieren_Conditions ) )
call TriggerAddAction( gg_trg_BlueGreyFriend_Kopieren, function Trig_BlueGreyFriend_Kopieren_Actions )
endfunction
function Trig_LilaFriend_Kopieren_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetLeavingUnit()) == Player(3) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_LilaFriend_Kopieren_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(3), ALLIANCE_PASSIVE, true, Player(6) )
call SetPlayerAllianceBJ( Player(3), ALLIANCE_PASSIVE, true, Player(7) )
call SetPlayerAllianceBJ( Player(3), ALLIANCE_PASSIVE, true, Player(8) )
call SetPlayerAllianceBJ( Player(3), ALLIANCE_PASSIVE, true, Player(9) )
call SetPlayerAllianceBJ( Player(3), ALLIANCE_PASSIVE, true, Player(10) )
call SetPlayerAllianceBJ( Player(3), ALLIANCE_PASSIVE, true, Player(11) )
endfunction
//===========================================================================
function InitTrig_LilaFriend_Kopieren takes nothing returns nothing
set gg_trg_LilaFriend_Kopieren = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_LilaFriend_Kopieren, gg_rct_DuelArena )
call TriggerAddCondition( gg_trg_LilaFriend_Kopieren, Condition( function Trig_LilaFriend_Kopieren_Conditions ) )
call TriggerAddAction( gg_trg_LilaFriend_Kopieren, function Trig_LilaFriend_Kopieren_Actions )
endfunction
function Trig_GelbFriend_Kopieren_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetLeavingUnit()) == Player(4) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_GelbFriend_Kopieren_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(4), ALLIANCE_PASSIVE, true, Player(6) )
call SetPlayerAllianceBJ( Player(4), ALLIANCE_PASSIVE, true, Player(7) )
call SetPlayerAllianceBJ( Player(4), ALLIANCE_PASSIVE, true, Player(8) )
call SetPlayerAllianceBJ( Player(4), ALLIANCE_PASSIVE, true, Player(9) )
call SetPlayerAllianceBJ( Player(4), ALLIANCE_PASSIVE, true, Player(10) )
call SetPlayerAllianceBJ( Player(4), ALLIANCE_PASSIVE, true, Player(11) )
endfunction
//===========================================================================
function InitTrig_GelbFriend_Kopieren takes nothing returns nothing
set gg_trg_GelbFriend_Kopieren = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_GelbFriend_Kopieren, gg_rct_DuelArena )
call TriggerAddCondition( gg_trg_GelbFriend_Kopieren, Condition( function Trig_GelbFriend_Kopieren_Conditions ) )
call TriggerAddAction( gg_trg_GelbFriend_Kopieren, function Trig_GelbFriend_Kopieren_Actions )
endfunction
function Trig_OrangeFriend_Kopieren_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetLeavingUnit()) == Player(5) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_OrangeFriend_Kopieren_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(5), ALLIANCE_PASSIVE, true, Player(6) )
call SetPlayerAllianceBJ( Player(5), ALLIANCE_PASSIVE, true, Player(7) )
call SetPlayerAllianceBJ( Player(5), ALLIANCE_PASSIVE, true, Player(8) )
call SetPlayerAllianceBJ( Player(5), ALLIANCE_PASSIVE, true, Player(9) )
call SetPlayerAllianceBJ( Player(5), ALLIANCE_PASSIVE, true, Player(10) )
call SetPlayerAllianceBJ( Player(5), ALLIANCE_PASSIVE, true, Player(11) )
endfunction
//===========================================================================
function InitTrig_OrangeFriend_Kopieren takes nothing returns nothing
set gg_trg_OrangeFriend_Kopieren = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_OrangeFriend_Kopieren, gg_rct_DuelArena )
call TriggerAddCondition( gg_trg_OrangeFriend_Kopieren, Condition( function Trig_OrangeFriend_Kopieren_Conditions ) )
call TriggerAddAction( gg_trg_OrangeFriend_Kopieren, function Trig_OrangeFriend_Kopieren_Actions )
endfunction
function Trig_GreenFriend_Kopieren_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetLeavingUnit()) == Player(6) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_GreenFriend_Kopieren_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(6), ALLIANCE_PASSIVE, true, Player(0) )
call SetPlayerAllianceBJ( Player(6), ALLIANCE_PASSIVE, true, Player(1) )
call SetPlayerAllianceBJ( Player(6), ALLIANCE_PASSIVE, true, Player(2) )
call SetPlayerAllianceBJ( Player(6), ALLIANCE_PASSIVE, true, Player(3) )
call SetPlayerAllianceBJ( Player(6), ALLIANCE_PASSIVE, true, Player(4) )
call SetPlayerAllianceBJ( Player(6), ALLIANCE_PASSIVE, true, Player(5) )
endfunction
//===========================================================================
function InitTrig_GreenFriend_Kopieren takes nothing returns nothing
set gg_trg_GreenFriend_Kopieren = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_GreenFriend_Kopieren, gg_rct_DuelArena )
call TriggerAddCondition( gg_trg_GreenFriend_Kopieren, Condition( function Trig_GreenFriend_Kopieren_Conditions ) )
call TriggerAddAction( gg_trg_GreenFriend_Kopieren, function Trig_GreenFriend_Kopieren_Actions )
endfunction
function Trig_RosaFriend_Kopieren_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetLeavingUnit()) == Player(7) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_RosaFriend_Kopieren_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(7), ALLIANCE_PASSIVE, true, Player(0) )
call SetPlayerAllianceBJ( Player(7), ALLIANCE_PASSIVE, true, Player(1) )
call SetPlayerAllianceBJ( Player(7), ALLIANCE_PASSIVE, true, Player(2) )
call SetPlayerAllianceBJ( Player(7), ALLIANCE_PASSIVE, true, Player(3) )
call SetPlayerAllianceBJ( Player(7), ALLIANCE_PASSIVE, true, Player(4) )
call SetPlayerAllianceBJ( Player(7), ALLIANCE_PASSIVE, true, Player(5) )
endfunction
//===========================================================================
function InitTrig_RosaFriend_Kopieren takes nothing returns nothing
set gg_trg_RosaFriend_Kopieren = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_RosaFriend_Kopieren, gg_rct_DuelArena )
call TriggerAddCondition( gg_trg_RosaFriend_Kopieren, Condition( function Trig_RosaFriend_Kopieren_Conditions ) )
call TriggerAddAction( gg_trg_RosaFriend_Kopieren, function Trig_RosaFriend_Kopieren_Actions )
endfunction
function Trig_GreyFriend_Kopieren_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetLeavingUnit()) == Player(8) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_GreyFriend_Kopieren_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(8), ALLIANCE_PASSIVE, true, Player(0) )
call SetPlayerAllianceBJ( Player(8), ALLIANCE_PASSIVE, true, Player(1) )
call SetPlayerAllianceBJ( Player(8), ALLIANCE_PASSIVE, true, Player(2) )
call SetPlayerAllianceBJ( Player(8), ALLIANCE_PASSIVE, true, Player(3) )
call SetPlayerAllianceBJ( Player(8), ALLIANCE_PASSIVE, true, Player(4) )
call SetPlayerAllianceBJ( Player(8), ALLIANCE_PASSIVE, true, Player(5) )
endfunction
//===========================================================================
function InitTrig_GreyFriend_Kopieren takes nothing returns nothing
set gg_trg_GreyFriend_Kopieren = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_GreyFriend_Kopieren, gg_rct_DuelArena )
call TriggerAddCondition( gg_trg_GreyFriend_Kopieren, Condition( function Trig_GreyFriend_Kopieren_Conditions ) )
call TriggerAddAction( gg_trg_GreyFriend_Kopieren, function Trig_GreyFriend_Kopieren_Actions )
endfunction
function Trig_LightBlueFriend_Kopieren_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetLeavingUnit()) == Player(9) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_LightBlueFriend_Kopieren_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(9), ALLIANCE_PASSIVE, true, Player(0) )
call SetPlayerAllianceBJ( Player(9), ALLIANCE_PASSIVE, true, Player(1) )
call SetPlayerAllianceBJ( Player(9), ALLIANCE_PASSIVE, true, Player(2) )
call SetPlayerAllianceBJ( Player(9), ALLIANCE_PASSIVE, true, Player(3) )
call SetPlayerAllianceBJ( Player(9), ALLIANCE_PASSIVE, true, Player(4) )
call SetPlayerAllianceBJ( Player(9), ALLIANCE_PASSIVE, true, Player(5) )
endfunction
//===========================================================================
function InitTrig_LightBlueFriend_Kopieren takes nothing returns nothing
set gg_trg_LightBlueFriend_Kopieren = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_LightBlueFriend_Kopieren, gg_rct_DuelArena )
call TriggerAddCondition( gg_trg_LightBlueFriend_Kopieren, Condition( function Trig_LightBlueFriend_Kopieren_Conditions ) )
call TriggerAddAction( gg_trg_LightBlueFriend_Kopieren, function Trig_LightBlueFriend_Kopieren_Actions )
endfunction
function Trig_DarkGreenFriend_Kopieren_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetLeavingUnit()) == Player(10) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_DarkGreenFriend_Kopieren_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(10), ALLIANCE_PASSIVE, true, Player(0) )
call SetPlayerAllianceBJ( Player(10), ALLIANCE_PASSIVE, true, Player(1) )
call SetPlayerAllianceBJ( Player(10), ALLIANCE_PASSIVE, true, Player(2) )
call SetPlayerAllianceBJ( Player(10), ALLIANCE_PASSIVE, true, Player(3) )
call SetPlayerAllianceBJ( Player(10), ALLIANCE_PASSIVE, true, Player(4) )
call SetPlayerAllianceBJ( Player(10), ALLIANCE_PASSIVE, true, Player(5) )
endfunction
//===========================================================================
function InitTrig_DarkGreenFriend_Kopieren takes nothing returns nothing
set gg_trg_DarkGreenFriend_Kopieren = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_DarkGreenFriend_Kopieren, gg_rct_DuelArena )
call TriggerAddCondition( gg_trg_DarkGreenFriend_Kopieren, Condition( function Trig_DarkGreenFriend_Kopieren_Conditions ) )
call TriggerAddAction( gg_trg_DarkGreenFriend_Kopieren, function Trig_DarkGreenFriend_Kopieren_Actions )
endfunction
function Trig_BrownFriend_Kopieren_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetLeavingUnit()) == Player(11) ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_BrownFriend_Kopieren_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(11), ALLIANCE_PASSIVE, true, Player(0) )
call SetPlayerAllianceBJ( Player(11), ALLIANCE_PASSIVE, true, Player(1) )
call SetPlayerAllianceBJ( Player(11), ALLIANCE_PASSIVE, true, Player(2) )
call SetPlayerAllianceBJ( Player(11), ALLIANCE_PASSIVE, true, Player(3) )
call SetPlayerAllianceBJ( Player(11), ALLIANCE_PASSIVE, true, Player(4) )
call SetPlayerAllianceBJ( Player(11), ALLIANCE_PASSIVE, true, Player(5) )
endfunction
//===========================================================================
function InitTrig_BrownFriend_Kopieren takes nothing returns nothing
set gg_trg_BrownFriend_Kopieren = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_BrownFriend_Kopieren, gg_rct_DuelArena )
call TriggerAddCondition( gg_trg_BrownFriend_Kopieren, Condition( function Trig_BrownFriend_Kopieren_Conditions ) )
call TriggerAddAction( gg_trg_BrownFriend_Kopieren, function Trig_BrownFriend_Kopieren_Actions )
endfunction
function Trig_Select_Summoner_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'ewsp' ) ) then
return false
endif
return true
endfunction
function Trig_Select_Summoner_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'UC14', GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Arena), bj_UNIT_FACING )
call TriggerExecute( gg_trg_Setup_Hero )
endfunction
//===========================================================================
function InitTrig_Select_Summoner takes nothing returns nothing
set gg_trg_Select_Summoner = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Select_Summoner, gg_rct_Necromancer )
call TriggerAddCondition( gg_trg_Select_Summoner, Condition( function Trig_Select_Summoner_Conditions ) )
call TriggerAddAction( gg_trg_Select_Summoner, function Trig_Select_Summoner_Actions )
endfunction
function Trig_Select_Swordsman_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'ewsp' ) ) then
return false
endif
return true
endfunction
function Trig_Select_Swordsman_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'Harf', GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Arena), bj_UNIT_FACING )
call TriggerExecute( gg_trg_Setup_Hero )
endfunction
//===========================================================================
function InitTrig_Select_Swordsman takes nothing returns nothing
set gg_trg_Select_Swordsman = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Select_Swordsman, gg_rct_Paladin_epee )
call TriggerAddCondition( gg_trg_Select_Swordsman, Condition( function Trig_Select_Swordsman_Conditions ) )
call TriggerAddAction( gg_trg_Select_Swordsman, function Trig_Select_Swordsman_Actions )
endfunction
function Trig_Select_Assassin_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'ewsp' ) ) then
return false
endif
return true
endfunction
function Trig_Select_Assassin_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'Eill', GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Arena), bj_UNIT_FACING )
call TriggerExecute( gg_trg_Setup_Hero )
endfunction
//===========================================================================
function InitTrig_Select_Assassin takes nothing returns nothing
set gg_trg_Select_Assassin = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Select_Assassin, gg_rct_Assassin )
call TriggerAddCondition( gg_trg_Select_Assassin, Condition( function Trig_Select_Assassin_Conditions ) )
call TriggerAddAction( gg_trg_Select_Assassin, function Trig_Select_Assassin_Actions )
endfunction
function Trig_Select_Amazon_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'ewsp' ) ) then
return false
endif
return true
endfunction
function Trig_Select_Amazon_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'Etyr', GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Arena), bj_UNIT_FACING )
call TriggerExecute( gg_trg_Setup_Hero )
endfunction
//===========================================================================
function InitTrig_Select_Amazon takes nothing returns nothing
set gg_trg_Select_Amazon = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Select_Amazon, gg_rct_Amazon )
call TriggerAddCondition( gg_trg_Select_Amazon, Condition( function Trig_Select_Amazon_Conditions ) )
call TriggerAddAction( gg_trg_Select_Amazon, function Trig_Select_Amazon_Actions )
endfunction
function Trig_Select_Elder_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'ewsp' ) ) then
return false
endif
return true
endfunction
function Trig_Select_Elder_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'EC12', GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Arena), bj_UNIT_FACING )
call TriggerExecute( gg_trg_Setup_Hero )
endfunction
//===========================================================================
function InitTrig_Select_Elder takes nothing returns nothing
set gg_trg_Select_Elder = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Select_Elder, gg_rct_Druid )
call TriggerAddCondition( gg_trg_Select_Elder, Condition( function Trig_Select_Elder_Conditions ) )
call TriggerAddAction( gg_trg_Select_Elder, function Trig_Select_Elder_Actions )
endfunction
function Trig_Select_BladeMaster_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'ewsp' ) ) then
return false
endif
return true
endfunction
function Trig_Select_BladeMaster_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'Obla', GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Arena), bj_UNIT_FACING )
call TriggerExecute( gg_trg_Setup_Hero )
endfunction
//===========================================================================
function InitTrig_Select_BladeMaster takes nothing returns nothing
set gg_trg_Select_BladeMaster = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Select_BladeMaster, gg_rct_Barbare_blademaster )
call TriggerAddCondition( gg_trg_Select_BladeMaster, Condition( function Trig_Select_BladeMaster_Conditions ) )
call TriggerAddAction( gg_trg_Select_BladeMaster, function Trig_Select_BladeMaster_Actions )
endfunction
function Trig_Select_Sorc_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'ewsp' ) ) then
return false
endif
return true
endfunction
function Trig_Select_Sorc_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'Hjai', GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Arena), bj_UNIT_FACING )
call TriggerExecute( gg_trg_Setup_Hero )
endfunction
//===========================================================================
function InitTrig_Select_Sorc takes nothing returns nothing
set gg_trg_Select_Sorc = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Select_Sorc, gg_rct_premiere_sorc_test1 )
call TriggerAddCondition( gg_trg_Select_Sorc, Condition( function Trig_Select_Sorc_Conditions ) )
call TriggerAddAction( gg_trg_Select_Sorc, function Trig_Select_Sorc_Actions )
endfunction
function Trig_Setup_Hero_Actions takes nothing returns nothing
set udg_Heroes[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))] = GetLastCreatedUnit()
call RemoveUnit( GetTriggerUnit() )
call DisplayTextToForce( GetPlayersAll(), ( ( "Player " + GetPlayerName(GetOwningPlayer(GetTriggerUnit())) ) + ( ( ( " Has Selected the " + GetUnitName(GetLastCreatedUnit()) ) + " And Entered The Arena" ) + " " ) ) )
call PlaySoundBJ( gg_snd_BigCheer )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Arena), 1.00 )
endfunction
//===========================================================================
function InitTrig_Setup_Hero takes nothing returns nothing
set gg_trg_Setup_Hero = CreateTrigger( )
call TriggerAddAction( gg_trg_Setup_Hero, function Trig_Setup_Hero_Actions )
endfunction
function Trig_Select_diablo_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'UC50', GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_act4_commence_riviere_feu), bj_UNIT_FACING )
call TriggerExecute( gg_trg_Setup_Hero )
endfunction
//===========================================================================
function InitTrig_Select_diablo takes nothing returns nothing
set gg_trg_Select_diablo = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Select_diablo, gg_rct_Mon_gros_demon )
call TriggerAddAction( gg_trg_Select_diablo, function Trig_Select_diablo_Actions )
endfunction
function Trig_Select_Act5_tatalic_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'HC07', GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Act5_commence_arreat_mont), bj_UNIT_FACING )
call TriggerExecute( gg_trg_Setup_Hero )
endfunction
//===========================================================================
function InitTrig_Select_Act5_tatalic takes nothing returns nothing
set gg_trg_Select_Act5_tatalic = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Select_Act5_tatalic, gg_rct_Talic_epe_boucli )
call TriggerAddAction( gg_trg_Select_Act5_tatalic, function Trig_Select_Act5_tatalic_Actions )
endfunction
function Trig_Select_alcolic_LOL_Actions takes nothing returns nothing
call TriggerExecute( gg_trg_Setup_Hero )
endfunction
//===========================================================================
function InitTrig_Select_alcolic_LOL takes nothing returns nothing
set gg_trg_Select_alcolic_LOL = CreateTrigger( )
call DisableTrigger( gg_trg_Select_alcolic_LOL )
call TriggerAddAction( gg_trg_Select_alcolic_LOL, function Trig_Select_alcolic_LOL_Actions )
endfunction
function Trig_Select_andariel_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'EC51', GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_act1_commence_cimetiere), bj_UNIT_FACING )
call TriggerExecute( gg_trg_Setup_Hero )
endfunction
//===========================================================================
function InitTrig_Select_andariel takes nothing returns nothing
set gg_trg_Select_andariel = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Select_andariel, gg_rct_Andariel )
call TriggerAddAction( gg_trg_Select_andariel, function Trig_Select_andariel_Actions )
endfunction
function Trig_Select_mon_gros_baba_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'NC41', GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Act5_commence_arreat_mont), bj_UNIT_FACING )
call TriggerExecute( gg_trg_Setup_Hero )
endfunction
//===========================================================================
function InitTrig_Select_mon_gros_baba takes nothing returns nothing
set gg_trg_Select_mon_gros_baba = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Select_mon_gros_baba, gg_rct_ba_mon_gros_baba )
call TriggerAddAction( gg_trg_Select_mon_gros_baba, function Trig_Select_mon_gros_baba_Actions )
endfunction
function Trig_Select_me_le_fif_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'EC27', GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_act3_commence_foret), bj_UNIT_FACING )
call TriggerExecute( gg_trg_Setup_Hero )
endfunction
//===========================================================================
function InitTrig_Select_me_le_fif takes nothing returns nothing
set gg_trg_Select_me_le_fif = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Select_me_le_fif, gg_rct_MepFIFto )
call TriggerAddAction( gg_trg_Select_me_le_fif, function Trig_Select_me_le_fif_Actions )
endfunction
function Trig_Quest_Actions takes nothing returns nothing
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_1066", "TRIGSTR_1067", "ReplaceableTextures\\CommandButtons\\BTNChemicalRage.blp" )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_4498" )
endfunction
//===========================================================================
function InitTrig_Quest takes nothing returns nothing
set gg_trg_Quest = CreateTrigger( )
call TriggerAddAction( gg_trg_Quest, function Trig_Quest_Actions )
endfunction
function Trig_Initialization_Func002003001 takes nothing returns boolean
return ( GetPlayerSlotState(ConvertedPlayer(GetForLoopIndexA())) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Initialization_Func003003001 takes nothing returns boolean
return ( GetPlayerSlotState(ConvertedPlayer(GetForLoopIndexA())) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Initialization_Func057001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(0)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Initialization_Func058001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(1)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Initialization_Func059001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(2)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Initialization_Func060001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(3)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Initialization_Func061001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(4)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Initialization_Func062001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(5)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Initialization_Func063001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(6)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Initialization_Func064001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(7)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Initialization_Func065001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(8)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Initialization_Func066001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(9)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Initialization_Func067001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(10)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Initialization_Func068001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(11)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Initialization_Func071002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetEnumPlayer(), GetRectCenter(gg_rct_Wisp_Starting), 0 )
endfunction
function Trig_Initialization_Actions takes nothing returns nothing
// This next line sets up the teams as player groups
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 6
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Initialization_Func002003001() ) then
call ForceAddPlayerSimple( ConvertedPlayer(GetForLoopIndexA()), udg_Team1 )
else
call DoNothing( )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 7
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Initialization_Func003003001() ) then
call ForceAddPlayerSimple( ConvertedPlayer(GetForLoopIndexA()), udg_Team2 )
else
call DoNothing( )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call SetSkyModel( "Environment\\Sky\\Outland_Sky\\Outland_Sky.mdl" )
call CreateFogModifierRectBJ( true, Player(0), FOG_OF_WAR_VISIBLE, gg_rct_Start_view )
call CreateFogModifierRectBJ( true, Player(1), FOG_OF_WAR_VISIBLE, gg_rct_Start_view )
call CreateFogModifierRectBJ( true, Player(2), FOG_OF_WAR_VISIBLE, gg_rct_Start_view )
call CreateFogModifierRectBJ( true, Player(3), FOG_OF_WAR_VISIBLE, gg_rct_Start_view )
call CreateFogModifierRectBJ( true, Player(4), FOG_OF_WAR_VISIBLE, gg_rct_Start_view )
call CreateFogModifierRectBJ( true, Player(5), FOG_OF_WAR_VISIBLE, gg_rct_Start_view )
call CreateFogModifierRectBJ( true, Player(6), FOG_OF_WAR_VISIBLE, gg_rct_Start_view )
call CreateFogModifierRectBJ( true, Player(7), FOG_OF_WAR_VISIBLE, gg_rct_Start_view )
call CreateFogModifierRectBJ( true, Player(8), FOG_OF_WAR_VISIBLE, gg_rct_Start_view )
call CreateFogModifierRectBJ( true, Player(9), FOG_OF_WAR_VISIBLE, gg_rct_Start_view )
call CreateFogModifierRectBJ( true, Player(10), FOG_OF_WAR_VISIBLE, gg_rct_Start_view )
call CreateFogModifierRectBJ( true, Player(11), FOG_OF_WAR_VISIBLE, gg_rct_Start_view )
call FogEnableOn( )
call SetItemVisibleBJ( false, gg_item_I022_0284 )
call CreateFogModifierRectBJ( true, Player(0), FOG_OF_WAR_VISIBLE, gg_rct_ArenaPit )
call CreateFogModifierRectBJ( true, Player(1), FOG_OF_WAR_VISIBLE, gg_rct_ArenaPit )
call CreateFogModifierRectBJ( true, Player(2), FOG_OF_WAR_VISIBLE, gg_rct_ArenaPit )
call CreateFogModifierRectBJ( true, Player(3), FOG_OF_WAR_VISIBLE, gg_rct_ArenaPit )
call CreateFogModifierRectBJ( true, Player(4), FOG_OF_WAR_VISIBLE, gg_rct_ArenaPit )
call CreateFogModifierRectBJ( true, Player(5), FOG_OF_WAR_VISIBLE, gg_rct_ArenaPit )
call CreateFogModifierRectBJ( true, Player(6), FOG_OF_WAR_VISIBLE, gg_rct_ArenaPit )
call CreateFogModifierRectBJ( true, Player(7), FOG_OF_WAR_VISIBLE, gg_rct_ArenaPit )
call CreateFogModifierRectBJ( true, Player(8), FOG_OF_WAR_VISIBLE, gg_rct_ArenaPit )
call CreateFogModifierRectBJ( true, Player(9), FOG_OF_WAR_VISIBLE, gg_rct_ArenaPit )
call CreateFogModifierRectBJ( true, Player(10), FOG_OF_WAR_VISIBLE, gg_rct_ArenaPit )
call CreateFogModifierRectBJ( true, Player(11), FOG_OF_WAR_VISIBLE, gg_rct_ArenaPit )
call FogMaskEnableOn( )
call CreateFogModifierRectBJ( true, Player(0), FOG_OF_WAR_VISIBLE, gg_rct_Team1SafeArea )
call CreateFogModifierRectBJ( true, Player(1), FOG_OF_WAR_VISIBLE, gg_rct_Team1SafeArea )
call CreateFogModifierRectBJ( true, Player(2), FOG_OF_WAR_VISIBLE, gg_rct_Team1SafeArea )
call CreateFogModifierRectBJ( true, Player(3), FOG_OF_WAR_VISIBLE, gg_rct_Team1SafeArea )
call CreateFogModifierRectBJ( true, Player(4), FOG_OF_WAR_VISIBLE, gg_rct_Team1SafeArea )
call CreateFogModifierRectBJ( true, Player(5), FOG_OF_WAR_VISIBLE, gg_rct_Team1SafeArea )
call CreateFogModifierRectBJ( true, Player(6), FOG_OF_WAR_VISIBLE, gg_rct_Team2SafeArea )
call CreateFogModifierRectBJ( true, Player(7), FOG_OF_WAR_VISIBLE, gg_rct_Team2SafeArea )
call CreateFogModifierRectBJ( true, Player(8), FOG_OF_WAR_VISIBLE, gg_rct_Team2SafeArea )
call CreateFogModifierRectBJ( true, Player(9), FOG_OF_WAR_VISIBLE, gg_rct_Team2SafeArea )
call CreateFogModifierRectBJ( true, Player(10), FOG_OF_WAR_VISIBLE, gg_rct_Team2SafeArea )
call CreateFogModifierRectBJ( true, Player(11), FOG_OF_WAR_VISIBLE, gg_rct_Team2SafeArea )
call MeleeStartingVisibility( )
call ConditionalTriggerExecute( gg_trg_Setup_Creep_Spawn_Triggers )
call TriggerExecute( gg_trg_Set_Up_Leaderboard )
call SetDestructableInvulnerableBJ( gg_dest_DTg7_0005, true )
call SetDestructableInvulnerableBJ( gg_dest_DTg7_0006, true )
call SetDestructableInvulnerableBJ( gg_dest_DTg7_0242, true )
call SetDestructableInvulnerableBJ( gg_dest_DTg7_0231, true )
call SetDestructableInvulnerableBJ( gg_dest_ZTsx_0057, true )
call SetDestructableInvulnerableBJ( gg_dest_ITg1_0984, true )
call SetDestructableInvulnerableBJ( gg_dest_ATg2_0605, true )
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_DTg7_0231 )
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_DTg7_0242 )
if ( Trig_Initialization_Func057001() ) then
call SelectUnitSingle( gg_unit_ewsp_0044 )
else
call RemoveUnit( gg_unit_ewsp_0044 )
endif
if ( Trig_Initialization_Func058001() ) then
call SelectUnitSingle( gg_unit_ewsp_0041 )
else
call RemoveUnit( gg_unit_ewsp_0041 )
endif
if ( Trig_Initialization_Func059001() ) then
call SelectUnitSingle( gg_unit_ewsp_0042 )
else
call RemoveUnit( gg_unit_ewsp_0042 )
endif
if ( Trig_Initialization_Func060001() ) then
call SelectUnitSingle( gg_unit_ewsp_0047 )
else
call RemoveUnit( gg_unit_ewsp_0047 )
endif
if ( Trig_Initialization_Func061001() ) then
call SelectUnitSingle( gg_unit_ewsp_0048 )
else
call RemoveUnit( gg_unit_ewsp_0048 )
endif
if ( Trig_Initialization_Func062001() ) then
call SelectUnitSingle( gg_unit_ewsp_0049 )
else
call RemoveUnit( gg_unit_ewsp_0049 )
endif
if ( Trig_Initialization_Func063001() ) then
call SelectUnitSingle( gg_unit_ewsp_0050 )
else
call RemoveUnit( gg_unit_ewsp_0050 )
endif
if ( Trig_Initialization_Func064001() ) then
call SelectUnitSingle( gg_unit_ewsp_0084 )
else
call RemoveUnit( gg_unit_ewsp_0084 )
endif
if ( Trig_Initialization_Func065001() ) then
call SelectUnitSingle( gg_unit_ewsp_0089 )
else
call RemoveUnit( gg_unit_ewsp_0089 )
endif
if ( Trig_Initialization_Func066001() ) then
call SelectUnitSingle( gg_unit_ewsp_0053 )
else
call RemoveUnit( gg_unit_ewsp_0053 )
endif
if ( Trig_Initialization_Func067001() ) then
call SelectUnitSingle( gg_unit_ewsp_0054 )
else
call RemoveUnit( gg_unit_ewsp_0054 )
endif
if ( Trig_Initialization_Func068001() ) then
call SelectUnitSingle( gg_unit_ewsp_0045 )
else
call RemoveUnit( gg_unit_ewsp_0045 )
endif
call ConditionalTriggerExecute( gg_trg_Setup_Crowd )
call TriggerExecute( gg_trg_Quest )
call ForForce( GetPlayersAll(), function Trig_Initialization_Func071002 )
call ClearSelection( )
call TriggerSleepAction( 0.10 )
call CinematicModeBJ( true, GetPlayersAll() )
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, "TRIGSTR_1829" )
call CameraSetupApplyForPlayer( true, gg_cam_1, Player(0), 2.00 )
call CameraSetupApplyForPlayer( true, gg_cam_1, Player(1), 2.00 )
call CameraSetupApplyForPlayer( true, gg_cam_1, Player(2), 2.00 )
call CameraSetupApplyForPlayer( true, gg_cam_1, Player(3), 2.00 )
call CameraSetupApplyForPlayer( true, gg_cam_1, Player(4), 2.00 )
call CameraSetupApplyForPlayer( true, gg_cam_1, Player(5), 2.00 )
call CameraSetupApplyForPlayer( true, gg_cam_1, Player(6), 2.00 )
call CameraSetupApplyForPlayer( true, gg_cam_1, Player(7), 2.00 )
call CameraSetupApplyForPlayer( true, gg_cam_1, Player(8), 2.00 )
call CameraSetupApplyForPlayer( true, gg_cam_1, Player(9), 2.00 )
call CameraSetupApplyForPlayer( true, gg_cam_1, Player(10), 2.00 )
call CameraSetupApplyForPlayer( true, gg_cam_1, Player(11), 2.00 )
call TriggerSleepAction( 2.00 )
call SetUnitAnimation( gg_unit_UC14_0098, "Spell" )
call TriggerSleepAction( 1.10 )
call SetUnitAnimation( gg_unit_UC14_0098, "Stand" )
call TriggerSleepAction( 0.20 )
call CameraSetupApplyForPlayer( true, gg_cam_2, Player(0), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_2, Player(1), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_2, Player(2), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_2, Player(3), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_2, Player(4), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_2, Player(5), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_2, Player(6), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_2, Player(7), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_2, Player(8), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_2, Player(9), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_2, Player(10), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_2, Player(11), 1.00 )
call TriggerSleepAction( 1.00 )
call SetUnitAnimation( gg_unit_EC12_0100, "Morph" )
call TriggerSleepAction( 1.55 )
call SetUnitAnimation( gg_unit_EC12_0100, "Morph Alternate" )
call TriggerSleepAction( 1.20 )
call SetUnitAnimation( gg_unit_EC12_0100, "Stand" )
call TriggerSleepAction( 0.20 )
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, "TRIGSTR_1830" )
call CameraSetupApplyForPlayer( true, gg_cam_3, Player(0), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_3, Player(1), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_3, Player(2), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_3, Player(3), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_3, Player(4), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_3, Player(5), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_3, Player(6), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_3, Player(7), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_3, Player(8), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_3, Player(9), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_3, Player(10), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_3, Player(11), 1.00 )
call TriggerSleepAction( 1.00 )
call SetUnitAnimation( gg_unit_Eill_0099, "Stand Victory" )
call TriggerSleepAction( 3.10 )
call SetUnitAnimation( gg_unit_Eill_0099, "Stand" )
call TriggerSleepAction( 0.20 )
call CameraSetupApplyForPlayer( true, gg_cam_4, Player(0), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_4, Player(1), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_4, Player(2), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_4, Player(3), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_4, Player(4), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_4, Player(5), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_4, Player(6), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_4, Player(7), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_4, Player(8), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_4, Player(9), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_4, Player(10), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_4, Player(11), 1.00 )
call TriggerSleepAction( 1.00 )
call SetUnitAnimation( gg_unit_Etyr_0097, "Morph" )
call TriggerSleepAction( 1.80 )
call SetUnitAnimation( gg_unit_Etyr_0097, "morph alternate" )
call TriggerSleepAction( 1.80 )
call SetUnitAnimation( gg_unit_Etyr_0097, "Stand" )
call TriggerSleepAction( 0.20 )
call CameraSetupApplyForPlayer( true, gg_cam_5, Player(0), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_5, Player(1), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_5, Player(2), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_5, Player(3), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_5, Player(4), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_5, Player(5), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_5, Player(6), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_5, Player(7), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_5, Player(8), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_5, Player(9), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_5, Player(10), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_5, Player(11), 1.00 )
call TriggerSleepAction( 1.00 )
call SetUnitAnimation( gg_unit_Obla_0096, "Attack" )
call TriggerSleepAction( 1.10 )
call SetUnitAnimation( gg_unit_Obla_0096, "Stand" )
call TriggerSleepAction( 0.20 )
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, "TRIGSTR_1831" )
call CameraSetupApplyForPlayer( true, gg_cam_6, Player(0), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_6, Player(1), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_6, Player(2), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_6, Player(3), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_6, Player(4), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_6, Player(5), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_6, Player(6), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_6, Player(7), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_6, Player(8), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_6, Player(9), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_6, Player(10), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_6, Player(11), 1.00 )
call TriggerSleepAction( 1.00 )
call SetUnitAnimation( gg_unit_Harf_0090, "Morph" )
call TriggerSleepAction( 1.50 )
call SetUnitAnimation( gg_unit_Harf_0090, "Morph Alternate" )
call TriggerSleepAction( 1.50 )
call SetUnitAnimation( gg_unit_Harf_0090, "Stand" )
call TriggerSleepAction( 0.20 )
call CameraSetupApplyForPlayer( true, gg_cam_7, Player(0), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_7, Player(1), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_7, Player(2), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_7, Player(3), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_7, Player(4), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_7, Player(5), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_7, Player(6), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_7, Player(7), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_7, Player(8), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_7, Player(9), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_7, Player(10), 1.00 )
call CameraSetupApplyForPlayer( true, gg_cam_7, Player(11), 1.00 )
call TriggerSleepAction( 1.00 )
call SetUnitAnimation( gg_unit_Hjai_0088, "Stand Victory" )
call TriggerSleepAction( 1.50 )
call SetUnitAnimation( gg_unit_Hjai_0088, "Stand" )
call TriggerSleepAction( 0.10 )
call CameraSetupApplyForPlayer( true, gg_cam_start, Player(0), 2.00 )
call CameraSetupApplyForPlayer( true, gg_cam_start, Player(1), 2.00 )
call CameraSetupApplyForPlayer( true, gg_cam_start, Player(2), 2.00 )
call CameraSetupApplyForPlayer( true, gg_cam_start, Player(3), 2.00 )
call CameraSetupApplyForPlayer( true, gg_cam_start, Player(4), 2.00 )
call CameraSetupApplyForPlayer( true, gg_cam_start, Player(5), 2.00 )
call CameraSetupApplyForPlayer( true, gg_cam_start, Player(6), 2.00 )
call CameraSetupApplyForPlayer( true, gg_cam_start, Player(7), 2.00 )
call CameraSetupApplyForPlayer( true, gg_cam_start, Player(8), 2.00 )
call CameraSetupApplyForPlayer( true, gg_cam_start, Player(9), 2.00 )
call CameraSetupApplyForPlayer( true, gg_cam_start, Player(10), 2.00 )
call CameraSetupApplyForPlayer( true, gg_cam_start, Player(11), 2.00 )
call TriggerSleepAction( 1.70 )
call ResetToGameCameraForPlayer( Player(0), 2.00 )
call ResetToGameCameraForPlayer( Player(1), 2.00 )
call ResetToGameCameraForPlayer( Player(2), 2.00 )
call ResetToGameCameraForPlayer( Player(3), 2.00 )
call ResetToGameCameraForPlayer( Player(4), 2.00 )
call ResetToGameCameraForPlayer( Player(5), 2.00 )
call ResetToGameCameraForPlayer( Player(6), 2.00 )
call ResetToGameCameraForPlayer( Player(7), 2.00 )
call ResetToGameCameraForPlayer( Player(8), 2.00 )
call ResetToGameCameraForPlayer( Player(9), 2.00 )
call ResetToGameCameraForPlayer( Player(10), 2.00 )
call ResetToGameCameraForPlayer( Player(11), 2.00 )
call TriggerSleepAction( 1.70 )
call CinematicModeBJ( false, GetPlayersAll() )
call DisplayTimedTextToForce( GetPlayersAll(), 35.00, "TRIGSTR_047" )
call SetDestructableInvulnerableBJ( gg_dest_DTg7_1035, true )
call SetAmbientDaySound( "LordaeronFallDay" )
call TriggerSleepAction( 34.00 )
call SetUnitInvulnerable( gg_unit_UC14_0098, true )
call SetUnitInvulnerable( gg_unit_EC12_0100, true )
call SetUnitInvulnerable( gg_unit_Eill_0099, true )
call SetUnitInvulnerable( gg_unit_Etyr_0097, true )
call SetUnitInvulnerable( gg_unit_Obla_0096, true )
call SetUnitInvulnerable( gg_unit_Harf_0090, true )
call SetUnitInvulnerable( gg_unit_Hjai_0088, true )
call DisplayTimedTextToForce( GetPlayersAll(), 30, "TRIGSTR_1823" )
call TriggerSleepAction( 34.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 30.00, "TRIGSTR_2036" )
call EnableTrigger( gg_trg_Taunt )
endfunction
//===========================================================================
function InitTrig_Initialization takes nothing returns nothing
set gg_trg_Initialization = CreateTrigger( )
call TriggerAddAction( gg_trg_Initialization, function Trig_Initialization_Actions )
endfunction
function Trig_initial_cash_Actions takes nothing returns nothing
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, "TRIGSTR_1821" )
call AdjustPlayerStateBJ( 3000, Player(0), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 3000, Player(1), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 3000, Player(2), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 3000, Player(3), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 3000, Player(4), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 3000, Player(5), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 3000, Player(6), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 3000, Player(7), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 3000, Player(8), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 3000, Player(9), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 3000, Player(10), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 3000, Player(11), PLAYER_STATE_RESOURCE_GOLD )
endfunction
//===========================================================================
function InitTrig_initial_cash takes nothing returns nothing
set gg_trg_initial_cash = CreateTrigger( )
call TriggerRegisterGameStateEventTimeOfDay( gg_trg_initial_cash, GREATER_THAN, 12.00 )
call TriggerAddAction( gg_trg_initial_cash, function Trig_initial_cash_Actions )
endfunction
function Trig_re_Actions takes nothing returns nothing
call ConditionalTriggerExecute( gg_trg_initial_cash )
endfunction
//===========================================================================
function InitTrig_re takes nothing returns nothing
set gg_trg_re = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_re, 300.00 )
call TriggerAddAction( gg_trg_re, function Trig_re_Actions )
endfunction
function Trig_creeps_Func001C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectAll(GetPlayableMapRect())) > 250 ) ) then
return false
endif
return true
endfunction
function Trig_creeps_Actions takes nothing returns nothing
if ( Trig_creeps_Func001C() ) then
call DisableTrigger( gg_trg_act1_1 )
call DisableTrigger( gg_trg_act4_4 )
call DisableTrigger( gg_trg_act3_2 )
call DisableTrigger( gg_trg_act3_3 )
call DisableTrigger( gg_trg_act3_4 )
call DisableTrigger( gg_trg_act3_5 )
call DisableTrigger( gg_trg_act5_1 )
call DisableTrigger( gg_trg_act5_2 )
call DisableTrigger( gg_trg_act5_3 )
call DisableTrigger( gg_trg_act5_4 )
call DisableTrigger( gg_trg_act3_1 )
call DisableTrigger( gg_trg_act1_4 )
call DisableTrigger( gg_trg_act1_5 )
call DisableTrigger( gg_trg_act1_6 )
call DisableTrigger( gg_trg_act1_2 )
call DisableTrigger( gg_trg_act2_2 )
call DisableTrigger( gg_trg_act2_3 )
call DisableTrigger( gg_trg_act2_4 )
call DisableTrigger( gg_trg_act2_5 )
call DisableTrigger( gg_trg_act2_1 )
call DisableTrigger( gg_trg_act2_6 )
call DisableTrigger( gg_trg_act4_1 )
call DisableTrigger( gg_trg_act4_2 )
call DisableTrigger( gg_trg_act4_3 )
call DisableTrigger( gg_trg_act1_3 )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_creeps takes nothing returns nothing
set gg_trg_creeps = CreateTrigger( )
call DisableTrigger( gg_trg_creeps )
call TriggerRegisterTimerEventPeriodic( gg_trg_creeps, 0.03 )
call TriggerAddAction( gg_trg_creeps, function Trig_creeps_Actions )
endfunction
function Trig_creepsre_Func001C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectAll(GetPlayableMapRect())) < 450 ) ) then
return false
endif
return true
endfunction
function Trig_creepsre_Actions takes nothing returns nothing
if ( Trig_creepsre_Func001C() ) then
call EnableTrigger( gg_trg_act1_1 )
call EnableTrigger( gg_trg_act4_4 )
call EnableTrigger( gg_trg_act3_2 )
call EnableTrigger( gg_trg_act3_3 )
call EnableTrigger( gg_trg_act3_4 )
call EnableTrigger( gg_trg_act3_5 )
call EnableTrigger( gg_trg_act5_1 )
call EnableTrigger( gg_trg_act5_2 )
call EnableTrigger( gg_trg_act5_3 )
call EnableTrigger( gg_trg_act5_4 )
call EnableTrigger( gg_trg_act3_1 )
call EnableTrigger( gg_trg_act1_4 )
call EnableTrigger( gg_trg_act1_5 )
call EnableTrigger( gg_trg_act1_6 )
call EnableTrigger( gg_trg_act1_2 )
call EnableTrigger( gg_trg_act2_2 )
call EnableTrigger( gg_trg_act2_3 )
call EnableTrigger( gg_trg_act2_4 )
call EnableTrigger( gg_trg_act2_5 )
call EnableTrigger( gg_trg_act2_1 )
call EnableTrigger( gg_trg_act2_6 )
call EnableTrigger( gg_trg_act4_1 )
call EnableTrigger( gg_trg_act4_2 )
call EnableTrigger( gg_trg_act4_3 )
call EnableTrigger( gg_trg_act1_3 )
else
call DisableTrigger( gg_trg_act1_1 )
call DisableTrigger( gg_trg_act4_4 )
call DisableTrigger( gg_trg_act3_2 )
call DisableTrigger( gg_trg_act3_3 )
call DisableTrigger( gg_trg_act3_4 )
call DisableTrigger( gg_trg_act3_5 )
call DisableTrigger( gg_trg_act5_1 )
call DisableTrigger( gg_trg_act5_2 )
call DisableTrigger( gg_trg_act5_3 )
call DisableTrigger( gg_trg_act5_4 )
call DisableTrigger( gg_trg_act3_1 )
call DisableTrigger( gg_trg_act1_4 )
call DisableTrigger( gg_trg_act1_5 )
call DisableTrigger( gg_trg_act1_6 )
call DisableTrigger( gg_trg_act1_2 )
call DisableTrigger( gg_trg_act2_2 )
call DisableTrigger( gg_trg_act2_3 )
call DisableTrigger( gg_trg_act2_4 )
call DisableTrigger( gg_trg_act2_5 )
call DisableTrigger( gg_trg_act2_1 )
call DisableTrigger( gg_trg_act2_6 )
call DisableTrigger( gg_trg_act4_1 )
call DisableTrigger( gg_trg_act4_2 )
call DisableTrigger( gg_trg_act4_3 )
call DisableTrigger( gg_trg_act1_3 )
endif
endfunction
//===========================================================================
function InitTrig_creepsre takes nothing returns nothing
set gg_trg_creepsre = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_creepsre, 0.03 )
call TriggerAddAction( gg_trg_creepsre, function Trig_creepsre_Actions )
endfunction
function Trig_creeps_act1and2_Func001C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectAll(gg_rct_creepsact1and2)) < 160 ) ) then
return false
endif
return true
endfunction
function Trig_creeps_act1and2_Actions takes nothing returns nothing
if ( Trig_creeps_act1and2_Func001C() ) then
call EnableTrigger( gg_trg_act1_1 )
call EnableTrigger( gg_trg_act1_2 )
call EnableTrigger( gg_trg_act1_3 )
call EnableTrigger( gg_trg_act1_4 )
call EnableTrigger( gg_trg_act1_5 )
call EnableTrigger( gg_trg_act1_6 )
call EnableTrigger( gg_trg_act2_1 )
call EnableTrigger( gg_trg_act2_2 )
call EnableTrigger( gg_trg_act2_3 )
call EnableTrigger( gg_trg_act2_4 )
call EnableTrigger( gg_trg_act2_5 )
call EnableTrigger( gg_trg_act2_6 )
else
call DisableTrigger( gg_trg_act1_1 )
call DisableTrigger( gg_trg_act1_2 )
call DisableTrigger( gg_trg_act1_3 )
call DisableTrigger( gg_trg_act1_4 )
call DisableTrigger( gg_trg_act1_5 )
call DisableTrigger( gg_trg_act1_6 )
call DisableTrigger( gg_trg_act2_1 )
call DisableTrigger( gg_trg_act2_2 )
call DisableTrigger( gg_trg_act2_3 )
call DisableTrigger( gg_trg_act2_4 )
call DisableTrigger( gg_trg_act2_5 )
call DisableTrigger( gg_trg_act2_6 )
endif
endfunction
//===========================================================================
function InitTrig_creeps_act1and2 takes nothing returns nothing
set gg_trg_creeps_act1and2 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_creeps_act1and2, 0.03 )
call TriggerAddAction( gg_trg_creeps_act1and2, function Trig_creeps_act1and2_Actions )
endfunction
function Trig_creeps_act4_Func001C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectAll(gg_rct_creepsact4)) < 100 ) ) then
return false
endif
return true
endfunction
function Trig_creeps_act4_Actions takes nothing returns nothing
if ( Trig_creeps_act4_Func001C() ) then
call EnableTrigger( gg_trg_act4_1 )
call EnableTrigger( gg_trg_act4_2 )
call EnableTrigger( gg_trg_act4_3 )
call EnableTrigger( gg_trg_act4_4 )
else
call DisableTrigger( gg_trg_act4_1 )
call DisableTrigger( gg_trg_act4_2 )
call DisableTrigger( gg_trg_act4_3 )
call DisableTrigger( gg_trg_act4_4 )
endif
endfunction
//===========================================================================
function InitTrig_creeps_act4 takes nothing returns nothing
set gg_trg_creeps_act4 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_creeps_act4, 0.03 )
call TriggerAddAction( gg_trg_creeps_act4, function Trig_creeps_act4_Actions )
endfunction
function Trig_creeps_act3_Func001C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectAll(gg_rct_creepsact3)) < 150 ) ) then
return false
endif
return true
endfunction
function Trig_creeps_act3_Actions takes nothing returns nothing
if ( Trig_creeps_act3_Func001C() ) then
call EnableTrigger( gg_trg_act3_1 )
call EnableTrigger( gg_trg_act3_2 )
call EnableTrigger( gg_trg_act3_3 )
call EnableTrigger( gg_trg_act3_4 )
call EnableTrigger( gg_trg_act3_5 )
else
call DisableTrigger( gg_trg_act3_1 )
call DisableTrigger( gg_trg_act3_2 )
call DisableTrigger( gg_trg_act3_3 )
call DisableTrigger( gg_trg_act3_4 )
call DisableTrigger( gg_trg_act3_5 )
endif
endfunction
//===========================================================================
function InitTrig_creeps_act3 takes nothing returns nothing
set gg_trg_creeps_act3 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_creeps_act3, 0.03 )
call TriggerAddAction( gg_trg_creeps_act3, function Trig_creeps_act3_Actions )
endfunction
function Trig_creeps_act5_Func001C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectAll(gg_rct_creepsact5)) < 100 ) ) then
return false
endif
return true
endfunction
function Trig_creeps_act5_Actions takes nothing returns nothing
if ( Trig_creeps_act5_Func001C() ) then
call EnableTrigger( gg_trg_act5_1 )
call EnableTrigger( gg_trg_act5_2 )
call EnableTrigger( gg_trg_act5_3 )
call EnableTrigger( gg_trg_act5_4 )
else
call DisableTrigger( gg_trg_act5_1 )
call DisableTrigger( gg_trg_act5_2 )
call DisableTrigger( gg_trg_act5_3 )
call DisableTrigger( gg_trg_act5_4 )
endif
endfunction
//===========================================================================
function InitTrig_creeps_act5 takes nothing returns nothing
set gg_trg_creeps_act5 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_creeps_act5, 0.03 )
call TriggerAddAction( gg_trg_creeps_act5, function Trig_creeps_act5_Actions )
endfunction
function Trig_find_leg_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_269" )
endfunction
//===========================================================================
function InitTrig_find_leg takes nothing returns nothing
set gg_trg_find_leg = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_find_leg, gg_unit_nvlk_0113, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_find_leg, function Trig_find_leg_Actions )
endfunction
function Trig_find_cube_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_270" )
endfunction
//===========================================================================
function InitTrig_find_cube takes nothing returns nothing
set gg_trg_find_cube = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_find_cube, gg_unit_nwc1_0112, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_find_cube, function Trig_find_cube_Actions )
endfunction
function Trig_find_book_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_271" )
endfunction
//===========================================================================
function InitTrig_find_book takes nothing returns nothing
set gg_trg_find_book = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_find_book, gg_unit_nbsm_0106, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_find_book, function Trig_find_book_Actions )
endfunction
function Trig_DoorTriggerDoor1_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC55') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC54') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC35') == true ) ) then
return false
endif
return true
endfunction
function Trig_DoorTriggerDoor1_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
set udg_bdoors[1] = true
call RemoveItem( GetItemOfTypeFromUnitBJ(GetEnteringUnit(), 'IC55') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetEnteringUnit(), 'IC54') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetEnteringUnit(), 'IC35') )
call DisplayTimedTextToForce( GetPlayersAll(), 20.00, "TRIGSTR_262" )
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_DTg7_1035 )
endfunction
//===========================================================================
function InitTrig_DoorTriggerDoor1 takes nothing returns nothing
set gg_trg_DoorTriggerDoor1 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_DoorTriggerDoor1, gg_rct_door1 )
call TriggerAddCondition( gg_trg_DoorTriggerDoor1, Condition( function Trig_DoorTriggerDoor1_Conditions ) )
call TriggerAddAction( gg_trg_DoorTriggerDoor1, function Trig_DoorTriggerDoor1_Actions )
endfunction
function Trig_DoorTriggerDoor1_No_Key_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC55') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC54') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC35') == false ) ) then
return false
endif
if ( not ( IsDestructableAliveBJ(GetLastCreatedDestructable()) == false ) ) then
return false
endif
return true
endfunction
function Trig_DoorTriggerDoor1_No_Key_Actions takes nothing returns nothing
call DisplayTimedTextToForce( GetForceOfPlayer(GetOwningPlayer(GetEnteringUnit())), 12.00, "TRIGSTR_263" )
endfunction
//===========================================================================
function InitTrig_DoorTriggerDoor1_No_Key takes nothing returns nothing
set gg_trg_DoorTriggerDoor1_No_Key = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_DoorTriggerDoor1_No_Key, gg_rct_door1 )
call TriggerAddCondition( gg_trg_DoorTriggerDoor1_No_Key, Condition( function Trig_DoorTriggerDoor1_No_Key_Conditions ) )
call TriggerAddAction( gg_trg_DoorTriggerDoor1_No_Key, function Trig_DoorTriggerDoor1_No_Key_Actions )
endfunction
function Trig_Untitled__001_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) != Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_Untitled__001_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Arena), 0.30 )
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Arena) )
endfunction
//===========================================================================
function InitTrig_Untitled__001 takes nothing returns nothing
set gg_trg_Untitled__001 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Untitled__001, gg_rct_ppp1 )
call TriggerAddCondition( gg_trg_Untitled__001, Condition( function Trig_Untitled__001_Conditions ) )
call TriggerAddAction( gg_trg_Untitled__001, function Trig_Untitled__001_Actions )
endfunction
function Trig_Untitled__001_Copy_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) != Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_Untitled__001_Copy_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Arena), 0.30 )
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Arena) )
endfunction
//===========================================================================
function InitTrig_Untitled__001_Copy takes nothing returns nothing
set gg_trg_Untitled__001_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Untitled__001_Copy, gg_rct_ggg66 )
call TriggerAddCondition( gg_trg_Untitled__001_Copy, Condition( function Trig_Untitled__001_Copy_Conditions ) )
call TriggerAddAction( gg_trg_Untitled__001_Copy, function Trig_Untitled__001_Copy_Actions )
endfunction
function Trig_Untitled__001_Copy_2_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) != Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_Untitled__001_Copy_2_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Arena), 0.30 )
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Arena) )
endfunction
//===========================================================================
function InitTrig_Untitled__001_Copy_2 takes nothing returns nothing
set gg_trg_Untitled__001_Copy_2 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Untitled__001_Copy_2, gg_rct_gg1112 )
call TriggerAddCondition( gg_trg_Untitled__001_Copy_2, Condition( function Trig_Untitled__001_Copy_2_Conditions ) )
call TriggerAddAction( gg_trg_Untitled__001_Copy_2, function Trig_Untitled__001_Copy_2_Actions )
endfunction
function Trig_Untitled__001_Copy_3_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) != Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_Untitled__001_Copy_3_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Arena), 0.30 )
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Arena) )
endfunction
//===========================================================================
function InitTrig_Untitled__001_Copy_3 takes nothing returns nothing
set gg_trg_Untitled__001_Copy_3 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Untitled__001_Copy_3, gg_rct_gg2221 )
call TriggerAddCondition( gg_trg_Untitled__001_Copy_3, Condition( function Trig_Untitled__001_Copy_3_Conditions ) )
call TriggerAddAction( gg_trg_Untitled__001_Copy_3, function Trig_Untitled__001_Copy_3_Actions )
endfunction
function Trig_Untitled__001_Copy_4_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) != Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_Untitled__001_Copy_4_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Arena), 0.30 )
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Arena) )
endfunction
//===========================================================================
function InitTrig_Untitled__001_Copy_4 takes nothing returns nothing
set gg_trg_Untitled__001_Copy_4 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Untitled__001_Copy_4, gg_rct_gg3331 )
call TriggerAddCondition( gg_trg_Untitled__001_Copy_4, Condition( function Trig_Untitled__001_Copy_4_Conditions ) )
call TriggerAddAction( gg_trg_Untitled__001_Copy_4, function Trig_Untitled__001_Copy_4_Actions )
endfunction
function Trig_Untitled__001_Copy_5_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) != Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_Untitled__001_Copy_5_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Arena), 0.30 )
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Arena) )
endfunction
//===========================================================================
function InitTrig_Untitled__001_Copy_5 takes nothing returns nothing
set gg_trg_Untitled__001_Copy_5 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Untitled__001_Copy_5, gg_rct_gg4441 )
call TriggerAddCondition( gg_trg_Untitled__001_Copy_5, Condition( function Trig_Untitled__001_Copy_5_Conditions ) )
call TriggerAddAction( gg_trg_Untitled__001_Copy_5, function Trig_Untitled__001_Copy_5_Actions )
endfunction
function Trig_type_help_Actions takes nothing returns nothing
call DisplayTimedTextToForce( GetPlayersAll(), 30, "TRIGSTR_025" )
endfunction
//===========================================================================
function InitTrig_type_help takes nothing returns nothing
set gg_trg_type_help = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_type_help, Player(0), "-help", true )
call TriggerRegisterPlayerChatEvent( gg_trg_type_help, Player(1), "-help", true )
call TriggerRegisterPlayerChatEvent( gg_trg_type_help, Player(2), "-help", true )
call TriggerRegisterPlayerChatEvent( gg_trg_type_help, Player(3), "-help", true )
call TriggerRegisterPlayerChatEvent( gg_trg_type_help, Player(4), "-help", true )
call TriggerRegisterPlayerChatEvent( gg_trg_type_help, Player(5), "-help", true )
call TriggerRegisterPlayerChatEvent( gg_trg_type_help, Player(6), "-help", true )
call TriggerRegisterPlayerChatEvent( gg_trg_type_help, Player(7), "-help", true )
call TriggerRegisterPlayerChatEvent( gg_trg_type_help, Player(8), "-help", true )
call TriggerRegisterPlayerChatEvent( gg_trg_type_help, Player(9), "-help", true )
call TriggerRegisterPlayerChatEvent( gg_trg_type_help, Player(10), "-help", true )
call TriggerRegisterPlayerChatEvent( gg_trg_type_help, Player(11), "-help", true )
call TriggerAddAction( gg_trg_type_help, function Trig_type_help_Actions )
endfunction
function Trig_cheat_Actions takes nothing returns nothing
call CreateItemLoc( 'I01F', GetRectCenter(gg_rct_almosen) )
endfunction
//===========================================================================
function InitTrig_cheat takes nothing returns nothing
set gg_trg_cheat = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_cheat, Player(0), "-Dolpin", true )
call TriggerAddAction( gg_trg_cheat, function Trig_cheat_Actions )
endfunction
function Trig_cheat_2_Actions takes nothing returns nothing
call CreateItemLoc( 'I01K', GetRectCenter(gg_rct_almosen) )
call CreateItemLoc( 'I012', GetRectCenter(gg_rct_almosen) )
call CreateItemLoc( 'I01H', GetRectCenter(gg_rct_almosen) )
endfunction
//===========================================================================
function InitTrig_cheat_2 takes nothing returns nothing
set gg_trg_cheat_2 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_cheat_2, Player(0), "-Trollpatsch", true )
call TriggerAddAction( gg_trg_cheat_2, function Trig_cheat_2_Actions )
endfunction
function Trig_cheat_3_Actions takes nothing returns nothing
call SetPlayerStateBJ( Player(0), PLAYER_STATE_RESOURCE_GOLD, 1000000000 )
endfunction
//===========================================================================
function InitTrig_cheat_3 takes nothing returns nothing
set gg_trg_cheat_3 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_cheat_3, Player(0), "-Dolpin Gold", true )
call TriggerAddAction( gg_trg_cheat_3, function Trig_cheat_3_Actions )
endfunction
function Trig_Act1_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_Act1_Func002001 takes nothing returns boolean
return ( Player(0) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act1_Func003001 takes nothing returns boolean
return ( Player(1) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act1_Func004001 takes nothing returns boolean
return ( Player(2) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act1_Func005001 takes nothing returns boolean
return ( Player(3) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act1_Func006001 takes nothing returns boolean
return ( Player(4) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act1_Func007001 takes nothing returns boolean
return ( Player(5) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act1_Func008001 takes nothing returns boolean
return ( Player(6) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act1_Func009001 takes nothing returns boolean
return ( Player(7) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act1_Func010001 takes nothing returns boolean
return ( Player(8) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act1_Func011001 takes nothing returns boolean
return ( Player(9) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act1_Func012001 takes nothing returns boolean
return ( Player(10) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act1_Func013001 takes nothing returns boolean
return ( Player(11) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act1_Actions takes nothing returns nothing
if ( Trig_Act1_Func002001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[0], 5.00, "TRIGSTR_882" )
else
call DoNothing( )
endif
if ( Trig_Act1_Func003001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[1], 5.00, "TRIGSTR_883" )
else
call DoNothing( )
endif
if ( Trig_Act1_Func004001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[2], 5.00, "TRIGSTR_884" )
else
call DoNothing( )
endif
if ( Trig_Act1_Func005001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[3], 5.00, "TRIGSTR_885" )
else
call DoNothing( )
endif
if ( Trig_Act1_Func006001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[4], 5.00, "TRIGSTR_886" )
else
call DoNothing( )
endif
if ( Trig_Act1_Func007001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[5], 5.00, "TRIGSTR_887" )
else
call DoNothing( )
endif
if ( Trig_Act1_Func008001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[6], 5.00, "TRIGSTR_888" )
else
call DoNothing( )
endif
if ( Trig_Act1_Func009001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[7], 5.00, "TRIGSTR_889" )
else
call DoNothing( )
endif
if ( Trig_Act1_Func010001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[8], 5.00, "TRIGSTR_890" )
else
call DoNothing( )
endif
if ( Trig_Act1_Func011001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[9], 5.00, "TRIGSTR_891" )
else
call DoNothing( )
endif
if ( Trig_Act1_Func012001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[10], 5.00, "TRIGSTR_892" )
else
call DoNothing( )
endif
if ( Trig_Act1_Func013001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[11], 5.00, "TRIGSTR_893" )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Act1 takes nothing returns nothing
set gg_trg_Act1 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Act1, gg_rct_aaa )
call TriggerAddCondition( gg_trg_Act1, Condition( function Trig_Act1_Conditions ) )
call TriggerAddAction( gg_trg_Act1, function Trig_Act1_Actions )
endfunction
function Trig_Act_2_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_Act_2_Func002001 takes nothing returns boolean
return ( Player(0) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_2_Func003001 takes nothing returns boolean
return ( Player(1) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_2_Func004001 takes nothing returns boolean
return ( Player(2) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_2_Func005001 takes nothing returns boolean
return ( Player(3) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_2_Func006001 takes nothing returns boolean
return ( Player(4) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_2_Func007001 takes nothing returns boolean
return ( Player(5) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_2_Func008001 takes nothing returns boolean
return ( Player(6) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_2_Func009001 takes nothing returns boolean
return ( Player(7) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_2_Func010001 takes nothing returns boolean
return ( Player(8) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_2_Func011001 takes nothing returns boolean
return ( Player(9) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_2_Func012001 takes nothing returns boolean
return ( Player(10) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_2_Func013001 takes nothing returns boolean
return ( Player(11) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_2_Actions takes nothing returns nothing
if ( Trig_Act_2_Func002001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[0], 5.00, "TRIGSTR_906" )
else
call DoNothing( )
endif
if ( Trig_Act_2_Func003001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[1], 5.00, "TRIGSTR_907" )
else
call DoNothing( )
endif
if ( Trig_Act_2_Func004001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[2], 5.00, "TRIGSTR_908" )
else
call DoNothing( )
endif
if ( Trig_Act_2_Func005001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[3], 5.00, "TRIGSTR_909" )
else
call DoNothing( )
endif
if ( Trig_Act_2_Func006001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[4], 5.00, "TRIGSTR_910" )
else
call DoNothing( )
endif
if ( Trig_Act_2_Func007001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[5], 5.00, "TRIGSTR_911" )
else
call DoNothing( )
endif
if ( Trig_Act_2_Func008001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[6], 5.00, "TRIGSTR_912" )
else
call DoNothing( )
endif
if ( Trig_Act_2_Func009001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[7], 5.00, "TRIGSTR_913" )
else
call DoNothing( )
endif
if ( Trig_Act_2_Func010001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[8], 5.00, "TRIGSTR_914" )
else
call DoNothing( )
endif
if ( Trig_Act_2_Func011001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[9], 5.00, "TRIGSTR_952" )
else
call DoNothing( )
endif
if ( Trig_Act_2_Func012001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[10], 5.00, "TRIGSTR_954" )
else
call DoNothing( )
endif
if ( Trig_Act_2_Func013001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[11], 5.00, "TRIGSTR_955" )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Act_2 takes nothing returns nothing
set gg_trg_Act_2 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Act_2, gg_rct_ggg )
call TriggerAddCondition( gg_trg_Act_2, Condition( function Trig_Act_2_Conditions ) )
call TriggerAddAction( gg_trg_Act_2, function Trig_Act_2_Actions )
endfunction
function Trig_Act_3_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_Act_3_Func002001 takes nothing returns boolean
return ( Player(0) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_3_Func003001 takes nothing returns boolean
return ( Player(1) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_3_Func004001 takes nothing returns boolean
return ( Player(2) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_3_Func005001 takes nothing returns boolean
return ( Player(3) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_3_Func006001 takes nothing returns boolean
return ( Player(4) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_3_Func007001 takes nothing returns boolean
return ( Player(5) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_3_Func008001 takes nothing returns boolean
return ( Player(6) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_3_Func009001 takes nothing returns boolean
return ( Player(7) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_3_Func010001 takes nothing returns boolean
return ( Player(8) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_3_Func011001 takes nothing returns boolean
return ( Player(9) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_3_Func012001 takes nothing returns boolean
return ( Player(10) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_3_Func013001 takes nothing returns boolean
return ( Player(11) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_3_Actions takes nothing returns nothing
if ( Trig_Act_3_Func002001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[0], 5.00, "TRIGSTR_1730" )
else
call DoNothing( )
endif
if ( Trig_Act_3_Func003001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[1], 5.00, "TRIGSTR_1731" )
else
call DoNothing( )
endif
if ( Trig_Act_3_Func004001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[2], 5.00, "TRIGSTR_1732" )
else
call DoNothing( )
endif
if ( Trig_Act_3_Func005001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[3], 5.00, "TRIGSTR_1733" )
else
call DoNothing( )
endif
if ( Trig_Act_3_Func006001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[4], 5.00, "TRIGSTR_1734" )
else
call DoNothing( )
endif
if ( Trig_Act_3_Func007001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[5], 5.00, "TRIGSTR_1735" )
else
call DoNothing( )
endif
if ( Trig_Act_3_Func008001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[6], 5.00, "TRIGSTR_1736" )
else
call DoNothing( )
endif
if ( Trig_Act_3_Func009001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[7], 5.00, "TRIGSTR_1737" )
else
call DoNothing( )
endif
if ( Trig_Act_3_Func010001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[8], 5.00, "TRIGSTR_1738" )
else
call DoNothing( )
endif
if ( Trig_Act_3_Func011001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[9], 5.00, "TRIGSTR_1739" )
else
call DoNothing( )
endif
if ( Trig_Act_3_Func012001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[10], 5.00, "TRIGSTR_1740" )
else
call DoNothing( )
endif
if ( Trig_Act_3_Func013001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[11], 5.00, "TRIGSTR_1741" )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Act_3 takes nothing returns nothing
set gg_trg_Act_3 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Act_3, gg_rct_tel555 )
call TriggerAddCondition( gg_trg_Act_3, Condition( function Trig_Act_3_Conditions ) )
call TriggerAddAction( gg_trg_Act_3, function Trig_Act_3_Actions )
endfunction
function Trig_Act_4_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_Act_4_Func002001 takes nothing returns boolean
return ( Player(0) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_4_Func003001 takes nothing returns boolean
return ( Player(1) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_4_Func004001 takes nothing returns boolean
return ( Player(2) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_4_Func005001 takes nothing returns boolean
return ( Player(3) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_4_Func006001 takes nothing returns boolean
return ( Player(4) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_4_Func007001 takes nothing returns boolean
return ( Player(5) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_4_Func008001 takes nothing returns boolean
return ( Player(6) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_4_Func009001 takes nothing returns boolean
return ( Player(7) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_4_Func010001 takes nothing returns boolean
return ( Player(8) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_4_Func011001 takes nothing returns boolean
return ( Player(9) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_4_Func012001 takes nothing returns boolean
return ( Player(10) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_4_Func013001 takes nothing returns boolean
return ( Player(11) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_4_Actions takes nothing returns nothing
if ( Trig_Act_4_Func002001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[0], 5.00, "TRIGSTR_1742" )
else
call DoNothing( )
endif
if ( Trig_Act_4_Func003001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[1], 5.00, "TRIGSTR_1743" )
else
call DoNothing( )
endif
if ( Trig_Act_4_Func004001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[2], 5.00, "TRIGSTR_1744" )
else
call DoNothing( )
endif
if ( Trig_Act_4_Func005001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[3], 5.00, "TRIGSTR_1745" )
else
call DoNothing( )
endif
if ( Trig_Act_4_Func006001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[4], 5.00, "TRIGSTR_1746" )
else
call DoNothing( )
endif
if ( Trig_Act_4_Func007001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[5], 5.00, "TRIGSTR_1747" )
else
call DoNothing( )
endif
if ( Trig_Act_4_Func008001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[6], 5.00, "TRIGSTR_1748" )
else
call DoNothing( )
endif
if ( Trig_Act_4_Func009001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[7], 5.00, "TRIGSTR_1749" )
else
call DoNothing( )
endif
if ( Trig_Act_4_Func010001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[8], 5.00, "TRIGSTR_1750" )
else
call DoNothing( )
endif
if ( Trig_Act_4_Func011001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[9], 5.00, "TRIGSTR_1751" )
else
call DoNothing( )
endif
if ( Trig_Act_4_Func012001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[10], 5.00, "TRIGSTR_1752" )
else
call DoNothing( )
endif
if ( Trig_Act_4_Func013001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[11], 5.00, "TRIGSTR_1753" )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Act_4 takes nothing returns nothing
set gg_trg_Act_4 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Act_4, gg_rct_tel333 )
call TriggerAddCondition( gg_trg_Act_4, Condition( function Trig_Act_4_Conditions ) )
call TriggerAddAction( gg_trg_Act_4, function Trig_Act_4_Actions )
endfunction
function Trig_Act_5_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_Act_5_Func002001 takes nothing returns boolean
return ( Player(0) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_5_Func003001 takes nothing returns boolean
return ( Player(1) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_5_Func004001 takes nothing returns boolean
return ( Player(2) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_5_Func005001 takes nothing returns boolean
return ( Player(3) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_5_Func006001 takes nothing returns boolean
return ( Player(4) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_5_Func007001 takes nothing returns boolean
return ( Player(5) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_5_Func008001 takes nothing returns boolean
return ( Player(6) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_5_Func009001 takes nothing returns boolean
return ( Player(7) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_5_Func010001 takes nothing returns boolean
return ( Player(8) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_5_Func011001 takes nothing returns boolean
return ( Player(9) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_5_Func012001 takes nothing returns boolean
return ( Player(10) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_5_Func013001 takes nothing returns boolean
return ( Player(11) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_Act_5_Actions takes nothing returns nothing
if ( Trig_Act_5_Func002001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[0], 5.00, "TRIGSTR_1718" )
else
call DoNothing( )
endif
if ( Trig_Act_5_Func003001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[1], 5.00, "TRIGSTR_1719" )
else
call DoNothing( )
endif
if ( Trig_Act_5_Func004001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[2], 5.00, "TRIGSTR_1720" )
else
call DoNothing( )
endif
if ( Trig_Act_5_Func005001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[3], 5.00, "TRIGSTR_1721" )
else
call DoNothing( )
endif
if ( Trig_Act_5_Func006001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[4], 5.00, "TRIGSTR_1722" )
else
call DoNothing( )
endif
if ( Trig_Act_5_Func007001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[5], 5.00, "TRIGSTR_1723" )
else
call DoNothing( )
endif
if ( Trig_Act_5_Func008001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[6], 5.00, "TRIGSTR_1724" )
else
call DoNothing( )
endif
if ( Trig_Act_5_Func009001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[7], 5.00, "TRIGSTR_1725" )
else
call DoNothing( )
endif
if ( Trig_Act_5_Func010001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[8], 5.00, "TRIGSTR_1726" )
else
call DoNothing( )
endif
if ( Trig_Act_5_Func011001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[9], 5.00, "TRIGSTR_1727" )
else
call DoNothing( )
endif
if ( Trig_Act_5_Func012001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[10], 5.00, "TRIGSTR_1728" )
else
call DoNothing( )
endif
if ( Trig_Act_5_Func013001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[11], 5.00, "TRIGSTR_1729" )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Act_5 takes nothing returns nothing
set gg_trg_Act_5 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Act_5, gg_rct_tel777 )
call TriggerAddCondition( gg_trg_Act_5, Condition( function Trig_Act_5_Conditions ) )
call TriggerAddAction( gg_trg_Act_5, function Trig_Act_5_Actions )
endfunction
function Trig_txt_Actions takes nothing returns nothing
// ACT
call CreateTextTagLocBJ( "TRIGSTR_1796", GetRectCenter(gg_rct_CreepSpawnBottomLeft), 0, 20.00, 100, 100.00, 100.00, 0 )
call CreateTextTagLocBJ( "TRIGSTR_1795", GetRectCenter(gg_rct_CreepSpawnBottom), 0, 20.00, 100, 100.00, 100.00, 0 )
call CreateTextTagLocBJ( "TRIGSTR_1797", GetRectCenter(gg_rct_CreepSpawnTopLeft), 0, 20.00, 100, 100.00, 100.00, 0 )
call CreateTextTagLocBJ( "TRIGSTR_1798", GetRectCenter(gg_rct_CreepSpawnBottomRight), 0, 20.00, 100, 100.00, 100.00, 0 )
call CreateTextTagLocBJ( "TRIGSTR_1799", GetRectCenter(gg_rct_CreepSpawnTopRight), 0, 20.00, 100, 100.00, 100.00, 0 )
call CreateTextTagLocBJ( "TRIGSTR_1882", GetRectCenter(gg_rct_snowworldenter), 0, 14.00, 100.00, 100.00, 100.00, 0 )
// Shops1
call CreateTextTagLocBJ( "TRIGSTR_1813", GetRectCenter(gg_rct_Gebiet_092), 2.00, 12.00, 100, 100.00, 100.00, 0 )
call CreateTextTagLocBJ( "TRIGSTR_1814", GetRectCenter(gg_rct_Gebiet_087), 2.00, 12.00, 100, 100.00, 100.00, 0 )
call CreateTextTagLocBJ( "TRIGSTR_1815", GetRectCenter(gg_rct_Gebiet_086), 2.00, 12.00, 100, 100.00, 100.00, 0 )
call CreateTextTagLocBJ( "TRIGSTR_1816", GetRectCenter(gg_rct_Gebiet_135), 2.00, 12.00, 100, 100.00, 100.00, 0 )
// Shops2
call CreateTextTagLocBJ( "TRIGSTR_1817", GetRectCenter(gg_rct_Gebiet_161), 2.00, 12.00, 100, 100.00, 100.00, 0 )
call CreateTextTagLocBJ( "TRIGSTR_1818", GetRectCenter(gg_rct_Gebiet_162), 2.00, 12.00, 100, 100.00, 100.00, 0 )
call CreateTextTagLocBJ( "TRIGSTR_1819", GetRectCenter(gg_rct_Gebiet_160), 2.00, 12.00, 100, 100.00, 100.00, 0 )
call CreateTextTagLocBJ( "TRIGSTR_1820", GetRectCenter(gg_rct_Gebiet_159), 2.00, 12.00, 100, 100.00, 100.00, 0 )
endfunction
//===========================================================================
function InitTrig_txt takes nothing returns nothing
set gg_trg_txt = CreateTrigger( )
call TriggerAddAction( gg_trg_txt, function Trig_txt_Actions )
endfunction
function Trig_txtre_Actions takes nothing returns nothing
call TriggerExecute( gg_trg_txt )
endfunction
//===========================================================================
function InitTrig_txtre takes nothing returns nothing
set gg_trg_txtre = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_txtre, 35.00 )
call TriggerAddAction( gg_trg_txtre, function Trig_txtre_Actions )
endfunction
function Trig_Repickred_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsOfPlayerAndTypeId(Player(0), 'ewsp')) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Repickred_Actions takes nothing returns nothing
call SetUnitExplodedBJ( udg_Heroes[GetConvertedPlayerId(GetTriggerPlayer())], true )
call TriggerSleepAction( 0.10 )
call KillUnit( udg_Heroes[GetConvertedPlayerId(GetTriggerPlayer())] )
call RemoveUnit( udg_Heroes[GetConvertedPlayerId(GetTriggerPlayer())] )
call PanCameraToTimedLocForPlayer( GetTriggerPlayer(), GetRectCenter(gg_rct_Wisp_Starting), 1.00 )
call CreateNUnitsAtLoc( 1, 'ewsp', GetTriggerPlayer(), GetRectCenter(gg_rct_Wisp_Starting), bj_UNIT_FACING )
endfunction
//===========================================================================
function InitTrig_Repickred takes nothing returns nothing
set gg_trg_Repickred = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Repickred, Player(0), "-repick", true )
call TriggerAddCondition( gg_trg_Repickred, Condition( function Trig_Repickred_Conditions ) )
call TriggerAddAction( gg_trg_Repickred, function Trig_Repickred_Actions )
endfunction
function Trig_Repickblue_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsOfPlayerAndTypeId(Player(1), 'ewsp')) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Repickblue_Actions takes nothing returns nothing
call SetUnitExplodedBJ( udg_Heroes[GetConvertedPlayerId(GetTriggerPlayer())], true )
call TriggerSleepAction( 0.10 )
call KillUnit( udg_Heroes[GetConvertedPlayerId(GetTriggerPlayer())] )
call RemoveUnit( udg_Heroes[GetConvertedPlayerId(GetTriggerPlayer())] )
call PanCameraToTimedLocForPlayer( GetTriggerPlayer(), GetRectCenter(gg_rct_Wisp_Starting), 1.00 )
call CreateNUnitsAtLoc( 1, 'ewsp', GetTriggerPlayer(), GetRectCenter(gg_rct_Wisp_Starting), bj_UNIT_FACING )
endfunction
//===========================================================================
function InitTrig_Repickblue takes nothing returns nothing
set gg_trg_Repickblue = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Repickblue, Player(1), "-repick", true )
call TriggerAddCondition( gg_trg_Repickblue, Condition( function Trig_Repickblue_Conditions ) )
call TriggerAddAction( gg_trg_Repickblue, function Trig_Repickblue_Actions )
endfunction
function Trig_Repickgreyblue_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsOfPlayerAndTypeId(Player(2), 'ewsp')) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Repickgreyblue_Actions takes nothing returns nothing
call SetUnitExplodedBJ( udg_Heroes[GetConvertedPlayerId(GetTriggerPlayer())], true )
call TriggerSleepAction( 0.10 )
call KillUnit( udg_Heroes[GetConvertedPlayerId(GetTriggerPlayer())] )
call RemoveUnit( udg_Heroes[GetConvertedPlayerId(GetTriggerPlayer())] )
call PanCameraToTimedLocForPlayer( GetTriggerPlayer(), GetRectCenter(gg_rct_Wisp_Starting), 1.00 )
call CreateNUnitsAtLoc( 1, 'ewsp', GetTriggerPlayer(), GetRectCenter(gg_rct_Wisp_Starting), bj_UNIT_FACING )
endfunction
//===========================================================================
function InitTrig_Repickgreyblue takes nothing returns nothing
set gg_trg_Repickgreyblue = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Repickgreyblue, Player(2), "-repick", true )
call TriggerAddCondition( gg_trg_Repickgreyblue, Condition( function Trig_Repickgreyblue_Conditions ) )
call TriggerAddAction( gg_trg_Repickgreyblue, function Trig_Repickgreyblue_Actions )
endfunction
function Trig_Repicklila_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsOfPlayerAndTypeId(Player(3), 'ewsp')) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Repicklila_Actions takes nothing returns nothing
call SetUnitExplodedBJ( udg_Heroes[GetConvertedPlayerId(GetTriggerPlayer())], true )
call TriggerSleepAction( 0.10 )
call KillUnit( udg_Heroes[GetConvertedPlayerId(GetTriggerPlayer())] )
call RemoveUnit( udg_Heroes[GetConvertedPlayerId(GetTriggerPlayer())] )
call PanCameraToTimedLocForPlayer( GetTriggerPlayer(), GetRectCenter(gg_rct_Wisp_Starting), 1.00 )
call CreateNUnitsAtLoc( 1, 'ewsp', GetTriggerPlayer(), GetRectCenter(gg_rct_Wisp_Starting), bj_UNIT_FACING )
endfunction
//===========================================================================
function InitTrig_Repicklila takes nothing returns nothing
set gg_trg_Repicklila = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Repicklila, Player(3), "-repick", true )
call TriggerAddCondition( gg_trg_Repicklila, Condition( function Trig_Repicklila_Conditions ) )
call TriggerAddAction( gg_trg_Repicklila, function Trig_Repicklila_Actions )
endfunction
function Trig_Repickgelb_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsOfPlayerAndTypeId(Player(4), 'ewsp')) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Repickgelb_Actions takes nothing returns nothing
call SetUnitExplodedBJ( udg_Heroes[GetConvertedPlayerId(GetTriggerPlayer())], true )
call TriggerSleepAction( 0.10 )
call KillUnit( udg_Heroes[GetConvertedPlayerId(GetTriggerPlayer())] )
call RemoveUnit( udg_Heroes[GetConvertedPlayerId(GetTriggerPlayer())] )
call PanCameraToTimedLocForPlayer( GetTriggerPlayer(), GetRectCenter(gg_rct_Wisp_Starting), 1.00 )
call CreateNUnitsAtLoc( 1, 'ewsp', GetTriggerPlayer(), GetRectCenter(gg_rct_Wisp_Starting), bj_UNIT_FACING )
endfunction
//===========================================================================
function InitTrig_Repickgelb takes nothing returns nothing
set gg_trg_Repickgelb = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Repickgelb, Player(4), "-repick", true )
call TriggerAddCondition( gg_trg_Repickgelb, Condition( function Trig_Repickgelb_Conditions ) )
call TriggerAddAction( gg_trg_Repickgelb, function Trig_Repickgelb_Actions )
endfunction
function Trig_Repickorange_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsOfPlayerAndTypeId(Player(5), 'ewsp')) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Repickorange_Actions takes nothing returns nothing
call SetUnitExplodedBJ( udg_Heroes[GetConvertedPlayerId(GetTriggerPlayer())], true )
call TriggerSleepAction( 0.10 )
call KillUnit( udg_Heroes[GetConvertedPlayerId(GetTriggerPlayer())] )
call RemoveUnit( udg_Heroes[GetConvertedPlayerId(GetTriggerPlayer())] )
call PanCameraToTimedLocForPlayer( GetTriggerPlayer(), GetRectCenter(gg_rct_Wisp_Starting), 1.00 )
call CreateNUnitsAtLoc( 1, 'ewsp', GetTriggerPlayer(), GetRectCenter(gg_rct_Wisp_Starting), bj_UNIT_FACING )
endfunction
//===========================================================================
function InitTrig_Repickorange takes nothing returns nothing
set gg_trg_Repickorange = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Repickorange, Player(5), "-repick", true )
call TriggerAddCondition( gg_trg_Repickorange, Condition( function Trig_Repickorange_Conditions ) )
call TriggerAddAction( gg_trg_Repickorange, function Trig_Repickorange_Actions )
endfunction
function Trig_Repickgrn_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsOfPlayerAndTypeId(Player(6), 'ewsp')) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Repickgrn_Actions takes nothing returns nothing
call SetUnitExplodedBJ( udg_Heroes[GetConvertedPlayerId(GetTriggerPlayer())], true )
call TriggerSleepAction( 0.10 )
call KillUnit( udg_Heroes[GetConvertedPlayerId(GetTriggerPlayer())] )
call RemoveUnit( udg_Heroes[GetConvertedPlayerId(GetTriggerPlayer())] )
call PanCameraToTimedLocForPlayer( GetTriggerPlayer(), GetRectCenter(gg_rct_Wisp_Starting), 1.00 )
call CreateNUnitsAtLoc( 1, 'ewsp', GetTriggerPlayer(), GetRectCenter(gg_rct_Wisp_Starting), bj_UNIT_FACING )
endfunction
//===========================================================================
function InitTrig_Repickgrn takes nothing returns nothing
set gg_trg_Repickgrn = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Repickgrn, Player(6), "-repick", true )
call TriggerAddCondition( gg_trg_Repickgrn, Condition( function Trig_Repickgrn_Conditions ) )
call TriggerAddAction( gg_trg_Repickgrn, function Trig_Repickgrn_Actions )
endfunction
function Trig_Repickrosa_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsOfPlayerAndTypeId(Player(7), 'ewsp')) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Repickrosa_Actions takes nothing returns nothing
call SetUnitExplodedBJ( udg_Heroes[GetConvertedPlayerId(GetTriggerPlayer())], true )
call TriggerSleepAction( 0.10 )
call KillUnit( udg_Heroes[GetConvertedPlayerId(GetTriggerPlayer())] )
call RemoveUnit( udg_Heroes[GetConvertedPlayerId(GetTriggerPlayer())] )
call PanCameraToTimedLocForPlayer( GetTriggerPlayer(), GetRectCenter(gg_rct_Wisp_Starting), 1.00 )
call CreateNUnitsAtLoc( 1, 'ewsp', GetTriggerPlayer(), GetRectCenter(gg_rct_Wisp_Starting), bj_UNIT_FACING )
endfunction
//===========================================================================
function InitTrig_Repickrosa takes nothing returns nothing
set gg_trg_Repickrosa = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Repickrosa, Player(7), "-repick", true )
call TriggerAddCondition( gg_trg_Repickrosa, Condition( function Trig_Repickrosa_Conditions ) )
call TriggerAddAction( gg_trg_Repickrosa, function Trig_Repickrosa_Actions )
endfunction
function Trig_Repickgrey_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsOfPlayerAndTypeId(Player(8), 'ewsp')) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Repickgrey_Actions takes nothing returns nothing
call SetUnitExplodedBJ( udg_Heroes[GetConvertedPlayerId(GetTriggerPlayer())], true )
call TriggerSleepAction( 0.10 )
call KillUnit( udg_Heroes[GetConvertedPlayerId(GetTriggerPlayer())] )
call RemoveUnit( udg_Heroes[GetConvertedPlayerId(GetTriggerPlayer())] )
call PanCameraToTimedLocForPlayer( GetTriggerPlayer(), GetRectCenter(gg_rct_Wisp_Starting), 1.00 )
call CreateNUnitsAtLoc( 1, 'ewsp', GetTriggerPlayer(), GetRectCenter(gg_rct_Wisp_Starting), bj_UNIT_FACING )
endfunction
//===========================================================================
function InitTrig_Repickgrey takes nothing returns nothing
set gg_trg_Repickgrey = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Repickgrey, Player(8), "-repick", true )
call TriggerAddCondition( gg_trg_Repickgrey, Condition( function Trig_Repickgrey_Conditions ) )
call TriggerAddAction( gg_trg_Repickgrey, function Trig_Repickgrey_Actions )
endfunction
function Trig_Repickhb_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsOfPlayerAndTypeId(Player(9), 'ewsp')) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Repickhb_Actions takes nothing returns nothing
call SetUnitExplodedBJ( udg_Heroes[GetConvertedPlayerId(GetTriggerPlayer())], true )
call TriggerSleepAction( 0.10 )
call KillUnit( udg_Heroes[GetConvertedPlayerId(GetTriggerPlayer())] )
call RemoveUnit( udg_Heroes[GetConvertedPlayerId(GetTriggerPlayer())] )
call PanCameraToTimedLocForPlayer( GetTriggerPlayer(), GetRectCenter(gg_rct_Wisp_Starting), 1.00 )
call CreateNUnitsAtLoc( 1, 'ewsp', GetTriggerPlayer(), GetRectCenter(gg_rct_Wisp_Starting), bj_UNIT_FACING )
endfunction
//===========================================================================
function InitTrig_Repickhb takes nothing returns nothing
set gg_trg_Repickhb = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Repickhb, Player(9), "-repick", true )
call TriggerAddCondition( gg_trg_Repickhb, Condition( function Trig_Repickhb_Conditions ) )
call TriggerAddAction( gg_trg_Repickhb, function Trig_Repickhb_Actions )
endfunction
function Trig_Repickdg_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsOfPlayerAndTypeId(Player(10), 'ewsp')) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Repickdg_Actions takes nothing returns nothing
call SetUnitExplodedBJ( udg_Heroes[GetConvertedPlayerId(GetTriggerPlayer())], true )
call TriggerSleepAction( 0.10 )
call KillUnit( udg_Heroes[GetConvertedPlayerId(GetTriggerPlayer())] )
call RemoveUnit( udg_Heroes[GetConvertedPlayerId(GetTriggerPlayer())] )
call PanCameraToTimedLocForPlayer( GetTriggerPlayer(), GetRectCenter(gg_rct_Wisp_Starting), 1.00 )
call CreateNUnitsAtLoc( 1, 'ewsp', GetTriggerPlayer(), GetRectCenter(gg_rct_Wisp_Starting), bj_UNIT_FACING )
endfunction
//===========================================================================
function InitTrig_Repickdg takes nothing returns nothing
set gg_trg_Repickdg = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Repickdg, Player(10), "-repick", true )
call TriggerAddCondition( gg_trg_Repickdg, Condition( function Trig_Repickdg_Conditions ) )
call TriggerAddAction( gg_trg_Repickdg, function Trig_Repickdg_Actions )
endfunction
function Trig_Repickbrown_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsOfPlayerAndTypeId(Player(11), 'ewsp')) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Repickbrown_Actions takes nothing returns nothing
call SetUnitExplodedBJ( udg_Heroes[GetConvertedPlayerId(GetTriggerPlayer())], true )
call TriggerSleepAction( 0.10 )
call KillUnit( udg_Heroes[GetConvertedPlayerId(GetTriggerPlayer())] )
call RemoveUnit( udg_Heroes[GetConvertedPlayerId(GetTriggerPlayer())] )
call PanCameraToTimedLocForPlayer( GetTriggerPlayer(), GetRectCenter(gg_rct_Wisp_Starting), 1.00 )
call CreateNUnitsAtLoc( 1, 'ewsp', GetTriggerPlayer(), GetRectCenter(gg_rct_Wisp_Starting), bj_UNIT_FACING )
endfunction
//===========================================================================
function InitTrig_Repickbrown takes nothing returns nothing
set gg_trg_Repickbrown = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Repickbrown, Player(11), "-repick", true )
call TriggerAddCondition( gg_trg_Repickbrown, Condition( function Trig_Repickbrown_Conditions ) )
call TriggerAddAction( gg_trg_Repickbrown, function Trig_Repickbrown_Actions )
endfunction
function Trig_smithenter_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_secretsmithland), 0.10 )
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_secretsmithland) )
endfunction
//===========================================================================
function InitTrig_smithenter takes nothing returns nothing
set gg_trg_smithenter = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_smithenter, gg_rct_secretsmithentrance )
call TriggerAddAction( gg_trg_smithenter, function Trig_smithenter_Actions )
endfunction
function Trig_smith_text_Func001001 takes nothing returns boolean
return ( Player(0) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_smith_text_Func002001 takes nothing returns boolean
return ( Player(1) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_smith_text_Func003001 takes nothing returns boolean
return ( Player(2) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_smith_text_Func004001 takes nothing returns boolean
return ( Player(3) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_smith_text_Func005001 takes nothing returns boolean
return ( Player(4) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_smith_text_Func006001 takes nothing returns boolean
return ( Player(5) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_smith_text_Func007001 takes nothing returns boolean
return ( Player(6) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_smith_text_Func008001 takes nothing returns boolean
return ( Player(7) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_smith_text_Func009001 takes nothing returns boolean
return ( Player(8) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_smith_text_Func010001 takes nothing returns boolean
return ( Player(9) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_smith_text_Func011001 takes nothing returns boolean
return ( Player(10) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_smith_text_Func012001 takes nothing returns boolean
return ( Player(11) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_smith_text_Actions takes nothing returns nothing
if ( Trig_smith_text_Func001001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[0], 5.00, "TRIGSTR_1864" )
else
call DoNothing( )
endif
if ( Trig_smith_text_Func002001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[1], 5.00, "TRIGSTR_1865" )
else
call DoNothing( )
endif
if ( Trig_smith_text_Func003001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[2], 5.00, "TRIGSTR_1866" )
else
call DoNothing( )
endif
if ( Trig_smith_text_Func004001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[3], 5.00, "TRIGSTR_1867" )
else
call DoNothing( )
endif
if ( Trig_smith_text_Func005001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[4], 5.00, "TRIGSTR_1868" )
else
call DoNothing( )
endif
if ( Trig_smith_text_Func006001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[5], 5.00, "TRIGSTR_1869" )
else
call DoNothing( )
endif
if ( Trig_smith_text_Func007001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[6], 5.00, "TRIGSTR_1870" )
else
call DoNothing( )
endif
if ( Trig_smith_text_Func008001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[7], 5.00, "TRIGSTR_1871" )
else
call DoNothing( )
endif
if ( Trig_smith_text_Func009001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[8], 5.00, "TRIGSTR_1872" )
else
call DoNothing( )
endif
if ( Trig_smith_text_Func010001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[9], 5.00, "TRIGSTR_1873" )
else
call DoNothing( )
endif
if ( Trig_smith_text_Func011001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[10], 5.00, "TRIGSTR_1874" )
else
call DoNothing( )
endif
if ( Trig_smith_text_Func012001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[11], 5.00, "TRIGSTR_1875" )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_smith_text takes nothing returns nothing
set gg_trg_smith_text = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_smith_text, gg_rct_secretsmithentrance )
call TriggerAddAction( gg_trg_smith_text, function Trig_smith_text_Actions )
endfunction
function Trig_smithraus_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) != Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_smithraus_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Arena), 0.10 )
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Arena) )
endfunction
//===========================================================================
function InitTrig_smithraus takes nothing returns nothing
set gg_trg_smithraus = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_smithraus, gg_rct_smithraus )
call TriggerAddCondition( gg_trg_smithraus, Condition( function Trig_smithraus_Conditions ) )
call TriggerAddAction( gg_trg_smithraus, function Trig_smithraus_Actions )
endfunction
function Trig_icelordenter_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_snowworldland), 0.00 )
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_snowworldland) )
endfunction
//===========================================================================
function InitTrig_icelordenter takes nothing returns nothing
set gg_trg_icelordenter = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_icelordenter, gg_rct_snowworldenter )
call TriggerAddAction( gg_trg_icelordenter, function Trig_icelordenter_Actions )
endfunction
function Trig_icelordtxt_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_icelordtxt_Func002001 takes nothing returns boolean
return ( Player(0) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_icelordtxt_Func003001 takes nothing returns boolean
return ( Player(1) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_icelordtxt_Func004001 takes nothing returns boolean
return ( Player(2) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_icelordtxt_Func005001 takes nothing returns boolean
return ( Player(3) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_icelordtxt_Func006001 takes nothing returns boolean
return ( Player(4) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_icelordtxt_Func007001 takes nothing returns boolean
return ( Player(5) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_icelordtxt_Func008001 takes nothing returns boolean
return ( Player(6) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_icelordtxt_Func009001 takes nothing returns boolean
return ( Player(7) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_icelordtxt_Func010001 takes nothing returns boolean
return ( Player(8) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_icelordtxt_Func011001 takes nothing returns boolean
return ( Player(9) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_icelordtxt_Func012001 takes nothing returns boolean
return ( Player(10) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_icelordtxt_Func013001 takes nothing returns boolean
return ( Player(11) == GetOwningPlayer(GetEnteringUnit()) )
endfunction
function Trig_icelordtxt_Actions takes nothing returns nothing
if ( Trig_icelordtxt_Func002001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[0], 5.00, "TRIGSTR_1895" )
else
call DoNothing( )
endif
if ( Trig_icelordtxt_Func003001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[1], 5.00, "TRIGSTR_1896" )
else
call DoNothing( )
endif
if ( Trig_icelordtxt_Func004001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[2], 5.00, "TRIGSTR_1897" )
else
call DoNothing( )
endif
if ( Trig_icelordtxt_Func005001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[3], 5.00, "TRIGSTR_1898" )
else
call DoNothing( )
endif
if ( Trig_icelordtxt_Func006001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[4], 5.00, "TRIGSTR_1899" )
else
call DoNothing( )
endif
if ( Trig_icelordtxt_Func007001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[5], 5.00, "TRIGSTR_1900" )
else
call DoNothing( )
endif
if ( Trig_icelordtxt_Func008001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[6], 5.00, "TRIGSTR_1901" )
else
call DoNothing( )
endif
if ( Trig_icelordtxt_Func009001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[7], 5.00, "TRIGSTR_1902" )
else
call DoNothing( )
endif
if ( Trig_icelordtxt_Func010001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[8], 5.00, "TRIGSTR_1903" )
else
call DoNothing( )
endif
if ( Trig_icelordtxt_Func011001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[9], 5.00, "TRIGSTR_1904" )
else
call DoNothing( )
endif
if ( Trig_icelordtxt_Func012001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[10], 5.00, "TRIGSTR_1905" )
else
call DoNothing( )
endif
if ( Trig_icelordtxt_Func013001() ) then
call DisplayTimedTextToForce( bj_FORCE_PLAYER[11], 5.00, "TRIGSTR_1906" )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_icelordtxt takes nothing returns nothing
set gg_trg_icelordtxt = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_icelordtxt, gg_rct_snowworldenter )
call TriggerAddCondition( gg_trg_icelordtxt, Condition( function Trig_icelordtxt_Conditions ) )
call TriggerAddAction( gg_trg_icelordtxt, function Trig_icelordtxt_Actions )
endfunction
function Trig_icelordraus_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) != Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_icelordraus_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Arena), 0.00 )
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Arena) )
endfunction
//===========================================================================
function InitTrig_icelordraus takes nothing returns nothing
set gg_trg_icelordraus = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_icelordraus, gg_rct_icelordraus )
call TriggerAddCondition( gg_trg_icelordraus, Condition( function Trig_icelordraus_Conditions ) )
call TriggerAddAction( gg_trg_icelordraus, function Trig_icelordraus_Actions )
endfunction
function Trig_Risk_1_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'h004' ) ) then
return false
endif
return true
endfunction
function Trig_Risk_1_Func001C takes nothing returns boolean
if ( not ( GetRandomInt(1, 2) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Risk_1_Actions takes nothing returns nothing
if ( Trig_Risk_1_Func001C() ) then
call KillUnit( GetTriggerUnit() )
call CreateItemLoc( ChooseRandomItemExBJ(0, ITEM_TYPE_PERMANENT), GetUnitLoc(GetTriggerUnit()) )
else
call KillUnit( GetTriggerUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Risk_1 takes nothing returns nothing
set gg_trg_Risk_1 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Risk_1, gg_rct_GambleTeam1 )
call TriggerAddCondition( gg_trg_Risk_1, Condition( function Trig_Risk_1_Conditions ) )
call TriggerAddAction( gg_trg_Risk_1, function Trig_Risk_1_Actions )
endfunction
function Trig_Risk_2_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'h004' ) ) then
return false
endif
return true
endfunction
function Trig_Risk_2_Func001C takes nothing returns boolean
if ( not ( GetRandomInt(1, 2) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Risk_2_Actions takes nothing returns nothing
if ( Trig_Risk_2_Func001C() ) then
call KillUnit( GetTriggerUnit() )
call CreateItemLoc( ChooseRandomItemExBJ(0, ITEM_TYPE_PERMANENT), GetUnitLoc(GetTriggerUnit()) )
else
call KillUnit( GetTriggerUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Risk_2 takes nothing returns nothing
set gg_trg_Risk_2 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Risk_2, gg_rct_GambleTeam2 )
call TriggerAddCondition( gg_trg_Risk_2, Condition( function Trig_Risk_2_Conditions ) )
call TriggerAddAction( gg_trg_Risk_2, function Trig_Risk_2_Actions )
endfunction
function Trig_duell_on_Actions takes nothing returns nothing
call ConditionalTriggerExecute( gg_trg_Setup_Duel_Timer )
endfunction
//===========================================================================
function InitTrig_duell_on takes nothing returns nothing
set gg_trg_duell_on = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_duell_on, Player(0), "-duell on", true )
call TriggerAddAction( gg_trg_duell_on, function Trig_duell_on_Actions )
endfunction
function Trig_dio_Actions takes nothing returns nothing
call CreateItemLoc( 'I01G', GetRectCenter(gg_rct_Gebiet_176) )
call TriggerSleepAction( 1.00 )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_dio takes nothing returns nothing
set gg_trg_dio = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_dio, gg_rct_diablosecr )
call TriggerAddAction( gg_trg_dio, function Trig_dio_Actions )
endfunction
function Trig_act1_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) != Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_act1_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_CreepSpawnBottomLeft), 0.30 )
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_CreepSpawnBottomLeft) )
endfunction
//===========================================================================
function InitTrig_act1 takes nothing returns nothing
set gg_trg_act1 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_act1, gg_rct_exit1 )
call TriggerAddCondition( gg_trg_act1, Condition( function Trig_act1_Conditions ) )
call TriggerAddAction( gg_trg_act1, function Trig_act1_Actions )
endfunction
function Trig_act2_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) != Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_act2_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_CreepSpawnBottom), 0.30 )
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_CreepSpawnBottom) )
endfunction
//===========================================================================
function InitTrig_act2 takes nothing returns nothing
set gg_trg_act2 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_act2, gg_rct_exit2 )
call TriggerAddCondition( gg_trg_act2, Condition( function Trig_act2_Conditions ) )
call TriggerAddAction( gg_trg_act2, function Trig_act2_Actions )
endfunction
function Trig_act3_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) != Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_act3_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_CreepSpawnTopLeft), 0.30 )
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_CreepSpawnTopLeft) )
endfunction
//===========================================================================
function InitTrig_act3 takes nothing returns nothing
set gg_trg_act3 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_act3, gg_rct_exit4 )
call TriggerAddCondition( gg_trg_act3, Condition( function Trig_act3_Conditions ) )
call TriggerAddAction( gg_trg_act3, function Trig_act3_Actions )
endfunction
function Trig_act4_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) != Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_act4_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_CreepSpawnBottomRight), 0.30 )
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_CreepSpawnBottomRight) )
endfunction
//===========================================================================
function InitTrig_act4 takes nothing returns nothing
set gg_trg_act4 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_act4, gg_rct_exit3 )
call TriggerAddCondition( gg_trg_act4, Condition( function Trig_act4_Conditions ) )
call TriggerAddAction( gg_trg_act4, function Trig_act4_Actions )
endfunction
function Trig_act5_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) != Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_act5_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_CreepSpawnTopRight), 0.30 )
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_CreepSpawnTopRight) )
endfunction
//===========================================================================
function InitTrig_act5 takes nothing returns nothing
set gg_trg_act5 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_act5, gg_rct_exit5 )
call TriggerAddCondition( gg_trg_act5, Condition( function Trig_act5_Conditions ) )
call TriggerAddAction( gg_trg_act5, function Trig_act5_Actions )
endfunction
function Trig_Select_Random_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'ewsp' ) ) then
return false
endif
return true
endfunction
function Trig_Select_Random_Func001002001001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'ncop' )
endfunction
function Trig_Select_Random_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetTriggerUnit(), GetUnitLoc(GroupPickRandomUnit(GetUnitsInRectMatching(gg_rct_randomzone, Condition(function Trig_Select_Random_Func001002001001002)))) )
endfunction
//===========================================================================
function InitTrig_Select_Random takes nothing returns nothing
set gg_trg_Select_Random = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Select_Random, gg_rct_random )
call TriggerAddCondition( gg_trg_Select_Random, Condition( function Trig_Select_Random_Conditions ) )
call TriggerAddAction( gg_trg_Select_Random, function Trig_Select_Random_Actions )
endfunction
function Trig_killact4_Actions takes nothing returns nothing
call DisplayTimedTextToForce( GetPlayersAll(), 20.00, "TRIGSTR_2466" )
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_ITg1_0984 )
endfunction
//===========================================================================
function InitTrig_killact4 takes nothing returns nothing
set gg_trg_killact4 = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_killact4, gg_unit_U011_0147, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_killact4, function Trig_killact4_Actions )
endfunction
function Trig_killact2_Actions takes nothing returns nothing
call DisplayTimedTextToForce( GetPlayersAll(), 20.00, "TRIGSTR_2467" )
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_ZTsx_0057 )
endfunction
//===========================================================================
function InitTrig_killact2 takes nothing returns nothing
set gg_trg_killact2 = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_killact2, gg_unit_OC32_0144, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_killact2, function Trig_killact2_Actions )
endfunction
function Trig_killact3_Actions takes nothing returns nothing
call DisplayTimedTextToForce( GetPlayersAll(), 20.00, "TRIGSTR_2468" )
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_ATg2_0605 )
endfunction
//===========================================================================
function InitTrig_killact3 takes nothing returns nothing
set gg_trg_killact3 = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_killact3, gg_unit_UC11_0116, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_killact3, function Trig_killact3_Actions )
endfunction
function Trig_Diablo_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call PauseAllUnitsBJ( true )
call TriggerSleepAction( 4.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 5.00, "TRIGSTR_4560" )
call TriggerSleepAction( 2.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 5.00, "TRIGSTR_4561" )
call TriggerSleepAction( 2.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 5.00, "TRIGSTR_4562" )
call TriggerSleepAction( 2.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 5.00, "TRIGSTR_4563" )
call TriggerSleepAction( 2.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 5.00, "TRIGSTR_4564" )
call TriggerSleepAction( 2.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 5.00, "TRIGSTR_4565" )
call TriggerSleepAction( 2.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 5.00, "TRIGSTR_4566" )
call TriggerSleepAction( 2.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 5.00, "TRIGSTR_4567" )
call TriggerSleepAction( 2.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 5.00, "TRIGSTR_4568" )
call TriggerSleepAction( 2.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 5.00, "TRIGSTR_4569" )
call TriggerSleepAction( 2.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 5.00, "TRIGSTR_4570" )
call TriggerSleepAction( 2.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 5.00, "TRIGSTR_4571" )
call TriggerSleepAction( 2.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 5.00, "TRIGSTR_4572" )
call TriggerSleepAction( 2.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 5.00, "TRIGSTR_4573" )
call TriggerSleepAction( 2.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 5.00, "TRIGSTR_4574" )
call TriggerSleepAction( 2.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 20.00, "TRIGSTR_2464" )
call TriggerSleepAction( 4.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 20.00, "TRIGSTR_2491" )
call TriggerSleepAction( 5.00 )
call CustomVictoryBJ( Player(0), true, true )
call CustomVictoryBJ( Player(1), true, true )
call CustomVictoryBJ( Player(2), true, true )
call CustomVictoryBJ( Player(3), true, true )
call CustomVictoryBJ( Player(4), true, true )
call CustomVictoryBJ( Player(5), true, true )
call CustomVictoryBJ( Player(6), true, true )
call CustomVictoryBJ( Player(7), true, true )
call CustomVictoryBJ( Player(8), true, true )
call CustomVictoryBJ( Player(9), true, true )
call CustomVictoryBJ( Player(10), true, true )
call CustomVictoryBJ( Player(11), true, true )
endfunction
//===========================================================================
function InitTrig_Diablo takes nothing returns nothing
set gg_trg_Diablo = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Diablo, gg_unit_U00W_0179, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_Diablo, function Trig_Diablo_Actions )
endfunction
function Trig_Fire_Slash_Combo_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A035' ) ) then
return false
endif
return true
endfunction
function Trig_Fire_Slash_Combo_Actions takes nothing returns nothing
set udg_victim = GetSpellTargetUnit()
set udg_blademaster = GetSpellAbilityUnit()
call PauseUnitBJ( true, udg_blademaster )
call PauseUnitBJ( true, udg_victim )
call SetUnitPathing( udg_blademaster, false )
call SetUnitFacingToFaceUnitTimed( udg_blademaster, udg_victim, 0 )
call SetUnitFacingToFaceUnitTimed( udg_victim, udg_blademaster, 0 )
call TriggerSleepAction( 0.01 )
call SetUnitTimeScalePercent( udg_blademaster, 25.00 )
call SetUnitAnimation( udg_blademaster, "Walk" )
call TriggerSleepAction( 0.10 )
call SetUnitTimeScalePercent( udg_blademaster, 0.10 )
call AddSpecialEffectTargetUnitBJ( "weapon", udg_blademaster, "Abilities\\Weapons\\PhoenixMissile\\Phoenix_Missile.mdl" )
set udg_SwordEffect2 = GetLastCreatedEffectBJ()
call TriggerSleepAction( 0.20 )
call DestroyEffectBJ( udg_SwordEffect2 )
call TriggerSleepAction( 0.02 )
call AddSpecialEffectTargetUnitBJ( "weapon", udg_blademaster, "Abilities\\Weapons\\PhoenixMissile\\Phoenix_Missile.mdl" )
set udg_SwordEffect = GetLastCreatedEffectBJ()
call SetUnitTimeScalePercent( udg_blademaster, 350.00 )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 5
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set udg_attackpoint = PolarProjectionBJ(GetUnitLoc(udg_victim), 150.00, ( GetUnitFacing(udg_blademaster) + GetRandomReal(-80.00, 80.00) ))
call SetUnitAnimationWithRarity( udg_blademaster, "Attack -Unarmed", RARITY_RARE )
call TriggerSleepAction( 0.10 )
call UnitDamageTargetBJ( udg_blademaster, udg_victim, 10000.00, ATTACK_TYPE_CHAOS, DAMAGE_TYPE_DIVINE )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_victim), "Objects\\Spawnmodels\\Human\\HumanLargeDeathExplode\\HumanLargeDeathExplode.mdl" )
call SetUnitAnimation( udg_victim, "death" )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_victim), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call SetUnitPositionLocFacingLocBJ( udg_blademaster, udg_attackpoint, GetUnitLoc(udg_victim) )
call TriggerSleepAction( 0.15 )
call UnitDamageTargetBJ( udg_blademaster, udg_victim, 10000.00, ATTACK_TYPE_CHAOS, DAMAGE_TYPE_DIVINE )
call SetUnitFacingToFaceUnitTimed( udg_blademaster, udg_victim, 0 )
call SetUnitAnimationWithRarity( udg_blademaster, "Attack -Unarmed", RARITY_RARE )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_victim), "Objects\\Spawnmodels\\Human\\HumanLargeDeathExplode\\HumanLargeDeathExplode.mdl" )
call SetUnitAnimation( udg_victim, "death" )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_victim), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call TriggerSleepAction( 0.15 )
call UnitDamageTargetBJ( udg_blademaster, udg_victim, 10000.00, ATTACK_TYPE_CHAOS, DAMAGE_TYPE_DIVINE )
call SetUnitFacingToFaceUnitTimed( udg_blademaster, udg_victim, 0 )
call SetUnitAnimationWithRarity( udg_blademaster, "Attack -Unarmed", RARITY_RARE )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_victim), "Objects\\Spawnmodels\\Human\\HumanLargeDeathExplode\\HumanLargeDeathExplode.mdl" )
call SetUnitAnimation( udg_victim, "death" )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_victim), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call SetUnitPositionLoc( udg_blademaster, PolarProjectionBJ(GetUnitLoc(udg_victim), 120.00, GetUnitFacing(udg_victim)) )
call ResetUnitAnimation( udg_victim )
call SetUnitFacingToFaceUnitTimed( udg_blademaster, udg_victim, 0 )
call SetUnitTimeScalePercent( udg_blademaster, 50.00 )
call SetUnitAnimation( udg_blademaster, "Attack -1HVar2" )
call TriggerSleepAction( 0.30 )
call UnitDamageTargetBJ( udg_blademaster, udg_victim, 10000.00, ATTACK_TYPE_CHAOS, DAMAGE_TYPE_DIVINE )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_victim), "Objects\\Spawnmodels\\Human\\SmallFlameSpawn\\SmallFlameSpawn.mdl" )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_victim), "Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl" )
call SetUnitAnimation( udg_victim, "death" )
call TriggerSleepAction( 0.20 )
call ResetUnitAnimation( udg_victim )
call SetUnitTimeScalePercent( udg_blademaster, 400.00 )
call UnitDamageTargetBJ( udg_blademaster, udg_victim, 10000.00, ATTACK_TYPE_CHAOS, DAMAGE_TYPE_DIVINE )
call AddSpecialEffectLocBJ( PolarProjectionBJ(GetUnitLoc(udg_victim), 50.00, 225.00), "Objects\\Spawnmodels\\Human\\SmallFlameSpawn\\SmallFlameSpawn.mdl" )
call AddSpecialEffectLocBJ( PolarProjectionBJ(GetUnitLoc(udg_victim), 100.00, 270.00), "Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl" )
call AddSpecialEffectLocBJ( PolarProjectionBJ(GetUnitLoc(udg_victim), 50.00, 135.00), "Objects\\Spawnmodels\\Human\\SmallFlameSpawn\\SmallFlameSpawn.mdl" )
call DestroyEffectBJ( udg_SwordEffect )
call TriggerSleepAction( 0.10 )
call SetUnitFacingTimed( udg_blademaster, GetUnitFacing(udg_victim), 0 )
call SetUnitTimeScalePercent( udg_blademaster, 1000.00 )
call SetUnitAnimation( udg_blademaster, "Stand" )
call TriggerSleepAction( 0.07 )
call SetUnitTimeScalePercent( udg_blademaster, 0.00 )
call TriggerSleepAction( 0.03 )
call SetUnitPositionLoc( udg_blademaster, PolarProjectionBJ(GetUnitLoc(udg_victim), 500.00, GetUnitFacing(udg_victim)) )
call TriggerSleepAction( 0.05 )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_blademaster), "Abilities\\Spells\\NightElf\\Blink\\BlinkCaster.mdl" )
call TriggerSleepAction( 0.10 )
call AddSpecialEffectTargetUnitBJ( "weapon", udg_blademaster, "Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl" )
call TriggerSleepAction( 0.10 )
call SetUnitTimeScalePercent( udg_blademaster, 100.00 )
call ResetUnitAnimation( udg_blademaster )
call PauseUnitBJ( false, udg_blademaster )
call PauseUnitBJ( false, udg_victim )
call SetUnitPathing( udg_blademaster, true )
set udg_blademaster = null
endfunction
//===========================================================================
function InitTrig_Fire_Slash_Combo takes nothing returns nothing
set gg_trg_Fire_Slash_Combo = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Fire_Slash_Combo, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Fire_Slash_Combo, Condition( function Trig_Fire_Slash_Combo_Conditions ) )
call TriggerAddAction( gg_trg_Fire_Slash_Combo, function Trig_Fire_Slash_Combo_Actions )
endfunction
function Trig_Jump_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A036' ) ) then
return false
endif
return true
endfunction
function Trig_Jump_Actions takes nothing returns nothing
set udg_JumpCaster = GetSpellAbilityUnit()
set udg_JumpCasterPoint = GetUnitLoc(GetSpellAbilityUnit())
set udg_JumpTargetPoint = GetSpellTargetLoc()
call PauseUnitBJ( true, udg_JumpCaster )
call SetUnitPathing( udg_JumpCaster, false )
call AddSpecialEffectTargetUnitBJ( "right hand", udg_JumpCaster, "Abilities\\Weapons\\IllidanMissile\\IllidanMissile.mdl" )
set udg_JumpTrailEffects[0] = GetLastCreatedEffectBJ()
call AddSpecialEffectTargetUnitBJ( "left hand", udg_JumpCaster, "Abilities\\Weapons\\IllidanMissile\\IllidanMissile.mdl" )
set udg_JumpTrailEffects[1] = GetLastCreatedEffectBJ()
call UnitAddAbilityBJ( 'Amrf', udg_JumpCaster )
call SetUnitTimeScalePercent( udg_JumpCaster, 50.00 )
call SetUnitAnimation( udg_JumpCaster, "spell slam" )
call EnableTrigger( gg_trg_JumpFlyLoop )
call SetUnitFlyHeightBJ( udg_JumpCaster, 550.00, 550.00 )
call TriggerSleepAction( 0.50 )
call SetUnitFlyHeightBJ( udg_JumpCaster, 0.00, 550.00 )
call TriggerSleepAction( 0.30 )
call SetUnitTimeScalePercent( udg_JumpCaster, 100.00 )
call ResetUnitAnimation( udg_JumpCaster )
call DisableTrigger( gg_trg_JumpFlyLoop )
call TriggerSleepAction( 0.05 )
call TriggerExecute( gg_trg_JumpStomping )
call UnitRemoveAbilityBJ( 'Amrf', udg_JumpCaster )
call PauseUnitBJ( false, udg_JumpCaster )
call SetUnitPathing( udg_JumpCaster, true )
call RemoveLocation(udg_JumpTargetPoint)
call RemoveLocation(udg_JumpCasterPoint)
set udg_JumpCaster = null
call DestroyEffectBJ( udg_JumpTrailEffects[0] )
call DestroyEffectBJ( udg_JumpTrailEffects[1] )
call TriggerSleepAction( 0.25 )
call DestroyEffectBJ( udg_StomperEffect )
endfunction
//===========================================================================
function InitTrig_Jump takes nothing returns nothing
set gg_trg_Jump = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Jump, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Jump, Condition( function Trig_Jump_Conditions ) )
call TriggerAddAction( gg_trg_Jump, function Trig_Jump_Actions )
endfunction
function Trig_JumpFlyLoop_Actions takes nothing returns nothing
set udg_JumpSecSecPoint = GetUnitLoc(udg_JumpCaster)
set udg_JumpSecPoint = PolarProjectionBJ(udg_JumpSecSecPoint, ( DistanceBetweenPoints(udg_JumpCasterPoint, udg_JumpTargetPoint) / 110.00 ), AngleBetweenPoints(udg_JumpCasterPoint, udg_JumpTargetPoint))
call SetUnitPositionLocFacingBJ( udg_JumpCaster, udg_JumpSecPoint, AngleBetweenPoints(udg_JumpCasterPoint, udg_JumpTargetPoint) )
call RemoveLocation(udg_JumpSecPoint)
call RemoveLocation(udg_JumpSecSecPoint)
endfunction
//===========================================================================
function InitTrig_JumpFlyLoop takes nothing returns nothing
set gg_trg_JumpFlyLoop = CreateTrigger( )
call DisableTrigger( gg_trg_JumpFlyLoop )
call TriggerRegisterTimerEventPeriodic( gg_trg_JumpFlyLoop, 0.01 )
call TriggerAddAction( gg_trg_JumpFlyLoop, function Trig_JumpFlyLoop_Actions )
endfunction
function Trig_JumpStomping_Func006001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A036', udg_JumpCaster) == 1 )
endfunction
function Trig_JumpStomping_Func007001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A036', udg_JumpCaster) == 2 )
endfunction
function Trig_JumpStomping_Func008001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A036', udg_JumpCaster) == 3 )
endfunction
function Trig_JumpStomping_Func009001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A036', udg_JumpCaster) == 4 )
endfunction
function Trig_JumpStomping_Func010001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A036', udg_JumpCaster) == 5 )
endfunction
function Trig_JumpStomping_Func011001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A036', udg_JumpCaster) == 6 )
endfunction
function Trig_JumpStomping_Func012001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A036', udg_JumpCaster) == 7 )
endfunction
function Trig_JumpStomping_Func013001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A036', udg_JumpCaster) == 8 )
endfunction
function Trig_JumpStomping_Func014001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A036', udg_JumpCaster) == 9 )
endfunction
function Trig_JumpStomping_Func015001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A036', udg_JumpCaster) == 10 )
endfunction
function Trig_JumpStomping_Func016001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A036', udg_JumpCaster) == 11 )
endfunction
function Trig_JumpStomping_Actions takes nothing returns nothing
set udg_StomperPoint = GetUnitLoc(udg_JumpCaster)
call CreateNUnitsAtLoc( 1, 'h005', GetOwningPlayer(udg_JumpCaster), udg_StomperPoint, bj_UNIT_FACING )
call AddSpecialEffectLocBJ( udg_StomperPoint, "Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl" )
call RemoveLocation(udg_StomperPoint)
set udg_StomperEffect = GetLastCreatedEffectBJ()
if ( Trig_JumpStomping_Func006001() ) then
call UnitAddAbilityBJ( 'A037', GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_JumpStomping_Func007001() ) then
call UnitAddAbilityBJ( 'A038', GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_JumpStomping_Func008001() ) then
call UnitAddAbilityBJ( 'A039', GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_JumpStomping_Func009001() ) then
call UnitAddAbilityBJ( 'A03A', GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_JumpStomping_Func010001() ) then
call UnitAddAbilityBJ( 'A03B', GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_JumpStomping_Func011001() ) then
call UnitAddAbilityBJ( 'A03C', GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_JumpStomping_Func012001() ) then
call UnitAddAbilityBJ( 'A03D', GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_JumpStomping_Func013001() ) then
call UnitAddAbilityBJ( 'A03E', GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_JumpStomping_Func014001() ) then
call UnitAddAbilityBJ( 'A03F', GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_JumpStomping_Func015001() ) then
call UnitAddAbilityBJ( 'A03G', GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_JumpStomping_Func016001() ) then
call UnitAddAbilityBJ( 'A03H', GetLastCreatedUnit() )
else
call DoNothing( )
endif
call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetLastCreatedUnit() )
call IssueImmediateOrderBJ( GetLastCreatedUnit(), "thunderclap" )
endfunction
//===========================================================================
function InitTrig_JumpStomping takes nothing returns nothing
set gg_trg_JumpStomping = CreateTrigger( )
call TriggerAddAction( gg_trg_JumpStomping, function Trig_JumpStomping_Actions )
endfunction
function Trig_Primary_Lotus_Main_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A03I' ) ) then
return false
endif
return true
endfunction
function Trig_Primary_Lotus_Main_Func025Func018001 takes nothing returns boolean
return ( IsUnitDeadBJ(udg_LotusCaster) == true )
endfunction
function Trig_Primary_Lotus_Main_Func025Func018002 takes nothing returns boolean
return ( IsUnitDeadBJ(udg_LotusTarget) == true )
endfunction
function Trig_Primary_Lotus_Main_Func025C takes nothing returns boolean
if ( not GetBooleanOr( Trig_Primary_Lotus_Main_Func025Func018001(), Trig_Primary_Lotus_Main_Func025Func018002() ) ) then
return false
endif
return true
endfunction
function Trig_Primary_Lotus_Main_Func027Func013Func001001 takes nothing returns boolean
return ( IsUnitDeadBJ(udg_LotusCaster) == true )
endfunction
function Trig_Primary_Lotus_Main_Func027Func013Func001002 takes nothing returns boolean
return ( IsUnitDeadBJ(udg_LotusTarget) == true )
endfunction
function Trig_Primary_Lotus_Main_Func027Func013C takes nothing returns boolean
if ( not GetBooleanOr( Trig_Primary_Lotus_Main_Func027Func013Func001001(), Trig_Primary_Lotus_Main_Func027Func013Func001002() ) ) then
return false
endif
return true
endfunction
function Trig_Primary_Lotus_Main_Func027Func016001 takes nothing returns boolean
return ( DistanceBetweenPoints(GetUnitLoc(udg_LotusTarget), udg_LotusPoint) >= 500.00 )
endfunction
function Trig_Primary_Lotus_Main_Actions takes nothing returns nothing
set udg_LotusCaster = GetSpellAbilityUnit()
set udg_LotusTarget = GetSpellTargetUnit()
set udg_LotusPoint = GetUnitLoc(udg_LotusTarget)
set udg_Eye_Angle = 36.00
call PauseUnitBJ( true, udg_LotusCaster )
call PauseUnitBJ( true, udg_LotusTarget )
call UnitAddAbilityBJ( 'Amrf', udg_LotusCaster )
call UnitAddAbilityBJ( 'Amrf', udg_LotusTarget )
call SetUnitPathing( udg_LotusCaster, false )
call SetUnitPathing( udg_LotusTarget, false )
call SetUnitAnimationWithRarity( udg_LotusCaster, "attack", RARITY_RARE )
call TriggerSleepAction( 0.10 )
call UnitDamageTargetBJ( udg_LotusCaster, udg_LotusTarget, I2R(( GetHeroStatBJ(bj_HEROSTAT_STR, udg_LotusCaster, true) * 15 )), ATTACK_TYPE_CHAOS, DAMAGE_TYPE_DIVINE )
call CreateNUnitsAtLoc( 1, 'h007', GetOwningPlayer(udg_LotusTarget), GetUnitLoc(udg_LotusCaster), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 2.00, 'BTLF', GetLastCreatedUnit() )
call SetUnitFlyHeightBJ( GetLastCreatedUnit(), 200.00, 1000000000.00 )
call SetUnitFlyHeightBJ( udg_LotusTarget, 500.00, 500.00 )
call SetUnitAnimation( udg_LotusTarget, "death" )
call TriggerSleepAction( 0.20 )
set udg_LotusFade = 0.00
call EnableTrigger( gg_trg_Primary_Lotus_Fade )
set udg_LotusAngle = GetRandomDirectionDeg()
call SetUnitFacingTimed( udg_LotusCaster, udg_LotusAngle, 0 )
if ( Trig_Primary_Lotus_Main_Func025C() ) then
call DisableTrigger( gg_trg_Primary_Lotus_Fade )
call DisableTrigger( gg_trg_Primary_Lotus_TargetMove )
call SetUnitFlyHeightBJ( udg_LotusTarget, 0.00, 1000.00 )
call SetUnitFlyHeightBJ( udg_LotusCaster, 0.00, 1000.00 )
call SetUnitVertexColorBJ( udg_LotusCaster, 100, 100, 100, 0.00 )
call TriggerSleepAction( 0.20 )
call UnitRemoveAbilityBJ( 'Amrf', udg_LotusCaster )
call UnitRemoveAbilityBJ( 'Amrf', udg_LotusTarget )
call PauseUnitBJ( false, udg_LotusCaster )
call PauseUnitBJ( false, udg_LotusTarget )
call SetUnitPathing( udg_LotusTarget, true )
call SetUnitPathing( udg_LotusCaster, true )
call RemoveLocation (udg_LotusPoint)
set udg_LotusCaster = null
set udg_LotusTarget = null
return
else
call DoNothing( )
endif
call TriggerSleepAction( 0.20 )
set bj_forLoopBIndex = 1
set bj_forLoopBIndexEnd = 10
loop
exitwhen bj_forLoopBIndex > bj_forLoopBIndexEnd
call TriggerSleepAction( 0.05 )
call EnableTrigger( gg_trg_Primary_Lotus_TargetMove )
call SetUnitTimeScalePercent( udg_LotusCaster, 200.00 )
call SetUnitVertexColorBJ( udg_LotusCaster, 100, 100, 100, 0.00 )
call SetUnitPositionLocFacingLocBJ( udg_LotusCaster, PolarProjectionBJ(GetUnitLoc(udg_LotusTarget), 10.00, ( udg_LotusAngle + 180.00 )), GetUnitLoc(udg_LotusTarget) )
call SetUnitFlyHeightBJ( udg_LotusCaster, GetUnitFlyHeight(udg_LotusTarget), 1000000000.00 )
call SetUnitAnimation( udg_LotusCaster, "attack" )
call SetUnitAnimation( udg_LotusTarget, "death" )
call TriggerSleepAction( 0.05 )
call UnitDamageTargetBJ( udg_LotusCaster, udg_LotusTarget, I2R(( GetHeroStatBJ(bj_HEROSTAT_STR, udg_LotusCaster, true) * 10 )), ATTACK_TYPE_CHAOS, DAMAGE_TYPE_DIVINE )
call CreateNUnitsAtLoc( 1, 'h007', GetOwningPlayer(udg_LotusCaster), GetUnitLoc(udg_LotusTarget), GetUnitFacing(udg_LotusCaster) )
call UnitApplyTimedLifeBJ( 2.00, 'BTLF', GetLastCreatedUnit() )
if ( Trig_Primary_Lotus_Main_Func027Func013C() ) then
call SetUnitFlyHeightBJ( udg_LotusTarget, 0.00, 1000.00 )
call SetUnitFlyHeightBJ( udg_LotusCaster, 0.00, 1000.00 )
call SetUnitVertexColorBJ( udg_LotusCaster, 100, 100, 100, 0.00 )
call TriggerSleepAction( 0.50 )
call UnitRemoveAbilityBJ( 'Amrf', udg_LotusCaster )
call UnitRemoveAbilityBJ( 'Amrf', udg_LotusTarget )
call PauseUnitBJ( false, udg_LotusCaster )
call PauseUnitBJ( false, udg_LotusTarget )
call SetUnitPathing( udg_LotusTarget, true )
call SetUnitPathing( udg_LotusCaster, true )
call RemoveLocation (udg_LotusPoint)
set udg_LotusCaster = null
set udg_LotusTarget = null
return
else
call DoNothing( )
endif
set udg_LotusFade = 0.00
call EnableTrigger( gg_trg_Primary_Lotus_Fade )
if ( Trig_Primary_Lotus_Main_Func027Func016001() ) then
set udg_LotusAngle = AngleBetweenPoints(GetUnitLoc(udg_LotusTarget), udg_LotusPoint)
else
set udg_LotusAngle = GetRandomDirectionDeg()
endif
call SetUnitFacingTimed( udg_LotusCaster, udg_LotusAngle, 0 )
set bj_forLoopBIndex = bj_forLoopBIndex + 1
endloop
call DisableTrigger( gg_trg_Primary_Lotus_TargetMove )
call ShowUnitHide( udg_LotusCaster )
call CreateNUnitsAtLoc( 1, 'h006', Player(0), GetUnitLoc(udg_LotusTarget), bj_UNIT_FACING )
set udg_LotusDummy = GetLastCreatedUnit()
call SetUnitPathing( udg_LotusDummy, false )
call SetUnitFlyHeightBJ( udg_LotusDummy, 650.00, 1000000000.00 )
call TriggerSleepAction( 0.05 )
call DisableTrigger( gg_trg_Primary_Lotus_Fade )
call TriggerSleepAction( 0.20 )
call SetUnitAnimation( udg_LotusDummy, "spell throw" )
call SetUnitAnimation( udg_LotusTarget, "death" )
call TriggerSleepAction( 0.05 )
call CreateNUnitsAtLoc( 1, 'h007', GetOwningPlayer(udg_LotusCaster), GetUnitLoc(udg_LotusTarget), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 2.00, 'BTLF', GetLastCreatedUnit() )
call SetUnitVertexColorBJ( udg_LotusCaster, 100, 100, 100, 0.00 )
call SetUnitFlyHeightBJ( GetLastCreatedUnit(), 600.00, 1000000000.00 )
call SetUnitFlyHeightBJ( udg_LotusDummy, 0.00, 2100.00 )
call SetUnitFlyHeightBJ( udg_LotusTarget, 0.00, 2100.00 )
call TriggerSleepAction( 0.30 )
call TerrainDeformationRippleBJ( 4, false, GetUnitLoc(udg_LotusTarget), 300.00, 1024, 64, 0.50, 100.00 )
call ShowUnitShow( udg_LotusCaster )
call SetUnitPositionLocFacingBJ( udg_LotusCaster, GetUnitLoc(udg_LotusDummy), GetUnitFacing(udg_LotusDummy) )
call SetUnitFlyHeightBJ( udg_LotusCaster, 0.00, 1000000000.00 )
call RemoveUnit( udg_LotusDummy )
call UnitRemoveAbilityBJ( 'Amrf', udg_LotusCaster )
call UnitRemoveAbilityBJ( 'Amrf', udg_LotusTarget )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_LotusTarget), "Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitDamageTargetBJ( udg_LotusCaster, udg_LotusTarget, I2R(( GetHeroStatBJ(bj_HEROSTAT_STR, udg_LotusCaster, true) * 15 )), ATTACK_TYPE_CHAOS, DAMAGE_TYPE_DIVINE )
call TriggerSleepAction( 1.00 )
call SetUnitPathing( udg_LotusTarget, true )
call SetUnitPathing( udg_LotusCaster, true )
call PauseUnitBJ( false, udg_LotusCaster )
call PauseUnitBJ( false, udg_LotusTarget )
call RemoveLocation (udg_LotusPoint)
set udg_LotusCaster = null
set udg_LotusDummy = null
set udg_LotusTarget = null
endfunction
//===========================================================================
function InitTrig_Primary_Lotus_Main takes nothing returns nothing
set gg_trg_Primary_Lotus_Main = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Primary_Lotus_Main, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Primary_Lotus_Main, Condition( function Trig_Primary_Lotus_Main_Conditions ) )
call TriggerAddAction( gg_trg_Primary_Lotus_Main, function Trig_Primary_Lotus_Main_Actions )
endfunction
function Trig_Primary_Lotus_Fade_Func003C takes nothing returns boolean
if ( not ( udg_LotusFade >= 100.00 ) ) then
return false
endif
return true
endfunction
function Trig_Primary_Lotus_Fade_Actions takes nothing returns nothing
set udg_LotusFade = ( udg_LotusFade + 3.00 )
call SetUnitVertexColorBJ( udg_LotusCaster, 100, 100, 100, udg_LotusFade )
if ( Trig_Primary_Lotus_Fade_Func003C() ) then
call DisableTrigger( GetTriggeringTrigger() )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Primary_Lotus_Fade takes nothing returns nothing
set gg_trg_Primary_Lotus_Fade = CreateTrigger( )
call DisableTrigger( gg_trg_Primary_Lotus_Fade )
call TriggerRegisterTimerEventPeriodic( gg_trg_Primary_Lotus_Fade, 0.01 )
call TriggerAddAction( gg_trg_Primary_Lotus_Fade, function Trig_Primary_Lotus_Fade_Actions )
endfunction
function Trig_Primary_Lotus_TargetMove_Actions takes nothing returns nothing
call SetUnitPositionLoc( udg_LotusTarget, PolarProjectionBJ(GetUnitLoc(udg_LotusTarget), 7.00, udg_LotusAngle) )
endfunction
//===========================================================================
function InitTrig_Primary_Lotus_TargetMove takes nothing returns nothing
set gg_trg_Primary_Lotus_TargetMove = CreateTrigger( )
call DisableTrigger( gg_trg_Primary_Lotus_TargetMove )
call TriggerRegisterTimerEventPeriodic( gg_trg_Primary_Lotus_TargetMove, 0.01 )
call TriggerAddAction( gg_trg_Primary_Lotus_TargetMove, function Trig_Primary_Lotus_TargetMove_Actions )
endfunction
function Trig_Camouflage_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A03J' ) ) then
return false
endif
return true
endfunction
function Trig_Camouflage_Actions takes nothing returns nothing
set udg_Caster = GetSpellAbilityUnit()
call UnitRemoveAbilityBJ( 'A03J', udg_Caster )
call UnitAddAbilityBJ( 'A03K', udg_Caster )
set udg_Original_Color = GetPlayerColor(GetOwningPlayer(udg_Caster))
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 3
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set udg_Current_RGBT[GetForLoopIndexA()] = 100.00
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set udg_RGBT[4] = 60.00
set udg_Add[4] = 5.00
set udg_Current_Terrain = 'Wsnw'
call EnableTrigger( gg_trg_Transparency )
call TriggerExecute( gg_trg_Check_Terrain )
call EnableTrigger( gg_trg_Check_Terrain )
call EnableTrigger( gg_trg_Drain_Mana )
endfunction
//===========================================================================
function InitTrig_Camouflage takes nothing returns nothing
set gg_trg_Camouflage = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Camouflage, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Camouflage, Condition( function Trig_Camouflage_Conditions ) )
call TriggerAddAction( gg_trg_Camouflage, function Trig_Camouflage_Actions )
endfunction
function Trig_Turn_off_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A03K' ) ) then
return false
endif
return true
endfunction
function Trig_Turn_off_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Check_Terrain )
call DisableTrigger( gg_trg_Drain_Mana )
call UnitRemoveAbilityBJ( 'A03K', udg_Caster )
call UnitAddAbilityBJ( 'A03J', udg_Caster )
call SetUnitColor( udg_Caster, udg_Original_Color )
set udg_New_RGBT[1] = 255.00
set udg_New_RGBT[2] = 255.00
set udg_New_RGBT[3] = 255.00
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 3
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set udg_RGBT[GetForLoopIndexA()] = ( ( udg_New_RGBT[GetForLoopIndexA()] * 100.00 ) / 255.00 )
set udg_Add[GetForLoopIndexA()] = ( ( udg_Current_RGBT[GetForLoopIndexA()] - udg_RGBT[GetForLoopIndexA()] ) / 10.00 )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set udg_RGBT[4] = 0.00
set udg_Add[4] = -5.00
call EnableTrigger( gg_trg_Transparency )
set udg_Counter = 10
call EnableTrigger( gg_trg_RGB )
endfunction
//===========================================================================
function InitTrig_Turn_off takes nothing returns nothing
set gg_trg_Turn_off = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Turn_off, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Turn_off, Condition( function Trig_Turn_off_Conditions ) )
call TriggerAddAction( gg_trg_Turn_off, function Trig_Turn_off_Actions )
endfunction
function Trig_Check_Terrain_Func005C takes nothing returns boolean
if ( not ( GetTerrainTypeBJ(udg_Point) == udg_Current_Terrain ) ) then
return false
endif
return true
endfunction
function Trig_Check_Terrain_Func008C takes nothing returns boolean
if ( not ( GetTerrainTypeBJ(udg_Point) == 'Dlav' ) ) then
return false
endif
return true
endfunction
function Trig_Check_Terrain_Func010Func007001 takes nothing returns boolean
return ( GetTerrainTypeBJ(udg_Point) == 'Qstp' )
endfunction
function Trig_Check_Terrain_Func010Func007002 takes nothing returns boolean
return ( GetTerrainTypeBJ(udg_Point) == 'Vstp' )
endfunction
function Trig_Check_Terrain_Func010C takes nothing returns boolean
if ( not GetBooleanOr( Trig_Check_Terrain_Func010Func007001(), Trig_Check_Terrain_Func010Func007002() ) ) then
return false
endif
return true
endfunction
function Trig_Check_Terrain_Func012Func001001 takes nothing returns boolean
return ( GetTerrainTypeBJ(udg_Point) == 'Zdtr' )
endfunction
function Trig_Check_Terrain_Func012Func001002 takes nothing returns boolean
return ( GetTerrainTypeBJ(udg_Point) == 'Bdrh' )
endfunction
function Trig_Check_Terrain_Func012C takes nothing returns boolean
if ( not GetBooleanOr( Trig_Check_Terrain_Func012Func001001(), Trig_Check_Terrain_Func012Func001002() ) ) then
return false
endif
return true
endfunction
function Trig_Check_Terrain_Func014Func007001 takes nothing returns boolean
return ( GetTerrainTypeBJ(udg_Point) == 'cYc1' )
endfunction
function Trig_Check_Terrain_Func014Func007002 takes nothing returns boolean
return ( GetTerrainTypeBJ(udg_Point) == 'Ysqd' )
endfunction
function Trig_Check_Terrain_Func014C takes nothing returns boolean
if ( not GetBooleanOr( Trig_Check_Terrain_Func014Func007001(), Trig_Check_Terrain_Func014Func007002() ) ) then
return false
endif
return true
endfunction
function Trig_Check_Terrain_Func016Func001001 takes nothing returns boolean
return ( GetTerrainTypeBJ(udg_Point) == 'Lgrd' )
endfunction
function Trig_Check_Terrain_Func016Func001002 takes nothing returns boolean
return ( GetTerrainTypeBJ(udg_Point) == 'Zvin' )
endfunction
function Trig_Check_Terrain_Func016C takes nothing returns boolean
if ( not GetBooleanOr( Trig_Check_Terrain_Func016Func001001(), Trig_Check_Terrain_Func016Func001002() ) ) then
return false
endif
return true
endfunction
function Trig_Check_Terrain_Func018C takes nothing returns boolean
if ( not ( GetTerrainTypeBJ(udg_Point) == 'Ddkr' ) ) then
return false
endif
return true
endfunction
function Trig_Check_Terrain_Func020Func001001 takes nothing returns boolean
return ( GetTerrainTypeBJ(udg_Point) == 'Isnw' )
endfunction
function Trig_Check_Terrain_Func020Func001002 takes nothing returns boolean
return ( GetTerrainTypeBJ(udg_Point) == 'Wsnw' )
endfunction
function Trig_Check_Terrain_Func020C takes nothing returns boolean
if ( not GetBooleanOr( Trig_Check_Terrain_Func020Func001001(), Trig_Check_Terrain_Func020Func001002() ) ) then
return false
endif
return true
endfunction
function Trig_Check_Terrain_Func022C takes nothing returns boolean
if ( not ( GetTerrainTypeBJ(udg_Point) == 'Ydrt' ) ) then
return false
endif
return true
endfunction
function Trig_Check_Terrain_Func024C takes nothing returns boolean
if ( not ( GetTerrainTypeBJ(udg_Point) == 'Fgrd' ) ) then
return false
endif
return true
endfunction
function Trig_Check_Terrain_Actions takes nothing returns nothing
set udg_Point = GetUnitLoc(udg_Caster)
call MoveRectToLoc( gg_rct_Terrain_Checker, udg_Point )
call RemoveLocation( udg_Point )
set udg_Point = GetRectCenter(gg_rct_Terrain_Checker)
if ( Trig_Check_Terrain_Func005C() ) then
call RemoveLocation( udg_Point )
return
else
call DoNothing( )
endif
// LAVA
if ( Trig_Check_Terrain_Func008C() ) then
set udg_Current_Terrain = GetTerrainTypeBJ(udg_Point)
call SetUnitColor( udg_Caster, PLAYER_COLOR_RED )
set udg_New_RGBT[1] = 255.00
set udg_New_RGBT[2] = 30.00
set udg_New_RGBT[3] = 30.00
else
call DoNothing( )
endif
// Steinweg
if ( Trig_Check_Terrain_Func010C() ) then
set udg_Current_Terrain = GetTerrainTypeBJ(udg_Point)
call SetUnitColor( udg_Caster, PLAYER_COLOR_LIGHT_GRAY )
set udg_New_RGBT[1] = 40.00
set udg_New_RGBT[2] = 60.00
set udg_New_RGBT[3] = 40.00
else
call DoNothing( )
endif
// DIRT
if ( Trig_Check_Terrain_Func012C() ) then
set udg_Current_Terrain = GetTerrainTypeBJ(udg_Point)
call SetUnitColor( udg_Caster, PLAYER_COLOR_LIGHT_GRAY )
set udg_New_RGBT[1] = 70.00
set udg_New_RGBT[2] = 50.00
set udg_New_RGBT[3] = 20.00
else
call DoNothing( )
endif
// PURPLE STONE
if ( Trig_Check_Terrain_Func014C() ) then
set udg_Current_Terrain = GetTerrainTypeBJ(udg_Point)
call SetUnitColor( udg_Caster, PLAYER_COLOR_LIGHT_GRAY )
set udg_New_RGBT[1] = 144.00
set udg_New_RGBT[2] = 144.00
set udg_New_RGBT[3] = 144.00
else
call DoNothing( )
endif
// GRASS
if ( Trig_Check_Terrain_Func016C() ) then
set udg_Current_Terrain = GetTerrainTypeBJ(udg_Point)
call SetUnitColor( udg_Caster, PLAYER_COLOR_GREEN )
set udg_New_RGBT[1] = 0.00
set udg_New_RGBT[2] = 150.00
set udg_New_RGBT[3] = 0.00
else
call DoNothing( )
endif
// Dunkler Fels
if ( Trig_Check_Terrain_Func018C() ) then
set udg_Current_Terrain = GetTerrainTypeBJ(udg_Point)
call SetUnitColor( udg_Caster, PLAYER_COLOR_AQUA )
set udg_New_RGBT[1] = 120.00
set udg_New_RGBT[2] = 20.00
set udg_New_RGBT[3] = 0.00
else
call DoNothing( )
endif
// Schnee
if ( Trig_Check_Terrain_Func020C() ) then
set udg_Current_Terrain = GetTerrainTypeBJ(udg_Point)
call SetUnitColor( udg_Caster, PLAYER_COLOR_LIGHT_GRAY )
set udg_New_RGBT[1] = 222.00
set udg_New_RGBT[2] = 222.00
set udg_New_RGBT[3] = 222.00
else
call DoNothing( )
endif
// Erde
if ( Trig_Check_Terrain_Func022C() ) then
set udg_Current_Terrain = GetTerrainTypeBJ(udg_Point)
call SetUnitColor( udg_Caster, PLAYER_COLOR_LIGHT_BLUE )
set udg_New_RGBT[1] = 128.00
set udg_New_RGBT[2] = 128.00
set udg_New_RGBT[3] = 60.00
else
call DoNothing( )
endif
// YELLOW GRASS
if ( Trig_Check_Terrain_Func024C() ) then
set udg_Current_Terrain = GetTerrainTypeBJ(udg_Point)
call SetUnitColor( udg_Caster, PLAYER_COLOR_YELLOW )
set udg_New_RGBT[1] = 150.00
set udg_New_RGBT[2] = 100.00
set udg_New_RGBT[3] = 0.00
else
call DoNothing( )
endif
// -------------------------
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 3
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set udg_RGBT[GetForLoopIndexA()] = ( ( udg_New_RGBT[GetForLoopIndexA()] * 100.00 ) / 255.00 )
set udg_Add[GetForLoopIndexA()] = ( ( udg_Current_RGBT[GetForLoopIndexA()] - udg_RGBT[GetForLoopIndexA()] ) / 10.00 )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call RemoveLocation( udg_Point )
set udg_Counter = 10
call EnableTrigger( gg_trg_RGB )
endfunction
//===========================================================================
function InitTrig_Check_Terrain takes nothing returns nothing
set gg_trg_Check_Terrain = CreateTrigger( )
call DisableTrigger( gg_trg_Check_Terrain )
call TriggerRegisterTimerEventPeriodic( gg_trg_Check_Terrain, 0.20 )
call TriggerAddAction( gg_trg_Check_Terrain, function Trig_Check_Terrain_Actions )
endfunction
function Trig_Transparency_Func001C takes nothing returns boolean
if ( not ( udg_Current_RGBT[4] != udg_RGBT[4] ) ) then
return false
endif
return true
endfunction
function Trig_Transparency_Actions takes nothing returns nothing
if ( Trig_Transparency_Func001C() ) then
set udg_Current_RGBT[4] = ( udg_Current_RGBT[4] + udg_Add[4] )
call SetUnitVertexColorBJ( udg_Caster, udg_Current_RGBT[1], udg_Current_RGBT[2], udg_Current_RGBT[3], udg_Current_RGBT[4] )
else
call DisableTrigger( GetTriggeringTrigger() )
endif
endfunction
//===========================================================================
function InitTrig_Transparency takes nothing returns nothing
set gg_trg_Transparency = CreateTrigger( )
call DisableTrigger( gg_trg_Transparency )
call TriggerRegisterTimerEventPeriodic( gg_trg_Transparency, 0.05 )
call TriggerAddAction( gg_trg_Transparency, function Trig_Transparency_Actions )
endfunction
function Trig_RGB_Func004C takes nothing returns boolean
if ( not ( udg_Counter == 0 ) ) then
return false
endif
return true
endfunction
function Trig_RGB_Actions takes nothing returns nothing
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 3
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set udg_Current_RGBT[GetForLoopIndexA()] = ( udg_Current_RGBT[GetForLoopIndexA()] - udg_Add[GetForLoopIndexA()] )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call SetUnitVertexColorBJ( udg_Caster, udg_Current_RGBT[1], udg_Current_RGBT[2], udg_Current_RGBT[3], udg_Current_RGBT[4] )
set udg_Counter = ( udg_Counter - 1 )
if ( Trig_RGB_Func004C() ) then
call DisableTrigger( GetTriggeringTrigger() )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_RGB takes nothing returns nothing
set gg_trg_RGB = CreateTrigger( )
call DisableTrigger( gg_trg_RGB )
call TriggerRegisterTimerEventPeriodic( gg_trg_RGB, 0.05 )
call TriggerAddAction( gg_trg_RGB, function Trig_RGB_Actions )
endfunction
function Trig_Drain_Mana_Func002C takes nothing returns boolean
if ( not ( GetUnitStateSwap(UNIT_STATE_MANA, udg_Caster) <= 10 ) ) then
return false
endif
return true
endfunction
function Trig_Drain_Mana_Actions takes nothing returns nothing
call SetUnitManaBJ( udg_Caster, ( GetUnitStateSwap(UNIT_STATE_MANA, udg_Caster) - 0.40 ) )
if ( Trig_Drain_Mana_Func002C() ) then
call TriggerExecute( gg_trg_Turn_off )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Drain_Mana takes nothing returns nothing
set gg_trg_Drain_Mana = CreateTrigger( )
call DisableTrigger( gg_trg_Drain_Mana )
call TriggerRegisterTimerEventPeriodic( gg_trg_Drain_Mana, 0.10 )
call TriggerAddAction( gg_trg_Drain_Mana, function Trig_Drain_Mana_Actions )
endfunction
function Trig_TimeStop_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A03M' ) ) then
return false
endif
return true
endfunction
function Trig_TimeStop_Func008A takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "cloudoffog", GetUnitLoc(GetLastCreatedUnit()) )
call SetUnitTimeScalePercent( GetEnumUnit(), 0.00 )
endfunction
function Trig_TimeStop_Actions takes nothing returns nothing
// Creates a "Time Sphere" unit. After 1 sec the Sphere unleashes a Cloud ability
// That is only used to give a buff to units beneath
// The animation of the sphere has to be stopped. Unless it, the sphere would disappear
call CreateNUnitsAtLoc( 1, 'u012', GetOwningPlayer(GetSpellAbilityUnit()), GetSpellTargetLoc(), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 30.00, 'BTLF', GetLastCreatedUnit() )
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_TimeSpheres )
call TriggerSleepAction( 1.00 )
call ForGroupBJ( udg_TimeSpheres, function Trig_TimeStop_Func008A )
endfunction
//===========================================================================
function InitTrig_TimeStop takes nothing returns nothing
set gg_trg_TimeStop = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_TimeStop, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_TimeStop, Condition( function Trig_TimeStop_Conditions ) )
call TriggerAddAction( gg_trg_TimeStop, function Trig_TimeStop_Actions )
endfunction
function Trig_TimeStopPeriodic_Func002Func001C takes nothing returns boolean
if ( not ( UnitHasBuffBJ(GetEnumUnit(), 'B005') == true ) ) then
return false
endif
return true
endfunction
function Trig_TimeStopPeriodic_Func002A takes nothing returns nothing
if ( Trig_TimeStopPeriodic_Func002Func001C() ) then
call PauseUnitBJ( true, GetEnumUnit() )
call SetUnitTimeScalePercent( GetEnumUnit(), 0.00 )
call UnitPauseTimedLifeBJ( true, GetEnumUnit() )
else
call PauseUnitBJ( false, GetEnumUnit() )
call SetUnitTimeScalePercent( GetEnumUnit(), 100.00 )
call UnitPauseTimedLifeBJ( false, GetEnumUnit() )
endif
endfunction
function Trig_TimeStopPeriodic_Actions takes nothing returns nothing
// Checks unit buffs. Freezes units (0 anim spd), also stops expiration timers
call ForGroupBJ( GetUnitsInRectAll(GetPlayableMapRect()), function Trig_TimeStopPeriodic_Func002A )
endfunction
//===========================================================================
function InitTrig_TimeStopPeriodic takes nothing returns nothing
set gg_trg_TimeStopPeriodic = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_TimeStopPeriodic, 1.00 )
call TriggerAddAction( gg_trg_TimeStopPeriodic, function Trig_TimeStopPeriodic_Actions )
endfunction
function Trig_Dimensional_Drift_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A03O' ) ) then
return false
endif
return true
endfunction
function Trig_Dimensional_Drift_Func001001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A03O', GetSpellAbilityUnit()) == 1 )
endfunction
function Trig_Dimensional_Drift_Func005001002 takes nothing returns boolean
return ( GetFilterUnit() != GetSpellAbilityUnit() )
endfunction
function Trig_Dimensional_Drift_Func005A takes nothing returns nothing
call SetUnitVertexColorBJ( GetEnumUnit(), 5.00, 30.00, 5.00, 0 )
call AddSpecialEffectTargetUnitBJ( "chest", GetEnumUnit(), "war3mapImported\\GlowGreen.mdx" )
set udg_DriftGlow[udg_CurrentNumber] = GetLastCreatedEffectBJ()
set udg_CurrentNumber = ( udg_CurrentNumber + 1 )
endfunction
function Trig_Dimensional_Drift_Func024001002 takes nothing returns boolean
return ( GetFilterUnit() != GetSpellAbilityUnit() )
endfunction
function Trig_Dimensional_Drift_Func024A takes nothing returns nothing
call SetUnitVertexColorBJ( GetEnumUnit(), 100.00, 100.00, 100.00, 0 )
endfunction
function Trig_Dimensional_Drift_Actions takes nothing returns nothing
if ( Trig_Dimensional_Drift_Func001001() ) then
set udg_DriftTime = 20.00
else
call DoNothing( )
endif
set udg_CurrentNumber = 1
set udg_DriftingUnit = GetSpellAbilityUnit()
call CinematicFadeBJ( bj_CINEFADETYPE_FADEIN, 0.30, "ReplaceableTextures\\CameraMasks\\White_mask.blp", 100.00, 100.00, 100.00, 0 )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Dimensional_Drift_Func005001002)), function Trig_Dimensional_Drift_Func005A )
call UnitRemoveBuffsBJ( bj_REMOVEBUFFS_ALL, udg_DriftingUnit )
call TriggerSleepAction( 0.03 )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUT, 0.50, "ReplaceableTextures\\CameraMasks\\DreamFilter_Mask.blp", 50.00, 100.00, 50.00, 0.00 )
call SetTerrainFogExBJ( 0, 0.00, 4000.00, 0, 10.00, 100, 10.00 )
call SetUnitVertexColorBJ( GetSpellAbilityUnit(), 30.00, 100.00, 30.00, 40.00 )
call AddSpecialEffectTargetUnitBJ( "origin", GetSpellAbilityUnit(), "Abilities\\Spells\\NightElf\\Tranquility\\TranquilityTarget.mdl" )
set udg_DrifterEffect = GetLastCreatedEffectBJ()
call TriggerSleepAction( ( udg_DriftTime - 4.70 ) )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = udg_CurrentNumber
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call DestroyEffectBJ( udg_DriftGlow[GetForLoopIndexA()] )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call TriggerSleepAction( 4.70 )
call SetUnitPathing( udg_DriftingUnit, true )
call UnitRemoveBuffBJ( 'B006', udg_DriftingUnit )
call SetUnitInvulnerable( udg_DriftingUnit, false )
set udg_DriftingUnit = null
call CinematicFadeBJ( bj_CINEFADETYPE_FADEIN, 0.30, "ReplaceableTextures\\CameraMasks\\White_mask.blp", 100.00, 100.00, 100.00, 0 )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Dimensional_Drift_Func024001002)), function Trig_Dimensional_Drift_Func024A )
call SetUnitVertexColorBJ( GetSpellAbilityUnit(), 100.00, 100.00, 100.00, 0.00 )
call DestroyEffectBJ( udg_DrifterEffect )
call ResetTerrainFogBJ( )
endfunction
//===========================================================================
function InitTrig_Dimensional_Drift takes nothing returns nothing
set gg_trg_Dimensional_Drift = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Dimensional_Drift, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Dimensional_Drift, Condition( function Trig_Dimensional_Drift_Conditions ) )
call TriggerAddAction( gg_trg_Dimensional_Drift, function Trig_Dimensional_Drift_Actions )
endfunction
function Trig_Silence_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'e003', GetOwningPlayer(udg_DriftingUnit), GetUnitLoc(udg_DriftingUnit), bj_UNIT_FACING )
call UnitAddAbilityBJ( 'A007', GetLastCreatedUnit() )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "silence", GetUnitLoc(udg_DriftingUnit) )
call TriggerSleepAction( 0.02 )
call SetUnitInvulnerable( udg_DriftingUnit, true )
call RemoveUnit( GetLastCreatedUnit() )
endfunction
//===========================================================================
function InitTrig_Silence takes nothing returns nothing
set gg_trg_Silence = CreateTrigger( )
call TriggerAddAction( gg_trg_Silence, function Trig_Silence_Actions )
endfunction
function Trig_Walk_it_Through_Func001001 takes nothing returns boolean
return ( CountUnitsInGroup(GetUnitsInRangeOfLocAll(120.00, GetUnitLoc(udg_DriftingUnit))) == 1 )
endfunction
function Trig_Walk_it_Through_Func002001 takes nothing returns boolean
return ( CountUnitsInGroup(GetUnitsInRangeOfLocAll(120.00, GetUnitLoc(udg_DriftingUnit))) > 1 )
endfunction
function Trig_Walk_it_Through_Actions takes nothing returns nothing
if ( Trig_Walk_it_Through_Func001001() ) then
call SetUnitPathing( udg_DriftingUnit, true )
else
call DoNothing( )
endif
if ( Trig_Walk_it_Through_Func002001() ) then
call SetUnitPathing( udg_DriftingUnit, false )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Walk_it_Through takes nothing returns nothing
set gg_trg_Walk_it_Through = CreateTrigger( )
call DisableTrigger( gg_trg_Walk_it_Through )
call TriggerRegisterTimerEventPeriodic( gg_trg_Walk_it_Through, 0.10 )
call TriggerAddAction( gg_trg_Walk_it_Through, function Trig_Walk_it_Through_Actions )
endfunction
function Trig_Kamehameha_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A03P' ) ) then
return false
endif
return true
endfunction
function Trig_Kamehameha_Func004002003 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Kamehameha_Func005A takes nothing returns nothing
call CameraSetEQNoiseForPlayer( GetOwningPlayer(GetEnumUnit()), I2R(( GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetSpellAbilityUnit()) * 2 )) )
call CameraSetTargetNoiseForPlayer( GetOwningPlayer(GetEnumUnit()), I2R(( GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetSpellAbilityUnit()) * 3 )), 200.00 )
endfunction
function Trig_Kamehameha_Func019Func005002003001 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(GetFilterUnit()), GetOwningPlayer(GetTriggerUnit())) == false )
endfunction
function Trig_Kamehameha_Func019Func005002003002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_ANCIENT) == false )
endfunction
function Trig_Kamehameha_Func019Func005002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Kamehameha_Func019Func005002003001(), Trig_Kamehameha_Func019Func005002003002() )
endfunction
function Trig_Kamehameha_Func019Func006A takes nothing returns nothing
call UnitDamageTargetBJ( GetLastCreatedUnit(), GetEnumUnit(), udg_LocReal, ATTACK_TYPE_MELEE, DAMAGE_TYPE_NORMAL )
call UnitAddTypeBJ( UNIT_TYPE_ANCIENT, GetEnumUnit() )
endfunction
function Trig_Kamehameha_Func019Func008Func001C takes nothing returns boolean
if ( not ( IsDestructableAliveBJ(GetEnumDestructable()) == true ) ) then
return false
endif
return true
endfunction
function Trig_Kamehameha_Func019Func008A takes nothing returns nothing
if ( Trig_Kamehameha_Func019Func008Func001C() ) then
call KillDestructable( GetEnumDestructable() )
else
endif
endfunction
function Trig_Kamehameha_Func020Func002002003001 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(GetFilterUnit()), GetOwningPlayer(GetTriggerUnit())) == false )
endfunction
function Trig_Kamehameha_Func020Func002002003002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_ANCIENT) == true )
endfunction
function Trig_Kamehameha_Func020Func002002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Kamehameha_Func020Func002002003001(), Trig_Kamehameha_Func020Func002002003002() )
endfunction
function Trig_Kamehameha_Func020Func003A takes nothing returns nothing
call UnitRemoveTypeBJ( UNIT_TYPE_ANCIENT, GetEnumUnit() )
endfunction
function Trig_Kamehameha_Func027A takes nothing returns nothing
call CameraClearNoiseForPlayer( GetEnumPlayer() )
endfunction
function Trig_Kamehameha_Actions takes nothing returns nothing
set udg_LocPoint1 = GetUnitLoc(GetSpellAbilityUnit())
set udg_LocPoint2 = GetSpellTargetLoc()
set udg_LocPoint3 = PolarProjectionBJ(udg_LocPoint1, 150.00, AngleBetweenPoints(udg_LocPoint1, udg_LocPoint2))
set udg_TempUnitGroup = GetUnitsInRangeOfLocMatching(512, udg_LocPoint1, Condition(function Trig_Kamehameha_Func004002003))
call ForGroupBJ( udg_TempUnitGroup, function Trig_Kamehameha_Func005A )
call DestroyGroup( udg_TempUnitGroup )
call AddSpecialEffectLocBJ( udg_LocPoint3, "Objects\\Spawnmodels\\NightElf\\NEDeathSmall\\NEDeathSmall.mdl" )
call TriggerExecute( gg_trg_Destroy_Effect )
call AddSpecialEffectLocBJ( udg_LocPoint3, "Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl" )
call TriggerExecute( gg_trg_Destroy_Effect )
call CreateNUnitsAtLoc( 1, 'h009', GetOwningPlayer(GetSpellAbilityUnit()), udg_LocPoint3, AngleBetweenPoints(udg_LocPoint1, udg_LocPoint2) )
call SetUnitScalePercent( GetLastCreatedUnit(), ( 250.00 + I2R(( GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetSpellAbilityUnit()) * 10 )) ), ( 250.00 + I2R(( GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetSpellAbilityUnit()) * 10 )) ), ( 250.00 + I2R(( GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetSpellAbilityUnit()) * 10 )) ) )
call CreateNUnitsAtLoc( 1, 'h008', GetOwningPlayer(GetSpellAbilityUnit()), udg_LocPoint3, AngleBetweenPoints(udg_LocPoint1, udg_LocPoint2) )
call SetUnitScalePercent( GetLastCreatedUnit(), ( 350.00 + I2R(( GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetSpellAbilityUnit()) * 10 )) ), ( 350.00 + I2R(( GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetSpellAbilityUnit()) * 10 )) ), ( 350.00 + I2R(( GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetSpellAbilityUnit()) * 10 )) ) )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 15.00 )
call KillUnit( GetLastCreatedUnit() )
call RemoveLocation( udg_LocPoint3 )
set udg_LocReal = ( ( ( I2R(GetHeroStatBJ(bj_HEROSTAT_INT, GetTriggerUnit(), true)) * ( 5.00 + 5.00 ) ) * 2.00 ) + 100.00 )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 5
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set udg_LocPoint3 = PolarProjectionBJ(udg_LocPoint1, ( I2R(GetForLoopIndexA()) * 200.00 ), AngleBetweenPoints(udg_LocPoint1, udg_LocPoint2))
call SetTerrainTypeBJ( udg_LocPoint3, 'Bdrh', -1, 2, 0 )
call SetTerrainTypeBJ( udg_LocPoint3, 'Ydrt', -1, 1, 0 )
call CreateNUnitsAtLoc( 1, 'h00A', GetOwningPlayer(GetTriggerUnit()), udg_LocPoint3, bj_UNIT_FACING )
set udg_TempUnitGroup = GetUnitsInRangeOfLocMatching(300.00, udg_LocPoint3, Condition(function Trig_Kamehameha_Func019Func005002003))
call ForGroupBJ( udg_TempUnitGroup, function Trig_Kamehameha_Func019Func006A )
call DestroyGroup( udg_TempUnitGroup )
call EnumDestructablesInCircleBJ( 300.00, udg_LocPoint3, function Trig_Kamehameha_Func019Func008A )
call RemoveLocation( udg_LocPoint3 )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 5
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set udg_LocPoint3 = PolarProjectionBJ(udg_LocPoint1, ( I2R(GetForLoopIndexA()) * 200.00 ), AngleBetweenPoints(udg_LocPoint1, udg_LocPoint2))
set udg_TempUnitGroup = GetUnitsInRangeOfLocMatching(300.00, udg_LocPoint3, Condition(function Trig_Kamehameha_Func020Func002002003))
call ForGroupBJ( udg_TempUnitGroup, function Trig_Kamehameha_Func020Func003A )
call DestroyGroup( udg_TempUnitGroup )
call RemoveLocation( udg_LocPoint3 )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set udg_LocPoint3 = PolarProjectionBJ(udg_LocPoint1, ( I2R(GetForLoopIndexA()) * 900.00 ), AngleBetweenPoints(udg_LocPoint1, udg_LocPoint2))
call TerrainDeformationWaveBJ( 3.00, udg_LocPoint1, udg_LocPoint3, 400.00, 128.00, 1.00 )
call RemoveLocation( udg_LocPoint1 )
call RemoveLocation( udg_LocPoint2 )
call RemoveLocation( udg_LocPoint3 )
call TriggerSleepAction( 2 )
call ForForce( GetPlayersAll(), function Trig_Kamehameha_Func027A )
endfunction
//===========================================================================
function InitTrig_Kamehameha takes nothing returns nothing
set gg_trg_Kamehameha = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Kamehameha, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Kamehameha, Condition( function Trig_Kamehameha_Conditions ) )
call TriggerAddAction( gg_trg_Kamehameha, function Trig_Kamehameha_Actions )
endfunction
function Trig_Destroy_Effect_Actions takes nothing returns nothing
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endfunction
//===========================================================================
function InitTrig_Destroy_Effect takes nothing returns nothing
set gg_trg_Destroy_Effect = CreateTrigger( )
call TriggerAddAction( gg_trg_Destroy_Effect, function Trig_Destroy_Effect_Actions )
endfunction
//=========================================================================================
//*******
//Slash *
//*******
//
//by: wyrmlord
//
//How to Implement:
//1. Copy the custom script section into your map's custom script section.
//(Make sure to have a global gamecache variable named udg_cache)
//2. Make a new trigger named "Slash" and convert that trigger to custom text.
//3. Delete all text shown and then paste in this spell
//4. Replace the spell ability rawcode with the one being used for this spell in your map.
//5. Save the map.
//6. Have fun using the spell!
//=========================================================================================
constant function Slash_Id takes nothing returns integer
return 'A03Q' //Slash Ability rawcode
endfunction
constant function Slash_Damage takes real level returns real
return 5. + level * 90. //Damage delt to enemies.
endfunction
constant function Slash_Amount takes real level returns real
return 70. + level * 0. //Amount of times the unit will warp around in an area.
endfunction
constant function Slash_Radius takes real level returns real
return 200. + level * 0. //Radius that the hero will warp around in.
endfunction
constant function Slash_Hit_Radius takes nothing returns real
return 200. //Damages units withing this radius from caster.
endfunction
constant function Slash_Timer_Speed takes nothing returns real
return .01 //Rate at which the hero will warp around in an area.
endfunction
constant function Slash_Attack_Type takes nothing returns attacktype
return ATTACK_TYPE_CHAOS
endfunction
constant function Slash_Damage_Type takes nothing returns damagetype
return DAMAGE_TYPE_DIVINE
endfunction
constant function Slash_Weapon_Type takes nothing returns weapontype
return WEAPON_TYPE_METAL_HEAVY_SLICE
endfunction
constant function Slash_Hit_Effect takes nothing returns string
return "Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl" //Effect when an enemy is damaged.
endfunction
constant function Slash_Caster_Effect takes nothing returns string
return "Abilities\\Weapons\\PhoenixMissile\\Phoenix_Missile_mini.mdl" //Effect used on the caster.
endfunction
constant function Slash_Attach takes nothing returns string
return "weapon" //Attachment point for the caster effect.
endfunction
//=========================================================================
function Slash_Destructables takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function Slash_Effect takes nothing returns nothing
local timer t=GetExpiredTimer()
local unit u=GetHandleUnit(t,"caster")
local real x=GetHandleReal(t,"startX")
local real y=GetHandleReal(t,"startY")
local integer i=GetHandleInt(t,"number")-1
local group g=CreateGroup()
local unit d
local real a=GetHandleReal(t,"slash_level")
local real x2=GetRandomReal(x-Slash_Radius(a),x+Slash_Radius(a))
local real y2=GetRandomReal(y-Slash_Radius(a),x+Slash_Radius(a))
local rect r=Rect(x2-150,y2-150,x2+150,y2+150)
if i<R2I(Slash_Amount(a)) then
call EnumDestructablesInRect(r,null,function Slash_Destructables)
call SetUnitPosition(u,x2,y2)
call SetUnitAnimation(u,"attack")
call GroupEnumUnitsInRange(g,x2,y2,Slash_Hit_Radius(),null)
loop
set d=FirstOfGroup(g)
exitwhen d==null
if IsUnitEnemy(d,GetOwningPlayer(u)) then
call UnitDamageTarget(u,d,Slash_Damage(a),true,false,Slash_Attack_Type(),Slash_Damage_Type(),Slash_Weapon_Type())
call DestroyEffect(AddSpecialEffect(Slash_Hit_Effect(),GetUnitX(d),GetUnitY(d)))
endif
call GroupRemoveUnit(g,d)
endloop
call SetHandleInt(t,"number",i+2)
else
call SetUnitPosition(u,x,y)
call SetUnitInvulnerable(u,false)
call SetUnitPathing(u,true)
call SetUnitTimeScale(u,1.)
call DestroyEffect(GetHandleEffect(t,"slash_effect"))
call FlushHandleLocals(t)
call PauseTimer(t)
call DestroyTimer(t)
endif
call RemoveRect(r)
call DestroyGroup(g)
set r=null
set t=null
set u=null
set g=null
set d=null
endfunction
function Slash_Main takes nothing returns nothing
local timer t=CreateTimer()
local unit u=GetTriggerUnit()
local real x=GetUnitX(u)
local real y=GetUnitY(u)
call SetHandleReal(t,"slash_level",I2R(GetUnitAbilityLevel(u,Slash_Id())))
call SetHandleHandle(t,"slash_effect",AddSpecialEffectTarget(Slash_Caster_Effect(),u,Slash_Attach()))
call SetHandleReal(t,"startX",x)
call SetHandleReal(t,"startY",y)
call SetHandleInt(t,"number",1)
call SetHandleHandle(t,"caster",u)
call SetUnitInvulnerable(u,true)
call SetUnitTimeScale(u,1000)
call SetUnitPathing(u,false)
call TimerStart(t,Slash_Timer_Speed(),true,function Slash_Effect)
set t=null
set u=null
endfunction
function Slash_Condition takes nothing returns boolean
return GetSpellAbilityId()==Slash_Id()
endfunction
function InitTrig_Slash takes nothing returns nothing
local trigger t=CreateTrigger()
local integer i=0
loop
exitwhen i==16
call TriggerRegisterPlayerUnitEvent(t,Player(i),ConvertPlayerUnitEvent(274),null)
set i=i+1
endloop
call TriggerAddCondition(t,Condition(function Slash_Condition))
call TriggerAddAction(t,function Slash_Main)
set t=null
endfunction
//=========================================================================================
//*************
//Chain Throw *
//*************
//
//by: wyrmlord
//
//How to Implement:
//1. Copy the custom script section into your map's custom script section.
//(Make sure to have a global gamecache variable named udg_cache)
//2. Make a new trigger named "Chain Throw" and convert that trigger to custom text.
//3. Delete all text shown and then paste in this spell
//4. Replace the spell ability rawcode with the one being used for this spell in your map.
//5. Save the map.
//6. Have fun using the spell!
//=========================================================================================
constant function Chain_Throw_Id takes nothing returns integer
return 'A03S' //Spell Ability Id
endfunction
constant function Chain_Throw_Caster_Effect takes nothing returns string
return "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl"
endfunction
constant function Chain_Throw_Caster_Attach_Point takes nothing returns string
return "origin"
endfunction
constant function Chain_Throw_Target_Effect takes nothing returns string
return "Abilities\\Weapons\\PhoenixMissile\\Phoenix_Missile_mini.mdl"
endfunction
constant function Chain_Throw_Target_Attach_Point takes nothing returns string
return "chest"
endfunction
constant function Chain_Throw_Attack_Type takes nothing returns attacktype
return ATTACK_TYPE_CHAOS //Attack type used when a unit is damaged.
endfunction
constant function Chain_Throw_Damage_Type takes nothing returns damagetype
return DAMAGE_TYPE_NORMAL //Damage type used when a unit is damaged.
endfunction
constant function Chain_Throw_Weapon_Type takes nothing returns weapontype
return WEAPON_TYPE_WHOKNOWS //Weapon type used when a unit is damaged.
endfunction
constant function Chain_Throw_Lightning takes nothing returns string
return "LEAS" //Lightning used.
endfunction
constant function Chain_Throw_Damage takes real level returns real
return 5. + level * 200. //Damage for every time unit hits another unit.
endfunction
constant function Chain_Throw_Spin_Duration takes nothing returns real
return 2.1 //Duration of spinning in circle.
endfunction
constant function Chain_Throw_Release_Duration takes nothing returns real
return 1.5 //Duration for the release knockback effect.
endfunction
constant function Chain_Throw_Spin_Distance takes nothing returns real
return 6. //Distance moved after timer expires.
endfunction
constant function Chain_Throw_Timer_Speed takes nothing returns real
return .05 //Speed at which the unit is spun and damage is done.
endfunction
constant function Chain_Throw_Release_Distance takes nothing returns real
return 13. //Distance unit is moved back after release timer expires.
endfunction
constant function Chain_Throw_Release_Timer takes nothing returns real
return .03 //Speed of the release periodic timer.
endfunction
constant function Chain_Throw_Enemy_Knockback takes nothing returns real
return 13. //Distance an enemy is moved back when hit.
endfunction
//Chain Throw Spell
function Chain_Throw_Destructables takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function Chain_Throw_Knockback_Group takes unit enemy,unit caster returns nothing
local unit e=enemy
local unit c=caster
local group g=CreateGroup()
local unit d
local real x=GetUnitX(e)
local real y=GetUnitY(e)
local real x2
local real y2
local real a
local rect r=Rect(x-150,y-150,x+150,y+150)
local real l=GetHandleReal(c,"level")
call EnumDestructablesInRect(r,null,function Chain_Throw_Destructables)
call GroupEnumUnitsInRange(g,x,y,100,null)
loop
set d=FirstOfGroup(g)
exitwhen d==null
if d!=e and IsUnitType(d,UNIT_TYPE_STRUCTURE)==false and d!=c and GetUnitState(d,ConvertUnitState(0))>0 then
set a=180/3.14159*Atan2(GetUnitY(d)-y,GetUnitX(d)-x)
set x2=GetUnitX(d)+Chain_Throw_Enemy_Knockback()*Cos(a*(3.14159/180))
set y2=GetUnitY(d)+Chain_Throw_Enemy_Knockback()*Sin(a*(3.14159/180))
call GroupEnumUnitsInRange(g,x2,y2,100,null)
call SetUnitPosition(d,x2,y2)
call UnitDamageTarget(c,d,Chain_Throw_Damage(l),true,false,Chain_Throw_Attack_Type(),Chain_Throw_Damage_Type(),Chain_Throw_Weapon_Type())
call UnitDamageTarget(c,e,Chain_Throw_Damage(l),true,false,Chain_Throw_Attack_Type(),Chain_Throw_Damage_Type(),Chain_Throw_Weapon_Type())
endif
call GroupRemoveUnit(g,d)
endloop
call DestroyGroup(g)
call RemoveRect(r)
set r=null
set g=null
set d=null
set e=null
set c=null
endfunction
function Chain_Throw_Release_Move takes nothing returns nothing
local timer z=GetExpiredTimer()
local unit c=GetHandleUnit(z,"cast")
local unit e=GetHandleUnit(z,"targ")
local real a=GetHandleReal(z,"ang")
local real x=GetUnitX(e)
local real y=GetUnitY(e)
local real d=GetHandleReal(z,"dur")
if d<Chain_Throw_Release_Duration() then
set x=x+Chain_Throw_Release_Distance()*Cos(a*(3.14159/180))
set y=y+Chain_Throw_Release_Distance()*Sin(a*(3.14159/180))
call Chain_Throw_Knockback_Group(e,c)
call SetUnitPosition(e,x,y)
call SetHandleReal(z,"dur",d+Chain_Throw_Timer_Speed())
else
call PauseTimer(z)
call SetHandleReal(c,"level",0.)
call FlushHandleLocals(z)
call DestroyTimer(z)
endif
set z=null
set c=null
set e=null
endfunction
function Chain_Throw_Release takes unit target, unit caster, real angle, timer t returns nothing
call SetHandleHandle(t,"cast",caster)
call SetHandleHandle(t,"targ",target)
call SetHandleReal(t,"ang",angle)
call SetHandleReal(t,"dur",.01)
call TimerStart(t,Chain_Throw_Release_Timer(),true,function Chain_Throw_Release_Move)
endfunction
function Chain_Throw_Swing takes nothing returns nothing
local timer t=GetExpiredTimer()
local unit c=GetHandleUnit(t,"caster")
local unit e=GetHandleUnit(t,"target")
local lightning l=GetHandleLightning(t,"lightning")
local real d=GetHandleReal(t,"distance")
local real a=180/3.14159*Atan2(GetUnitY(e)-GetUnitY(c),GetUnitX(e)-GetUnitX(c))+Chain_Throw_Spin_Distance()
local real x=GetUnitX(c)+d*Cos(a*(3.14159/180))
local real y=GetUnitY(c)+d*Sin(a*(3.14159/180))
local real ex=GetHandleReal(t,"expired_time")
if d<490 then
call SetHandleReal(t,"distance",d+10)
endif
if GetUnitState(c,ConvertUnitState(0))>0 and GetUnitCurrentOrder(c)==OrderId("channel") and ex<Chain_Throw_Spin_Duration() then
if IsTerrainPathable(x,y,ConvertPathingType(2))==false then
call SetUnitPosition(e,x,y)
call MoveLightning(l,true,GetUnitX(c),GetUnitY(c),x,y)
endif
call Chain_Throw_Knockback_Group(e,c)
call SetHandleReal(t,"expired_time",ex+Chain_Throw_Timer_Speed())
else
call PauseTimer(t)
call DestroyLightning(l)
call DestroyEffect(GetHandleEffect(t,"cast_effect"))
call DestroyEffect(GetHandleEffect(t,"targ_effect"))
call FlushHandleLocals(t)
call SetUnitPathing(e,true)
call PauseUnit(e,false)
call Chain_Throw_Release(e,c,a+70,t)
endif
set t=null
set c=null
set e=null
set l=null
endfunction
function Chain_Throw_Main takes nothing returns nothing
local timer t=CreateTimer()
local unit c=GetTriggerUnit()
local unit e=GetSpellTargetUnit()
local real x=GetUnitX(e)-GetUnitX(c)
local real y=GetUnitY(e)-GetUnitY(c)
call SetHandleReal(c,"level",I2R(GetUnitAbilityLevel(c,Chain_Throw_Id())))
call SetHandleHandle(t,"caster",c)
call SetHandleHandle(t,"target",e)
call SetHandleHandle(t,"lightning",AddLightning(Chain_Throw_Lightning(),true,GetUnitX(c),GetUnitY(c),GetUnitX(e),GetUnitY(e)))
call SetHandleHandle(t,"targ_effect",AddSpecialEffectTarget(Chain_Throw_Target_Effect(),e,Chain_Throw_Target_Attach_Point()))
call SetHandleHandle(t,"cast_effect",AddSpecialEffectTarget(Chain_Throw_Caster_Effect(),c,Chain_Throw_Caster_Attach_Point()))
call SetHandleReal(t,"distance",SquareRoot(x*x+y*y))
call SetHandleReal(t,"expired_time",.01)
call SetUnitPathing(e,false)
call PauseUnit(e,true)
call TimerStart(t,Chain_Throw_Timer_Speed(),true,function Chain_Throw_Swing)
set t=null
set c=null
set e=null
endfunction
//==========================================================================
function Chain_Throw_Conditions takes nothing returns boolean
return GetSpellAbilityId()==Chain_Throw_Id()
endfunction
function InitTrig_Chain_Throw takes nothing returns nothing
local trigger t=CreateTrigger()
local integer i=0
loop
exitwhen i==16 //Max player slots.
call TriggerRegisterPlayerUnitEvent(t,Player(i),ConvertPlayerUnitEvent(274),null)
set i=i+1
endloop
call TriggerAddCondition(t,Condition(function Chain_Throw_Conditions))
call TriggerAddAction(t,function Chain_Throw_Main)
set t=null
endfunction
function Trig_Drain_Mana_ag_Func002C takes nothing returns boolean
if ( not ( GetUnitStateSwap(UNIT_STATE_MANA, udg_AgilCaster) <= 10 ) ) then
return false
endif
return true
endfunction
function Trig_Drain_Mana_ag_Actions takes nothing returns nothing
call SetUnitManaBJ( udg_AgilCaster, ( GetUnitStateSwap(UNIT_STATE_MANA, udg_AgilCaster) - 0.30 ) )
if ( Trig_Drain_Mana_ag_Func002C() ) then
call TriggerExecute( gg_trg_Turn_off_agi )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Drain_Mana_ag takes nothing returns nothing
set gg_trg_Drain_Mana_ag = CreateTrigger( )
call DisableTrigger( gg_trg_Drain_Mana_ag )
call TriggerRegisterTimerEventPeriodic( gg_trg_Drain_Mana_ag, 0.10 )
call TriggerAddAction( gg_trg_Drain_Mana_ag, function Trig_Drain_Mana_ag_Actions )
endfunction
function Trig_Turn_off_agi_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A03V' ) ) then
return false
endif
return true
endfunction
function Trig_Turn_off_agi_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Drain_Mana_ag )
call UnitRemoveAbilityBJ( 'A03V', udg_AgilCaster )
call UnitAddAbilityBJ( 'A03U', udg_AgilCaster )
call SetUnitTimeScalePercent( udg_AgilCaster, 100.00 )
call SetUnitMoveSpeed( udg_AgilCaster, 350.00 )
endfunction
//===========================================================================
function InitTrig_Turn_off_agi takes nothing returns nothing
set gg_trg_Turn_off_agi = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Turn_off_agi, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Turn_off_agi, Condition( function Trig_Turn_off_agi_Conditions ) )
call TriggerAddAction( gg_trg_Turn_off_agi, function Trig_Turn_off_agi_Actions )
endfunction
function Trig_Turn_on_agi_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A03U' ) ) then
return false
endif
return true
endfunction
function Trig_Turn_on_agi_Actions takes nothing returns nothing
set udg_AgilCaster = GetSpellAbilityUnit()
call UnitRemoveAbilityBJ( 'A03U', udg_AgilCaster )
call UnitAddAbilityBJ( 'A03V', udg_AgilCaster )
call SetUnitTimeScalePercent( udg_AgilCaster, 200.00 )
call SetUnitMoveSpeed( udg_AgilCaster, 1000.00 )
call EnableTrigger( gg_trg_Drain_Mana_ag )
endfunction
//===========================================================================
function InitTrig_Turn_on_agi takes nothing returns nothing
set gg_trg_Turn_on_agi = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Turn_on_agi, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Turn_on_agi, Condition( function Trig_Turn_on_agi_Conditions ) )
call TriggerAddAction( gg_trg_Turn_on_agi, function Trig_Turn_on_agi_Actions )
endfunction
function Trig_Swift_Attack_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A03W' ) ) then
return false
endif
return true
endfunction
function Trig_Swift_Attack_Func001C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A03W', GetSpellAbilityUnit()) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Swift_Attack_Func002C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A03W', GetSpellAbilityUnit()) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Swift_Attack_Func003C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A03W', GetSpellAbilityUnit()) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Swift_Attack_Func019001002003001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(GetSpellAbilityUnit())) == true )
endfunction
function Trig_Swift_Attack_Func019001002003002001 takes nothing returns boolean
return ( IsUnitAliveBJ(GetFilterUnit()) == true )
endfunction
function Trig_Swift_Attack_Func019001002003002002 takes nothing returns boolean
return ( GetFilterUnit() != udg_AttackedUnit )
endfunction
function Trig_Swift_Attack_Func019001002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Swift_Attack_Func019001002003002001(), Trig_Swift_Attack_Func019001002003002002() )
endfunction
function Trig_Swift_Attack_Func019001002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Swift_Attack_Func019001002003001(), Trig_Swift_Attack_Func019001002003002() )
endfunction
function Trig_Swift_Attack_Func019A takes nothing returns nothing
set udg_AttackedUnit = GetEnumUnit()
call SetUnitPositionLocFacingLocBJ( udg_AttackDummy, GetUnitLoc(GetEnumUnit()), GetUnitLoc(GetEnumUnit()) )
call SetUnitAnimation( udg_AttackDummy, "attack" )
call SetUnitLifeBJ( udg_AttackedUnit, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_AttackedUnit) - udg_Damage ) )
endfunction
function Trig_Swift_Attack_Func021001002003001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(GetSpellAbilityUnit())) == true )
endfunction
function Trig_Swift_Attack_Func021001002003002001 takes nothing returns boolean
return ( IsUnitAliveBJ(GetFilterUnit()) == true )
endfunction
function Trig_Swift_Attack_Func021001002003002002 takes nothing returns boolean
return ( GetFilterUnit() != udg_AttackedUnit )
endfunction
function Trig_Swift_Attack_Func021001002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Swift_Attack_Func021001002003002001(), Trig_Swift_Attack_Func021001002003002002() )
endfunction
function Trig_Swift_Attack_Func021001002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Swift_Attack_Func021001002003001(), Trig_Swift_Attack_Func021001002003002() )
endfunction
function Trig_Swift_Attack_Func021A takes nothing returns nothing
set udg_AttackedUnit = GetEnumUnit()
call SetUnitPositionLocFacingLocBJ( udg_AttackDummy, GetUnitLoc(GetEnumUnit()), GetUnitLoc(GetEnumUnit()) )
call SetUnitAnimation( udg_AttackDummy, "attack" )
call SetUnitLifeBJ( udg_AttackedUnit, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_AttackedUnit) - udg_Damage ) )
endfunction
function Trig_Swift_Attack_Func023001002003001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(GetSpellAbilityUnit())) == true )
endfunction
function Trig_Swift_Attack_Func023001002003002001 takes nothing returns boolean
return ( IsUnitAliveBJ(GetFilterUnit()) == true )
endfunction
function Trig_Swift_Attack_Func023001002003002002 takes nothing returns boolean
return ( GetFilterUnit() != udg_AttackedUnit )
endfunction
function Trig_Swift_Attack_Func023001002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Swift_Attack_Func023001002003002001(), Trig_Swift_Attack_Func023001002003002002() )
endfunction
function Trig_Swift_Attack_Func023001002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Swift_Attack_Func023001002003001(), Trig_Swift_Attack_Func023001002003002() )
endfunction
function Trig_Swift_Attack_Func023A takes nothing returns nothing
set udg_AttackedUnit = GetEnumUnit()
call SetUnitPositionLocFacingLocBJ( udg_AttackDummy, GetUnitLoc(GetEnumUnit()), GetUnitLoc(GetEnumUnit()) )
call SetUnitAnimation( udg_AttackDummy, "attack" )
call SetUnitLifeBJ( udg_AttackedUnit, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_AttackedUnit) - udg_Damage ) )
endfunction
function Trig_Swift_Attack_Func025C takes nothing returns boolean
if ( not ( udg_AnotherTime > 0 ) ) then
return false
endif
return true
endfunction
function Trig_Swift_Attack_Func027C takes nothing returns boolean
if ( not ( udg_AnotherTime > 0 ) ) then
return false
endif
return true
endfunction
function Trig_Swift_Attack_Actions takes nothing returns nothing
if ( Trig_Swift_Attack_Func001C() ) then
set udg_Damage = 20000.00
set udg_AnotherTime = 0
else
endif
if ( Trig_Swift_Attack_Func002C() ) then
set udg_Damage = 30000.00
set udg_AnotherTime = 1
else
endif
if ( Trig_Swift_Attack_Func003C() ) then
set udg_Damage = 50000.00
set udg_AnotherTime = 4
else
endif
call ShowUnitHide( GetSpellAbilityUnit() )
call CreateNUnitsAtLoc( 1, 'e004', GetTriggerPlayer(), GetUnitLoc(GetSpellAbilityUnit()), GetUnitFacing(GetSpellAbilityUnit()) )
set udg_AttackedUnit = GetSpellTargetUnit()
set udg_AttackDummy = GetLastCreatedUnit()
call SetUnitTimeScalePercent( udg_AttackDummy, 500.00 )
call SetUnitColor( udg_AttackDummy, ConvertPlayerColor(12) )
call AddSpecialEffectTargetUnitBJ( "hand right", udg_AttackDummy, "Abilities\\Weapons\\IllidanMissile\\IllidanMissile.mdl" )
call AddSpecialEffectTargetUnitBJ( "hand left", udg_AttackDummy, "Abilities\\Weapons\\IllidanMissile\\IllidanMissile.mdl" )
call AddSpecialEffectTargetUnitBJ( "foot right", udg_AttackDummy, "Abilities\\Weapons\\IllidanMissile\\IllidanMissile.mdl" )
call AddSpecialEffectTargetUnitBJ( "foot left", udg_AttackDummy, "Abilities\\Weapons\\IllidanMissile\\IllidanMissile.mdl" )
call TriggerSleepAction( 0.01 )
call SetUnitPositionLocFacingLocBJ( udg_AttackDummy, GetUnitLoc(udg_AttackedUnit), GetUnitLoc(udg_AttackedUnit) )
call SetUnitAnimation( udg_AttackDummy, "attack" )
call SetUnitLifeBJ( udg_AttackedUnit, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_AttackedUnit) - udg_Damage ) )
call TriggerSleepAction( 0.15 )
call ForGroupBJ( GetRandomSubGroup(1, GetUnitsInRangeOfLocMatching(500.00, GetUnitLoc(udg_AttackedUnit), Condition(function Trig_Swift_Attack_Func019001002003))), function Trig_Swift_Attack_Func019A )
call TriggerSleepAction( 0.15 )
call ForGroupBJ( GetRandomSubGroup(1, GetUnitsInRangeOfLocMatching(500.00, GetUnitLoc(udg_AttackedUnit), Condition(function Trig_Swift_Attack_Func021001002003))), function Trig_Swift_Attack_Func021A )
call TriggerSleepAction( 0.15 )
call ForGroupBJ( GetRandomSubGroup(1, GetUnitsInRangeOfLocMatching(500.00, GetUnitLoc(udg_AttackedUnit), Condition(function Trig_Swift_Attack_Func023001002003))), function Trig_Swift_Attack_Func023A )
call TriggerSleepAction( 0.15 )
if ( Trig_Swift_Attack_Func025C() ) then
set udg_AnotherTime = ( udg_AnotherTime - 1 )
call ConditionalTriggerExecute( gg_trg_Swift_Attack02 )
else
call ConditionalTriggerExecute( gg_trg_End_Swift_Attack )
endif
call TriggerSleepAction( 0.15 )
if ( Trig_Swift_Attack_Func027C() ) then
set udg_AnotherTime = ( udg_AnotherTime - 1 )
call ConditionalTriggerExecute( gg_trg_Swift_Attack02 )
else
call DoNothing( )
endif
call ConditionalTriggerExecute( gg_trg_End_Swift_Attack )
endfunction
//===========================================================================
function InitTrig_Swift_Attack takes nothing returns nothing
set gg_trg_Swift_Attack = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Swift_Attack, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Swift_Attack, Condition( function Trig_Swift_Attack_Conditions ) )
call TriggerAddAction( gg_trg_Swift_Attack, function Trig_Swift_Attack_Actions )
endfunction
function Trig_Swift_Attack02_Func001001002003001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(GetSpellAbilityUnit())) == true )
endfunction
function Trig_Swift_Attack02_Func001001002003002001 takes nothing returns boolean
return ( IsUnitAliveBJ(GetFilterUnit()) == true )
endfunction
function Trig_Swift_Attack02_Func001001002003002002 takes nothing returns boolean
return ( GetFilterUnit() != udg_AttackedUnit )
endfunction
function Trig_Swift_Attack02_Func001001002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Swift_Attack02_Func001001002003002001(), Trig_Swift_Attack02_Func001001002003002002() )
endfunction
function Trig_Swift_Attack02_Func001001002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Swift_Attack02_Func001001002003001(), Trig_Swift_Attack02_Func001001002003002() )
endfunction
function Trig_Swift_Attack02_Func001A takes nothing returns nothing
set udg_AttackedUnit = GetEnumUnit()
call SetUnitPositionLocFacingLocBJ( udg_AttackDummy, GetUnitLoc(GetEnumUnit()), GetUnitLoc(GetEnumUnit()) )
call SetUnitAnimation( udg_AttackDummy, "attack" )
call SetUnitLifeBJ( udg_AttackedUnit, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_AttackedUnit) - udg_Damage ) )
endfunction
function Trig_Swift_Attack02_Actions takes nothing returns nothing
call ForGroupBJ( GetRandomSubGroup(1, GetUnitsInRangeOfLocMatching(500.00, GetUnitLoc(udg_AttackedUnit), Condition(function Trig_Swift_Attack02_Func001001002003))), function Trig_Swift_Attack02_Func001A )
endfunction
//===========================================================================
function InitTrig_Swift_Attack02 takes nothing returns nothing
set gg_trg_Swift_Attack02 = CreateTrigger( )
call TriggerAddAction( gg_trg_Swift_Attack02, function Trig_Swift_Attack02_Actions )
endfunction
function Trig_End_Swift_Attack_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ( GetSpellAbilityUnit(), GetUnitLoc(udg_AttackDummy), GetUnitFacing(udg_AttackDummy) )
call RemoveUnit( udg_AttackDummy )
call ShowUnitShow( GetSpellAbilityUnit() )
endfunction
//===========================================================================
function InitTrig_End_Swift_Attack takes nothing returns nothing
set gg_trg_End_Swift_Attack = CreateTrigger( )
call TriggerAddAction( gg_trg_End_Swift_Attack, function Trig_End_Swift_Attack_Actions )
endfunction
function Trig_Explosive_Feet_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A03X' ) ) then
return false
endif
return true
endfunction
function Trig_Explosive_Feet_Actions takes nothing returns nothing
call SetUnitPathing( GetTriggerUnit(), false )
call UnitAddAbilityBJ( 'Avul', GetTriggerUnit() )
call IssuePointOrderLocBJ( GetTriggerUnit(), "move", GetSpellTargetLoc() )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 10
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ( GetUnitLoc(GetTriggerUnit()), "Objects\\Spawnmodels\\Undead\\UndeadDissipate\\UndeadDissipate.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitDamagePointLoc( GetTriggerUnit(), 0, 110.00, GetUnitLoc(GetTriggerUnit()), ( I2R(GetUnitLevel(GetTriggerUnit())) * 30.00 ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DISEASE )
call TriggerSleepAction( 0.02 )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call SetUnitPathing( GetTriggerUnit(), true )
call UnitRemoveAbilityBJ( 'Avul', GetTriggerUnit() )
endfunction
//===========================================================================
function InitTrig_Explosive_Feet takes nothing returns nothing
set gg_trg_Explosive_Feet = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Explosive_Feet, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Explosive_Feet, Condition( function Trig_Explosive_Feet_Conditions ) )
call TriggerAddAction( gg_trg_Explosive_Feet, function Trig_Explosive_Feet_Actions )
endfunction
function Trig_cowset_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC59') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC61') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC57') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC60') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC58') == true ) ) then
return false
endif
return true
endfunction
function Trig_cowset_Actions takes nothing returns nothing
call RemoveItem( GetItemOfTypeFromUnitBJ(GetEnteringUnit(), 'IC59') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetEnteringUnit(), 'IC61') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetEnteringUnit(), 'IC57') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetEnteringUnit(), 'IC60') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetEnteringUnit(), 'IC58') )
call DisplayTimedTextToForce( GetPlayersAll(), 20.00, "TRIGSTR_5293" )
call SetItemVisibleBJ( true, gg_item_I022_0284 )
call UnitAddItemSwapped( gg_item_I022_0284, GetEnteringUnit() )
endfunction
//===========================================================================
function InitTrig_cowset takes nothing returns nothing
set gg_trg_cowset = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_cowset, gg_rct_Arena )
call TriggerAddCondition( gg_trg_cowset, Condition( function Trig_cowset_Conditions ) )
call TriggerAddAction( gg_trg_cowset, function Trig_cowset_Actions )
endfunction