//Setup Functions
//GAME SETUP
//PLAYER SETUP
//Lock Guards
function LockGuard takes nothing returns nothing
call LockGuardPosition( GetEnumUnit() )
endfunction
//Invulnerability
function MakeUnitInvulnerable takes nothing returns nothing
call SetUnitInvulnerable( GetEnumUnit(), true )
endfunction
//Setup Players
function Players_Users takes nothing returns boolean
return ( GetPlayerController(GetFilterPlayer()) == MAP_CONTROL_USER )
endfunction
function Players_Playing takes nothing returns boolean
return ( GetPlayerSlotState(GetFilterPlayer()) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Players takes nothing returns boolean
return GetBooleanAnd( Players_Users(), Players_Playing() )
endfunction
function Starting_Resources takes nothing returns nothing
call SetPlayerStateBJ( GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD, udg_Player_Starting_Gold )
call SetPlayerStateBJ( GetEnumPlayer(), PLAYER_STATE_RESOURCE_FOOD_CAP, 6 )
endfunction
//MODES AND GAMEPLAY
//Time is 45 Seconds
function Easy_XP_Gain takes nothing returns nothing
call SetPlayerHandicapXPBJ( GetEnumPlayer(), 600.00 )
endfunction
function Easy_Mode_True takes nothing returns boolean
if ( not ( udg_Mode_Easy == true ) ) then
return false
endif
return true
endfunction
function Normal_XP_Gain takes nothing returns nothing
call SetPlayerHandicapXPBJ( GetEnumPlayer(), 300.00 )
endfunction
function Normal_Mode_True takes nothing returns boolean
if ( not ( udg_Mode_Normal == true ) ) then
return false
endif
return true
endfunction
function Hard_Mode_True takes nothing returns boolean
if ( not ( udg_Mode_Hard == true ) ) then
return false
endif
return true
endfunction
//Command All Random
function Pick_Random_SetAvailableUnits takes nothing returns nothing
call SetPlayerUnitAvailableBJ( GetUnitTypeId(GetLastCreatedUnit()), false, GetEnumPlayer() )
endfunction
function Pick_Random_Setup takes nothing returns nothing
set udg_Random_Hero = GetRandomInt(1, udg_RandomTotal_All)
call CreateNUnitsAtLoc( 1, udg_Heroes_All[udg_RandomData_All[udg_Random_Hero]], GetEnumPlayer(), GetPlayerStartLocationLoc(GetEnumPlayer()), bj_UNIT_FACING )
call QuestMessageBJ( GetPlayersEnemies(GetEnumPlayer()), bj_QUESTMESSAGE_ALWAYSHINT, ( "A player has randomed " + GetUnitName(GetLastCreatedUnit()) ) )
set udg_Player_Already_Picked[GetConvertedPlayerId(GetEnumPlayer())] = ( udg_Player_Already_Picked[GetConvertedPlayerId(GetEnumPlayer())] + 1 )
call ForForce( udg_Players, function Pick_Random_SetAvailableUnits )
set udg_RandomData_All[udg_Random_Hero] = udg_RandomData_All[udg_RandomTotal_All]
set udg_RandomTotal_All = ( udg_RandomTotal_All - 1 )
endfunction
//Command Reverse
function Pick_Reverse_MoreKingPlayers takes nothing returns boolean
return ( udg_PlayersKingCount > udg_PlayersQueenCount )
endfunction
function Pick_Reverse_MoreQueenPlayers takes nothing returns boolean
return ( udg_PlayersQueenCount > udg_PlayersKingCount )
endfunction
function Pick_Reverse_SetAvailableUnits takes nothing returns nothing
call SetPlayerUnitAvailableBJ( GetUnitTypeId(GetLastCreatedUnit()), false, GetEnumPlayer() )
endfunction
function Pick_Reverse_Setup takes nothing returns nothing
set udg_Random_Hero = GetRandomInt(1, udg_RandomTotal_All)
call CreateNUnitsAtLoc( 1, udg_Heroes_All[udg_RandomData_All[udg_Random_Hero]], GetEnumPlayer(), GetPlayerStartLocationLoc(GetEnumPlayer()), bj_UNIT_FACING )
call QuestMessageBJ( GetPlayersEnemies(GetEnumPlayer()), bj_QUESTMESSAGE_ALWAYSHINT, ( "A player has randomed " + GetUnitName(GetLastCreatedUnit()) ) )
set udg_Player_Already_Picked[GetConvertedPlayerId(GetEnumPlayer())] = ( udg_Player_Already_Picked[GetConvertedPlayerId(GetEnumPlayer())] + 1 )
call ForForce( udg_Players, function Pick_Reverse_SetAvailableUnits )
call AdjustPlayerStateBJ( -250, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
set udg_RandomData_All[udg_Random_Hero] = udg_RandomData_All[udg_RandomTotal_All]
set udg_RandomTotal_All = ( udg_RandomTotal_All - 1 )
endfunction
//Command Item Drop
function Set_Item_Drop takes nothing returns boolean
if ( not ( IsTriggerEnabled(gg_trg_Item_Drop) == false ) ) then
return false
endif
return true
endfunction
//Command Death Match
function Death_Match_Lives_dm takes nothing returns boolean
if ( not ( GetEventPlayerChatStringMatched() == "-dm" ) ) then
return false
endif
if ( not ( StringLength(GetEventPlayerChatString()) >= 4 ) ) then
return false
endif
return true
endfunction
function Death_Match_Lives_deathmatch takes nothing returns boolean
if ( not ( GetEventPlayerChatStringMatched() == "-deathmatch" ) ) then
return false
endif
if ( not ( StringLength(GetEventPlayerChatString()) >= 13 ) ) then
return false
endif
return true
endfunction
function Death_Match_Live_Less_Than_1 takes nothing returns boolean
if ( not ( udg_TempInteger < 1 ) ) then
return false
endif
return true
endfunction
function Death_Match_Set_Lives takes nothing returns nothing
set udg_DeathMatch[GetConvertedPlayerId(GetEnumPlayer())] = udg_TempInteger
endfunction
//HERO PICKS
//Tavern King
function Tavern_King_SetAvailableUnits takes nothing returns nothing
call SetPlayerUnitAvailableBJ( GetUnitTypeId(GetSoldUnit()), false, GetEnumPlayer() )
endfunction
//Tavern Queen
function Tavern_Queen_SetAvailableUnits takes nothing returns nothing
call SetPlayerUnitAvailableBJ( GetUnitTypeId(GetSoldUnit()), false, GetEnumPlayer() )
endfunction
//Tavern All Heroes
function Tavern_All_Heros_SetAvailableUnits takes nothing returns nothing
call SetPlayerUnitAvailableBJ( GetUnitTypeId(GetSoldUnit()), false, GetEnumPlayer() )
endfunction
//Tavern All Heroes Reverse
function Tavern_All_Heroes_Reverse_SetAvailableUnits takes nothing returns nothing
call SetPlayerUnitAvailableBJ( GetUnitTypeId(GetSoldUnit()), false, GetEnumPlayer() )
endfunction
function Tavern_All_Heroes_Reverse_OwnerInQueen takes nothing returns boolean
if ( not ( IsPlayerInForce(GetOwningPlayer(GetSoldUnit()), udg_PlayersKing) == true ) ) then
return false
endif
return true
endfunction
//Random King
function Random_King_SetAvailableUnits takes nothing returns nothing
call SetPlayerUnitAvailableBJ( GetUnitTypeId(GetLastCreatedUnit()), false, GetEnumPlayer() )
endfunction
//Random Queen
function Random_Queen_SetAvailableUnits takes nothing returns nothing
call SetPlayerUnitAvailableBJ( GetUnitTypeId(GetLastCreatedUnit()), false, GetEnumPlayer() )
endfunction
//Random All Heroes
function Random_All_Heroes_SetAvailableUnits takes nothing returns nothing
call SetPlayerUnitAvailableBJ( GetUnitTypeId(GetLastCreatedUnit()), false, GetEnumPlayer() )
endfunction
//Repick King
function Repick_King_UnitIsHero takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Repick_King_UnitAvailable takes nothing returns nothing
call SetPlayerUnitAvailableBJ( GetUnitTypeId(GetEnumUnit()), true, GetEnumPlayer() )
endfunction
function Repick_King_RandomSetup takes nothing returns nothing
set udg_RandomTotal_King = ( udg_RandomTotal_King + 1 )
set udg_RandomData_King[udg_RandomTotal_King] = GetStoredIntegerBJ(UnitId2StringBJ(GetUnitTypeId(GetEnumUnit())), "Sentinel", GetLastCreatedGameCacheBJ())
call ForForce( udg_Players, function Repick_King_UnitAvailable )
call RemoveUnit( GetEnumUnit() )
endfunction
function Repick_King_RandomTotal takes nothing returns boolean
return ( udg_RandomTotal_King > 1 )
endfunction
function Repick_King_UnitUnavailable takes nothing returns nothing
call SetPlayerUnitAvailableBJ( GetUnitTypeId(GetLastCreatedUnit()), false, GetEnumPlayer() )
endfunction
//Repick Queen
function Repick_Queen_UnitIsHero takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Repick_Queen_UnitAvailable takes nothing returns nothing
call SetPlayerUnitAvailableBJ( GetUnitTypeId(GetEnumUnit()), true, GetEnumPlayer() )
endfunction
function Repick_Queen_RandomSetup takes nothing returns nothing
set udg_RandomTotal_Queen = ( udg_RandomTotal_Queen + 1 )
set udg_RandomData_Queen[udg_RandomTotal_Queen] = GetStoredIntegerBJ(UnitId2StringBJ(GetUnitTypeId(GetEnumUnit())), "Scourge", GetLastCreatedGameCacheBJ())
call ForForce( udg_Players, function Repick_Queen_UnitAvailable )
call RemoveUnit( GetEnumUnit() )
endfunction
function Repick_Queen_RandomTotal takes nothing returns boolean
return ( udg_RandomTotal_Queen > 1 )
endfunction
function Repick_Queen_UnitUnavailable takes nothing returns nothing
call SetPlayerUnitAvailableBJ( GetUnitTypeId(GetLastCreatedUnit()), false, GetEnumPlayer() )
endfunction
//Repick All Heroes
function Repick_All_UnitIsHero takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Repick_All_UnitAvailable takes nothing returns nothing
call SetPlayerUnitAvailableBJ( GetUnitTypeId(GetEnumUnit()), true, GetEnumPlayer() )
endfunction
function Repick_All_RandomSetup takes nothing returns nothing
set udg_RandomTotal_All = ( udg_RandomTotal_All + 1 )
set udg_RandomData_All[udg_RandomTotal_All] = GetStoredIntegerBJ(UnitId2StringBJ(GetUnitTypeId(GetEnumUnit())), "All", GetLastCreatedGameCacheBJ())
call ForForce( udg_Players, function Repick_All_UnitAvailable )
call RemoveUnit( GetEnumUnit() )
endfunction
function Repick_All_RandomTotal takes nothing returns boolean
return ( udg_RandomTotal_All > 1 )
endfunction
function Repick_All_UnitUnavailable takes nothing returns nothing
call SetPlayerUnitAvailableBJ( GetUnitTypeId(GetLastCreatedUnit()), false, GetEnumPlayer() )
endfunction
//HERO TRIGGERS
//Revive Hero Timer
function Revive_Hero_Timer_KingPlayer takes nothing returns boolean
if ( not ( IsPlayerInForce(GetOwningPlayer(GetEnumUnit()), udg_PlayersKing) == true ) ) then
return false
endif
return true
endfunction
function Revive_Hero_Timer_NotEmpty takes nothing returns boolean
if ( not ( TimerGetRemaining(udg_ReviveTimers[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]) < 1.00 ) ) then
return false
endif
return true
endfunction
function Revive_Hero_Timer_ReviveLoc takes nothing returns nothing
if ( Revive_Hero_Timer_NotEmpty() ) then
if ( Revive_Hero_Timer_KingPlayer() ) then
call ReviveHeroLoc( GetEnumUnit(), GetRectCenter(gg_rct_King_Hero_Spawn), true )
else
call ReviveHeroLoc( GetEnumUnit(), GetRectCenter(gg_rct_Queen_Hero_Spawn), true )
endif
else
endif
endfunction
//Move Heroes
function Move_Heroes_KingPlayer takes nothing returns boolean
if ( not ( IsPlayerInForce(GetOwningPlayer(GetEnteringUnit()), udg_PlayersKing) == true ) ) then
return false
endif
return true
endfunction
//Item Drop
function Item_Drop_ItemOwned takes nothing returns boolean
if ( not ( IsItemOwned(UnitItemInSlotBJ(GetDyingUnit(), GetForLoopIndexA())) == true ) ) then
return false
endif
return true
endfunction
function Item_Drop_HasItem takes nothing returns boolean
if ( not ( udg_ItemDropCount > 0 ) ) then
return false
endif
return true
endfunction
//Death Match
function Death_Match_PlayerDone takes nothing returns boolean
if ( not ( udg_DeathMatch[udg_TempInteger] < 1 ) ) then
return false
endif
return true
endfunction
//PLAYER TRIGGERS
//Matchup
function Matchup_UnitIsHero takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Matchup_UnitIsEnemy takes nothing returns boolean
if ( not ( IsPlayerEnemy(GetOwningPlayer(GetEnumUnit()), GetTriggerPlayer()) == true ) ) then
return false
endif
return true
endfunction
function Matchup_Text takes nothing returns nothing
if ( Matchup_UnitIsEnemy() ) then
call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), ( udg_PlayerNames[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))] + ( " controls " + GetUnitName(GetEnumUnit()) ) ) )
else
endif
endfunction
//Movespeed
function Movespeed_UnitIsHero takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Movespeed_Text takes nothing returns nothing
call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), ( udg_Player_Colors[GetConvertedPlayerId(GetTriggerPlayer())] + ( GetUnitName(GetEnumUnit()) + ( "|r movement speed is " + R2SW(GetUnitMoveSpeed(GetEnumUnit()), 4, 3) ) ) ) )
endfunction
//MULTIBOARD
//Multiboard Setup
function Multiboard_Setup_PlayersKing takes nothing returns nothing
call LeaderboardAddItemBJ( GetEnumPlayer(), udg_LeaderboardKing, GetPlayerName(GetEnumPlayer()), 0 )
endfunction
function Multiboard_Setup_PlayersQueen takes nothing returns nothing
call LeaderboardAddItemBJ( GetEnumPlayer(), udg_LeaderboardQueen, GetPlayerName(GetEnumPlayer()), 0 )
endfunction
//Sort Multiboard
function Sort_Multiboard_KingLeaders takes nothing returns nothing
call LeaderboardSetPlayerItemValueBJ( GetEnumPlayer(), udg_LeaderboardKing, ( ( udg_Score_Kills[GetConvertedPlayerId(GetEnumPlayer())] * 10000 ) - udg_Score_Deaths[GetConvertedPlayerId(GetEnumPlayer())] ) )
endfunction
function Sort_Multiboard_QueenLeaders takes nothing returns nothing
call LeaderboardSetPlayerItemValueBJ( GetEnumPlayer(), udg_LeaderboardQueen, ( ( udg_Score_Kills[GetConvertedPlayerId(GetEnumPlayer())] * 10000 ) - udg_Score_Deaths[GetConvertedPlayerId(GetEnumPlayer())] ) )
endfunction
function Sort_Multiboard_SortByKills takes nothing returns boolean
if ( not ( udg_Sort_Board_By_Kills == true ) ) then
return false
endif
return true
endfunction
function Sort_Multiboard_PlayersKing takes nothing returns nothing
set udg_Multiboard_Spots[GetConvertedPlayerId(GetEnumPlayer())] = ( LeaderboardGetPlayerIndexBJ(GetEnumPlayer(), udg_LeaderboardKing) + udg_TempInteger )
endfunction
function Sort_Multiboard_PlayersQueen takes nothing returns nothing
set udg_Multiboard_Spots[GetConvertedPlayerId(GetEnumPlayer())] = ( LeaderboardGetPlayerIndexBJ(GetEnumPlayer(), udg_LeaderboardQueen) + udg_TempInteger )
endfunction
function Sort_Multiboard_AllPlayers takes nothing returns nothing
set udg_TempInteger = GetConvertedPlayerId(GetEnumPlayer())
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 1, udg_Multiboard_Spots[udg_TempInteger], udg_PlayerNames[udg_TempInteger] )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 2, udg_Multiboard_Spots[udg_TempInteger], "" )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 3, udg_Multiboard_Spots[udg_TempInteger], ( " " + I2S(udg_Score_Kills[udg_TempInteger]) ) )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 4, udg_Multiboard_Spots[udg_TempInteger], ( " " + I2S(udg_Score_Deaths[udg_TempInteger]) ) )
endfunction
//ITEM TRIGGERS
//River Items
function River_Items_Taken takes nothing returns boolean
if ( not ( udg_RiverItemsTaken[udg_TempInteger] == false ) ) then
return false
endif
return true
endfunction
//MISCELLANEOUS
//GAME CONTROL
//QUESTS
//King Quest Reward
function KingQuestResources takes nothing returns nothing
call AdjustPlayerStateBJ( udg_TempInteger2, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 1, GetEnumPlayer(), PLAYER_STATE_RESOURCE_LUMBER )
endfunction
function KingQuestRewardAura1 takes nothing returns nothing
call UnitAddAbilityBJ( 'A05H', GetEnumUnit() )
endfunction
function KingAuraIs1 takes nothing returns boolean
if ( not ( udg_King_Team_Aura == 1 ) ) then
return false
endif
return true
endfunction
function KingQuestRewardAura2 takes nothing returns nothing
call UnitRemoveAbilityBJ( 'A05H', GetEnumUnit() )
call UnitAddAbilityBJ( 'A05K', GetEnumUnit() )
call UnitAddAbilityBJ( 'A05D', GetEnumUnit() )
endfunction
function KingAuraIs2 takes nothing returns boolean
if ( not ( udg_King_Team_Aura == 2 ) ) then
return false
endif
return true
endfunction
function KingQuestRewardAura3 takes nothing returns nothing
call UnitRemoveAbilityBJ( 'A05K', GetEnumUnit() )
call UnitAddAbilityBJ( 'A05G', GetEnumUnit() )
call UnitAddAbilityBJ( 'A059', GetEnumUnit() )
endfunction
function KingAuraIs3 takes nothing returns boolean
if ( not ( udg_King_Team_Aura == 3 ) ) then
return false
endif
return true
endfunction
function KingQuestRewardAura4 takes nothing returns nothing
call UnitRemoveAbilityBJ( 'A05G', GetEnumUnit() )
call UnitRemoveAbilityBJ( 'A059', GetEnumUnit() )
call UnitAddAbilityBJ( 'A058', GetEnumUnit() )
call UnitAddAbilityBJ( 'A05A', GetEnumUnit() )
endfunction
function KingAuraIs4 takes nothing returns boolean
if ( not ( udg_King_Team_Aura == 3 ) ) then
return false
endif
return true
endfunction
//Queen Quest Reward
function QueenQuestResources takes nothing returns nothing
call AdjustPlayerStateBJ( udg_TempInteger2, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 1, GetEnumPlayer(), PLAYER_STATE_RESOURCE_LUMBER )
endfunction
function QueenQuestRewardAura1 takes nothing returns nothing
call UnitAddAbilityBJ( 'A05H', GetEnumUnit() )
endfunction
function QueenAuraIs1 takes nothing returns boolean
if ( not ( udg_Queen_Team_Aura == 1 ) ) then
return false
endif
return true
endfunction
function QueenQuestRewardAura2 takes nothing returns nothing
call UnitRemoveAbilityBJ( 'A05H', GetEnumUnit() )
call UnitAddAbilityBJ( 'A05K', GetEnumUnit() )
call UnitAddAbilityBJ( 'A05D', GetEnumUnit() )
endfunction
function QueenAuraIs2 takes nothing returns boolean
if ( not ( udg_Queen_Team_Aura == 2 ) ) then
return false
endif
return true
endfunction
function QueenQuestRewardAura3 takes nothing returns nothing
call UnitRemoveAbilityBJ( 'A05K', GetEnumUnit() )
call UnitAddAbilityBJ( 'A05G', GetEnumUnit() )
call UnitAddAbilityBJ( 'A059', GetEnumUnit() )
endfunction
function QueenAuraIs3 takes nothing returns boolean
if ( not ( udg_Queen_Team_Aura == 3 ) ) then
return false
endif
return true
endfunction
function QueenQuestRewardAura4 takes nothing returns nothing
call UnitRemoveAbilityBJ( 'A05G', GetEnumUnit() )
call UnitRemoveAbilityBJ( 'A059', GetEnumUnit() )
call UnitAddAbilityBJ( 'A058', GetEnumUnit() )
call UnitAddAbilityBJ( 'A05A', GetEnumUnit() )
endfunction
function QueenAuraIs4 takes nothing returns boolean
if ( not ( udg_Queen_Team_Aura == 3 ) ) then
return false
endif
return true
endfunction
//EVERY SECOND
//Every Second
function TallyReviveTimers takes nothing returns nothing
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 2, udg_Multiboard_Spots[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))], I2S(R2I(TimerGetRemaining(udg_ReviveTimers[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]))) )
endfunction
function GameSecondsOver10 takes nothing returns boolean
if ( not ( udg_Game_Seconds >= 10 ) ) then
return false
endif
return true
endfunction
function TallyDeaths takes nothing returns nothing
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 2, udg_Multiboard_Spots[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))], I2S(R2I(TimerGetRemaining(udg_ReviveTimers[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]))) )
endfunction
function ReviveableHeroesNotEmpty takes nothing returns boolean
if ( not ( IsUnitGroupEmptyBJ(udg_RevivableHeroes) == false ) ) then
return false
endif
return true
endfunction
function CenterControlKingUnder0 takes nothing returns boolean
if ( not ( udg_CenterControlKing <= 0 ) ) then
return false
endif
return true
endfunction
function CenterControlQueenUnder0 takes nothing returns boolean
if ( not ( udg_CenterControlQueen <= 0 ) ) then
return false
endif
return true
endfunction
function CenterControlKingOver50 takes nothing returns boolean
if ( not ( udg_CenterControlKing >= 50 ) ) then
return false
endif
return true
endfunction
function CenterControlQueenOver50 takes nothing returns boolean
if ( not ( udg_CenterControlQueen >= 50 ) ) then
return false
endif
return true
endfunction
function KingTakesCenterConditions takes nothing returns boolean
if ( not ( udg_CenterControlKing == 50 ) ) then
return false
endif
if ( not ( udg_CenterQueenOwn == false ) ) then
return false
endif
if ( not ( udg_CenterKingOwn == false ) ) then
return false
endif
return true
endfunction
function KingTakesCenter takes nothing returns boolean
if ( not KingTakesCenterConditions() ) then
return false
endif
return true
endfunction
function QueenTakesCenterConditions takes nothing returns boolean
if ( not ( udg_CenterControlQueen == 50 ) ) then
return false
endif
if ( not ( udg_CenterQueenOwn == false ) ) then
return false
endif
if ( not ( udg_CenterKingOwn == false ) ) then
return false
endif
return true
endfunction
function QueenTakesCenter takes nothing returns boolean
if ( not QueenTakesCenterConditions() ) then
return false
endif
return true
endfunction
function CenterLostByKing takes nothing returns boolean
return ( udg_CenterKingOwn == true )
endfunction
function CenterLostConditionsKing takes nothing returns boolean
if ( not ( udg_CenterControlKing == 0 ) ) then
return false
endif
if ( not ( udg_CenterKingOwn == true ) ) then
return false
endif
if ( not ( udg_CenterQueenOwn == false ) ) then
return false
endif
return true
endfunction
function CenterLostConditionsQueen takes nothing returns boolean
if ( not ( udg_CenterControlQueen == 0 ) ) then
return false
endif
if ( not ( udg_CenterQueenOwn == true ) ) then
return false
endif
if ( not ( udg_CenterKingOwn == false ) ) then
return false
endif
return true
endfunction
function CenterLostConditions takes nothing returns boolean
if ( CenterLostConditionsKing() ) then
return true
endif
if ( CenterLostConditionsQueen() ) then
return true
endif
return false
endfunction
function CenterLost takes nothing returns boolean
if ( not CenterLostConditions() ) then
return false
endif
return true
endfunction
function KingCenterQuestComplete takes nothing returns boolean
if ( not ( udg_King_Gold_Mine_Quest == 1200 ) ) then
return false
endif
return true
endfunction
function KingOwnsCenter takes nothing returns boolean
if ( not ( udg_CenterKingOwn == true ) ) then
return false
endif
return true
endfunction
function QueenCenterQuestComplete takes nothing returns boolean
if ( not ( udg_Queen_Gold_Mine_Quest == 1200 ) ) then
return false
endif
return true
endfunction
function QueenOwnsCenter takes nothing returns boolean
if ( not ( udg_CenterQueenOwn == true ) ) then
return false
endif
return true
endfunction
function FlagHeldByKingBoss takes nothing returns boolean
if ( ( udg_FlagDuke == true ) ) then
return true
endif
if ( ( udg_FlagPrince == true ) ) then
return true
endif
if ( ( udg_FlagKing == true ) ) then
return true
endif
return false
endfunction
function KingFlagQuestComplete takes nothing returns boolean
if ( not ( udg_King_Flag_Quest == 1200 ) ) then
return false
endif
return true
endfunction
function KingOwnsFlag takes nothing returns boolean
if ( not FlagHeldByKingBoss() ) then
return false
endif
return true
endfunction
function FlagHeldByQueenBoss takes nothing returns boolean
if ( ( udg_FlagBaron == true ) ) then
return true
endif
if ( ( udg_FlagPrincess == true ) ) then
return true
endif
if ( ( udg_FlagQueen == true ) ) then
return true
endif
return false
endfunction
function QueenFlagQuestComplete takes nothing returns boolean
if ( not ( udg_Queen_Flag_Quest == 1200 ) ) then
return false
endif
return true
endfunction
function QueenOwnsFlag takes nothing returns boolean
if ( not FlagHeldByQueenBoss() ) then
return false
endif
return true
endfunction
function FreeGoldEasy takes nothing returns boolean
if ( not ( udg_Mode_Easy == true ) ) then
return false
endif
return true
endfunction
function FreeGoldKing takes nothing returns nothing
call AdjustPlayerStateBJ( ( udg_TempInteger / CountPlayersInForceBJ(udg_PlayersKingPlaying) ), GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function FreeGoldQueen takes nothing returns nothing
call AdjustPlayerStateBJ( ( udg_TempInteger / CountPlayersInForceBJ(udg_PlayersQueenPlaying) ), GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function CenterGoldQueen takes nothing returns nothing
call AdjustPlayerStateBJ( ( udg_TempInteger / CountPlayersInForceBJ(udg_PlayersQueenPlaying) ), GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function CenterGoldKing takes nothing returns nothing
call AdjustPlayerStateBJ( ( udg_TempInteger / CountPlayersInForceBJ(udg_PlayersKingPlaying) ), GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function KingOwnsCenterGold takes nothing returns boolean
if ( not ( udg_CenterKingOwn == true ) ) then
return false
endif
return true
endfunction
function CenterGoldOwnedConditions takes nothing returns boolean
if ( ( udg_CenterKingOwn == true ) ) then
return true
endif
if ( ( udg_CenterQueenOwn == true ) ) then
return true
endif
return false
endfunction
function CenterGoldOwned takes nothing returns boolean
if ( not CenterGoldOwnedConditions() ) then
return false
endif
return true
endfunction
function FreeGoldTime takes nothing returns boolean
if ( not ( udg_Counter_Free_Gold == 8 ) ) then
return false
endif
return true
endfunction
function OpenGateNoDuel takes nothing returns boolean
if ( not ( udg_Arena1Duel == false ) ) then
return false
endif
return true
endfunction
function OpenGateTime takes nothing returns boolean
if ( not ( udg_Counter_Open_Gates == 15 ) ) then
return false
endif
return true
endfunction
function SpawnTime takes nothing returns boolean
if ( not ( udg_Counter_Spawn == 30 ) ) then
return false
endif
return true
endfunction
//UNIT DIES
//Unit Dies
function TallyKingKills takes nothing returns boolean
return ( IsPlayerInForce(GetOwningPlayer(GetDyingUnit()), udg_PlayersKing) == true )
endfunction
function TallyQueenKills takes nothing returns boolean
return ( IsPlayerInForce(GetOwningPlayer(GetDyingUnit()), udg_PlayersQueen) == true )
endfunction
function KingKillQuestComplete takes nothing returns boolean
if ( not ( udg_King_Kill_Quest == 20 ) ) then
return false
endif
return true
endfunction
function TallyKingKillQuest takes nothing returns boolean
if ( not ( IsPlayerInForce(GetOwningPlayer(GetKillingUnitBJ()), udg_PlayersKing) == true ) ) then
return false
endif
return true
endfunction
function QueenKillQuestComplete takes nothing returns boolean
if ( not ( udg_Queen_Kill_Quest == 20 ) ) then
return false
endif
return true
endfunction
function TallyQueenKillQuest takes nothing returns boolean
if ( not ( IsPlayerInForce(GetOwningPlayer(GetKillingUnitBJ()), udg_PlayersQueen) == true ) ) then
return false
endif
return true
endfunction
function TriggeringHeroIsOnKingTeam takes nothing returns boolean
if ( not ( IsUnitAlly(GetTriggerUnit(), Player(0)) == true ) ) then
return false
endif
return true
endfunction
function DuelerDiesNotInDuelCondition takes nothing returns boolean
if ( ( IsUnitInGroup(GetTriggerUnit(), udg_Arena1HeroKing) == true ) ) then
return true
endif
if ( ( IsUnitInGroup(GetTriggerUnit(), udg_Arena1HeroQueen) == true ) ) then
return true
endif
return false
endfunction
function DuelerDiesNotInDuel takes nothing returns boolean
if ( not ( udg_Arena1Duel == false ) ) then
return false
endif
if ( not DuelerDiesNotInDuelCondition() ) then
return false
endif
return true
endfunction
function QueenArenaQuestComplete takes nothing returns boolean
if ( not ( udg_Queen_Arena_Quest == 10 ) ) then
return false
endif
return true
endfunction
function KingArenaQuestComplete takes nothing returns boolean
if ( not ( udg_King_Arena_Quest == 10 ) ) then
return false
endif
return true
endfunction
function TriggeringHeroIsOnQueenTeam takes nothing returns boolean
if ( not ( IsUnitAlly(GetTriggerUnit(), Player(6)) == true ) ) then
return false
endif
return true
endfunction
function DuelerDiesInDuelCondition takes nothing returns boolean
if ( ( IsUnitInGroup(GetTriggerUnit(), udg_Arena1HeroKing) == true ) ) then
return true
endif
if ( ( IsUnitInGroup(GetTriggerUnit(), udg_Arena1HeroQueen) == true ) ) then
return true
endif
return false
endfunction
function DuelerDiesInDuel takes nothing returns boolean
if ( not ( udg_Arena1Duel == true ) ) then
return false
endif
if ( not DuelerDiesInDuelCondition() ) then
return false
endif
return true
endfunction
function KillingUnitIsPlayerOwnedCondition takes nothing returns boolean
if ( ( IsPlayerInForce(GetOwningPlayer(GetKillingUnitBJ()), udg_PlayersKingPlaying) == true ) ) then
return true
endif
if ( ( IsPlayerInForce(GetOwningPlayer(GetKillingUnitBJ()), udg_PlayersQueenPlaying) == true ) ) then
return true
endif
return false
endfunction
function KillingUnitIsPlayerOwned takes nothing returns boolean
if ( not KillingUnitIsPlayerOwnedCondition() ) then
return false
endif
return true
endfunction
function TriggeringUnitIsFlagCarrier takes nothing returns boolean
if ( not ( udg_Flag_Down == false ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetTriggerUnit()) == udg_FlagCarrier ) ) then
return false
endif
return true
endfunction
function DyingUnitIsHero takes nothing returns boolean
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function VictoryKing takes nothing returns nothing
call CustomVictoryBJ( GetEnumPlayer(), false, true )
endfunction
function DefeatQueen takes nothing returns nothing
call CustomDefeatBJ( GetEnumPlayer(), "Defeat!" )
endfunction
function TriggeringUnitIsTheQueen takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'n001' ) ) then
return false
endif
return true
endfunction
function VictoryQueen takes nothing returns nothing
call CustomVictoryBJ( GetEnumPlayer(), false, true )
endfunction
function DefeatKing takes nothing returns nothing
call CustomDefeatBJ( GetEnumPlayer(), "Defeat!" )
endfunction
function TriggeringUnitIsTheKing takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'n000' ) ) then
return false
endif
return true
endfunction
function KillTheFlag takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function FlagCarrierIsDuke takes nothing returns boolean
if ( not ( udg_Flag_Down == true ) ) then
return false
endif
if ( not ( udg_FlagDuke == true ) ) then
return false
endif
return true
endfunction
function MakeUnitVulnerable takes nothing returns nothing
call SetUnitInvulnerable( GetEnumUnit(), false )
endfunction
function BossKillResourceReward takes nothing returns nothing
call AdjustPlayerStateBJ( udg_TempInteger2, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 1, GetEnumPlayer(), PLAYER_STATE_RESOURCE_LUMBER )
endfunction
function TriggeringUnitIsTheDuke takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'n00G' ) ) then
return false
endif
return true
endfunction
function FlagCarrierIsPrince takes nothing returns boolean
if ( not ( udg_Flag_Down == true ) ) then
return false
endif
if ( not ( udg_FlagPrince == true ) ) then
return false
endif
return true
endfunction
function TriggeringUnitIsThePrince takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'n00D' ) ) then
return false
endif
return true
endfunction
function FlagCarrierIsBaron takes nothing returns boolean
if ( not ( udg_Flag_Down == true ) ) then
return false
endif
if ( not ( udg_FlagBaron == true ) ) then
return false
endif
return true
endfunction
function TriggeringUnitIsTheBaron takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'n00E' ) ) then
return false
endif
return true
endfunction
function FlagCarrierIsPrincess takes nothing returns boolean
if ( not ( udg_Flag_Down == true ) ) then
return false
endif
if ( not ( udg_FlagPrincess == true ) ) then
return false
endif
return true
endfunction
function TriggeringUnitIsThePrincess takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'n00F' ) ) then
return false
endif
return true
endfunction
function MiniBossKillLumberReward takes nothing returns nothing
call AdjustPlayerStateBJ( 1, GetEnumPlayer(), PLAYER_STATE_RESOURCE_LUMBER )
endfunction
function TriggeringUnitIsKingLieutenantOrGeneralCondition takes nothing returns boolean
if ( ( GetUnitTypeId(GetTriggerUnit()) == 'h02S' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetTriggerUnit()) == 'h02R' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetTriggerUnit()) == 'e011' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetTriggerUnit()) == 'h02W' ) ) then
return true
endif
return false
endfunction
function TriggeringUnitIsKingLieutenantOrGeneral takes nothing returns boolean
if ( not TriggeringUnitIsKingLieutenantOrGeneralCondition() ) then
return false
endif
return true
endfunction
function TriggeringUnitIsQueenLieutenantOrCommanderCondition takes nothing returns boolean
if ( ( GetUnitTypeId(GetTriggerUnit()) == 'e012' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetTriggerUnit()) == 'h02T' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetTriggerUnit()) == 'h03C' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetTriggerUnit()) == 'h02U' ) ) then
return true
endif
return false
endfunction
function TriggeringUnitIsQueenLieutenantOrCommander takes nothing returns boolean
if ( not TriggeringUnitIsQueenLieutenantOrCommanderCondition() ) then
return false
endif
return true
endfunction
function TriggeringUnitIsTheFlag takes nothing returns boolean
if ( not ( udg_Flag_Down == true ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'n01D' ) ) then
return false
endif
return true
endfunction
//MOVEMENT
function MovementTriggeringUnitIsNPC takes nothing returns boolean
if ( ( GetOwningPlayer(GetTriggerUnit()) == Player(0) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetTriggerUnit()) == Player(6) ) ) then
return true
endif
return false
endfunction
function MovementPrimaryConditionConditions takes nothing returns boolean
if ( not MovementTriggeringUnitIsNPC() ) then
return false
endif
return true
endfunction
function MovementTriggeringUnitIsNonAncientKingNPC takes nothing returns boolean
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_ANCIENT) == false ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(0) ) ) then
return false
endif
return true
endfunction
function MovementTriggeringUnitIsNonAncientQueenNPC takes nothing returns boolean
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_ANCIENT) == false ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(6) ) ) then
return false
endif
return true
endfunction
function MovementTriggeringUnitIsTheKing takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'n000' )
endfunction
function MovementTriggeringUnitIsThePrince takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'n00D' )
endfunction
function MovementTriggeringUnitIsTheDuke takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'n00G' )
endfunction
function MovementTriggeringUnitIsTheQueen takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'n001' )
endfunction
function MovementTriggeringUnitIsThePrincess takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'n00F' )
endfunction
function MovementTriggeringUnitIsTheBaron takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'n00E' )
endfunction
//DUELS
//Duelers 1
function NoKingDueler takes nothing returns boolean
if ( not ( udg_KingArena1 == false ) ) then
return false
endif
return true
endfunction
function DuelerIsOnKing takes nothing returns boolean
if ( not ( IsUnitAlly(GetTriggerUnit(), Player(0)) == true ) ) then
return false
endif
return true
endfunction
function NoQueenDueler takes nothing returns boolean
if ( not ( udg_QueenArena1 == false ) ) then
return false
endif
return true
endfunction
function DuelerIsOnQueenCondition takes nothing returns boolean
return true
endfunction
function DuelerIsOnQueen takes nothing returns boolean
if ( not ( IsUnitAlly(GetTriggerUnit(), Player(6)) == true ) ) then
return false
endif
if ( not DuelerIsOnQueenCondition() ) then
return false
endif
return true
endfunction
function BothDuelersInArena takes nothing returns boolean
if ( not ( udg_KingArena1 == true ) ) then
return false
endif
if ( not ( udg_QueenArena1 == true ) ) then
return false
endif
return true
endfunction
//Begin Duel
function KingDuelerPreperation takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_King_Arena_Out) )
call SetUnitLifePercentBJ( GetEnumUnit(), 100 )
call SetUnitManaPercentBJ( GetEnumUnit(), 100 )
call UnitResetCooldown( GetEnumUnit() )
endfunction
function QueenDuelerPreperation takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Queen_Arena_Out) )
call SetUnitLifePercentBJ( GetEnumUnit(), 100 )
call SetUnitManaPercentBJ( GetEnumUnit(), 100 )
call UnitResetCooldown( GetEnumUnit() )
endfunction
function EmptyTheArena takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(GetPlayableMapRect()) )
endfunction
function KingDuelerBackIntoArena takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_King_Arena_1) )
endfunction
function QueenDuelerBackIntoArena takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Queen_Arena_1) )
endfunction
//Dueler Leaves
function DuelIsInProgress takes nothing returns boolean
if ( not ( udg_Arena1Duel == true ) ) then
return false
endif
return true
endfunction
function DuelerIsInAren1HeroKing takes nothing returns boolean
if ( not ( IsUnitInGroup(GetTriggerUnit(), udg_Arena1HeroKing) == true ) ) then
return false
endif
return true
endfunction
function DuelerIsInArena1HeroQueen takes nothing returns boolean
if ( not ( IsUnitInGroup(GetTriggerUnit(), udg_Arena1HeroQueen) == true ) ) then
return false
endif
return true
endfunction
//End Arena 1
function KillKingDueler takes nothing returns nothing
call KillUnit( GetEnumUnit() )
call GroupRemoveUnitSimple( GetEnumUnit(), udg_Arena1HeroKing )
set udg_KingArena1 = false
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 2, udg_Multiboard_Arena, "" )
endfunction
function KillQueenDueler takes nothing returns nothing
call KillUnit( GetEnumUnit() )
call GroupRemoveUnitSimple( GetEnumUnit(), udg_Arena1HeroQueen )
set udg_QueenArena1 = false
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 3, udg_Multiboard_Arena, "" )
endfunction
//CENTER CONTROL
//Add Heroes
function KingHeroEntersCenter takes nothing returns boolean
return ( IsUnitAlly(GetTriggerUnit(), Player(0)) == true )
endfunction
function HeroEntersCenter takes nothing returns boolean
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
//Remove Heroes
function KingHeroLeavesCenter takes nothing returns boolean
return ( IsUnitAlly(GetTriggerUnit(), Player(0)) == true )
endfunction
function HeroLeavesCenter takes nothing returns boolean
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
//HEROES
//MULTIPLE
//Death Coil/Holy Light
function AbilityIsDeathCoil takes nothing returns boolean
return ( GetSpellAbilityId() == 'A09B' )
endfunction
function AbilityIsHolyLight takes nothing returns boolean
return ( GetSpellAbilityId() == 'A09H' )
endfunction
function DeathCoilHolyLightTargetIsEnemy takes nothing returns boolean
return ( IsUnitAlly(GetSpellTargetUnit(), GetTriggerPlayer()) == false )
endfunction
function DeathCoilHolyLightLevel1 takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetSpellAbilityUnit()) == 1 ) ) then
return false
endif
return true
endfunction
function DeathCoilHolyLightLevel2 takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetSpellAbilityUnit()) == 2 ) ) then
return false
endif
return true
endfunction
function DeathCoilHolyLightLevel3 takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetSpellAbilityUnit()) == 3 ) ) then
return false
endif
return true
endfunction
function DeathCoilHolyLightLevel4 takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetSpellAbilityUnit()) == 4 ) ) then
return false
endif
return true
endfunction
function DeathCoilHolyLightLevel5 takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetSpellAbilityUnit()) == 5 ) ) then
return false
endif
return true
endfunction
function DeathCoilHolyLightLevel6 takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetSpellAbilityUnit()) == 6 ) ) then
return false
endif
return true
endfunction
function DeathCoilHolyLightLevel7 takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetSpellAbilityUnit()) == 7 ) ) then
return false
endif
return true
endfunction
function DeathCoilHolyLightLevel8 takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetSpellAbilityUnit()) == 8 ) ) then
return false
endif
return true
endfunction
function DeathCoilHolyLightLevel9 takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetSpellAbilityUnit()) == 9 ) ) then
return false
endif
return true
endfunction
function DeathCoilHolyLightLevel10 takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetSpellAbilityUnit()) == 10 ) ) then
return false
endif
return true
endfunction
//BLOODMANCER
//Transfusion
//Bloodfire
Name | Type | is_array | initial_value |
AcidArmourDummy | unit | No | |
AcidArmourImmolation_ON | boolean | Yes | |
AnotherTime | integer | No | |
Arena1Duel | boolean | No | |
Arena1HeroKing | group | No | |
Arena1HeroQueen | group | No | |
Arena1Timer | timer | No | |
Arena1Timer_Window | timerdialog | No | |
ArenaTimer | timerdialog | No | |
ArmyBaron | group | No | |
ArmyCommander1 | group | No | |
ArmyDuke | group | No | |
ArmyGeneral1 | group | No | |
ArmyKing | group | No | |
ArmyKingLieutenant | group | No | |
ArmyPrince | group | No | |
ArmyPrincess | group | No | |
ArmyQueen | group | No | |
ArmyQueenLieutenant | group | No | |
BladebeamUnit | unit | Yes | |
BladeDanceDamageAmount | real | No | 12.00 |
BladeDanceDegrees | integer | No | |
BladeDanceEffect | effect | No | |
BladeDanceHitAmount | integer | No | 10 |
BladeDanceTarget | unit | No | |
BladeDanceText | texttag | No | |
BlastBlastGraphic | effect | No | |
BlessedHammerAngle | real | No | |
BlessedHammerLoc1 | location | No | |
BlessedHammerLoc2 | location | No | |
BlessedHammerLoc3 | location | No | |
BloodfireCaster | unit | No | |
BloodfireDamage | real | No | |
BloodfireHeal | real | No | |
BloodfireTarget | unit | No | |
BloodlettingCaster | unit | No | |
BloodlettingHealth | real | No | |
BloodmancerTaintMultiplier | real | No | |
CasterHealth | real | No | |
Center_Arena_Reward | integer | No | |
CenterControlKing | integer | No | |
CenterControlQueen | integer | No | |
CenterKingHeros | integer | No | |
CenterKingOwn | boolean | No | |
CenterQueenHeros | integer | No | |
CenterQueenOwn | boolean | No | |
CenterUnit | group | No | |
ChainFrostLastTarget | unit | No | |
ChainFrostmaxTimerStored | integer | No | -1 |
ChainFrostStoredTimer | timer | Yes | |
ChainFrostStoredTimerData | integer | Yes | |
CoC_DamageUnit | unit | No | |
CoC_RandomInteger | integer | No | |
CoC_TempPoint | location | No | |
CoCCaster | unit | No | |
CoCDamage | real | No | |
Combine_Charged_Items | boolean | No | |
Combine_Charges_Max | integer | No | |
Counter_Free_Gold | integer | No | |
Counter_Open_Gates | integer | No | |
Counter_Spawn | integer | No | |
DeathMatch | integer | Yes | |
DesolateCaster | unit | No | |
DesolateDamage | real | No | |
DesolateLoc1 | location | No | |
DesolateLoc2 | location | No | |
DesolatePickedUnit | unit | No | |
DoubleEdgeAngle1 | real | No | |
DoubleEdgeAngle2 | real | No | |
DoubleEdgeCaster | unit | No | |
DoubleEdgeDistane1 | real | No | |
DoubleEdgeDistane2 | real | No | |
DoubleEdgeLoc1 | location | No | |
DoubleEdgeLoc2 | location | No | |
DoubleEdgeLoc3 | location | No | |
DoubleEdgeLoc4 | location | No | |
DoubleEdgeLoc5 | location | No | |
DoubleEdgeLoc6 | location | No | |
DoubleEdgeTarget | unit | No | |
ElunesEmbraceUltForm | unit | No | UnitNull |
End_Game_If_All_Gone | boolean | No | |
FatalStrikeLoc | location | No | |
FatalStrikeSacrifice | real | No | |
FireOrbBigOrb | unit | No | |
FireOrbBigOrbAngle | real | No | |
FireOrbBigOrbPoint | location | No | |
FireProtectionCaster | unit | No | |
FireProtectionPoint | location | No | |
FireProtectionUnit | unit | Yes | |
Flag | group | No | |
Flag_Down | boolean | No | |
Flag_Timer | timer | No | |
Flag_Timer_Window | timerdialog | No | |
FlagBaron | boolean | No | |
FlagCarrier | player | No | |
FlagCenter | boolean | No | |
FlagDuke | boolean | No | |
FlagKing | boolean | No | |
FlagPrince | boolean | No | |
FlagPrincess | boolean | No | |
FlagQueen | boolean | No | |
FlagRegion | rect | No | RectNull |
FlameShieldDamage | real | No | |
FlameShieldGroup | group | No | |
FlameShieldLoc | location | No | |
ForestElderEntangleJumps | integer | Yes | |
ForestElderEntangleUnits | group | Yes | |
Game_Minutes | integer | No | |
Game_Seconds | integer | No | |
Game_Time | timer | No | |
GameMode | integer | No | |
HammerForgeAngle | real | No | |
HammerForgeCaster | unit | No | |
HammerForgeLoc1 | location | No | |
HammerForgeLoc2 | location | No | |
HammersWrathCaster | unit | No | |
HammersWrathFloatingText | texttag | No | |
HammersWrathLoc1 | location | No | |
HammersWrathTarget | unit | No | |
Has_Armor_Set | boolean | Yes | |
Has_Boot_Set | boolean | Yes | |
Has_Glove_Set | boolean | Yes | |
Has_Orb | boolean | Yes | |
Has_OrbRing_Set | boolean | Yes | |
Has_Ring | boolean | Yes | |
Has_Weapon_Set | boolean | Yes | |
Hero_Revive_Time_Factor | real | No | |
Heroes_All | unitcode | Yes | |
Heroes_King | unitcode | Yes | |
Heroes_Queen | unitcode | Yes | |
HeroicStrikeDamage | real | No | |
HeroicStrikeFloatingText | texttag | Yes | |
Hostile_Revive_Time | real | No | |
Infernal_Effect | unit | No | |
Inferno_Effect_Unit | unit | Yes | |
Inferno_Integer | integer | Yes | |
Inferno_Point | location | Yes | |
Inferno_Stop | boolean | No | true |
Inferno_Unit | unit | Yes | |
Item_Armor_Sets | item | Yes | |
Item_Boot_Sets | item | Yes | |
Item_Created | itemcode | Yes | |
Item_Glove_Sets | item | Yes | |
Item_Weapon_Sets | item | Yes | |
ItemDrop | integer | Yes | |
ItemDropCount | integer | No | |
King_Arena_Quest | integer | No | |
King_Arena_Quest_Complete | quest | No | |
King_Flag_Quest | integer | No | |
King_Flag_Quest_Complete | quest | No | |
King_Flag_Quest_Minutes | integer | No | |
King_Flag_Quest_Seconds | integer | No | |
King_Gold_Mine_Quest | integer | No | |
King_Gold_Mine_Quest_Complete | quest | No | |
King_Gold_Mine_Quest_Minutes | integer | No | |
King_Gold_Mine_Quest_Seconds | integer | No | |
King_Heros | group | No | |
King_Kill_Quest | integer | No | |
King_Kill_Quest_Complete | quest | No | |
King_Team_Aura | integer | No | |
KingArena1 | boolean | No | |
LeaderboardKing | leaderboard | No | |
LeaderboardQueen | leaderboard | No | |
LinkofHorrorCaster | unit | No | |
LinkofHorrorCasterMS | integer | No | |
LinkofHorrorDamage | real | No | |
LinkofHorrorTarget | unit | No | |
LinkofHorrorTargetMS | integer | No | |
LoopCreep | integer | No | |
LoopRandom | integer | No | |
LoopSuper | integer | No | |
MODE_AllRandom_AllPick | integer | No | 1 |
Mode_Easy | boolean | No | |
Mode_Hard | boolean | No | |
MODE_Normal | integer | No | 0 |
Mode_Normal | boolean | No | true |
MODE_Reverse | integer | No | 2 |
Money_Spent | integer | Yes | |
Multiboard_Arena | integer | No | |
Multiboard_Clock | integer | No | |
Multiboard_Flag | integer | No | |
Multiboard_Gold_Mine | integer | No | |
Multiboard_Spots | integer | Yes | |
Multiboard_Teams | integer | No | |
NetherChainsGroup | group | No | |
NetherChainsLoc1 | location | No | |
NetherChainsLoc2 | location | No | |
NetherChainsPickedUnit | unit | No | |
NetherChainsSE | effect | No | |
Odd_Man_Out | force | No | |
Player | player | No | |
Player_Already_Picked | integer | Yes | |
Player_Colors | string | Yes | |
Player_Starting_Gold | integer | No | |
PlayerNames | string | Yes | |
Players | force | No | |
PlayersCount | integer | No | |
PlayersKing | force | No | |
PlayersKingCount | integer | No | |
PlayersKingPlaying | force | No | |
PlayersKingReverse | force | No | |
PlayersQueen | force | No | |
PlayersQueenCount | integer | No | |
PlayersQueenPlaying | force | No | |
PlayersQueenReverse | force | No | |
Playing_Heroes | group | Yes | |
Point | location | No | |
PowerBlowBlow_Ang | real | No | |
PowerBlowBlow_Effect | effect | Yes | |
PowerBlowBlowed | unit | No | |
PowerBlowBlower | unit | No | |
PsychicScream_Group | group | No | |
PsychicScream_IntegerCount | integer | No | |
PsychicScream_Point | location | Yes | |
PsychicScreamGroupCount | integer | No | |
PsychicScreamGroupPlayer | player | Yes | |
PsychicScreamGroupUnit | unit | Yes | |
Queen_Arena_Quest | integer | No | |
Queen_Arena_Quest_Complete | quest | No | |
Queen_Flag_Quest | integer | No | |
Queen_Flag_Quest_Complete | quest | No | |
Queen_Flag_Quest_Minutes | integer | No | |
Queen_Flag_Quest_Seconds | integer | No | |
Queen_Gold_Mine_Quest | integer | No | |
Queen_Gold_Mine_Quest_Complete | quest | No | |
Queen_Gold_Mine_Quest_Minutes | integer | No | |
Queen_Gold_Mine_Quest_Seconds | integer | No | |
Queen_Heros | group | No | |
Queen_Kill_Quest | integer | No | |
Queen_Kill_Quest_Complete | quest | No | |
Queen_Team_Aura | integer | No | |
QueenArena1 | boolean | No | |
QuickBladesCaster | unit | No | |
QuickBladesDamage | real | No | |
QuickBladesLoc1 | location | No | |
QuickBladesLoc2 | location | No | |
QuickBladesSE | effect | Yes | |
QuickBladesTarget | unit | No | |
Random_Hero | integer | No | |
RandomData_All | integer | Yes | |
RandomData_King | integer | Yes | |
RandomData_Queen | integer | Yes | |
RandomTotal_All | integer | No | |
RandomTotal_King | integer | No | |
RandomTotal_Queen | integer | No | |
Repick_Cost_Ammount | integer | No | |
RevivableHeroes | group | No | |
RevivableTimersWindows | timerdialog | Yes | |
ReviveTimers | timer | Yes | |
Ring_Refund | integer | No | 1000 |
RiverItems | itemcode | Yes | |
RiverItemsCount | integer | No | |
RiverItemsRegions | location | Yes | |
RiverItemsRegionsCount | integer | No | |
RiverItemsTaken | boolean | Yes | |
Score_Deaths | integer | Yes | |
Score_Kills | integer | Yes | |
ShockingWaveAng | real | Yes | |
ShockingWaveCaster | unit | No | |
ShockingWaveDamage | real | No | |
ShockingWaveElectricuted_8p | group | No | |
ShockingWaveLightning_Ball | unit | Yes | |
ShockingWaveLightning_Effect | lightning | Yes | |
ShockingWavePoint | location | No | |
ShockingWaveRelative_Ang | real | No | |
SliceSound | sound | Yes | |
Sort_Board_By_Kills | boolean | No | |
SoulSpellsEmpower_Bonus | integer | No | |
SoulSpellsRaging_Soul | unit | No | |
SoulSpellsSoul_Count | integer | No | |
SoulSpellsSoul_Group | group | No | |
SoulSpellsSoul_Player | force | No | |
SoulSpellsSoul_Target | unit | No | |
SwiftAttackAttackedUnit | unit | No | |
SwiftAttackAttackUnit | unit | No | |
SwiftAttackDamage | real | No | |
SwiftAttackEffects | effect | Yes | |
TaintMultiplier | real | No | |
TeleEffect | effect | No | |
TempInteger | integer | No | |
TempInteger2 | integer | No | |
TempReal | real | No | |
ThorsHammerPoint | location | No | |
ThorsHammerUnit | unit | No | |
TransfusionDamage | real | No | |
TransfusionPercentage | real | No | |
TremorTrem_Damage_Unit | unit | No | |
TremorTrem_Hit_Group | group | No | |
TremorTrem_Point | location | No | |
UnholyExecutionLoc | location | No | |
UnitGroup | group | No |
function Trig_Map_Initialization_Actions takes nothing returns nothing
set udg_Combine_Charged_Items = true
set udg_Combine_Charges_Max = 15
set udg_End_Game_If_All_Gone = false
set udg_Hero_Revive_Time_Factor = 3.00
set udg_Hostile_Revive_Time = 120.00
set udg_Player_Starting_Gold = 700
set udg_Repick_Cost_Ammount = -150
set udg_Sort_Board_By_Kills = true
// -
// Order is important. Leave as is.
// -
call SetTimeOfDay( 8.00 )
call TriggerExecute( gg_trg_Setup_Players )
call TriggerExecute( gg_trg_King_Heroes )
call TriggerExecute( gg_trg_Queen_Heroes )
call TriggerExecute( gg_trg_Heroes_General_Setup )
call TriggerExecute( gg_trg_Player_Colors )
call TriggerExecute( gg_trg_Setup_Items )
// -
// My Setup
// -
call TriggerExecute( gg_trg_Preload_Heroes )
call TriggerExecute( gg_trg_Hero_Limit )
call TriggerExecute( gg_trg_Create_Guard_Groups )
call TriggerExecute( gg_trg_Invulnerability )
call TriggerExecute( gg_trg_Open_Gates )
call TriggerExecute( gg_trg_Flag_Setup )
// Swift Attack
set udg_SliceSound[1] = gg_snd_MetalHeavySliceFlesh1
set udg_SliceSound[2] = gg_snd_MetalHeavySliceFlesh2
set udg_SliceSound[3] = gg_snd_MetalHeavySliceFlesh3
endfunction
//===========================================================================
function InitTrig_Map_Initialization takes nothing returns nothing
set gg_trg_Map_Initialization = CreateTrigger( )
call TriggerAddAction( gg_trg_Map_Initialization, function Trig_Map_Initialization_Actions )
endfunction
function Trig_Preload_Heroes_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'E00J', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Preload), bj_UNIT_FACING )
call RemoveUnit( GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'E000', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Preload), bj_UNIT_FACING )
call RemoveUnit( GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'E001', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Preload), bj_UNIT_FACING )
call RemoveUnit( GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'E002', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Preload), bj_UNIT_FACING )
call RemoveUnit( GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'E003', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Preload), bj_UNIT_FACING )
call RemoveUnit( GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'H000', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Preload), bj_UNIT_FACING )
call RemoveUnit( GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'H001', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Preload), bj_UNIT_FACING )
call RemoveUnit( GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'H002', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Preload), bj_UNIT_FACING )
call RemoveUnit( GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'H003', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Preload), bj_UNIT_FACING )
call RemoveUnit( GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'O000', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Preload), bj_UNIT_FACING )
call RemoveUnit( GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'O001', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Preload), bj_UNIT_FACING )
call RemoveUnit( GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'O002', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Preload), bj_UNIT_FACING )
call RemoveUnit( GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'O003', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Preload), bj_UNIT_FACING )
call RemoveUnit( GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'U000', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Preload), bj_UNIT_FACING )
call RemoveUnit( GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'U001', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Preload), bj_UNIT_FACING )
call RemoveUnit( GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'U00B', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Preload), bj_UNIT_FACING )
call RemoveUnit( GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'U007', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Preload), bj_UNIT_FACING )
call RemoveUnit( GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'U00D', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Preload), bj_UNIT_FACING )
call RemoveUnit( GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'U003', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Preload), bj_UNIT_FACING )
call RemoveUnit( GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'U00C', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Preload), bj_UNIT_FACING )
call RemoveUnit( GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'N002', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Preload), bj_UNIT_FACING )
call RemoveUnit( GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'N003', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Preload), bj_UNIT_FACING )
call RemoveUnit( GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'N016', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Preload), bj_UNIT_FACING )
call RemoveUnit( GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'N005', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Preload), bj_UNIT_FACING )
call RemoveUnit( GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'N006', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Preload), bj_UNIT_FACING )
call RemoveUnit( GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'N007', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Preload), bj_UNIT_FACING )
call RemoveUnit( GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'H00M', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Preload), bj_UNIT_FACING )
call RemoveUnit( GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'H01K', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Preload), bj_UNIT_FACING )
call RemoveUnit( GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'N009', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Preload), bj_UNIT_FACING )
call RemoveUnit( GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'O006', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Preload), bj_UNIT_FACING )
call RemoveUnit( GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'N017', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Preload), bj_UNIT_FACING )
call RemoveUnit( GetLastCreatedUnit() )
endfunction
//===========================================================================
function InitTrig_Preload_Heroes takes nothing returns nothing
set gg_trg_Preload_Heroes = CreateTrigger( )
call DisableTrigger( gg_trg_Preload_Heroes )
call TriggerAddAction( gg_trg_Preload_Heroes, function Trig_Preload_Heroes_Actions )
endfunction
function Trig_Hero_Limit_Actions takes nothing returns nothing
call SetPlayerMaxHeroesAllowed( 1, Player(1) )
call SetPlayerMaxHeroesAllowed( 1, Player(2) )
call SetPlayerMaxHeroesAllowed( 1, Player(3) )
call SetPlayerMaxHeroesAllowed( 1, Player(4) )
call SetPlayerMaxHeroesAllowed( 1, Player(5) )
call SetPlayerMaxHeroesAllowed( 1, Player(7) )
call SetPlayerMaxHeroesAllowed( 1, Player(8) )
call SetPlayerMaxHeroesAllowed( 1, Player(9) )
call SetPlayerMaxHeroesAllowed( 1, Player(10) )
call SetPlayerMaxHeroesAllowed( 1, Player(11) )
endfunction
//===========================================================================
function InitTrig_Hero_Limit takes nothing returns nothing
set gg_trg_Hero_Limit = CreateTrigger( )
call DisableTrigger( gg_trg_Hero_Limit )
call TriggerAddAction( gg_trg_Hero_Limit, function Trig_Hero_Limit_Actions )
endfunction
function Trig_Create_Guard_Groups_Actions takes nothing returns nothing
set udg_ArmyBaron = GetUnitsInRectAll(gg_rct_The_Baron)
set udg_ArmyCommander1 = GetUnitsInRectAll(gg_rct_The_Commander_1)
set udg_ArmyDuke = GetUnitsInRectAll(gg_rct_The_Duke)
set udg_ArmyGeneral1 = GetUnitsInRectAll(gg_rct_The_General_1)
set udg_ArmyKing = GetUnitsInRectAll(gg_rct_The_King)
set udg_ArmyKingLieutenant = GetUnitsInRectAll(gg_rct_King_Lieutenants)
set udg_ArmyPrince = GetUnitsInRectAll(gg_rct_The_Prince)
set udg_ArmyPrincess = GetUnitsInRectAll(gg_rct_The_Princess)
set udg_ArmyQueen = GetUnitsInRectAll(gg_rct_The_Queen)
set udg_ArmyQueenLieutenant = GetUnitsInRectAll(gg_rct_Queen_Lieutenants)
call ForGroupBJ( udg_ArmyBaron, function LockGuard )
call ForGroupBJ( udg_ArmyDuke, function LockGuard )
call ForGroupBJ( udg_ArmyKing, function LockGuard )
call ForGroupBJ( udg_ArmyPrince, function LockGuard )
call ForGroupBJ( udg_ArmyPrincess, function LockGuard )
call ForGroupBJ( udg_ArmyQueen, function LockGuard )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Create_Guard_Groups takes nothing returns nothing
set gg_trg_Create_Guard_Groups = CreateTrigger( )
call DisableTrigger( gg_trg_Create_Guard_Groups )
call TriggerAddAction( gg_trg_Create_Guard_Groups, function Trig_Create_Guard_Groups_Actions )
endfunction
function Trig_Invulnerability_Actions takes nothing returns nothing
call ForGroupBJ( udg_ArmyKing, function MakeUnitInvulnerable )
call ForGroupBJ( udg_ArmyPrince, function MakeUnitInvulnerable )
call ForGroupBJ( udg_ArmyPrincess, function MakeUnitInvulnerable )
call ForGroupBJ( udg_ArmyQueen, function MakeUnitInvulnerable )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Invulnerability takes nothing returns nothing
set gg_trg_Invulnerability = CreateTrigger( )
call DisableTrigger( gg_trg_Invulnerability )
call TriggerAddAction( gg_trg_Invulnerability, function Trig_Invulnerability_Actions )
endfunction
function Trig_Open_Gates_Actions takes nothing returns nothing
call SetDestructableInvulnerableBJ( gg_dest_LTe3_0002, true )
call CreateFogModifierRectBJ( true, Player(0), FOG_OF_WAR_VISIBLE, gg_rct_Arena_1 )
call CreateFogModifierRectBJ( true, Player(6), FOG_OF_WAR_VISIBLE, gg_rct_Arena_1 )
set udg_Center_Arena_Reward = 500
call CreateTimerDialogBJ( udg_Arena1Timer, "Arena" )
call TimerDialogDisplayBJ( false, udg_ArenaTimer )
endfunction
//===========================================================================
function InitTrig_Open_Gates takes nothing returns nothing
set gg_trg_Open_Gates = CreateTrigger( )
call DisableTrigger( gg_trg_Open_Gates )
call TriggerAddAction( gg_trg_Open_Gates, function Trig_Open_Gates_Actions )
endfunction
function Trig_Flag_Setup_Actions takes nothing returns nothing
call ShowUnitHide( gg_unit_ncp3_0087 )
call ShowUnitHide( gg_unit_ncp3_0088 )
call ShowUnitHide( gg_unit_ncp3_0089 )
call ShowUnitHide( gg_unit_ncp3_0090 )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 2, udg_Multiboard_Flag, "Neutral" )
endfunction
//===========================================================================
function InitTrig_Flag_Setup takes nothing returns nothing
set gg_trg_Flag_Setup = CreateTrigger( )
call DisableTrigger( gg_trg_Flag_Setup )
call TriggerAddAction( gg_trg_Flag_Setup, function Trig_Flag_Setup_Actions )
endfunction
function Trig_King_Heroes_Actions takes nothing returns nothing
// The King's Heroes
set udg_RandomTotal_King = 16
set udg_Heroes_King[1] = 'E001'
set udg_Heroes_King[2] = 'U00B'
set udg_Heroes_King[3] = 'E002'
set udg_Heroes_King[4] = 'E000'
set udg_Heroes_King[5] = 'H000'
set udg_Heroes_King[6] = 'H001'
set udg_Heroes_King[7] = 'H002'
set udg_Heroes_King[8] = 'N005'
set udg_Heroes_King[9] = 'N002'
set udg_Heroes_King[10] = 'E003'
set udg_Heroes_King[11] = 'N003'
set udg_Heroes_King[12] = 'H00M'
set udg_Heroes_King[13] = 'H01K'
set udg_Heroes_King[14] = 'H003'
set udg_Heroes_King[15] = 'E00J'
set udg_Heroes_King[16] = 'N017'
endfunction
//===========================================================================
function InitTrig_King_Heroes takes nothing returns nothing
set gg_trg_King_Heroes = CreateTrigger( )
call DisableTrigger( gg_trg_King_Heroes )
call TriggerAddAction( gg_trg_King_Heroes, function Trig_King_Heroes_Actions )
endfunction
function Trig_Queen_Heroes_Actions takes nothing returns nothing
// Scourge Heroes
set udg_RandomTotal_Queen = 16
set udg_Heroes_Queen[1] = 'O000'
set udg_Heroes_Queen[2] = 'O001'
set udg_Heroes_Queen[3] = 'O002'
set udg_Heroes_Queen[4] = 'U007'
set udg_Heroes_Queen[5] = 'U003'
set udg_Heroes_Queen[6] = 'U000'
set udg_Heroes_Queen[7] = 'U00D'
set udg_Heroes_Queen[8] = 'U00C'
set udg_Heroes_Queen[9] = 'N007'
set udg_Heroes_Queen[10] = 'N009'
set udg_Heroes_Queen[11] = 'U001'
set udg_Heroes_Queen[12] = 'N006'
set udg_Heroes_Queen[13] = 'N016'
set udg_Heroes_Queen[14] = 'O006'
set udg_Heroes_Queen[15] = 'O003'
set udg_Heroes_Queen[16] = 'O007'
endfunction
//===========================================================================
function InitTrig_Queen_Heroes takes nothing returns nothing
set gg_trg_Queen_Heroes = CreateTrigger( )
call DisableTrigger( gg_trg_Queen_Heroes )
call TriggerAddAction( gg_trg_Queen_Heroes, function Trig_Queen_Heroes_Actions )
endfunction
function Trig_Heroes_General_Setup_Actions takes nothing returns nothing
set udg_LoopRandom = 0
call InitGameCacheBJ( "KingQueen" )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = udg_RandomTotal_King
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set udg_RandomData_King[GetForLoopIndexA()] = GetForLoopIndexA()
set udg_LoopRandom = ( udg_LoopRandom + 1 )
set udg_Heroes_All[udg_LoopRandom] = udg_Heroes_King[GetForLoopIndexA()]
call StoreIntegerBJ( udg_LoopRandom, UnitId2StringBJ(udg_Heroes_King[GetForLoopIndexA()]), "All", GetLastCreatedGameCacheBJ() )
call StoreIntegerBJ( GetForLoopIndexA(), UnitId2StringBJ(udg_Heroes_King[GetForLoopIndexA()]), "Sentinel", GetLastCreatedGameCacheBJ() )
set udg_RandomData_All[udg_LoopRandom] = udg_LoopRandom
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = udg_RandomTotal_Queen
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set udg_RandomData_Queen[GetForLoopIndexA()] = GetForLoopIndexA()
set udg_LoopRandom = ( udg_LoopRandom + 1 )
set udg_Heroes_All[udg_LoopRandom] = udg_Heroes_Queen[GetForLoopIndexA()]
call StoreIntegerBJ( udg_LoopRandom, UnitId2StringBJ(udg_Heroes_Queen[GetForLoopIndexA()]), "All", GetLastCreatedGameCacheBJ() )
call StoreIntegerBJ( GetForLoopIndexA(), UnitId2StringBJ(udg_Heroes_Queen[GetForLoopIndexA()]), "Scourge", GetLastCreatedGameCacheBJ() )
set udg_RandomData_All[udg_LoopRandom] = udg_LoopRandom
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set udg_RandomTotal_All = ( udg_RandomTotal_King + udg_RandomTotal_Queen )
endfunction
//===========================================================================
function InitTrig_Heroes_General_Setup takes nothing returns nothing
set gg_trg_Heroes_General_Setup = CreateTrigger( )
call DisableTrigger( gg_trg_Heroes_General_Setup )
call TriggerAddAction( gg_trg_Heroes_General_Setup, function Trig_Heroes_General_Setup_Actions )
endfunction
function Trig_Setup_Players_Actions takes nothing returns nothing
// All players
set udg_Players = GetPlayersMatching(Condition(function Players))
set udg_PlayersCount = CountPlayersInForceBJ(udg_Players)
call ForForce( udg_Players, function Starting_Resources )
// The King
set udg_PlayersKing = GetPlayersAllies(Player(0))
call ForceRemovePlayerSimple( Player(0), udg_PlayersKing )
set udg_PlayersKingCount = CountPlayersInForceBJ(udg_PlayersKing)
set udg_PlayersKingReverse = GetPlayersAllies(Player(0))
call ForceRemovePlayerSimple( Player(0), udg_PlayersKingReverse )
set udg_PlayersKingPlaying = GetPlayersAllies(Player(0))
call ForceRemovePlayerSimple( Player(0), udg_PlayersKingPlaying )
// The Queen
set udg_PlayersQueen = GetPlayersAllies(Player(6))
call ForceRemovePlayerSimple( Player(6), udg_PlayersQueen )
set udg_PlayersQueenCount = CountPlayersInForceBJ(udg_PlayersQueen)
set udg_PlayersQueenReverse = GetPlayersAllies(Player(6))
call ForceRemovePlayerSimple( Player(6), udg_PlayersQueenReverse )
set udg_PlayersQueenPlaying = GetPlayersAllies(Player(6))
call ForceRemovePlayerSimple( Player(6), udg_PlayersQueenPlaying )
// General
call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, Player(0) )
call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, Player(6) )
call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, Player(PLAYER_NEUTRAL_AGGRESSIVE) )
endfunction
//===========================================================================
function InitTrig_Setup_Players takes nothing returns nothing
set gg_trg_Setup_Players = CreateTrigger( )
call DisableTrigger( gg_trg_Setup_Players )
call TriggerAddAction( gg_trg_Setup_Players, function Trig_Setup_Players_Actions )
endfunction
function Trig_Player_Colors_Actions takes nothing returns nothing
set udg_Player_Colors[1] = "|c00ff0303"
set udg_Player_Colors[2] = "|c000042ff"
set udg_Player_Colors[3] = "|c001ce6b9"
set udg_Player_Colors[4] = "|c00540081"
set udg_Player_Colors[5] = "|c00fffc01"
set udg_Player_Colors[6] = "|c00ff8000"
set udg_Player_Colors[7] = "|c0020c000"
set udg_Player_Colors[8] = "|c00e55bb0"
set udg_Player_Colors[9] = "|c00959697"
set udg_Player_Colors[10] = "|c007ebff1"
set udg_Player_Colors[11] = "|c00106246"
set udg_Player_Colors[12] = "|c004e2a04"
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set udg_PlayerNames[GetForLoopIndexA()] = ( ( udg_Player_Colors[GetForLoopIndexA()] + GetPlayerName(ConvertedPlayer(GetForLoopIndexA())) ) + "|r" )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_Player_Colors takes nothing returns nothing
set gg_trg_Player_Colors = CreateTrigger( )
call DisableTrigger( gg_trg_Player_Colors )
call TriggerAddAction( gg_trg_Player_Colors, function Trig_Player_Colors_Actions )
endfunction
function Trig_Time_is_15_seconds_Actions takes nothing returns nothing
call EnableTrigger( gg_trg_Random_King )
call EnableTrigger( gg_trg_Random_Queen )
call EnableTrigger( gg_trg_Random_All_Heroes )
// -
call EnableTrigger( gg_trg_Repick_King )
call EnableTrigger( gg_trg_Repick_Queen )
call EnableTrigger( gg_trg_Repick_All_Heroes )
// -
call DisableTrigger( gg_trg_Command_All_Pick )
call DisableTrigger( gg_trg_Command_All_Random )
call DisableTrigger( gg_trg_Command_Reverse )
endfunction
//===========================================================================
function InitTrig_Time_is_15_seconds takes nothing returns nothing
set gg_trg_Time_is_15_seconds = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Time_is_15_seconds, 15.00 )
call TriggerAddAction( gg_trg_Time_is_15_seconds, function Trig_Time_is_15_seconds_Actions )
endfunction
function Trig_Time_is_45_seconds_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Random_King )
call DisableTrigger( gg_trg_Random_Queen )
call DisableTrigger( gg_trg_Random_All_Heroes )
// -
call DisableTrigger( gg_trg_Repick_King )
call DisableTrigger( gg_trg_Repick_Queen )
call DisableTrigger( gg_trg_Repick_All_Heroes )
// -
call DisableTrigger( gg_trg_Command_Item_Drop )
call DisableTrigger( gg_trg_Command_Death_Match )
call DisableTrigger( gg_trg_Command_Hard )
call DisableTrigger( gg_trg_Command_Easy )
// -
if ( Easy_Mode_True() ) then
call SetPlayerHandicapBJ( Player(0), 50.00 )
call SetPlayerHandicapBJ( Player(6), 50.00 )
call ForForce( GetPlayersAll(), function Easy_XP_Gain )
else
call DoNothing( )
endif
if ( Normal_Mode_True() ) then
call ForForce( GetPlayersAll(), function Normal_XP_Gain )
else
call DoNothing( )
endif
if ( Hard_Mode_True() ) then
call SetPlayerHandicapBJ( Player(0), 200.00 )
call SetPlayerHandicapBJ( Player(6), 200.00 )
else
call DoNothing( )
endif
// -
call TriggerExecute( gg_trg_Primary )
call TriggerExecute( gg_trg_The_Flag )
call TriggerExecute( gg_trg_The_Arena )
call TriggerExecute( gg_trg_The_Gold_Mine )
call TriggerExecute( gg_trg_Basics )
call TriggerExecute( gg_trg_Credits )
call TriggerExecute( gg_trg_Hero_Kills )
call TriggerExecute( gg_trg_Flag_Control )
call TriggerExecute( gg_trg_Gold_Mine_Control )
call TriggerExecute( gg_trg_Arena_Wins )
endfunction
//===========================================================================
function InitTrig_Time_is_45_seconds takes nothing returns nothing
set gg_trg_Time_is_45_seconds = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Time_is_45_seconds, 45.00 )
call TriggerAddAction( gg_trg_Time_is_45_seconds, function Trig_Time_is_45_seconds_Actions )
endfunction
function Trig_Command_All_Pick_Conditions takes nothing returns boolean
if ( not ( udg_GameMode == udg_MODE_Normal ) ) then
return false
endif
return true
endfunction
function Trig_Command_All_Pick_Actions takes nothing returns nothing
set udg_GameMode = udg_MODE_AllRandom_AllPick
call QuestMessageBJ( udg_Players, bj_QUESTMESSAGE_SECRET, "All pick mode enabled. You may pick from any Hero Tavern." )
endfunction
//===========================================================================
function InitTrig_Command_All_Pick takes nothing returns nothing
set gg_trg_Command_All_Pick = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Command_All_Pick, Player(1), "-ap", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Command_All_Pick, Player(1), "-allpick", true )
call TriggerAddCondition( gg_trg_Command_All_Pick, Condition( function Trig_Command_All_Pick_Conditions ) )
call TriggerAddAction( gg_trg_Command_All_Pick, function Trig_Command_All_Pick_Actions )
endfunction
function Trig_Command_All_Random_Conditions takes nothing returns boolean
if ( not ( udg_GameMode == udg_MODE_Normal ) ) then
return false
endif
return true
endfunction
function Trig_Command_All_Random_Actions takes nothing returns nothing
set udg_GameMode = udg_MODE_AllRandom_AllPick
call QuestMessageBJ( udg_Players, bj_QUESTMESSAGE_SECRET, "All random mode enabled. Each player receives a random Hero." )
call ForForce( udg_Players, function Pick_Random_Setup )
endfunction
//===========================================================================
function InitTrig_Command_All_Random takes nothing returns nothing
set gg_trg_Command_All_Random = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Command_All_Random, Player(1), "-ar", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Command_All_Random, Player(1), "-allrandom", true )
call TriggerAddCondition( gg_trg_Command_All_Random, Condition( function Trig_Command_All_Random_Conditions ) )
call TriggerAddAction( gg_trg_Command_All_Random, function Trig_Command_All_Random_Actions )
endfunction
function Trig_Command_Reverse_Conditions takes nothing returns boolean
if ( not ( udg_GameMode == udg_MODE_Normal ) ) then
return false
endif
return true
endfunction
function Trig_Command_Reverse_Actions takes nothing returns nothing
set udg_GameMode = udg_MODE_Reverse
call QuestMessageBJ( udg_Players, bj_QUESTMESSAGE_SECRET, "Reverse mode. Pick your OPPONENTS' Heroes from any Tavern. You may not repick." )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = ( udg_PlayersKingCount - udg_PlayersQueenCount )
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set udg_Player = ForcePickRandomPlayer(udg_PlayersKingReverse)
call ForceRemovePlayerSimple( udg_Player, udg_PlayersKingReverse )
call ForceAddPlayerSimple( udg_Player, udg_Odd_Man_Out )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = ( udg_PlayersQueenCount - udg_PlayersKingCount )
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set udg_Player = ForcePickRandomPlayer(udg_PlayersQueenReverse)
call ForceRemovePlayerSimple( udg_Player, udg_PlayersQueenReverse )
call ForceAddPlayerSimple( udg_Player, udg_Odd_Man_Out )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
if ( Pick_Reverse_MoreKingPlayers() ) then
call DisplayTextToForce( udg_Players, "The King has more players. A random hero will be picked." )
else
call DoNothing( )
endif
if ( Pick_Reverse_MoreQueenPlayers() ) then
call DisplayTextToForce( udg_Players, "The Queen has more players. A random hero will be picked." )
else
call DoNothing( )
endif
call ForForce( udg_Odd_Man_Out, function Pick_Reverse_Setup )
endfunction
//===========================================================================
function InitTrig_Command_Reverse takes nothing returns nothing
set gg_trg_Command_Reverse = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Command_Reverse, Player(1), "-re", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Command_Reverse, Player(1), "-reverse", true )
call TriggerAddCondition( gg_trg_Command_Reverse, Condition( function Trig_Command_Reverse_Conditions ) )
call TriggerAddAction( gg_trg_Command_Reverse, function Trig_Command_Reverse_Actions )
endfunction
function Trig_Command_Easy_Actions takes nothing returns nothing
if ( Easy_Mode_True() ) then
call QuestMessageBJ( GetForceOfPlayer(GetTriggerPlayer()), bj_QUESTMESSAGE_WARNING, "Easy Mode is already enabled..." )
else
set udg_Mode_Easy = true
set udg_Mode_Normal = false
call DisableTrigger( gg_trg_Command_Hard )
call QuestMessageBJ( udg_Players, bj_QUESTMESSAGE_SECRET, "Easy Mode enabled." )
endif
endfunction
//===========================================================================
function InitTrig_Command_Easy takes nothing returns nothing
set gg_trg_Command_Easy = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Command_Easy, Player(1), "-easy", true )
call TriggerAddAction( gg_trg_Command_Easy, function Trig_Command_Easy_Actions )
endfunction
function Trig_Command_Hard_Actions takes nothing returns nothing
if ( Hard_Mode_True() ) then
call QuestMessageBJ( GetForceOfPlayer(GetTriggerPlayer()), bj_QUESTMESSAGE_WARNING, "Hard Mode is already enabled..." )
else
set udg_Mode_Hard = true
set udg_Mode_Normal = false
call DisableTrigger( gg_trg_Command_Easy )
call QuestMessageBJ( udg_Players, bj_QUESTMESSAGE_SECRET, "Hard Mode enabled." )
endif
endfunction
//===========================================================================
function InitTrig_Command_Hard takes nothing returns nothing
set gg_trg_Command_Hard = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Command_Hard, Player(1), "-hard", true )
call TriggerAddAction( gg_trg_Command_Hard, function Trig_Command_Hard_Actions )
endfunction
function Trig_Command_Item_Drop_Actions takes nothing returns nothing
if ( Set_Item_Drop() ) then
call EnableTrigger( gg_trg_Item_Drop )
call QuestMessageBJ( udg_Players, bj_QUESTMESSAGE_SECRET, "Item Drop enabled. Dying Heroes will drop an item choosen at random." )
else
call QuestMessageBJ( GetForceOfPlayer(GetTriggerPlayer()), bj_QUESTMESSAGE_WARNING, "Item Drop is already enabled..." )
endif
endfunction
//===========================================================================
function InitTrig_Command_Item_Drop takes nothing returns nothing
set gg_trg_Command_Item_Drop = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Command_Item_Drop, Player(1), "-id", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Command_Item_Drop, Player(1), "-itemdrop", true )
call TriggerAddAction( gg_trg_Command_Item_Drop, function Trig_Command_Item_Drop_Actions )
endfunction
function Trig_Command_Death_Match_Actions takes nothing returns nothing
set udg_TempInteger = 3
if ( Death_Match_Lives_dm() ) then
set udg_TempInteger = S2I(SubStringBJ(GetEventPlayerChatString(), 4, StringLength(GetEventPlayerChatString())))
else
endif
if ( Death_Match_Lives_deathmatch() ) then
set udg_TempInteger = S2I(SubStringBJ(GetEventPlayerChatString(), 13, StringLength(GetEventPlayerChatString())))
else
endif
if ( Death_Match_Live_Less_Than_1() ) then
set udg_TempInteger = 3
else
endif
call QuestMessageBJ( udg_Players, bj_QUESTMESSAGE_SECRET, ( "Death Match enabled. Each player has " + ( I2S(udg_TempInteger) + " Lives." ) ) )
call ForForce( udg_Players, function Death_Match_Set_Lives )
call EnableTrigger( gg_trg_Death_Match )
endfunction
//===========================================================================
function InitTrig_Command_Death_Match takes nothing returns nothing
set gg_trg_Command_Death_Match = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Command_Death_Match, Player(1), "-dm", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Command_Death_Match, Player(1), "-deathmatch", false )
call TriggerAddAction( gg_trg_Command_Death_Match, function Trig_Command_Death_Match_Actions )
endfunction
function Trig_Tavern_King_Conditions takes nothing returns boolean
if ( not ( udg_GameMode == udg_MODE_Normal ) ) then
return false
endif
if ( not ( IsUnitType(GetSoldUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( IsPlayerInForce(GetOwningPlayer(GetSoldUnit()), udg_PlayersKing) == true ) ) then
return false
endif
return true
endfunction
function Trig_Tavern_King_Actions takes nothing returns nothing
call ForForce( udg_Players, function Tavern_King_SetAvailableUnits )
call QuestMessageBJ( GetPlayersEnemies(GetOwningPlayer(GetSoldUnit())), bj_QUESTMESSAGE_ALWAYSHINT, ( "A player has chosen " + GetUnitName(GetSoldUnit()) ) )
set udg_RandomData_King[GetStoredIntegerBJ(UnitId2StringBJ(GetUnitTypeId(GetSoldUnit())), "Sentinel", GetLastCreatedGameCacheBJ())] = udg_RandomData_King[udg_RandomTotal_King]
set udg_RandomTotal_King = ( udg_RandomTotal_King - 1 )
set udg_Player_Already_Picked[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))] = ( udg_Player_Already_Picked[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))] + 1 )
endfunction
//===========================================================================
function InitTrig_Tavern_King takes nothing returns nothing
set gg_trg_Tavern_King = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Tavern_King, EVENT_PLAYER_UNIT_SELL )
call TriggerAddCondition( gg_trg_Tavern_King, Condition( function Trig_Tavern_King_Conditions ) )
call TriggerAddAction( gg_trg_Tavern_King, function Trig_Tavern_King_Actions )
endfunction
function Trig_Tavern_Queen_Conditions takes nothing returns boolean
if ( not ( udg_GameMode == udg_MODE_Normal ) ) then
return false
endif
if ( not ( IsUnitType(GetSoldUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( IsPlayerInForce(GetOwningPlayer(GetSoldUnit()), udg_PlayersQueen) == true ) ) then
return false
endif
return true
endfunction
function Trig_Tavern_Queen_Actions takes nothing returns nothing
call ForForce( udg_Players, function Tavern_Queen_SetAvailableUnits )
call QuestMessageBJ( GetPlayersEnemies(GetOwningPlayer(GetSoldUnit())), bj_QUESTMESSAGE_ALWAYSHINT, ( "A player has chosen " + GetUnitName(GetSoldUnit()) ) )
set udg_RandomData_Queen[GetStoredIntegerBJ(UnitId2StringBJ(GetUnitTypeId(GetSoldUnit())), "Scourge", GetLastCreatedGameCacheBJ())] = udg_RandomData_Queen[udg_RandomTotal_Queen]
set udg_RandomTotal_Queen = ( udg_RandomTotal_Queen - 1 )
set udg_Player_Already_Picked[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))] = ( udg_Player_Already_Picked[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))] + 1 )
endfunction
//===========================================================================
function InitTrig_Tavern_Queen takes nothing returns nothing
set gg_trg_Tavern_Queen = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Tavern_Queen, EVENT_PLAYER_UNIT_SELL )
call TriggerAddCondition( gg_trg_Tavern_Queen, Condition( function Trig_Tavern_Queen_Conditions ) )
call TriggerAddAction( gg_trg_Tavern_Queen, function Trig_Tavern_Queen_Actions )
endfunction
function Trig_Tavern_All_Heroes_Conditions takes nothing returns boolean
if ( not ( udg_GameMode == udg_MODE_AllRandom_AllPick ) ) then
return false
endif
if ( not ( IsUnitType(GetSoldUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_Tavern_All_Heroes_Actions takes nothing returns nothing
call ForForce( udg_Players, function Tavern_All_Heros_SetAvailableUnits )
call QuestMessageBJ( GetPlayersEnemies(GetOwningPlayer(GetSoldUnit())), bj_QUESTMESSAGE_ALWAYSHINT, ( "A player has chosen " + GetUnitName(GetSoldUnit()) ) )
set udg_RandomData_All[GetStoredIntegerBJ(UnitId2StringBJ(GetUnitTypeId(GetSoldUnit())), "All", GetLastCreatedGameCacheBJ())] = udg_RandomData_All[udg_RandomTotal_All]
set udg_RandomTotal_All = ( udg_RandomTotal_All - 1 )
set udg_Player_Already_Picked[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))] = ( udg_Player_Already_Picked[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))] + 1 )
endfunction
//===========================================================================
function InitTrig_Tavern_All_Heroes takes nothing returns nothing
set gg_trg_Tavern_All_Heroes = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Tavern_All_Heroes, EVENT_PLAYER_UNIT_SELL )
call TriggerAddCondition( gg_trg_Tavern_All_Heroes, Condition( function Trig_Tavern_All_Heroes_Conditions ) )
call TriggerAddAction( gg_trg_Tavern_All_Heroes, function Trig_Tavern_All_Heroes_Actions )
endfunction
function Trig_Tavern_All_Heroes_Reverse_Conditions takes nothing returns boolean
if ( not ( udg_GameMode == udg_MODE_Reverse ) ) then
return false
endif
if ( not ( IsUnitType(GetSoldUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_Tavern_All_Heroes_Reverse_Actions takes nothing returns nothing
call ForForce( udg_Players, function Tavern_All_Heroes_Reverse_SetAvailableUnits )
set udg_RandomData_All[GetStoredIntegerBJ(UnitId2StringBJ(GetUnitTypeId(GetSoldUnit())), "All", GetLastCreatedGameCacheBJ())] = udg_RandomData_All[udg_RandomTotal_All]
set udg_RandomTotal_All = ( udg_RandomTotal_All - 1 )
call SetPlayerStateBJ( GetOwningPlayer(GetSoldUnit()), PLAYER_STATE_RESOURCE_HERO_TOKENS, 0 )
if ( Tavern_All_Heroes_Reverse_OwnerInQueen() ) then
set udg_Player = ForcePickRandomPlayer(udg_PlayersQueenReverse)
call ForceRemovePlayerSimple( udg_Player, udg_PlayersQueenReverse )
else
set udg_Player = ForcePickRandomPlayer(udg_PlayersKingReverse)
call ForceRemovePlayerSimple( udg_Player, udg_PlayersKingReverse )
endif
call SetUnitOwner( GetSoldUnit(), udg_Player, true )
call QuestMessageBJ( GetPlayersEnemies(udg_Player), bj_QUESTMESSAGE_ALWAYSHINT, ( "A player has chosen " + GetUnitName(GetSoldUnit()) ) )
set udg_Player_Already_Picked[GetConvertedPlayerId(udg_Player)] = ( udg_Player_Already_Picked[GetConvertedPlayerId(udg_Player)] + 1 )
endfunction
//===========================================================================
function InitTrig_Tavern_All_Heroes_Reverse takes nothing returns nothing
set gg_trg_Tavern_All_Heroes_Reverse = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Tavern_All_Heroes_Reverse, EVENT_PLAYER_UNIT_SELL )
call TriggerAddCondition( gg_trg_Tavern_All_Heroes_Reverse, Condition( function Trig_Tavern_All_Heroes_Reverse_Conditions ) )
call TriggerAddAction( gg_trg_Tavern_All_Heroes_Reverse, function Trig_Tavern_All_Heroes_Reverse_Actions )
endfunction
function Trig_Random_King_Conditions takes nothing returns boolean
if ( not ( udg_GameMode == udg_MODE_Normal ) ) then
return false
endif
if ( not ( udg_Player_Already_Picked[GetConvertedPlayerId(GetTriggerPlayer())] == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Random_King_Actions takes nothing returns nothing
set udg_Random_Hero = GetRandomInt(1, udg_RandomTotal_King)
call CreateNUnitsAtLoc( 1, udg_Heroes_King[udg_RandomData_King[udg_Random_Hero]], GetTriggerPlayer(), GetPlayerStartLocationLoc(GetTriggerPlayer()), bj_UNIT_FACING )
call QuestMessageBJ( GetPlayersEnemies(GetTriggerPlayer()), bj_QUESTMESSAGE_ALWAYSHINT, ( "A player has randomed " + GetUnitName(GetLastCreatedUnit()) ) )
set udg_Player_Already_Picked[GetConvertedPlayerId(GetTriggerPlayer())] = ( udg_Player_Already_Picked[GetConvertedPlayerId(GetTriggerPlayer())] + 1 )
call ForForce( udg_Players, function Random_King_SetAvailableUnits )
set udg_RandomData_King[udg_Random_Hero] = udg_RandomData_King[udg_RandomTotal_King]
set udg_RandomTotal_King = ( udg_RandomTotal_King - 1 )
endfunction
//===========================================================================
function InitTrig_Random_King takes nothing returns nothing
set gg_trg_Random_King = CreateTrigger( )
call DisableTrigger( gg_trg_Random_King )
call TriggerRegisterPlayerChatEvent( gg_trg_Random_King, Player(1), "-random", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Random_King, Player(2), "-random", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Random_King, Player(3), "-random", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Random_King, Player(4), "-random", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Random_King, Player(5), "-random", true )
call TriggerAddCondition( gg_trg_Random_King, Condition( function Trig_Random_King_Conditions ) )
call TriggerAddAction( gg_trg_Random_King, function Trig_Random_King_Actions )
endfunction
function Trig_Random_Queen_Conditions takes nothing returns boolean
if ( not ( udg_GameMode == udg_MODE_Normal ) ) then
return false
endif
if ( not ( udg_Player_Already_Picked[GetConvertedPlayerId(GetTriggerPlayer())] == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Random_Queen_Actions takes nothing returns nothing
set udg_Random_Hero = GetRandomInt(1, udg_RandomTotal_Queen)
call CreateNUnitsAtLoc( 1, udg_Heroes_Queen[udg_RandomData_Queen[udg_Random_Hero]], GetTriggerPlayer(), GetPlayerStartLocationLoc(GetTriggerPlayer()), bj_UNIT_FACING )
call QuestMessageBJ( GetPlayersEnemies(GetTriggerPlayer()), bj_QUESTMESSAGE_ALWAYSHINT, ( "A player has randomed " + GetUnitName(GetLastCreatedUnit()) ) )
set udg_Player_Already_Picked[GetConvertedPlayerId(GetTriggerPlayer())] = ( udg_Player_Already_Picked[GetConvertedPlayerId(GetTriggerPlayer())] + 1 )
call ForForce( udg_Players, function Random_Queen_SetAvailableUnits )
set udg_RandomData_Queen[udg_Random_Hero] = udg_RandomData_Queen[udg_RandomTotal_Queen]
set udg_RandomTotal_Queen = ( udg_RandomTotal_Queen - 1 )
endfunction
//===========================================================================
function InitTrig_Random_Queen takes nothing returns nothing
set gg_trg_Random_Queen = CreateTrigger( )
call DisableTrigger( gg_trg_Random_Queen )
call TriggerRegisterPlayerChatEvent( gg_trg_Random_Queen, Player(7), "-random", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Random_Queen, Player(8), "-random", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Random_Queen, Player(9), "-random", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Random_Queen, Player(10), "-random", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Random_Queen, Player(11), "-random", true )
call TriggerAddCondition( gg_trg_Random_Queen, Condition( function Trig_Random_Queen_Conditions ) )
call TriggerAddAction( gg_trg_Random_Queen, function Trig_Random_Queen_Actions )
endfunction
function Trig_Random_All_Heroes_Conditions takes nothing returns boolean
if ( not ( udg_GameMode == udg_MODE_AllRandom_AllPick ) ) then
return false
endif
if ( not ( udg_Player_Already_Picked[GetConvertedPlayerId(GetTriggerPlayer())] == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Random_All_Heroes_Actions takes nothing returns nothing
set udg_Random_Hero = GetRandomInt(1, udg_RandomTotal_All)
call CreateNUnitsAtLoc( 1, udg_Heroes_All[udg_RandomData_All[udg_Random_Hero]], GetTriggerPlayer(), GetPlayerStartLocationLoc(GetTriggerPlayer()), bj_UNIT_FACING )
call QuestMessageBJ( GetPlayersEnemies(GetTriggerPlayer()), bj_QUESTMESSAGE_ALWAYSHINT, ( "A player has randomed " + GetUnitName(GetLastCreatedUnit()) ) )
set udg_Player_Already_Picked[GetConvertedPlayerId(GetTriggerPlayer())] = ( udg_Player_Already_Picked[GetConvertedPlayerId(GetTriggerPlayer())] + 1 )
call ForForce( udg_Players, function Random_All_Heroes_SetAvailableUnits )
set udg_RandomData_All[udg_Random_Hero] = udg_RandomData_All[udg_RandomTotal_All]
set udg_RandomTotal_All = ( udg_RandomTotal_All - 1 )
endfunction
//===========================================================================
function InitTrig_Random_All_Heroes takes nothing returns nothing
set gg_trg_Random_All_Heroes = CreateTrigger( )
call DisableTrigger( gg_trg_Random_All_Heroes )
call TriggerRegisterPlayerChatEvent( gg_trg_Random_All_Heroes, Player(1), "-random", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Random_All_Heroes, Player(2), "-random", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Random_All_Heroes, Player(3), "-random", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Random_All_Heroes, Player(4), "-random", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Random_All_Heroes, Player(5), "-random", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Random_All_Heroes, Player(7), "-random", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Random_All_Heroes, Player(8), "-random", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Random_All_Heroes, Player(9), "-random", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Random_All_Heroes, Player(10), "-random", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Random_All_Heroes, Player(11), "-random", true )
call TriggerAddCondition( gg_trg_Random_All_Heroes, Condition( function Trig_Random_All_Heroes_Conditions ) )
call TriggerAddAction( gg_trg_Random_All_Heroes, function Trig_Random_All_Heroes_Actions )
endfunction
function Trig_Repick_King_Conditions takes nothing returns boolean
if ( not ( udg_GameMode == udg_MODE_Normal ) ) then
return false
endif
if ( not ( udg_Player_Already_Picked[GetConvertedPlayerId(GetTriggerPlayer())] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Repick_King_Actions takes nothing returns nothing
call QuestMessageBJ( GetPlayersEnemies(GetTriggerPlayer()), bj_QUESTMESSAGE_ALWAYSHINT, "A player has repicked!" )
call ForGroupBJ( GetUnitsOfPlayerMatching(GetTriggerPlayer(), Condition(function Repick_King_UnitIsHero)), function Repick_King_RandomSetup )
set udg_Player_Already_Picked[GetConvertedPlayerId(GetTriggerPlayer())] = ( udg_Player_Already_Picked[GetConvertedPlayerId(GetTriggerPlayer())] + 1 )
call AdjustPlayerStateBJ( udg_Repick_Cost_Ammount, GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD )
if ( Repick_King_RandomTotal() ) then
set udg_Random_Hero = GetRandomInt(1, ( udg_RandomTotal_King - 1 ))
else
set udg_Random_Hero = 1
endif
call CreateNUnitsAtLoc( 1, udg_Heroes_King[udg_RandomData_King[udg_Random_Hero]], GetTriggerPlayer(), GetPlayerStartLocationLoc(GetTriggerPlayer()), bj_UNIT_FACING )
call QuestMessageBJ( GetPlayersEnemies(GetTriggerPlayer()), bj_QUESTMESSAGE_ALWAYSHINT, ( "A player has randomed " + GetUnitName(GetLastCreatedUnit()) ) )
call ForForce( udg_Players, function Repick_King_UnitUnavailable )
set udg_RandomData_King[udg_Random_Hero] = udg_RandomData_King[udg_RandomTotal_King]
set udg_RandomTotal_King = ( udg_RandomTotal_King - 1 )
endfunction
//===========================================================================
function InitTrig_Repick_King takes nothing returns nothing
set gg_trg_Repick_King = CreateTrigger( )
call DisableTrigger( gg_trg_Repick_King )
call TriggerRegisterPlayerChatEvent( gg_trg_Repick_King, Player(1), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Repick_King, Player(2), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Repick_King, Player(3), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Repick_King, Player(4), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Repick_King, Player(5), "-repick", true )
call TriggerAddCondition( gg_trg_Repick_King, Condition( function Trig_Repick_King_Conditions ) )
call TriggerAddAction( gg_trg_Repick_King, function Trig_Repick_King_Actions )
endfunction
function Trig_Repick_Queen_Conditions takes nothing returns boolean
if ( not ( udg_GameMode == udg_MODE_Normal ) ) then
return false
endif
if ( not ( udg_Player_Already_Picked[GetConvertedPlayerId(GetTriggerPlayer())] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Repick_Queen_Actions takes nothing returns nothing
call QuestMessageBJ( GetPlayersEnemies(GetTriggerPlayer()), bj_QUESTMESSAGE_ALWAYSHINT, "A player has repicked!" )
call ForGroupBJ( GetUnitsOfPlayerMatching(GetTriggerPlayer(), Condition(function Repick_Queen_UnitIsHero)), function Repick_Queen_RandomSetup )
set udg_Player_Already_Picked[GetConvertedPlayerId(GetTriggerPlayer())] = ( udg_Player_Already_Picked[GetConvertedPlayerId(GetTriggerPlayer())] + 1 )
call AdjustPlayerStateBJ( udg_Repick_Cost_Ammount, GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD )
if ( Repick_Queen_RandomTotal() ) then
set udg_Random_Hero = GetRandomInt(1, ( udg_RandomTotal_Queen - 1 ))
else
set udg_Random_Hero = 1
endif
call CreateNUnitsAtLoc( 1, udg_Heroes_Queen[udg_RandomData_Queen[udg_Random_Hero]], GetTriggerPlayer(), GetPlayerStartLocationLoc(GetTriggerPlayer()), bj_UNIT_FACING )
call QuestMessageBJ( GetPlayersEnemies(GetTriggerPlayer()), bj_QUESTMESSAGE_ALWAYSHINT, ( "A player has randomed " + GetUnitName(GetLastCreatedUnit()) ) )
call ForForce( udg_Players, function Repick_Queen_UnitUnavailable )
set udg_RandomData_Queen[udg_Random_Hero] = udg_RandomData_Queen[udg_RandomTotal_Queen]
set udg_RandomTotal_Queen = ( udg_RandomTotal_Queen - 1 )
endfunction
//===========================================================================
function InitTrig_Repick_Queen takes nothing returns nothing
set gg_trg_Repick_Queen = CreateTrigger( )
call DisableTrigger( gg_trg_Repick_Queen )
call TriggerRegisterPlayerChatEvent( gg_trg_Repick_Queen, Player(7), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Repick_Queen, Player(8), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Repick_Queen, Player(9), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Repick_Queen, Player(10), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Repick_Queen, Player(11), "-repick", true )
call TriggerAddCondition( gg_trg_Repick_Queen, Condition( function Trig_Repick_Queen_Conditions ) )
call TriggerAddAction( gg_trg_Repick_Queen, function Trig_Repick_Queen_Actions )
endfunction
function Trig_Repick_All_Heroes_Conditions takes nothing returns boolean
if ( not ( udg_GameMode == udg_MODE_AllRandom_AllPick ) ) then
return false
endif
if ( not ( udg_Player_Already_Picked[GetConvertedPlayerId(GetTriggerPlayer())] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Repick_All_Heroes_Actions takes nothing returns nothing
call QuestMessageBJ( GetPlayersEnemies(GetTriggerPlayer()), bj_QUESTMESSAGE_ALWAYSHINT, "A player has repicked!" )
call ForGroupBJ( GetUnitsOfPlayerMatching(GetTriggerPlayer(), Condition(function Repick_All_UnitIsHero)), function Repick_All_RandomSetup )
set udg_Player_Already_Picked[GetConvertedPlayerId(GetTriggerPlayer())] = ( udg_Player_Already_Picked[GetConvertedPlayerId(GetTriggerPlayer())] + 1 )
call AdjustPlayerStateBJ( udg_Repick_Cost_Ammount, GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD )
if ( Repick_All_RandomTotal() ) then
set udg_Random_Hero = GetRandomInt(1, ( udg_RandomTotal_All - 1 ))
else
set udg_Random_Hero = 1
endif
call CreateNUnitsAtLoc( 1, udg_Heroes_All[udg_RandomData_All[udg_Random_Hero]], GetTriggerPlayer(), GetPlayerStartLocationLoc(GetTriggerPlayer()), bj_UNIT_FACING )
call QuestMessageBJ( GetPlayersEnemies(GetTriggerPlayer()), bj_QUESTMESSAGE_ALWAYSHINT, ( "A player has randomed " + GetUnitName(GetLastCreatedUnit()) ) )
call ForForce( udg_Players, function Repick_All_UnitUnavailable )
set udg_RandomData_All[udg_Random_Hero] = udg_RandomData_All[udg_RandomTotal_All]
set udg_RandomTotal_All = ( udg_RandomTotal_All - 1 )
endfunction
//===========================================================================
function InitTrig_Repick_All_Heroes takes nothing returns nothing
set gg_trg_Repick_All_Heroes = CreateTrigger( )
call DisableTrigger( gg_trg_Repick_All_Heroes )
call TriggerRegisterPlayerChatEvent( gg_trg_Repick_All_Heroes, Player(1), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Repick_All_Heroes, Player(2), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Repick_All_Heroes, Player(3), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Repick_All_Heroes, Player(4), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Repick_All_Heroes, Player(5), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Repick_All_Heroes, Player(7), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Repick_All_Heroes, Player(8), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Repick_All_Heroes, Player(9), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Repick_All_Heroes, Player(10), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Repick_All_Heroes, Player(11), "-repick", true )
call TriggerAddCondition( gg_trg_Repick_All_Heroes, Condition( function Trig_Repick_All_Heroes_Conditions ) )
call TriggerAddAction( gg_trg_Repick_All_Heroes, function Trig_Repick_All_Heroes_Actions )
endfunction
function Trig_Revive_Hero_Timer_Actions takes nothing returns nothing
call ForGroupBJ( udg_RevivableHeroes, function Revive_Hero_Timer_ReviveLoc )
endfunction
//===========================================================================
function InitTrig_Revive_Hero_Timer takes nothing returns nothing
set gg_trg_Revive_Hero_Timer = CreateTrigger( )
call TriggerRegisterTimerExpireEventBJ( gg_trg_Revive_Hero_Timer, udg_ReviveTimers[2] )
call TriggerRegisterTimerExpireEventBJ( gg_trg_Revive_Hero_Timer, udg_ReviveTimers[3] )
call TriggerRegisterTimerExpireEventBJ( gg_trg_Revive_Hero_Timer, udg_ReviveTimers[4] )
call TriggerRegisterTimerExpireEventBJ( gg_trg_Revive_Hero_Timer, udg_ReviveTimers[5] )
call TriggerRegisterTimerExpireEventBJ( gg_trg_Revive_Hero_Timer, udg_ReviveTimers[6] )
call TriggerRegisterTimerExpireEventBJ( gg_trg_Revive_Hero_Timer, udg_ReviveTimers[8] )
call TriggerRegisterTimerExpireEventBJ( gg_trg_Revive_Hero_Timer, udg_ReviveTimers[9] )
call TriggerRegisterTimerExpireEventBJ( gg_trg_Revive_Hero_Timer, udg_ReviveTimers[10] )
call TriggerRegisterTimerExpireEventBJ( gg_trg_Revive_Hero_Timer, udg_ReviveTimers[11] )
call TriggerRegisterTimerExpireEventBJ( gg_trg_Revive_Hero_Timer, udg_ReviveTimers[12] )
call TriggerAddAction( gg_trg_Revive_Hero_Timer, function Trig_Revive_Hero_Timer_Actions )
endfunction
function Trig_Revive_Hero_Tavern_Conditions takes nothing returns boolean
if ( not ( IsUnitInGroup(GetRevivingUnit(), udg_RevivableHeroes) == true ) ) then
return false
endif
return true
endfunction
function Trig_Revive_Hero_Tavern_Actions takes nothing returns nothing
call GroupRemoveUnitSimple( GetRevivingUnit(), udg_RevivableHeroes )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 2, udg_Multiboard_Spots[GetConvertedPlayerId(GetOwningPlayer(GetRevivingUnit()))], "TRIGSTR_9705" )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetRevivingUnit()), GetUnitLoc(GetRevivingUnit()), 0.60 )
call SelectUnitForPlayerSingle( GetRevivingUnit(), GetOwningPlayer(GetRevivingUnit()) )
endfunction
//===========================================================================
function InitTrig_Revive_Hero_Tavern takes nothing returns nothing
set gg_trg_Revive_Hero_Tavern = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Revive_Hero_Tavern, EVENT_PLAYER_HERO_REVIVE_FINISH )
call TriggerAddCondition( gg_trg_Revive_Hero_Tavern, Condition( function Trig_Revive_Hero_Tavern_Conditions ) )
call TriggerAddAction( gg_trg_Revive_Hero_Tavern, function Trig_Revive_Hero_Tavern_Actions )
endfunction
function Trig_Move_Heroes_Actions takes nothing returns nothing
if ( Move_Heroes_KingPlayer() ) then
call SetUnitPositionLoc( GetEnteringUnit(), GetRectCenter(gg_rct_King_Hero_Spawn) )
call GroupAddUnitSimple( GetTriggerUnit(), udg_King_Heros )
else
call SetUnitPositionLoc( GetEnteringUnit(), GetRectCenter(gg_rct_Queen_Hero_Spawn) )
call GroupAddUnitSimple( GetTriggerUnit(), udg_Queen_Heros )
endif
call SelectUnitForPlayerSingle( GetEnteringUnit(), GetOwningPlayer(GetEnteringUnit()) )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnteringUnit()), GetUnitLoc(GetEnteringUnit()), 1.00 )
endfunction
//===========================================================================
function InitTrig_Move_Heroes takes nothing returns nothing
set gg_trg_Move_Heroes = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Move_Heroes, gg_rct_Buy )
call TriggerAddAction( gg_trg_Move_Heroes, function Trig_Move_Heroes_Actions )
endfunction
function Trig_Item_Drop_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_Item_Drop_Actions takes nothing returns nothing
set udg_ItemDropCount = 0
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 6
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Item_Drop_ItemOwned() ) then
set udg_ItemDropCount = ( udg_ItemDropCount + 1 )
set udg_ItemDrop[udg_ItemDropCount] = GetForLoopIndexA()
else
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
if ( Item_Drop_HasItem() ) then
call UnitRemoveItemFromSlotSwapped( udg_ItemDrop[GetRandomInt(1, udg_ItemDropCount)], GetDyingUnit() )
else
endif
endfunction
//===========================================================================
function InitTrig_Item_Drop takes nothing returns nothing
set gg_trg_Item_Drop = CreateTrigger( )
call DisableTrigger( gg_trg_Item_Drop )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Item_Drop, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Item_Drop, Condition( function Trig_Item_Drop_Conditions ) )
call TriggerAddAction( gg_trg_Item_Drop, function Trig_Item_Drop_Actions )
endfunction
function Trig_Death_Match_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_Death_Match_Actions takes nothing returns nothing
set udg_TempInteger = GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))
set udg_DeathMatch[udg_TempInteger] = ( udg_DeathMatch[udg_TempInteger] - 1 )
if ( Death_Match_PlayerDone() ) then
call QuestMessageBJ( udg_Players, bj_QUESTMESSAGE_ALWAYSHINT, ( GetPlayerName(GetOwningPlayer(GetDyingUnit())) + " has died too often." ) )
call CustomDefeatBJ( GetOwningPlayer(GetDyingUnit()), "TRIGSTR_9706" )
else
endif
endfunction
//===========================================================================
function InitTrig_Death_Match takes nothing returns nothing
set gg_trg_Death_Match = CreateTrigger( )
call DisableTrigger( gg_trg_Death_Match )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Death_Match, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Death_Match, Condition( function Trig_Death_Match_Conditions ) )
call TriggerAddAction( gg_trg_Death_Match, function Trig_Death_Match_Actions )
endfunction
function Trig_Player_Leaves_Game_Actions takes nothing returns nothing
call QuestMessageBJ( udg_Players, bj_QUESTMESSAGE_WARNING, ( GetPlayerName(GetTriggerPlayer()) + " has left the game." ) )
endfunction
//===========================================================================
function InitTrig_Player_Leaves_Game takes nothing returns nothing
set gg_trg_Player_Leaves_Game = CreateTrigger( )
call TriggerRegisterPlayerEventLeave( gg_trg_Player_Leaves_Game, Player(1) )
call TriggerRegisterPlayerEventLeave( gg_trg_Player_Leaves_Game, Player(2) )
call TriggerRegisterPlayerEventLeave( gg_trg_Player_Leaves_Game, Player(3) )
call TriggerRegisterPlayerEventLeave( gg_trg_Player_Leaves_Game, Player(4) )
call TriggerRegisterPlayerEventLeave( gg_trg_Player_Leaves_Game, Player(5) )
call TriggerRegisterPlayerEventLeave( gg_trg_Player_Leaves_Game, Player(7) )
call TriggerRegisterPlayerEventLeave( gg_trg_Player_Leaves_Game, Player(8) )
call TriggerRegisterPlayerEventLeave( gg_trg_Player_Leaves_Game, Player(9) )
call TriggerRegisterPlayerEventLeave( gg_trg_Player_Leaves_Game, Player(10) )
call TriggerRegisterPlayerEventLeave( gg_trg_Player_Leaves_Game, Player(11) )
call TriggerAddAction( gg_trg_Player_Leaves_Game, function Trig_Player_Leaves_Game_Actions )
endfunction
function Trig_Matchup_Actions takes nothing returns nothing
set udg_UnitGroup = GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Matchup_UnitIsHero))
call ForGroupBJ( udg_UnitGroup, function Matchup_Text )
endfunction
//===========================================================================
function InitTrig_Matchup takes nothing returns nothing
set gg_trg_Matchup = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Matchup, Player(1), "-ma", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Matchup, Player(2), "-ma", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Matchup, Player(3), "-ma", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Matchup, Player(4), "-ma", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Matchup, Player(5), "-ma", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Matchup, Player(7), "-ma", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Matchup, Player(8), "-ma", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Matchup, Player(9), "-ma", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Matchup, Player(10), "-ma", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Matchup, Player(11), "-ma", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Matchup, Player(1), "-matchup", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Matchup, Player(2), "-matchup", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Matchup, Player(3), "-matchup", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Matchup, Player(4), "-matchup", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Matchup, Player(5), "-matchup", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Matchup, Player(7), "-matchup", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Matchup, Player(8), "-matchup", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Matchup, Player(9), "-matchup", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Matchup, Player(10), "-matchup", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Matchup, Player(11), "-matchup", true )
call TriggerAddAction( gg_trg_Matchup, function Trig_Matchup_Actions )
endfunction
function Trig_Movespeed_Actions takes nothing returns nothing
set udg_UnitGroup = GetUnitsOfPlayerMatching(GetTriggerPlayer(), Condition(function Movespeed_UnitIsHero))
call ForGroupBJ( udg_UnitGroup, function Movespeed_Text )
endfunction
//===========================================================================
function InitTrig_Movespeed takes nothing returns nothing
set gg_trg_Movespeed = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Movespeed, Player(1), "-ms", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Movespeed, Player(2), "-ms", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Movespeed, Player(3), "-ms", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Movespeed, Player(4), "-ms", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Movespeed, Player(5), "-ms", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Movespeed, Player(7), "-ms", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Movespeed, Player(8), "-ms", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Movespeed, Player(9), "-ms", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Movespeed, Player(10), "-ms", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Movespeed, Player(11), "-ms", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Movespeed, Player(1), "-movespeed", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Movespeed, Player(2), "-movespeed", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Movespeed, Player(3), "-movespeed", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Movespeed, Player(4), "-movespeed", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Movespeed, Player(5), "-movespeed", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Movespeed, Player(7), "-movespeed", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Movespeed, Player(8), "-movespeed", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Movespeed, Player(9), "-movespeed", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Movespeed, Player(10), "-movespeed", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Movespeed, Player(11), "-movespeed", true )
call TriggerAddAction( gg_trg_Movespeed, function Trig_Movespeed_Actions )
endfunction
function Trig_Multiboard_Setup_Actions takes nothing returns nothing
call StartTimerBJ( udg_Game_Time, false, 999999.00 )
call CreateLeaderboardBJ( udg_PlayersKing, "The King" )
set udg_LeaderboardKing = GetLastCreatedLeaderboard()
call LeaderboardDisplayBJ( false, udg_LeaderboardKing )
call CreateLeaderboardBJ( udg_PlayersQueen, "The Queen" )
set udg_LeaderboardQueen = GetLastCreatedLeaderboard()
call LeaderboardDisplayBJ( false, udg_LeaderboardQueen )
call ForForce( udg_PlayersKing, function Multiboard_Setup_PlayersKing )
call ForForce( udg_PlayersQueen, function Multiboard_Setup_PlayersQueen )
call TriggerExecute( gg_trg_Create_Multiboard )
call EnableTrigger( gg_trg_Every_Second )
endfunction
//===========================================================================
function InitTrig_Multiboard_Setup takes nothing returns nothing
set gg_trg_Multiboard_Setup = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Multiboard_Setup, 16.00 )
call TriggerAddAction( gg_trg_Multiboard_Setup, function Trig_Multiboard_Setup_Actions )
endfunction
function Trig_Create_Multiboard_Actions takes nothing returns nothing
call CreateMultiboardBJ( 4, ( 15 + udg_PlayersCount ), "King & Queen" )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 1, 1, "Player" )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 2, 1, "Dead" )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 3, 1, "Kills" )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 4, 1, "Deaths" )
// Now set the fields for the first row, AND our player rows.
call MultiboardSetItemStyleBJ( GetLastCreatedMultiboard(), 0, 0, true, false )
call MultiboardSetItemWidthBJ( GetLastCreatedMultiboard(), 1, 0, 10.00 )
call MultiboardSetItemWidthBJ( GetLastCreatedMultiboard(), 2, 0, 4.00 )
call MultiboardSetItemWidthBJ( GetLastCreatedMultiboard(), 3, 0, 3.00 )
call MultiboardSetItemWidthBJ( GetLastCreatedMultiboard(), 4, 0, 5.00 )
call MultiboardSetItemColorBJ( GetLastCreatedMultiboard(), 2, 0, 70.00, 70.00, 70.00, 0 )
call MultiboardSetItemColorBJ( GetLastCreatedMultiboard(), 3, 0, 70.00, 70.00, 70.00, 0 )
call MultiboardSetItemColorBJ( GetLastCreatedMultiboard(), 4, 0, 70.00, 70.00, 70.00, 0 )
// DEFINE PLAYERS ON THE BOARD
call TriggerExecute( gg_trg_Sort_Multiboard )
// The King
set udg_TempInteger = 2
set udg_Multiboard_Spots[1] = udg_TempInteger
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 1, udg_TempInteger, udg_PlayerNames[1] )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 2, udg_TempInteger, "" )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 3, udg_TempInteger, "0" )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 4, udg_TempInteger, "0" )
// The Queen
set udg_TempInteger = ( CountPlayersInForceBJ(udg_PlayersKing) + 4 )
set udg_Multiboard_Spots[7] = udg_TempInteger
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 1, udg_TempInteger, udg_PlayerNames[7] )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 2, udg_TempInteger, "" )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 3, udg_TempInteger, "0" )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 4, udg_TempInteger, "0" )
// Teams
set udg_Multiboard_Teams = ( udg_PlayersCount + 6 )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 2, udg_Multiboard_Teams, udg_PlayerNames[1] )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 3, udg_Multiboard_Teams, udg_PlayerNames[7] )
call MultiboardSetItemWidthBJ( GetLastCreatedMultiboard(), 2, udg_Multiboard_Teams, 6.00 )
call MultiboardSetItemWidthBJ( GetLastCreatedMultiboard(), 3, udg_Multiboard_Teams, 6.00 )
// Gold Mine
set udg_Multiboard_Gold_Mine = ( udg_PlayersCount + 7 )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 1, udg_Multiboard_Gold_Mine, "Gold Mine" )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 1, ( udg_Multiboard_Gold_Mine + 1 ), "Total Time" )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 1, ( udg_Multiboard_Gold_Mine + 2 ), "Owner" )
call MultiboardSetItemWidthBJ( GetLastCreatedMultiboard(), 2, ( udg_Multiboard_Gold_Mine + 2 ), 10.00 )
call MultiboardSetItemWidthBJ( GetLastCreatedMultiboard(), 2, udg_Multiboard_Gold_Mine, 6.00 )
call MultiboardSetItemWidthBJ( GetLastCreatedMultiboard(), 2, ( udg_Multiboard_Gold_Mine + 1 ), 6.00 )
call MultiboardSetItemWidthBJ( GetLastCreatedMultiboard(), 3, udg_Multiboard_Gold_Mine, 6.00 )
call MultiboardSetItemWidthBJ( GetLastCreatedMultiboard(), 3, ( udg_Multiboard_Gold_Mine + 1 ), 6.00 )
call MultiboardSetItemColorBJ( GetLastCreatedMultiboard(), 1, udg_Multiboard_Gold_Mine, 100, 80.00, 20.00, 0 )
call MultiboardSetItemColorBJ( GetLastCreatedMultiboard(), 1, ( udg_Multiboard_Gold_Mine + 1 ), 50.00, 80.00, 20.00, 0 )
call MultiboardSetItemColorBJ( GetLastCreatedMultiboard(), 1, ( udg_Multiboard_Gold_Mine + 2 ), 50.00, 80.00, 20.00, 0 )
// Flag
set udg_Multiboard_Flag = ( udg_PlayersCount + 10 )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 1, udg_Multiboard_Flag, "The Flag" )
call MultiboardSetItemWidthBJ( GetLastCreatedMultiboard(), 2, udg_Multiboard_Flag, 10.00 )
call MultiboardSetItemColorBJ( GetLastCreatedMultiboard(), 1, udg_Multiboard_Flag, 100, 80, 20, 0 )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 1, ( udg_Multiboard_Flag + 1 ), "Total Time" )
call MultiboardSetItemColorBJ( GetLastCreatedMultiboard(), 1, ( udg_Multiboard_Flag + 1 ), 50.00, 80, 20, 0 )
call MultiboardSetItemWidthBJ( GetLastCreatedMultiboard(), 2, ( udg_Multiboard_Flag + 1 ), 6.00 )
call MultiboardSetItemWidthBJ( GetLastCreatedMultiboard(), 3, ( udg_Multiboard_Flag + 1 ), 6.00 )
// Arena
set udg_Multiboard_Arena = ( udg_PlayersCount + 12 )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 1, udg_Multiboard_Arena, "Arena" )
call MultiboardSetItemWidthBJ( GetLastCreatedMultiboard(), 2, udg_Multiboard_Arena, 6.00 )
call MultiboardSetItemWidthBJ( GetLastCreatedMultiboard(), 2, ( udg_Multiboard_Arena + 1 ), 6.00 )
call MultiboardSetItemWidthBJ( GetLastCreatedMultiboard(), 3, udg_Multiboard_Arena, 6.00 )
call MultiboardSetItemWidthBJ( GetLastCreatedMultiboard(), 3, ( udg_Multiboard_Arena + 1 ), 6.00 )
call MultiboardSetItemColorBJ( GetLastCreatedMultiboard(), 1, udg_Multiboard_Arena, 100, 80.00, 20.00, 0 )
call MultiboardSetItemColorBJ( GetLastCreatedMultiboard(), 1, ( udg_Multiboard_Arena + 1 ), 50.00, 80.00, 20.00, 0 )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 1, ( udg_Multiboard_Arena + 1 ), "Wins" )
// Clock
set udg_Multiboard_Clock = ( udg_PlayersCount + 15 )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 1, udg_Multiboard_Clock, "Game Time:" )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 3, udg_Multiboard_Clock, "0:00" )
call MultiboardSetItemColorBJ( GetLastCreatedMultiboard(), 2, 1, 100.00, 100.00, 100.00, 0 )
call MultiboardSetItemColorBJ( GetLastCreatedMultiboard(), 3, 1, 100.00, 100.00, 100.00, 0 )
call MultiboardSetItemColorBJ( GetLastCreatedMultiboard(), 4, 1, 100.00, 100.00, 100.00, 0 )
call MultiboardDisplayBJ( true, GetLastCreatedMultiboard() )
endfunction
//===========================================================================
function InitTrig_Create_Multiboard takes nothing returns nothing
set gg_trg_Create_Multiboard = CreateTrigger( )
call DisableTrigger( gg_trg_Create_Multiboard )
call TriggerAddAction( gg_trg_Create_Multiboard, function Trig_Create_Multiboard_Actions )
endfunction
function Trig_Sort_Multiboard_Actions takes nothing returns nothing
call ForForce( udg_PlayersKing, function Sort_Multiboard_KingLeaders )
call ForForce( udg_PlayersQueen, function Sort_Multiboard_QueenLeaders )
if ( Sort_Multiboard_SortByKills() ) then
call LeaderboardSortItemsBJ( udg_LeaderboardKing, bj_SORTTYPE_SORTBYVALUE, false )
call LeaderboardSortItemsBJ( udg_LeaderboardQueen, bj_SORTTYPE_SORTBYVALUE, false )
else
call LeaderboardSortItemsBJ( udg_LeaderboardKing, bj_SORTTYPE_SORTBYPLAYER, true )
call LeaderboardSortItemsBJ( udg_LeaderboardQueen, bj_SORTTYPE_SORTBYPLAYER, true )
endif
set udg_TempInteger = 2
call ForForce( udg_PlayersKing, function Sort_Multiboard_PlayersKing )
set udg_TempInteger = ( CountPlayersInForceBJ(udg_PlayersKing) + 4 )
call ForForce( udg_PlayersQueen, function Sort_Multiboard_PlayersQueen )
call ForForce( udg_Players, function Sort_Multiboard_AllPlayers )
endfunction
//===========================================================================
function InitTrig_Sort_Multiboard takes nothing returns nothing
set gg_trg_Sort_Multiboard = CreateTrigger( )
call DisableTrigger( gg_trg_Sort_Multiboard )
call TriggerAddAction( gg_trg_Sort_Multiboard, function Trig_Sort_Multiboard_Actions )
endfunction
function Trig_Setup_Items_Actions takes nothing returns nothing
// Items that spawn in or near the river
set udg_RiverItemsCount = 6
set udg_RiverItems[1] = 'rdis'
set udg_RiverItems[2] = 'rsps'
set udg_RiverItems[3] = 'rspd'
set udg_RiverItems[4] = 'rspl'
set udg_RiverItems[5] = 'tstr'
set udg_RiverItems[6] = 'tint'
// They spawn in these places
set udg_RiverItemsRegionsCount = 2
set udg_RiverItemsRegions[1] = GetRectCenter(gg_rct_Item_2)
set udg_RiverItemsRegions[2] = GetRectCenter(gg_rct_Item_1)
// Unless there already is an item
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = udg_RiverItemsRegionsCount
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set udg_RiverItemsTaken[GetForLoopIndexA()] = false
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_Setup_Items takes nothing returns nothing
set gg_trg_Setup_Items = CreateTrigger( )
call DisableTrigger( gg_trg_Setup_Items )
call TriggerAddAction( gg_trg_Setup_Items, function Trig_Setup_Items_Actions )
endfunction
function Trig_River_Items_Actions takes nothing returns nothing
set udg_TempInteger = ( ModuloInteger(GetTriggerExecCount(GetTriggeringTrigger()), udg_RiverItemsRegionsCount) + 1 )
if ( River_Items_Taken() ) then
set udg_RiverItemsTaken[udg_TempInteger] = true
call CreateItemLoc( udg_RiverItems[GetRandomInt(1, udg_RiverItemsCount)], udg_RiverItemsRegions[udg_TempInteger] )
call SetItemUserData( GetLastCreatedItem(), udg_TempInteger )
else
endif
endfunction
//===========================================================================
function InitTrig_River_Items takes nothing returns nothing
set gg_trg_River_Items = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_River_Items, GetRandomReal(60.00, 120.00) )
call TriggerAddAction( gg_trg_River_Items, function Trig_River_Items_Actions )
endfunction
function Trig_River_Items_Taken_Conditions takes nothing returns boolean
if ( not ( GetItemUserData(GetManipulatedItem()) > 0 ) ) then
return false
endif
return true
endfunction
function Trig_River_Items_Taken_Actions takes nothing returns nothing
set udg_RiverItemsTaken[GetItemUserData(GetManipulatedItem())] = false
endfunction
//===========================================================================
function InitTrig_River_Items_Taken takes nothing returns nothing
set gg_trg_River_Items_Taken = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_River_Items_Taken, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_River_Items_Taken, Condition( function Trig_River_Items_Taken_Conditions ) )
call TriggerAddAction( gg_trg_River_Items_Taken, function Trig_River_Items_Taken_Actions )
endfunction
function Trig_Combine_Items_Conditions takes nothing returns boolean
if ( not ( GetItemCharges(GetManipulatedItem()) > 0 ) ) then
return false
endif
if ( not ( udg_Combine_Charged_Items == true ) ) then
return false
endif
return true
endfunction
function Trig_Combine_Items_Actions takes nothing returns nothing
local integer ITEMCOUNT
local integer ITEMLOOP
local integer CHARGES
local integer MAXIMUM
local item NEWITEM
local unit OURUNIT
set MAXIMUM = udg_Combine_Charges_Max
set ITEMCOUNT = 0
set ITEMLOOP = 0
set CHARGES = 0
set NEWITEM = GetManipulatedItem()
set OURUNIT = GetManipulatingUnit()
loop
exitwhen ITEMLOOP > 6
if ((GetItemTypeId(NEWITEM)) == (GetItemTypeId(UnitItemInSlotBJ(OURUNIT, ITEMLOOP)))) then
if ((GetItemCharges(UnitItemInSlotBJ(OURUNIT, ITEMLOOP)) + GetItemCharges(NEWITEM)) <= MAXIMUM) then
if not ( (UnitItemInSlotBJ(OURUNIT, ITEMLOOP)) == (NEWITEM)) then
set CHARGES = (GetItemCharges(UnitItemInSlotBJ(OURUNIT, ITEMLOOP))) + GetItemCharges(NEWITEM)
call SetItemCharges( UnitItemInSlotBJ(OURUNIT, ITEMLOOP), CHARGES )
call RemoveItem( NEWITEM )
set ITEMLOOP=7
endif
endif
endif
if ( ITEMLOOP < 7 ) then
set ITEMLOOP = ITEMLOOP + 1
endif
endloop
endfunction
//===========================================================================
function InitTrig_Combine_Charged_Items takes nothing returns nothing
set gg_trg_Combine_Charged_Items = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Combine_Charged_Items, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Combine_Charged_Items, Condition( function Trig_Combine_Items_Conditions ) )
call TriggerAddAction( gg_trg_Combine_Charged_Items, function Trig_Combine_Items_Actions )
endfunction
function Trig_Regrow_Trees_Setup_Func001A takes nothing returns nothing
call TriggerRegisterDeathEvent( gg_trg_RegrowTrees, GetEnumDestructable() )
endfunction
function Trig_Regrow_Trees_Setup_Actions takes nothing returns nothing
call EnumDestructablesInRectAll( GetEntireMapRect(), function Trig_Regrow_Trees_Setup_Func001A )
endfunction
//===========================================================================
function InitTrig_Regrow_Trees_Setup takes nothing returns nothing
set gg_trg_Regrow_Trees_Setup = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Regrow_Trees_Setup, 5 )
call TriggerAddAction( gg_trg_Regrow_Trees_Setup, function Trig_Regrow_Trees_Setup_Actions )
endfunction
function Trig_RegrowTrees_Actions takes nothing returns nothing
local destructable BADTREE = GetDyingDestructable()
call TriggerSleepAction( 150.00 )
call DestructableRestoreLife( BADTREE, GetDestructableMaxLife(BADTREE), true )
endfunction
//===========================================================================
function InitTrig_RegrowTrees takes nothing returns nothing
set gg_trg_RegrowTrees = CreateTrigger( )
call TriggerAddAction( gg_trg_RegrowTrees, function Trig_RegrowTrees_Actions )
endfunction
function Trig_First_Blood_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetAttackedUnitBJ(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( IsUnitType(GetAttacker(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( IsPlayerEnemy(GetOwningPlayer(GetAttacker()), GetOwningPlayer(GetAttackedUnitBJ())) == true ) ) then
return false
endif
return true
endfunction
function Trig_First_Blood_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call AdjustPlayerStateBJ( 200, GetOwningPlayer(GetAttacker()), PLAYER_STATE_RESOURCE_GOLD )
call QuestMessageBJ( udg_Players, bj_QUESTMESSAGE_ALWAYSHINT, ( ( "|cff00ccffFirst Blood|r - " + udg_PlayerNames[GetConvertedPlayerId(GetOwningPlayer(GetAttackedUnitBJ()))] ) + ( " 's blood has been spilled by " + ( udg_PlayerNames[GetConvertedPlayerId(GetOwningPlayer(GetAttacker()))] + " for an additional 200 Gold." ) ) ) )
endfunction
//===========================================================================
function InitTrig_First_Blood takes nothing returns nothing
set gg_trg_First_Blood = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_First_Blood, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_First_Blood, Condition( function Trig_First_Blood_Conditions ) )
call TriggerAddAction( gg_trg_First_Blood, function Trig_First_Blood_Actions )
endfunction
function Trig_First_Hero_Kill_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( IsUnitType(GetKillingUnitBJ(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_First_Hero_Kill_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call AdjustPlayerStateBJ( 200, GetOwningPlayer(GetKillingUnitBJ()), PLAYER_STATE_RESOURCE_GOLD )
call QuestMessageBJ( udg_Players, bj_QUESTMESSAGE_ALWAYSHINT, ( ( "|cff00ccffFirst Kill|r - " + udg_PlayerNames[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))] ) + ( " has been killed by " + ( udg_PlayerNames[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] + " for an additional 200 Gold." ) ) ) )
endfunction
//===========================================================================
function InitTrig_First_Hero_Kill takes nothing returns nothing
set gg_trg_First_Hero_Kill = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_First_Hero_Kill, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_First_Hero_Kill, Condition( function Trig_First_Hero_Kill_Conditions ) )
call TriggerAddAction( gg_trg_First_Hero_Kill, function Trig_First_Hero_Kill_Actions )
endfunction
function Trig_Primary_Actions takes nothing returns nothing
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "Primary Objective", "-Kill the King/Queen
To accomplish this you must kill the Duke/Baron, then the Prince/Princess, then the King/Queen.
At first the King/Queen and the Prince/Princess will be invulnerable, so attacking them would be pointless and, most likely, suicide. Defeating the Duke/Baron make the Prince/
", "ReplaceableTextures\\CommandButtons\\BTNMedivh.blp" )
endfunction
//===========================================================================
function InitTrig_Primary takes nothing returns nothing
set gg_trg_Primary = CreateTrigger( )
call DisableTrigger( gg_trg_Primary )
call TriggerAddAction( gg_trg_Primary, function Trig_Primary_Actions )
endfunction
function Trig_The_Flag_Actions takes nothing returns nothing
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "The Flag", "-Capture and Hold the Flag
Attack and kill the flag to pick it up. Once the flag is picked up the Flag Timer will appear above the scoreboard which will expire in 1 minute. If the flag is not dropped off before this timer expires it will be returned to it's original location in the center of t
", "ReplaceableTextures\\CommandButtons\\BTNHumanCaptureFlag.blp" )
endfunction
//===========================================================================
function InitTrig_The_Flag takes nothing returns nothing
set gg_trg_The_Flag = CreateTrigger( )
call DisableTrigger( gg_trg_The_Flag )
call TriggerAddAction( gg_trg_The_Flag, function Trig_The_Flag_Actions )
endfunction
function Trig_The_Gold_Mine_Actions takes nothing returns nothing
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "The Gold Mine", "-Capture and Hold the Gold Mine
The gold mine is caputured by controlling the central zone of the map, the borders of which are marked by 4 obelisks. The scoreboard will show which team controls the mine and each teams progression towards control. For the gold mine to be captured it must first
", "ReplaceableTextures\\CommandButtons\\BTNChestOfGold.blp" )
endfunction
//===========================================================================
function InitTrig_The_Gold_Mine takes nothing returns nothing
set gg_trg_The_Gold_Mine = CreateTrigger( )
call DisableTrigger( gg_trg_The_Gold_Mine )
call TriggerAddAction( gg_trg_The_Gold_Mine, function Trig_The_Gold_Mine_Actions )
endfunction
function Trig_The_Arena_Actions takes nothing returns nothing
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "The Arena", "-Kill an Enemy Hero in a 1v1 Battle in the Arena
The arena is the area to the left of the center of the map, recognizable by the gate at its entrance. When a hero enters this area he will become the contestant for his team and his name will appear as such on the scoreboard. If his team already
", "ReplaceableTextures\\CommandButtons\\BTNBattleStations.blp" )
endfunction
//===========================================================================
function InitTrig_The_Arena takes nothing returns nothing
set gg_trg_The_Arena = CreateTrigger( )
call DisableTrigger( gg_trg_The_Arena )
call TriggerAddAction( gg_trg_The_Arena, function Trig_The_Arena_Actions )
endfunction
function Trig_Basics_Actions takes nothing returns nothing
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "Basics", "-Portals
Each team has a circle of power at the rear of their base, near where heros spawn. Entering this circle of power will transport that hero to the vendor zone near the center of the map.
-Regaining Health/Mana
Each teams main bosses (Duke/Baron, Prince/Princess, King/Queen) has a
", "ReplaceableTextures\\CommandButtons\\BTNBattleStations.blp" )
endfunction
//===========================================================================
function InitTrig_Basics takes nothing returns nothing
set gg_trg_Basics = CreateTrigger( )
call DisableTrigger( gg_trg_Basics )
call TriggerAddAction( gg_trg_Basics, function Trig_Basics_Actions )
endfunction
function Trig_Credits_Actions takes nothing returns nothing
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "Credits", "NinjasDontFight
Terrain
Leopard
Chain Venom
ShiggityShwa (Soul Spells)
Empower
Raging Soul
Revenge
Soul Theft
Spirit Blast
Angel.of.Doom
Blast
ctb
Inferno
Lightning Sword
DiZeL_PlnS (Frost Spells)
Freezing Strike
Frost Time
Frost Wave
", "ReplaceableTextures\\CommandButtons\\BTNBattleStations.blp" )
endfunction
//===========================================================================
function InitTrig_Credits takes nothing returns nothing
set gg_trg_Credits = CreateTrigger( )
call DisableTrigger( gg_trg_Credits )
call TriggerAddAction( gg_trg_Credits, function Trig_Credits_Actions )
endfunction
function Trig_Hero_Kills_Actions takes nothing returns nothing
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "Kill 20 Heros", "Your team must kill 20 opposing heros.
Reward: Gain or advance your teams hero aura.
5000 Gold divided amongst your team.
", "ReplaceableTextures\\CommandButtons\\BTNAmbush.blp" )
endfunction
//===========================================================================
function InitTrig_Hero_Kills takes nothing returns nothing
set gg_trg_Hero_Kills = CreateTrigger( )
call DisableTrigger( gg_trg_Hero_Kills )
call TriggerAddAction( gg_trg_Hero_Kills, function Trig_Hero_Kills_Actions )
endfunction
function Trig_Flag_Control_Actions takes nothing returns nothing
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "Control the Flag", "Your team must control the flag for 20 minutes total.
Reward: Gain or advance your teams hero aura.
5000 Gold divided amongst your team.
", "ReplaceableTextures\\CommandButtons\\BTNAmbush.blp" )
endfunction
//===========================================================================
function InitTrig_Flag_Control takes nothing returns nothing
set gg_trg_Flag_Control = CreateTrigger( )
call DisableTrigger( gg_trg_Flag_Control )
call TriggerAddAction( gg_trg_Flag_Control, function Trig_Flag_Control_Actions )
endfunction
function Trig_Gold_Mine_Control_Actions takes nothing returns nothing
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "Control the Gold Mine", "Your team must control the Gold Mine for 20 minutes total.
Reward: Gain or advance your teams hero aura.
5000 Gold divided amongst your team.
", "ReplaceableTextures\\CommandButtons\\BTNAmbush.blp" )
endfunction
//===========================================================================
function InitTrig_Gold_Mine_Control takes nothing returns nothing
set gg_trg_Gold_Mine_Control = CreateTrigger( )
call DisableTrigger( gg_trg_Gold_Mine_Control )
call TriggerAddAction( gg_trg_Gold_Mine_Control, function Trig_Gold_Mine_Control_Actions )
endfunction
function Trig_Arena_Wins_Actions takes nothing returns nothing
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "Win 10 Arenas", "Your team must win 10 matches in the arena.
Reward: Gain or advance your teams hero aura.
5000 Gold divided amongst your team.
", "ReplaceableTextures\\CommandButtons\\BTNAmbush.blp" )
endfunction
//===========================================================================
function InitTrig_Arena_Wins takes nothing returns nothing
set gg_trg_Arena_Wins = CreateTrigger( )
call DisableTrigger( gg_trg_Arena_Wins )
call TriggerAddAction( gg_trg_Arena_Wins, function Trig_Arena_Wins_Actions )
endfunction
function Trig_King_Quest_Reward_Actions takes nothing returns nothing
set udg_TempInteger2 = ( ( 5000 / CountPlayersInForceBJ(udg_PlayersKingPlaying) ) + 1 )
call ForForce( udg_PlayersKingPlaying, function KingQuestResources )
set udg_King_Team_Aura = ( udg_King_Team_Aura + 1 )
if ( KingAuraIs1() ) then
call ForGroupBJ( udg_King_Heros, function KingQuestRewardAura1 )
else
endif
if ( KingAuraIs2() ) then
call ForGroupBJ( udg_King_Heros, function KingQuestRewardAura2 )
else
endif
if ( KingAuraIs3() ) then
call ForGroupBJ( udg_King_Heros, function KingQuestRewardAura3 )
else
endif
if ( KingAuraIs4() ) then
call ForGroupBJ( udg_King_Heros, function KingQuestRewardAura4 )
else
endif
endfunction
//===========================================================================
function InitTrig_King_Quest_Reward takes nothing returns nothing
set gg_trg_King_Quest_Reward = CreateTrigger( )
call DisableTrigger( gg_trg_King_Quest_Reward )
call TriggerAddAction( gg_trg_King_Quest_Reward, function Trig_King_Quest_Reward_Actions )
endfunction
function Trig_Queen_Quest_Reward_Actions takes nothing returns nothing
set udg_TempInteger2 = ( ( 5000 / CountPlayersInForceBJ(udg_PlayersQueenPlaying) ) + 1 )
call ForForce( udg_PlayersQueenPlaying, function QueenQuestResources )
set udg_Queen_Team_Aura = ( udg_Queen_Team_Aura + 1 )
if ( QueenAuraIs1() ) then
call ForGroupBJ( udg_Queen_Heros, function QueenQuestRewardAura1 )
else
endif
if ( QueenAuraIs2() ) then
call ForGroupBJ( udg_Queen_Heros, function QueenQuestRewardAura2 )
else
endif
if ( QueenAuraIs3() ) then
call ForGroupBJ( udg_Queen_Heros, function QueenQuestRewardAura3 )
else
endif
if ( QueenAuraIs4() ) then
call ForGroupBJ( udg_Queen_Heros, function QueenQuestRewardAura4 )
else
endif
endfunction
//===========================================================================
function InitTrig_Queen_Quest_Reward takes nothing returns nothing
set gg_trg_Queen_Quest_Reward = CreateTrigger( )
call DisableTrigger( gg_trg_Queen_Quest_Reward )
call TriggerAddAction( gg_trg_Queen_Quest_Reward, function Trig_Queen_Quest_Reward_Actions )
endfunction
function Trig_Every_Second_Actions takes nothing returns nothing
set udg_Counter_Free_Gold = ( udg_Counter_Free_Gold + 1 )
set udg_Counter_Open_Gates = ( udg_Counter_Open_Gates + 1 )
set udg_Counter_Spawn = ( udg_Counter_Spawn + 1 )
// Tally Clock
call ForGroupBJ( udg_RevivableHeroes, function TallyReviveTimers )
set udg_Game_Minutes = ( R2I(TimerGetElapsed(udg_Game_Time)) / 60 )
set udg_Game_Seconds = ModuloInteger(R2I(TimerGetElapsed(udg_Game_Time)), 60)
if ( GameSecondsOver10() ) then
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 3, udg_Multiboard_Clock, ( I2S(udg_Game_Minutes) + ( ":" + I2S(udg_Game_Seconds) ) ) )
else
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 3, udg_Multiboard_Clock, ( I2S(udg_Game_Minutes) + ( ":0" + I2S(udg_Game_Seconds) ) ) )
endif
// Tally Deaths
if ( ReviveableHeroesNotEmpty() ) then
call ForGroupBJ( udg_RevivableHeroes, function TallyDeaths )
else
endif
// Center Control
set udg_CenterControlKing = ( udg_CenterControlKing + ( ( ( udg_CenterKingHeros * 2 ) - ( udg_CenterQueenHeros * 2 ) ) - 1 ) )
set udg_CenterControlQueen = ( udg_CenterControlQueen + ( ( ( udg_CenterQueenHeros * 2 ) - ( udg_CenterKingHeros * 2 ) ) - 1 ) )
if ( CenterControlKingUnder0() ) then
set udg_CenterControlKing = 0
else
endif
if ( CenterControlQueenUnder0() ) then
set udg_CenterControlQueen = 0
else
endif
if ( CenterControlKingOver50() ) then
set udg_CenterControlKing = 50
else
endif
if ( CenterControlQueenOver50() ) then
set udg_CenterControlQueen = 50
else
endif
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 2, udg_Multiboard_Gold_Mine, I2S(udg_CenterControlKing) )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 3, udg_Multiboard_Gold_Mine, I2S(udg_CenterControlQueen) )
if ( KingTakesCenter() ) then
set udg_CenterKingOwn = true
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_SECRET, "TRIGSTR_4293" )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 2, ( udg_Multiboard_Gold_Mine + 2 ), udg_PlayerNames[1] )
else
endif
if ( QueenTakesCenter() ) then
set udg_CenterQueenOwn = true
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_SECRET, "TRIGSTR_4316" )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 2, ( udg_Multiboard_Gold_Mine + 2 ), udg_PlayerNames[7] )
else
endif
if ( CenterLost() ) then
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 2, ( udg_Multiboard_Gold_Mine + 2 ), "" )
if ( CenterLostByKing() ) then
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_SECRET, "TRIGSTR_4331" )
else
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_SECRET, "TRIGSTR_4349" )
endif
set udg_CenterKingOwn = false
set udg_CenterQueenOwn = false
else
endif
// Gold Mine Quest Tracker
if ( KingOwnsCenter() ) then
set udg_King_Gold_Mine_Quest = ( udg_King_Gold_Mine_Quest + 1 )
set udg_King_Gold_Mine_Quest_Minutes = ( udg_King_Gold_Mine_Quest / 60 )
set udg_King_Gold_Mine_Quest_Seconds = ModuloInteger(udg_King_Gold_Mine_Quest, 60)
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 2, ( udg_Multiboard_Gold_Mine + 1 ), ( I2S(udg_King_Gold_Mine_Quest_Minutes) + ( ":" + I2S(udg_King_Gold_Mine_Quest_Seconds) ) ) )
if ( KingCenterQuestComplete() ) then
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_SECRET, "The King's heros have controlled the gold mine for 20 minutes." )
call TriggerExecute( gg_trg_King_Quest_Reward )
else
endif
else
endif
if ( QueenOwnsCenter() ) then
set udg_Queen_Gold_Mine_Quest = ( udg_Queen_Gold_Mine_Quest + 1 )
set udg_Queen_Gold_Mine_Quest_Minutes = ( udg_Queen_Gold_Mine_Quest / 60 )
set udg_Queen_Gold_Mine_Quest_Seconds = ModuloInteger(udg_Queen_Gold_Mine_Quest, 60)
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 3, ( udg_Multiboard_Gold_Mine + 1 ), ( I2S(udg_Queen_Gold_Mine_Quest_Minutes) + ( ":" + I2S(udg_Queen_Gold_Mine_Quest_Seconds) ) ) )
if ( QueenCenterQuestComplete() ) then
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_SECRET, "The Queen's heros have controlled the gold mine for 20 minutes." )
call TriggerExecute( gg_trg_Queen_Quest_Reward )
else
endif
else
endif
// Flag Quest Tracker
if ( KingOwnsFlag() ) then
set udg_King_Flag_Quest = ( udg_King_Flag_Quest + 1 )
set udg_King_Flag_Quest_Minutes = ( udg_King_Flag_Quest / 60 )
set udg_King_Flag_Quest_Seconds = ModuloInteger(udg_King_Flag_Quest, 60)
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 2, ( udg_Multiboard_Flag + 1 ), ( I2S(udg_King_Flag_Quest_Minutes) + ( ":" + I2S(udg_King_Flag_Quest_Seconds) ) ) )
if ( KingFlagQuestComplete() ) then
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_SECRET, "The King's heros have controlled the flag for 20 minutes." )
call TriggerExecute( gg_trg_King_Quest_Reward )
else
endif
else
endif
if ( QueenOwnsFlag() ) then
set udg_Queen_Flag_Quest = ( udg_Queen_Flag_Quest + 1 )
set udg_Queen_Flag_Quest_Minutes = ( udg_Queen_Flag_Quest / 60 )
set udg_Queen_Flag_Quest_Seconds = ModuloInteger(udg_Queen_Flag_Quest, 60)
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 3, ( udg_Multiboard_Flag + 1 ), ( I2S(udg_Queen_Flag_Quest_Minutes) + ( ":" + I2S(udg_Queen_Flag_Quest_Seconds) ) ) )
if ( QueenFlagQuestComplete() ) then
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_SECRET, "The Queen's heros have controlled the flag for 20 minutes." )
call TriggerExecute( gg_trg_Queen_Quest_Reward )
else
endif
else
endif
// Free Gold
if ( FreeGoldTime() ) then
set udg_Counter_Free_Gold = 0
if ( FreeGoldEasy() ) then
set udg_TempInteger = 80
else
set udg_TempInteger = 40
endif
call ForForce( udg_PlayersKingPlaying, function FreeGoldKing )
call ForForce( udg_PlayersQueenPlaying, function FreeGoldQueen )
if ( CenterGoldOwned() ) then
if ( KingOwnsCenterGold() ) then
call ForForce( udg_PlayersKingPlaying, function CenterGoldKing )
else
call ForForce( udg_PlayersQueenPlaying, function CenterGoldQueen )
endif
else
set udg_Center_Arena_Reward = ( udg_Center_Arena_Reward + udg_TempInteger )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 1, ( udg_Multiboard_Arena + 1 ), I2S(udg_Center_Arena_Reward) )
endif
else
endif
// Open Gates
if ( OpenGateTime() ) then
set udg_Counter_Open_Gates = 0
if ( OpenGateNoDuel() ) then
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_LTe3_0002 )
else
endif
else
endif
// Spawn
if ( SpawnTime() ) then
set udg_Counter_Spawn = 0
call CreateNUnitsAtLoc( 1, 'h00T', Player(0), GetRectCenter(gg_rct_King_Spawn), 120.00 )
call CreateNUnitsAtLoc( 1, 'h011', Player(6), GetRectCenter(gg_rct_Queen_Spawn), 320.00 )
call TriggerSleepAction( 1.00 )
call CreateNUnitsAtLoc( 1, 'e004', Player(0), GetRectCenter(gg_rct_King_Spawn), 120.00 )
call CreateNUnitsAtLoc( 1, 'e00K', Player(6), GetRectCenter(gg_rct_Queen_Spawn), 320.00 )
call TriggerSleepAction( 1.00 )
call CreateNUnitsAtLoc( 1, 'h006', Player(0), GetRectCenter(gg_rct_King_Spawn), 120.00 )
call CreateNUnitsAtLoc( 1, 'h018', Player(6), GetRectCenter(gg_rct_Queen_Spawn), 320.00 )
call TriggerSleepAction( 1.00 )
call CreateNUnitsAtLoc( 1, 'h010', Player(0), GetRectCenter(gg_rct_King_Spawn), 120.00 )
call CreateNUnitsAtLoc( 1, 'h016', Player(6), GetRectCenter(gg_rct_Queen_Spawn), 320.00 )
else
endif
endfunction
//===========================================================================
function InitTrig_Every_Second takes nothing returns nothing
set gg_trg_Every_Second = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Every_Second, 1.00 )
call TriggerAddAction( gg_trg_Every_Second, function Trig_Every_Second_Actions )
endfunction
function Trig_A_Unit_Dies_Actions takes nothing returns nothing
// A Hero Dies
if ( DyingUnitIsHero() ) then
// Revive Hero
call GroupAddUnitSimple( GetDyingUnit(), udg_RevivableHeroes )
call StartTimerBJ( udg_ReviveTimers[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))], false, 30.00 )
// Tally Score
set udg_Score_Kills[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] = ( udg_Score_Kills[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] + 1 )
set udg_Score_Deaths[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))] = ( udg_Score_Deaths[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))] + 1 )
if ( TallyKingKills() ) then
set udg_Score_Deaths[1] = ( udg_Score_Deaths[1] + 1 )
else
endif
if ( TallyQueenKills() ) then
set udg_Score_Deaths[7] = ( udg_Score_Deaths[7] + 1 )
else
endif
set udg_TempInteger = ( ( GetHeroLevel(GetDyingUnit()) * 5 ) + 100 )
call AdjustPlayerStateBJ( udg_TempInteger, GetOwningPlayer(GetKillingUnitBJ()), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 1, GetOwningPlayer(GetKillingUnitBJ()), PLAYER_STATE_RESOURCE_LUMBER )
call DisplayTextToForce( GetPlayersAll(), ( udg_PlayerNames[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] + ( " has just pawned " + ( udg_PlayerNames[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))] + ( "'s head for an extra " + ( I2S(udg_TempInteger) + " gold." ) ) ) ) ) )
if ( TallyKingKillQuest() ) then
set udg_Score_Kills[1] = ( udg_Score_Kills[1] + 1 )
set udg_King_Kill_Quest = ( udg_King_Kill_Quest + 1 )
if ( KingKillQuestComplete() ) then
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_SECRET, "The King's heros have killed 20 of the Queen's heros." )
call TriggerExecute( gg_trg_King_Quest_Reward )
else
endif
else
endif
if ( TallyQueenKillQuest() ) then
set udg_Score_Kills[7] = ( udg_Score_Kills[7] + 1 )
set udg_Queen_Kill_Quest = ( udg_Queen_Kill_Quest + 1 )
if ( QueenKillQuestComplete() ) then
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_SECRET, "The Queen's heros have killed 20 of the Queen's heros." )
call TriggerExecute( gg_trg_Queen_Quest_Reward )
else
endif
else
endif
call ConditionalTriggerExecute( gg_trg_Sort_Multiboard )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 3, udg_Multiboard_Spots[1], ( " " + I2S(udg_Score_Kills[1]) ) )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 3, udg_Multiboard_Spots[7], ( " " + I2S(udg_Score_Kills[7]) ) )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 4, udg_Multiboard_Spots[1], ( " " + I2S(udg_Score_Deaths[1]) ) )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 4, udg_Multiboard_Spots[7], ( " " + I2S(udg_Score_Deaths[7]) ) )
// Non-Duel Arena Death
if ( DuelerDiesNotInDuel() ) then
if ( TriggeringHeroIsOnKingTeam() ) then
call GroupRemoveUnitSimple( GetTriggerUnit(), udg_Arena1HeroKing )
set udg_KingArena1 = false
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 2, ( udg_Multiboard_Arena + 1 ), "" )
else
call GroupRemoveUnitSimple( GetTriggerUnit(), udg_Arena1HeroQueen )
set udg_QueenArena1 = false
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 3, ( udg_Multiboard_Arena + 1 ), "" )
endif
else
endif
// Win Arena 1
if ( DuelerDiesInDuel() ) then
call TimerDialogDisplayBJ( false, udg_Arena1Timer_Window )
call DestroyTimerDialogBJ( udg_Arena1Timer_Window )
if ( TriggeringHeroIsOnKingTeam() ) then
call GroupRemoveUnitSimple( GetTriggerUnit(), udg_Arena1HeroKing )
set udg_KingArena1 = false
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 2, udg_Multiboard_Arena, "" )
set udg_Queen_Arena_Quest = ( udg_Queen_Arena_Quest + 1 )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 3, ( udg_Multiboard_Arena + 1 ), I2S(udg_Queen_Arena_Quest) )
if ( QueenArenaQuestComplete() ) then
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_SECRET, "TRIGSTR_4357" )
call TriggerExecute( gg_trg_Queen_Quest_Reward )
else
endif
else
endif
if ( TriggeringHeroIsOnQueenTeam() ) then
call GroupRemoveUnitSimple( GetTriggerUnit(), udg_Arena1HeroQueen )
set udg_QueenArena1 = false
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 3, udg_Multiboard_Arena, "" )
set udg_King_Arena_Quest = ( udg_King_Arena_Quest + 1 )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 2, ( udg_Multiboard_Arena + 1 ), I2S(udg_King_Arena_Quest) )
if ( KingArenaQuestComplete() ) then
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_SECRET, "TRIGSTR_4358" )
call TriggerExecute( gg_trg_King_Quest_Reward )
else
endif
else
endif
set udg_Arena1Duel = false
call EnableTrigger( gg_trg_Deulers_1 )
call DisableTrigger( gg_trg_End_Arena_1 )
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_LTe3_0002 )
call AdjustPlayerStateBJ( udg_Center_Arena_Reward, GetOwningPlayer(GetKillingUnitBJ()), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 1, GetOwningPlayer(GetKillingUnitBJ()), PLAYER_STATE_RESOURCE_LUMBER )
call QuestMessageBJ( udg_Players, bj_QUESTMESSAGE_ALWAYSHINT, ( ( "|cff00ccffDuel Winner|r - " + udg_PlayerNames[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] ) + "'s hero has won the duel." ) )
set udg_Center_Arena_Reward = 500
else
endif
// Flag Carrier
if ( TriggeringUnitIsFlagCarrier() ) then
call DisableTrigger( gg_trg_Flag_Timer )
call TimerDialogDisplayBJ( false, udg_Flag_Timer_Window )
call DestroyTimerDialogBJ( udg_Flag_Timer_Window )
if ( KillingUnitIsPlayerOwned() ) then
set udg_FlagCarrier = GetOwningPlayer(GetKillingUnitBJ())
call StartTimerBJ( udg_Flag_Timer, false, 60.00 )
call CreateTimerDialogBJ( udg_Flag_Timer, "Flag Timer" )
call TimerDialogDisplayBJ( true, GetLastCreatedTimerDialogBJ() )
set udg_Flag_Timer_Window = GetLastCreatedTimerDialogBJ()
call EnableTrigger( gg_trg_Flag_Timer )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 2, udg_Multiboard_Flag, udg_PlayerNames[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] )
else
call CreateNUnitsAtLoc( 1, 'n01D', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Flag_Center), 180.00 )
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_Flag )
set udg_Flag_Down = true
set udg_FlagCarrier = Player(PLAYER_NEUTRAL_AGGRESSIVE)
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 2, udg_Multiboard_Flag, "Neutral" )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_SECRET, "The flag carrier has been slain, the flag has been returned to the center of the map." )
endif
else
endif
else
endif
// Victory
if ( TriggeringUnitIsTheQueen() ) then
call DisableTrigger( gg_trg_Player_Leaves_Game )
call ForForce( udg_PlayersKing, function VictoryKing )
call ForForce( udg_PlayersQueen, function DefeatQueen )
else
endif
if ( TriggeringUnitIsTheKing() ) then
call DisableTrigger( gg_trg_Player_Leaves_Game )
call ForForce( udg_PlayersQueen, function VictoryQueen )
call ForForce( udg_PlayersKing, function DefeatKing )
else
endif
// Backdooring
if ( TriggeringUnitIsTheDuke() ) then
if ( FlagCarrierIsDuke() ) then
set udg_Flag_Down = false
call ForGroupBJ( udg_Flag, function KillTheFlag )
set udg_FlagDuke = false
call CreateNUnitsAtLoc( 1, 'n01D', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Flag_Center), 180.00 )
set udg_Flag_Down = true
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 2, udg_Multiboard_Flag, "Neutral" )
else
endif
call ShowUnitHide( gg_unit_ncp3_0085 )
call ShowUnitShow( gg_unit_ncp3_0087 )
call DisableTrigger( gg_trg_Flag_Dropoff_Duke )
call EnableTrigger( gg_trg_Flag_Dropoff_Prince )
call ForGroupBJ( udg_ArmyPrince, function MakeUnitVulnerable )
call GroupPointOrderLocBJ( udg_ArmyKingLieutenant, "attack", GetRectCenter(gg_rct_King_Target) )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_SECRET, "The Duke has fallen! The Queen's heroes receive 2500g." )
set udg_TempInteger2 = ( ( 2500 / CountPlayersInForceBJ(udg_PlayersQueenPlaying) ) + 1 )
call ForForce( udg_PlayersQueenPlaying, function BossKillResourceReward )
else
endif
if ( TriggeringUnitIsThePrince() ) then
if ( FlagCarrierIsPrince() ) then
set udg_Flag_Down = false
call ForGroupBJ( udg_Flag, function KillTheFlag )
set udg_FlagPrince = false
call CreateNUnitsAtLoc( 1, 'n01D', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Flag_Center), 180.00 )
set udg_Flag_Down = true
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 2, udg_Multiboard_Flag, "Neutral" )
else
endif
call ShowUnitHide( gg_unit_ncp3_0087 )
call ShowUnitShow( gg_unit_ncp3_0088 )
call DisableTrigger( gg_trg_Flag_Dropoff_Prince )
call EnableTrigger( gg_trg_Flag_Dropoff_King )
call ForGroupBJ( udg_ArmyKing, function MakeUnitVulnerable )
call GroupPointOrderLocBJ( udg_ArmyGeneral1, "attack", GetRectCenter(gg_rct_The_Prince) )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_SECRET, "The Prince has fallen! The Queen's heroes receive 5000g." )
set udg_TempInteger2 = ( ( 5000 / CountPlayersInForceBJ(udg_PlayersQueenPlaying) ) + 1 )
call ForForce( udg_PlayersQueenPlaying, function BossKillResourceReward )
else
endif
if ( TriggeringUnitIsTheBaron() ) then
if ( FlagCarrierIsBaron() ) then
set udg_Flag_Down = false
call ForGroupBJ( udg_Flag, function KillTheFlag )
set udg_FlagBaron = false
call CreateNUnitsAtLoc( 1, 'n01D', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Flag_Center), 180.00 )
set udg_Flag_Down = true
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 2, udg_Multiboard_Flag, "Neutral" )
else
endif
call ShowUnitHide( gg_unit_ncp3_0086 )
call ShowUnitShow( gg_unit_ncp3_0089 )
call DisableTrigger( gg_trg_Flag_Dropoff_Baron )
call EnableTrigger( gg_trg_Flag_Dropoff_Princess )
call ForGroupBJ( udg_ArmyPrincess, function MakeUnitVulnerable )
call GroupPointOrderLocBJ( udg_ArmyQueenLieutenant, "attack", GetRectCenter(gg_rct_Queen_Target) )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_SECRET, "The Baron has fallen! The King's heroes receive 2500g." )
set udg_TempInteger2 = ( ( 2500 / CountPlayersInForceBJ(udg_PlayersKingPlaying) ) + 1 )
call ForForce( udg_PlayersKingPlaying, function BossKillResourceReward )
else
endif
if ( TriggeringUnitIsThePrincess() ) then
if ( FlagCarrierIsPrincess() ) then
set udg_Flag_Down = false
call ForGroupBJ( udg_Flag, function KillTheFlag )
set udg_FlagPrincess = false
call CreateNUnitsAtLoc( 1, 'n01D', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Flag_Center), 180.00 )
set udg_Flag_Down = true
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 2, udg_Multiboard_Flag, "Neutral" )
else
endif
call ShowUnitHide( gg_unit_ncp3_0089 )
call ShowUnitShow( gg_unit_ncp3_0090 )
call DisableTrigger( gg_trg_Flag_Dropoff_Princess )
call EnableTrigger( gg_trg_Flag_Dropoff_Queen )
call ForGroupBJ( udg_ArmyQueen, function MakeUnitVulnerable )
call GroupPointOrderLocBJ( udg_ArmyCommander1, "attack", GetRectCenter(gg_rct_The_Princess) )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_SECRET, "The Princess has fallen! The King's heroes receive 5000g." )
set udg_TempInteger2 = ( ( 5000 / CountPlayersInForceBJ(udg_PlayersKingPlaying) ) + 1 )
call ForForce( udg_PlayersKingPlaying, function BossKillResourceReward )
else
endif
// Lieutenants
if ( TriggeringUnitIsKingLieutenantOrGeneral() ) then
call ForForce( udg_PlayersQueenPlaying, function MiniBossKillLumberReward )
else
endif
if ( TriggeringUnitIsQueenLieutenantOrCommander() ) then
call ForForce( udg_PlayersKingPlaying, function MiniBossKillLumberReward )
else
endif
// Flag Pickup
if ( TriggeringUnitIsTheFlag() ) then
set udg_Flag_Down = false
call GroupRemoveUnitSimple( GetTriggerUnit(), udg_Flag )
call EnableTrigger( gg_trg_Flag_Timer )
call StartTimerBJ( udg_Flag_Timer, false, 60.00 )
call CreateTimerDialogBJ( udg_Flag_Timer, "Flag Timer" )
call TimerDialogDisplayBJ( true, GetLastCreatedTimerDialogBJ() )
set udg_Flag_Timer_Window = GetLastCreatedTimerDialogBJ()
set udg_FlagCarrier = GetOwningPlayer(GetKillingUnitBJ())
set udg_FlagBaron = false
set udg_FlagDuke = false
set udg_FlagKing = false
set udg_FlagPrince = false
set udg_FlagPrincess = false
set udg_FlagQueen = false
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 2, udg_Multiboard_Flag, udg_PlayerNames[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_SECRET, "The flag has been picked up." )
else
endif
endfunction
//===========================================================================
function InitTrig_A_Unit_Dies takes nothing returns nothing
set gg_trg_A_Unit_Dies = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_A_Unit_Dies, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddAction( gg_trg_A_Unit_Dies, function Trig_A_Unit_Dies_Actions )
endfunction
function Trig_Move_Conditions takes nothing returns boolean
if ( not MovementPrimaryConditionConditions() ) then
return false
endif
return true
endfunction
function Trig_Move_Actions takes nothing returns nothing
if ( MovementTriggeringUnitIsNonAncientKingNPC() ) then
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Queen_Target) )
else
endif
if ( MovementTriggeringUnitIsNonAncientQueenNPC() ) then
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_King_Target) )
else
endif
endfunction
//===========================================================================
function InitTrig_Move takes nothing returns nothing
set gg_trg_Move = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Move, gg_rct_Move_1 )
call TriggerRegisterEnterRectSimple( gg_trg_Move, gg_rct_Move_2 )
call TriggerRegisterEnterRectSimple( gg_trg_Move, gg_rct_Move_3 )
call TriggerRegisterEnterRectSimple( gg_trg_Move, gg_rct_Move_4 )
call TriggerRegisterEnterRectSimple( gg_trg_Move, gg_rct_Move_5 )
call TriggerRegisterEnterRectSimple( gg_trg_Move, gg_rct_Move_6 )
call TriggerRegisterEnterRectSimple( gg_trg_Move, gg_rct_Move_7 )
call TriggerRegisterEnterRectSimple( gg_trg_Move, gg_rct_Move_8 )
call TriggerRegisterEnterRectSimple( gg_trg_Move, gg_rct_Move_9 )
call TriggerRegisterEnterRectSimple( gg_trg_Move, gg_rct_Move_10 )
call TriggerRegisterEnterRectSimple( gg_trg_Move, gg_rct_Move_12 )
call TriggerRegisterEnterRectSimple( gg_trg_Move, gg_rct_Move_13 )
call TriggerRegisterEnterRectSimple( gg_trg_Move, gg_rct_Move_16 )
call TriggerRegisterEnterRectSimple( gg_trg_Move, gg_rct_Move_17 )
call TriggerRegisterEnterRectSimple( gg_trg_Move, gg_rct_Move_18 )
call TriggerRegisterEnterRectSimple( gg_trg_Move, gg_rct_Move_19 )
call TriggerRegisterEnterRectSimple( gg_trg_Move, gg_rct_Move_20 )
call TriggerRegisterEnterRectSimple( gg_trg_Move, gg_rct_Move_21 )
call TriggerRegisterEnterRectSimple( gg_trg_Move, gg_rct_Move_22 )
call TriggerRegisterEnterRectSimple( gg_trg_Move, gg_rct_Movd_23 )
call TriggerRegisterEnterRectSimple( gg_trg_Move, gg_rct_Move_24 )
call TriggerRegisterEnterRectSimple( gg_trg_Move, gg_rct_Movd_25 )
call TriggerAddCondition( gg_trg_Move, Condition( function Trig_Move_Conditions ) )
call TriggerAddAction( gg_trg_Move, function Trig_Move_Actions )
endfunction
function Trig_Move_11_Conditions takes nothing returns boolean
if ( not MovementPrimaryConditionConditions() ) then
return false
endif
return true
endfunction
function Trig_Move_11_Actions takes nothing returns nothing
if ( MovementTriggeringUnitIsNonAncientKingNPC() ) then
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Queen_Target) )
else
endif
if ( MovementTriggeringUnitIsNonAncientQueenNPC() ) then
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_King_Target) )
else
endif
if ( MovementTriggeringUnitIsTheKing() ) then
call IssuePointOrderLocBJ( GetTriggerUnit(), "move", GetRectCenter(gg_rct_The_King) )
else
endif
if ( MovementTriggeringUnitIsThePrince() ) then
call IssuePointOrderLocBJ( GetTriggerUnit(), "move", GetRectCenter(gg_rct_The_Prince) )
else
endif
if ( MovementTriggeringUnitIsTheDuke() ) then
call IssuePointOrderLocBJ( GetTriggerUnit(), "move", GetRectCenter(gg_rct_The_Duke) )
else
endif
endfunction
//===========================================================================
function InitTrig_Move_11 takes nothing returns nothing
set gg_trg_Move_11 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Move_11, gg_rct_Move_11 )
call TriggerRegisterEnterRectSimple( gg_trg_Move_11, gg_rct_Move_14 )
call TriggerAddCondition( gg_trg_Move_11, Condition( function Trig_Move_11_Conditions ) )
call TriggerAddAction( gg_trg_Move_11, function Trig_Move_11_Actions )
endfunction
function Trig_Move_15_Conditions takes nothing returns boolean
if ( not MovementPrimaryConditionConditions() ) then
return false
endif
return true
endfunction
function Trig_Move_15_Actions takes nothing returns nothing
if ( MovementTriggeringUnitIsNonAncientKingNPC() ) then
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Queen_Target) )
else
endif
if ( MovementTriggeringUnitIsNonAncientQueenNPC() ) then
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_King_Target) )
else
endif
if ( MovementTriggeringUnitIsTheQueen() ) then
call IssuePointOrderLocBJ( GetTriggerUnit(), "move", GetRectCenter(gg_rct_The_Queen) )
else
endif
if ( MovementTriggeringUnitIsThePrincess() ) then
call IssuePointOrderLocBJ( GetTriggerUnit(), "move", GetRectCenter(gg_rct_The_Princess) )
else
endif
if ( MovementTriggeringUnitIsTheBaron() ) then
call IssuePointOrderLocBJ( GetTriggerUnit(), "move", GetRectCenter(gg_rct_The_Baron) )
else
endif
endfunction
//===========================================================================
function InitTrig_Move_15 takes nothing returns nothing
set gg_trg_Move_15 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Move_15, gg_rct_Move_15 )
call TriggerAddCondition( gg_trg_Move_15, Condition( function Trig_Move_15_Conditions ) )
call TriggerAddAction( gg_trg_Move_15, function Trig_Move_15_Actions )
endfunction
function Trig_King_Defense_Actions takes nothing returns nothing
call GroupPointOrderLocBJ( udg_ArmyGeneral1, "attack", GetRectCenter(gg_rct_The_King) )
endfunction
//===========================================================================
function InitTrig_King_Defense takes nothing returns nothing
set gg_trg_King_Defense = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_King_Defense, gg_unit_n000_0012, EVENT_UNIT_DAMAGED )
call TriggerAddAction( gg_trg_King_Defense, function Trig_King_Defense_Actions )
endfunction
function Trig_Queen_Defense_Actions takes nothing returns nothing
call GroupPointOrderLocBJ( udg_ArmyCommander1, "attack", GetRectCenter(gg_rct_The_Queen) )
endfunction
//===========================================================================
function InitTrig_Queen_Defense takes nothing returns nothing
set gg_trg_Queen_Defense = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Queen_Defense, gg_unit_n001_0017, EVENT_UNIT_DAMAGED )
call TriggerAddAction( gg_trg_Queen_Defense, function Trig_Queen_Defense_Actions )
endfunction
function Trig_King_Lieutenant_Patrol_Conditions takes nothing returns boolean
if ( not ( IsUnitInGroup(GetTriggerUnit(), udg_ArmyKingLieutenant) == true ) ) then
return false
endif
return true
endfunction
function Trig_King_Lieutenant_Patrol_Actions takes nothing returns nothing
call GroupPointOrderLocBJ( udg_ArmyKingLieutenant, "patrol", GetRectCenter(gg_rct_King_Attack) )
endfunction
//===========================================================================
function InitTrig_King_Lieutenant_Patrol takes nothing returns nothing
set gg_trg_King_Lieutenant_Patrol = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_King_Lieutenant_Patrol, gg_rct_King_Target )
call TriggerAddCondition( gg_trg_King_Lieutenant_Patrol, Condition( function Trig_King_Lieutenant_Patrol_Conditions ) )
call TriggerAddAction( gg_trg_King_Lieutenant_Patrol, function Trig_King_Lieutenant_Patrol_Actions )
endfunction
function Trig_Queen_Lieutenant_Patrol_Conditions takes nothing returns boolean
if ( not ( IsUnitInGroup(GetTriggerUnit(), udg_ArmyQueenLieutenant) == true ) ) then
return false
endif
return true
endfunction
function Trig_Queen_Lieutenant_Patrol_Actions takes nothing returns nothing
call GroupPointOrderLocBJ( udg_ArmyQueenLieutenant, "patrol", GetRectCenter(gg_rct_Queen_Attack) )
endfunction
//===========================================================================
function InitTrig_Queen_Lieutenant_Patrol takes nothing returns nothing
set gg_trg_Queen_Lieutenant_Patrol = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Queen_Lieutenant_Patrol, gg_rct_Queen_Target )
call TriggerAddCondition( gg_trg_Queen_Lieutenant_Patrol, Condition( function Trig_Queen_Lieutenant_Patrol_Conditions ) )
call TriggerAddAction( gg_trg_Queen_Lieutenant_Patrol, function Trig_Queen_Lieutenant_Patrol_Actions )
endfunction
function Trig_King_Captain_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'h00A' ) ) then
return false
endif
return true
endfunction
function Trig_King_Captain_Actions takes nothing returns nothing
call IssuePointOrderLocBJ( GetTriggerUnit(), "move", GetRectCenter(gg_rct_King_Quest) )
endfunction
//===========================================================================
function InitTrig_King_Captain takes nothing returns nothing
set gg_trg_King_Captain = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_King_Captain, gg_rct_King_Quest )
call TriggerAddCondition( gg_trg_King_Captain, Condition( function Trig_King_Captain_Conditions ) )
call TriggerAddAction( gg_trg_King_Captain, function Trig_King_Captain_Actions )
endfunction
function Trig_Queen_Captain_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'h009' ) ) then
return false
endif
return true
endfunction
function Trig_Queen_Captain_Actions takes nothing returns nothing
call IssuePointOrderLocBJ( GetTriggerUnit(), "move", GetRectCenter(gg_rct_Queen_Quest) )
endfunction
//===========================================================================
function InitTrig_Queen_Captain takes nothing returns nothing
set gg_trg_Queen_Captain = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Queen_Captain, gg_rct_Queen_Quest )
call TriggerAddCondition( gg_trg_Queen_Captain, Condition( function Trig_Queen_Captain_Conditions ) )
call TriggerAddAction( gg_trg_Queen_Captain, function Trig_Queen_Captain_Actions )
endfunction
function Trig_King_Portal_Conditions takes nothing returns boolean
if ( not ( IsUnitAlly(GetTriggerUnit(), Player(0)) == true ) ) then
return false
endif
return true
endfunction
function Trig_King_Portal_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetTriggerUnit(), GetRandomLocInRect(gg_rct_Portal_1) )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Portal_1), 0.20 )
endfunction
//===========================================================================
function InitTrig_King_Portal takes nothing returns nothing
set gg_trg_King_Portal = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_King_Portal, gg_rct_King_Portal )
call TriggerAddCondition( gg_trg_King_Portal, Condition( function Trig_King_Portal_Conditions ) )
call TriggerAddAction( gg_trg_King_Portal, function Trig_King_Portal_Actions )
endfunction
function Trig_Queen_Portal_Conditions takes nothing returns boolean
if ( not ( IsUnitAlly(GetTriggerUnit(), Player(6)) == true ) ) then
return false
endif
return true
endfunction
function Trig_Queen_Portal_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetTriggerUnit(), GetRandomLocInRect(gg_rct_Portal_2) )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Portal_2), 0.20 )
endfunction
//===========================================================================
function InitTrig_Queen_Portal takes nothing returns nothing
set gg_trg_Queen_Portal = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Queen_Portal, gg_rct_Queen_Portal )
call TriggerAddCondition( gg_trg_Queen_Portal, Condition( function Trig_Queen_Portal_Conditions ) )
call TriggerAddAction( gg_trg_Queen_Portal, function Trig_Queen_Portal_Actions )
endfunction
function Trig_Deulers_1_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_Deulers_1_Actions takes nothing returns nothing
if ( DuelerIsOnKing() ) then
if ( NoKingDueler() ) then
set udg_KingArena1 = true
call GroupAddUnitSimple( GetTriggerUnit(), udg_Arena1HeroKing )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 2, udg_Multiboard_Arena, udg_PlayerNames[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))] )
else
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Arena_Exit) )
endif
else
endif
if ( DuelerIsOnQueen() ) then
if ( NoQueenDueler() ) then
set udg_QueenArena1 = true
call GroupAddUnitSimple( GetTriggerUnit(), udg_Arena1HeroQueen )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 3, udg_Multiboard_Arena, udg_PlayerNames[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))] )
else
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Arena_Exit) )
endif
else
endif
if ( BothDuelersInArena() ) then
call TriggerExecute( gg_trg_Begin_Duel )
else
endif
endfunction
//===========================================================================
function InitTrig_Deulers_1 takes nothing returns nothing
set gg_trg_Deulers_1 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Deulers_1, gg_rct_Arena_1 )
call TriggerAddCondition( gg_trg_Deulers_1, Condition( function Trig_Deulers_1_Conditions ) )
call TriggerAddAction( gg_trg_Deulers_1, function Trig_Deulers_1_Actions )
endfunction
function Trig_Begin_Duel_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Deulers_1 )
call DisableTrigger( gg_trg_Dueler_Leaves )
set udg_Arena1Duel = true
call ModifyGateBJ( bj_GATEOPERATION_CLOSE, gg_dest_LTe3_0002 )
call ForGroupBJ( udg_Arena1HeroKing, function KingDuelerPreperation )
call ForGroupBJ( udg_Arena1HeroQueen, function QueenDuelerPreperation )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_Arena_1), function EmptyTheArena )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_SECRET, "A duel will begin in 5 seconds." )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_SECRET, "The duelists will have 3 minutes to own each other.
" )
call TriggerSleepAction( 1.00 )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_SECRET, "The duel will begin in 4 seconds." )
call TriggerSleepAction( 1.00 )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_SECRET, "3 seconds" )
call TriggerSleepAction( 1.00 )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_SECRET, "2" )
call TriggerSleepAction( 1.00 )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_SECRET, "1" )
call TriggerSleepAction( 1.00 )
call ForGroupBJ( udg_Arena1HeroKing, function KingDuelerBackIntoArena )
call ForGroupBJ( udg_Arena1HeroQueen, function QueenDuelerBackIntoArena )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_SECRET, "Fight!!" )
call EnableTrigger( gg_trg_Dueler_Leaves )
call EnableTrigger( gg_trg_End_Arena_1 )
call StartTimerBJ( udg_Arena1Timer, false, 180.00 )
call CreateTimerDialogBJ( udg_Arena1Timer, "Arena Timer" )
call TimerDialogDisplayBJ( true, GetLastCreatedTimerDialogBJ() )
set udg_Arena1Timer_Window = GetLastCreatedTimerDialogBJ()
endfunction
//===========================================================================
function InitTrig_Begin_Duel takes nothing returns nothing
set gg_trg_Begin_Duel = CreateTrigger( )
call DisableTrigger( gg_trg_Begin_Duel )
call TriggerAddAction( gg_trg_Begin_Duel, function Trig_Begin_Duel_Actions )
endfunction
function Trig_Dueler_Leaves_Actions takes nothing returns nothing
if ( DuelerIsInAren1HeroKing() ) then
if ( DuelIsInProgress() ) then
call KillUnit( GetTriggerUnit() )
else
call GroupRemoveUnitSimple( GetTriggerUnit(), udg_Arena1HeroKing )
set udg_KingArena1 = false
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 2, udg_Multiboard_Arena, "" )
endif
else
endif
if ( DuelerIsInArena1HeroQueen() ) then
if ( DuelIsInProgress() ) then
call KillUnit( GetTriggerUnit() )
else
call GroupRemoveUnitSimple( GetTriggerUnit(), udg_Arena1HeroQueen )
set udg_QueenArena1 = false
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 3, udg_Multiboard_Arena, "" )
endif
else
endif
endfunction
//===========================================================================
function InitTrig_Dueler_Leaves takes nothing returns nothing
set gg_trg_Dueler_Leaves = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Dueler_Leaves, gg_rct_Arena_1 )
call TriggerAddAction( gg_trg_Dueler_Leaves, function Trig_Dueler_Leaves_Actions )
endfunction
function Trig_End_Arena_1_Actions takes nothing returns nothing
set udg_Arena1Duel = false
call TimerDialogDisplayBJ( false, udg_Arena1Timer_Window )
call DestroyTimerDialogBJ( udg_Arena1Timer_Window )
call ForGroupBJ( udg_Arena1HeroKing, function KillKingDueler )
call ForGroupBJ( udg_Arena1HeroQueen, function KillQueenDueler )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_SECRET, "The dualists have been punished for sucking." )
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_LTe3_0002 )
call EnableTrigger( gg_trg_Deulers_1 )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_End_Arena_1 takes nothing returns nothing
set gg_trg_End_Arena_1 = CreateTrigger( )
call DisableTrigger( gg_trg_End_Arena_1 )
call TriggerRegisterTimerExpireEventBJ( gg_trg_End_Arena_1, udg_Arena1Timer )
call TriggerAddAction( gg_trg_End_Arena_1, function Trig_End_Arena_1_Actions )
endfunction
function Trig_Flag_Spawn_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'n01D', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Flag_Center), 180.00 )
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_Flag )
set udg_Flag_Down = true
set udg_FlagCarrier = Player(PLAYER_NEUTRAL_AGGRESSIVE)
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 2, udg_Multiboard_Flag, "Neutral" )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Flag_Spawn takes nothing returns nothing
set gg_trg_Flag_Spawn = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Flag_Spawn, 60.00 )
call TriggerAddAction( gg_trg_Flag_Spawn, function Trig_Flag_Spawn_Actions )
endfunction
function Trig_Flag_Dropoff_Duke_Conditions takes nothing returns boolean
if ( not ( udg_Flag_Down == false ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetTriggerUnit()) == udg_FlagCarrier ) ) then
return false
endif
return true
endfunction
function Trig_Flag_Dropoff_Duke_Actions takes nothing returns nothing
set udg_FlagDuke = true
set udg_Flag_Down = true
set udg_FlagCarrier = Player(PLAYER_NEUTRAL_AGGRESSIVE)
call DisableTrigger( gg_trg_Flag_Timer )
call TimerDialogDisplayBJ( false, udg_Flag_Timer_Window )
call DestroyTimerDialogBJ( udg_Flag_Timer_Window )
call CreateNUnitsAtLoc( 1, 'n01D', Player(0), GetRectCenter(gg_rct_Flag_Duke), 80.00 )
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_Flag )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_SECRET, "The King's heros have taken control of the flag." )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 2, udg_Multiboard_Flag, "The Duke" )
endfunction
//===========================================================================
function InitTrig_Flag_Dropoff_Duke takes nothing returns nothing
set gg_trg_Flag_Dropoff_Duke = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Flag_Dropoff_Duke, gg_rct_Flag_Duke )
call TriggerAddCondition( gg_trg_Flag_Dropoff_Duke, Condition( function Trig_Flag_Dropoff_Duke_Conditions ) )
call TriggerAddAction( gg_trg_Flag_Dropoff_Duke, function Trig_Flag_Dropoff_Duke_Actions )
endfunction
function Trig_Flag_Dropoff_Prince_Conditions takes nothing returns boolean
if ( not ( udg_Flag_Down == false ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetTriggerUnit()) == udg_FlagCarrier ) ) then
return false
endif
return true
endfunction
function Trig_Flag_Dropoff_Prince_Actions takes nothing returns nothing
set udg_FlagPrince = true
set udg_Flag_Down = true
set udg_FlagCarrier = Player(PLAYER_NEUTRAL_AGGRESSIVE)
call DisableTrigger( gg_trg_Flag_Timer )
call TimerDialogDisplayBJ( false, udg_Flag_Timer_Window )
call DestroyTimerDialogBJ( udg_Flag_Timer_Window )
call CreateNUnitsAtLoc( 1, 'n01D', Player(0), GetRectCenter(gg_rct_Flag_Prince), 80.00 )
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_Flag )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_SECRET, "The King's heros have taken control of the flag." )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 2, udg_Multiboard_Flag, "The Prince" )
endfunction
//===========================================================================
function InitTrig_Flag_Dropoff_Prince takes nothing returns nothing
set gg_trg_Flag_Dropoff_Prince = CreateTrigger( )
call DisableTrigger( gg_trg_Flag_Dropoff_Prince )
call TriggerRegisterEnterRectSimple( gg_trg_Flag_Dropoff_Prince, gg_rct_Flag_Prince )
call TriggerAddCondition( gg_trg_Flag_Dropoff_Prince, Condition( function Trig_Flag_Dropoff_Prince_Conditions ) )
call TriggerAddAction( gg_trg_Flag_Dropoff_Prince, function Trig_Flag_Dropoff_Prince_Actions )
endfunction
function Trig_Flag_Dropoff_King_Conditions takes nothing returns boolean
if ( not ( udg_Flag_Down == false ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetTriggerUnit()) == udg_FlagCarrier ) ) then
return false
endif
return true
endfunction
function Trig_Flag_Dropoff_King_Actions takes nothing returns nothing
set udg_FlagKing = true
set udg_Flag_Down = true
set udg_FlagCarrier = Player(PLAYER_NEUTRAL_AGGRESSIVE)
call DisableTrigger( gg_trg_Flag_Timer )
call TimerDialogDisplayBJ( false, udg_Flag_Timer_Window )
call DestroyTimerDialogBJ( udg_Flag_Timer_Window )
call CreateNUnitsAtLoc( 1, 'n01D', Player(0), GetRectCenter(gg_rct_Flag_King), 80.00 )
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_Flag )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_SECRET, "The King's heros have taken control of the flag." )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 2, udg_Multiboard_Flag, "The King" )
endfunction
//===========================================================================
function InitTrig_Flag_Dropoff_King takes nothing returns nothing
set gg_trg_Flag_Dropoff_King = CreateTrigger( )
call DisableTrigger( gg_trg_Flag_Dropoff_King )
call TriggerRegisterEnterRectSimple( gg_trg_Flag_Dropoff_King, gg_rct_Flag_King )
call TriggerAddCondition( gg_trg_Flag_Dropoff_King, Condition( function Trig_Flag_Dropoff_King_Conditions ) )
call TriggerAddAction( gg_trg_Flag_Dropoff_King, function Trig_Flag_Dropoff_King_Actions )
endfunction
function Trig_Flag_Dropoff_Baron_Conditions takes nothing returns boolean
if ( not ( udg_Flag_Down == false ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetTriggerUnit()) == udg_FlagCarrier ) ) then
return false
endif
return true
endfunction
function Trig_Flag_Dropoff_Baron_Actions takes nothing returns nothing
set udg_FlagBaron = true
set udg_Flag_Down = true
set udg_FlagCarrier = Player(PLAYER_NEUTRAL_AGGRESSIVE)
call DisableTrigger( gg_trg_Flag_Timer )
call TimerDialogDisplayBJ( false, udg_Flag_Timer_Window )
call DestroyTimerDialogBJ( udg_Flag_Timer_Window )
call CreateNUnitsAtLoc( 1, 'n01D', Player(6), GetRectCenter(gg_rct_Flag_Baron), 280.00 )
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_Flag )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_SECRET, "The Queen's heros have taken control of the flag." )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 2, udg_Multiboard_Flag, "The Baron" )
endfunction
//===========================================================================
function InitTrig_Flag_Dropoff_Baron takes nothing returns nothing
set gg_trg_Flag_Dropoff_Baron = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Flag_Dropoff_Baron, gg_rct_Flag_Baron )
call TriggerAddCondition( gg_trg_Flag_Dropoff_Baron, Condition( function Trig_Flag_Dropoff_Baron_Conditions ) )
call TriggerAddAction( gg_trg_Flag_Dropoff_Baron, function Trig_Flag_Dropoff_Baron_Actions )
endfunction
function Trig_Flag_Dropoff_Princess_Conditions takes nothing returns boolean
if ( not ( udg_Flag_Down == false ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetTriggerUnit()) == udg_FlagCarrier ) ) then
return false
endif
return true
endfunction
function Trig_Flag_Dropoff_Princess_Actions takes nothing returns nothing
set udg_FlagPrincess = true
set udg_Flag_Down = true
set udg_FlagCarrier = Player(PLAYER_NEUTRAL_AGGRESSIVE)
call DisableTrigger( gg_trg_Flag_Timer )
call TimerDialogDisplayBJ( false, udg_Flag_Timer_Window )
call DestroyTimerDialogBJ( udg_Flag_Timer_Window )
call CreateNUnitsAtLoc( 1, 'n01D', Player(6), GetRectCenter(gg_rct_Flag_Princess), 280.00 )
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_Flag )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_SECRET, "The Queen's heros have taken control of the flag." )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 2, udg_Multiboard_Flag, "The Princess" )
endfunction
//===========================================================================
function InitTrig_Flag_Dropoff_Princess takes nothing returns nothing
set gg_trg_Flag_Dropoff_Princess = CreateTrigger( )
call DisableTrigger( gg_trg_Flag_Dropoff_Princess )
call TriggerRegisterEnterRectSimple( gg_trg_Flag_Dropoff_Princess, gg_rct_Flag_Princess )
call TriggerAddCondition( gg_trg_Flag_Dropoff_Princess, Condition( function Trig_Flag_Dropoff_Princess_Conditions ) )
call TriggerAddAction( gg_trg_Flag_Dropoff_Princess, function Trig_Flag_Dropoff_Princess_Actions )
endfunction
function Trig_Flag_Dropoff_Queen_Conditions takes nothing returns boolean
if ( not ( udg_Flag_Down == false ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetTriggerUnit()) == udg_FlagCarrier ) ) then
return false
endif
return true
endfunction
function Trig_Flag_Dropoff_Queen_Actions takes nothing returns nothing
set udg_FlagQueen = true
set udg_Flag_Down = true
set udg_FlagCarrier = Player(PLAYER_NEUTRAL_AGGRESSIVE)
call DisableTrigger( gg_trg_Flag_Timer )
call TimerDialogDisplayBJ( false, udg_Flag_Timer_Window )
call DestroyTimerDialogBJ( udg_Flag_Timer_Window )
call CreateNUnitsAtLoc( 1, 'n01D', Player(6), GetRectCenter(gg_rct_Flag_Queen), 280.00 )
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_Flag )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_SECRET, "The Queen's heros have taken control of the flag." )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 2, udg_Multiboard_Flag, "The Queen" )
endfunction
//===========================================================================
function InitTrig_Flag_Dropoff_Queen takes nothing returns nothing
set gg_trg_Flag_Dropoff_Queen = CreateTrigger( )
call DisableTrigger( gg_trg_Flag_Dropoff_Queen )
call TriggerRegisterEnterRectSimple( gg_trg_Flag_Dropoff_Queen, gg_rct_Flag_Queen )
call TriggerAddCondition( gg_trg_Flag_Dropoff_Queen, Condition( function Trig_Flag_Dropoff_Queen_Conditions ) )
call TriggerAddAction( gg_trg_Flag_Dropoff_Queen, function Trig_Flag_Dropoff_Queen_Actions )
endfunction
function Trig_Flag_Timer_Conditions takes nothing returns boolean
if ( not ( udg_Flag_Down == false ) ) then
return false
endif
return true
endfunction
function Trig_Flag_Timer_Actions takes nothing returns nothing
set udg_Flag_Down = true
set udg_FlagCarrier = Player(PLAYER_NEUTRAL_AGGRESSIVE)
call TimerDialogDisplayBJ( false, udg_Flag_Timer_Window )
call DestroyTimerDialogBJ( udg_Flag_Timer_Window )
call CreateNUnitsAtLoc( 1, 'n01D', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Flag_Center), 180.00 )
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_Flag )
call DisableTrigger( GetTriggeringTrigger() )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 2, udg_Multiboard_Flag, "Neutral" )
endfunction
//===========================================================================
function InitTrig_Flag_Timer takes nothing returns nothing
set gg_trg_Flag_Timer = CreateTrigger( )
call DisableTrigger( gg_trg_Flag_Timer )
call TriggerRegisterTimerExpireEventBJ( gg_trg_Flag_Timer, udg_Flag_Timer )
call TriggerAddCondition( gg_trg_Flag_Timer, Condition( function Trig_Flag_Timer_Conditions ) )
call TriggerAddAction( gg_trg_Flag_Timer, function Trig_Flag_Timer_Actions )
endfunction
function Trig_Add_Heros_Actions takes nothing returns nothing
if ( HeroEntersCenter() ) then
if ( KingHeroEntersCenter() ) then
set udg_CenterKingHeros = ( udg_CenterKingHeros + 1 )
else
set udg_CenterQueenHeros = ( udg_CenterQueenHeros + 1 )
endif
else
endif
endfunction
//===========================================================================
function InitTrig_Add_Heros takes nothing returns nothing
set gg_trg_Add_Heros = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Add_Heros, gg_rct_Center_Capture )
call TriggerAddAction( gg_trg_Add_Heros, function Trig_Add_Heros_Actions )
endfunction
function Trig_Remove_Heros_Actions takes nothing returns nothing
if ( HeroLeavesCenter() ) then
if ( KingHeroLeavesCenter() ) then
set udg_CenterKingHeros = ( udg_CenterKingHeros - 1 )
else
set udg_CenterQueenHeros = ( udg_CenterQueenHeros - 1 )
endif
else
endif
endfunction
//===========================================================================
function InitTrig_Remove_Heros takes nothing returns nothing
set gg_trg_Remove_Heros = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Remove_Heros, gg_rct_Center_Capture )
call TriggerAddAction( gg_trg_Remove_Heros, function Trig_Remove_Heros_Actions )
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func003Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I06Q') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I03X') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func003Func003C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I06I') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I03P') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func003Func004C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I06D') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I082') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func003Func005C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I06S') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I03J') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func003Func006C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I03R') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I06V') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func003Func007C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I047') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I06W') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func003Func008C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I06X') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I06H') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func003Func009C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I067') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I06Y') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func003Func010C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I06O') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I05W') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func003Func011C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I06Z') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I061') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func003Func012C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I03H') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I06P') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func003Func013C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I071') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I06E') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func003C takes nothing returns boolean
if ( not ( udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] == false ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func004Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I020') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I022') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I021') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func004Func003C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02C') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02E') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02D') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func004Func004C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02O') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02Q') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02P') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func004Func005C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I024') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I025') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I026') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func004Func006C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02G') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02H') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02I') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func004Func007C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02S') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02T') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02U') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func004Func008C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I028') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I029') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02A') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func004Func009C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02K') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02L') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02M') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func004Func010C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02W') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02X') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02Y') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func004Func011C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I030') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I032') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I031') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func004Func012C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I034') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I036') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I035') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func004Func013C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I038') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I039') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I03A') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func004C takes nothing returns boolean
if ( not ( udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] == false ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func005Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I007') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'bspd') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func005Func003C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I005') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'bspd') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func005Func004C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I008') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'bspd') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func005Func005C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I006') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'bspd') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func005C takes nothing returns boolean
if ( not ( udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] == false ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func006Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I000') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'gcel') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func006Func003C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I003') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'gcel') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func006Func004C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00E') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'gcel') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func006Func005C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I002') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'gcel') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func006C takes nothing returns boolean
if ( not ( udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] == false ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func007Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09M') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BM') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func007Func003C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09M') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BQ') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func007Func004C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09M') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BU') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func007Func005C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09M') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0C5') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func007Func006C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0A7') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0C5') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func007Func007C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0A7') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BM') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func007Func008C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0A7') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BQ') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func007Func009C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0A7') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BU') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func007Func010C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BH') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BM') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func007Func011C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BH') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BQ') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func007Func012C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BH') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BU') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func007Func013C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BH') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0C5') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func007Func014C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09R') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BM') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func007Func015C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09R') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BQ') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func007Func016C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09R') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BU') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func007Func017C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09R') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0C5') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func007C takes nothing returns boolean
if ( not ( udg_Has_OrbRing_Set[GetConvertedPlayerId(GetTriggerPlayer())] == false ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func009Func001Func002C takes nothing returns boolean
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07P' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I074' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I076' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I075' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07V' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I05Y' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I060' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I05Z' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I03G' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I06F' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I06U' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I06G' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I088' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I077' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I079' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I078' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08G' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I03W' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I05X' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I03Y' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08Q' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07H' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07J' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07I' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08S' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I063' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I068' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I064' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I094' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I06A' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I06C' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I06B' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I096' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07E' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07G' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07F' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09G' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I070' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I073' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I072' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09N' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I03T' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I03V' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I03U' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09U' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07A' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07D' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07C' ) ) then
return true
endif
return false
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func009Func001C takes nothing returns boolean
if ( not ( udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] == true ) ) then
return false
endif
if ( not Trig_Unit_Aquires_an_Item_Copy_Func009Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func009C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func009Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func010Func001Func002C takes nothing returns boolean
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I023' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08M' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08O' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08N' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I027' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I085' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I087' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I086' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I02B' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I093' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I097' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I095' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I02F' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08U' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08W' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08V' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I02R' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09B' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09D' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09C' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I033' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08X' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08Z' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08Y' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I02J' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I098' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09A' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I099' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I02V' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I081' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I084' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I083' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I037' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08P' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08T' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08R' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I02N' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09E' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09H' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09F' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I02Z' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07K' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07M' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07L' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I03B' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07R' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07T' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07S' ) ) then
return true
endif
return false
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func010Func001C takes nothing returns boolean
if ( not ( udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] == true ) ) then
return false
endif
if ( not Trig_Unit_Aquires_an_Item_Copy_Func010Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func010C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func010Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func011Func001Func002C takes nothing returns boolean
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I013' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07N' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07O' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07Q' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I001' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07U' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07W' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07X' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I00A' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07Y' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07Z' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I080' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I00B' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I090' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I091' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I092' ) ) then
return true
endif
return false
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func011Func001C takes nothing returns boolean
if ( not ( udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] == true ) ) then
return false
endif
if ( not Trig_Unit_Aquires_an_Item_Copy_Func011Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func011C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func011Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func012Func001Func002C takes nothing returns boolean
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I05P' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I089' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08A' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08B' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I00D' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08C' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08D' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08E' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I004' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08F' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08H' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08I' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I00F' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08J' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08K' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08L' ) ) then
return true
endif
return false
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func012Func001C takes nothing returns boolean
if ( not ( udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] == true ) ) then
return false
endif
if ( not Trig_Unit_Aquires_an_Item_Copy_Func012Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func012C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func012Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func013Func001Func002C takes nothing returns boolean
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I015' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I00R' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I00Q' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I00P' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BL' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BN' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BJ' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BI' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BK' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BM' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I010' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I011' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I012' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I014' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BR' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BT' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BS' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BO' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BP' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BQ' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I06J' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I06K' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I06L' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I06R' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BX' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BY' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BZ' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BW' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BV' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BU' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I00W' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I00V' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I00U' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I00Y' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0C0' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0C4' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0C1' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0C2' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0C3' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0C5' ) ) then
return true
endif
return false
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func013Func001C takes nothing returns boolean
if ( not ( udg_Has_Ring[GetConvertedPlayerId(GetTriggerPlayer())] == true ) ) then
return false
endif
if ( not Trig_Unit_Aquires_an_Item_Copy_Func013Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func013C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func013Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func014Func001Func002C takes nothing returns boolean
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0A0' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09Z' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09Y' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09X' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09W' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0A1' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09V' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09T' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09S' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09M' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0A3' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0AA' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0A6' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0A8' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0A9' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09O' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0A5' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0A2' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0A4' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0A7' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0B8' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BC' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BB' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BA' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0B9' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BG' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0B7' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BE' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BF' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BH' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0AX' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0AW' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0AY' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0B0' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0AU' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0B1' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0AZ' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0AT' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0AV' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09R' ) ) then
return true
endif
return false
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func014Func001C takes nothing returns boolean
if ( not ( udg_Has_Orb[GetConvertedPlayerId(GetTriggerPlayer())] == true ) ) then
return false
endif
if ( not Trig_Unit_Aquires_an_Item_Copy_Func014Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func014C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func014Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func015Func001Func002C takes nothing returns boolean
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0C7' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0C6' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0C9' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0C8' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0CC' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0CB' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0CD' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0CA' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0CH' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0CG' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0CF' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0CE' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0CK' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0CI' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0CJ' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0CL' ) ) then
return true
endif
return false
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func015Func001C takes nothing returns boolean
if ( not ( udg_Has_OrbRing_Set[GetConvertedPlayerId(GetTriggerPlayer())] == true ) ) then
return false
endif
if ( not Trig_Unit_Aquires_an_Item_Copy_Func015Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func015C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func015Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func017Func003Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I018') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I015') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00R') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00Q') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00P') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BL') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BN') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BJ') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BI') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BK') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BM') == false ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func017Func003C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func017Func003Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func017Func004Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I018') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I015') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func017Func004C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func017Func004Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func017Func005Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I018') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00R') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func017Func005C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func017Func005Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func017Func006Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I018') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00Q') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func017Func006C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func017Func006Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func017Func007Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00P') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I018') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func017Func007C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func017Func007Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func017Func008Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I018') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BL') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func017Func008C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func017Func008Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func017Func009Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I018') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BN') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func017Func009C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func017Func009Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func017Func010Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I018') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BJ') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func017Func010C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func017Func010Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func017Func011Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I018') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BI') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func017Func011C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func017Func011Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func017Func012Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I018') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BK') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func017Func012C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func017Func012Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func017Func013Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I018') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BM') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func017Func013C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func017Func013Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func017C takes nothing returns boolean
if ( not ( udg_Has_OrbRing_Set[GetConvertedPlayerId(GetTriggerPlayer())] == false ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func018Func003Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I062') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I010') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I011') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I012') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I014') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BR') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BT') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BS') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BO') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BP') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BQ') == false ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func018Func003C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func018Func003Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func018Func004Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I062') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I010') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func018Func004C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func018Func004Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func018Func005Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I062') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I011') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func018Func005C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func018Func005Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func018Func006Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I062') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I012') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func018Func006C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func018Func006Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func018Func007Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I062') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I014') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func018Func007C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func018Func007Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func018Func008Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I062') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BR') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func018Func008C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func018Func008Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func018Func009Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I062') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BT') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func018Func009C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func018Func009Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func018Func010Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I062') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BS') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func018Func010C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func018Func010Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func018Func011Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I062') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BO') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func018Func011C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func018Func011Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func018Func012Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I062') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BP') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func018Func012C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func018Func012Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func018Func013Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I062') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BQ') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func018Func013C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func018Func013Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func018C takes nothing returns boolean
if ( not ( udg_Has_OrbRing_Set[GetConvertedPlayerId(GetTriggerPlayer())] == false ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func019Func003Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I06T') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I06J') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I06K') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I06L') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I06R') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BX') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BY') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BZ') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BW') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BV') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BU') == false ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func019Func003C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func019Func003Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func019Func004Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I06T') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I06J') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func019Func004C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func019Func004Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func019Func005Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I06T') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I06K') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func019Func005C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func019Func005Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func019Func006Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I06T') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I06L') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func019Func006C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func019Func006Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func019Func007Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I06T') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I06R') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func019Func007C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func019Func007Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func019Func008Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I06T') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BX') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func019Func008C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func019Func008Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func019Func009Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I06T') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BY') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func019Func009C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func019Func009Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func019Func010Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I06T') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BZ') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func019Func010C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func019Func010Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func019Func011Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I06T') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BW') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func019Func011C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func019Func011Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func019Func012Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I06T') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BV') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func019Func012C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func019Func012Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func019Func013Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I06T') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BU') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func019Func013C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func019Func013Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func019C takes nothing returns boolean
if ( not ( udg_Has_OrbRing_Set[GetConvertedPlayerId(GetTriggerPlayer())] == false ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func020Func003Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I019') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00W') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00V') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00U') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00Y') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0C0') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0C4') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0C1') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0C2') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0C3') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0C5') == false ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func020Func003C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func020Func003Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func020Func004Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I019') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00W') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func020Func004C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func020Func004Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func020Func005Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I019') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00V') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func020Func005C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func020Func005Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func020Func006Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I019') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00U') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func020Func006C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func020Func006Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func020Func007Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I019') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00Y') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func020Func007C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func020Func007Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func020Func008Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I019') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0C0') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func020Func008C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func020Func008Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func020Func009Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I019') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0C4') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func020Func009C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func020Func009Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func020Func010Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I019') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0C1') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func020Func010C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func020Func010Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func020Func011Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I019') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0C2') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func020Func011C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func020Func011Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func020Func012Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I019') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0C3') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func020Func012C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func020Func012Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func020Func013Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I019') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0C5') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func020Func013C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func020Func013Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func020C takes nothing returns boolean
if ( not ( udg_Has_OrbRing_Set[GetConvertedPlayerId(GetTriggerPlayer())] == false ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func022Func003Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0B2') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0A0') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09Z') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09Y') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09X') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09W') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0A1') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09V') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09T') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09S') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09M') == false ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func022Func003C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func022Func003Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func022Func004Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0B2') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0A0') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func022Func004C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func022Func004Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func022Func005Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0B2') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09Z') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func022Func005C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func022Func005Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func022Func006Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0B2') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09Y') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func022Func006C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func022Func006Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func022Func007Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0B2') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09X') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func022Func007C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func022Func007Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func022Func008Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0B2') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09W') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func022Func008C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func022Func008Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func022Func009Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0B2') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0A1') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func022Func009C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func022Func009Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func022Func010Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0B2') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09V') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func022Func010C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func022Func010Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func022Func011Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0B2') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09T') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func022Func011C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func022Func011Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func022Func012Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0B2') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09S') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func022Func012C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func022Func012Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func022Func013Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0B2') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09M') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func022Func013C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func022Func013Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func022C takes nothing returns boolean
if ( not ( udg_Has_OrbRing_Set[GetConvertedPlayerId(GetTriggerPlayer())] == false ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func023Func003Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0B3') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0A3') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0AA') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0A6') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0A8') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0A9') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09O') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0A5') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0A2') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0A4') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0A7') == false ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func023Func003C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func023Func003Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func023Func004Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0B3') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0A3') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func023Func004C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func023Func004Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func023Func005Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0B3') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0AA') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func023Func005C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func023Func005Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func023Func006Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0B3') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0A6') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func023Func006C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func023Func006Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func023Func007Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0B3') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0A8') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func023Func007C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func023Func007Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func023Func008Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0B3') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0A9') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func023Func008C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func023Func008Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func023Func009Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0B3') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09O') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func023Func009C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func023Func009Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func023Func010Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0B3') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0A5') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func023Func010C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func023Func010Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func023Func011Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0B3') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0A2') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func023Func011C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func023Func011Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func023Func012Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0B3') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0A4') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func023Func012C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func023Func012Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func023Func013Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0B3') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0A7') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func023Func013C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func023Func013Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func023C takes nothing returns boolean
if ( not ( udg_Has_OrbRing_Set[GetConvertedPlayerId(GetTriggerPlayer())] == false ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func024Func003Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BD') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0B8') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BC') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BB') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BA') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0B9') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BG') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0B7') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BE') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BF') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BH') == false ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func024Func003C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func024Func003Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func024Func004Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BD') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0B8') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func024Func004C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func024Func004Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func024Func005Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BD') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BC') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func024Func005C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func024Func005Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func024Func006Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BD') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BB') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func024Func006C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func024Func006Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func024Func007Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BD') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BA') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func024Func007C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func024Func007Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func024Func008Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BD') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0B9') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func024Func008C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func024Func008Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func024Func009Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BD') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BG') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func024Func009C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func024Func009Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func024Func010Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BD') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0B7') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func024Func010C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func024Func010Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func024Func011Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BD') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BE') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func024Func011C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func024Func011Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func024Func012Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BD') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BF') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func024Func012C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func024Func012Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func024Func013Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BD') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0BH') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func024Func013C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func024Func013Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func024C takes nothing returns boolean
if ( not ( udg_Has_OrbRing_Set[GetConvertedPlayerId(GetTriggerPlayer())] == false ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func025Func003Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0B6') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0AX') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0AW') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0AY') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0B0') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0AU') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0B1') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0AZ') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0AT') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0AV') == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09R') == false ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func025Func003C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func025Func003Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func025Func004Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0B6') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0AX') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func025Func004C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func025Func004Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func025Func005Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0B6') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0AW') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func025Func005C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func025Func005Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func025Func006Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0B6') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0AY') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func025Func006C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func025Func006Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func025Func007Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0B6') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0B0') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func025Func007C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func025Func007Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func025Func008Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0B6') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0AU') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func025Func008C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func025Func008Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func025Func009Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0B6') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0B1') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func025Func009C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func025Func009Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func025Func010Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0B6') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0AZ') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func025Func010C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func025Func010Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func025Func011Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0B6') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0AT') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func025Func011C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func025Func011Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func025Func012Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0B6') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0AV') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func025Func012C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func025Func012Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func025Func013Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I0B6') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09R') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func025Func013C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func025Func013Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func025C takes nothing returns boolean
if ( not ( udg_Has_OrbRing_Set[GetConvertedPlayerId(GetTriggerPlayer())] == false ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func027Func001Func002C takes nothing returns boolean
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07P' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I074' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I076' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I075' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07V' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I05Y' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I060' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I05Z' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I03G' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I06F' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I06U' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I06G' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I088' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I077' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I079' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I078' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08G' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I03W' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I05X' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I03Y' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08Q' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07H' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07J' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07I' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08S' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I063' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I068' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I064' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I094' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I06A' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I06C' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I06B' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I096' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07E' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07G' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07F' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09G' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I070' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I073' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I072' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09N' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I03T' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I03V' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I03U' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09U' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07A' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07D' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07C' ) ) then
return true
endif
return false
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func027Func001C takes nothing returns boolean
if ( not ( udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] == false ) ) then
return false
endif
if ( not Trig_Unit_Aquires_an_Item_Copy_Func027Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func027C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func027Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func028Func001Func002C takes nothing returns boolean
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I023' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08M' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08O' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08N' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I027' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I085' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I087' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I086' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I02B' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I093' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I097' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I095' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I02F' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08U' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08W' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08V' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I02R' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09B' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09D' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09C' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I033' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08X' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08Z' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08Y' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I02J' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I098' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09A' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I099' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I02V' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I081' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I084' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I083' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I037' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08P' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08T' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08R' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I02N' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09E' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09H' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09F' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I02Z' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07K' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07M' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07L' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I03B' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07R' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07T' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07S' ) ) then
return true
endif
return false
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func028Func001C takes nothing returns boolean
if ( not ( udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] == false ) ) then
return false
endif
if ( not Trig_Unit_Aquires_an_Item_Copy_Func028Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func028C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func028Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func029Func001Func002C takes nothing returns boolean
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I013' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07N' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07O' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07Q' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I001' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07U' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07W' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07X' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I00A' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07Y' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07Z' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I080' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I00B' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I090' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I091' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I092' ) ) then
return true
endif
return false
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func029Func001C takes nothing returns boolean
if ( not ( udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] == false ) ) then
return false
endif
if ( not Trig_Unit_Aquires_an_Item_Copy_Func029Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func029C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func029Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func030Func001Func002C takes nothing returns boolean
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I05P' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I089' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08A' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08B' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I00D' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08C' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08D' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08E' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I004' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08F' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08H' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08I' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I00F' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08J' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08K' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08L' ) ) then
return true
endif
return false
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func030Func001C takes nothing returns boolean
if ( not ( udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] == false ) ) then
return false
endif
if ( not Trig_Unit_Aquires_an_Item_Copy_Func030Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func030C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func030Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func031Func001Func002C takes nothing returns boolean
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I015' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I00R' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I00Q' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I00P' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BL' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BN' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BJ' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BI' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BK' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BM' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I010' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I011' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I012' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I014' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BR' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BT' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BS' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BO' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BP' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BQ' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I06J' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I06K' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I06L' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I06R' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BX' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BY' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BZ' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BW' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BV' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BU' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I00W' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I00V' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I00U' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I00Y' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0C0' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0C4' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0C1' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0C2' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0C3' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0C5' ) ) then
return true
endif
return false
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func031Func001C takes nothing returns boolean
if ( not ( udg_Has_Ring[GetConvertedPlayerId(GetTriggerPlayer())] == false ) ) then
return false
endif
if ( not Trig_Unit_Aquires_an_Item_Copy_Func031Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func031C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func031Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func032Func001Func002C takes nothing returns boolean
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0A0' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09Z' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09Y' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09X' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09W' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0A1' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09V' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09T' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09S' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09M' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0A3' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0AA' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0A6' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0A8' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0A9' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09O' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0A5' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0A2' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0A4' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0A7' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0B8' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BC' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BB' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BA' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0B9' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BG' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0B7' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BE' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BF' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BH' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0AX' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0AW' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0AY' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0B0' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0AU' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0B1' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0AZ' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0AT' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0AV' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09R' ) ) then
return true
endif
return false
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func032Func001C takes nothing returns boolean
if ( not ( udg_Has_Orb[GetConvertedPlayerId(GetTriggerPlayer())] == false ) ) then
return false
endif
if ( not Trig_Unit_Aquires_an_Item_Copy_Func032Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func032C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func032Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func033Func001Func002C takes nothing returns boolean
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0C7' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0C6' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0C9' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0C8' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0CC' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0CB' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0CD' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0CA' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0CH' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0CG' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0CF' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0CE' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0CK' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0CI' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0CJ' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0CL' ) ) then
return true
endif
return false
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func033Func001C takes nothing returns boolean
if ( not ( udg_Has_OrbRing_Set[GetConvertedPlayerId(GetTriggerPlayer())] == false ) ) then
return false
endif
if ( not Trig_Unit_Aquires_an_Item_Copy_Func033Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Func033C takes nothing returns boolean
if ( not Trig_Unit_Aquires_an_Item_Copy_Func033Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Aquires_an_Item_Copy_Actions takes nothing returns nothing
// Create Sets
if ( Trig_Unit_Aquires_an_Item_Copy_Func003C() ) then
if ( Trig_Unit_Aquires_an_Item_Copy_Func003Func002C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I06Q') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I03X') )
call UnitAddItemByIdSwapped( 'I07P', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func003Func003C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I06I') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I03P') )
call UnitAddItemByIdSwapped( 'I07V', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func003Func004C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I06D') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I082') )
call UnitAddItemByIdSwapped( 'I03G', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func003Func005C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I06S') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I03J') )
call UnitAddItemByIdSwapped( 'I088', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func003Func006C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I03R') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I06V') )
call UnitAddItemByIdSwapped( 'I08G', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func003Func007C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I047') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I06W') )
call UnitAddItemByIdSwapped( 'I08Q', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func003Func008C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I06X') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I06H') )
call UnitAddItemByIdSwapped( 'I08S', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func003Func009C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I067') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I06Y') )
call UnitAddItemByIdSwapped( 'I094', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func003Func010C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I06O') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I05W') )
call UnitAddItemByIdSwapped( 'I096', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func003Func011C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I06Z') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I061') )
call UnitAddItemByIdSwapped( 'I09G', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func003Func012C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I03H') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I06P') )
call UnitAddItemByIdSwapped( 'I09N', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func003Func013C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I071') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I06E') )
call UnitAddItemByIdSwapped( 'I09U', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func004C() ) then
if ( Trig_Unit_Aquires_an_Item_Copy_Func004Func002C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I020') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I022') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I021') )
call UnitAddItemByIdSwapped( 'I023', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func004Func003C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02C') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02E') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02D') )
call UnitAddItemByIdSwapped( 'I02F', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func004Func004C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02O') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02Q') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02P') )
call UnitAddItemByIdSwapped( 'I02R', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func004Func005C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I024') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I025') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I026') )
call UnitAddItemByIdSwapped( 'I027', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func004Func006C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02G') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02H') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02I') )
call UnitAddItemByIdSwapped( 'I02J', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func004Func007C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02S') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02T') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02U') )
call UnitAddItemByIdSwapped( 'I02V', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func004Func008C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I028') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I029') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02A') )
call UnitAddItemByIdSwapped( 'I02B', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func004Func009C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02K') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02M') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02L') )
call UnitAddItemByIdSwapped( 'I02N', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func004Func010C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02W') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02X') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02Y') )
call UnitAddItemByIdSwapped( 'I02Z', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func004Func011C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I030') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I032') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I031') )
call UnitAddItemByIdSwapped( 'I033', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func004Func012C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I034') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I035') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I036') )
call UnitAddItemByIdSwapped( 'I037', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func004Func013C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I038') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I039') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I03A') )
call UnitAddItemByIdSwapped( 'I03B', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func005C() ) then
if ( Trig_Unit_Aquires_an_Item_Copy_Func005Func002C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I007') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'bspd') )
call UnitAddItemByIdSwapped( 'I001', GetManipulatingUnit() )
set udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func005Func003C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I005') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'bspd') )
call UnitAddItemByIdSwapped( 'I00B', GetManipulatingUnit() )
set udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func005Func004C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I008') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'bspd') )
call UnitAddItemByIdSwapped( 'I00A', GetManipulatingUnit() )
set udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func005Func005C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I006') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'bspd') )
call UnitAddItemByIdSwapped( 'I013', GetManipulatingUnit() )
set udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func006C() ) then
if ( Trig_Unit_Aquires_an_Item_Copy_Func006Func002C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I000') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'gcel') )
call UnitAddItemByIdSwapped( 'I00D', GetManipulatingUnit() )
set udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func006Func003C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I003') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'gcel') )
call UnitAddItemByIdSwapped( 'I05P', GetManipulatingUnit() )
set udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func006Func004C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00E') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'gcel') )
call UnitAddItemByIdSwapped( 'I004', GetManipulatingUnit() )
set udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func006Func005C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I002') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'gcel') )
call UnitAddItemByIdSwapped( 'I00F', GetManipulatingUnit() )
set udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func007C() ) then
if ( Trig_Unit_Aquires_an_Item_Copy_Func007Func002C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I09M') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BM') )
call UnitAddItemByIdSwapped( 'I0C7', GetManipulatingUnit() )
set udg_Has_OrbRing_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func007Func003C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I09M') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BQ') )
call UnitAddItemByIdSwapped( 'I0CC', GetManipulatingUnit() )
set udg_Has_OrbRing_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func007Func004C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I09M') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BU') )
call UnitAddItemByIdSwapped( 'I0CH', GetManipulatingUnit() )
set udg_Has_OrbRing_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func007Func005C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I09M') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0C5') )
call UnitAddItemByIdSwapped( 'I0CK', GetManipulatingUnit() )
set udg_Has_OrbRing_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func007Func006C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0A7') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0C5') )
call UnitAddItemByIdSwapped( 'I0CI', GetManipulatingUnit() )
set udg_Has_OrbRing_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func007Func007C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0A7') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BM') )
call UnitAddItemByIdSwapped( 'I0C6', GetManipulatingUnit() )
set udg_Has_OrbRing_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func007Func008C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0A7') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BQ') )
call UnitAddItemByIdSwapped( 'I0CB', GetManipulatingUnit() )
set udg_Has_OrbRing_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func007Func009C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0A7') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BU') )
call UnitAddItemByIdSwapped( 'I0CG', GetManipulatingUnit() )
set udg_Has_OrbRing_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func007Func010C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BH') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BM') )
call UnitAddItemByIdSwapped( 'I0C9', GetManipulatingUnit() )
set udg_Has_OrbRing_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func007Func011C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BH') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BQ') )
call UnitAddItemByIdSwapped( 'I0CD', GetManipulatingUnit() )
set udg_Has_OrbRing_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func007Func012C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BH') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BU') )
call UnitAddItemByIdSwapped( 'I0CF', GetManipulatingUnit() )
set udg_Has_OrbRing_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func007Func013C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BH') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0C5') )
call UnitAddItemByIdSwapped( 'I0CJ', GetManipulatingUnit() )
set udg_Has_OrbRing_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func007Func014C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I09R') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BM') )
call UnitAddItemByIdSwapped( 'I0C8', GetManipulatingUnit() )
set udg_Has_OrbRing_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func007Func015C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I09R') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BQ') )
call UnitAddItemByIdSwapped( 'I0CA', GetManipulatingUnit() )
set udg_Has_OrbRing_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func007Func016C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I09R') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BU') )
call UnitAddItemByIdSwapped( 'I0CE', GetManipulatingUnit() )
set udg_Has_OrbRing_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func007Func017C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I09R') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0C5') )
call UnitAddItemByIdSwapped( 'I0CL', GetManipulatingUnit() )
set udg_Has_OrbRing_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
else
call DoNothing( )
endif
// Set Limits
if ( Trig_Unit_Aquires_an_Item_Copy_Func009C() ) then
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = false
call RemoveItem( GetManipulatedItem() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
call AdjustPlayerStateBJ( GetItemUserData(GetManipulatedItem()), GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func010C() ) then
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = false
call RemoveItem( GetManipulatedItem() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
call AdjustPlayerStateBJ( GetItemUserData(GetManipulatedItem()), GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func011C() ) then
set udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] = false
call RemoveItem( GetManipulatedItem() )
set udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
call AdjustPlayerStateBJ( GetItemUserData(GetManipulatedItem()), GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func012C() ) then
set udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] = false
call RemoveItem( GetManipulatedItem() )
set udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
call AdjustPlayerStateBJ( GetItemUserData(GetManipulatedItem()), GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func013C() ) then
set udg_Has_Ring[GetConvertedPlayerId(GetTriggerPlayer())] = false
call RemoveItem( GetManipulatedItem() )
set udg_Has_Ring[GetConvertedPlayerId(GetTriggerPlayer())] = true
call AdjustPlayerStateBJ( GetItemUserData(GetManipulatedItem()), GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func014C() ) then
set udg_Has_Orb[GetConvertedPlayerId(GetTriggerPlayer())] = false
call RemoveItem( GetManipulatedItem() )
set udg_Has_Orb[GetConvertedPlayerId(GetTriggerPlayer())] = true
call AdjustPlayerStateBJ( GetItemUserData(GetManipulatedItem()), GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func015C() ) then
set udg_Has_OrbRing_Set[GetConvertedPlayerId(GetTriggerPlayer())] = false
call RemoveItem( GetManipulatedItem() )
set udg_Has_OrbRing_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
call AdjustPlayerStateBJ( GetItemUserData(GetManipulatedItem()), GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD )
else
call DoNothing( )
endif
// Rings
if ( Trig_Unit_Aquires_an_Item_Copy_Func017C() ) then
if ( Trig_Unit_Aquires_an_Item_Copy_Func017Func003C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I018') )
call UnitAddItemByIdSwapped( 'I015', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func017Func004C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I018') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I015') )
call UnitAddItemByIdSwapped( 'I00R', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func017Func005C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I018') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00R') )
call UnitAddItemByIdSwapped( 'I00Q', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func017Func006C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I018') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00Q') )
call UnitAddItemByIdSwapped( 'I00P', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func017Func007C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I018') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00P') )
call UnitAddItemByIdSwapped( 'I0BL', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func017Func008C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I018') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BL') )
call UnitAddItemByIdSwapped( 'I0BN', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func017Func009C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I018') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BN') )
call UnitAddItemByIdSwapped( 'I0BJ', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func017Func010C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I018') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BJ') )
call UnitAddItemByIdSwapped( 'I0BI', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func017Func011C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I018') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BI') )
call UnitAddItemByIdSwapped( 'I0BK', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func017Func012C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I018') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BK') )
call UnitAddItemByIdSwapped( 'I0BM', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func017Func013C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I018') )
call AdjustPlayerStateBJ( 1000, GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD )
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func018C() ) then
if ( Trig_Unit_Aquires_an_Item_Copy_Func018Func003C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I062') )
call UnitAddItemByIdSwapped( 'I010', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func018Func004C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I062') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I010') )
call UnitAddItemByIdSwapped( 'I011', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func018Func005C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I062') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I011') )
call UnitAddItemByIdSwapped( 'I012', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func018Func006C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I062') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I012') )
call UnitAddItemByIdSwapped( 'I014', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func018Func007C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I062') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I014') )
call UnitAddItemByIdSwapped( 'I0BR', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func018Func008C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I062') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BR') )
call UnitAddItemByIdSwapped( 'I0BT', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func018Func009C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I062') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BT') )
call UnitAddItemByIdSwapped( 'I0BS', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func018Func010C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I062') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BS') )
call UnitAddItemByIdSwapped( 'I0BO', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func018Func011C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I062') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BO') )
call UnitAddItemByIdSwapped( 'I0BP', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func018Func012C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I062') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BP') )
call UnitAddItemByIdSwapped( 'I0BQ', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func018Func013C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I062') )
call AdjustPlayerStateBJ( 1000, GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD )
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func019C() ) then
if ( Trig_Unit_Aquires_an_Item_Copy_Func019Func003C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I06T') )
call UnitAddItemByIdSwapped( 'I06J', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func019Func004C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I06T') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I06J') )
call UnitAddItemByIdSwapped( 'I06K', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func019Func005C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I06T') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I06K') )
call UnitAddItemByIdSwapped( 'I06L', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func019Func006C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I06T') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I06L') )
call UnitAddItemByIdSwapped( 'I06R', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func019Func007C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I06T') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I06R') )
call UnitAddItemByIdSwapped( 'I0BX', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func019Func008C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I06T') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BX') )
call UnitAddItemByIdSwapped( 'I0BY', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func019Func009C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I06T') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BY') )
call UnitAddItemByIdSwapped( 'I0BZ', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func019Func010C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I06T') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BZ') )
call UnitAddItemByIdSwapped( 'I0BW', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func019Func011C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I06T') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BW') )
call UnitAddItemByIdSwapped( 'I0BV', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func019Func012C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I06T') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BV') )
call UnitAddItemByIdSwapped( 'I0BU', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func019Func013C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I06T') )
call AdjustPlayerStateBJ( 1000, GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD )
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func020C() ) then
if ( Trig_Unit_Aquires_an_Item_Copy_Func020Func003C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I019') )
call UnitAddItemByIdSwapped( 'I00W', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func020Func004C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I019') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00W') )
call UnitAddItemByIdSwapped( 'I00V', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func020Func005C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I019') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00V') )
call UnitAddItemByIdSwapped( 'I00U', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func020Func006C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I019') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00U') )
call UnitAddItemByIdSwapped( 'I00Y', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func020Func007C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I019') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00Y') )
call UnitAddItemByIdSwapped( 'I0C0', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func020Func008C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I019') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0C0') )
call UnitAddItemByIdSwapped( 'I0C4', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func020Func009C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I019') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0C4') )
call UnitAddItemByIdSwapped( 'I0C1', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func020Func010C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I019') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0C1') )
call UnitAddItemByIdSwapped( 'I0C2', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func020Func011C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I019') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0C2') )
call UnitAddItemByIdSwapped( 'I0C3', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func020Func012C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I019') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0C3') )
call UnitAddItemByIdSwapped( 'I0C5', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func020Func013C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I019') )
call AdjustPlayerStateBJ( 1000, GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD )
else
call DoNothing( )
endif
else
call DoNothing( )
endif
// Orbs
if ( Trig_Unit_Aquires_an_Item_Copy_Func022C() ) then
if ( Trig_Unit_Aquires_an_Item_Copy_Func022Func003C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0B2') )
call UnitAddItemByIdSwapped( 'I0A0', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func022Func004C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0B2') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0A0') )
call UnitAddItemByIdSwapped( 'I09Z', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func022Func005C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0B2') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I09Z') )
call UnitAddItemByIdSwapped( 'I09Y', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func022Func006C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0B2') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I09Y') )
call UnitAddItemByIdSwapped( 'I09X', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func022Func007C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0B2') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I09X') )
call UnitAddItemByIdSwapped( 'I09W', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func022Func008C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0B2') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I09W') )
call UnitAddItemByIdSwapped( 'I0A1', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func022Func009C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0B2') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0A1') )
call UnitAddItemByIdSwapped( 'I09V', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func022Func010C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0B2') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I09V') )
call UnitAddItemByIdSwapped( 'I09T', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func022Func011C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0B2') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I09T') )
call UnitAddItemByIdSwapped( 'I09S', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func022Func012C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0B2') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I09S') )
call UnitAddItemByIdSwapped( 'I09M', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func022Func013C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0B2') )
call AdjustPlayerStateBJ( 1000, GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD )
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func023C() ) then
if ( Trig_Unit_Aquires_an_Item_Copy_Func023Func003C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0B3') )
call UnitAddItemByIdSwapped( 'I0A3', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func023Func004C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0B3') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0A3') )
call UnitAddItemByIdSwapped( 'I0AA', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func023Func005C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0B3') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0AA') )
call UnitAddItemByIdSwapped( 'I0A6', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func023Func006C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0B3') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0A6') )
call UnitAddItemByIdSwapped( 'I0A8', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func023Func007C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0B3') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0A8') )
call UnitAddItemByIdSwapped( 'I0A9', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func023Func008C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0B3') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0A9') )
call UnitAddItemByIdSwapped( 'I09O', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func023Func009C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0B3') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I09O') )
call UnitAddItemByIdSwapped( 'I0A5', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func023Func010C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0B3') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0A5') )
call UnitAddItemByIdSwapped( 'I0A2', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func023Func011C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0B3') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0A2') )
call UnitAddItemByIdSwapped( 'I0A4', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func023Func012C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0B3') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0A4') )
call UnitAddItemByIdSwapped( 'I0A7', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func023Func013C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0B3') )
call AdjustPlayerStateBJ( 1000, GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD )
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func024C() ) then
if ( Trig_Unit_Aquires_an_Item_Copy_Func024Func003C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BD') )
call UnitAddItemByIdSwapped( 'I0B8', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func024Func004C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BD') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0B8') )
call UnitAddItemByIdSwapped( 'I0BC', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func024Func005C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BD') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BC') )
call UnitAddItemByIdSwapped( 'I0BB', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func024Func006C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BD') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BB') )
call UnitAddItemByIdSwapped( 'I0BA', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func024Func007C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BD') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BA') )
call UnitAddItemByIdSwapped( 'I0B9', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func024Func008C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BD') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0B9') )
call UnitAddItemByIdSwapped( 'I0BG', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func024Func009C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BD') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BG') )
call UnitAddItemByIdSwapped( 'I0B7', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func024Func010C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BD') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0B7') )
call UnitAddItemByIdSwapped( 'I0BE', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func024Func011C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BD') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BE') )
call UnitAddItemByIdSwapped( 'I0BF', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func024Func012C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BD') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BF') )
call UnitAddItemByIdSwapped( 'I0BH', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func024Func013C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0BD') )
call AdjustPlayerStateBJ( 1000, GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD )
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func025C() ) then
if ( Trig_Unit_Aquires_an_Item_Copy_Func025Func003C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0B6') )
call UnitAddItemByIdSwapped( 'I0AX', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func025Func004C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0B6') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0AX') )
call UnitAddItemByIdSwapped( 'I0AW', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func025Func005C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0B6') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0AW') )
call UnitAddItemByIdSwapped( 'I0AY', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func025Func006C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0B6') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0AY') )
call UnitAddItemByIdSwapped( 'I0B0', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func025Func007C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0B6') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0B0') )
call UnitAddItemByIdSwapped( 'I0AU', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func025Func008C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0B6') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0AU') )
call UnitAddItemByIdSwapped( 'I0B1', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func025Func009C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0B6') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0B1') )
call UnitAddItemByIdSwapped( 'I0AZ', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func025Func010C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0B6') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0AZ') )
call UnitAddItemByIdSwapped( 'I0AT', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func025Func011C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0B6') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0AT') )
call UnitAddItemByIdSwapped( 'I0AV', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func025Func012C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0B6') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0AV') )
call UnitAddItemByIdSwapped( 'I09R', GetManipulatingUnit() )
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func025Func013C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I0B6') )
call AdjustPlayerStateBJ( 1000, GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD )
else
call DoNothing( )
endif
else
call DoNothing( )
endif
// Variables
if ( Trig_Unit_Aquires_an_Item_Copy_Func027C() ) then
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func028C() ) then
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func029C() ) then
set udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func030C() ) then
set udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func031C() ) then
set udg_Has_Ring[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func032C() ) then
set udg_Has_Orb[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Aquires_an_Item_Copy_Func033C() ) then
set udg_Has_OrbRing_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Unit_Aquires_an_Item_Copy takes nothing returns nothing
set gg_trg_Unit_Aquires_an_Item_Copy = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Unit_Aquires_an_Item_Copy, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Unit_Aquires_an_Item_Copy, Condition( function Trig_Unit_Aquires_an_Item_Copy_Conditions ) )
call TriggerAddAction( gg_trg_Unit_Aquires_an_Item_Copy, function Trig_Unit_Aquires_an_Item_Copy_Actions )
endfunction
function Trig_Unit_Loses_an_Item_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Loses_an_Item_Func002Func002C takes nothing returns boolean
if ( not ( udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Loses_an_Item_Func002Func003C takes nothing returns boolean
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07P' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I074' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I076' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I075' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07V' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I05Y' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I060' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I05Z' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I03G' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I06F' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I06U' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I06G' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I088' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I077' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I079' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I078' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08G' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I03W' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I05X' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I03Y' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08Q' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07H' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07J' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07I' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08S' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I063' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I068' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I064' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I094' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I06A' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I06C' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I06B' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I096' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07E' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07G' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07F' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09G' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I070' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I073' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I072' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09N' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I03T' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I03V' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I03U' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09U' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07A' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07D' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07C' ) ) then
return true
endif
return false
endfunction
function Trig_Unit_Loses_an_Item_Func002C takes nothing returns boolean
if ( not Trig_Unit_Loses_an_Item_Func002Func003C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Loses_an_Item_Func003Func002C takes nothing returns boolean
if ( not ( udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Loses_an_Item_Func003Func003C takes nothing returns boolean
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I023' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08O' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08M' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08N' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I027' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I087' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I085' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I086' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I02B' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I097' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I093' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I095' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I02F' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08W' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08U' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08V' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I02R' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09D' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09B' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09C' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I033' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08Z' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08X' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08Y' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I02J' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09A' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I098' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I099' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I02V' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I084' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I081' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I083' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I037' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08T' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08P' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08R' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I02N' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09H' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09E' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09F' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I02Z' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07M' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07K' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07L' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I03B' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07T' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07R' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07S' ) ) then
return true
endif
return false
endfunction
function Trig_Unit_Loses_an_Item_Func003C takes nothing returns boolean
if ( not Trig_Unit_Loses_an_Item_Func003Func003C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Loses_an_Item_Func004Func002C takes nothing returns boolean
if ( not ( udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Loses_an_Item_Func004Func003C takes nothing returns boolean
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I013' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07O' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07Q' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07N' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I001' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07W' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07X' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07U' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I00A' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07Z' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I080' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I07Y' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I00B' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I091' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I092' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I090' ) ) then
return true
endif
return false
endfunction
function Trig_Unit_Loses_an_Item_Func004C takes nothing returns boolean
if ( not Trig_Unit_Loses_an_Item_Func004Func003C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Loses_an_Item_Func005Func002C takes nothing returns boolean
if ( not ( udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Loses_an_Item_Func005Func003C takes nothing returns boolean
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I05P' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I089' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08A' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08B' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I00D' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08C' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08D' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08E' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I004' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08F' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08H' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08I' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I00F' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08J' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08K' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I08L' ) ) then
return true
endif
return false
endfunction
function Trig_Unit_Loses_an_Item_Func005C takes nothing returns boolean
if ( not Trig_Unit_Loses_an_Item_Func005Func003C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Loses_an_Item_Func006Func001C takes nothing returns boolean
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I015' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I00R' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I00Q' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I00P' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BL' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BN' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BJ' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BI' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BK' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BM' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I010' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I011' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I012' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I014' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BR' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BT' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BS' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BO' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BP' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BQ' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I06J' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I06K' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I06L' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I06R' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BX' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BY' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BZ' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BW' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BV' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BU' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I00W' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I00V' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I00U' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I00Y' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0C0' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0C4' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0C1' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0C2' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0C3' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0C5' ) ) then
return true
endif
return false
endfunction
function Trig_Unit_Loses_an_Item_Func006Func003C takes nothing returns boolean
if ( not ( udg_Has_Ring[GetConvertedPlayerId(GetTriggerPlayer())] == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Loses_an_Item_Func006C takes nothing returns boolean
if ( not Trig_Unit_Loses_an_Item_Func006Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Loses_an_Item_Func007Func001C takes nothing returns boolean
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0A0' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09Z' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09Y' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09X' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09W' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0A1' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09V' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09T' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09S' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09M' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0A3' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0AA' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0A6' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0A8' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0A9' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09O' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0A5' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0A2' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0A4' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0A7' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0B8' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BC' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BB' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BA' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0B9' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BG' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0B7' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BE' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BF' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0BH' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0AX' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0AW' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0AY' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0B0' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0AU' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0B1' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0AZ' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0AT' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0AV' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I09R' ) ) then
return true
endif
return false
endfunction
function Trig_Unit_Loses_an_Item_Func007Func003C takes nothing returns boolean
if ( not ( udg_Has_Orb[GetConvertedPlayerId(GetTriggerPlayer())] == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Loses_an_Item_Func007C takes nothing returns boolean
if ( not Trig_Unit_Loses_an_Item_Func007Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Loses_an_Item_Func008Func001C takes nothing returns boolean
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0C7' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0C6' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0C9' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0C8' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0CC' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0CB' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0CD' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0CA' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0CH' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0CG' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0CF' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0CE' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0CK' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0CI' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0CJ' ) ) then
return true
endif
if ( ( GetItemTypeId(GetManipulatedItem()) == 'I0CL' ) ) then
return true
endif
return false
endfunction
function Trig_Unit_Loses_an_Item_Func008Func003C takes nothing returns boolean
if ( not ( udg_Has_OrbRing_Set[GetConvertedPlayerId(GetTriggerPlayer())] == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Loses_an_Item_Func008C takes nothing returns boolean
if ( not Trig_Unit_Loses_an_Item_Func008Func001C() ) then
return false
endif
return true
endfunction
function Trig_Unit_Loses_an_Item_Actions takes nothing returns nothing
if ( Trig_Unit_Loses_an_Item_Func002C() ) then
if ( Trig_Unit_Loses_an_Item_Func002Func002C() ) then
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = false
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_Unit_Loses_an_Item_Func003C() ) then
if ( Trig_Unit_Loses_an_Item_Func003Func002C() ) then
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = false
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_Unit_Loses_an_Item_Func004C() ) then
if ( Trig_Unit_Loses_an_Item_Func004Func002C() ) then
set udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] = false
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_Unit_Loses_an_Item_Func005C() ) then
if ( Trig_Unit_Loses_an_Item_Func005Func002C() ) then
set udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] = false
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_Unit_Loses_an_Item_Func006C() ) then
if ( Trig_Unit_Loses_an_Item_Func006Func003C() ) then
set udg_Has_Ring[GetConvertedPlayerId(GetTriggerPlayer())] = false
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_Unit_Loses_an_Item_Func007C() ) then
if ( Trig_Unit_Loses_an_Item_Func007Func003C() ) then
set udg_Has_Orb[GetConvertedPlayerId(GetTriggerPlayer())] = false
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_Unit_Loses_an_Item_Func008C() ) then
if ( Trig_Unit_Loses_an_Item_Func008Func003C() ) then
set udg_Has_OrbRing_Set[GetConvertedPlayerId(GetTriggerPlayer())] = false
else
call DoNothing( )
endif
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Unit_Loses_an_Item takes nothing returns nothing
set gg_trg_Unit_Loses_an_Item = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Unit_Loses_an_Item, EVENT_PLAYER_UNIT_DROP_ITEM )
call TriggerAddCondition( gg_trg_Unit_Loses_an_Item, Condition( function Trig_Unit_Loses_an_Item_Conditions ) )
call TriggerAddAction( gg_trg_Unit_Loses_an_Item, function Trig_Unit_Loses_an_Item_Actions )
endfunction
function Trig_Unit_Uses_an_Item_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func003Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I05P') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func003Func003C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08B') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func003Func004C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08A') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func003Func005C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00D') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func003Func006C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08D') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func003Func007C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08E') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func003Func008C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I004') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func003Func009C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08H') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func003Func010C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08I') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func003Func011C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00F') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func003Func012C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08K') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func003Func013C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08L') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func003C takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I03I' ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func004Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I05P') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func004Func003C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08B') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func004Func004C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I089') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func004Func005C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00D') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func004Func006C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08C') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func004Func007C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08E') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func004Func008C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I004') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func004Func009C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08F') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func004Func010C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08I') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func004Func011C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00F') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func004Func012C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08J') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func004Func013C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08L') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func004C takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I03F' ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func005Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I05P') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func005Func003C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08A') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func005Func004C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I089') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func005Func005C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00D') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func005Func006C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08C') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func005Func007C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08D') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func005Func008C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I004') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func005Func009C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08F') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func005Func010C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08H') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func005Func011C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00F') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func005Func012C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08J') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func005Func013C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08K') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func005C takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I03L' ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func007Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I013') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func007Func003C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07O') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func007Func004C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07Q') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func007Func005C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I001') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func007Func006C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07W') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func007Func007C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07X') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func007Func008C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00A') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func007Func009C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07Z') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func007Func010C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I080') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func007Func011C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00B') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func007Func012C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I091') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func007Func013C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I092') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func007C takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I03K' ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func008Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I013') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func008Func003C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07N') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func008Func004C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07Q') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func008Func005C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I001') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func008Func006C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07U') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func008Func007C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07X') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func008Func008C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00A') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func008Func009C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07Y') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func008Func010C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I080') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func008Func011C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00B') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func008Func012C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I090') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func008Func013C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I092') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func008C takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I03S' ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func009Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I013') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func009Func003C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07O') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func009Func004C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07N') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func009Func005C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I001') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func009Func006C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07W') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func009Func007C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07U') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func009Func008C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00A') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func009Func009C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07Z') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func009Func010C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07Y') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func009Func011C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00B') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func009Func012C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I091') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func009Func013C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I090') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func009C takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I03E' ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func011Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I068') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func011Func003C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I064') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func011Func004C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08S') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func011Func005C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I06C') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func011Func006C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I06B') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func011Func007C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I094') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func011Func008C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I073') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func011Func009C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I072') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func011Func010C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09G') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func011Func011C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I06U') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func011Func012C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I06G') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func011Func013C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I03G') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func011Func014C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07G') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func011Func015C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07F') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func011Func016C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I096') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func011Func017C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07D') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func011Func018C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07C') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func011Func019C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09U') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func011Func020C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07J') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func011Func021C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07I') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func011Func022C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08Q') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func011Func023C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I076') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func011Func024C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I075') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func011Func025C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07P') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func011Func026C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I05X') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func011Func027C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I03Y') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func011Func028C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08G') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func011Func029C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I060') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func011Func030C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I05Z') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func011Func031C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07V') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func011Func032C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I079') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func011Func033C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I078') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func011Func034C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I088') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func011Func035C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I03V') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func011Func036C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I03U') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func011Func037C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09N') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func011C takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I03O' ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func012Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I063') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func012Func003C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I064') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func012Func004C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08S') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func012Func005C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I06A') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func012Func006C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I06B') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func012Func007C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I094') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func012Func008C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I070') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func012Func009C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I072') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func012Func010C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09G') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func012Func011C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I06F') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func012Func012C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I06G') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func012Func013C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I03G') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func012Func014C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07E') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func012Func015C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07F') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func012Func016C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I096') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func012Func017C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07A') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func012Func018C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07C') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func012Func019C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09U') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func012Func020C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07H') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func012Func021C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07I') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func012Func022C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08Q') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func012Func023C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I074') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func012Func024C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I075') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func012Func025C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07P') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func012Func026C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I03W') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func012Func027C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I03Y') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func012Func028C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08G') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func012Func029C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I05Y') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func012Func030C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I05Z') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func012Func031C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07V') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func012Func032C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I077') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func012Func033C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I078') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func012Func034C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I088') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func012Func035C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I03T') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func012Func036C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I03U') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func012Func037C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09N') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func012C takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I03C' ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func013Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I063') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func013Func003C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I068') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func013Func004C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08S') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func013Func005C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I06A') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func013Func006C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I06C') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func013Func007C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I094') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func013Func008C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I070') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func013Func009C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I073') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func013Func010C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09G') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func013Func011C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I06F') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func013Func012C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I06U') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func013Func013C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I03G') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func013Func014C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07E') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func013Func015C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07G') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func013Func016C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I096') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func013Func017C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07A') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func013Func018C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07D') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func013Func019C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09U') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func013Func020C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07H') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func013Func021C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07J') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func013Func022C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08Q') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func013Func023C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I074') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func013Func024C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I076') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func013Func025C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07P') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func013Func026C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I03W') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func013Func027C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I05X') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func013Func028C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08G') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func013Func029C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I05Y') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func013Func030C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I060') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func013Func031C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07V') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func013Func032C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I077') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func013Func033C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I079') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func013Func034C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I088') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func013Func035C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I03T') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func013Func036C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I03V') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func013Func037C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09N') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func013C takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I03N' ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func015Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02Z') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func015Func003C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07M') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func015Func004C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07L') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func015Func005C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02V') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func015Func006C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I084') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func015Func007C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I083') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func015Func008C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I03B') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func015Func009C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07T') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func015Func010C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07S') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func015Func011C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I027') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func015Func012C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I087') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func015Func013C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I086') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func015Func014C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I023') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func015Func015C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08O') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func015Func016C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08N') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func015Func017C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I037') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func015Func018C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08T') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func015Func019C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08R') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func015Func020C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02F') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func015Func021C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08W') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func015Func022C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08V') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func015Func023C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I033') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func015Func024C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08Z') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func015Func025C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08Y') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func015Func026C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02B') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func015Func027C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I097') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func015Func028C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I095') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func015Func029C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02J') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func015Func030C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09A') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func015Func031C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I099') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func015Func032C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02R') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func015Func033C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09D') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func015Func034C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09C') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func015Func035C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02N') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func015Func036C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09H') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func015Func037C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09F') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func015C takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I00L' ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func016Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02Z') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func016Func003C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07K') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func016Func004C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07L') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func016Func005C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02V') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func016Func006C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I081') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func016Func007C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I083') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func016Func008C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I03B') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func016Func009C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I081') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func016Func010C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07S') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func016Func011C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I027') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func016Func012C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I085') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func016Func013C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I086') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func016Func014C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I023') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func016Func015C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08M') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func016Func016C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08N') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func016Func017C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I037') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func016Func018C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08P') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func016Func019C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08R') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func016Func020C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02F') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func016Func021C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08U') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func016Func022C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08V') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func016Func023C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I033') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func016Func024C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08X') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func016Func025C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08Y') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func016Func026C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02B') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func016Func027C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I093') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func016Func028C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I095') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func016Func029C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02J') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func016Func030C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I098') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func016Func031C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I099') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func016Func032C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02R') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func016Func033C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09B') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func016Func034C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09C') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func016Func035C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02N') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func016Func036C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09E') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func016Func037C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09F') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func016C takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I03D' ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func017Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02Z') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func017Func003C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07K') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func017Func004C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07M') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func017Func005C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02V') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func017Func006C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I081') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func017Func007C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I084') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func017Func008C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I03B') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func017Func009C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I081') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func017Func010C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I07T') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func017Func011C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I027') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func017Func012C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I085') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func017Func013C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I087') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func017Func014C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I023') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func017Func015C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08M') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func017Func016C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08O') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func017Func017C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I037') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func017Func018C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08P') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func017Func019C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08T') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func017Func020C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02F') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func017Func021C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08U') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func017Func022C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08W') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func017Func023C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I033') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func017Func024C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08X') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func017Func025C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I08Z') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func017Func026C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02B') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func017Func027C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I093') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func017Func028C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I097') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func017Func029C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02J') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func017Func030C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I098') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func017Func031C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09A') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func017Func032C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02R') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func017Func033C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09B') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func017Func034C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09D') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func017Func035C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02N') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func017Func036C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09E') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func017Func037C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I09H') == true ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Func017C takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I03M' ) ) then
return false
endif
return true
endfunction
function Trig_Unit_Uses_an_Item_Actions takes nothing returns nothing
// Glove Enchants
if ( Trig_Unit_Uses_an_Item_Func003C() ) then
if ( Trig_Unit_Uses_an_Item_Func003Func002C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I05P') )
call UnitAddItemByIdSwapped( 'I089', GetManipulatingUnit() )
set udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func003Func003C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08B') )
call UnitAddItemByIdSwapped( 'I089', GetManipulatingUnit() )
set udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func003Func004C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08A') )
call UnitAddItemByIdSwapped( 'I089', GetManipulatingUnit() )
set udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func003Func005C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00D') )
call UnitAddItemByIdSwapped( 'I08C', GetManipulatingUnit() )
set udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func003Func006C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08D') )
call UnitAddItemByIdSwapped( 'I08C', GetManipulatingUnit() )
set udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func003Func007C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08E') )
call UnitAddItemByIdSwapped( 'I08C', GetManipulatingUnit() )
set udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func003Func008C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I004') )
call UnitAddItemByIdSwapped( 'I08F', GetManipulatingUnit() )
set udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func003Func009C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08H') )
call UnitAddItemByIdSwapped( 'I08F', GetManipulatingUnit() )
set udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func003Func010C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08I') )
call UnitAddItemByIdSwapped( 'I08F', GetManipulatingUnit() )
set udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func003Func011C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00F') )
call UnitAddItemByIdSwapped( 'I08J', GetManipulatingUnit() )
set udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func003Func012C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08K') )
call UnitAddItemByIdSwapped( 'I08J', GetManipulatingUnit() )
set udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func003Func013C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08L') )
call UnitAddItemByIdSwapped( 'I08J', GetManipulatingUnit() )
set udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func004C() ) then
if ( Trig_Unit_Uses_an_Item_Func004Func002C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I05P') )
call UnitAddItemByIdSwapped( 'I08A', GetManipulatingUnit() )
set udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func004Func003C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08B') )
call UnitAddItemByIdSwapped( 'I08A', GetManipulatingUnit() )
set udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func004Func004C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I089') )
call UnitAddItemByIdSwapped( 'I08A', GetManipulatingUnit() )
set udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func004Func005C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00D') )
call UnitAddItemByIdSwapped( 'I08D', GetManipulatingUnit() )
set udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func004Func006C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08C') )
call UnitAddItemByIdSwapped( 'I08D', GetManipulatingUnit() )
set udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func004Func007C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08E') )
call UnitAddItemByIdSwapped( 'I08D', GetManipulatingUnit() )
set udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func004Func008C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I004') )
call UnitAddItemByIdSwapped( 'I08H', GetManipulatingUnit() )
set udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func004Func009C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08F') )
call UnitAddItemByIdSwapped( 'I08H', GetManipulatingUnit() )
set udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func004Func010C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08I') )
call UnitAddItemByIdSwapped( 'I08H', GetManipulatingUnit() )
set udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func004Func011C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00F') )
call UnitAddItemByIdSwapped( 'I08K', GetManipulatingUnit() )
set udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func004Func012C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08J') )
call UnitAddItemByIdSwapped( 'I08K', GetManipulatingUnit() )
set udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func004Func013C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08L') )
call UnitAddItemByIdSwapped( 'I08K', GetManipulatingUnit() )
set udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func005C() ) then
if ( Trig_Unit_Uses_an_Item_Func005Func002C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I05P') )
call UnitAddItemByIdSwapped( 'I08B', GetManipulatingUnit() )
set udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func005Func003C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08A') )
call UnitAddItemByIdSwapped( 'I08B', GetManipulatingUnit() )
set udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func005Func004C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I089') )
call UnitAddItemByIdSwapped( 'I08B', GetManipulatingUnit() )
set udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func005Func005C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00D') )
call UnitAddItemByIdSwapped( 'I08E', GetManipulatingUnit() )
set udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func005Func006C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08C') )
call UnitAddItemByIdSwapped( 'I08E', GetManipulatingUnit() )
set udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func005Func007C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08D') )
call UnitAddItemByIdSwapped( 'I08E', GetManipulatingUnit() )
set udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func005Func008C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I004') )
call UnitAddItemByIdSwapped( 'I08I', GetManipulatingUnit() )
set udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func005Func009C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08F') )
call UnitAddItemByIdSwapped( 'I08I', GetManipulatingUnit() )
set udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func005Func010C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08H') )
call UnitAddItemByIdSwapped( 'I08I', GetManipulatingUnit() )
set udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func005Func011C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00F') )
call UnitAddItemByIdSwapped( 'I08L', GetManipulatingUnit() )
set udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func005Func012C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08J') )
call UnitAddItemByIdSwapped( 'I08L', GetManipulatingUnit() )
set udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func005Func013C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08K') )
call UnitAddItemByIdSwapped( 'I08L', GetManipulatingUnit() )
set udg_Has_Glove_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
else
call DoNothing( )
endif
// Boot Enchants
if ( Trig_Unit_Uses_an_Item_Func007C() ) then
if ( Trig_Unit_Uses_an_Item_Func007Func002C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I013') )
call UnitAddItemByIdSwapped( 'I07N', GetManipulatingUnit() )
set udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func007Func003C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07O') )
call UnitAddItemByIdSwapped( 'I07N', GetManipulatingUnit() )
set udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func007Func004C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07Q') )
call UnitAddItemByIdSwapped( 'I07N', GetManipulatingUnit() )
set udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func007Func005C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I001') )
call UnitAddItemByIdSwapped( 'I07U', GetManipulatingUnit() )
set udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func007Func006C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07W') )
call UnitAddItemByIdSwapped( 'I07U', GetManipulatingUnit() )
set udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func007Func007C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07X') )
call UnitAddItemByIdSwapped( 'I07U', GetManipulatingUnit() )
set udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func007Func008C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00A') )
call UnitAddItemByIdSwapped( 'I07Y', GetManipulatingUnit() )
set udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func007Func009C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07Z') )
call UnitAddItemByIdSwapped( 'I07Y', GetManipulatingUnit() )
set udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func007Func010C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I080') )
call UnitAddItemByIdSwapped( 'I07Y', GetManipulatingUnit() )
set udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func007Func011C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00B') )
call UnitAddItemByIdSwapped( 'I090', GetManipulatingUnit() )
set udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func007Func012C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I091') )
call UnitAddItemByIdSwapped( 'I090', GetManipulatingUnit() )
set udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func007Func013C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I092') )
call UnitAddItemByIdSwapped( 'I090', GetManipulatingUnit() )
set udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func008C() ) then
if ( Trig_Unit_Uses_an_Item_Func008Func002C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I013') )
call UnitAddItemByIdSwapped( 'I07O', GetManipulatingUnit() )
set udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func008Func003C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07N') )
call UnitAddItemByIdSwapped( 'I07O', GetManipulatingUnit() )
set udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func008Func004C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07Q') )
call UnitAddItemByIdSwapped( 'I07O', GetManipulatingUnit() )
set udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func008Func005C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I001') )
call UnitAddItemByIdSwapped( 'I07W', GetManipulatingUnit() )
set udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func008Func006C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07U') )
call UnitAddItemByIdSwapped( 'I07W', GetManipulatingUnit() )
set udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func008Func007C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07X') )
call UnitAddItemByIdSwapped( 'I07W', GetManipulatingUnit() )
set udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func008Func008C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00A') )
call UnitAddItemByIdSwapped( 'I07Z', GetManipulatingUnit() )
set udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func008Func009C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07Z') )
call UnitAddItemByIdSwapped( 'I07Z', GetManipulatingUnit() )
set udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func008Func010C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I080') )
call UnitAddItemByIdSwapped( 'I07Z', GetManipulatingUnit() )
set udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func008Func011C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00B') )
call UnitAddItemByIdSwapped( 'I091', GetManipulatingUnit() )
set udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func008Func012C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I090') )
call UnitAddItemByIdSwapped( 'I091', GetManipulatingUnit() )
set udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func008Func013C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I092') )
call UnitAddItemByIdSwapped( 'I091', GetManipulatingUnit() )
set udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func009C() ) then
if ( Trig_Unit_Uses_an_Item_Func009Func002C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I013') )
call UnitAddItemByIdSwapped( 'I07Q', GetManipulatingUnit() )
set udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func009Func003C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07O') )
call UnitAddItemByIdSwapped( 'I07Q', GetManipulatingUnit() )
set udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func009Func004C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07N') )
call UnitAddItemByIdSwapped( 'I07Q', GetManipulatingUnit() )
set udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func009Func005C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I001') )
call UnitAddItemByIdSwapped( 'I07X', GetManipulatingUnit() )
set udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func009Func006C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07W') )
call UnitAddItemByIdSwapped( 'I07X', GetManipulatingUnit() )
set udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func009Func007C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07U') )
call UnitAddItemByIdSwapped( 'I07X', GetManipulatingUnit() )
set udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func009Func008C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00A') )
call UnitAddItemByIdSwapped( 'I080', GetManipulatingUnit() )
set udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func009Func009C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07Z') )
call UnitAddItemByIdSwapped( 'I080', GetManipulatingUnit() )
set udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func009Func010C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I080') )
call UnitAddItemByIdSwapped( 'I080', GetManipulatingUnit() )
set udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func009Func011C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00B') )
call UnitAddItemByIdSwapped( 'I092', GetManipulatingUnit() )
set udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func009Func012C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I091') )
call UnitAddItemByIdSwapped( 'I092', GetManipulatingUnit() )
set udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func009Func013C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I090') )
call UnitAddItemByIdSwapped( 'I092', GetManipulatingUnit() )
set udg_Has_Boot_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
else
call DoNothing( )
endif
// Weapon Enchants
if ( Trig_Unit_Uses_an_Item_Func011C() ) then
if ( Trig_Unit_Uses_an_Item_Func011Func002C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I068') )
call UnitAddItemByIdSwapped( 'I063', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func011Func003C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I064') )
call UnitAddItemByIdSwapped( 'I063', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func011Func004C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08S') )
call UnitAddItemByIdSwapped( 'I063', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func011Func005C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I06C') )
call UnitAddItemByIdSwapped( 'I06A', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func011Func006C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I06B') )
call UnitAddItemByIdSwapped( 'I06A', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func011Func007C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I094') )
call UnitAddItemByIdSwapped( 'I06A', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func011Func008C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I073') )
call UnitAddItemByIdSwapped( 'I070', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func011Func009C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I072') )
call UnitAddItemByIdSwapped( 'I070', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func011Func010C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I09G') )
call UnitAddItemByIdSwapped( 'I070', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func011Func011C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I06U') )
call UnitAddItemByIdSwapped( 'I06F', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func011Func012C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I06G') )
call UnitAddItemByIdSwapped( 'I06F', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func011Func013C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I03G') )
call UnitAddItemByIdSwapped( 'I06F', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func011Func014C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07G') )
call UnitAddItemByIdSwapped( 'I07E', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func011Func015C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07F') )
call UnitAddItemByIdSwapped( 'I07E', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func011Func016C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I096') )
call UnitAddItemByIdSwapped( 'I07E', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func011Func017C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07D') )
call UnitAddItemByIdSwapped( 'I07A', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func011Func018C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07C') )
call UnitAddItemByIdSwapped( 'I07A', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func011Func019C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I09U') )
call UnitAddItemByIdSwapped( 'I07A', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func011Func020C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07J') )
call UnitAddItemByIdSwapped( 'I07H', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func011Func021C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07I') )
call UnitAddItemByIdSwapped( 'I07H', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func011Func022C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08Q') )
call UnitAddItemByIdSwapped( 'I07H', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func011Func023C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I076') )
call UnitAddItemByIdSwapped( 'I074', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func011Func024C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I075') )
call UnitAddItemByIdSwapped( 'I074', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func011Func025C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07P') )
call UnitAddItemByIdSwapped( 'I074', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func011Func026C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I05X') )
call UnitAddItemByIdSwapped( 'I03W', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func011Func027C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I03Y') )
call UnitAddItemByIdSwapped( 'I03W', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func011Func028C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08G') )
call UnitAddItemByIdSwapped( 'I03W', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func011Func029C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I060') )
call UnitAddItemByIdSwapped( 'I05Y', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func011Func030C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I05Z') )
call UnitAddItemByIdSwapped( 'I05Y', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func011Func031C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07V') )
call UnitAddItemByIdSwapped( 'I05Y', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func011Func032C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I079') )
call UnitAddItemByIdSwapped( 'I077', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func011Func033C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I078') )
call UnitAddItemByIdSwapped( 'I077', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func011Func034C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I088') )
call UnitAddItemByIdSwapped( 'I077', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func011Func035C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I03V') )
call UnitAddItemByIdSwapped( 'I03T', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func011Func036C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I03U') )
call UnitAddItemByIdSwapped( 'I03T', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func011Func037C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I09N') )
call UnitAddItemByIdSwapped( 'I03T', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func012C() ) then
if ( Trig_Unit_Uses_an_Item_Func012Func002C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I063') )
call UnitAddItemByIdSwapped( 'I068', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func012Func003C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I064') )
call UnitAddItemByIdSwapped( 'I068', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func012Func004C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08S') )
call UnitAddItemByIdSwapped( 'I068', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func012Func005C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I06A') )
call UnitAddItemByIdSwapped( 'I06C', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func012Func006C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I06B') )
call UnitAddItemByIdSwapped( 'I06C', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func012Func007C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I094') )
call UnitAddItemByIdSwapped( 'I06C', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func012Func008C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I070') )
call UnitAddItemByIdSwapped( 'I073', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func012Func009C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I072') )
call UnitAddItemByIdSwapped( 'I073', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func012Func010C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I09G') )
call UnitAddItemByIdSwapped( 'I073', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func012Func011C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I06F') )
call UnitAddItemByIdSwapped( 'I06U', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func012Func012C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I06G') )
call UnitAddItemByIdSwapped( 'I06U', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func012Func013C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I03G') )
call UnitAddItemByIdSwapped( 'I06U', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func012Func014C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07E') )
call UnitAddItemByIdSwapped( 'I07G', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func012Func015C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07F') )
call UnitAddItemByIdSwapped( 'I07G', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func012Func016C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I096') )
call UnitAddItemByIdSwapped( 'I07G', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func012Func017C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07A') )
call UnitAddItemByIdSwapped( 'I07D', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func012Func018C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07C') )
call UnitAddItemByIdSwapped( 'I07D', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func012Func019C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I09U') )
call UnitAddItemByIdSwapped( 'I07D', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func012Func020C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07H') )
call UnitAddItemByIdSwapped( 'I07J', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func012Func021C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07I') )
call UnitAddItemByIdSwapped( 'I07J', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func012Func022C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08Q') )
call UnitAddItemByIdSwapped( 'I07J', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func012Func023C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I074') )
call UnitAddItemByIdSwapped( 'I076', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func012Func024C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I075') )
call UnitAddItemByIdSwapped( 'I076', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func012Func025C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07P') )
call UnitAddItemByIdSwapped( 'I076', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func012Func026C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I03W') )
call UnitAddItemByIdSwapped( 'I05X', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func012Func027C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I03Y') )
call UnitAddItemByIdSwapped( 'I05X', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func012Func028C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08G') )
call UnitAddItemByIdSwapped( 'I05X', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func012Func029C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I05Y') )
call UnitAddItemByIdSwapped( 'I060', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func012Func030C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I05Z') )
call UnitAddItemByIdSwapped( 'I060', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func012Func031C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07V') )
call UnitAddItemByIdSwapped( 'I060', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func012Func032C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I077') )
call UnitAddItemByIdSwapped( 'I079', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func012Func033C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I078') )
call UnitAddItemByIdSwapped( 'I079', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func012Func034C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I088') )
call UnitAddItemByIdSwapped( 'I079', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func012Func035C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I03T') )
call UnitAddItemByIdSwapped( 'I03V', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func012Func036C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I03U') )
call UnitAddItemByIdSwapped( 'I03V', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func012Func037C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I09N') )
call UnitAddItemByIdSwapped( 'I03V', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func013C() ) then
if ( Trig_Unit_Uses_an_Item_Func013Func002C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I063') )
call UnitAddItemByIdSwapped( 'I064', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func013Func003C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I068') )
call UnitAddItemByIdSwapped( 'I064', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func013Func004C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08S') )
call UnitAddItemByIdSwapped( 'I064', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func013Func005C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I06A') )
call UnitAddItemByIdSwapped( 'I06B', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func013Func006C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I06C') )
call UnitAddItemByIdSwapped( 'I06B', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func013Func007C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I094') )
call UnitAddItemByIdSwapped( 'I06B', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func013Func008C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I070') )
call UnitAddItemByIdSwapped( 'I072', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func013Func009C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I073') )
call UnitAddItemByIdSwapped( 'I072', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func013Func010C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I09G') )
call UnitAddItemByIdSwapped( 'I072', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func013Func011C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I06F') )
call UnitAddItemByIdSwapped( 'I06G', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func013Func012C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I06U') )
call UnitAddItemByIdSwapped( 'I06G', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func013Func013C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I03G') )
call UnitAddItemByIdSwapped( 'I06G', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func013Func014C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07E') )
call UnitAddItemByIdSwapped( 'I07F', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func013Func015C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07G') )
call UnitAddItemByIdSwapped( 'I07F', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func013Func016C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I096') )
call UnitAddItemByIdSwapped( 'I07F', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func013Func017C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07A') )
call UnitAddItemByIdSwapped( 'I07C', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func013Func018C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07D') )
call UnitAddItemByIdSwapped( 'I07C', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func013Func019C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I09U') )
call UnitAddItemByIdSwapped( 'I07C', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func013Func020C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07H') )
call UnitAddItemByIdSwapped( 'I07I', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func013Func021C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07J') )
call UnitAddItemByIdSwapped( 'I07I', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func013Func022C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08Q') )
call UnitAddItemByIdSwapped( 'I07I', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func013Func023C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I074') )
call UnitAddItemByIdSwapped( 'I075', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func013Func024C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I076') )
call UnitAddItemByIdSwapped( 'I075', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func013Func025C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07P') )
call UnitAddItemByIdSwapped( 'I075', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func013Func026C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I03W') )
call UnitAddItemByIdSwapped( 'I03Y', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func013Func027C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I05X') )
call UnitAddItemByIdSwapped( 'I03Y', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func013Func028C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08G') )
call UnitAddItemByIdSwapped( 'I03Y', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func013Func029C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I05Y') )
call UnitAddItemByIdSwapped( 'I05Z', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func013Func030C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I060') )
call UnitAddItemByIdSwapped( 'I05Z', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func013Func031C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07V') )
call UnitAddItemByIdSwapped( 'I05Z', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func013Func032C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I077') )
call UnitAddItemByIdSwapped( 'I078', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func013Func033C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I079') )
call UnitAddItemByIdSwapped( 'I078', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func013Func034C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I088') )
call UnitAddItemByIdSwapped( 'I078', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func013Func035C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I03T') )
call UnitAddItemByIdSwapped( 'I03U', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func013Func036C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I03V') )
call UnitAddItemByIdSwapped( 'I03U', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func013Func037C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I09N') )
call UnitAddItemByIdSwapped( 'I03U', GetManipulatingUnit() )
set udg_Has_Weapon_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
else
call DoNothing( )
endif
// Armor Enchants
if ( Trig_Unit_Uses_an_Item_Func015C() ) then
if ( Trig_Unit_Uses_an_Item_Func015Func002C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02Z') )
call UnitAddItemByIdSwapped( 'I07K', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func015Func003C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07M') )
call UnitAddItemByIdSwapped( 'I07K', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func015Func004C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07L') )
call UnitAddItemByIdSwapped( 'I07K', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func015Func005C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02V') )
call UnitAddItemByIdSwapped( 'I081', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func015Func006C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I084') )
call UnitAddItemByIdSwapped( 'I081', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func015Func007C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I083') )
call UnitAddItemByIdSwapped( 'I081', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func015Func008C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I03B') )
call UnitAddItemByIdSwapped( 'I07R', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func015Func009C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07T') )
call UnitAddItemByIdSwapped( 'I07R', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func015Func010C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07S') )
call UnitAddItemByIdSwapped( 'I07R', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func015Func011C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I027') )
call UnitAddItemByIdSwapped( 'I085', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func015Func012C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I087') )
call UnitAddItemByIdSwapped( 'I085', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func015Func013C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I086') )
call UnitAddItemByIdSwapped( 'I085', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func015Func014C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I023') )
call UnitAddItemByIdSwapped( 'I08M', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func015Func015C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08O') )
call UnitAddItemByIdSwapped( 'I08M', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func015Func016C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08N') )
call UnitAddItemByIdSwapped( 'I08M', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func015Func017C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I037') )
call UnitAddItemByIdSwapped( 'I08P', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func015Func018C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08T') )
call UnitAddItemByIdSwapped( 'I08P', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func015Func019C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08R') )
call UnitAddItemByIdSwapped( 'I08P', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func015Func020C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02F') )
call UnitAddItemByIdSwapped( 'I08U', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func015Func021C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08W') )
call UnitAddItemByIdSwapped( 'I08U', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func015Func022C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08V') )
call UnitAddItemByIdSwapped( 'I08U', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func015Func023C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I033') )
call UnitAddItemByIdSwapped( 'I08X', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func015Func024C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08Z') )
call UnitAddItemByIdSwapped( 'I08X', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func015Func025C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08Y') )
call UnitAddItemByIdSwapped( 'I08X', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func015Func026C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02B') )
call UnitAddItemByIdSwapped( 'I093', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func015Func027C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I097') )
call UnitAddItemByIdSwapped( 'I093', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func015Func028C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I095') )
call UnitAddItemByIdSwapped( 'I093', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func015Func029C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02J') )
call UnitAddItemByIdSwapped( 'I098', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func015Func030C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I09A') )
call UnitAddItemByIdSwapped( 'I098', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func015Func031C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I099') )
call UnitAddItemByIdSwapped( 'I098', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func015Func032C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02R') )
call UnitAddItemByIdSwapped( 'I09B', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func015Func033C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I09D') )
call UnitAddItemByIdSwapped( 'I09B', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func015Func034C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I09C') )
call UnitAddItemByIdSwapped( 'I09B', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func015Func035C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02N') )
call UnitAddItemByIdSwapped( 'I09E', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func015Func036C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I09H') )
call UnitAddItemByIdSwapped( 'I09E', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func015Func037C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I09F') )
call UnitAddItemByIdSwapped( 'I09E', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func016C() ) then
if ( Trig_Unit_Uses_an_Item_Func016Func002C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02Z') )
call UnitAddItemByIdSwapped( 'I07M', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func016Func003C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07K') )
call UnitAddItemByIdSwapped( 'I07M', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func016Func004C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07L') )
call UnitAddItemByIdSwapped( 'I07M', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func016Func005C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02V') )
call UnitAddItemByIdSwapped( 'I084', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func016Func006C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I081') )
call UnitAddItemByIdSwapped( 'I084', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func016Func007C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I083') )
call UnitAddItemByIdSwapped( 'I084', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func016Func008C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I03B') )
call UnitAddItemByIdSwapped( 'I07T', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func016Func009C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07R') )
call UnitAddItemByIdSwapped( 'I07T', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func016Func010C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07S') )
call UnitAddItemByIdSwapped( 'I07T', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func016Func011C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I027') )
call UnitAddItemByIdSwapped( 'I087', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func016Func012C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I085') )
call UnitAddItemByIdSwapped( 'I087', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func016Func013C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I086') )
call UnitAddItemByIdSwapped( 'I087', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func016Func014C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I023') )
call UnitAddItemByIdSwapped( 'I08O', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func016Func015C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08M') )
call UnitAddItemByIdSwapped( 'I08O', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func016Func016C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08N') )
call UnitAddItemByIdSwapped( 'I08O', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func016Func017C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I037') )
call UnitAddItemByIdSwapped( 'I08T', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func016Func018C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08P') )
call UnitAddItemByIdSwapped( 'I08T', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func016Func019C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08R') )
call UnitAddItemByIdSwapped( 'I08T', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func016Func020C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02F') )
call UnitAddItemByIdSwapped( 'I08W', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func016Func021C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08U') )
call UnitAddItemByIdSwapped( 'I08W', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func016Func022C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08V') )
call UnitAddItemByIdSwapped( 'I08W', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func016Func023C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I033') )
call UnitAddItemByIdSwapped( 'I08Z', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func016Func024C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08X') )
call UnitAddItemByIdSwapped( 'I08Z', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func016Func025C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08Y') )
call UnitAddItemByIdSwapped( 'I08Z', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func016Func026C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02B') )
call UnitAddItemByIdSwapped( 'I097', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func016Func027C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I093') )
call UnitAddItemByIdSwapped( 'I097', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func016Func028C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I095') )
call UnitAddItemByIdSwapped( 'I097', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func016Func029C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02J') )
call UnitAddItemByIdSwapped( 'I09A', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func016Func030C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I098') )
call UnitAddItemByIdSwapped( 'I09A', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func016Func031C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I099') )
call UnitAddItemByIdSwapped( 'I09A', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func016Func032C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02R') )
call UnitAddItemByIdSwapped( 'I09D', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func016Func033C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I09B') )
call UnitAddItemByIdSwapped( 'I09D', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func016Func034C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I09C') )
call UnitAddItemByIdSwapped( 'I09D', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func016Func035C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02N') )
call UnitAddItemByIdSwapped( 'I09H', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func016Func036C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I09E') )
call UnitAddItemByIdSwapped( 'I09H', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func016Func037C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I09F') )
call UnitAddItemByIdSwapped( 'I09H', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func017C() ) then
if ( Trig_Unit_Uses_an_Item_Func017Func002C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02Z') )
call UnitAddItemByIdSwapped( 'I07L', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func017Func003C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07K') )
call UnitAddItemByIdSwapped( 'I07L', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func017Func004C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07M') )
call UnitAddItemByIdSwapped( 'I07L', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func017Func005C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02V') )
call UnitAddItemByIdSwapped( 'I083', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func017Func006C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I081') )
call UnitAddItemByIdSwapped( 'I083', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func017Func007C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I084') )
call UnitAddItemByIdSwapped( 'I083', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func017Func008C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I03B') )
call UnitAddItemByIdSwapped( 'I07S', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func017Func009C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07R') )
call UnitAddItemByIdSwapped( 'I07S', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func017Func010C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I07T') )
call UnitAddItemByIdSwapped( 'I07S', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func017Func011C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I027') )
call UnitAddItemByIdSwapped( 'I086', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func017Func012C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I085') )
call UnitAddItemByIdSwapped( 'I086', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func017Func013C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I087') )
call UnitAddItemByIdSwapped( 'I086', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func017Func014C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I023') )
call UnitAddItemByIdSwapped( 'I08N', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func017Func015C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08M') )
call UnitAddItemByIdSwapped( 'I08N', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func017Func016C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08O') )
call UnitAddItemByIdSwapped( 'I08N', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func017Func017C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I037') )
call UnitAddItemByIdSwapped( 'I08R', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func017Func018C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08P') )
call UnitAddItemByIdSwapped( 'I08R', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func017Func019C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08T') )
call UnitAddItemByIdSwapped( 'I08R', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func017Func020C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02F') )
call UnitAddItemByIdSwapped( 'I08V', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func017Func021C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08U') )
call UnitAddItemByIdSwapped( 'I08V', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func017Func022C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08W') )
call UnitAddItemByIdSwapped( 'I08V', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func017Func023C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I033') )
call UnitAddItemByIdSwapped( 'I08Y', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func017Func024C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08X') )
call UnitAddItemByIdSwapped( 'I08Y', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func017Func025C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I08Z') )
call UnitAddItemByIdSwapped( 'I08Y', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func017Func026C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02B') )
call UnitAddItemByIdSwapped( 'I095', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func017Func027C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I093') )
call UnitAddItemByIdSwapped( 'I095', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func017Func028C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I097') )
call UnitAddItemByIdSwapped( 'I095', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func017Func029C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02J') )
call UnitAddItemByIdSwapped( 'I099', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func017Func030C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I098') )
call UnitAddItemByIdSwapped( 'I099', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func017Func031C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I09A') )
call UnitAddItemByIdSwapped( 'I099', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func017Func032C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02R') )
call UnitAddItemByIdSwapped( 'I09C', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func017Func033C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I09B') )
call UnitAddItemByIdSwapped( 'I09C', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func017Func034C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I09D') )
call UnitAddItemByIdSwapped( 'I09C', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func017Func035C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02N') )
call UnitAddItemByIdSwapped( 'I09F', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func017Func036C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I09E') )
call UnitAddItemByIdSwapped( 'I09F', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
if ( Trig_Unit_Uses_an_Item_Func017Func037C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I09H') )
call UnitAddItemByIdSwapped( 'I09F', GetManipulatingUnit() )
set udg_Has_Armor_Set[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
call DoNothing( )
endif
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Unit_Uses_an_Item takes nothing returns nothing
set gg_trg_Unit_Uses_an_Item = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Unit_Uses_an_Item, EVENT_PLAYER_UNIT_USE_ITEM )
call TriggerAddCondition( gg_trg_Unit_Uses_an_Item, Condition( function Trig_Unit_Uses_an_Item_Conditions ) )
call TriggerAddAction( gg_trg_Unit_Uses_an_Item, function Trig_Unit_Uses_an_Item_Actions )
endfunction
function Trig_Agility_Conditions takes nothing returns boolean
if ( not ( GetResearched() == 'R00I' ) ) then
return false
endif
return true
endfunction
function Trig_Agility_Actions takes nothing returns nothing
call ModifyHeroStat( bj_HEROSTAT_AGI, GetResearchingUnit(), bj_MODIFYMETHOD_ADD, 1 )
endfunction
//===========================================================================
function InitTrig_Agility takes nothing returns nothing
set gg_trg_Agility = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Agility, EVENT_PLAYER_UNIT_UPGRADE_FINISH )
call TriggerAddCondition( gg_trg_Agility, Condition( function Trig_Agility_Conditions ) )
call TriggerAddAction( gg_trg_Agility, function Trig_Agility_Actions )
endfunction
function Trig_Strength_Conditions takes nothing returns boolean
if ( not ( GetResearched() == 'R00G' ) ) then
return false
endif
return true
endfunction
function Trig_Strength_Actions takes nothing returns nothing
call ModifyHeroStat( bj_HEROSTAT_STR, GetResearchingUnit(), bj_MODIFYMETHOD_ADD, 1 )
endfunction
//===========================================================================
function InitTrig_Strength takes nothing returns nothing
set gg_trg_Strength = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Strength, EVENT_PLAYER_UNIT_UPGRADE_FINISH )
call TriggerAddCondition( gg_trg_Strength, Condition( function Trig_Strength_Conditions ) )
call TriggerAddAction( gg_trg_Strength, function Trig_Strength_Actions )
endfunction
function Trig_Intellect_Conditions takes nothing returns boolean
if ( not ( GetResearched() == 'R00H' ) ) then
return false
endif
return true
endfunction
function Trig_Intellect_Actions takes nothing returns nothing
call ModifyHeroStat( bj_HEROSTAT_INT, GetResearchingUnit(), bj_MODIFYMETHOD_ADD, 1 )
endfunction
//===========================================================================
function InitTrig_Intellect takes nothing returns nothing
set gg_trg_Intellect = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Intellect, EVENT_PLAYER_UNIT_UPGRADE_FINISH )
call TriggerAddCondition( gg_trg_Intellect, Condition( function Trig_Intellect_Conditions ) )
call TriggerAddAction( gg_trg_Intellect, function Trig_Intellect_Actions )
endfunction
function Trig_Death_Coil_Holy_Light_Conditions takes nothing returns boolean
if ( not GetBooleanOr( AbilityIsDeathCoil(), AbilityIsHolyLight() ) ) then
return false
endif
return true
endfunction
function Trig_Death_Coil_Holy_Light_Actions takes nothing returns nothing
if ( DeathCoilHolyLightLevel1() ) then
if ( DeathCoilHolyLightTargetIsEnemy() ) then
call UnitDamageTargetBJ( GetSpellAbilityUnit(), GetSpellTargetUnit(), 100.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
else
call SetUnitLifeBJ( GetSpellTargetUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellTargetUnit()) + 200.00 ) )
endif
else
endif
if ( DeathCoilHolyLightLevel2() ) then
if ( DeathCoilHolyLightTargetIsEnemy() ) then
call UnitDamageTargetBJ( GetSpellAbilityUnit(), GetSpellTargetUnit(), 200.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
else
call SetUnitLifeBJ( GetSpellTargetUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellTargetUnit()) + 400.00 ) )
endif
else
endif
if ( DeathCoilHolyLightLevel3() ) then
if ( DeathCoilHolyLightTargetIsEnemy() ) then
call UnitDamageTargetBJ( GetSpellAbilityUnit(), GetSpellTargetUnit(), 300.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
else
call SetUnitLifeBJ( GetSpellTargetUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellTargetUnit()) + 600.00 ) )
endif
else
endif
if ( DeathCoilHolyLightLevel4() ) then
if ( DeathCoilHolyLightTargetIsEnemy() ) then
call UnitDamageTargetBJ( GetSpellAbilityUnit(), GetSpellTargetUnit(), 400.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
else
call SetUnitLifeBJ( GetSpellTargetUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellTargetUnit()) + 800.00 ) )
endif
else
endif
if ( DeathCoilHolyLightLevel5() ) then
if ( DeathCoilHolyLightTargetIsEnemy() ) then
call UnitDamageTargetBJ( GetSpellAbilityUnit(), GetSpellTargetUnit(), 500, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
else
call SetUnitLifeBJ( GetSpellTargetUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellTargetUnit()) + 1000.00 ) )
endif
else
endif
if ( DeathCoilHolyLightLevel6() ) then
if ( DeathCoilHolyLightTargetIsEnemy() ) then
call UnitDamageTargetBJ( GetSpellAbilityUnit(), GetSpellTargetUnit(), 600.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
else
call SetUnitLifeBJ( GetSpellTargetUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellTargetUnit()) + 1200.00 ) )
endif
else
endif
if ( DeathCoilHolyLightLevel7() ) then
if ( DeathCoilHolyLightTargetIsEnemy() ) then
call UnitDamageTargetBJ( GetSpellAbilityUnit(), GetSpellTargetUnit(), 700.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
else
call SetUnitLifeBJ( GetSpellTargetUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellTargetUnit()) + 1400.00 ) )
endif
else
endif
if ( DeathCoilHolyLightLevel8() ) then
if ( DeathCoilHolyLightTargetIsEnemy() ) then
call UnitDamageTargetBJ( GetSpellAbilityUnit(), GetSpellTargetUnit(), 800.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
else
call SetUnitLifeBJ( GetSpellTargetUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellTargetUnit()) + 1600.00 ) )
endif
else
endif
if ( DeathCoilHolyLightLevel9() ) then
if ( DeathCoilHolyLightTargetIsEnemy() ) then
call UnitDamageTargetBJ( GetSpellAbilityUnit(), GetSpellTargetUnit(), 900.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
else
call SetUnitLifeBJ( GetSpellTargetUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellTargetUnit()) + 1800.00 ) )
endif
else
endif
if ( DeathCoilHolyLightLevel10() ) then
if ( DeathCoilHolyLightTargetIsEnemy() ) then
call UnitDamageTargetBJ( GetSpellAbilityUnit(), GetSpellTargetUnit(), 1000.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
else
call SetUnitLifeBJ( GetSpellTargetUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellTargetUnit()) + 2000.00 ) )
endif
else
endif
endfunction
//===========================================================================
function InitTrig_Death_Coil_Holy_Light takes nothing returns nothing
set gg_trg_Death_Coil_Holy_Light = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Death_Coil_Holy_Light, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Death_Coil_Holy_Light, Condition( function Trig_Death_Coil_Holy_Light_Conditions ) )
call TriggerAddAction( gg_trg_Death_Coil_Holy_Light, function Trig_Death_Coil_Holy_Light_Actions )
endfunction
function Trig_Bloodletting_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0L3' ) ) then
return false
endif
return true
endfunction
function Trig_Bloodletting_Actions takes nothing returns nothing
local unit caster
local real health
set caster = GetSpellAbilityUnit()
set health = ( GetUnitStateSwap(UNIT_STATE_LIFE, caster) * 0.30 )
call SetUnitLifeBJ( caster, ( GetUnitStateSwap(UNIT_STATE_LIFE, caster) - health ) )
call TriggerSleepAction( 20.00 )
call SetUnitLifeBJ( caster, ( GetUnitStateSwap(UNIT_STATE_LIFE, caster) + health ) )
endfunction
//===========================================================================
function InitTrig_Bloodletting takes nothing returns nothing
set gg_trg_Bloodletting = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Bloodletting, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Bloodletting, Condition( function Trig_Bloodletting_Conditions ) )
call TriggerAddAction( gg_trg_Bloodletting, function Trig_Bloodletting_Actions )
endfunction
function TransfusionLvl1 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0L1', GetSpellAbilityUnit()) == 1 )
endfunction
function TransfusionLvl2 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0L1', GetSpellAbilityUnit()) == 2 )
endfunction
function TransfusionLvl3 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0L1', GetSpellAbilityUnit()) == 3 )
endfunction
function TransfusionLvl4 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0L1', GetSpellAbilityUnit()) == 4 )
endfunction
function TransfusionLvl5 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0L1', GetSpellAbilityUnit()) == 5 )
endfunction
function TransfusionLvl6 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0L1', GetSpellAbilityUnit()) == 6 )
endfunction
function TransfusionLvl7 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0L1', GetSpellAbilityUnit()) == 7 )
endfunction
function TransfusionLvl8 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0L1', GetSpellAbilityUnit()) == 8 )
endfunction
function TransfusionLvl9 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0L1', GetSpellAbilityUnit()) == 9 )
endfunction
function TransfusionLvl10 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0L1', GetSpellAbilityUnit()) == 10 )
endfunction
function Trig_Transfusion_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0L1' ) ) then
return false
endif
return true
endfunction
function Trig_Transfusion_Actions takes nothing returns nothing
local real damage
local real percentage
if ( TransfusionLvl1() ) then
set percentage = 0.05
else
endif
if ( TransfusionLvl2() ) then
set percentage = 0.06
else
endif
if ( TransfusionLvl3() ) then
set percentage = 0.08
else
endif
if ( TransfusionLvl4() ) then
set percentage = 0.10
else
endif
if ( TransfusionLvl5() ) then
set percentage = 0.12
else
endif
if ( TransfusionLvl6() ) then
set percentage = 0.15
else
endif
if ( TransfusionLvl7() ) then
set percentage = 0.19
else
endif
if ( TransfusionLvl8() ) then
set percentage = 0.24
else
endif
if ( TransfusionLvl9() ) then
set percentage = 0.30
else
endif
if ( TransfusionLvl10() ) then
set percentage = 0.37
else
endif
set damage = ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellTargetUnit()) * percentage )
call SetUnitLifeBJ( GetSpellAbilityUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellAbilityUnit()) + damage ) )
call UnitDamageTargetBJ( GetSpellAbilityUnit(), GetSpellTargetUnit(), damage, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
endfunction
//===========================================================================
function InitTrig_Transfusion takes nothing returns nothing
set gg_trg_Transfusion = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Transfusion, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Transfusion, Condition( function Trig_Transfusion_Conditions ) )
call TriggerAddAction( gg_trg_Transfusion, function Trig_Transfusion_Actions )
endfunction
function BloodfireLvl1 takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A0L4', GetSpellAbilityUnit()) == 1 ) ) then
return false
endif
return true
endfunction
function BloodfireLvl2 takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A0L4', GetSpellAbilityUnit()) == 2 ) ) then
return false
endif
return true
endfunction
function BloodfireLvl3 takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A0L4', GetSpellAbilityUnit()) == 3 ) ) then
return false
endif
return true
endfunction
function BloodfireLvl4 takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A0L4', GetSpellAbilityUnit()) == 4 ) ) then
return false
endif
return true
endfunction
function BloodfireLvl5 takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A0L4', GetSpellAbilityUnit()) == 5 ) ) then
return false
endif
return true
endfunction
function BloodfireLvl6 takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A0L4', GetSpellAbilityUnit()) == 6 ) ) then
return false
endif
return true
endfunction
function BloodfireLvl7 takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A0L4', GetSpellAbilityUnit()) == 7 ) ) then
return false
endif
return true
endfunction
function BloodfireLvl8 takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A0L4', GetSpellAbilityUnit()) == 8 ) ) then
return false
endif
return true
endfunction
function BloodfireLvl9 takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A0L4', GetSpellAbilityUnit()) == 9 ) ) then
return false
endif
return true
endfunction
function BloodfireLvl10 takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A0L4', GetSpellAbilityUnit()) == 10 ) ) then
return false
endif
return true
endfunction
function BloodfireTargetUntaintedConditions takes nothing returns boolean
if ( not ( UnitHasBuffBJ(GetSpellTargetUnit(), 'B00U') == false ) ) then
return false
endif
if ( not ( UnitHasBuffBJ(GetSpellTargetUnit(), 'B00V') == false ) ) then
return false
endif
if ( not ( UnitHasBuffBJ(GetSpellTargetUnit(), 'B00W') == false ) ) then
return false
endif
if ( not ( UnitHasBuffBJ(GetSpellTargetUnit(), 'B00N') == false ) ) then
return false
endif
if ( not ( UnitHasBuffBJ(GetSpellTargetUnit(), 'B00X') == false ) ) then
return false
endif
if ( not ( UnitHasBuffBJ(GetSpellTargetUnit(), 'B00M') == false ) ) then
return false
endif
if ( not ( UnitHasBuffBJ(GetSpellTargetUnit(), 'B000') == false ) ) then
return false
endif
if ( not ( UnitHasBuffBJ(GetSpellTargetUnit(), 'B00J') == false ) ) then
return false
endif
if ( not ( UnitHasBuffBJ(GetSpellTargetUnit(), 'B00K') == false ) ) then
return false
endif
if ( not ( UnitHasBuffBJ(GetSpellTargetUnit(), 'B00L') == false ) ) then
return false
endif
return true
endfunction
function BloodfireTargetUntainted takes nothing returns boolean
if ( not BloodfireTargetUntaintedConditions() ) then
return false
endif
return true
endfunction
function BloodfireTargetHasTaint1Conditions takes nothing returns boolean
if ( not ( UnitHasBuffBJ(GetSpellTargetUnit(), 'B00U') == true ) ) then
return false
endif
return true
endfunction
function BloodfireTargetHasTaint1 takes nothing returns boolean
if ( not BloodfireTargetHasTaint1Conditions() ) then
return false
endif
return true
endfunction
function BloodfireTargetHasTaint2Conditions takes nothing returns boolean
if ( not ( UnitHasBuffBJ(GetSpellTargetUnit(), 'B00V') == true ) ) then
return false
endif
return true
endfunction
function BloodfireTargetHasTaint2 takes nothing returns boolean
if ( not BloodfireTargetHasTaint2Conditions() ) then
return false
endif
return true
endfunction
function BloodfireTargetHasTaint3Conditions takes nothing returns boolean
if ( not ( UnitHasBuffBJ(GetSpellTargetUnit(), 'B00W') == true ) ) then
return false
endif
return true
endfunction
function BloodfireTargetHasTaint3 takes nothing returns boolean
if ( not BloodfireTargetHasTaint3Conditions() ) then
return false
endif
return true
endfunction
function BloodfireTargetHasTaint4Conditions takes nothing returns boolean
if ( not ( UnitHasBuffBJ(GetSpellTargetUnit(), 'B00N') == true ) ) then
return false
endif
return true
endfunction
function BloodfireTargetHasTaint4 takes nothing returns boolean
if ( not BloodfireTargetHasTaint4Conditions() ) then
return false
endif
return true
endfunction
function BloodfireTargetHasTaint5Conditions takes nothing returns boolean
if ( not ( UnitHasBuffBJ(GetSpellTargetUnit(), 'B00X') == true ) ) then
return false
endif
return true
endfunction
function BloodfireTargetHasTaint5 takes nothing returns boolean
if ( not BloodfireTargetHasTaint5Conditions() ) then
return false
endif
return true
endfunction
function BloodfireTargetHasTaint6Conditions takes nothing returns boolean
if ( not ( UnitHasBuffBJ(GetSpellTargetUnit(), 'B00M') == true ) ) then
return false
endif
return true
endfunction
function BloodfireTargetHasTaint6 takes nothing returns boolean
if ( not BloodfireTargetHasTaint6Conditions() ) then
return false
endif
return true
endfunction
function BloodfireTargetHasTaint7Conditions takes nothing returns boolean
if ( not ( UnitHasBuffBJ(GetSpellTargetUnit(), 'B000') == true ) ) then
return false
endif
return true
endfunction
function BloodfireTargetHasTaint7 takes nothing returns boolean
if ( not BloodfireTargetHasTaint7Conditions() ) then
return false
endif
return true
endfunction
function BloodfireTargetHasTaint8Conditions takes nothing returns boolean
if ( not ( UnitHasBuffBJ(GetSpellTargetUnit(), 'B00J') == true ) ) then
return false
endif
return true
endfunction
function BloodfireTargetHasTaint8 takes nothing returns boolean
if ( not BloodfireTargetHasTaint8Conditions() ) then
return false
endif
return true
endfunction
function BloodfireTargetHasTaint9Conditions takes nothing returns boolean
if ( not ( UnitHasBuffBJ(GetSpellTargetUnit(), 'B00K') == true ) ) then
return false
endif
return true
endfunction
function BloodfireTargetHasTaint9 takes nothing returns boolean
if ( not BloodfireTargetHasTaint9Conditions() ) then
return false
endif
return true
endfunction
function BloodfireTargetHasTaint10Conditions takes nothing returns boolean
if ( not ( UnitHasBuffBJ(GetSpellTargetUnit(), 'B00L') == true ) ) then
return false
endif
return true
endfunction
function BloodfireTargetHasTaint10 takes nothing returns boolean
if ( not BloodfireTargetHasTaint10Conditions() ) then
return false
endif
return true
endfunction
function Trig_Bloodfire_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0L4' ) ) then
return false
endif
return true
endfunction
function Trig_Bloodfire_Actions takes nothing returns nothing
local unit caster
local unit target
local real damage
local real heal
set caster = GetSpellAbilityUnit()
set target = GetSpellTargetUnit()
if ( BloodfireLvl1() ) then
set damage = 40.00
set heal = 0.05
else
endif
if ( BloodfireLvl2() ) then
set damage = 50.00
set heal = 0.06
else
endif
if ( BloodfireLvl3() ) then
set damage = 62.00
set heal = 0.07
else
endif
if ( BloodfireLvl4() ) then
set damage = 78.00
set heal = 0.08
else
endif
if ( BloodfireLvl5() ) then
set damage = 97.00
set heal = 0.09
else
endif
if ( BloodfireLvl6() ) then
set damage = 122.00
set heal = 0.10
else
endif
if ( BloodfireLvl7() ) then
set damage = 152.00
set heal = 0.11
else
endif
if ( BloodfireLvl8() ) then
set damage = 190.00
set heal = 0.12
else
endif
if ( BloodfireLvl9() ) then
set damage = 238.00
set heal = 0.13
else
endif
if ( BloodfireLvl10() ) then
set damage = 298.00
set heal = 0.14
else
endif
if ( BloodfireTargetUntainted() ) then
call UnitDamageTargetBJ( caster, target, damage, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
endif
if ( BloodfireTargetHasTaint1() ) then
call UnitDamageTargetBJ( caster, target, ( damage * 1.10 ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
endif
if ( BloodfireTargetHasTaint2() ) then
call UnitDamageTargetBJ( caster, target, ( damage * 1.20 ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
endif
if ( BloodfireTargetHasTaint3() ) then
call UnitDamageTargetBJ( caster, target, ( damage * 1.30 ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
endif
if ( BloodfireTargetHasTaint4() ) then
call UnitDamageTargetBJ( caster, target, ( damage * 1.40 ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
endif
if ( BloodfireTargetHasTaint5() ) then
call UnitDamageTargetBJ( caster, target, ( damage * 1.50 ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
endif
if ( BloodfireTargetHasTaint6() ) then
call UnitDamageTargetBJ( caster, target, ( damage * 1.60 ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
endif
if ( BloodfireTargetHasTaint7() ) then
call UnitDamageTargetBJ( caster, target, ( damage * 1.70 ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
endif
if ( BloodfireTargetHasTaint8() ) then
call UnitDamageTargetBJ( caster, target, ( damage * 1.80 ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
endif
if ( BloodfireTargetHasTaint9() ) then
call UnitDamageTargetBJ( caster, target, ( damage * 1.90 ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
endif
if ( BloodfireTargetHasTaint10() ) then
call UnitDamageTargetBJ( caster, target, ( damage * 2.00 ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
endif
call SetUnitLifeBJ( caster, ( GetUnitStateSwap(UNIT_STATE_LIFE, caster) + ( GetUnitStateSwap(UNIT_STATE_LIFE, target) * heal ) ) )
endfunction
//===========================================================================
function InitTrig_Bloodfire takes nothing returns nothing
set gg_trg_Bloodfire = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Bloodfire, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Bloodfire, Condition( function Trig_Bloodfire_Conditions ) )
call TriggerAddAction( gg_trg_Bloodfire, function Trig_Bloodfire_Actions )
endfunction
function Trig_Blade_Beam_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00U' ) ) then
return false
endif
return true
endfunction
function Trig_Blade_Beam_Actions takes nothing returns nothing
call CreateNUnitsAtLocFacingLocBJ( 1, 'u00E', GetOwningPlayer(GetSpellAbilityUnit()), GetUnitLoc(GetSpellAbilityUnit()), GetUnitLoc(GetSpellTargetUnit()) )
call IssueTargetOrderBJ( GetLastCreatedUnit(), "curse", GetSpellTargetUnit() )
call UnitApplyTimedLifeBJ( 2.00, 'BTLF', GetLastCreatedUnit() )
endfunction
//===========================================================================
function InitTrig_Blade_Beam takes nothing returns nothing
set gg_trg_Blade_Beam = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Blade_Beam, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Blade_Beam, Condition( function Trig_Blade_Beam_Conditions ) )
call TriggerAddAction( gg_trg_Blade_Beam, function Trig_Blade_Beam_Actions )
endfunction
function Trig_Bladedance_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A06S' ) ) then
return false
endif
return true
endfunction
function Trig_Bladedance_Func001001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A06S', GetSpellAbilityUnit()) == 1 )
endfunction
function Trig_Bladedance_Func002001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A06S', GetSpellAbilityUnit()) == 2 )
endfunction
function Trig_Bladedance_Func003001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A06S', GetSpellAbilityUnit()) == 3 )
endfunction
function Trig_Bladedance_Func004001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A06S', GetSpellAbilityUnit()) == 4 )
endfunction
function Trig_Bladedance_Func005001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A06S', GetSpellAbilityUnit()) == 5 )
endfunction
function Trig_Bladedance_Func006001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A06S', GetSpellAbilityUnit()) == 6 )
endfunction
function Trig_Bladedance_Func007001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A06S', GetSpellAbilityUnit()) == 7 )
endfunction
function Trig_Bladedance_Func008001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A06S', GetSpellAbilityUnit()) == 8 )
endfunction
function Trig_Bladedance_Func009001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A06S', GetSpellAbilityUnit()) == 9 )
endfunction
function Trig_Bladedance_Func010001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A06S', GetSpellAbilityUnit()) == 10 )
endfunction
function Trig_Bladedance_Func023C takes nothing returns boolean
if ( not ( IsUnitAliveBJ(udg_BladeDanceTarget) == true ) ) then
return false
endif
if ( not ( udg_BladeDanceHitAmount != 0 ) ) then
return false
endif
return true
endfunction
function Trig_Bladedance_Func024C takes nothing returns boolean
if ( not ( IsUnitAliveBJ(udg_BladeDanceTarget) == true ) ) then
return false
endif
if ( not ( udg_BladeDanceHitAmount != 0 ) ) then
return false
endif
return true
endfunction
function Trig_Bladedance_Func025C takes nothing returns boolean
if ( not ( IsUnitAliveBJ(udg_BladeDanceTarget) == true ) ) then
return false
endif
if ( not ( udg_BladeDanceHitAmount != 0 ) ) then
return false
endif
return true
endfunction
function Trig_Bladedance_Func026C takes nothing returns boolean
if ( not ( IsUnitAliveBJ(udg_BladeDanceTarget) == true ) ) then
return false
endif
if ( not ( udg_BladeDanceHitAmount != 0 ) ) then
return false
endif
return true
endfunction
function Trig_Bladedance_Actions takes nothing returns nothing
if ( Trig_Bladedance_Func001001() ) then
set udg_BladeDanceDamageAmount = 15.00
else
call DoNothing( )
endif
if ( Trig_Bladedance_Func002001() ) then
set udg_BladeDanceDamageAmount = 18.75
else
call DoNothing( )
endif
if ( Trig_Bladedance_Func003001() ) then
set udg_BladeDanceDamageAmount = 23.44
else
call DoNothing( )
endif
if ( Trig_Bladedance_Func004001() ) then
set udg_BladeDanceDamageAmount = 29.30
else
call DoNothing( )
endif
if ( Trig_Bladedance_Func005001() ) then
set udg_BladeDanceDamageAmount = 36.62
else
call DoNothing( )
endif
if ( Trig_Bladedance_Func006001() ) then
set udg_BladeDanceDamageAmount = 45.78
else
call DoNothing( )
endif
if ( Trig_Bladedance_Func007001() ) then
set udg_BladeDanceDamageAmount = 57.22
else
call DoNothing( )
endif
if ( Trig_Bladedance_Func008001() ) then
set udg_BladeDanceDamageAmount = 71.53
else
call DoNothing( )
endif
if ( Trig_Bladedance_Func009001() ) then
set udg_BladeDanceDamageAmount = 89.41
else
call DoNothing( )
endif
if ( Trig_Bladedance_Func010001() ) then
set udg_BladeDanceDamageAmount = 111.76
else
call DoNothing( )
endif
set udg_BladeDanceHitAmount = 5
set udg_BladeDanceDegrees = 0
set udg_BladeDanceTarget = GetSpellTargetUnit()
call AddSpecialEffectTargetUnitBJ( "weapon", GetSpellAbilityUnit(), "Abilities\\Weapons\\PhoenixMissile\\Phoenix_Missile_mini.mdl" )
set udg_BladeDanceEffect = GetLastCreatedEffectBJ()
call SetUnitVertexColorBJ( GetSpellAbilityUnit(), 100, 100, 100, 50.00 )
call SetUnitTimeScalePercent( GetSpellAbilityUnit(), 300.00 )
call SetUnitPathing( GetSpellAbilityUnit(), false )
call SetUnitPositionLoc( GetSpellAbilityUnit(), PolarProjectionBJ(GetUnitLoc(udg_BladeDanceTarget), 50.00, 72.00) )
call SetUnitFacingToFaceUnitTimed( GetSpellAbilityUnit(), udg_BladeDanceTarget, 0 )
call SetUnitAnimation( GetSpellAbilityUnit(), "attack slam" )
call UnitDamageTargetBJ( GetSpellAbilityUnit(), udg_BladeDanceTarget, udg_BladeDanceDamageAmount, ATTACK_TYPE_HERO, DAMAGE_TYPE_NORMAL )
if ( Trig_Bladedance_Func023C() ) then
set udg_BladeDanceHitAmount = ( udg_BladeDanceHitAmount - 1 )
call TriggerSleepAction( 0.30 )
set udg_BladeDanceDegrees = ( udg_BladeDanceDegrees + 72 )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_BladeDanceTarget), "Abilities\\Spells\\Demon\\DemonBoltImpact\\DemonBoltImpact.mdl" )
call SetUnitPositionLoc( GetSpellAbilityUnit(), PolarProjectionBJ(GetUnitLoc(udg_BladeDanceTarget), 75.00, I2R(udg_BladeDanceDegrees)) )
call SetUnitFacingToFaceUnitTimed( GetSpellAbilityUnit(), udg_BladeDanceTarget, 0 )
call SetUnitAnimation( GetSpellAbilityUnit(), "attack slam" )
call UnitDamageTargetBJ( GetSpellAbilityUnit(), udg_BladeDanceTarget, udg_BladeDanceDamageAmount, ATTACK_TYPE_HERO, DAMAGE_TYPE_NORMAL )
else
endif
if ( Trig_Bladedance_Func024C() ) then
set udg_BladeDanceHitAmount = ( udg_BladeDanceHitAmount - 1 )
call TriggerSleepAction( 0.30 )
set udg_BladeDanceDegrees = ( udg_BladeDanceDegrees + 72 )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_BladeDanceTarget), "Abilities\\Spells\\Demon\\DemonBoltImpact\\DemonBoltImpact.mdl" )
call SetUnitPositionLoc( GetSpellAbilityUnit(), PolarProjectionBJ(GetUnitLoc(udg_BladeDanceTarget), 75.00, I2R(udg_BladeDanceDegrees)) )
call SetUnitFacingToFaceUnitTimed( GetSpellAbilityUnit(), udg_BladeDanceTarget, 0 )
call SetUnitAnimation( GetSpellAbilityUnit(), "attack slam" )
call UnitDamageTargetBJ( GetSpellAbilityUnit(), udg_BladeDanceTarget, udg_BladeDanceDamageAmount, ATTACK_TYPE_HERO, DAMAGE_TYPE_NORMAL )
else
endif
if ( Trig_Bladedance_Func025C() ) then
set udg_BladeDanceHitAmount = ( udg_BladeDanceHitAmount - 1 )
call TriggerSleepAction( 0.30 )
set udg_BladeDanceDegrees = ( udg_BladeDanceDegrees + 72 )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_BladeDanceTarget), "Abilities\\Spells\\Demon\\DemonBoltImpact\\DemonBoltImpact.mdl" )
call SetUnitPositionLoc( GetSpellAbilityUnit(), PolarProjectionBJ(GetUnitLoc(udg_BladeDanceTarget), 75.00, I2R(udg_BladeDanceDegrees)) )
call SetUnitFacingToFaceUnitTimed( GetSpellAbilityUnit(), udg_BladeDanceTarget, 0 )
call SetUnitAnimation( GetSpellAbilityUnit(), "attack slam" )
call UnitDamageTargetBJ( GetSpellAbilityUnit(), udg_BladeDanceTarget, udg_BladeDanceDamageAmount, ATTACK_TYPE_HERO, DAMAGE_TYPE_NORMAL )
else
endif
if ( Trig_Bladedance_Func026C() ) then
set udg_BladeDanceHitAmount = ( udg_BladeDanceHitAmount - 1 )
call TriggerSleepAction( 0.30 )
set udg_BladeDanceDegrees = ( udg_BladeDanceDegrees + 72 )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_BladeDanceTarget), "Abilities\\Spells\\Demon\\DemonBoltImpact\\DemonBoltImpact.mdl" )
call SetUnitPositionLoc( GetSpellAbilityUnit(), PolarProjectionBJ(GetUnitLoc(udg_BladeDanceTarget), 75.00, I2R(udg_BladeDanceDegrees)) )
call SetUnitFacingToFaceUnitTimed( GetSpellAbilityUnit(), udg_BladeDanceTarget, 0 )
call SetUnitAnimation( GetSpellAbilityUnit(), "attack slam" )
call UnitDamageTargetBJ( GetSpellAbilityUnit(), udg_BladeDanceTarget, udg_BladeDanceDamageAmount, ATTACK_TYPE_HERO, DAMAGE_TYPE_NORMAL )
else
endif
call TriggerSleepAction( 0.10 )
call SetUnitVertexColorBJ( GetSpellAbilityUnit(), 100, 100, 100, 0.00 )
call SetUnitTimeScalePercent( GetSpellAbilityUnit(), 100.00 )
call SetUnitPathing( GetSpellAbilityUnit(), true )
call DestroyEffectBJ( udg_BladeDanceEffect )
endfunction
//===========================================================================
function InitTrig_Bladedance takes nothing returns nothing
set gg_trg_Bladedance = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Bladedance, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Bladedance, Condition( function Trig_Bladedance_Conditions ) )
call TriggerAddAction( gg_trg_Bladedance, function Trig_Bladedance_Actions )
endfunction
function Trig_Telekinesis_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetSummonedUnit()) == 'e005' ) ) then
return false
endif
return true
endfunction
function Trig_Telekinesis_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ( "origin", GetSummoningUnit(), "Abilities\\Spells\\NightElf\\ManaBurn\\ManaBurnTarget.mdl" )
call AddSpecialEffectTargetUnitBJ( "chest", GetSummoningUnit(), "Abilities\\Spells\\Other\\Drain\\DrainCaster.mdl" )
set udg_TeleEffect = GetLastCreatedEffectBJ()
call UnitAddAbilityBJ( 'A052', GetSummoningUnit() )
call SetUnitAbilityLevelSwapped( 'A052', GetSummoningUnit(), GetUnitAbilityLevelSwapped('A00Z', GetSummoningUnit()) )
call TriggerSleepAction( 10.00 )
call DestroyEffectBJ( udg_TeleEffect )
call UnitRemoveAbilityBJ( 'A052', GetSummoningUnit() )
endfunction
//===========================================================================
function InitTrig_Telekinesis takes nothing returns nothing
set gg_trg_Telekinesis = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Telekinesis, EVENT_PLAYER_UNIT_SUMMON )
call TriggerAddCondition( gg_trg_Telekinesis, Condition( function Trig_Telekinesis_Conditions ) )
call TriggerAddAction( gg_trg_Telekinesis, function Trig_Telekinesis_Actions )
endfunction
function Trig_Swift_Attack_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00Y' ) ) then
return false
endif
return true
endfunction
function Trig_Swift_Attack_Func002C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A00Y', GetSpellAbilityUnit()) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Swift_Attack_Func003C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A00Y', GetSpellAbilityUnit()) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Swift_Attack_Func004C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A00Y', GetSpellAbilityUnit()) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Swift_Attack_Func005C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A00Y', GetSpellAbilityUnit()) == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Swift_Attack_Func006C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A00Y', GetSpellAbilityUnit()) == 5 ) ) then
return false
endif
return true
endfunction
function Trig_Swift_Attack_Func007C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A00Y', GetSpellAbilityUnit()) == 6 ) ) then
return false
endif
return true
endfunction
function Trig_Swift_Attack_Func008C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A00Y', GetSpellAbilityUnit()) == 7 ) ) then
return false
endif
return true
endfunction
function Trig_Swift_Attack_Func009C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A00Y', GetSpellAbilityUnit()) == 8 ) ) then
return false
endif
return true
endfunction
function Trig_Swift_Attack_Func010C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A00Y', GetSpellAbilityUnit()) == 9 ) ) then
return false
endif
return true
endfunction
function Trig_Swift_Attack_Func011C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A00Y', GetSpellAbilityUnit()) == 10 ) ) then
return false
endif
return true
endfunction
function Trig_Swift_Attack_Func027001002003001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(GetSpellAbilityUnit())) == true )
endfunction
function Trig_Swift_Attack_Func027001002003002001 takes nothing returns boolean
return ( IsUnitAliveBJ(GetFilterUnit()) == true )
endfunction
function Trig_Swift_Attack_Func027001002003002002 takes nothing returns boolean
return ( GetFilterUnit() != udg_SwiftAttackAttackedUnit )
endfunction
function Trig_Swift_Attack_Func027001002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Swift_Attack_Func027001002003002001(), Trig_Swift_Attack_Func027001002003002002() )
endfunction
function Trig_Swift_Attack_Func027001002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Swift_Attack_Func027001002003001(), Trig_Swift_Attack_Func027001002003002() )
endfunction
function Trig_Swift_Attack_Func027A takes nothing returns nothing
set udg_SwiftAttackAttackedUnit = GetEnumUnit()
call SetUnitPositionLocFacingLocBJ( GetSpellAbilityUnit(), GetUnitLoc(udg_SwiftAttackAttackedUnit), GetUnitLoc(udg_SwiftAttackAttackedUnit) )
call SetUnitAnimation( GetSpellAbilityUnit(), "attack" )
call PlaySoundAtPointBJ( udg_SliceSound[GetRandomInt(1, 3)], 100, GetUnitLoc(udg_SwiftAttackAttackUnit), 0 )
call UnitDamageTargetBJ( GetSpellAbilityUnit(), udg_SwiftAttackAttackedUnit, udg_SwiftAttackDamage, ATTACK_TYPE_HERO, DAMAGE_TYPE_NORMAL )
endfunction
function Trig_Swift_Attack_Func029001002003001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(GetSpellAbilityUnit())) == true )
endfunction
function Trig_Swift_Attack_Func029001002003002001 takes nothing returns boolean
return ( IsUnitAliveBJ(GetFilterUnit()) == true )
endfunction
function Trig_Swift_Attack_Func029001002003002002 takes nothing returns boolean
return ( GetFilterUnit() != udg_SwiftAttackAttackedUnit )
endfunction
function Trig_Swift_Attack_Func029001002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Swift_Attack_Func029001002003002001(), Trig_Swift_Attack_Func029001002003002002() )
endfunction
function Trig_Swift_Attack_Func029001002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Swift_Attack_Func029001002003001(), Trig_Swift_Attack_Func029001002003002() )
endfunction
function Trig_Swift_Attack_Func029A takes nothing returns nothing
set udg_SwiftAttackAttackedUnit = GetEnumUnit()
call SetUnitPositionLocFacingLocBJ( GetSpellAbilityUnit(), GetUnitLoc(udg_SwiftAttackAttackedUnit), GetUnitLoc(udg_SwiftAttackAttackedUnit) )
call SetUnitAnimation( GetSpellAbilityUnit(), "attack" )
call PlaySoundAtPointBJ( udg_SliceSound[GetRandomInt(1, 3)], 100, GetUnitLoc(udg_SwiftAttackAttackUnit), 0 )
call UnitDamageTargetBJ( GetSpellAbilityUnit(), udg_SwiftAttackAttackedUnit, udg_SwiftAttackDamage, ATTACK_TYPE_HERO, DAMAGE_TYPE_NORMAL )
endfunction
function Trig_Swift_Attack_Func031001002003001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(GetSpellAbilityUnit())) == true )
endfunction
function Trig_Swift_Attack_Func031001002003002001 takes nothing returns boolean
return ( IsUnitAliveBJ(GetFilterUnit()) == true )
endfunction
function Trig_Swift_Attack_Func031001002003002002 takes nothing returns boolean
return ( GetFilterUnit() != udg_SwiftAttackAttackedUnit )
endfunction
function Trig_Swift_Attack_Func031001002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Swift_Attack_Func031001002003002001(), Trig_Swift_Attack_Func031001002003002002() )
endfunction
function Trig_Swift_Attack_Func031001002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Swift_Attack_Func031001002003001(), Trig_Swift_Attack_Func031001002003002() )
endfunction
function Trig_Swift_Attack_Func031A takes nothing returns nothing
set udg_SwiftAttackAttackedUnit = GetEnumUnit()
call SetUnitPositionLocFacingLocBJ( GetSpellAbilityUnit(), GetUnitLoc(udg_SwiftAttackAttackedUnit), GetUnitLoc(udg_SwiftAttackAttackedUnit) )
call SetUnitAnimation( GetSpellAbilityUnit(), "attack" )
call PlaySoundAtPointBJ( udg_SliceSound[GetRandomInt(1, 3)], 100, GetUnitLoc(udg_SwiftAttackAttackUnit), 0 )
call UnitDamageTargetBJ( GetSpellAbilityUnit(), udg_SwiftAttackAttackedUnit, udg_SwiftAttackDamage, ATTACK_TYPE_HERO, DAMAGE_TYPE_NORMAL )
endfunction
function Trig_Swift_Attack_Func033001002003001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(GetSpellAbilityUnit())) == true )
endfunction
function Trig_Swift_Attack_Func033001002003002001 takes nothing returns boolean
return ( IsUnitAliveBJ(GetFilterUnit()) == true )
endfunction
function Trig_Swift_Attack_Func033001002003002002 takes nothing returns boolean
return ( GetFilterUnit() != udg_SwiftAttackAttackedUnit )
endfunction
function Trig_Swift_Attack_Func033001002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Swift_Attack_Func033001002003002001(), Trig_Swift_Attack_Func033001002003002002() )
endfunction
function Trig_Swift_Attack_Func033001002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Swift_Attack_Func033001002003001(), Trig_Swift_Attack_Func033001002003002() )
endfunction
function Trig_Swift_Attack_Func033A takes nothing returns nothing
set udg_SwiftAttackAttackedUnit = GetEnumUnit()
call SetUnitPositionLocFacingLocBJ( GetSpellAbilityUnit(), GetUnitLoc(udg_SwiftAttackAttackedUnit), GetUnitLoc(udg_SwiftAttackAttackedUnit) )
call SetUnitAnimation( GetSpellAbilityUnit(), "attack" )
call PlaySoundAtPointBJ( udg_SliceSound[GetRandomInt(1, 3)], 100, GetUnitLoc(udg_SwiftAttackAttackUnit), 0 )
call UnitDamageTargetBJ( GetSpellAbilityUnit(), udg_SwiftAttackAttackedUnit, udg_SwiftAttackDamage, ATTACK_TYPE_HERO, DAMAGE_TYPE_NORMAL )
endfunction
function Trig_Swift_Attack_Actions takes nothing returns nothing
set udg_SwiftAttackAttackedUnit = GetSpellTargetUnit()
if ( Trig_Swift_Attack_Func002C() ) then
set udg_SwiftAttackDamage = 50.00
else
endif
if ( Trig_Swift_Attack_Func003C() ) then
set udg_SwiftAttackDamage = 62.50
else
endif
if ( Trig_Swift_Attack_Func004C() ) then
set udg_SwiftAttackDamage = 78.13
else
endif
if ( Trig_Swift_Attack_Func005C() ) then
set udg_SwiftAttackDamage = 97.66
else
endif
if ( Trig_Swift_Attack_Func006C() ) then
set udg_SwiftAttackDamage = 122.07
else
endif
if ( Trig_Swift_Attack_Func007C() ) then
set udg_SwiftAttackDamage = 152.59
else
endif
if ( Trig_Swift_Attack_Func008C() ) then
set udg_SwiftAttackDamage = 190.73
else
endif
if ( Trig_Swift_Attack_Func009C() ) then
set udg_SwiftAttackDamage = 238.42
else
endif
if ( Trig_Swift_Attack_Func010C() ) then
set udg_SwiftAttackDamage = 298.02
else
endif
if ( Trig_Swift_Attack_Func011C() ) then
set udg_SwiftAttackDamage = 372.53
else
endif
call SetUnitTimeScalePercent( GetSpellAbilityUnit(), 400.00 )
call AddSpecialEffectTargetUnitBJ( "hand right", GetSpellAbilityUnit(), "Abilities\\Weapons\\IllidanMissile\\IllidanMissile.mdl" )
set udg_SwiftAttackEffects[1] = GetLastCreatedEffectBJ()
call AddSpecialEffectTargetUnitBJ( "hand left", GetSpellAbilityUnit(), "Abilities\\Weapons\\IllidanMissile\\IllidanMissile.mdl" )
set udg_SwiftAttackEffects[2] = GetLastCreatedEffectBJ()
call AddSpecialEffectTargetUnitBJ( "foot right", GetSpellAbilityUnit(), "Abilities\\Weapons\\IllidanMissile\\IllidanMissile.mdl" )
set udg_SwiftAttackEffects[3] = GetLastCreatedEffectBJ()
call AddSpecialEffectTargetUnitBJ( "foot left", GetSpellAbilityUnit(), "Abilities\\Weapons\\IllidanMissile\\IllidanMissile.mdl" )
set udg_SwiftAttackEffects[4] = GetLastCreatedEffectBJ()
call TriggerSleepAction( 0.01 )
call SetUnitPositionLocFacingLocBJ( GetSpellAbilityUnit(), GetUnitLoc(udg_SwiftAttackAttackedUnit), GetUnitLoc(udg_SwiftAttackAttackedUnit) )
call SetUnitAnimation( udg_SwiftAttackAttackUnit, "attack" )
call PlaySoundAtPointBJ( udg_SliceSound[GetRandomInt(1, 3)], 100, GetUnitLoc(udg_SwiftAttackAttackUnit), 0 )
call UnitDamageTargetBJ( GetSpellAbilityUnit(), udg_SwiftAttackAttackedUnit, udg_SwiftAttackDamage, ATTACK_TYPE_HERO, DAMAGE_TYPE_NORMAL )
call TriggerSleepAction( 0.15 )
call ForGroupBJ( GetRandomSubGroup(1, GetUnitsInRangeOfLocMatching(500.00, GetUnitLoc(udg_SwiftAttackAttackedUnit), Condition(function Trig_Swift_Attack_Func027001002003))), function Trig_Swift_Attack_Func027A )
call TriggerSleepAction( 0.15 )
call ForGroupBJ( GetRandomSubGroup(1, GetUnitsInRangeOfLocMatching(500.00, GetUnitLoc(udg_SwiftAttackAttackedUnit), Condition(function Trig_Swift_Attack_Func029001002003))), function Trig_Swift_Attack_Func029A )
call TriggerSleepAction( 0.15 )
call ForGroupBJ( GetRandomSubGroup(1, GetUnitsInRangeOfLocMatching(500.00, GetUnitLoc(udg_SwiftAttackAttackedUnit), Condition(function Trig_Swift_Attack_Func031001002003))), function Trig_Swift_Attack_Func031A )
call TriggerSleepAction( 0.15 )
call ForGroupBJ( GetRandomSubGroup(1, GetUnitsInRangeOfLocMatching(500.00, GetUnitLoc(udg_SwiftAttackAttackedUnit), Condition(function Trig_Swift_Attack_Func033001002003))), function Trig_Swift_Attack_Func033A )
call SetUnitTimeScalePercent( GetSpellAbilityUnit(), 100.00 )
call DestroyEffectBJ( udg_SwiftAttackEffects[1] )
call DestroyEffectBJ( udg_SwiftAttackEffects[2] )
call DestroyEffectBJ( udg_SwiftAttackEffects[3] )
call DestroyEffectBJ( udg_SwiftAttackEffects[4] )
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_Thunder_Bolt_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A014' ) ) then
return false
endif
return true
endfunction
function Trig_Thunder_Bolt_Func002001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A014', GetSpellAbilityUnit()) == 1 )
endfunction
function Trig_Thunder_Bolt_Func003001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A014', GetSpellAbilityUnit()) == 2 )
endfunction
function Trig_Thunder_Bolt_Func004001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A014', GetSpellAbilityUnit()) == 3 )
endfunction
function Trig_Thunder_Bolt_Func005001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A014', GetSpellAbilityUnit()) == 4 )
endfunction
function Trig_Thunder_Bolt_Func006001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A014', GetSpellAbilityUnit()) == 5 )
endfunction
function Trig_Thunder_Bolt_Func007001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A014', GetSpellAbilityUnit()) == 6 )
endfunction
function Trig_Thunder_Bolt_Func008001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A014', GetSpellAbilityUnit()) == 7 )
endfunction
function Trig_Thunder_Bolt_Func009001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A014', GetSpellAbilityUnit()) == 8 )
endfunction
function Trig_Thunder_Bolt_Func010001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A014', GetSpellAbilityUnit()) == 9 )
endfunction
function Trig_Thunder_Bolt_Func011001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A014', GetSpellAbilityUnit()) == 10 )
endfunction
function Trig_Thunder_Bolt_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ( GetUnitLoc(GetSpellTargetUnit()), "Doodads\\Cinematic\\Lightningbolt\\Lightningbolt.mdl" )
if ( Trig_Thunder_Bolt_Func002001() ) then
call UnitDamageTargetBJ( GetSpellAbilityUnit(), GetSpellTargetUnit(), 75.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_LIGHTNING )
else
call DoNothing( )
endif
if ( Trig_Thunder_Bolt_Func003001() ) then
call UnitDamageTargetBJ( GetSpellAbilityUnit(), GetSpellTargetUnit(), 94.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_LIGHTNING )
else
call DoNothing( )
endif
if ( Trig_Thunder_Bolt_Func004001() ) then
call UnitDamageTargetBJ( GetSpellAbilityUnit(), GetSpellTargetUnit(), 117.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_LIGHTNING )
else
call DoNothing( )
endif
if ( Trig_Thunder_Bolt_Func005001() ) then
call UnitDamageTargetBJ( GetSpellAbilityUnit(), GetSpellTargetUnit(), 146.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_LIGHTNING )
else
call DoNothing( )
endif
if ( Trig_Thunder_Bolt_Func006001() ) then
call UnitDamageTargetBJ( GetSpellAbilityUnit(), GetSpellTargetUnit(), 183.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_LIGHTNING )
else
call DoNothing( )
endif
if ( Trig_Thunder_Bolt_Func007001() ) then
call UnitDamageTargetBJ( GetSpellAbilityUnit(), GetSpellTargetUnit(), 229.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_LIGHTNING )
else
call DoNothing( )
endif
if ( Trig_Thunder_Bolt_Func008001() ) then
call UnitDamageTargetBJ( GetSpellAbilityUnit(), GetSpellTargetUnit(), 286.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_LIGHTNING )
else
call DoNothing( )
endif
if ( Trig_Thunder_Bolt_Func009001() ) then
call UnitDamageTargetBJ( GetSpellAbilityUnit(), GetSpellTargetUnit(), 357.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_LIGHTNING )
else
call DoNothing( )
endif
if ( Trig_Thunder_Bolt_Func010001() ) then
call UnitDamageTargetBJ( GetSpellAbilityUnit(), GetSpellTargetUnit(), 446.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_LIGHTNING )
else
call DoNothing( )
endif
if ( Trig_Thunder_Bolt_Func011001() ) then
call UnitDamageTargetBJ( GetSpellAbilityUnit(), GetSpellTargetUnit(), 558.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_LIGHTNING )
else
call DoNothing( )
endif
call TriggerSleepAction( 0.10 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endfunction
//===========================================================================
function InitTrig_Thunder_Bolt takes nothing returns nothing
set gg_trg_Thunder_Bolt = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Thunder_Bolt, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Thunder_Bolt, Condition( function Trig_Thunder_Bolt_Conditions ) )
call TriggerAddAction( gg_trg_Thunder_Bolt, function Trig_Thunder_Bolt_Actions )
endfunction
function Trig_Lightning_Split_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A019' ) ) then
return false
endif
return true
endfunction
function Trig_Lightning_Split_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'h00P', GetOwningPlayer(GetSpellAbilityUnit()), GetSpellTargetLoc(), GetUnitFacing(GetSpellAbilityUnit()) )
call UnitAddAbilityBJ( 'A016', GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( 'A016', GetLastCreatedUnit(), GetUnitAbilityLevelSwapped('A019', GetSpellAbilityUnit()) )
call IssueImmediateOrderBJ( GetLastCreatedUnit(), "fanofknives" )
call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetLastCreatedUnit() )
endfunction
//===========================================================================
function InitTrig_Lightning_Split takes nothing returns nothing
set gg_trg_Lightning_Split = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Lightning_Split, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Lightning_Split, Condition( function Trig_Lightning_Split_Conditions ) )
call TriggerAddAction( gg_trg_Lightning_Split, function Trig_Lightning_Split_Actions )
endfunction
function Trig_Shocking_Wave_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A01U' ) ) then
return false
endif
return true
endfunction
function Trig_Shocking_Wave_Func001001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A01U', GetSpellAbilityUnit()) == 1 )
endfunction
function Trig_Shocking_Wave_Func002001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A01U', GetSpellAbilityUnit()) == 2 )
endfunction
function Trig_Shocking_Wave_Func003001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A01U', GetSpellAbilityUnit()) == 3 )
endfunction
function Trig_Shocking_Wave_Func004001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A01U', GetSpellAbilityUnit()) == 4 )
endfunction
function Trig_Shocking_Wave_Func005001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A01U', GetSpellAbilityUnit()) == 5 )
endfunction
function Trig_Shocking_Wave_Func006001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A01U', GetSpellAbilityUnit()) == 6 )
endfunction
function Trig_Shocking_Wave_Func007001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A01U', GetSpellAbilityUnit()) == 7 )
endfunction
function Trig_Shocking_Wave_Func008001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A01U', GetSpellAbilityUnit()) == 8 )
endfunction
function Trig_Shocking_Wave_Func009001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A01U', GetSpellAbilityUnit()) == 9 )
endfunction
function Trig_Shocking_Wave_Func010001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A01U', GetSpellAbilityUnit()) == 10 )
endfunction
function Trig_Shocking_Wave_Func023002 takes nothing returns nothing
call GroupRemoveUnitSimple( GetEnumUnit(), udg_ShockingWaveElectricuted_8p )
endfunction
function Trig_Shocking_Wave_Actions takes nothing returns nothing
if ( Trig_Shocking_Wave_Func001001() ) then
set udg_ShockingWaveDamage = 45.00
else
call DoNothing( )
endif
if ( Trig_Shocking_Wave_Func002001() ) then
set udg_ShockingWaveDamage = 56.25
else
call DoNothing( )
endif
if ( Trig_Shocking_Wave_Func003001() ) then
set udg_ShockingWaveDamage = 70.31
else
call DoNothing( )
endif
if ( Trig_Shocking_Wave_Func004001() ) then
set udg_ShockingWaveDamage = 87.89
else
call DoNothing( )
endif
if ( Trig_Shocking_Wave_Func005001() ) then
set udg_ShockingWaveDamage = 109.86
else
call DoNothing( )
endif
if ( Trig_Shocking_Wave_Func006001() ) then
set udg_ShockingWaveDamage = 137.33
else
call DoNothing( )
endif
if ( Trig_Shocking_Wave_Func007001() ) then
set udg_ShockingWaveDamage = 171.66
else
call DoNothing( )
endif
if ( Trig_Shocking_Wave_Func008001() ) then
set udg_ShockingWaveDamage = 214.58
else
call DoNothing( )
endif
if ( Trig_Shocking_Wave_Func009001() ) then
set udg_ShockingWaveDamage = 268.22
else
call DoNothing( )
endif
if ( Trig_Shocking_Wave_Func010001() ) then
set udg_ShockingWaveDamage = 335.28
else
call DoNothing( )
endif
set udg_ShockingWaveCaster = GetSpellAbilityUnit()
call AddSpecialEffectTargetUnitBJ( "origin", GetSpellAbilityUnit(), "Abilities\\Weapons\\Bolt\\BoltImpact.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
set udg_ShockingWaveRelative_Ang = ( 5.00 * I2R(GetUnitAbilityLevelSwapped('A01U', GetSpellAbilityUnit())) )
set udg_ShockingWavePoint = GetUnitLoc(GetSpellAbilityUnit())
set udg_ShockingWaveAng[1] = ( AngleBetweenPoints(GetUnitLoc(GetSpellAbilityUnit()), GetSpellTargetLoc()) - ( 2.00 * udg_ShockingWaveRelative_Ang ) )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 5
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call CreateNUnitsAtLoc( 1, 'e00E', GetOwningPlayer(GetSpellAbilityUnit()), PolarProjectionBJ(GetUnitLoc(GetSpellAbilityUnit()), 100.00, udg_ShockingWaveAng[GetForLoopIndexA()]), bj_UNIT_FACING )
set udg_ShockingWaveLightning_Ball[GetForLoopIndexA()] = GetLastCreatedUnit()
set udg_ShockingWaveAng[( GetForLoopIndexA() + 1 )] = ( udg_ShockingWaveAng[GetForLoopIndexA()] + udg_ShockingWaveRelative_Ang )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 2
set bj_forLoopAIndexEnd = 5
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call AddLightningLoc( "CLPB", GetUnitLoc(udg_ShockingWaveLightning_Ball[GetForLoopIndexA()]), GetUnitLoc(udg_ShockingWaveLightning_Ball[( GetForLoopIndexA() + 1 )]) )
set udg_ShockingWaveLightning_Effect[GetForLoopIndexA()] = GetLastCreatedLightningBJ()
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call EnableTrigger( gg_trg_Shocking_Wave_2 )
call TriggerSleepAction( 1.00 )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 5
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call KillUnit( udg_ShockingWaveLightning_Ball[GetForLoopIndexA()] )
call DisableTrigger( gg_trg_Shocking_Wave_2 )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 2
set bj_forLoopAIndexEnd = 5
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call DestroyLightningBJ( udg_ShockingWaveLightning_Effect[GetForLoopIndexA()] )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call ForGroupBJ( udg_ShockingWaveElectricuted_8p, function Trig_Shocking_Wave_Func023002 )
endfunction
//===========================================================================
function InitTrig_Shocking_Wave takes nothing returns nothing
set gg_trg_Shocking_Wave = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Shocking_Wave, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Shocking_Wave, Condition( function Trig_Shocking_Wave_Conditions ) )
call TriggerAddAction( gg_trg_Shocking_Wave, function Trig_Shocking_Wave_Actions )
endfunction
function Trig_Shocking_Wave_2_Func002Func002Func001Func007001 takes nothing returns boolean
return ( AngleBetweenPoints(GetUnitLoc(udg_ShockingWaveLightning_Ball[GetForLoopIndexA()]), GetUnitLoc(GetEnumUnit())) <= ( AngleBetweenPoints(GetUnitLoc(udg_ShockingWaveLightning_Ball[GetForLoopIndexA()]), GetUnitLoc(udg_ShockingWaveLightning_Ball[( GetForLoopIndexA() - 1 )])) + 5.00 ) )
endfunction
function Trig_Shocking_Wave_2_Func002Func002Func001Func007002 takes nothing returns boolean
return ( AngleBetweenPoints(GetUnitLoc(udg_ShockingWaveLightning_Ball[GetForLoopIndexA()]), GetUnitLoc(GetEnumUnit())) >= ( AngleBetweenPoints(GetUnitLoc(udg_ShockingWaveLightning_Ball[GetForLoopIndexA()]), GetUnitLoc(udg_ShockingWaveLightning_Ball[( GetForLoopIndexA() - 1 )])) - 5.00 ) )
endfunction
function Trig_Shocking_Wave_2_Func002Func002Func001C takes nothing returns boolean
if ( not ( IsUnitInGroup(GetEnumUnit(), udg_ShockingWaveElectricuted_8p) == false ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Shocking_Wave_2_Func002Func002Func001Func007001(), Trig_Shocking_Wave_2_Func002Func002Func001Func007002() ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(GetEnumUnit()) == true ) ) then
return false
endif
if ( not ( IsUnitEnemy(GetEnumUnit(), GetOwningPlayer(udg_ShockingWaveLightning_Ball[GetForLoopIndexA()])) == true ) ) then
return false
endif
if ( not ( IsUnitType(GetEnumUnit(), UNIT_TYPE_FLYING) == false ) ) then
return false
endif
if ( not ( IsUnitType(GetEnumUnit(), UNIT_TYPE_STRUCTURE) == false ) ) then
return false
endif
return true
endfunction
function Trig_Shocking_Wave_2_Func002Func002A takes nothing returns nothing
if ( Trig_Shocking_Wave_2_Func002Func002Func001C() ) then
call GroupAddUnitSimple( GetEnumUnit(), udg_ShockingWaveElectricuted_8p )
call AddSpecialEffectTargetUnitBJ( "origin", GetEnumUnit(), "Abilities\\Weapons\\ChimaeraLightningMissile\\ChimaeraLightningMissile.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitDamageTargetBJ( udg_ShockingWaveCaster, GetEnumUnit(), udg_ShockingWaveDamage, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
endfunction
function Trig_Shocking_Wave_2_Actions takes nothing returns nothing
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 5
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call SetUnitPositionLoc( udg_ShockingWaveLightning_Ball[GetForLoopIndexA()], PolarProjectionBJ(GetUnitLoc(udg_ShockingWaveLightning_Ball[GetForLoopIndexA()]), 6.00, udg_ShockingWaveAng[GetForLoopIndexA()]) )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 2
set bj_forLoopAIndexEnd = 5
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call MoveLightningLoc( udg_ShockingWaveLightning_Effect[GetForLoopIndexA()], GetUnitLoc(udg_ShockingWaveLightning_Ball[GetForLoopIndexA()]), GetUnitLoc(udg_ShockingWaveLightning_Ball[( GetForLoopIndexA() - 1 )]) )
call ForGroupBJ( GetUnitsInRangeOfLocAll(DistanceBetweenPoints(GetUnitLoc(udg_ShockingWaveLightning_Ball[GetForLoopIndexA()]), GetUnitLoc(udg_ShockingWaveLightning_Ball[( ( GetForLoopIndexA() - 1 ) + 1 )])), GetUnitLoc(udg_ShockingWaveLightning_Ball[GetForLoopIndexA()])), function Trig_Shocking_Wave_2_Func002Func002A )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Point, GetRandomReal(0, DistanceBetweenPoints(udg_Point, GetUnitLoc(udg_ShockingWaveLightning_Ball[3]))), GetRandomReal(udg_ShockingWaveAng[1], udg_ShockingWaveAng[5])), "Abilities\\Spells\\Orc\\Purge\\PurgeBuffTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endfunction
//===========================================================================
function InitTrig_Shocking_Wave_2 takes nothing returns nothing
set gg_trg_Shocking_Wave_2 = CreateTrigger( )
call DisableTrigger( gg_trg_Shocking_Wave_2 )
call TriggerRegisterTimerEventPeriodic( gg_trg_Shocking_Wave_2, 0.01 )
call TriggerAddAction( gg_trg_Shocking_Wave_2, function Trig_Shocking_Wave_2_Actions )
endfunction
function Trig_Power_Blow_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A01T' ) ) then
return false
endif
return true
endfunction
function Trig_Power_Blow_Actions takes nothing returns nothing
set udg_PowerBlowBlower = GetSpellAbilityUnit()
set udg_PowerBlowBlowed = GetSpellTargetUnit()
set udg_PowerBlowBlow_Ang = AngleBetweenPoints(GetUnitLoc(udg_PowerBlowBlower), GetUnitLoc(udg_PowerBlowBlowed))
call SetUnitAnimation( udg_PowerBlowBlower, "attack" )
call AddSpecialEffectTargetUnitBJ( "hand right", GetSpellAbilityUnit(), "Abilities\\Spells\\Other\\Tornado\\Tornado_Target.mdl" )
set udg_PowerBlowBlow_Effect[1] = GetLastCreatedEffectBJ()
call AddSpecialEffectTargetUnitBJ( "hand left", GetSpellAbilityUnit(), "Abilities\\Spells\\Other\\Tornado\\Tornado_Target.mdl" )
set udg_PowerBlowBlow_Effect[2] = GetLastCreatedEffectBJ()
call AddSpecialEffectTargetUnitBJ( "chest", GetSpellAbilityUnit(), "Abilities\\Spells\\Other\\Tornado\\Tornado_Target.mdl" )
set udg_PowerBlowBlow_Effect[3] = GetLastCreatedEffectBJ()
call AddSpecialEffectTargetUnitBJ( "foot left", GetSpellAbilityUnit(), "Abilities\\Spells\\Other\\Tornado\\Tornado_Target.mdl" )
set udg_PowerBlowBlow_Effect[4] = GetLastCreatedEffectBJ()
call AddSpecialEffectTargetUnitBJ( "foot right", GetSpellAbilityUnit(), "Abilities\\Spells\\Other\\Tornado\\Tornado_Target.mdl" )
set udg_PowerBlowBlow_Effect[5] = GetLastCreatedEffectBJ()
call TerrainDeformationWaveBJ( ( DistanceBetweenPoints(GetUnitLoc(udg_PowerBlowBlower), GetUnitLoc(udg_PowerBlowBlowed)) / 900.00 ), GetUnitLoc(udg_PowerBlowBlower), GetUnitLoc(udg_PowerBlowBlowed), 100.00, 96, 0 )
call SetUnitPathing( udg_PowerBlowBlower, false )
call EnableTrigger( gg_trg_Give_Blow )
call TriggerSleepAction( 1.30 )
call SetUnitPathing( udg_PowerBlowBlowed, true )
call DisableTrigger( gg_trg_Blow_Away )
endfunction
//===========================================================================
function InitTrig_Power_Blow takes nothing returns nothing
set gg_trg_Power_Blow = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Power_Blow, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Power_Blow, Condition( function Trig_Power_Blow_Conditions ) )
call TriggerAddAction( gg_trg_Power_Blow, function Trig_Power_Blow_Actions )
endfunction
function Trig_Give_Blow_Func001Func001C takes nothing returns boolean
if ( not ( GetEnumUnit() != udg_PowerBlowBlower ) ) then
return false
endif
if ( not ( IsUnitType(GetEnumUnit(), UNIT_TYPE_STRUCTURE) == false ) ) then
return false
endif
if ( not ( IsUnitType(GetEnumUnit(), UNIT_TYPE_FLYING) == false ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(GetEnumUnit()) == true ) ) then
return false
endif
return true
endfunction
function Trig_Give_Blow_Func001A takes nothing returns nothing
if ( Trig_Give_Blow_Func001Func001C() ) then
call SetUnitPositionLoc( GetEnumUnit(), PolarProjectionBJ(GetUnitLoc(GetEnumUnit()), 9.00, AngleBetweenPoints(GetUnitLoc(udg_PowerBlowBlower), GetUnitLoc(GetEnumUnit()))) )
else
endif
endfunction
function Trig_Give_Blow_Func003C takes nothing returns boolean
if ( not ( DistanceBetweenPoints(GetUnitLoc(udg_PowerBlowBlower), GetUnitLoc(udg_PowerBlowBlowed)) <= 200.00 ) ) then
return false
endif
return true
endfunction
function Trig_Give_Blow_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsInRangeOfLocAll(100.00, GetUnitLoc(udg_PowerBlowBlower)), function Trig_Give_Blow_Func001A )
call SetUnitPositionLoc( udg_PowerBlowBlower, PolarProjectionBJ(GetUnitLoc(udg_PowerBlowBlower), 9.00, udg_PowerBlowBlow_Ang) )
if ( Trig_Give_Blow_Func003C() ) then
call SetUnitPathing( udg_PowerBlowBlower, true )
call SetUnitPathing( udg_PowerBlowBlowed, false )
call DisableTrigger( GetTriggeringTrigger() )
call EnableTrigger( gg_trg_Blow_Away )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_PowerBlowBlowed), "Abilities\\Weapons\\GryphonRiderMissile\\GryphonRiderMissileTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 5
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call DestroyEffectBJ( udg_PowerBlowBlow_Effect[GetForLoopIndexA()] )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
else
endif
endfunction
//===========================================================================
function InitTrig_Give_Blow takes nothing returns nothing
set gg_trg_Give_Blow = CreateTrigger( )
call DisableTrigger( gg_trg_Give_Blow )
call TriggerRegisterTimerEventPeriodic( gg_trg_Give_Blow, 0.01 )
call TriggerAddAction( gg_trg_Give_Blow, function Trig_Give_Blow_Actions )
endfunction
function Trig_Blow_Away_Func002Func001C takes nothing returns boolean
if ( not ( GetEnumUnit() != udg_PowerBlowBlowed ) ) then
return false
endif
if ( not ( IsUnitType(GetEnumUnit(), UNIT_TYPE_STRUCTURE) == false ) ) then
return false
endif
if ( not ( IsUnitType(GetEnumUnit(), UNIT_TYPE_FLYING) == false ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(GetEnumUnit()) == true ) ) then
return false
endif
return true
endfunction
function Trig_Blow_Away_Func002A takes nothing returns nothing
if ( Trig_Blow_Away_Func002Func001C() ) then
call SetUnitPositionLoc( GetEnumUnit(), PolarProjectionBJ(GetUnitLoc(GetEnumUnit()), 9.00, AngleBetweenPoints(GetUnitLoc(udg_PowerBlowBlowed), GetUnitLoc(GetEnumUnit()))) )
else
endif
endfunction
function Trig_Blow_Away_Actions takes nothing returns nothing
call SetUnitPositionLoc( udg_PowerBlowBlowed, PolarProjectionBJ(GetUnitLoc(udg_PowerBlowBlowed), 5.00, udg_PowerBlowBlow_Ang) )
call ForGroupBJ( GetUnitsInRangeOfLocAll(100.00, GetUnitLoc(udg_PowerBlowBlowed)), function Trig_Blow_Away_Func002A )
endfunction
//===========================================================================
function InitTrig_Blow_Away takes nothing returns nothing
set gg_trg_Blow_Away = CreateTrigger( )
call DisableTrigger( gg_trg_Blow_Away )
call TriggerRegisterTimerEventPeriodic( gg_trg_Blow_Away, 0.01 )
call TriggerAddAction( gg_trg_Blow_Away, function Trig_Blow_Away_Actions )
endfunction
function Trig_Thors_Hammer_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A07E' ) ) then
return false
endif
return true
endfunction
function Trig_Thors_Hammer_Func013001003 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(udg_ThorsHammerUnit)) == true )
endfunction
function Trig_Thors_Hammer_Func013002 takes nothing returns nothing
call IssueTargetOrderBJ( GetEnumUnit(), "attack", udg_ThorsHammerUnit )
endfunction
function Trig_Thors_Hammer_Actions takes nothing returns nothing
set udg_ThorsHammerUnit = GetSpellAbilityUnit()
set udg_ThorsHammerPoint = GetSpellTargetLoc()
call CreateNUnitsAtLoc( 1, 'o009', GetOwningPlayer(udg_ThorsHammerUnit), PolarProjectionBJ(udg_ThorsHammerPoint, 300.00, 90.00), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 3.00, 'BTLF', GetLastCreatedUnit() )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "attackground", udg_ThorsHammerPoint )
call TriggerSleepAction( 0.50 )
call CreateNUnitsAtLoc( 1, 'h00P', GetOwningPlayer(udg_ThorsHammerUnit), udg_ThorsHammerPoint, bj_UNIT_FACING )
call UnitAddAbilityBJ( 'A07B', GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( 'A07B', GetLastCreatedUnit(), GetUnitAbilityLevelSwapped('A07E', GetSpellAbilityUnit()) )
call AddSpecialEffectLocBJ( udg_ThorsHammerPoint, "Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl" )
call KillUnit( GetLastCreatedUnit() )
call CameraSetEQNoiseForPlayer( GetOwningPlayer(udg_ThorsHammerUnit), 3 )
call ForGroupBJ( GetUnitsInRangeOfLocMatching(250.00, udg_ThorsHammerPoint, Condition(function Trig_Thors_Hammer_Func013001003)), function Trig_Thors_Hammer_Func013002 )
call TriggerSleepAction( 0.50 )
call ResetToGameCameraForPlayer( GetOwningPlayer(udg_ThorsHammerUnit), 0 )
endfunction
//===========================================================================
function InitTrig_Thors_Hammer takes nothing returns nothing
set gg_trg_Thors_Hammer = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Thors_Hammer, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Thors_Hammer, Condition( function Trig_Thors_Hammer_Conditions ) )
call TriggerAddAction( gg_trg_Thors_Hammer, function Trig_Thors_Hammer_Actions )
endfunction
function Trig_Inferno_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A02Z' ) ) then
return false
endif
return true
endfunction
function Trig_Inferno_Func008Func001C takes nothing returns boolean
if ( not ( udg_Inferno_Stop == true ) ) then
return false
endif
return true
endfunction
function Trig_Inferno_Actions takes nothing returns nothing
call PlaySoundAtPointBJ( gg_snd_OrcHumanLargeBuildingFire1, 100, GetUnitLoc(GetSpellAbilityUnit()), 100.00 )
set udg_Inferno_Stop = true
set udg_Inferno_Point[GetConvertedPlayerId(GetOwningPlayer(GetSpellAbilityUnit()))] = GetSpellTargetLoc()
call CreateNUnitsAtLocFacingLocBJ( 1, 'n00U', GetOwningPlayer(GetSpellAbilityUnit()), PolarProjectionBJ(GetUnitLoc(GetSpellAbilityUnit()), 50.00, AngleBetweenPoints(GetUnitLoc(GetSpellAbilityUnit()), udg_Inferno_Point[GetConvertedPlayerId(GetOwningPlayer(GetSpellAbilityUnit()))])), udg_Inferno_Point[GetConvertedPlayerId(GetOwningPlayer(GetSpellAbilityUnit()))] )
set udg_Inferno_Unit[GetConvertedPlayerId(GetOwningPlayer(GetSpellAbilityUnit()))] = GetLastCreatedUnit()
call CreateNUnitsAtLocFacingLocBJ( 1, 'n00U', GetOwningPlayer(GetSpellAbilityUnit()), PolarProjectionBJ(GetUnitLoc(GetSpellAbilityUnit()), 50.00, AngleBetweenPoints(GetUnitLoc(GetSpellAbilityUnit()), udg_Inferno_Point[GetConvertedPlayerId(GetOwningPlayer(GetSpellAbilityUnit()))])), udg_Inferno_Point[GetConvertedPlayerId(GetOwningPlayer(GetSpellAbilityUnit()))] )
set udg_Inferno_Effect_Unit[GetConvertedPlayerId(GetOwningPlayer(GetSpellAbilityUnit()))] = GetLastCreatedUnit()
set udg_Inferno_Integer[GetConvertedPlayerId( GetOwningPlayer( GetSpellAbilityUnit( ) ) )] = 1
loop
exitwhen udg_Inferno_Integer[GetConvertedPlayerId( GetOwningPlayer( GetSpellAbilityUnit( ) ) )] > 10
if ( Trig_Inferno_Func008Func001C() ) then
call StopSoundBJ( gg_snd_OrcHumanLargeBuildingFire1, false )
call PlaySoundAtPointBJ( gg_snd_OrcHumanLargeBuildingFire1, 100, GetUnitLoc(GetSpellAbilityUnit()), 100.00 )
call ReplaceUnitBJ( udg_Inferno_Unit[GetConvertedPlayerId(GetOwningPlayer(GetSpellAbilityUnit()))], 'n00U', bj_UNIT_STATE_METHOD_MAXIMUM )
set udg_Inferno_Unit[GetConvertedPlayerId(GetOwningPlayer(GetSpellAbilityUnit()))] = GetLastReplacedUnitBJ()
call SetUnitAbilityLevelSwapped( 'A02Z', GetLastReplacedUnitBJ(), GetUnitAbilityLevelSwapped('A02Z', GetSpellAbilityUnit()) )
call IssuePointOrderLocBJ( GetLastReplacedUnitBJ(), "breathoffire", udg_Inferno_Point[GetConvertedPlayerId(GetOwningPlayer(GetSpellAbilityUnit()))] )
call TriggerSleepAction( 0.25 )
call ReplaceUnitBJ( udg_Inferno_Effect_Unit[GetConvertedPlayerId(GetOwningPlayer(GetSpellAbilityUnit()))], 'n00U', bj_UNIT_STATE_METHOD_RELATIVE )
set udg_Inferno_Effect_Unit[GetConvertedPlayerId(GetOwningPlayer(GetSpellAbilityUnit()))] = GetLastReplacedUnitBJ()
call TriggerSleepAction( 0.25 )
else
return
endif
set udg_Inferno_Integer[GetConvertedPlayerId( GetOwningPlayer( GetSpellAbilityUnit( ) ) )] = udg_Inferno_Integer[GetConvertedPlayerId( GetOwningPlayer( GetSpellAbilityUnit( ) ) )] + 1
endloop
call RemoveUnit( udg_Inferno_Effect_Unit[GetConvertedPlayerId(GetOwningPlayer(GetSpellAbilityUnit()))] )
call RemoveUnit( udg_Inferno_Unit[GetConvertedPlayerId(GetOwningPlayer(GetSpellAbilityUnit()))] )
call SetUnitTimeScalePercent( GetSpellAbilityUnit(), 100 )
endfunction
//===========================================================================
function InitTrig_Inferno takes nothing returns nothing
set gg_trg_Inferno = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Inferno, EVENT_PLAYER_UNIT_SPELL_CHANNEL )
call TriggerAddCondition( gg_trg_Inferno, Condition( function Trig_Inferno_Conditions ) )
call TriggerAddAction( gg_trg_Inferno, function Trig_Inferno_Actions )
endfunction
function Trig_Stop_Casting_Inferno_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A02Z' ) ) then
return false
endif
return true
endfunction
function Trig_Stop_Casting_Inferno_Func002A takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Stop_Casting_Inferno_Actions takes nothing returns nothing
call StopSoundBJ( gg_snd_OrcHumanLargeBuildingFire1, false )
call ForGroupBJ( GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetSpellAbilityUnit()), 'n00U'), function Trig_Stop_Casting_Inferno_Func002A )
set udg_Inferno_Stop = false
endfunction
//===========================================================================
function InitTrig_Stop_Casting_Inferno takes nothing returns nothing
set gg_trg_Stop_Casting_Inferno = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stop_Casting_Inferno, EVENT_PLAYER_UNIT_SPELL_ENDCAST )
call TriggerAddCondition( gg_trg_Stop_Casting_Inferno, Condition( function Trig_Stop_Casting_Inferno_Conditions ) )
call TriggerAddAction( gg_trg_Stop_Casting_Inferno, function Trig_Stop_Casting_Inferno_Actions )
endfunction
//***************************************************************************************************
//*
//* ******************
//* * Lightning Sword *
//* * by ctb *
//* ******************
//*
//***************************************************************************************************
//1.Copy the 'Caster Dummy' unit, the 'Lightning Sword' ability and the 'Dummy Lightning' ability into your map.
//2.Change A000, A001 and n000 above to the codes in your map (Further info below).
//To find the unit/ability codes, go into view in the obj. editor and turn 'display values as raw data' on
function getLightningAbilityCode takes nothing returns integer
return 'A036'//To implement just change A000 to the ability code of the 'Lightning Sword' spell in your map
endfunction
function getLightningDummyAbilityCode takes nothing returns integer
return 'A030'//Just change A001 to the ability code of the 'Dummy Lightning' spell in your map
endfunction
function getLightningUnitCode takes nothing returns integer
return 'n011'//And finally you need to change n000 to the unit code of the 'Caster dummmy' in your map
endfunction
//This doesn't needs to be changed
function getLightningRange takes nothing returns integer
return 300 //AoE(also change in the obj. editor)
endfunction
//It's not recommended changing anything after this point
//==========================================================================
function Trig_Lightning_Conditions takes nothing returns boolean
return GetSpellAbilityId() == getLightningAbilityCode()
endfunction
function Lightning_Func_Boolean takes nothing returns boolean
return IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(GetTriggerUnit())) and IsUnitAliveBJ(GetFilterUnit())
endfunction
function Trig_Lightning_Actions takes nothing returns nothing
local unit u=GetTriggerUnit()
local unit x
local unit c
local integer i
local integer s=(6+2*GetUnitAbilityLevel( u,GetSpellAbilityId()) )
local trigger t=CreateTrigger()
local group g=CreateGroup()
local location l=GetSpellTargetLoc()
call TriggerRegisterUnitEvent( t, u, EVENT_UNIT_SPELL_ENDCAST )
set i = 1
loop
exitwhen i > 10 or GetTriggerEvalCount(t)>0
call DestroyEffect(AddSpecialEffectTargetUnitBJ( "weapon,right", u, "Abilities\\Spells\\Other\\Monsoon\\MonsoonBoltTarget.mdl" ))
call TriggerSleepAction( 0.02 )
set i = i + 1
endloop
set i = 1
loop
exitwhen i > s or GetTriggerEvalCount(t)>0
call GroupEnumUnitsInRangeOfLoc( g, l, getLightningRange(), Condition(function Lightning_Func_Boolean) )
set x = GroupPickRandomUnit(g)
set c=CreateUnit(GetOwningPlayer(u),getLightningUnitCode(),GetUnitX(u),GetUnitY(u),bj_RADTODEG * Atan2(GetUnitY(x) - GetUnitY(u), GetUnitX(x) - GetUnitX(u)) )
call SetUnitAbilityLevel(c, getLightningDummyAbilityCode(),GetUnitAbilityLevel(u,getLightningAbilityCode()) )
call IssueTargetOrder( c, "chainlightning", x )
call UnitApplyTimedLife(c , 'BTLF',1 )
call GroupClear(g)
call PolledWait( 1 )
set i = i + 1
endloop
call IssueImmediateOrder( u, "stop" )
//==========================================================================
call RemoveUnit(c)
call DestroyTrigger(t)
call DestroyGroup(g)
call RemoveLocation(l)
set u=null
set x=null
set t=null
set g=null
set l=null
set c=null
endfunction
//===========================================================================
function InitTrig_Lightning_Sword takes nothing returns nothing
set gg_trg_Lightning_Sword = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Lightning_Sword, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Lightning_Sword, Condition( function Trig_Lightning_Conditions ) )
call TriggerAddAction( gg_trg_Lightning_Sword, function Trig_Lightning_Actions )
endfunction
function Trig_Blast_Start_Graphic_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A03B' ) ) then
return false
endif
return true
endfunction
function Trig_Blast_Start_Graphic_Actions takes nothing returns nothing
local effect udg_blastgraphic
call AddSpecialEffectTargetUnitBJ( "origin", GetTriggerUnit(), "Abilities\\Spells\\Human\\FlameStrike\\FlameStrikeTarget.mdl" )
set udg_BlastBlastGraphic = GetLastCreatedEffectBJ()
call TriggerSleepAction( 0.50 )
call DestroyEffectBJ( udg_BlastBlastGraphic )
endfunction
//===========================================================================
function InitTrig_Blast_Start_Graphic takes nothing returns nothing
set gg_trg_Blast_Start_Graphic = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Blast_Start_Graphic, EVENT_PLAYER_UNIT_SPELL_CHANNEL )
call TriggerAddCondition( gg_trg_Blast_Start_Graphic, Condition( function Trig_Blast_Start_Graphic_Conditions ) )
call TriggerAddAction( gg_trg_Blast_Start_Graphic, function Trig_Blast_Start_Graphic_Actions )
endfunction
function Trig_Blast_Start_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A03B' ) ) then
return false
endif
return true
endfunction
function Trig_Blast_Start_Actions takes nothing returns nothing
call PlaySoundAtPointBJ( gg_snd_MarkOfChaos, 100, GetSpellTargetLoc(), 0 )
call PlaySoundAtPointBJ( gg_snd_MarkOfChaos, 100, GetUnitLoc(GetTriggerUnit()), 0 )
call CreateNUnitsAtLocFacingLocBJ( 1, 'e00F', GetTriggerPlayer(), PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()), 75.00, GetUnitFacing(GetTriggerUnit())), GetSpellTargetLoc() )
endfunction
//===========================================================================
function InitTrig_Blast_Start takes nothing returns nothing
set gg_trg_Blast_Start = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Blast_Start, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Blast_Start, Condition( function Trig_Blast_Start_Conditions ) )
call TriggerAddAction( gg_trg_Blast_Start, function Trig_Blast_Start_Actions )
endfunction
function Trig_Traping_Souls_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'u00I' ) ) then
return false
endif
return true
endfunction
function Trig_Traping_Souls_Func001001 takes nothing returns boolean
return ( udg_SoulSpellsSoul_Count >= ( 8 + udg_SoulSpellsEmpower_Bonus ) )
endfunction
function Trig_Traping_Souls_Actions takes nothing returns nothing
if ( Trig_Traping_Souls_Func001001() ) then
return
else
call DoNothing( )
endif
set udg_SoulSpellsSoul_Count = ( udg_SoulSpellsSoul_Count + 1 )
call ForceAddPlayerSimple( GetOwningPlayer(GetTriggerUnit()), udg_SoulSpellsSoul_Player )
call DisplayTimedTextToForce( udg_SoulSpellsSoul_Player, 5.00, ( "|Cff00ff00Soul Count: " + I2S(udg_SoulSpellsSoul_Count) ) )
endfunction
//===========================================================================
function InitTrig_Traping_Souls takes nothing returns nothing
set gg_trg_Traping_Souls = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Traping_Souls, GetPlayableMapRect() )
call TriggerAddCondition( gg_trg_Traping_Souls, Condition( function Trig_Traping_Souls_Conditions ) )
call TriggerAddAction( gg_trg_Traping_Souls, function Trig_Traping_Souls_Actions )
endfunction
function Trig_Empower_Level_Up_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'A047' ) ) then
return false
endif
return true
endfunction
function Trig_Empower_Level_Up_Actions takes nothing returns nothing
set udg_SoulSpellsEmpower_Bonus = ( udg_SoulSpellsEmpower_Bonus + 1 )
endfunction
//===========================================================================
function InitTrig_Empower_Level_Up takes nothing returns nothing
set gg_trg_Empower_Level_Up = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Empower_Level_Up, EVENT_PLAYER_HERO_SKILL )
call TriggerAddCondition( gg_trg_Empower_Level_Up, Condition( function Trig_Empower_Level_Up_Conditions ) )
call TriggerAddAction( gg_trg_Empower_Level_Up, function Trig_Empower_Level_Up_Actions )
endfunction
function Trig_Revenge_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A049' ) ) then
return false
endif
return true
endfunction
function Trig_Revenge_Func001Func001001 takes nothing returns boolean
return ( IsUnitDeadBJ(GetTriggerUnit()) == true )
endfunction
function Trig_Revenge_Func001Func002001 takes nothing returns boolean
return ( IsUnitDeadBJ(GetTriggerUnit()) == true )
endfunction
function Trig_Revenge_Actions takes nothing returns nothing
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = ( 5 * udg_SoulSpellsSoul_Count )
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Revenge_Func001Func001001() ) then
return
else
call DoNothing( )
endif
if ( Trig_Revenge_Func001Func002001() ) then
set udg_SoulSpellsSoul_Count = 0
else
call DoNothing( )
endif
call CreateNUnitsAtLoc( 1, 'u00J', GetOwningPlayer(GetTriggerUnit()), PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()), GetRandomReal(-400.00, 400.00), GetRandomDirectionDeg()), bj_UNIT_FACING )
call UnitAddAbilityBJ( 'A044', GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( 'A044', GetLastCreatedUnit(), GetUnitAbilityLevelSwapped('A049', GetSpellAbilityUnit()) )
call ExplodeUnitBJ( GetLastCreatedUnit() )
call AddSpecialEffectLocBJ( GetUnitLoc(GetLastCreatedUnit()), "Abilities\\Spells\\Undead\\AnimateDead\\AnimateDeadTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetUnitLoc(GetLastCreatedUnit()), "Objects\\Spawnmodels\\Undead\\UndeadDissipate\\UndeadDissipate.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call RemoveUnit( GetLastCreatedUnit() )
call TriggerSleepAction( 0.01 )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set udg_SoulSpellsSoul_Count = 0
call DisplayTimedTextToForce( udg_SoulSpellsSoul_Player, 5.00, ( "|Cff00ff00Soul Count: " + I2S(0) ) )
endfunction
//===========================================================================
function InitTrig_Revenge takes nothing returns nothing
set gg_trg_Revenge = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Revenge, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Revenge, Condition( function Trig_Revenge_Conditions ) )
call TriggerAddAction( gg_trg_Revenge, function Trig_Revenge_Actions )
endfunction
function Trig_Soul_Theft_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A04A' ) ) then
return false
endif
return true
endfunction
function Trig_Soul_Theft_Actions takes nothing returns nothing
set udg_SoulSpellsSoul_Count = ( udg_SoulSpellsSoul_Count + 1 )
call DisplayTimedTextToForce( udg_SoulSpellsSoul_Player, 5.00, ( "|Cff00ff00Soul Count: " + I2S(udg_SoulSpellsSoul_Count) ) )
endfunction
//===========================================================================
function InitTrig_Soul_Theft takes nothing returns nothing
set gg_trg_Soul_Theft = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Soul_Theft, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Soul_Theft, Condition( function Trig_Soul_Theft_Conditions ) )
call TriggerAddAction( gg_trg_Soul_Theft, function Trig_Soul_Theft_Actions )
endfunction
function Trig_Spirit_Blast_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A04B' ) ) then
return false
endif
return true
endfunction
function Trig_Spirit_Blast_Func001001 takes nothing returns boolean
return ( udg_SoulSpellsSoul_Count < 2 )
endfunction
function Trig_Spirit_Blast_Func002001 takes nothing returns boolean
return ( udg_SoulSpellsSoul_Count < 2 )
endfunction
function Trig_Spirit_Blast_Func003Func001001 takes nothing returns boolean
return ( udg_SoulSpellsSoul_Count == 0 )
endfunction
function Trig_Spirit_Blast_Func003Func002001 takes nothing returns boolean
return ( udg_SoulSpellsSoul_Count == 0 )
endfunction
function Trig_Spirit_Blast_Actions takes nothing returns nothing
if ( Trig_Spirit_Blast_Func001001() ) then
call DisplayTimedTextToForce( udg_SoulSpellsSoul_Player, 5.00, "TRIGSTR_9783" )
else
call DoNothing( )
endif
if ( Trig_Spirit_Blast_Func002001() ) then
return
else
call DoNothing( )
endif
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = ( 2 + udg_SoulSpellsEmpower_Bonus )
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Spirit_Blast_Func003Func001001() ) then
call DisplayTimedTextToForce( udg_SoulSpellsSoul_Player, 5.00, ( "|Cff00ff00Soul Count: " + I2S(udg_SoulSpellsSoul_Count) ) )
else
call DoNothing( )
endif
if ( Trig_Spirit_Blast_Func003Func002001() ) then
return
else
call DoNothing( )
endif
call CreateNUnitsAtLoc( 1, 'u00J', GetOwningPlayer(GetTriggerUnit()), GetUnitLoc(GetTriggerUnit()), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 1.50, 'BTLF', GetLastCreatedUnit() )
call UnitAddAbilityBJ( 'A03F', GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( 'A03F', GetLastCreatedUnit(), GetUnitAbilityLevelSwapped('A04B', GetSpellAbilityUnit()) )
call IssueTargetOrderBJ( GetLastCreatedUnit(), "thunderbolt", udg_SoulSpellsSoul_Target )
call TriggerSleepAction( 0.10 )
set udg_SoulSpellsSoul_Count = ( udg_SoulSpellsSoul_Count - 1 )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call DisplayTimedTextToForce( udg_SoulSpellsSoul_Player, 5.00, ( "|Cff00ff00Soul Count: " + I2S(udg_SoulSpellsSoul_Count) ) )
endfunction
//===========================================================================
function InitTrig_Spirit_Blast takes nothing returns nothing
set gg_trg_Spirit_Blast = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Spirit_Blast, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Spirit_Blast, Condition( function Trig_Spirit_Blast_Conditions ) )
call TriggerAddAction( gg_trg_Spirit_Blast, function Trig_Spirit_Blast_Actions )
endfunction
function Trig_Spirit_Blast_Target_Conditions takes nothing returns boolean
if ( not ( GetIssuedOrderIdBJ() == String2OrderIdBJ("frostnova") ) ) then
return false
endif
return true
endfunction
function Trig_Spirit_Blast_Target_Actions takes nothing returns nothing
set udg_SoulSpellsSoul_Target = GetOrderTargetUnit()
endfunction
//===========================================================================
function InitTrig_Spirit_Blast_Target takes nothing returns nothing
set gg_trg_Spirit_Blast_Target = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Spirit_Blast_Target, EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER )
call TriggerAddCondition( gg_trg_Spirit_Blast_Target, Condition( function Trig_Spirit_Blast_Target_Conditions ) )
call TriggerAddAction( gg_trg_Spirit_Blast_Target, function Trig_Spirit_Blast_Target_Actions )
endfunction
function Trig_Raging_Soul_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A048' ) ) then
return false
endif
return true
endfunction
function Trig_Raging_Soul_Func001001 takes nothing returns boolean
return ( udg_SoulSpellsSoul_Count < 4 )
endfunction
function Trig_Raging_Soul_Func002001 takes nothing returns boolean
return ( udg_SoulSpellsSoul_Count < 4 )
endfunction
function Trig_Raging_Soul_Func005002001003 takes nothing returns boolean
return ( IsUnitDeadBJ(GetFilterUnit()) == true )
endfunction
function Trig_Raging_Soul_Func006Func001001 takes nothing returns boolean
return ( udg_SoulSpellsSoul_Count == 0 )
endfunction
function Trig_Raging_Soul_Func006Func002001 takes nothing returns boolean
return ( udg_SoulSpellsSoul_Count == 0 )
endfunction
function Trig_Raging_Soul_Func006Func015002001003 takes nothing returns boolean
return ( IsUnitDeadBJ(GetFilterUnit()) == true )
endfunction
function Trig_Raging_Soul_Actions takes nothing returns nothing
if ( Trig_Raging_Soul_Func001001() ) then
call DisplayTimedTextToForce( udg_SoulSpellsSoul_Player, 5.00, "TRIGSTR_102" )
else
call DoNothing( )
endif
if ( Trig_Raging_Soul_Func002001() ) then
return
else
call DoNothing( )
endif
set udg_SoulSpellsRaging_Soul = GroupPickRandomUnit(GetUnitsInRangeOfLocMatching(500.00, GetUnitLoc(GetTriggerUnit()), Condition(function Trig_Raging_Soul_Func005002001003)))
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = ( 4 + udg_SoulSpellsEmpower_Bonus )
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Raging_Soul_Func006Func001001() ) then
call DisplayTimedTextToForce( udg_SoulSpellsSoul_Player, 5.00, ( "|Cff00ff00Soul Count: " + I2S(udg_SoulSpellsSoul_Count) ) )
else
call DoNothing( )
endif
if ( Trig_Raging_Soul_Func006Func002001() ) then
return
else
call DoNothing( )
endif
call CreateNUnitsAtLoc( 1, 'u00J', GetOwningPlayer(GetTriggerUnit()), GetUnitLoc(udg_SoulSpellsRaging_Soul), bj_UNIT_FACING )
call UnitAddAbilityBJ( 'A03Y', GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( 'A03Y', GetLastCreatedUnit(), GetUnitAbilityLevelSwapped('A048', GetSpellAbilityUnit()) )
call ExplodeUnitBJ( GetLastCreatedUnit() )
call RemoveUnit( GetLastCreatedUnit() )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_SoulSpellsRaging_Soul), "Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_SoulSpellsRaging_Soul), "Abilities\\Spells\\NightElf\\BattleRoar\\RoarCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call TriggerSleepAction( 0.20 )
set udg_SoulSpellsSoul_Count = ( udg_SoulSpellsSoul_Count - 1 )
call RemoveUnit( udg_SoulSpellsRaging_Soul )
set udg_SoulSpellsRaging_Soul = GroupPickRandomUnit(GetUnitsInRangeOfLocMatching(500.00, GetUnitLoc(udg_SoulSpellsRaging_Soul), Condition(function Trig_Raging_Soul_Func006Func015002001003)))
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call DisplayTimedTextToForce( udg_SoulSpellsSoul_Player, 5.00, ( "|Cff00ff00Soul Count: " + I2S(udg_SoulSpellsSoul_Count) ) )
endfunction
//===========================================================================
function InitTrig_Raging_Soul takes nothing returns nothing
set gg_trg_Raging_Soul = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Raging_Soul, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Raging_Soul, Condition( function Trig_Raging_Soul_Conditions ) )
call TriggerAddAction( gg_trg_Raging_Soul, function Trig_Raging_Soul_Actions )
endfunction
//Raw Codes
function RawDummy_Chain takes nothing returns integer
return 'o008'
endfunction
function RawChain_Venom takes nothing returns integer
return 'A04C'
endfunction
function RawVenom_Buff takes nothing returns integer
return 'A04E'
endfunction
//===============================================================================
function Trig_Chain_Venom_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == RawChain_Venom() ) ) then
return false
endif
return true
endfunction
function IsMech takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_MECHANICAL) == false )
endfunction
function IsStructure takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function IsImmuneMagic takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_MAGIC_IMMUNE) == false )
endfunction
function IsDead takes nothing returns boolean
return ( IsUnitDeadBJ(GetFilterUnit()) == false )
endfunction
function check2 takes nothing returns boolean
return GetBooleanAnd( IsDead(), IsImmuneMagic() )
endfunction
function check1 takes nothing returns boolean
return GetBooleanAnd( IsStructure(), check2() )
endfunction
function check_bool takes nothing returns boolean
return GetBooleanAnd( IsMech(), check1() )
endfunction
function Trig_Chain_Venom_Actions takes nothing returns nothing
local integer num_hit = 0
local integer level
local group target_group = CreateGroup()
local group nearby_units = CreateGroup()
local unit target_unit
local unit dummy_chain
local unit caster
local location dummy_pos
local location target_pos
set level = GetUnitAbilityLevel(GetTriggerUnit(), RawChain_Venom())
set caster = GetTriggerUnit()
set dummy_pos = GetUnitLoc(caster)
set target_unit = GetSpellTargetUnit()
set target_pos = GetUnitLoc(target_unit)
call CreateNUnitsAtLoc( 1, RawDummy_Chain(), GetOwningPlayer(caster), dummy_pos, bj_UNIT_FACING )
set dummy_chain = GetLastCreatedUnit()
call SetUnitAbilityLevel(dummy_chain,RawVenom_Buff(), level)
call IssueTargetOrder( dummy_chain, "attackonce", target_unit )
call UnitApplyTimedLife( dummy_chain, 'BTLF', 1.00 )
loop
call GroupAddUnitSimple( target_unit, target_group )
call TriggerSleepAction( ( DistanceBetweenPoints(dummy_pos, target_pos) / 1000.00 ) )
call RemoveLocation(dummy_pos)
set dummy_pos = GetUnitLoc(target_unit)
call UnitDamageTargetBJ( caster, target_unit, ( 25.00 + ( ( I2R(level) ) * 25.00 ) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_SLOW_POISON )
set num_hit = num_hit + 1
exitwhen ( num_hit >= (3 + level) )
set nearby_units = GetUnitsInRangeOfLocMatching(500.00, dummy_pos, Condition(function check_bool))
set target_unit = GroupPickRandomUnit(nearby_units )
loop
exitwhen target_unit==null or (IsUnitEnemy(target_unit, GetOwningPlayer(caster))==true and IsUnitInGroup(target_unit, target_group)==false)
call GroupRemoveUnit(nearby_units,target_unit)
set target_unit = GroupPickRandomUnit(nearby_units)
endloop
if ( target_unit == null ) then
set num_hit = 99 //exit
else
call RemoveLocation(target_pos)
set target_pos = GetUnitLoc(target_unit)
call CreateNUnitsAtLoc( 1, RawDummy_Chain(), GetOwningPlayer(caster), dummy_pos, bj_UNIT_FACING )
set dummy_chain = GetLastCreatedUnit()
call SetUnitAbilityLevel(dummy_chain,RawVenom_Buff(), level)
call IssueTargetOrder( dummy_chain, "attackonce", target_unit )
call UnitApplyTimedLife( dummy_chain, 'BTLF', 1.00 )
endif
endloop
call DestroyGroup(target_group)
call DestroyGroup(nearby_units)
call RemoveLocation(dummy_pos)
call RemoveLocation(target_pos)
set target_group = null
set nearby_units = null
set dummy_chain = null
set caster = null
set target_unit = null
set dummy_pos = null
set target_pos = null
endfunction
//===========================================================================
function InitTrig_Chain_Venom takes nothing returns nothing
set gg_trg_Chain_Venom = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Chain_Venom, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Chain_Venom, Condition( function Trig_Chain_Venom_Conditions ) )
call TriggerAddAction( gg_trg_Chain_Venom, function Trig_Chain_Venom_Actions )
endfunction
function Trig_Acid_Armour_Conditions takes nothing returns boolean
if ( not ( UnitHasBuffBJ(GetAttackedUnitBJ(), 'B006') == true ) ) then
return false
endif
return true
endfunction
function Trig_Acid_Armour_Actions takes nothing returns nothing
call CreateNUnitsAtLocFacingLocBJ( 1, 'h00P', GetOwningPlayer(GetAttackedUnitBJ()), GetUnitLoc(GetAttackedUnitBJ()), GetUnitLoc(GetAttacker()) )
set udg_AcidArmourDummy = GetLastCreatedUnit()
call UnitAddAbilityBJ( 'A082', udg_AcidArmourDummy )
call SetUnitAbilityLevelSwapped( 'A082', udg_AcidArmourDummy, GetUnitAbilityLevelSwapped('A081', GetAttackedUnitBJ()) )
call IssueTargetOrderBJ( GetLastCreatedUnit(), "shadowstrike", GetAttacker() )
call RemoveUnit( udg_AcidArmourDummy )
endfunction
//===========================================================================
function InitTrig_Acid_Armour takes nothing returns nothing
set gg_trg_Acid_Armour = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Acid_Armour, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Acid_Armour, Condition( function Trig_Acid_Armour_Conditions ) )
call TriggerAddAction( gg_trg_Acid_Armour, function Trig_Acid_Armour_Actions )
endfunction
function Trig_Circle_of_Life_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'h00J' ) ) then
return false
endif
return true
endfunction
function Trig_Circle_of_Life_Func001Func003001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A070', GetSummoningUnit()) == 1 )
endfunction
function Trig_Circle_of_Life_Func001Func003002 takes nothing returns boolean
return ( IsUnitAliveBJ(GetSummonedUnit()) == true )
endfunction
function Trig_Circle_of_Life_Func001C takes nothing returns boolean
if ( not GetBooleanAnd( Trig_Circle_of_Life_Func001Func003001(), Trig_Circle_of_Life_Func001Func003002() ) ) then
return false
endif
return true
endfunction
function Trig_Circle_of_Life_Func002Func003001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A070', GetSummoningUnit()) == 2 )
endfunction
function Trig_Circle_of_Life_Func002Func003002 takes nothing returns boolean
return ( IsUnitAliveBJ(GetSummonedUnit()) == true )
endfunction
function Trig_Circle_of_Life_Func002C takes nothing returns boolean
if ( not GetBooleanAnd( Trig_Circle_of_Life_Func002Func003001(), Trig_Circle_of_Life_Func002Func003002() ) ) then
return false
endif
return true
endfunction
function Trig_Circle_of_Life_Func003Func001001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A070', GetSummoningUnit()) == 3 )
endfunction
function Trig_Circle_of_Life_Func003Func001002 takes nothing returns boolean
return ( IsUnitAliveBJ(GetSummonedUnit()) == true )
endfunction
function Trig_Circle_of_Life_Func003C takes nothing returns boolean
if ( not GetBooleanAnd( Trig_Circle_of_Life_Func003Func001001(), Trig_Circle_of_Life_Func003Func001002() ) ) then
return false
endif
return true
endfunction
function Trig_Circle_of_Life_Func004Func001001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A070', GetSummoningUnit()) == 4 )
endfunction
function Trig_Circle_of_Life_Func004Func001002 takes nothing returns boolean
return ( IsUnitAliveBJ(GetSummonedUnit()) == true )
endfunction
function Trig_Circle_of_Life_Func004C takes nothing returns boolean
if ( not GetBooleanAnd( Trig_Circle_of_Life_Func004Func001001(), Trig_Circle_of_Life_Func004Func001002() ) ) then
return false
endif
return true
endfunction
function Trig_Circle_of_Life_Func005Func001001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A070', GetSummoningUnit()) == 5 )
endfunction
function Trig_Circle_of_Life_Func005Func001002 takes nothing returns boolean
return ( IsUnitAliveBJ(GetSummonedUnit()) == true )
endfunction
function Trig_Circle_of_Life_Func005C takes nothing returns boolean
if ( not GetBooleanAnd( Trig_Circle_of_Life_Func005Func001001(), Trig_Circle_of_Life_Func005Func001002() ) ) then
return false
endif
return true
endfunction
function Trig_Circle_of_Life_Func006Func001001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A070', GetSummoningUnit()) == 6 )
endfunction
function Trig_Circle_of_Life_Func006Func001002 takes nothing returns boolean
return ( IsUnitAliveBJ(GetSummonedUnit()) == true )
endfunction
function Trig_Circle_of_Life_Func006C takes nothing returns boolean
if ( not GetBooleanAnd( Trig_Circle_of_Life_Func006Func001001(), Trig_Circle_of_Life_Func006Func001002() ) ) then
return false
endif
return true
endfunction
function Trig_Circle_of_Life_Func007Func001001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A070', GetSummoningUnit()) == 7 )
endfunction
function Trig_Circle_of_Life_Func007Func001002 takes nothing returns boolean
return ( IsUnitAliveBJ(GetSummonedUnit()) == true )
endfunction
function Trig_Circle_of_Life_Func007C takes nothing returns boolean
if ( not GetBooleanAnd( Trig_Circle_of_Life_Func007Func001001(), Trig_Circle_of_Life_Func007Func001002() ) ) then
return false
endif
return true
endfunction
function Trig_Circle_of_Life_Func008Func001001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A070', GetSummoningUnit()) == 8 )
endfunction
function Trig_Circle_of_Life_Func008Func001002 takes nothing returns boolean
return ( IsUnitAliveBJ(GetSummonedUnit()) == true )
endfunction
function Trig_Circle_of_Life_Func008C takes nothing returns boolean
if ( not GetBooleanAnd( Trig_Circle_of_Life_Func008Func001001(), Trig_Circle_of_Life_Func008Func001002() ) ) then
return false
endif
return true
endfunction
function Trig_Circle_of_Life_Func009Func001001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A070', GetSummoningUnit()) == 9 )
endfunction
function Trig_Circle_of_Life_Func009Func001002 takes nothing returns boolean
return ( IsUnitAliveBJ(GetSummonedUnit()) == true )
endfunction
function Trig_Circle_of_Life_Func009C takes nothing returns boolean
if ( not GetBooleanAnd( Trig_Circle_of_Life_Func009Func001001(), Trig_Circle_of_Life_Func009Func001002() ) ) then
return false
endif
return true
endfunction
function Trig_Circle_of_Life_Func010Func001001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A070', GetSummoningUnit()) == 10 )
endfunction
function Trig_Circle_of_Life_Func010Func001002 takes nothing returns boolean
return ( IsUnitAliveBJ(GetSummonedUnit()) == true )
endfunction
function Trig_Circle_of_Life_Func010C takes nothing returns boolean
if ( not GetBooleanAnd( Trig_Circle_of_Life_Func010Func001001(), Trig_Circle_of_Life_Func010Func001002() ) ) then
return false
endif
return true
endfunction
function Trig_Circle_of_Life_Actions takes nothing returns nothing
if ( Trig_Circle_of_Life_Func001C() ) then
call PolledWait( 9.75 )
call CreateNUnitsAtLoc( 1, 'e00L', GetOwningPlayer(GetSummoningUnit()), GetUnitLoc(GetSummonedUnit()), GetUnitFacing(GetSummonedUnit()) )
else
endif
if ( Trig_Circle_of_Life_Func002C() ) then
call PolledWait( 9.75 )
call CreateNUnitsAtLoc( 1, 'e00M', GetOwningPlayer(GetSummoningUnit()), GetUnitLoc(GetSummonedUnit()), GetUnitFacing(GetSummonedUnit()) )
else
endif
if ( Trig_Circle_of_Life_Func003C() ) then
call PolledWait( 9.75 )
call CreateNUnitsAtLoc( 1, 'e01C', GetOwningPlayer(GetSummoningUnit()), GetUnitLoc(GetSummonedUnit()), GetUnitFacing(GetSummonedUnit()) )
else
endif
if ( Trig_Circle_of_Life_Func004C() ) then
call PolledWait( 9.75 )
call CreateNUnitsAtLoc( 1, 'e01E', GetOwningPlayer(GetSummoningUnit()), GetUnitLoc(GetSummonedUnit()), GetUnitFacing(GetSummonedUnit()) )
else
endif
if ( Trig_Circle_of_Life_Func005C() ) then
call PolledWait( 9.75 )
call CreateNUnitsAtLoc( 1, 'e01A', GetOwningPlayer(GetSummoningUnit()), GetUnitLoc(GetSummonedUnit()), GetUnitFacing(GetSummonedUnit()) )
else
endif
if ( Trig_Circle_of_Life_Func006C() ) then
call PolledWait( 9.75 )
call CreateNUnitsAtLoc( 1, 'e019', GetOwningPlayer(GetSummoningUnit()), GetUnitLoc(GetSummonedUnit()), GetUnitFacing(GetSummonedUnit()) )
else
endif
if ( Trig_Circle_of_Life_Func007C() ) then
call PolledWait( 9.75 )
call CreateNUnitsAtLoc( 1, 'e00N', GetOwningPlayer(GetSummoningUnit()), GetUnitLoc(GetSummonedUnit()), GetUnitFacing(GetSummonedUnit()) )
else
endif
if ( Trig_Circle_of_Life_Func008C() ) then
call PolledWait( 9.75 )
call CreateNUnitsAtLoc( 1, 'e01B', GetOwningPlayer(GetSummoningUnit()), GetUnitLoc(GetSummonedUnit()), GetUnitFacing(GetSummonedUnit()) )
else
endif
if ( Trig_Circle_of_Life_Func009C() ) then
call PolledWait( 9.75 )
call CreateNUnitsAtLoc( 1, 'e01D', GetOwningPlayer(GetSummoningUnit()), GetUnitLoc(GetSummonedUnit()), GetUnitFacing(GetSummonedUnit()) )
else
endif
if ( Trig_Circle_of_Life_Func010C() ) then
call PolledWait( 9.75 )
call CreateNUnitsAtLoc( 1, 'e01F', GetOwningPlayer(GetSummoningUnit()), GetUnitLoc(GetSummonedUnit()), GetUnitFacing(GetSummonedUnit()) )
else
endif
call SetUnitAnimation( GetLastCreatedUnit(), "birth" )
call TriggerSleepAction( 1.33 )
call ResetUnitAnimation( GetLastCreatedUnit() )
endfunction
//===========================================================================
function InitTrig_Circle_of_Life takes nothing returns nothing
set gg_trg_Circle_of_Life = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Circle_of_Life, EVENT_PLAYER_UNIT_SUMMON )
call TriggerAddCondition( gg_trg_Circle_of_Life, Condition( function Trig_Circle_of_Life_Conditions ) )
call TriggerAddAction( gg_trg_Circle_of_Life, function Trig_Circle_of_Life_Actions )
endfunction
function Trig_Eat_Tree_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A074' ) ) then
return false
endif
return true
endfunction
function Trig_Eat_Tree_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'h00P', GetOwningPlayer(GetSpellAbilityUnit()), PolarProjectionBJ(GetUnitLoc(GetSpellAbilityUnit()), 50.00, 0), bj_UNIT_FACING )
call UnitAddAbilityBJ( 'A06W', GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( 'A06W', GetLastCreatedUnit(), GetUnitAbilityLevelSwapped('A074', GetSpellAbilityUnit()) )
call UnitAddAbilityBJ( 'A04H', GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( 'A04H', GetLastCreatedUnit(), GetUnitAbilityLevelSwapped('A074', GetSpellAbilityUnit()) )
call IssueTargetOrderBJ( GetLastCreatedUnit(), "bloodlust", GetSpellAbilityUnit() )
call IssueTargetOrderBJ( GetLastCreatedUnit(), "rejuvination", GetSpellAbilityUnit() )
call PolledWait( 1.00 )
call RemoveUnit( GetLastCreatedUnit() )
endfunction
//===========================================================================
function InitTrig_Eat_Tree takes nothing returns nothing
set gg_trg_Eat_Tree = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Eat_Tree, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Eat_Tree, Condition( function Trig_Eat_Tree_Conditions ) )
call TriggerAddAction( gg_trg_Eat_Tree, function Trig_Eat_Tree_Actions )
endfunction
function Trig_Curse_of_Crovax_Set_Damage_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A089' ) ) then
return false
endif
return true
endfunction
function Trig_Curse_of_Crovax_Set_Damage_Func002001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A089', GetSpellAbilityUnit()) == 1 )
endfunction
function Trig_Curse_of_Crovax_Set_Damage_Func003001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A089', GetSpellAbilityUnit()) == 2 )
endfunction
function Trig_Curse_of_Crovax_Set_Damage_Func004001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A089', GetSpellAbilityUnit()) == 3 )
endfunction
function Trig_Curse_of_Crovax_Set_Damage_Func005001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A089', GetSpellAbilityUnit()) == 4 )
endfunction
function Trig_Curse_of_Crovax_Set_Damage_Func006001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A089', GetSpellAbilityUnit()) == 5 )
endfunction
function Trig_Curse_of_Crovax_Set_Damage_Func007001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A089', GetSpellAbilityUnit()) == 6 )
endfunction
function Trig_Curse_of_Crovax_Set_Damage_Func008001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A089', GetSpellAbilityUnit()) == 7 )
endfunction
function Trig_Curse_of_Crovax_Set_Damage_Func009001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A089', GetSpellAbilityUnit()) == 8 )
endfunction
function Trig_Curse_of_Crovax_Set_Damage_Func010001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A089', GetSpellAbilityUnit()) == 9 )
endfunction
function Trig_Curse_of_Crovax_Set_Damage_Func011001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A089', GetSpellAbilityUnit()) == 10 )
endfunction
function Trig_Curse_of_Crovax_Set_Damage_Actions takes nothing returns nothing
set udg_CoCCaster = GetSpellAbilityUnit()
if ( Trig_Curse_of_Crovax_Set_Damage_Func002001() ) then
set udg_CoCDamage = 20.00
else
call DoNothing( )
endif
if ( Trig_Curse_of_Crovax_Set_Damage_Func003001() ) then
set udg_CoCDamage = 25.00
else
call DoNothing( )
endif
if ( Trig_Curse_of_Crovax_Set_Damage_Func004001() ) then
set udg_CoCDamage = 31.25
else
call DoNothing( )
endif
if ( Trig_Curse_of_Crovax_Set_Damage_Func005001() ) then
set udg_CoCDamage = 39.06
else
call DoNothing( )
endif
if ( Trig_Curse_of_Crovax_Set_Damage_Func006001() ) then
set udg_CoCDamage = 48.83
else
call DoNothing( )
endif
if ( Trig_Curse_of_Crovax_Set_Damage_Func007001() ) then
set udg_CoCDamage = 61.04
else
call DoNothing( )
endif
if ( Trig_Curse_of_Crovax_Set_Damage_Func008001() ) then
set udg_CoCDamage = 76.29
else
call DoNothing( )
endif
if ( Trig_Curse_of_Crovax_Set_Damage_Func009001() ) then
set udg_CoCDamage = 95.37
else
call DoNothing( )
endif
if ( Trig_Curse_of_Crovax_Set_Damage_Func010001() ) then
set udg_CoCDamage = 119.21
else
call DoNothing( )
endif
if ( Trig_Curse_of_Crovax_Set_Damage_Func011001() ) then
set udg_CoCDamage = 149.01
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Curse_of_Crovax_Set_Damage takes nothing returns nothing
set gg_trg_Curse_of_Crovax_Set_Damage = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Curse_of_Crovax_Set_Damage, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Curse_of_Crovax_Set_Damage, Condition( function Trig_Curse_of_Crovax_Set_Damage_Conditions ) )
call TriggerAddAction( gg_trg_Curse_of_Crovax_Set_Damage, function Trig_Curse_of_Crovax_Set_Damage_Actions )
endfunction
function Trig_Curse_of_Crovax_Damage_Conditions takes nothing returns boolean
if ( not ( UnitHasBuffBJ(GetAttacker(), 'B00C') == true ) ) then
return false
endif
return true
endfunction
function Trig_Curse_of_Crovax_Damage_Func002C takes nothing returns boolean
if ( not ( udg_CoC_RandomInteger <= 30 ) ) then
return false
endif
return true
endfunction
function Trig_Curse_of_Crovax_Damage_Actions takes nothing returns nothing
set udg_CoC_RandomInteger = GetRandomInt(1, 100)
if ( Trig_Curse_of_Crovax_Damage_Func002C() ) then
call UnitDamageTargetBJ( udg_CoCCaster, GetAttacker(), udg_CoCDamage, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
endif
endfunction
//===========================================================================
function InitTrig_Curse_of_Crovax_Damage takes nothing returns nothing
set gg_trg_Curse_of_Crovax_Damage = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Curse_of_Crovax_Damage, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Curse_of_Crovax_Damage, Condition( function Trig_Curse_of_Crovax_Damage_Conditions ) )
call TriggerAddAction( gg_trg_Curse_of_Crovax_Damage, function Trig_Curse_of_Crovax_Damage_Actions )
endfunction
function Trig_Psychic_Scream_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A08A' ) ) then
return false
endif
return true
endfunction
function Trig_Psychic_Scream_Func004002003001 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != GetOwningPlayer(GetSpellAbilityUnit()) )
endfunction
function Trig_Psychic_Scream_Func004002003002001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(GetSpellAbilityUnit())) == true )
endfunction
function Trig_Psychic_Scream_Func004002003002002 takes nothing returns boolean
return ( IsUnitDeadBJ(GetFilterUnit()) == false )
endfunction
function Trig_Psychic_Scream_Func004002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Psychic_Scream_Func004002003002001(), Trig_Psychic_Scream_Func004002003002002() )
endfunction
function Trig_Psychic_Scream_Func004002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Psychic_Scream_Func004002003001(), Trig_Psychic_Scream_Func004002003002() )
endfunction
function Trig_Psychic_Scream_Func006A takes nothing returns nothing
set udg_PsychicScreamGroupUnit[udg_PsychicScreamGroupCount] = GetEnumUnit()
set udg_PsychicScreamGroupPlayer[udg_PsychicScreamGroupCount] = GetOwningPlayer(GetEnumUnit())
call SetUnitOwner( GetEnumUnit(), Player(PLAYER_NEUTRAL_AGGRESSIVE), false )
set udg_PsychicScreamGroupCount = ( udg_PsychicScreamGroupCount + 1 )
endfunction
function Trig_Psychic_Scream_Func007Func001C takes nothing returns boolean
return true
endfunction
function Trig_Psychic_Scream_Func007A takes nothing returns nothing
if ( Trig_Psychic_Scream_Func007Func001C() ) then
set udg_PsychicScream_Point[udg_PsychicScream_IntegerCount] = GetUnitLoc(GetSpellAbilityUnit())
set udg_PsychicScream_IntegerCount = ( udg_PsychicScream_IntegerCount + 1 )
set udg_PsychicScream_Point[udg_PsychicScream_IntegerCount] = GetUnitLoc(GetEnumUnit())
call IssuePointOrderLocBJ( GetEnumUnit(), "move", PolarProjectionBJ(udg_PsychicScream_Point[udg_PsychicScream_IntegerCount], 600.00, ( AngleBetweenPoints(udg_PsychicScream_Point[udg_PsychicScream_IntegerCount], udg_PsychicScream_Point[( udg_PsychicScream_IntegerCount - 1 )]) + 180.00 )) )
set udg_PsychicScream_IntegerCount = ( udg_PsychicScream_IntegerCount + 1 )
else
call DoNothing( )
endif
endfunction
function Trig_Psychic_Scream_Func009001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A08A', GetSpellAbilityUnit()) == 1 )
endfunction
function Trig_Psychic_Scream_Func010001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A08A', GetSpellAbilityUnit()) == 2 )
endfunction
function Trig_Psychic_Scream_Func011001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A08A', GetSpellAbilityUnit()) == 3 )
endfunction
function Trig_Psychic_Scream_Func012001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A08A', GetSpellAbilityUnit()) == 4 )
endfunction
function Trig_Psychic_Scream_Func013001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A08A', GetSpellAbilityUnit()) == 5 )
endfunction
function Trig_Psychic_Scream_Func014001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A08A', GetSpellAbilityUnit()) == 6 )
endfunction
function Trig_Psychic_Scream_Func015001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A08A', GetSpellAbilityUnit()) == 7 )
endfunction
function Trig_Psychic_Scream_Func016001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A08A', GetSpellAbilityUnit()) == 8 )
endfunction
function Trig_Psychic_Scream_Func017001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A08A', GetSpellAbilityUnit()) == 9 )
endfunction
function Trig_Psychic_Scream_Func018001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A08A', GetSpellAbilityUnit()) == 10 )
endfunction
function Trig_Psychic_Scream_Actions takes nothing returns nothing
set udg_PsychicScream_IntegerCount = 0
set udg_PsychicScream_Point[udg_PsychicScream_IntegerCount] = GetUnitLoc(GetSpellAbilityUnit())
set udg_PsychicScream_IntegerCount = ( udg_PsychicScream_IntegerCount + 1 )
set udg_PsychicScream_Group = GetUnitsInRangeOfLocMatching(300.00, udg_PsychicScream_Point[( udg_PsychicScream_IntegerCount - 1 )], Condition(function Trig_Psychic_Scream_Func004002003))
set udg_PsychicScreamGroupCount = 1
call ForGroupBJ( udg_PsychicScream_Group, function Trig_Psychic_Scream_Func006A )
call ForGroupBJ( udg_PsychicScream_Group, function Trig_Psychic_Scream_Func007A )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = udg_PsychicScream_IntegerCount
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call RemoveLocation( udg_PsychicScream_Point[GetForLoopIndexA () ] )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
if ( Trig_Psychic_Scream_Func009001() ) then
call PolledWait( 1.00 )
else
call DoNothing( )
endif
if ( Trig_Psychic_Scream_Func010001() ) then
call PolledWait( 2.00 )
else
call DoNothing( )
endif
if ( Trig_Psychic_Scream_Func011001() ) then
call PolledWait( 3.00 )
else
call DoNothing( )
endif
if ( Trig_Psychic_Scream_Func012001() ) then
call PolledWait( 4.00 )
else
call DoNothing( )
endif
if ( Trig_Psychic_Scream_Func013001() ) then
call PolledWait( 5.00 )
else
call DoNothing( )
endif
if ( Trig_Psychic_Scream_Func014001() ) then
call PolledWait( 6.00 )
else
call DoNothing( )
endif
if ( Trig_Psychic_Scream_Func015001() ) then
call PolledWait( 7.00 )
else
call DoNothing( )
endif
if ( Trig_Psychic_Scream_Func016001() ) then
call PolledWait( 8.00 )
else
call DoNothing( )
endif
if ( Trig_Psychic_Scream_Func017001() ) then
call PolledWait( 9.00 )
else
call DoNothing( )
endif
if ( Trig_Psychic_Scream_Func018001() ) then
call PolledWait( 10.00 )
else
call DoNothing( )
endif
call TriggerExecute( gg_trg_Change_back_Units_to_player )
endfunction
//===========================================================================
function InitTrig_Psychic_Scream takes nothing returns nothing
set gg_trg_Psychic_Scream = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Psychic_Scream, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Psychic_Scream, Condition( function Trig_Psychic_Scream_Conditions ) )
call TriggerAddAction( gg_trg_Psychic_Scream, function Trig_Psychic_Scream_Actions )
endfunction
function Trig_Change_back_Units_to_player_Actions takes nothing returns nothing
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = udg_PsychicScreamGroupCount
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call SetUnitOwner( udg_PsychicScreamGroupUnit[GetForLoopIndexA()], udg_PsychicScreamGroupPlayer[GetForLoopIndexA()], false )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call DestroyGroup( udg_PsychicScream_Group )
endfunction
//===========================================================================
function InitTrig_Change_back_Units_to_player takes nothing returns nothing
set gg_trg_Change_back_Units_to_player = CreateTrigger( )
call TriggerAddAction( gg_trg_Change_back_Units_to_player, function Trig_Change_back_Units_to_player_Actions )
endfunction
function Trig_Flame_Shield_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AX' ) ) then
return false
endif
return true
endfunction
function Trig_Flame_Shield_Func001001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0AX', GetSpellAbilityUnit()) == 1 )
endfunction
function Trig_Flame_Shield_Func002001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0AX', GetSpellAbilityUnit()) == 2 )
endfunction
function Trig_Flame_Shield_Func003001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0AX', GetSpellAbilityUnit()) == 3 )
endfunction
function Trig_Flame_Shield_Func004001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0AX', GetSpellAbilityUnit()) == 4 )
endfunction
function Trig_Flame_Shield_Func005001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0AX', GetSpellAbilityUnit()) == 5 )
endfunction
function Trig_Flame_Shield_Func006001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0AX', GetSpellAbilityUnit()) == 6 )
endfunction
function Trig_Flame_Shield_Func007001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0AX', GetSpellAbilityUnit()) == 7 )
endfunction
function Trig_Flame_Shield_Func008001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0AX', GetSpellAbilityUnit()) == 8 )
endfunction
function Trig_Flame_Shield_Func009001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0AX', GetSpellAbilityUnit()) == 9 )
endfunction
function Trig_Flame_Shield_Func010001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0AX', GetSpellAbilityUnit()) == 10 )
endfunction
function Trig_Flame_Shield_Func013Func002Func004002003001 takes nothing returns boolean
return ( IsPlayerEnemy(GetOwningPlayer(GetFilterUnit()), GetTriggerPlayer()) == true )
endfunction
function Trig_Flame_Shield_Func013Func002Func004002003002 takes nothing returns boolean
return ( IsUnitAliveBJ(GetFilterUnit()) == true )
endfunction
function Trig_Flame_Shield_Func013Func002Func004002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Flame_Shield_Func013Func002Func004002003001(), Trig_Flame_Shield_Func013Func002Func004002003002() )
endfunction
function Trig_Flame_Shield_Func013Func002Func006A takes nothing returns nothing
call UnitDamageTargetBJ( GetTriggerUnit(), GetEnumUnit(), udg_FlameShieldDamage, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call AddSpecialEffectTargetUnitBJ( "origin", GetEnumUnit(), "Abilities\\Weapons\\RedDragonBreath\\RedDragonMissile.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call DestroyGroup (udg_FlameShieldGroup)
endfunction
function Trig_Flame_Shield_Func013Func002C takes nothing returns boolean
if ( not ( GetUnitStateSwap(UNIT_STATE_LIFE, GetTriggerUnit()) < 5.00 ) ) then
return false
endif
return true
endfunction
function Trig_Flame_Shield_Actions takes nothing returns nothing
if ( Trig_Flame_Shield_Func001001() ) then
set udg_FlameShieldDamage = 5.00
else
call DoNothing( )
endif
if ( Trig_Flame_Shield_Func002001() ) then
set udg_FlameShieldDamage = 6.25
else
call DoNothing( )
endif
if ( Trig_Flame_Shield_Func003001() ) then
set udg_FlameShieldDamage = 7.81
else
call DoNothing( )
endif
if ( Trig_Flame_Shield_Func004001() ) then
set udg_FlameShieldDamage = 9.77
else
call DoNothing( )
endif
if ( Trig_Flame_Shield_Func005001() ) then
set udg_FlameShieldDamage = 12.21
else
call DoNothing( )
endif
if ( Trig_Flame_Shield_Func006001() ) then
set udg_FlameShieldDamage = 15.26
else
call DoNothing( )
endif
if ( Trig_Flame_Shield_Func007001() ) then
set udg_FlameShieldDamage = 19.07
else
call DoNothing( )
endif
if ( Trig_Flame_Shield_Func008001() ) then
set udg_FlameShieldDamage = 23.84
else
call DoNothing( )
endif
if ( Trig_Flame_Shield_Func009001() ) then
set udg_FlameShieldDamage = 29.80
else
call DoNothing( )
endif
if ( Trig_Flame_Shield_Func010001() ) then
set udg_FlameShieldDamage = 37.25
else
call DoNothing( )
endif
call UnitAddAbilityBJ( 'A0AW', GetTriggerUnit() )
call SetUnitAbilityLevelSwapped( 'A0AW', GetTriggerUnit(), GetUnitAbilityLevelSwapped('A0AX', GetTriggerUnit()) )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 10
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call PolledWait( 1.00 )
if ( Trig_Flame_Shield_Func013Func002C() ) then
return
else
set udg_FlameShieldLoc = GetUnitLoc(GetTriggerUnit())
call AddSpecialEffectTargetUnitBJ( "origin", GetTriggerUnit(), "Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
set udg_FlameShieldGroup = GetUnitsInRangeOfLocMatching(300.00, udg_FlameShieldLoc, Condition(function Trig_Flame_Shield_Func013Func002Func004002003))
call RemoveLocation (udg_FlameShieldLoc)
call ForGroupBJ( udg_FlameShieldGroup, function Trig_Flame_Shield_Func013Func002Func006A )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call UnitRemoveAbilityBJ( 'A0AW', GetTriggerUnit() )
endfunction
//===========================================================================
function InitTrig_Flame_Shield takes nothing returns nothing
set gg_trg_Flame_Shield = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Flame_Shield, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Flame_Shield, Condition( function Trig_Flame_Shield_Conditions ) )
call TriggerAddAction( gg_trg_Flame_Shield, function Trig_Flame_Shield_Actions )
endfunction
function Trig_Fire_Protecktion_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A08F' ) ) then
return false
endif
return true
endfunction
function Trig_Fire_Protecktion_Func002001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A08F', GetSpellAbilityUnit()) == 1 )
endfunction
function Trig_Fire_Protecktion_Func003001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A08F', GetSpellAbilityUnit()) == 2 )
endfunction
function Trig_Fire_Protecktion_Func004001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A08F', GetSpellAbilityUnit()) == 3 )
endfunction
function Trig_Fire_Protecktion_Func005001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A08F', GetSpellAbilityUnit()) == 4 )
endfunction
function Trig_Fire_Protecktion_Func006001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A08F', GetSpellAbilityUnit()) == 5 )
endfunction
function Trig_Fire_Protecktion_Func007001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A08F', GetSpellAbilityUnit()) == 6 )
endfunction
function Trig_Fire_Protecktion_Func008001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A08F', GetSpellAbilityUnit()) == 7 )
endfunction
function Trig_Fire_Protecktion_Func009001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A08F', GetSpellAbilityUnit()) == 8 )
endfunction
function Trig_Fire_Protecktion_Func010001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A08F', GetSpellAbilityUnit()) == 9 )
endfunction
function Trig_Fire_Protecktion_Func011001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A08F', GetSpellAbilityUnit()) == 10 )
endfunction
function Trig_Fire_Protecktion_Actions takes nothing returns nothing
set udg_FireProtectionCaster = GetTriggerUnit()
if ( Trig_Fire_Protecktion_Func002001() ) then
call CreateNUnitsAtLoc( 1, 'e01O', GetOwningPlayer(udg_FireProtectionCaster), OffsetLocation(GetUnitLoc(udg_FireProtectionCaster), 100.00, 100.00), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_Fire_Protecktion_Func003001() ) then
call CreateNUnitsAtLoc( 1, 'e01N', GetOwningPlayer(udg_FireProtectionCaster), OffsetLocation(GetUnitLoc(udg_FireProtectionCaster), 100.00, 100.00), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_Fire_Protecktion_Func004001() ) then
call CreateNUnitsAtLoc( 1, 'e01M', GetOwningPlayer(udg_FireProtectionCaster), OffsetLocation(GetUnitLoc(udg_FireProtectionCaster), 100.00, 100.00), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_Fire_Protecktion_Func005001() ) then
call CreateNUnitsAtLoc( 1, 'e01L', GetOwningPlayer(udg_FireProtectionCaster), OffsetLocation(GetUnitLoc(udg_FireProtectionCaster), 100.00, 100.00), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_Fire_Protecktion_Func006001() ) then
call CreateNUnitsAtLoc( 1, 'e01K', GetOwningPlayer(udg_FireProtectionCaster), OffsetLocation(GetUnitLoc(udg_FireProtectionCaster), 100.00, 100.00), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_Fire_Protecktion_Func007001() ) then
call CreateNUnitsAtLoc( 1, 'e01J', GetOwningPlayer(udg_FireProtectionCaster), OffsetLocation(GetUnitLoc(udg_FireProtectionCaster), 100.00, 100.00), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_Fire_Protecktion_Func008001() ) then
call CreateNUnitsAtLoc( 1, 'e01I', GetOwningPlayer(udg_FireProtectionCaster), OffsetLocation(GetUnitLoc(udg_FireProtectionCaster), 100.00, 100.00), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_Fire_Protecktion_Func009001() ) then
call CreateNUnitsAtLoc( 1, 'e01H', GetOwningPlayer(udg_FireProtectionCaster), OffsetLocation(GetUnitLoc(udg_FireProtectionCaster), 100.00, 100.00), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_Fire_Protecktion_Func010001() ) then
call CreateNUnitsAtLoc( 1, 'e01G', GetOwningPlayer(udg_FireProtectionCaster), OffsetLocation(GetUnitLoc(udg_FireProtectionCaster), 100.00, 100.00), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_Fire_Protecktion_Func011001() ) then
call CreateNUnitsAtLoc( 1, 'e016', GetOwningPlayer(udg_FireProtectionCaster), OffsetLocation(GetUnitLoc(udg_FireProtectionCaster), 100.00, 100.00), bj_UNIT_FACING )
else
call DoNothing( )
endif
set udg_FireProtectionUnit[1] = GetLastCreatedUnit()
call UnitApplyTimedLifeBJ( 30.00, 'BTLF', udg_FireProtectionUnit[1] )
endfunction
//===========================================================================
function InitTrig_Fire_Protecktion takes nothing returns nothing
set gg_trg_Fire_Protecktion = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Fire_Protecktion, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Fire_Protecktion, Condition( function Trig_Fire_Protecktion_Conditions ) )
call TriggerAddAction( gg_trg_Fire_Protecktion, function Trig_Fire_Protecktion_Actions )
endfunction
function Trig_Fire_Protecktion_Follow_Hero_Actions takes nothing returns nothing
set udg_FireProtectionPoint = GetUnitLoc(udg_FireProtectionCaster)
call IssuePointOrderLocBJ( udg_FireProtectionUnit[1], "patrol", udg_FireProtectionPoint )
endfunction
//===========================================================================
function InitTrig_Fire_Protecktion_Follow_Hero takes nothing returns nothing
set gg_trg_Fire_Protecktion_Follow_Hero = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Fire_Protecktion_Follow_Hero, 1.00 )
call TriggerAddAction( gg_trg_Fire_Protecktion_Follow_Hero, function Trig_Fire_Protecktion_Follow_Hero_Actions )
endfunction
function Trig_Fire_Protecktion_Hero_Die_Conditions takes nothing returns boolean
if ( not ( GetDyingUnit() == udg_FireProtectionCaster ) ) then
return false
endif
return true
endfunction
function Trig_Fire_Protecktion_Hero_Die_Actions takes nothing returns nothing
call RemoveUnit( udg_FireProtectionUnit[1] )
endfunction
//===========================================================================
function InitTrig_Fire_Protecktion_Hero_Die takes nothing returns nothing
set gg_trg_Fire_Protecktion_Hero_Die = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Fire_Protecktion_Hero_Die, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Fire_Protecktion_Hero_Die, Condition( function Trig_Fire_Protecktion_Hero_Die_Conditions ) )
call TriggerAddAction( gg_trg_Fire_Protecktion_Hero_Die, function Trig_Fire_Protecktion_Hero_Die_Actions )
endfunction
function Trig_Fire_Orb_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A08G' ) ) then
return false
endif
return true
endfunction
function Trig_Fire_Orb_Actions takes nothing returns nothing
call CreateNUnitsAtLocFacingLocBJ( 1, 'e018', GetOwningPlayer(GetTriggerUnit()), GetUnitLoc(GetTriggerUnit()), GetSpellTargetLoc() )
call SetUnitAbilityLevelSwapped( 'A08C', GetLastCreatedUnit(), GetUnitAbilityLevelSwapped('A08G', GetSpellAbilityUnit()) )
set udg_FireOrbBigOrb = GetLastCreatedUnit()
set udg_FireOrbBigOrbPoint = GetSpellTargetLoc()
set udg_FireOrbBigOrbAngle = GetUnitFacing(udg_FireOrbBigOrb)
call IssuePointOrderLocBJ( udg_FireOrbBigOrb, "move", PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()), 3000.00, udg_FireOrbBigOrbAngle) )
call PlaySoundBJ( gg_snd_FrostBoltLaunch1 )
call PolledWait( 0.50 )
call IssueImmediateOrderBJ( udg_FireOrbBigOrb, "spiritwolf" )
call PlaySoundBJ( gg_snd_FrostNovaTarget1 )
call IssuePointOrderLocBJ( udg_FireOrbBigOrb, "move", PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()), 3000.00, udg_FireOrbBigOrbAngle) )
call PolledWait( 2.00 )
call IssueImmediateOrderBJ( udg_FireOrbBigOrb, "spiritwolf" )
call PlaySoundBJ( gg_snd_FrostNovaTarget1 )
call IssuePointOrderLocBJ( udg_FireOrbBigOrb, "move", PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()), 3000.00, udg_FireOrbBigOrbAngle) )
call PolledWait( 2.00 )
call IssueImmediateOrderBJ( udg_FireOrbBigOrb, "spiritwolf" )
call PlaySoundBJ( gg_snd_FrostNovaTarget1 )
call IssuePointOrderLocBJ( udg_FireOrbBigOrb, "move", PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()), 3000.00, udg_FireOrbBigOrbAngle) )
call PolledWait( 1.00 )
call PlaySoundBJ( gg_snd_FrostBoltHit1 )
call RemoveUnit( udg_FireOrbBigOrb )
endfunction
//===========================================================================
function InitTrig_Fire_Orb takes nothing returns nothing
set gg_trg_Fire_Orb = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Fire_Orb, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Fire_Orb, Condition( function Trig_Fire_Orb_Conditions ) )
call TriggerAddAction( gg_trg_Fire_Orb, function Trig_Fire_Orb_Actions )
endfunction
function Trig_Quick_Blades_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AY' ) ) then
return false
endif
return true
endfunction
function Trig_Quick_Blades_Func001001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0AY', GetSpellAbilityUnit()) == 1 )
endfunction
function Trig_Quick_Blades_Func002001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0AY', GetSpellAbilityUnit()) == 2 )
endfunction
function Trig_Quick_Blades_Func003001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0AY', GetSpellAbilityUnit()) == 3 )
endfunction
function Trig_Quick_Blades_Func004001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0AY', GetSpellAbilityUnit()) == 4 )
endfunction
function Trig_Quick_Blades_Func005001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0AY', GetSpellAbilityUnit()) == 5 )
endfunction
function Trig_Quick_Blades_Func006001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0AY', GetSpellAbilityUnit()) == 6 )
endfunction
function Trig_Quick_Blades_Func007001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0AY', GetSpellAbilityUnit()) == 7 )
endfunction
function Trig_Quick_Blades_Func008001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0AY', GetSpellAbilityUnit()) == 8 )
endfunction
function Trig_Quick_Blades_Func009001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0AY', GetSpellAbilityUnit()) == 9 )
endfunction
function Trig_Quick_Blades_Func010001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0AY', GetSpellAbilityUnit()) == 10 )
endfunction
function Trig_Quick_Blades_Func019Func001C takes nothing returns boolean
if ( not ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_QuickBladesTarget) > udg_QuickBladesDamage ) ) then
return false
endif
return true
endfunction
function Trig_Quick_Blades_Actions takes nothing returns nothing
if ( Trig_Quick_Blades_Func001001() ) then
set udg_QuickBladesDamage = 20.00
else
call DoNothing( )
endif
if ( Trig_Quick_Blades_Func002001() ) then
set udg_QuickBladesDamage = 25.00
else
call DoNothing( )
endif
if ( Trig_Quick_Blades_Func003001() ) then
set udg_QuickBladesDamage = 31.25
else
call DoNothing( )
endif
if ( Trig_Quick_Blades_Func004001() ) then
set udg_QuickBladesDamage = 39.06
else
call DoNothing( )
endif
if ( Trig_Quick_Blades_Func005001() ) then
set udg_QuickBladesDamage = 48.83
else
call DoNothing( )
endif
if ( Trig_Quick_Blades_Func006001() ) then
set udg_QuickBladesDamage = 61.04
else
call DoNothing( )
endif
if ( Trig_Quick_Blades_Func007001() ) then
set udg_QuickBladesDamage = 76.29
else
call DoNothing( )
endif
if ( Trig_Quick_Blades_Func008001() ) then
set udg_QuickBladesDamage = 95.37
else
call DoNothing( )
endif
if ( Trig_Quick_Blades_Func009001() ) then
set udg_QuickBladesDamage = 119.21
else
call DoNothing( )
endif
if ( Trig_Quick_Blades_Func010001() ) then
set udg_QuickBladesDamage = 149.01
else
call DoNothing( )
endif
set udg_QuickBladesCaster = GetTriggerUnit()
set udg_QuickBladesTarget = GetSpellTargetUnit()
call PolledWait( 0.01 )
call SetUnitTimeScalePercent( udg_QuickBladesCaster, 200.00 )
call AddSpecialEffectTargetUnitBJ( "hand, right", udg_QuickBladesCaster, "Abilities\\Spells\\NightElf\\SpiritOfVengeance\\SpiritOfVengeanceBirthMissile.mdl" )
set udg_QuickBladesSE[1] = GetLastCreatedEffectBJ()
call AddSpecialEffectTargetUnitBJ( "hand, left", udg_QuickBladesCaster, "Abilities\\Spells\\NightElf\\SpiritOfVengeance\\SpiritOfVengeanceBirthMissile.mdl" )
set udg_QuickBladesSE[2] = GetLastCreatedEffectBJ()
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 4
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Quick_Blades_Func019Func001C() ) then
call SetUnitAnimation( udg_QuickBladesCaster, "attack" )
set udg_QuickBladesLoc1 = GetUnitLoc(udg_QuickBladesTarget)
set udg_QuickBladesLoc2 = GetRandomLocInRect(RectFromCenterSizeBJ(udg_QuickBladesLoc1, 80.00, 80.00))
call SetUnitFacingToFaceUnitTimed( udg_QuickBladesCaster, udg_QuickBladesTarget, 0 )
call SetUnitPositionLocFacingLocBJ( udg_QuickBladesCaster, udg_QuickBladesLoc2, udg_QuickBladesLoc1 )
call UnitDamageTargetBJ( udg_QuickBladesCaster, udg_QuickBladesTarget, udg_QuickBladesDamage, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call AddSpecialEffectTargetUnitBJ( "chest", udg_QuickBladesCaster, "Abilities\\Spells\\NightElf\\Blink\\BlinkCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectTargetUnitBJ( "chest", udg_QuickBladesTarget, "Abilities\\Weapons\\ZigguratMissile\\ZigguratMissile.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call TriggerSleepAction( 0.15 )
else
call SetUnitAnimation( udg_QuickBladesCaster, "attack" )
call SetUnitTimeScalePercent( udg_QuickBladesCaster, 25.00 )
call SetUnitTimeScalePercent( udg_QuickBladesTarget, 25.00 )
call PolledWait( 1.85 )
call AddSpecialEffectTargetUnitBJ( "head", udg_QuickBladesTarget, "Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl" )
call UnitDamageTargetBJ( udg_QuickBladesCaster, udg_QuickBladesTarget, udg_QuickBladesDamage, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call SetUnitTimeScalePercent( udg_QuickBladesCaster, 100.00 )
call SetUnitVertexColorBJ( udg_QuickBladesCaster, 100.00, 100.00, 100.00, 0.00 )
call DestroyEffectBJ( udg_QuickBladesSE[1] )
call DestroyEffectBJ( udg_QuickBladesSE[2] )
call RemoveLocation (udg_QuickBladesLoc1)
call RemoveLocation (udg_QuickBladesLoc2)
endfunction
//===========================================================================
function InitTrig_Quick_Blades takes nothing returns nothing
set gg_trg_Quick_Blades = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Quick_Blades, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Quick_Blades, Condition( function Trig_Quick_Blades_Conditions ) )
call TriggerAddAction( gg_trg_Quick_Blades, function Trig_Quick_Blades_Actions )
endfunction
function Trig_Heroic_Strike_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0B5' ) ) then
return false
endif
return true
endfunction
function Trig_Heroic_Strike_Func006C takes nothing returns boolean
if ( not ( UnitHasBuffBJ(GetSpellTargetUnit(), 'BHtc') == true ) ) then
return false
endif
return true
endfunction
function Trig_Heroic_Strike_Actions takes nothing returns nothing
call UnitDamageTargetBJ( GetTriggerUnit(), GetSpellTargetUnit(), ( ( I2R(GetUnitAbilityLevelSwapped('A0B5', GetTriggerUnit())) * 0.50 ) * I2R(GetHeroStatBJ(bj_HEROSTAT_STR, GetTriggerUnit(), true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call AddSpecialEffectTargetUnitBJ( "chest", GetSpellTargetUnit(), "Abilities\\Weapons\\PhoenixMissile\\Phoenix_Missile.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectTargetUnitBJ( "chest", GetSpellTargetUnit(), "Abilities\\Weapons\\SteamTank\\SteamTankImpact.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
if ( Trig_Heroic_Strike_Func006C() ) then
call SetUnitLifeBJ( GetSpellAbilityUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellAbilityUnit()) + ( ( I2R(GetUnitAbilityLevelSwapped('A0B5', GetSpellAbilityUnit())) * 0.25 ) * I2R(GetHeroStatBJ(bj_HEROSTAT_STR, GetSpellAbilityUnit(), true)) ) ) )
else
endif
endfunction
//===========================================================================
function InitTrig_Heroic_Strike takes nothing returns nothing
set gg_trg_Heroic_Strike = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Heroic_Strike, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Heroic_Strike, Condition( function Trig_Heroic_Strike_Conditions ) )
call TriggerAddAction( gg_trg_Heroic_Strike, function Trig_Heroic_Strike_Actions )
endfunction
function Trig_Double_Edge_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0B4' ) ) then
return false
endif
return true
endfunction
function Trig_Double_Edge_Actions takes nothing returns nothing
set udg_DoubleEdgeCaster = GetTriggerUnit()
set udg_DoubleEdgeTarget = GetSpellTargetUnit()
set udg_DoubleEdgeLoc1 = GetUnitLoc(udg_DoubleEdgeCaster)
set udg_DoubleEdgeLoc2 = GetUnitLoc(udg_DoubleEdgeTarget)
set udg_DoubleEdgeAngle1 = AngleBetweenPoints(udg_DoubleEdgeLoc1, udg_DoubleEdgeLoc2)
set udg_DoubleEdgeAngle2 = AngleBetweenPoints(udg_DoubleEdgeLoc2, udg_DoubleEdgeLoc1)
set udg_DoubleEdgeDistane1 = ( DistanceBetweenPoints(udg_DoubleEdgeLoc1, udg_DoubleEdgeLoc2) - 100.00 )
set udg_DoubleEdgeDistane2 = ( DistanceBetweenPoints(udg_DoubleEdgeLoc2, udg_DoubleEdgeLoc1) - 100.00 )
set udg_DoubleEdgeLoc3 = PolarProjectionBJ(udg_DoubleEdgeLoc1, ( udg_DoubleEdgeDistane1 / 2.00 ), udg_DoubleEdgeAngle1)
set udg_DoubleEdgeLoc4 = PolarProjectionBJ(udg_DoubleEdgeLoc2, ( udg_DoubleEdgeDistane2 / 2.00 ), udg_DoubleEdgeAngle2)
call SetUnitPositionLocFacingLocBJ( udg_DoubleEdgeTarget, udg_DoubleEdgeLoc4, udg_DoubleEdgeLoc1 )
call SetUnitPositionLocFacingLocBJ( udg_DoubleEdgeCaster, udg_DoubleEdgeLoc3, udg_DoubleEdgeLoc2 )
call AddSpecialEffectTargetUnitBJ( "origin", udg_DoubleEdgeCaster, "Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectTargetUnitBJ( "origin", udg_DoubleEdgeTarget, "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call CreateNUnitsAtLoc( 1, 'h00P', GetOwningPlayer(udg_DoubleEdgeCaster), udg_DoubleEdgeLoc3, bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 1.50, 'BTLF', GetLastCreatedUnit() )
call UnitAddAbilityBJ( 'A0B3', GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( 'A0B3', GetLastCreatedUnit(), GetUnitAbilityLevelSwapped('A0B4', udg_DoubleEdgeCaster) )
set udg_DoubleEdgeLoc5 = PolarProjectionBJ(udg_DoubleEdgeLoc3, 300.00, ( GetUnitFacing(udg_DoubleEdgeCaster) + 15.00 ))
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "shockwave", udg_DoubleEdgeLoc5 )
call CreateNUnitsAtLoc( 1, 'h00P', GetOwningPlayer(udg_DoubleEdgeCaster), udg_DoubleEdgeLoc3, bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 1.50, 'BTLF', GetLastCreatedUnit() )
call UnitAddAbilityBJ( 'A0B3', GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( 'A0B3', GetLastCreatedUnit(), GetUnitAbilityLevelSwapped('A0B4', udg_DoubleEdgeCaster) )
set udg_DoubleEdgeLoc6 = PolarProjectionBJ(udg_DoubleEdgeLoc4, 300.00, ( GetUnitFacing(udg_DoubleEdgeCaster) - 15.00 ))
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "shockwave", udg_DoubleEdgeLoc6 )
call RemoveLocation (udg_DoubleEdgeLoc1)
call RemoveLocation (udg_DoubleEdgeLoc2)
call RemoveLocation (udg_DoubleEdgeLoc3)
call RemoveLocation (udg_DoubleEdgeLoc4)
call RemoveLocation (udg_DoubleEdgeLoc5)
call RemoveLocation (udg_DoubleEdgeLoc6)
endfunction
//===========================================================================
function InitTrig_Double_Edge takes nothing returns nothing
set gg_trg_Double_Edge = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Double_Edge, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Double_Edge, Condition( function Trig_Double_Edge_Conditions ) )
call TriggerAddAction( gg_trg_Double_Edge, function Trig_Double_Edge_Actions )
endfunction
function Trig_Link_of_Horror_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0BH' ) ) then
return false
endif
return true
endfunction
function Trig_Link_of_Horror_Func005001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0BH', udg_LinkofHorrorCaster) == 1 )
endfunction
function Trig_Link_of_Horror_Func006001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0BH', udg_LinkofHorrorCaster) == 2 )
endfunction
function Trig_Link_of_Horror_Func007001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0BH', udg_LinkofHorrorCaster) == 3 )
endfunction
function Trig_Link_of_Horror_Func008001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0BH', udg_LinkofHorrorCaster) == 4 )
endfunction
function Trig_Link_of_Horror_Func009001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0BH', udg_LinkofHorrorCaster) == 5 )
endfunction
function Trig_Link_of_Horror_Func010001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0BH', udg_LinkofHorrorCaster) == 6 )
endfunction
function Trig_Link_of_Horror_Func011001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0BH', udg_LinkofHorrorCaster) == 7 )
endfunction
function Trig_Link_of_Horror_Func012001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0BH', udg_LinkofHorrorCaster) == 8 )
endfunction
function Trig_Link_of_Horror_Func013001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0BH', udg_LinkofHorrorCaster) == 9 )
endfunction
function Trig_Link_of_Horror_Func014001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0BH', udg_LinkofHorrorCaster) == 10 )
endfunction
function Trig_Link_of_Horror_Func015Func010C takes nothing returns boolean
if ( not ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_LinkofHorrorTarget) < 5.00 ) ) then
return false
endif
return true
endfunction
function Trig_Link_of_Horror_Actions takes nothing returns nothing
set udg_LinkofHorrorCaster = GetTriggerUnit()
set udg_LinkofHorrorTarget = GetSpellTargetUnit()
set udg_LinkofHorrorTargetMS = R2I(GetUnitMoveSpeed(udg_LinkofHorrorTarget))
set udg_LinkofHorrorCasterMS = R2I(GetUnitMoveSpeed(udg_LinkofHorrorCaster))
if ( Trig_Link_of_Horror_Func005001() ) then
set udg_LinkofHorrorDamage = 5.00
else
call DoNothing( )
endif
if ( Trig_Link_of_Horror_Func006001() ) then
set udg_LinkofHorrorDamage = 6.25
else
call DoNothing( )
endif
if ( Trig_Link_of_Horror_Func007001() ) then
set udg_LinkofHorrorDamage = 7.81
else
call DoNothing( )
endif
if ( Trig_Link_of_Horror_Func008001() ) then
set udg_LinkofHorrorDamage = 9.77
else
call DoNothing( )
endif
if ( Trig_Link_of_Horror_Func009001() ) then
set udg_LinkofHorrorDamage = 12.21
else
call DoNothing( )
endif
if ( Trig_Link_of_Horror_Func010001() ) then
set udg_LinkofHorrorDamage = 15.26
else
call DoNothing( )
endif
if ( Trig_Link_of_Horror_Func011001() ) then
set udg_LinkofHorrorDamage = 19.07
else
call DoNothing( )
endif
if ( Trig_Link_of_Horror_Func012001() ) then
set udg_LinkofHorrorDamage = 23.84
else
call DoNothing( )
endif
if ( Trig_Link_of_Horror_Func013001() ) then
set udg_LinkofHorrorDamage = 29.80
else
call DoNothing( )
endif
if ( Trig_Link_of_Horror_Func014001() ) then
set udg_LinkofHorrorDamage = 37.25
else
call DoNothing( )
endif
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 20
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call PolledWait( 0.25 )
call AddSpecialEffectTargetUnitBJ( "origon", udg_LinkofHorrorTarget, "Abilities\\Spells\\Undead\\DeathPact\\DeathPactTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitDamageTargetBJ( udg_LinkofHorrorCaster, udg_LinkofHorrorTarget, udg_LinkofHorrorDamage, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call SetUnitMoveSpeed( udg_LinkofHorrorTarget, ( GetUnitMoveSpeed(udg_LinkofHorrorTarget) - 10.00 ) )
call SetUnitLifeBJ( udg_LinkofHorrorCaster, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_LinkofHorrorCaster) + ( udg_LinkofHorrorDamage / 2.00 ) ) )
call SetUnitMoveSpeed( udg_LinkofHorrorCaster, ( GetUnitMoveSpeed(udg_LinkofHorrorCaster) + 10.00 ) )
call AddSpecialEffectTargetUnitBJ( "origin", udg_LinkofHorrorCaster, "Abilities\\Spells\\Undead\\DeathandDecay\\DeathandDecayTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
if ( Trig_Link_of_Horror_Func015Func010C() ) then
call AddSpecialEffectTargetUnitBJ( "origin", udg_LinkofHorrorTarget, "Objects\\Spawnmodels\\Undead\\UndeadDissipate\\UndeadDissipate.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call SetUnitMoveSpeed( udg_LinkofHorrorTarget, I2R(udg_LinkofHorrorTargetMS) )
call SetUnitMoveSpeed( udg_LinkofHorrorCaster, I2R(udg_LinkofHorrorCasterMS) )
set udg_LinkofHorrorTarget = null
set udg_LinkofHorrorCaster = null
return
else
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call SetUnitMoveSpeed( udg_LinkofHorrorTarget, I2R(udg_LinkofHorrorTargetMS) )
call SetUnitMoveSpeed( udg_LinkofHorrorCaster, I2R(udg_LinkofHorrorCasterMS) )
set udg_LinkofHorrorTarget = null
set udg_LinkofHorrorCaster = null
endfunction
//===========================================================================
function InitTrig_Link_of_Horror takes nothing returns nothing
set gg_trg_Link_of_Horror = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Link_of_Horror, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Link_of_Horror, Condition( function Trig_Link_of_Horror_Conditions ) )
call TriggerAddAction( gg_trg_Link_of_Horror, function Trig_Link_of_Horror_Actions )
endfunction
function Trig_Death_Pact_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A094' ) ) then
return false
endif
return true
endfunction
function Trig_Death_Pact_Func001C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetSpellAbilityUnit()) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Death_Pact_Func002C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetSpellAbilityUnit()) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Death_Pact_Func003C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetSpellAbilityUnit()) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Death_Pact_Func004C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetSpellAbilityUnit()) == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Death_Pact_Func005C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetSpellAbilityUnit()) == 5 ) ) then
return false
endif
return true
endfunction
function Trig_Death_Pact_Func006C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetSpellAbilityUnit()) == 6 ) ) then
return false
endif
return true
endfunction
function Trig_Death_Pact_Func007C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetSpellAbilityUnit()) == 7 ) ) then
return false
endif
return true
endfunction
function Trig_Death_Pact_Func008C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetSpellAbilityUnit()) == 8 ) ) then
return false
endif
return true
endfunction
function Trig_Death_Pact_Func009C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetSpellAbilityUnit()) == 9 ) ) then
return false
endif
return true
endfunction
function Trig_Death_Pact_Func010C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetSpellAbilityUnit()) == 10 ) ) then
return false
endif
return true
endfunction
function Trig_Death_Pact_Actions takes nothing returns nothing
if ( Trig_Death_Pact_Func001C() ) then
call SetUnitLifeBJ( GetSpellAbilityUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellAbilityUnit()) + ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellTargetUnit()) * 0.33 ) ) )
call UnitDamageTargetBJ( GetTriggerUnit(), GetEventTargetUnit(), 5000.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_ENHANCED )
call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetSpellTargetUnit() )
else
call DoNothing( )
endif
if ( Trig_Death_Pact_Func002C() ) then
call SetUnitLifeBJ( GetSpellAbilityUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellAbilityUnit()) + ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellTargetUnit()) * 0.66 ) ) )
call UnitDamageTargetBJ( GetTriggerUnit(), GetEventTargetUnit(), 5000.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_ENHANCED )
call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetSpellTargetUnit() )
else
call DoNothing( )
endif
if ( Trig_Death_Pact_Func003C() ) then
call SetUnitLifeBJ( GetSpellAbilityUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellAbilityUnit()) + ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellTargetUnit()) * 0.99 ) ) )
call UnitDamageTargetBJ( GetTriggerUnit(), GetEventTargetUnit(), 5000.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_ENHANCED )
call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetSpellTargetUnit() )
else
call DoNothing( )
endif
if ( Trig_Death_Pact_Func004C() ) then
call SetUnitLifeBJ( GetSpellAbilityUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellAbilityUnit()) + ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellTargetUnit()) * 1.32 ) ) )
call UnitDamageTargetBJ( GetTriggerUnit(), GetEventTargetUnit(), 5000.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_ENHANCED )
call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetSpellTargetUnit() )
else
call DoNothing( )
endif
if ( Trig_Death_Pact_Func005C() ) then
call SetUnitLifeBJ( GetSpellAbilityUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellAbilityUnit()) + ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellTargetUnit()) * 1.65 ) ) )
call UnitDamageTargetBJ( GetTriggerUnit(), GetEventTargetUnit(), 5000.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_ENHANCED )
call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetSpellTargetUnit() )
else
call DoNothing( )
endif
if ( Trig_Death_Pact_Func006C() ) then
call SetUnitLifeBJ( GetSpellAbilityUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellAbilityUnit()) + ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellTargetUnit()) * 1.98 ) ) )
call UnitDamageTargetBJ( GetTriggerUnit(), GetEventTargetUnit(), 5000.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_ENHANCED )
call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetSpellTargetUnit() )
else
call DoNothing( )
endif
if ( Trig_Death_Pact_Func007C() ) then
call SetUnitLifeBJ( GetSpellAbilityUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellAbilityUnit()) + ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellTargetUnit()) * 2.31 ) ) )
call UnitDamageTargetBJ( GetTriggerUnit(), GetEventTargetUnit(), 5000.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_ENHANCED )
call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetSpellTargetUnit() )
else
call DoNothing( )
endif
if ( Trig_Death_Pact_Func008C() ) then
call SetUnitLifeBJ( GetSpellAbilityUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellAbilityUnit()) + ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellTargetUnit()) * 2.64 ) ) )
call UnitDamageTargetBJ( GetTriggerUnit(), GetEventTargetUnit(), 5000.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_ENHANCED )
call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetSpellTargetUnit() )
else
call DoNothing( )
endif
if ( Trig_Death_Pact_Func009C() ) then
call SetUnitLifeBJ( GetSpellAbilityUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellAbilityUnit()) + ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellTargetUnit()) * 2.97 ) ) )
call UnitDamageTargetBJ( GetTriggerUnit(), GetEventTargetUnit(), 5000.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_ENHANCED )
call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetSpellTargetUnit() )
else
call DoNothing( )
endif
if ( Trig_Death_Pact_Func010C() ) then
call SetUnitLifeBJ( GetSpellAbilityUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellAbilityUnit()) + ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellTargetUnit()) * 3.30 ) ) )
call UnitDamageTargetBJ( GetTriggerUnit(), GetEventTargetUnit(), 5000.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_ENHANCED )
call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetSpellTargetUnit() )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Death_Pact takes nothing returns nothing
set gg_trg_Death_Pact = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Death_Pact, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Death_Pact, Condition( function Trig_Death_Pact_Conditions ) )
call TriggerAddAction( gg_trg_Death_Pact, function Trig_Death_Pact_Actions )
endfunction
function Trig_Nether_Chains_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0B7' ) ) then
return false
endif
return true
endfunction
function Trig_Nether_Chains_Func005Func008002003001 takes nothing returns boolean
return ( IsPlayerEnemy(GetOwningPlayer(GetFilterUnit()), GetTriggerPlayer()) == true )
endfunction
function Trig_Nether_Chains_Func005Func008002003002 takes nothing returns boolean
return ( IsUnitAliveBJ(GetFilterUnit()) == true )
endfunction
function Trig_Nether_Chains_Func005Func008002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Nether_Chains_Func005Func008002003001(), Trig_Nether_Chains_Func005Func008002003002() )
endfunction
function Trig_Nether_Chains_Actions takes nothing returns nothing
set udg_NetherChainsLoc1 = GetSpellTargetLoc()
set udg_NetherChainsLoc2 = GetSpellTargetLoc()
call AddSpecialEffectLocBJ( udg_NetherChainsLoc1, "Abilities\\Spells\\Other\\Drain\\DrainCaster.mdl" )
set udg_NetherChainsSE = GetLastCreatedEffectBJ()
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = ( 2 * GetUnitAbilityLevelSwapped('A0B7', GetTriggerUnit()) )
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call PolledWait( 1.00 )
call AddSpecialEffectLocBJ( udg_NetherChainsLoc2, "Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call CreateNUnitsAtLoc( 1, 'h00P', GetTriggerPlayer(), udg_NetherChainsLoc1, bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 1.50, 'BTLF', GetLastCreatedUnit() )
call UnitAddAbilityBJ( 'A0B6', GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( 'A0B6', GetLastCreatedUnit(), GetUnitAbilityLevelSwapped('A0B7', GetTriggerUnit()) )
set udg_NetherChainsGroup = GetUnitsInRangeOfLocMatching(900.00, udg_NetherChainsLoc1, Condition(function Trig_Nether_Chains_Func005Func008002003))
set udg_NetherChainsPickedUnit = GroupPickRandomUnit(udg_NetherChainsGroup)
call IssueTargetOrderBJ( GetLastCreatedUnit(), "chainlightning", udg_NetherChainsPickedUnit )
call DestroyGroup (udg_NetherChainsGroup)
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call DestroyEffectBJ( udg_NetherChainsSE )
call RemoveLocation (udg_NetherChainsLoc1)
endfunction
//===========================================================================
function InitTrig_Nether_Chains takes nothing returns nothing
set gg_trg_Nether_Chains = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Nether_Chains, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Nether_Chains, Condition( function Trig_Nether_Chains_Conditions ) )
call TriggerAddAction( gg_trg_Nether_Chains, function Trig_Nether_Chains_Actions )
endfunction
function Trig_Desolate_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0BI' ) ) then
return false
endif
return true
endfunction
function Trig_Desolate_Func001001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0BI', GetSpellAbilityUnit()) == 1 )
endfunction
function Trig_Desolate_Func002001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0BI', GetSpellAbilityUnit()) == 2 )
endfunction
function Trig_Desolate_Func003001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0BI', GetSpellAbilityUnit()) == 3 )
endfunction
function Trig_Desolate_Func004001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0BI', GetSpellAbilityUnit()) == 4 )
endfunction
function Trig_Desolate_Func005001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0BI', GetSpellAbilityUnit()) == 5 )
endfunction
function Trig_Desolate_Func006001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0BI', GetSpellAbilityUnit()) == 6 )
endfunction
function Trig_Desolate_Func007001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0BI', GetSpellAbilityUnit()) == 7 )
endfunction
function Trig_Desolate_Func008001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0BI', GetSpellAbilityUnit()) == 8 )
endfunction
function Trig_Desolate_Func009001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0BI', GetSpellAbilityUnit()) == 9 )
endfunction
function Trig_Desolate_Func010001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0BI', GetSpellAbilityUnit()) == 10 )
endfunction
function Trig_Desolate_Func018Func017C takes nothing returns boolean
if ( not ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_DesolatePickedUnit) < udg_DesolateDamage ) ) then
return false
endif
return true
endfunction
function Trig_Desolate_Actions takes nothing returns nothing
if ( Trig_Desolate_Func001001() ) then
set udg_DesolateDamage = 10.00
else
call DoNothing( )
endif
if ( Trig_Desolate_Func002001() ) then
set udg_DesolateDamage = 12.50
else
call DoNothing( )
endif
if ( Trig_Desolate_Func003001() ) then
set udg_DesolateDamage = 15.63
else
call DoNothing( )
endif
if ( Trig_Desolate_Func004001() ) then
set udg_DesolateDamage = 19.53
else
call DoNothing( )
endif
if ( Trig_Desolate_Func005001() ) then
set udg_DesolateDamage = 24.41
else
call DoNothing( )
endif
if ( Trig_Desolate_Func006001() ) then
set udg_DesolateDamage = 30.52
else
call DoNothing( )
endif
if ( Trig_Desolate_Func007001() ) then
set udg_DesolateDamage = 38.15
else
call DoNothing( )
endif
if ( Trig_Desolate_Func008001() ) then
set udg_DesolateDamage = 47.68
else
call DoNothing( )
endif
if ( Trig_Desolate_Func009001() ) then
set udg_DesolateDamage = 59.60
else
call DoNothing( )
endif
if ( Trig_Desolate_Func010001() ) then
set udg_DesolateDamage = 74.51
else
call DoNothing( )
endif
set udg_DesolateCaster = GetTriggerUnit()
set udg_DesolatePickedUnit = GetSpellTargetUnit()
call UnitAddAbilityBJ( 'A0BA', udg_DesolateCaster )
call UnitRemoveAbilityBJ( 'A0BA', udg_DesolateCaster )
call UnitAddAbilityBJ( 'A0BJ', udg_DesolateCaster )
call SetUnitAnimation( udg_DesolateCaster, "stand, ready" )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 6
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call PolledWait( 0.27 )
call SetUnitAnimation( udg_DesolateCaster, "slam" )
call SetUnitLifeBJ( udg_DesolateCaster, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_DesolateCaster) + udg_DesolateDamage ) )
call SetUnitFlyHeightBJ( udg_DesolateCaster, 50.00, 0.00 )
set udg_DesolateLoc1 = GetUnitLoc(udg_DesolatePickedUnit)
set udg_DesolateLoc2 = GetRandomLocInRect(RectFromCenterSizeBJ(udg_DesolateLoc1, 80.00, 80.00))
call SetUnitPositionLocFacingLocBJ( udg_DesolateCaster, udg_DesolateLoc2, udg_DesolateLoc1 )
call AddSpecialEffectTargetUnitBJ( "chest", udg_DesolateCaster, "Abilities\\Weapons\\MurgulMagicMissile\\MurgulMagicMissile.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call SetUnitFacingToFaceUnitTimed( udg_DesolateCaster, udg_DesolatePickedUnit, 0 )
call AddSpecialEffectTargetUnitBJ( "chest", udg_DesolatePickedUnit, "Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call SetUnitAnimation( udg_DesolateCaster, "attack" )
call UnitDamageTargetBJ( udg_DesolateCaster, udg_DesolatePickedUnit, udg_DesolateDamage, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call RemoveLocation(udg_DesolateLoc1)
call RemoveLocation(udg_DesolateLoc2)
if ( Trig_Desolate_Func018Func017C() ) then
call SetUnitFlyHeightBJ( udg_DesolateCaster, 0.00, 50.00 )
call AddSpecialEffectTargetUnitBJ( "origin", udg_DesolatePickedUnit, "Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call SetUnitLifeBJ( udg_DesolateCaster, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_DesolateCaster) + udg_DesolateDamage ) )
call UnitDamageTargetBJ( udg_DesolateCaster, udg_DesolatePickedUnit, udg_DesolateDamage, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call UnitRemoveAbilityBJ( 'A0BJ', udg_DesolateCaster )
call ResetUnitAnimation( udg_DesolateCaster )
call RemoveLocation(udg_DesolateLoc1)
call RemoveLocation(udg_DesolateLoc2)
set udg_DesolatePickedUnit = null
set udg_DesolateCaster = null
return
else
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call SetUnitFlyHeightBJ( udg_DesolateCaster, 0.00, 50.00 )
call UnitRemoveAbilityBJ( 'A0BJ', udg_DesolateCaster )
call ResetUnitAnimation( udg_DesolateCaster )
call RemoveLocation(udg_DesolateLoc1)
call RemoveLocation(udg_DesolateLoc2)
set udg_DesolatePickedUnit = null
set udg_DesolateCaster = null
endfunction
//===========================================================================
function InitTrig_Desolate takes nothing returns nothing
set gg_trg_Desolate = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Desolate, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Desolate, Condition( function Trig_Desolate_Conditions ) )
call TriggerAddAction( gg_trg_Desolate, function Trig_Desolate_Actions )
endfunction
function Trig_Fatal_Strike_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0B9' ) ) then
return false
endif
return true
endfunction
function Trig_Fatal_Strike_Func001001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0B9', GetSpellAbilityUnit()) == 1 )
endfunction
function Trig_Fatal_Strike_Func002001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0B9', GetSpellAbilityUnit()) == 2 )
endfunction
function Trig_Fatal_Strike_Func003001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0B9', GetSpellAbilityUnit()) == 3 )
endfunction
function Trig_Fatal_Strike_Func004001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0B9', GetSpellAbilityUnit()) == 4 )
endfunction
function Trig_Fatal_Strike_Func005001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0B9', GetSpellAbilityUnit()) == 5 )
endfunction
function Trig_Fatal_Strike_Func006001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0B9', GetSpellAbilityUnit()) == 6 )
endfunction
function Trig_Fatal_Strike_Func007001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0B9', GetSpellAbilityUnit()) == 7 )
endfunction
function Trig_Fatal_Strike_Func008001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0B9', GetSpellAbilityUnit()) == 8 )
endfunction
function Trig_Fatal_Strike_Func009001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0B9', GetSpellAbilityUnit()) == 9 )
endfunction
function Trig_Fatal_Strike_Func010001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0B9', GetSpellAbilityUnit()) == 10 )
endfunction
function Trig_Fatal_Strike_Actions takes nothing returns nothing
if ( Trig_Fatal_Strike_Func001001() ) then
set udg_FatalStrikeSacrifice = 40.00
else
call DoNothing( )
endif
if ( Trig_Fatal_Strike_Func002001() ) then
set udg_FatalStrikeSacrifice = 50.00
else
call DoNothing( )
endif
if ( Trig_Fatal_Strike_Func003001() ) then
set udg_FatalStrikeSacrifice = 62.50
else
call DoNothing( )
endif
if ( Trig_Fatal_Strike_Func004001() ) then
set udg_FatalStrikeSacrifice = 78.13
else
call DoNothing( )
endif
if ( Trig_Fatal_Strike_Func005001() ) then
set udg_FatalStrikeSacrifice = 97.66
else
call DoNothing( )
endif
if ( Trig_Fatal_Strike_Func006001() ) then
set udg_FatalStrikeSacrifice = 122.07
else
call DoNothing( )
endif
if ( Trig_Fatal_Strike_Func007001() ) then
set udg_FatalStrikeSacrifice = 152.59
else
call DoNothing( )
endif
if ( Trig_Fatal_Strike_Func008001() ) then
set udg_FatalStrikeSacrifice = 190.73
else
call DoNothing( )
endif
if ( Trig_Fatal_Strike_Func009001() ) then
set udg_FatalStrikeSacrifice = 238.42
else
call DoNothing( )
endif
if ( Trig_Fatal_Strike_Func010001() ) then
set udg_FatalStrikeSacrifice = 298.02
else
call DoNothing( )
endif
set udg_FatalStrikeLoc = GetUnitLoc(GetTriggerUnit())
call SetUnitAnimation( GetTriggerUnit(), "death" )
call AddSpecialEffectTargetUnitBJ( "origin", GetTriggerUnit(), "Abilities\\Spells\\Undead\\DeathPact\\DeathPactTarget.mdl" )
call PolledWait( 0.01 )
call PauseUnitBJ( true, GetTriggerUnit() )
call SetUnitInvulnerable( GetTriggerUnit(), true )
call UnitAddAbilityBJ( 'A0BA', GetTriggerUnit() )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call TriggerSleepAction( 1.00 )
call SetUnitFlyHeightBJ( GetTriggerUnit(), 0.00, 300.00 )
call SetUnitLifeBJ( GetTriggerUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetTriggerUnit()) - udg_FatalStrikeSacrifice ) )
call SetUnitAnimation( GetTriggerUnit(), "attack" )
call CreateNUnitsAtLoc( 1, 'h00Q', GetTriggerPlayer(), udg_FatalStrikeLoc, bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetLastCreatedUnit() )
call UnitAddAbilityBJ( 'A0B8', GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( 'A0B8', GetTriggerUnit(), GetUnitAbilityLevelSwapped('A0B9', GetSpellAbilityUnit()) )
call IssueImmediateOrderBJ( GetLastCreatedUnit(), "fanofknives" )
call SetUnitInvulnerable( GetTriggerUnit(), false )
call PauseUnitBJ( false, GetTriggerUnit() )
call UnitRemoveAbilityBJ( 'A0BA', GetTriggerUnit() )
call RemoveLocation (udg_FatalStrikeLoc)
endfunction
//===========================================================================
function InitTrig_Fatal_Strike takes nothing returns nothing
set gg_trg_Fatal_Strike = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Fatal_Strike, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Fatal_Strike, Condition( function Trig_Fatal_Strike_Conditions ) )
call TriggerAddAction( gg_trg_Fatal_Strike, function Trig_Fatal_Strike_Actions )
endfunction
function Trig_Blessed_Hammer_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0BP' ) ) then
return false
endif
return true
endfunction
function Trig_Blessed_Hammer_Actions takes nothing returns nothing
set udg_BlessedHammerLoc1 = GetUnitLoc(GetTriggerUnit())
set udg_BlessedHammerLoc2 = GetSpellTargetLoc()
call SetUnitFacingToFaceLocTimed( GetTriggerUnit(), udg_BlessedHammerLoc2, 0 )
set udg_BlessedHammerAngle = GetUnitFacing(GetTriggerUnit())
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 10
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call PolledWait( 0.01 )
set udg_BlessedHammerLoc3 = PolarProjectionBJ(udg_BlessedHammerLoc1, ( 100.00 * I2R(GetForLoopIndexA()) ), udg_BlessedHammerAngle)
call CreateNUnitsAtLoc( 1, 'h00R', GetOwningPlayer(GetTriggerUnit()), udg_BlessedHammerLoc3, bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetLastCreatedUnit() )
call UnitAddAbilityBJ( 'A0BK', GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( 'A0BK', GetLastCreatedUnit(), GetUnitAbilityLevelSwapped('A0BP', GetTriggerUnit()) )
call IssueImmediateOrderBJ( GetLastCreatedUnit(), "thunderclap" )
call AddSpecialEffectLocBJ( udg_BlessedHammerLoc3, "Abilities\\Spells\\NightElf\\Blink\\BlinkCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call RemoveLocation (udg_BlessedHammerLoc3)
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call RemoveLocation (udg_BlessedHammerLoc1)
call RemoveLocation (udg_BlessedHammerLoc2)
endfunction
//===========================================================================
function InitTrig_Blessed_Hammer takes nothing returns nothing
set gg_trg_Blessed_Hammer = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Blessed_Hammer, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Blessed_Hammer, Condition( function Trig_Blessed_Hammer_Conditions ) )
call TriggerAddAction( gg_trg_Blessed_Hammer, function Trig_Blessed_Hammer_Actions )
endfunction
function Trig_Hammer_Forge_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0BR' ) ) then
return false
endif
return true
endfunction
function Trig_Hammer_Forge_Actions takes nothing returns nothing
set udg_HammerForgeCaster = GetTriggerUnit()
call SetUnitAnimation( udg_HammerForgeCaster, "stand, victory" )
call TriggerSleepAction( 0.10 )
call PauseUnitBJ( true, udg_HammerForgeCaster )
call SetUnitTimeScalePercent( udg_HammerForgeCaster, 0.00 )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 6
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call PolledWait( 0.15 )
set udg_HammerForgeLoc1 = GetUnitLoc(udg_HammerForgeCaster)
call SetUnitFacingTimed( udg_HammerForgeCaster, ( GetUnitFacing(udg_HammerForgeCaster) - 180.00 ), 0.00 )
call AddSpecialEffectTargetUnitBJ( "foot", udg_HammerForgeCaster, "Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectTargetUnitBJ( "weapon", udg_HammerForgeCaster, "Abilities\\Spells\\Human\\HolyBolt\\HolyBoltSpecialArt.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectTargetUnitBJ( "weapon", udg_HammerForgeCaster, "Abilities\\Spells\\NightElf\\Blink\\BlinkCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call CreateNUnitsAtLoc( 1, 'h00P', GetOwningPlayer(udg_HammerForgeCaster), udg_HammerForgeLoc1, bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 1.50, 'BTLF', GetLastCreatedUnit() )
call UnitAddAbilityBJ( 'A0BQ', GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( 'A0BQ', GetLastCreatedUnit(), GetUnitAbilityLevelSwapped('A0BR', udg_HammerForgeCaster) )
set udg_HammerForgeAngle = ( GetUnitFacing(udg_HammerForgeCaster) + 180.00 )
set udg_HammerForgeLoc2 = PolarProjectionBJ(udg_HammerForgeLoc1, 15.00, udg_HammerForgeAngle)
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "shockwave", udg_HammerForgeLoc2 )
call RemoveLocation (udg_HammerForgeLoc1)
call RemoveLocation (udg_HammerForgeLoc2)
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call TriggerSleepAction( 0.35 )
call PauseUnitBJ( false, udg_HammerForgeCaster )
call ResetUnitAnimation( udg_HammerForgeCaster )
call SetUnitTimeScalePercent( udg_HammerForgeCaster, 100.00 )
endfunction
//===========================================================================
function InitTrig_Hammer_Forge takes nothing returns nothing
set gg_trg_Hammer_Forge = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Hammer_Forge, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Hammer_Forge, Condition( function Trig_Hammer_Forge_Conditions ) )
call TriggerAddAction( gg_trg_Hammer_Forge, function Trig_Hammer_Forge_Actions )
endfunction
function Trig_Hammers_Wrath_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0BT' ) ) then
return false
endif
return true
endfunction
function Trig_Hammers_Wrath_Actions takes nothing returns nothing
set udg_HammersWrathCaster = GetTriggerUnit()
set udg_HammersWrathTarget = GetSpellTargetUnit()
set udg_HammersWrathLoc1 = GetUnitLoc(udg_HammersWrathTarget)
call CreateNUnitsAtLoc( 1, 'h00S', GetOwningPlayer(udg_HammersWrathCaster), udg_HammersWrathLoc1, 0.00 )
call UnitApplyTimedLifeBJ( 0.85, 'BTLF', GetLastCreatedUnit() )
call SetUnitFacingTimed( GetLastCreatedUnit(), ( GetUnitFacing(GetLastCreatedUnit()) + 180.00 ), 0.20 )
call SetUnitOwner( GetLastCreatedUnit(), Player(4), true )
call SetUnitVertexColorBJ( GetLastCreatedUnit(), 100.00, 100, 0.00, 70.00 )
call SetUnitFacingTimed( GetLastCreatedUnit(), ( GetUnitFacing(GetLastCreatedUnit()) + 180.00 ), 0.20 )
call SetUnitFlyHeightBJ( GetLastCreatedUnit(), 75.00, 800.00 )
call PauseUnitBJ( true, udg_HammersWrathTarget )
call SetUnitFacingTimed( GetLastCreatedUnit(), ( GetUnitFacing(GetLastCreatedUnit()) + 180.00 ), 0.20 )
call AddSpecialEffectLocBJ( udg_HammersWrathLoc1, "Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call SetUnitFacingTimed( GetLastCreatedUnit(), ( GetUnitFacing(GetLastCreatedUnit()) + 180.00 ), 0.20 )
call PolledWait( 0.80 )
call PauseUnitBJ( false, udg_HammersWrathTarget )
call CreateTextTagUnitBJ( ( I2S(R2I(I2R(( GetHeroStatBJ(bj_HEROSTAT_INT, udg_HammersWrathCaster, true) * ( 1 * GetUnitAbilityLevelSwapped('A0BT', udg_HammersWrathCaster) ) )))) + "!" ), udg_HammersWrathTarget, 0, 10, 100.00, 80.00, 0.00, 0 )
set udg_HammersWrathFloatingText = GetLastCreatedTextTag()
call ShowTextTagForceBJ( true, GetLastCreatedTextTag(), GetPlayersAll() )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 1.50 )
call SetTextTagVelocityBJ( GetLastCreatedTextTag(), 80.00, 90 )
call UnitDamageTargetBJ( udg_HammersWrathCaster, udg_HammersWrathTarget, ( ( I2R(GetUnitAbilityLevelSwapped('A0BT', udg_HammersWrathCaster)) * 1.00 ) * I2R(GetHeroStatBJ(bj_HEROSTAT_INT, udg_HammersWrathCaster, true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call PolledWait( 1.50 )
call DestroyTextTagBJ( udg_HammersWrathFloatingText )
call RemoveLocation (udg_HammersWrathLoc1)
endfunction
//===========================================================================
function InitTrig_Hammers_Wrath takes nothing returns nothing
set gg_trg_Hammers_Wrath = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Hammers_Wrath, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Hammers_Wrath, Condition( function Trig_Hammers_Wrath_Conditions ) )
call TriggerAddAction( gg_trg_Hammers_Wrath, function Trig_Hammers_Wrath_Actions )
endfunction
function Trig_Dark_Ritual_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A09C' ) ) then
return false
endif
return true
endfunction
function Trig_Dark_Ritual_Func001C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetSpellAbilityUnit()) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Dark_Ritual_Func002C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetSpellAbilityUnit()) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Dark_Ritual_Func003C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetSpellAbilityUnit()) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Dark_Ritual_Func004C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetSpellAbilityUnit()) == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Dark_Ritual_Func005C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetSpellAbilityUnit()) == 5 ) ) then
return false
endif
return true
endfunction
function Trig_Dark_Ritual_Func006C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetSpellAbilityUnit()) == 6 ) ) then
return false
endif
return true
endfunction
function Trig_Dark_Ritual_Func007C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetSpellAbilityUnit()) == 7 ) ) then
return false
endif
return true
endfunction
function Trig_Dark_Ritual_Func008C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetSpellAbilityUnit()) == 8 ) ) then
return false
endif
return true
endfunction
function Trig_Dark_Ritual_Func009C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetSpellAbilityUnit()) == 9 ) ) then
return false
endif
return true
endfunction
function Trig_Dark_Ritual_Func010C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetSpellAbilityUnit()) == 10 ) ) then
return false
endif
return true
endfunction
function Trig_Dark_Ritual_Actions takes nothing returns nothing
if ( Trig_Dark_Ritual_Func001C() ) then
call SetUnitManaBJ( GetSpellAbilityUnit(), ( GetUnitStateSwap(UNIT_STATE_MANA, GetSpellAbilityUnit()) + ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellTargetUnit()) * 0.33 ) ) )
call UnitDamageTargetBJ( GetTriggerUnit(), GetEventTargetUnit(), 5000.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_ENHANCED )
call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetSpellTargetUnit() )
else
call DoNothing( )
endif
if ( Trig_Dark_Ritual_Func002C() ) then
call SetUnitManaBJ( GetSpellAbilityUnit(), ( GetUnitStateSwap(UNIT_STATE_MANA, GetSpellAbilityUnit()) + ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellTargetUnit()) * 0.66 ) ) )
call UnitDamageTargetBJ( GetTriggerUnit(), GetEventTargetUnit(), 5000.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_ENHANCED )
call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetSpellTargetUnit() )
else
call DoNothing( )
endif
if ( Trig_Dark_Ritual_Func003C() ) then
call SetUnitManaBJ( GetSpellAbilityUnit(), ( GetUnitStateSwap(UNIT_STATE_MANA, GetSpellAbilityUnit()) + ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellTargetUnit()) * 0.99 ) ) )
call UnitDamageTargetBJ( GetTriggerUnit(), GetEventTargetUnit(), 5000.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_ENHANCED )
call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetSpellTargetUnit() )
else
call DoNothing( )
endif
if ( Trig_Dark_Ritual_Func004C() ) then
call SetUnitManaBJ( GetSpellAbilityUnit(), ( GetUnitStateSwap(UNIT_STATE_MANA, GetSpellAbilityUnit()) + ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellTargetUnit()) * 1.32 ) ) )
call UnitDamageTargetBJ( GetTriggerUnit(), GetEventTargetUnit(), 5000.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_ENHANCED )
call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetSpellTargetUnit() )
else
call DoNothing( )
endif
if ( Trig_Dark_Ritual_Func005C() ) then
call SetUnitManaBJ( GetSpellAbilityUnit(), ( GetUnitStateSwap(UNIT_STATE_MANA, GetSpellAbilityUnit()) + ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellTargetUnit()) * 1.65 ) ) )
call UnitDamageTargetBJ( GetTriggerUnit(), GetEventTargetUnit(), 5000.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_ENHANCED )
call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetSpellTargetUnit() )
else
call DoNothing( )
endif
if ( Trig_Dark_Ritual_Func006C() ) then
call SetUnitManaBJ( GetSpellAbilityUnit(), ( GetUnitStateSwap(UNIT_STATE_MANA, GetSpellAbilityUnit()) + ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellTargetUnit()) * 1.98 ) ) )
call UnitDamageTargetBJ( GetTriggerUnit(), GetEventTargetUnit(), 5000.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_ENHANCED )
call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetSpellTargetUnit() )
else
call DoNothing( )
endif
if ( Trig_Dark_Ritual_Func007C() ) then
call SetUnitManaBJ( GetSpellAbilityUnit(), ( GetUnitStateSwap(UNIT_STATE_MANA, GetSpellAbilityUnit()) + ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellTargetUnit()) * 2.31 ) ) )
call UnitDamageTargetBJ( GetTriggerUnit(), GetEventTargetUnit(), 5000.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_ENHANCED )
call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetSpellTargetUnit() )
else
call DoNothing( )
endif
if ( Trig_Dark_Ritual_Func008C() ) then
call SetUnitManaBJ( GetSpellAbilityUnit(), ( GetUnitStateSwap(UNIT_STATE_MANA, GetSpellAbilityUnit()) + ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellTargetUnit()) * 2.64 ) ) )
call UnitDamageTargetBJ( GetTriggerUnit(), GetEventTargetUnit(), 5000.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_ENHANCED )
call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetSpellTargetUnit() )
else
call DoNothing( )
endif
if ( Trig_Dark_Ritual_Func009C() ) then
call SetUnitManaBJ( GetSpellAbilityUnit(), ( GetUnitStateSwap(UNIT_STATE_MANA, GetSpellAbilityUnit()) + ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellTargetUnit()) * 2.97 ) ) )
call UnitDamageTargetBJ( GetTriggerUnit(), GetEventTargetUnit(), 5000.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_ENHANCED )
call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetSpellTargetUnit() )
else
call DoNothing( )
endif
if ( Trig_Dark_Ritual_Func010C() ) then
call SetUnitManaBJ( GetSpellAbilityUnit(), ( GetUnitStateSwap(UNIT_STATE_MANA, GetSpellAbilityUnit()) + ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellTargetUnit()) * 3.30 ) ) )
call UnitDamageTargetBJ( GetTriggerUnit(), GetEventTargetUnit(), 5000.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_ENHANCED )
call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetSpellTargetUnit() )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Dark_Ritual takes nothing returns nothing
set gg_trg_Dark_Ritual = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Dark_Ritual, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Dark_Ritual, Condition( function Trig_Dark_Ritual_Conditions ) )
call TriggerAddAction( gg_trg_Dark_Ritual, function Trig_Dark_Ritual_Actions )
endfunction
//---------------------------------------------------------------------------------------
function getOmniDrain_Abilcode takes nothing returns integer
return 'A01A' //The ability code for the Omni Drain spell.
endfunction
function getOmniDrain_caster takes nothing returns integer
return 'h008' //The unit code for the dummy caster.
endfunction
function getOmniDrain_buff takes nothing returns integer
return 'B012' //The buff code for the buff Drain Life (target - no fx).
endfunction
function getOmniDrain_DummyLightningFX_Abilcode takes nothing returns integer
return 'A01B' //The ability code for the dummy Multi Drain (lightning fx) spell
endfunction
function getOmniDrain_DummyCheck_Abilcode takes nothing returns integer
return 'A01C' //The ability code for the dummy Multi Drain (forked check) spell
endfunction
function getOmniDrain_CapTargets takes nothing returns integer
return 2+GetUnitAbilityLevelSwapped(getOmniDrain_Abilcode(), GetTriggerUnit())
//Formula for maximum # of targets per level
endfunction
function GetOmniDrain_dmgReturnFactor takes nothing returns real
return 0.5 //Damage return as a factor of the life drained
endfunction
//---------------------------------------------------------------------------------------
function CastAbility takes integer abil, integer level, string order, unit caster, unit target, location loc, real h returns nothing
call CreateNUnitsAtLoc(1,getOmniDrain_caster(), GetOwningPlayer(caster), loc,bj_UNIT_FACING)
call SetUnitPathing( GetLastCreatedUnit(), false )
call SetUnitPositionLoc( GetLastCreatedUnit(), loc )
if h > 40 then
call SetUnitFlyHeightBJ( GetLastCreatedUnit(), h, 10000.00 )
endif
call UnitAddAbilityBJ( abil, GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( abil, GetLastCreatedUnit(), level )
call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetLastCreatedUnit() )
call IssueTargetOrderBJ( GetLastCreatedUnit(), order, target )
endfunction
function GameCache2Trigger takes gamecache g returns trigger
return g
return null
endfunction
function H2I takes handle h returns integer
return h
return 0
endfunction
function I2U takes integer i returns unit
return i
return null
endfunction
function I2T takes integer t returns trigger
return t
return null
endfunction
function I2G takes integer g returns group
return g
return null
endfunction
function Trig_MultiDrain_InitConditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == getOmniDrain_Abilcode() ) ) then
return false
endif
return true
endfunction
function GetMultiDrainGameCache takes nothing returns gamecache
return gg_trg_OmniDrain
return null
endfunction
function Trig_MultiDrain_RemoveCasters takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_MultiDrain_TargetDmgCondition takes nothing returns boolean
local gamecache g = GetMultiDrainGameCache()
local unit dummy = I2U(GetStoredInteger(g, "dummy", I2S(H2I(GetTriggeringTrigger()))))
return ( GetEventDamageSource() == dummy )
endfunction
function Trig_MultiDrain_TargetDmgActions takes nothing returns nothing
local gamecache g = GetMultiDrainGameCache()
local unit caster = I2U(GetStoredInteger(g, "caster", I2S(H2I(GetTriggeringTrigger()))))
call SetUnitLifeBJ( caster, ( GetUnitStateSwap(UNIT_STATE_LIFE, caster) + GetEventDamage()*GetOmniDrain_dmgReturnFactor() ) )
endfunction
function Trig_MultiDrain_DmgEvent_Child takes nothing returns nothing
local gamecache g = GetMultiDrainGameCache()
local unit caster = GetTriggerUnit()
local trigger t = I2T(GetStoredInteger(g,"t",I2S(H2I(caster))))
local trigger u = CreateTrigger()
local real dmg = GetStoredReal(g,"dmg",I2S(H2I(t)))
local integer spell = GetStoredInteger(g,"spell",I2S(H2I(t)))
local location loc = GetUnitLoc(caster)
local group dummycasters = I2G(GetStoredInteger(g, "dummycasters", I2S(H2I(t))))
local unit target = GetEnumUnit()
local unit dummy
call CreateNUnitsAtLoc(1,getOmniDrain_caster(), GetOwningPlayer(caster), loc,bj_UNIT_FACING)
call UnitAddAbilityBJ( getOmniDrain_DummyLightningFX_Abilcode(), GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped(getOmniDrain_DummyLightningFX_Abilcode(),GetLastCreatedUnit(),GetUnitAbilityLevelSwapped(getOmniDrain_Abilcode(),caster))
call UnitApplyTimedLifeBJ( 10.00, 'BTLF', GetLastCreatedUnit() )
call SetUnitPathing( GetLastCreatedUnit(), false )
call SetUnitPositionLoc( GetLastCreatedUnit(), loc )
call IssueTargetOrderBJ( GetLastCreatedUnit(), "drain", target )
set dummy = GetLastCreatedUnit()
call StoreIntegerBJ( H2I(dummy), I2S(H2I(u)), "dummy", g )
call StoreIntegerBJ( H2I(caster), I2S(H2I(u)), "caster", g )
call GroupAddUnitSimple(dummy,dummycasters)
call TriggerRegisterUnitEvent( u, target, EVENT_UNIT_DAMAGED )
call TriggerAddCondition( u, Condition(function Trig_MultiDrain_TargetDmgCondition) )
call TriggerAddAction( u, function Trig_MultiDrain_TargetDmgActions )
call PolledWait(0.5)
loop
call TriggerSleepAction( 0.1 )
exitwhen UnitHasBuffBJ( dummy, getOmniDrain_buff() ) == false
endloop
call GroupRemoveUnitSimple(dummy,dummycasters)
call FlushStoredInteger(g,"dummy", I2S(H2I(u)))
call FlushStoredInteger(g,"caster", I2S(H2I(u)))
call DestroyTrigger(u)
call RemoveLocation(loc)
set loc = null
endfunction
function Trig_MultiDrain_DmgEvent takes nothing returns nothing
call ExecuteFunc("Trig_MultiDrain_DmgEvent_Child")
endfunction
function Trig_MultiDrain_AddEvent takes nothing returns nothing
local gamecache g = GetMultiDrainGameCache()
local trigger t = I2T(GetStoredInteger(g,"t",I2S(H2I(GetTriggerUnit()))))
call TriggerRegisterUnitEvent( t, GetEnumUnit(), EVENT_UNIT_DAMAGED )
endfunction
function Trig_MultiDrain_AddGroupCondition takes nothing returns boolean
local gamecache g = GetMultiDrainGameCache()
local unit dummycaster = I2U(GetStoredInteger(g, "dummycaster", I2S(H2I(GetTriggeringTrigger()))))
return ( GetEventDamageSource() == dummycaster )
//set g = null
endfunction
function Trig_MultiDrain_AddGroupActions takes nothing returns nothing
local gamecache g = GetMultiDrainGameCache()
local group targets = I2G(GetStoredInteger(g, "targets", I2S(H2I(GetTriggeringTrigger()))))
call GroupAddUnitSimple(GetTriggerUnit(), targets)
endfunction
function Trig_MultiDrain_InitActions takes nothing returns nothing
local gamecache g = GetMultiDrainGameCache()
local unit caster = GetSpellAbilityUnit()
local unit target = GetSpellTargetUnit()
local unit dummycaster
local location loc = GetUnitLoc(caster)
local location targetloc = GetUnitLoc(target)
local group targets = CreateGroup()
local group tempgroup
local group dummycasters = CreateGroup()
local trigger t = CreateTrigger()
local integer spell = GetSpellAbilityId()
local trigger endcast = CreateTrigger()
local boolean isendcast = false
local effect fx = AddSpecialEffectTargetUnitBJ( "chest", caster, "Abilities\\Spells\\Other\\Drain\\DrainCaster.mdl" )
call CastAbility(getOmniDrain_DummyCheck_Abilcode(),1,"forkedlightning",caster,target,loc,0)
set dummycaster = GetLastCreatedUnit()
set targets = GetUnitsInRangeOfLocAll(1500.00, loc)
call StoreIntegerBJ( H2I(t), I2S(H2I(GetTriggerUnit())), "t", g )
call ForGroupBJ( targets, function Trig_MultiDrain_AddEvent )
call GroupClear(targets)
call TriggerAddCondition( t, Condition(function Trig_MultiDrain_AddGroupCondition) )
call TriggerAddAction( t, function Trig_MultiDrain_AddGroupActions )
call TriggerRegisterUnitEvent(endcast, caster, EVENT_UNIT_SPELL_ENDCAST)
call StoreIntegerBJ( H2I(caster), I2S(H2I(t)), "caster", g )
call StoreIntegerBJ( H2I(target), I2S(H2I(t)), "target", g )
call StoreIntegerBJ( H2I(dummycaster), I2S(H2I(t)), "dummycaster", g )
call StoreIntegerBJ( H2I(targets), I2S(H2I(t)), "targets", g )
call StoreIntegerBJ( H2I(dummycasters), I2S(H2I(t)), "dummycasters", g )
call StoreIntegerBJ( spell, I2S(H2I(t)), "spell", g )
call StoreBooleanBJ(isendcast, I2S(H2I(t)), "endcast", g)
call PolledWait(0.4)
call GroupRemoveUnitSimple( target, targets )
set tempgroup = GetRandomSubGroup(getOmniDrain_CapTargets()-1, targets)
call DestroyGroup(targets)
set targets = tempgroup
call GroupAddUnitSimple( target, targets )
call ForGroupBJ( targets, function Trig_MultiDrain_DmgEvent )
loop
call TriggerSleepAction(0.1)
exitwhen GetTriggerEvalCount(endcast)>0 or CountUnitsInGroup(dummycasters) == 0 or GetUnitCurrentOrder(caster) != String2OrderIdBJ("drain")
endloop
call PauseUnitBJ( true, caster )
call PauseUnitBJ( false, caster )
call ForGroupBJ( dummycasters, function Trig_MultiDrain_RemoveCasters )
call RemoveLocation(loc)
call RemoveLocation(targetloc)
call DestroyEffect(fx)
call PolledWait(0.1)
call FlushStoredInteger(g,"caster", I2S(H2I(t)))
call FlushStoredInteger(g,"t", I2S(H2I(caster)))
call FlushStoredInteger(g,"target", I2S(H2I(t)))
call FlushStoredInteger(g,"spell", I2S(H2I(t)))
call FlushStoredInteger(g,"targets", I2S(H2I(t)))
call FlushStoredBoolean(g,"endcast", I2S(H2I(t)))
call FlushStoredInteger(g,"dummycaster", I2S(H2I(t)))
call FlushStoredInteger(g,"dummycasters", I2S(H2I(t)))
call DestroyTrigger(t)
call DestroyTrigger(endcast)
call GroupClear(targets)
call DestroyGroup(targets)
call DestroyGroup(tempgroup)
call DestroyGroup(dummycasters)
set t = null
set endcast = null
set targets = null
set dummycasters = null
set loc = null
endfunction
//===========================================================================
function InitTrig_OmniDrain takes nothing returns nothing
local trigger m = CreateTrigger()
set gg_trg_OmniDrain = GameCache2Trigger(InitGameCache( "MultiDrain.w3v" ))
call TriggerRegisterAnyUnitEventBJ( m, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( m, Condition( function Trig_MultiDrain_InitConditions ) )
call TriggerAddAction( m, function Trig_MultiDrain_InitActions )
endfunction
//===========
//Readme: ==
//==============================================
//DotA based spell Chain Frost: maded by IceFrog
//This version of Chain Frost is maded by Dark Dragon
//----------------------------------------------
//Jumps many times dealing heavy damage and
//slowing enemys
//**********************************************
//As Chain Lightning just much better can
//jump more then once on same target
//**********************************************
//You have right to use this spell in your map
//and edit it ( do anything )
//----------------------------------------------
//However my system UserTimerData will not
//pass as taking it and using it your map
//whitout credits
//==============================================
//Need additional help mail me at:
//<[email protected]>
//**********************************************
//Have Fun!!!
//**********************************************
//Used Globals - that need to be in every map
//globals
// trigger gg_trg_Chain_Frost_jass = null
// unit udg_LastTarget = null
// timer array udg_StoredTimer
// integer array udg_StoredTimerData
// integer udg_maxTimerStored = -1
//endglobals
//========================
//User own stile settings:
//========================
//Boolean type function which returns shuld chain frost use custom sounds
constant function UseSounds takes nothing returns boolean
//Set TRUE to use custom sounds or FALSE to disable custom sounds
//Note: You can use this even if you have slow computer
//Default: TRUE
return TRUE
endfunction
//Boolean type function which returns shuld chain frost use custom graphics
constant function UsingGraphics takes nothing returns boolean
//Set TRUE to use custom graphics or FALSE to disable custom graphics
//Note: You can use this even if you have slow computer
//Default: TRUE
return TRUE
endfunction
//====---==== End user setup ====---====\\
//==== ** ==== ** === ** ===
//Note: You need to edit this raw codes to match your map
//If you dont knowe your raw code in map, follow this steps:
//1. Go to object editor. Hotkey(F6)
//2. Find the spell or unit you copyed.
//3. Press Ctrl + D
//4. Now you will see raw data.
//For any needed object here find raw code in object editor
//One more thing on custom unit you will see 2x raw code
//The raw code of custom unit and the raw code of unit he was created
//Use always first raw code (left one)
//==== ** ==== ** === ** ===
//--- Raw Codes ---
//--- Chain Frost Raw Code --- Needed raw code ---
constant function CF_RawCode takes nothing returns integer
return 'A02M'
endfunction
//--- Chain Frost Upg Raw Code --- Needed raw code ---
constant function CFU_RawCode takes nothing returns integer
return 'A004'
endfunction
//--- Dummy Raw Code --- Needed raw code ---
constant function Dum_RawCode takes nothing returns integer
return 'e005'
endfunction
//--- Missile Raw Code --- Needed raw code ---
constant function Mis_RawCode takes nothing returns integer
return 'u00F'
endfunction
//--- Missile Graphics Raw Code --- Needed raw code ---
constant function Grp_RawCode takes nothing returns integer
return 'u00G'
endfunction
//--- Damage lvl 1 Raw Code --- Needed raw code ---
constant function DL1_RawCode takes nothing returns integer
return 'A01V'
endfunction
//--- Damage lvl 2 Raw Code --- Needed raw code ---
constant function DL2_RawCode takes nothing returns integer
return 'A024'
endfunction
//--- Damage lvl 3 Raw Code --- Needed raw code ---
constant function DL3_RawCode takes nothing returns integer
return 'A025'
endfunction
//--- Damage lvl 4 Raw Code --- Needed raw code ---
constant function DL4_RawCode takes nothing returns integer
return 'A02C'
endfunction
//--- Locus Raw Code --- This is constant raw code ---
constant function Loc_RawCode takes nothing returns integer
return 'Aloc'
endfunction
//--- Generic Timer Raw Code --- This is constant raw code ---
constant function GT_RawCode takes nothing returns integer
return 'BTLF'
endfunction
//============================================
//--- Conversion Functions --- Integer Main
//============================================
//*** Unit to Integer
constant function U2I takes unit u returns integer
return u
return 0
endfunction
//*** Integer to Unit
constant function I2U takes integer i returns unit
return i
return null
endfunction
//*** Group to Integer
constant function G2I takes group g returns integer
return g
return 0
endfunction
//*** Integer to Group
constant function I2G takes integer i returns group
return i
return null
endfunction
//===================================================================================
//Functions
//--- Returns angle bettwen coordinates ( points )
function AngleBetweenCoord takes real x1, real y1, real x2, real y2 returns real
return bj_RADTODEG * Atan2( y2 - y1, x2 - x1 )
endfunction
//Polar Projection X
function PolarProjectionX takes real x, real dist, real angle returns real
return x + dist * Cos( angle * bj_DEGTORAD )
endfunction
//Polar Projection Y
function PolarProjectionY takes real y, real dist, real angle returns real
return y + dist * Sin( angle * bj_DEGTORAD )
endfunction
//Returns Disatance between coordiantes ( points )
function DistanceBetweenCoord takes real x1, real y1, real x2, real y2 returns real
local real x = x2-x1
local real y = y2-y1
return SquareRoot( x*x + y*y )
endfunction
//--- Checks is unit invulnerable
function GetDamageFactorEx takes unit whichUnit returns real
local unit dummy
local real life = GetUnitState(whichUnit, UNIT_STATE_LIFE)
local real x = GetCameraBoundMinX() + 100
local real y = GetCameraBoundMinY() + 100
set dummy = CreateUnit( Player(PLAYER_NEUTRAL_PASSIVE), Dum_RawCode(), x, y, 0 )
call UnitAddAbility( dummy, Loc_RawCode() )
call UnitApplyTimedLife( dummy, GT_RawCode(), 0.25 )
call UnitDamageTarget( dummy, whichUnit, 0.01, true, false, ATTACK_TYPE_CHAOS, DAMAGE_TYPE_UNIVERSAL, WEAPON_TYPE_WHOKNOWS )
set dummy = null
set x = 0.00
set y = 0.00
return life - GetUnitState(whichUnit, UNIT_STATE_LIFE)
endfunction
//Used for storing timer data
function SetUserTimerData takes timer whichTimer, integer data returns nothing
//local integer i = 0
//loop
//exitwhen i > udg_ChainFrostmaxTimerStored
// if ( whichTimer == udg_ChainFrostStoredTimer[i] ) then
// set udg_ChainFrostStoredTimerData[i] = data
// return
// endif
// set i = i + 1
//endloop
set udg_ChainFrostmaxTimerStored = udg_ChainFrostmaxTimerStored + 1
if ( udg_ChainFrostmaxTimerStored > JASS_MAX_ARRAY_SIZE ) then
set udg_ChainFrostmaxTimerStored = udg_ChainFrostmaxTimerStored - 1
return
endif
set udg_ChainFrostStoredTimer[udg_ChainFrostmaxTimerStored] = whichTimer
set udg_ChainFrostStoredTimerData[udg_ChainFrostmaxTimerStored] = data
endfunction
//Returns timer data
constant function GetUserTimerData takes timer whichTimer returns integer
local integer i = 0
loop
exitwhen i > udg_ChainFrostmaxTimerStored
if ( udg_ChainFrostStoredTimer[i] == whichTimer ) then
return udg_ChainFrostStoredTimerData[i]
endif
set i = i + 1
endloop
return 0
endfunction
//Clears timer data
function ClearUserTimerData takes timer whichTimer, boolean destroyTimer returns nothing
local integer i = 0
local boolean changeData = false
loop
exitwhen i > udg_ChainFrostmaxTimerStored
if ( udg_ChainFrostStoredTimer[i] == whichTimer and changeData == false ) then
set changeData = true
if ( destroyTimer ) then
call PauseTimer(whichTimer)
call DestroyTimer(whichTimer)
endif
set udg_ChainFrostStoredTimer[i] = null
set udg_ChainFrostStoredTimerData[i] = 0
endif
if ( changeData and udg_ChainFrostStoredTimer[i+1] != null ) then
set udg_ChainFrostStoredTimer[i] = udg_ChainFrostStoredTimer[i+1]
set udg_ChainFrostStoredTimerData[i] = udg_ChainFrostStoredTimerData[i+1]
elseif ( changeData and udg_ChainFrostStoredTimer[i+1] == null ) then
set udg_ChainFrostStoredTimer[i] = null
set udg_ChainFrostStoredTimerData[i] = 0
set udg_ChainFrostmaxTimerStored = i - 1
endif
set i = i + 1
endloop
endfunction
//PlaySoundEx plays sound using coordintes ( 3D sounds must get positioned )
function PlaySoundEx takes sound soundHandle, real x, real y, real z, boolean kill returns nothing
call StopSound( soundHandle, false, false )
call SetSoundPosition( soundHandle, x, y, z )
call StartSound( soundHandle )
if ( kill ) then
call KillSoundWhenDone( soundHandle )
endif
endfunction
// ===== End Functions ======
//Main Condition
function IsChainFrostCasted takes nothing returns boolean
//Check if ability is cast "chain frost" or "chain frost upgraded(scepter)"
return GetSpellAbilityId() == CF_RawCode() or GetSpellAbilityId() == CFU_RawCode()
endfunction
//--- Chain Frost Group ---
function Chain_Frost_group takes nothing returns boolean
return ((IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false) and (IsUnitType(GetFilterUnit(), UNIT_TYPE_MECHANICAL) == false) and (IsUnitType(GetFilterUnit(), UNIT_TYPE_MAGIC_IMMUNE) == false) and ( IsUnitVisible(GetFilterUnit(), GetOwningPlayer(GetTriggerUnit())) ) and ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(GetTriggerUnit())) ) and (GetUnitState( GetFilterUnit(), UNIT_STATE_LIFE ) > 0) and (GetDamageFactorEx( GetFilterUnit() ) != 0) and (udg_ChainFrostLastTarget != GetFilterUnit()) )
endfunction
//Returns random unit
function GroupGiveRandomUnit takes nothing returns nothing
local unit u = GetEnumUnit()
set bj_groupRandomConsidered = bj_groupRandomConsidered + 1
if ( GetRandomInt( 1, bj_groupRandomConsidered ) == 1 ) then
set bj_groupRandomCurrentPick = u
endif
set u = null
endfunction
//**** ****
//Graphics Main Function
//**** ****
function GraphicsMove takes nothing returns nothing
local unit u = GetEnumUnit()
local real rad = GetUnitFacing(u) * bj_DEGTORAD
//Moves picked graphics using speed of 200
call SetUnitPosition( u, GetUnitX(u)+ 2*Cos(rad), GetUnitY(u)+ 2*Sin(rad) )
set u = null
endfunction
function GraphicsKill takes nothing returns nothing
//Kill units insted of remove because of effects
call KillUnit( GetEnumUnit() )
endfunction
function GraphicsMain takes nothing returns nothing
local timer t = GetExpiredTimer()
local group g = I2G(GetUserTimerData(t))
local unit u = FirstOfGroup(g)
local integer exec = GetUnitUserData(u)+1
call SetUnitUserData( u, exec )
if exec == 100 then
call ForGroup( g, function GraphicsKill )
call ClearUserTimerData( t, true )
call DestroyGroup(g)
set t = null
set g = null
set u = null
return
endif
call ForGroup( g, function GraphicsMove )
set t = null
set g = null
set u = null
endfunction
//Missile Move Timer
function SetMissileXY takes nothing returns nothing
local timer t = GetExpiredTimer()
local unit dummy = I2U(GetUserTimerData(t))
local unit missile = I2U(GetUnitUserData(dummy))
local unit target = I2U(GetUnitUserData(missile))
local real speed = 8. //Speed * timer speed (8) Default
local real x = GetUnitX(missile)
local real y = GetUnitY(missile)
local real x2 = GetUnitX(target)
local real y2 = GetUnitY(target)
local real angle = AngleBetweenCoord( x, y, x2, y2 )
local real distance = 0.
set x = PolarProjectionX( x, speed, angle )
set y = PolarProjectionY( y, speed, angle )
call SetUnitPosition( missile, x, y )
call SetUnitFacing( missile, angle )
set distance = DistanceBetweenCoord( x, y, x2, y2 )
if ( distance <= 30 ) then
call ClearUserTimerData( t, true )
call RemoveUnit(missile)
//Quick blow ( precious timer ) if it did not
//there is debug after polledwait
call IssueTargetOrder( dummy, "frostnova", target )
//Nuls
set dummy = null
set missile = null
set target = null
endif
set t = null
set speed = 0.00
set angle = 0.00
set x = 0.00
set y = 0.00
set x2 = 0.00
set y2 = 0.00
set distance = 0.00
endfunction
//Main Trigger Actions
function Trig_Chain_Frost_jass_Actions takes nothing returns nothing
//Local variables declaire
local unit caster //Spell caster
local real x //Coordinate X
local real y //Coordinate Y
local real z //Z (height) is used only by sounds
local unit target //Spell target / chain target
local integer jumps //Current jumps in game
local integer max_jumps //Max spell jumps
local integer i //Loop index i
local integer frost_damage //Spell damage
local unit missile //Chain missile
local group frost_group //Random units in radius ( taken from this group )
local unit dummy //Dummy unit hurter
local real distance //Distance between target and last target
local real height //Needed hight for missile
local real raise //Raise time for missile to get hight using distance
local player p //Player owner of caster (u)
local real angle //Angle used to make dummy facing
local boolexpr bx //BooleanExpresion for Filter function used by frost_group
local timer t //Timer which moves missile
local real sleep //Used in PolledWait for max precius sleep
local real missileFlyHeight //Constant missile fly height //Default: 30
local real missileSpeed //Constant missile speed //Default: 800
local real timerSpeed //Constant missile timer move speed //Default: 0.01
local sound frost_blow //Frost blow sound
local sound field_snd //Frost field sound
local sound missile_fly //Missile fly sound
local sound spell_start //Spell start sound
local group grp_group //Graphics group
local unit grpU //Graphics unit
local terraindeformation td //Used in custom graphics ( this var is not needed ) you can call funct directly
//Init sounds
if ( UseSounds() ) then
set frost_blow = CreateSound( "Abilities\\Spells\\Undead\\FrostNova\\FrostNovaTarget1.wav", false, true, true, 10, 10, "DefaultEAXON" )
call SetSoundDuration( frost_blow, 2904 )
call SetSoundVolume( frost_blow, 110 )
call SetSoundPitch( frost_blow, 0.8 )
call SetSoundChannel( frost_blow, 0 )
set field_snd = CreateSound( "Abilities\\Spells\\NightElf\\Barkskin\\BarkSkinTarget1.wav", false, true, true, 10, 10, "DefaultEAXON" )
call SetSoundDuration( field_snd, 2669 )
call SetSoundVolume( field_snd, 110 )
call SetSoundPitch( field_snd, 0.7 )
call SetSoundChannel( field_snd, 0 )
set missile_fly = CreateSound( "Abilities\\Spells\\NightElf\\FaerieDragonInvis\\PhaseShift1.wav", false, true, true, 10, 10, "DefaultEAXON" )
call SetSoundDuration( missile_fly, 1251 )
call SetSoundVolume( missile_fly, 80 )
call SetSoundPitch( missile_fly, 0.7 )
call SetSoundChannel( missile_fly, 0 )
set spell_start = CreateSound( "Abilities\\Spells\\Other\\BreathOfFrost\\BreathOfFrost1.wav", false, true, true, 10, 10, "DefaultEAXON" )
call SetSoundDuration( spell_start, 2235 )
call SetSoundVolume( spell_start, 90 )
call SetSoundPitch( spell_start, 0.9 )
call SetSoundChannel( spell_start, 0 )
endif
//Init start vars value
set caster = GetTriggerUnit()
set x = GetUnitX(caster)
set y = GetUnitY(caster)
set target = GetSpellTargetUnit()
set p = GetOwningPlayer(caster)
set z = 0
set missileFlyHeight = 30
set missileSpeed = 800
set timerSpeed = 0.01
//Play chain frost start sound
if ( UseSounds() ) then
call PlaySoundEx( spell_start, x, y, z, true )
endif
//Get jumps and max_jumps
if ( GetSpellAbilityId() == CF_RawCode() ) then
set jumps = 6
else
set jumps = 7
endif
set max_jumps = jumps
//Get level damage
if ( GetUnitAbilityLevel( caster, CF_RawCode() ) == 1 ) then
set frost_damage = DL1_RawCode()
elseif ( ( GetUnitAbilityLevel( caster, CF_RawCode() ) == 2 ) or ( GetUnitAbilityLevel( caster, CFU_RawCode() ) == 1 ) ) then
set frost_damage = DL2_RawCode()
elseif ( ( GetUnitAbilityLevel( caster, CF_RawCode() ) == 3 ) or ( GetUnitAbilityLevel( caster, CFU_RawCode() ) == 2 ) ) then
set frost_damage = DL3_RawCode()
else
set frost_damage = DL4_RawCode()
endif
//Jumps loop main
loop
exitwhen (jumps < 1)
set jumps = jumps - 1
set frost_group = CreateGroup()
//Load missile / pick random nerby unit
if ( jumps + 1 == max_jumps ) then
set missile = CreateUnit( p, Mis_RawCode(), x, y, AngleBetweenCoord( x, y, GetUnitX(target), GetUnitY(target) ) )
else
set x = GetUnitX(target)
set y = GetUnitY(target)
set bx = Filter( function Chain_Frost_group )
set udg_ChainFrostLastTarget = target
call GroupEnumUnitsInRange( frost_group, x, y, 550, bx )
set udg_ChainFrostLastTarget = null
call DestroyBoolExpr( bx )
set bj_groupRandomConsidered = 0
call ForGroup( frost_group, function GroupGiveRandomUnit )
set target = bj_groupRandomCurrentPick
call DestroyGroup(frost_group)
//End trigger if there is no target
if ( target == null or GetUnitState( target, UNIT_STATE_LIFE ) <= 0 ) then
set jumps = 0
set max_jumps = 0
set distance = 0.00
set x = 0.00
set y = 0.00
set p = null
set caster = null
set target = null
set frost_damage = 0
set missileFlyHeight = 0.00
set missileSpeed = 0.00
set timerSpeed = 0.00
set i = 0
call KillSoundWhenDone( frost_blow )
call KillSoundWhenDone( field_snd )
call KillSoundWhenDone( missile_fly )
return
endif
set missile = CreateUnit( p, Mis_RawCode(), x, y, AngleBetweenCoord( x, y, GetUnitX(target), GetUnitY(target) ) )
if ( height > 30. ) then
call SetUnitFlyHeight( missile, height, 0. )
endif
set missileFlyHeight = GetUnitFlyHeight(missile)
endif
//Play missile sound
if ( UseSounds() ) then
set height = GetUnitFlyHeight(target)
if ( height > missileFlyHeight ) then
set z = ( height / 2 ) + ( missileFlyHeight / 2 )
else
set z = missileFlyHeight
endif
call PlaySoundEx( missile_fly, x, y, z, false )
set height = 0.00
set z = 0.00
endif
//Play field sound
if ( UseSounds() ) then
set distance = DistanceBetweenCoord( x, y, GetUnitX(target), GetUnitY(target) ) / 2
set x = PolarProjectionX( x, distance, AngleBetweenCoord( x, y, GetUnitX(target), GetUnitY(target) ) )
set y = PolarProjectionY( y, distance, AngleBetweenCoord( GetUnitX(missile), y, GetUnitX(target), GetUnitY(target) ) )
call PlaySoundEx( field_snd, x, y, z, false )
endif
//Prepare to move missile and dummy load + other stuff
call UnitAddAbility( missile, Loc_RawCode() )
set x = GetUnitX(target)
set y = GetUnitY(target)
set distance = DistanceBetweenCoord( x, y, GetUnitX(missile), GetUnitY(missile) )
call UnitApplyTimedLife( missile, GT_RawCode(), distance / 800 ) // To reduce bugs
//Terrain Deformation ( graphics setup )
if ( UsingGraphics() ) then
set td = TerrainDeformWave( GetUnitX(missile), GetUnitY(missile), x, y, distance, missileSpeed, 100, 70, 750, 1 )
set td = null
endif
//Missile fly height setup
set height = GetUnitFlyHeight( target )
if ( height > missileFlyHeight ) then
set height = GetUnitFlyHeight(target)
set raise = height / ( distance / 800 )
call SetUnitFlyHeight( missile, height, raise )
set raise = 0.00
elseif ( height < missileFlyHeight ) then
set raise = ( missileFlyHeight - height ) / ( distance / 800 )
call SetUnitFlyHeight( missile, height, raise )
endif
set angle = GetUnitFacing(target) - 180
set x = PolarProjectionX( x, 150, angle )
set y = PolarProjectionY( y, 150, angle )
set angle = 0.00
set dummy = CreateUnit( p, Dum_RawCode(), x, y, AngleBetweenCoord( x, y, GetUnitX(target), GetUnitY(target) ) )
call UnitAddAbility( dummy, Loc_RawCode() )
call UnitAddAbility( dummy, frost_damage )
//Make AI target not to run
if ( ( jumps + 1 == max_jumps ) and ( GetPlayerController(GetOwningPlayer(target)) != MAP_CONTROL_USER ) ) then
call TriggerSleepAction(-1)
call IssuePointOrder( target, "attack", GetUnitX(caster), GetUnitY(caster) )
endif
//===== Timer Setup =======
//=== Move missile ===
//===== *********** =======
call SetUnitUserData(missile, U2I(target))
call SetUnitUserData(dummy, U2I(missile))
set t = CreateTimer()
call SetUserTimerData( t, U2I(dummy) )
call TimerStart( t, timerSpeed, true, function SetMissileXY )
//Sleep while missile dont get target
if ( jumps + 1 == max_jumps ) then
set sleep = ( distance / missileSpeed ) - 0.30
else
set sleep = ( distance / missileSpeed ) - 0.15
endif
if ( sleep < bj_WAIT_FOR_COND_MIN_INTERVAL ) then
set sleep = bj_WAIT_FOR_COND_MIN_INTERVAL
endif
call PolledWait( sleep )
set sleep = 0.00
//Frost blow sound
if ( UseSounds() ) then
set x = GetUnitX(target)
set y = GetUnitY(target)
call PlaySoundEx( frost_blow, x, y, z, false )
endif
//Conitinue code if we have more jumps
call IssueTargetOrder( dummy, "frostnova", target ) //Reduce bugs
call UnitApplyTimedLife( dummy, GT_RawCode(), 1.00 )
//Graphics main code
if ( UsingGraphics() ) then
set i = 0
set grp_group = CreateGroup()
loop
exitwhen i >= 10
set grpU = CreateUnit( p, Grp_RawCode(), x, y, i*36 )
call UnitAddAbility( grpU, Loc_RawCode() )
call GroupAddUnit( grp_group, grpU )
set i = i + 1
endloop
set t = CreateTimer()
call SetUserTimerData( t, G2I(grp_group) )
call TimerStart( t, timerSpeed, true, function GraphicsMain )
endif
set missile = null
set dummy = null
endloop
//Clear some vars
call KillSoundWhenDone( frost_blow )
call KillSoundWhenDone( field_snd )
call KillSoundWhenDone( missile_fly )
set caster = null
set target = null
set p = null
set x = 0.00
set y = 0.00
set max_jumps = 0
set distance = 0.00
set frost_damage = 0
set missileFlyHeight = 0.00
set missileSpeed = 0.00
set timerSpeed = 0.00
set i = 0
endfunction
//===========================================================================
function InitTrig_Chain_Frost_jass takes nothing returns nothing
local boolexpr bx = Filter(null)
//Create chain frost trigger
set gg_trg_Chain_Frost_jass = CreateTrigger( )
//Triggers events / condition
call TriggerRegisterPlayerUnitEvent( gg_trg_Chain_Frost_jass, Player( 0), EVENT_PLAYER_UNIT_SPELL_EFFECT, bx )
call TriggerRegisterPlayerUnitEvent( gg_trg_Chain_Frost_jass, Player( 1), EVENT_PLAYER_UNIT_SPELL_EFFECT, bx )
call TriggerRegisterPlayerUnitEvent( gg_trg_Chain_Frost_jass, Player( 2), EVENT_PLAYER_UNIT_SPELL_EFFECT, bx )
call TriggerRegisterPlayerUnitEvent( gg_trg_Chain_Frost_jass, Player( 3), EVENT_PLAYER_UNIT_SPELL_EFFECT, bx )
call TriggerRegisterPlayerUnitEvent( gg_trg_Chain_Frost_jass, Player( 4), EVENT_PLAYER_UNIT_SPELL_EFFECT, bx )
call TriggerRegisterPlayerUnitEvent( gg_trg_Chain_Frost_jass, Player( 5), EVENT_PLAYER_UNIT_SPELL_EFFECT, bx )
call TriggerRegisterPlayerUnitEvent( gg_trg_Chain_Frost_jass, Player( 6), EVENT_PLAYER_UNIT_SPELL_EFFECT, bx )
call TriggerRegisterPlayerUnitEvent( gg_trg_Chain_Frost_jass, Player( 7), EVENT_PLAYER_UNIT_SPELL_EFFECT, bx )
call TriggerRegisterPlayerUnitEvent( gg_trg_Chain_Frost_jass, Player( 8), EVENT_PLAYER_UNIT_SPELL_EFFECT, bx )
call TriggerRegisterPlayerUnitEvent( gg_trg_Chain_Frost_jass, Player( 9), EVENT_PLAYER_UNIT_SPELL_EFFECT, bx )
call TriggerRegisterPlayerUnitEvent( gg_trg_Chain_Frost_jass, Player(10), EVENT_PLAYER_UNIT_SPELL_EFFECT, bx )
call TriggerRegisterPlayerUnitEvent( gg_trg_Chain_Frost_jass, Player(11), EVENT_PLAYER_UNIT_SPELL_EFFECT, bx )
call TriggerRegisterPlayerUnitEvent( gg_trg_Chain_Frost_jass, Player(12), EVENT_PLAYER_UNIT_SPELL_EFFECT, bx )
call TriggerRegisterPlayerUnitEvent( gg_trg_Chain_Frost_jass, Player(13), EVENT_PLAYER_UNIT_SPELL_EFFECT, bx )
call TriggerRegisterPlayerUnitEvent( gg_trg_Chain_Frost_jass, Player(14), EVENT_PLAYER_UNIT_SPELL_EFFECT, bx )
call TriggerRegisterPlayerUnitEvent( gg_trg_Chain_Frost_jass, Player(15), EVENT_PLAYER_UNIT_SPELL_EFFECT, bx )
call DestroyBoolExpr(bx)
call TriggerAddCondition( gg_trg_Chain_Frost_jass, Condition( function IsChainFrostCasted ) )
// Main Trigger Actions
call TriggerAddAction( gg_trg_Chain_Frost_jass, function Trig_Chain_Frost_jass_Actions )
//-----------------------------------------------------------------------
//Preloader
call Preload("Abilities\\Weapons\\FrostWyrmMissile\\FrostWyrmMissile.mdl")
call Preload("Abilities\\Weapons\\ZigguratFrostMissile\\ZigguratFrostMissile.mdl")
call Preload("Abilities\\Spells\\Undead\\FrostNova\\FrostNovaTarget.mdl")
call Preload("Abilities\\Spells\\Other\\FrostDamage\\FrostDamage.mdl")
call PreloadEnd(2.)
endfunction