Name | Type | is_array | initial_value |
AIGroup | group | No | |
cc_player | string | Yes | |
deaths | integer | Yes | |
Dialogue | dialog | No | |
DialogueButton | button | Yes | |
end_tag | string | No | |
has_warball | string | Yes | |
InvulnStones | integer | No | |
KDSpread | integer | Yes | |
kills | integer | Yes | |
ManaGroup | group | No | |
ManaStones | integer | No | 2 |
multiboard | multiboard | No | |
NetherBall | item | No | |
NetherBallCarrier | unit | No | |
player_color | integer | No | |
player_row | integer | No | 4 |
points_scored | integer | Yes | |
PowerStones | integer | No | |
PowerUpGroup | group | No | |
RejuvenationStones | integer | No | |
single_score | integer | Yes | |
SoundVar | sound | Yes | |
SpeedStones | integer | No | |
team_deaths | integer | Yes | |
team_kills | integer | Yes | |
team_score | integer | Yes | |
TeamKD | integer | Yes | |
TempGroup | group | No | |
TempItem | item | No | |
TempPoint | location | No | |
TempPoint2 | location | No | |
TempRect | rect | No | |
TempUnit | unit | No | |
Timer | timer | No | |
TimerWindow | timerdialog | No |
function Trig_revival_team_1_Copy_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'h000' ) ) then
return false
endif
if ( not ( IsPlayerAlly(GetOwningPlayer(GetTriggerUnit()), Player(0)) == true ) ) then
return false
endif
return true
endfunction
function Trig_revival_team_1_Copy_Actions takes nothing returns nothing
local unit revived
local location TempPoint = GetRandomLocInRect(gg_rct_Team_1_Respawn)
call TriggerSleepAction( 3.00 )
set revived = CreateUnitAtLoc( GetOwningPlayer(GetTriggerUnit()), 'h000', TempPoint, 0.00 )
call DestroyEffect( AddSpecialEffectLoc( "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl", TempPoint ) )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), TempPoint, 0 )
call SelectUnitForPlayerSingle( revived, GetOwningPlayer(GetTriggerUnit()) )
call RemoveLocation(TempPoint)
set revived = null
endfunction
//===========================================================================
function InitTrig_revival_team_1_Copy takes nothing returns nothing
set gg_trg_revival_team_1_Copy = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_revival_team_1_Copy, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_revival_team_1_Copy, Condition( function Trig_revival_team_1_Copy_Conditions ) )
call TriggerAddAction( gg_trg_revival_team_1_Copy, function Trig_revival_team_1_Copy_Actions )
endfunction
function Trig_revival_team_2_Copy_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'h000' ) ) then
return false
endif
if ( not ( IsPlayerAlly(GetOwningPlayer(GetTriggerUnit()), Player(6)) == true ) ) then
return false
endif
return true
endfunction
function Trig_revival_team_2_Copy_Actions takes nothing returns nothing
local unit revived
local location TempPoint = GetRandomLocInRect(gg_rct_Team_2_Respawn)
call TriggerSleepAction( 3.00 )
set revived = CreateUnitAtLoc( GetOwningPlayer(GetTriggerUnit()), 'h000', TempPoint, 0.00 )
call DestroyEffect( AddSpecialEffectLoc( "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl", TempPoint ) )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), TempPoint, 0 )
call SelectUnitForPlayerSingle( revived, GetOwningPlayer(GetTriggerUnit()) )
call RemoveLocation(TempPoint)
set revived = null
endfunction
//===========================================================================
function InitTrig_revival_team_2_Copy takes nothing returns nothing
set gg_trg_revival_team_2_Copy = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_revival_team_2_Copy, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_revival_team_2_Copy, Condition( function Trig_revival_team_2_Copy_Conditions ) )
call TriggerAddAction( gg_trg_revival_team_2_Copy, function Trig_revival_team_2_Copy_Actions )
endfunction