function IsRunner takes unit runner returns boolean
local integer typeId = GetUnitTypeId(runner)
if( IsUnitType(runner, UNIT_TYPE_STRUCTURE) == true) then
return false
endif
if( typeId == 'h002') then
return false
endif
if( typeId == 'nkot') then
return false
endif
if( typeId == 'ncen') then
return false
endif
if( typeId == 'ndtb') then
return false
endif
if( typeId == 'ndrh') then
return false
endif
//call DisplayTextToForce( GetPlayersAll(), ( "Ja, renner!" ) )
return true
endfunction
function IsDmgtest takes unit runner returns boolean
local integer typeId = GetUnitTypeId(runner)
if( typeId == 'ncen') then
return true
endif
if( typeId == 'ndtb') then
return true
endif
if( typeId == 'ndrh') then
return true
endif
return false
endfunction
function RunHere takes unit runner, integer slot returns boolean
if(GetUnitTypeId(runner) != 'nkot' ) then
if(udg_Slot_alive[slot] == false) then
return false
endif
if(GetOwningPlayer(runner) == Player(slot*2-2)) then
return false
endif
if(GetOwningPlayer(runner) == Player(slot*2-1)) then
return false
endif
endif
//call DisplayTextToForce( GetPlayersAll(), ( "Ja, renn hier!" ) )
return true
endfunction
function DmgtestDone takes integer slot returns nothing
local group ziele = CreateGroup()
local unit target = null
call DisplayTextToForce( udg_Team[0], ( "Damagetest done: (Team "+I2S(slot)+") "+I2S(R2I( udg_Slot_LastDmgTest[slot] )) ) )
if(udg_gameWon != -1) then
call TriggerExecute( gg_trg_FinalMb )
else
if(udg_Slot_alive[slot] == false) then
call MultiboardSetItemValueBJ( udg_MB, 3, udg_MB_TR[slot],"")
call MultiboardSetItemWidthBJ( udg_MB, 2, udg_MB_TR[slot], 7.20 )
call MultiboardSetItemWidthBJ( udg_MB, 3, udg_MB_TR[slot], 0.20 )
call MultiboardSetItemValueBJ( udg_MB, 2, udg_MB_TR[slot],"dmg: "+I2S(R2I( udg_Slot_LastDmgTest[slot] )))
call MultiboardSetItemColorBJ( udg_MB, 2, udg_MB_TR[slot], 100, 0, 0, 0 )
call MultiboardSetItemColorBJ( udg_MB, 3, udg_MB_TR[slot], 100, 0, 0, 0 )
call PolledWait(0.3)
call MultiboardSetItemColorBJ( udg_MB, 1, udg_MB_TR[slot], 50, 50, 50, 0 )
call MultiboardSetItemColorBJ( udg_MB, 2, udg_MB_TR[slot], 50, 50, 50, 0 )
call MultiboardSetItemColorBJ( udg_MB, 3, udg_MB_TR[slot], 50, 50, 50, 0 )
set ziele = GetUnitsOfPlayerAll(ConvertedPlayer(( slot * 2 -1)))
loop
set target = FirstOfGroup(ziele)
exitwhen target == null
call KillUnit(target)
call RemoveUnit(target)
call GroupRemoveUnit(ziele,target)
endloop
call DestroyGroup(ziele)
set ziele = CreateGroup()
set ziele = GetUnitsOfPlayerAll(ConvertedPlayer(( slot * 2 )))
loop
set target = FirstOfGroup(ziele)
exitwhen target == null
call KillUnit(target)
call RemoveUnit(target)
call GroupRemoveUnit(ziele,target)
endloop
call DestroyGroup(ziele)
set target = null
set ziele = null
endif
endif
endfunction
function StartDmgtest takes integer slot returns nothing
local location sp1 = GetRandomLocInRect(udg_Spawn_Gebiet[slot])
local location sp2 = GetRandomLocInRect(udg_Spawn_Gebiet[slot])
local location sp3 = GetRandomLocInRect(udg_Spawn_Gebiet[slot])
local location sp4 = GetRandomLocInRect(udg_Spawn_Gebiet[slot])
local location sp5 = GetRandomLocInRect(udg_Spawn_Gebiet[slot])
local location sp6 = GetRandomLocInRect(udg_Spawn_Gebiet[slot])
local location sp7 = GetRandomLocInRect(udg_Spawn_Gebiet[slot])
local location sp8 = GetRandomLocInRect(udg_Spawn_Gebiet[slot])
local location sp9 = GetRandomLocInRect(udg_Spawn_Gebiet[slot])
local player p = Player(13)
local unit s1a = CreateUnitAtLoc(p, 'ncen', sp1,270)
local unit s2a = CreateUnitAtLoc(p, 'ndtb', sp2,270)
local unit s3a = CreateUnitAtLoc(p, 'ndrh', sp3,270)
local unit s1b = CreateUnitAtLoc(p, 'ncen', sp4,270)
local unit s2b = CreateUnitAtLoc(p, 'ndtb', sp5,270)
local unit s3b = CreateUnitAtLoc(p, 'ndrh', sp6,270)
local unit s1c = CreateUnitAtLoc(p, 'ncen', sp7,270)
local unit s2c = CreateUnitAtLoc(p, 'ndtb', sp8,270)
local unit s3c = CreateUnitAtLoc(p, 'ndrh', sp9,270)
set udg_Slot_LastDmgTest[slot] = 0.00
call GroupAddUnitSimple( s1a, udg_DmgTest[slot] )
call GroupAddUnitSimple( s2a, udg_DmgTest[slot] )
call GroupAddUnitSimple( s3a, udg_DmgTest[slot] )
call GroupAddUnitSimple( s1b, udg_DmgTest[slot] )
call GroupAddUnitSimple( s2b, udg_DmgTest[slot] )
call GroupAddUnitSimple( s3b, udg_DmgTest[slot] )
call GroupAddUnitSimple( s1c, udg_DmgTest[slot] )
call GroupAddUnitSimple( s2c, udg_DmgTest[slot] )
call GroupAddUnitSimple( s3c, udg_DmgTest[slot] )
call RemoveLocation(sp1)
call RemoveLocation(sp2)
call RemoveLocation(sp3)
call RemoveLocation(sp4)
call RemoveLocation(sp5)
call RemoveLocation(sp6)
call RemoveLocation(sp7)
call RemoveLocation(sp8)
call RemoveLocation(sp9)
call IssuePointOrderLocBJ( s1a, "move", udg_Zielpunkt[slot] )
call IssuePointOrderLocBJ( s2a, "move", udg_Zielpunkt[slot] )
call IssuePointOrderLocBJ( s3a, "move", udg_Zielpunkt[slot] )
call IssuePointOrderLocBJ( s1b, "move", udg_Zielpunkt[slot] )
call IssuePointOrderLocBJ( s2b, "move", udg_Zielpunkt[slot] )
call IssuePointOrderLocBJ( s3b, "move", udg_Zielpunkt[slot] )
call IssuePointOrderLocBJ( s1c, "move", udg_Zielpunkt[slot] )
call IssuePointOrderLocBJ( s2c, "move", udg_Zielpunkt[slot] )
call IssuePointOrderLocBJ( s3c, "move", udg_Zielpunkt[slot] )
set sp1 = null
set sp2 = null
set sp3 = null
set sp4 = null
set sp5 = null
set sp6 = null
set sp7 = null
set sp8 = null
set sp9 = null
set s1a = null
set s2a = null
set s3a = null
set s1b = null
set s2b = null
set s3b = null
set s1c = null
set s2c = null
set s3c = null
endfunction
Name | Type | is_array | initial_value |
Afk_Incomes | integer | Yes | |
Aktions_Ago1 | integer | Yes | |
Aktions_Ago2 | integer | Yes | |
Aktions_Ago3 | integer | Yes | |
Aktions_this | integer | Yes | |
AntiCheat | unit | Yes | |
anticheat | integer | No | |
Anticheat_Timer | timer | No | |
Ask1 | dialog | No | |
Ask1Button | button | Yes | |
Ask2Button | button | Yes | |
Ask_beide_bauen | dialog | No | |
Ask_beide_senden | dialog | No | |
Colors | string | Yes | |
Dmggroup | group | No | |
DmgTest | group | Yes | |
Dying_Unit | unit | No | |
Entering_Unit1 | unit | No | |
Entering_Unit2 | unit | No | |
Entering_Unit3 | unit | No | |
Entering_Unit4 | unit | No | |
Entering_Unit5 | unit | No | |
Entering_Unit6 | unit | No | |
Fail | string | Yes | |
Fun_Creeps | integer | No | |
Fun_units | unitcode | Yes | |
gameWon | integer | No | -1 |
ID | integer | No | |
incomenr | integer | No | |
incometime | real | No | 15.00 |
info_team_techs | boolean | Yes | |
Killing_Unit | unit | No | |
Leaving_Player | integer | No | |
Leaving_Unit | unit | No | |
Loose | trigger | Yes | |
mb | integer | No | |
MB | multiboard | No | |
MB2 | multiboard | No | |
mb_player | integer | No | |
MB_PR | integer | Yes | |
MB_Rows | integer | No | |
mb_teams | integer | No | |
MB_TR | integer | Yes | |
Movepoint1 | location | No | |
Movepoint2 | location | No | |
Movepoint3 | location | No | |
Movepoint4 | location | No | |
Movepoint5 | location | No | |
Movepoint6 | location | No | |
nbr | integer | No | |
NumberAlvie | integer | No | |
Picked_Unit | unit | No | |
played_min | integer | No | |
played_sek | integer | No | |
Player | player | No | |
Player_IncomeM | integer | Yes | 0 |
Player_IncomeP | integer | Yes | |
Player_Kills1 | integer | Yes | |
Player_Kills2 | integer | Yes | |
Player_Kills3 | integer | Yes | |
Player_Send1 | integer | Yes | |
Player_Send2 | integer | Yes | |
Player_Send3 | integer | Yes | |
Player_Slot | integer | Yes | |
Player_task_status | integer | Yes | -1 |
Player_technr | integer | Yes | |
Point | location | No | |
q | integer | No | |
RunningCreeps | texttag | Yes | |
s | integer | No | |
Slot_alive | boolean | Yes | false |
Slot_Ep | integer | Yes | |
Slot_Gold | integer | Yes | |
Slot_hasPlayed | boolean | Yes | false |
Slot_LastDmgTest | real | Yes | |
Slot_Lifes | integer | Yes | 0 |
Slot_MBrow | integer | Yes | |
Slot_Running1 | integer | Yes | |
Slot_Running2 | integer | Yes | |
Slot_Running3 | integer | Yes | |
Slot_Wood | integer | Yes | |
sound | sound | No | |
Spawn_Gebiet | rect | Yes | |
Spawn_Player | integer | No | |
Spawn_Point | location | No | |
Spawn_Unit | unit | No | |
Spawn_Ziel | integer | Yes | |
startpaused | group | No | |
stuffmsg | string | No | |
stuffmsg2 | string | No | |
stuffmsg_written | string | No | |
stuffmsg_written2 | string | No | |
stuffrandom | integer | No | |
stuffremove | boolean | No | |
stuffrow | integer | No | |
t | integer | No | |
Team | force | Yes | |
Tech_Player | player | No | |
Teching_Unit | unit | No | |
TechTyp | unitcode | No | |
temp_player | player | No | |
temp_playergroup | force | No | |
temp_unitgroup | group | No | |
Time | string | No | |
Timer_Income | timer | No | |
timerow | integer | No | |
Timerw_Income | timerdialog | No | |
toujourspositif | integer | Yes | 20 |
Unit | unit | No | |
Unit_GoldBonus | integer | Yes | |
Unit_SpawnUnits | integer | Yes | |
x | integer | No | |
xx | real | No | |
y | integer | No | |
yy | real | No | |
Zielpunkt | location | Yes |
function Trig_SpamStuff_Actions takes nothing returns nothing
local integer wl = StringLength(udg_stuffmsg_written)
local integer ml = StringLength(udg_stuffmsg)
local integer wl2 = StringLength(udg_stuffmsg_written2)
local integer ml2 = StringLength(udg_stuffmsg2)
if ( udg_stuffremove == false ) then
if ( udg_stuffmsg != udg_stuffmsg_written ) then
set udg_stuffmsg_written = SubString(udg_stuffmsg,ml-wl-1,ml)
call MultiboardSetItemValueBJ( udg_MB, 1, udg_stuffrow, udg_stuffmsg_written )
if(udg_stuffmsg2 != udg_stuffmsg_written2 ) then
set udg_stuffmsg_written2 = SubString(udg_stuffmsg2,ml2-wl2-1,ml2)
call MultiboardSetItemValueBJ( udg_MB, 1, udg_stuffrow-1, udg_stuffmsg_written2 )
endif
else
call DisableTrigger(gg_trg_SpamStuff)
set udg_stuffremove = true
call MultiboardSetItemValueBJ( udg_MB, 1, udg_stuffrow, udg_stuffmsg_written)
call MultiboardSetItemValueBJ( udg_MB, 1, udg_stuffrow-1, udg_stuffmsg_written2 )
endif
else
if(wl > 1) then
set udg_stuffmsg_written = SubString(udg_stuffmsg_written,2,wl)
call MultiboardSetItemValueBJ( udg_MB, 1, udg_stuffrow, udg_stuffmsg_written )
if(wl2 > 1) then
set udg_stuffmsg_written2 = SubString(udg_stuffmsg_written2,2,wl2)
call MultiboardSetItemValueBJ( udg_MB, 1, udg_stuffrow-1, udg_stuffmsg_written2 )
endif
else
call MultiboardSetItemValueBJ( udg_MB, 1, udg_stuffrow, "" )
call MultiboardSetItemValueBJ( udg_MB, 1, udg_stuffrow-1, "" )
set udg_stuffmsg_written = ""
set udg_stuffmsg_written2 = ""
set udg_stuffremove = false
endif
endif
endfunction
//===========================================================================
function InitTrig_SpamStuff takes nothing returns nothing
set gg_trg_SpamStuff = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_SpamStuff, 0.42 )
call TriggerAddAction( gg_trg_SpamStuff, function Trig_SpamStuff_Actions )
endfunction
function Trig_RunDmgTestGroup_Copy_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1601" )
set udg_Slot_LastDmgTest[1] = 0.00
call StartDmgtest(1)
endfunction
//===========================================================================
function InitTrig_RunDmgTestGroup_Copy takes nothing returns nothing
set gg_trg_RunDmgTestGroup_Copy = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_RunDmgTestGroup_Copy, Player(0), "-dmgg", true )
call TriggerAddAction( gg_trg_RunDmgTestGroup_Copy, function Trig_RunDmgTestGroup_Copy_Actions )
endfunction
function Trig_AktuSpawnZiel_Actions takes nothing returns nothing
local integer p1 = 1
local integer p2 = 2
if(udg_Slot_alive[2] == true) then
set udg_Spawn_Ziel[p1] = 2
set udg_Spawn_Ziel[p2] = 2
else
if(udg_Slot_alive[3] == true) then
set udg_Spawn_Ziel[p1] = 3
set udg_Spawn_Ziel[p2] = 3
else
if(udg_Slot_alive[4] == true) then
set udg_Spawn_Ziel[p1] = 4
set udg_Spawn_Ziel[p2] = 4
else
if(udg_Slot_alive[5] == true) then
set udg_Spawn_Ziel[p1] = 5
set udg_Spawn_Ziel[p2] = 5
else
if(udg_Slot_alive[6] == true) then
set udg_Spawn_Ziel[p1] = 6
set udg_Spawn_Ziel[p2] = 6
endif
endif
endif
endif
endif
set p1 = 3
set p2 = 4
if(udg_Slot_alive[3] == true) then
set udg_Spawn_Ziel[p1] = 3
set udg_Spawn_Ziel[p2] = 3
else
if(udg_Slot_alive[4] == true) then
set udg_Spawn_Ziel[p1] = 4
set udg_Spawn_Ziel[p2] = 4
else
if(udg_Slot_alive[5] == true) then
set udg_Spawn_Ziel[p1] = 5
set udg_Spawn_Ziel[p2] = 5
else
if(udg_Slot_alive[6] == true) then
set udg_Spawn_Ziel[p1] = 6
set udg_Spawn_Ziel[p2] = 6
else
if(udg_Slot_alive[1] == true) then
set udg_Spawn_Ziel[p1] = 1
set udg_Spawn_Ziel[p2] = 1
endif
endif
endif
endif
endif
set p1 = 5
set p2 = 6
if(udg_Slot_alive[4] == true) then
set udg_Spawn_Ziel[p1] = 4
set udg_Spawn_Ziel[p2] = 4
else
if(udg_Slot_alive[5] == true) then
set udg_Spawn_Ziel[p1] = 5
set udg_Spawn_Ziel[p2] = 5
else
if(udg_Slot_alive[6] == true) then
set udg_Spawn_Ziel[p1] = 6
set udg_Spawn_Ziel[p2] = 6
else
if(udg_Slot_alive[1] == true) then
set udg_Spawn_Ziel[p1] = 1
set udg_Spawn_Ziel[p2] = 1
else
if(udg_Slot_alive[2] == true) then
set udg_Spawn_Ziel[p1] = 2
set udg_Spawn_Ziel[p2] = 2
endif
endif
endif
endif
endif
set p1 = 7
set p2 = 8
if(udg_Slot_alive[5] == true) then
set udg_Spawn_Ziel[p1] = 5
set udg_Spawn_Ziel[p2] = 5
else
if(udg_Slot_alive[6] == true) then
set udg_Spawn_Ziel[p1] = 6
set udg_Spawn_Ziel[p2] = 6
else
if(udg_Slot_alive[1] == true) then
set udg_Spawn_Ziel[p1] = 1
set udg_Spawn_Ziel[p2] = 1
else
if(udg_Slot_alive[2] == true) then
set udg_Spawn_Ziel[p1] = 2
set udg_Spawn_Ziel[p2] = 2
else
if(udg_Slot_alive[3] == true) then
set udg_Spawn_Ziel[p1] = 3
set udg_Spawn_Ziel[p2] = 3
endif
endif
endif
endif
endif
set p1 = 9
set p2 = 10
if(udg_Slot_alive[6] == true) then
set udg_Spawn_Ziel[p1] = 6
set udg_Spawn_Ziel[p2] = 6
else
if(udg_Slot_alive[1] == true) then
set udg_Spawn_Ziel[p1] = 1
set udg_Spawn_Ziel[p2] = 1
else
if(udg_Slot_alive[2] == true) then
set udg_Spawn_Ziel[p1] = 2
set udg_Spawn_Ziel[p2] = 2
else
if(udg_Slot_alive[3] == true) then
set udg_Spawn_Ziel[p1] = 3
set udg_Spawn_Ziel[p2] = 3
else
if(udg_Slot_alive[4] == true) then
set udg_Spawn_Ziel[p1] = 4
set udg_Spawn_Ziel[p2] = 4
endif
endif
endif
endif
endif
set p1 = 11
set p2 = 12
if(udg_Slot_alive[1] == true) then
set udg_Spawn_Ziel[p1] = 1
set udg_Spawn_Ziel[p2] = 1
else
if(udg_Slot_alive[2] == true) then
set udg_Spawn_Ziel[p1] = 2
set udg_Spawn_Ziel[p2] = 2
else
if(udg_Slot_alive[3] == true) then
set udg_Spawn_Ziel[p1] = 3
set udg_Spawn_Ziel[p2] = 3
else
if(udg_Slot_alive[4] == true) then
set udg_Spawn_Ziel[p1] = 4
set udg_Spawn_Ziel[p2] = 4
else
if(udg_Slot_alive[5] == true) then
set udg_Spawn_Ziel[p1] = 5
set udg_Spawn_Ziel[p2] = 5
endif
endif
endif
endif
endif
endfunction
//===========================================================================
function InitTrig_AktuSpawnZiel takes nothing returns nothing
set gg_trg_AktuSpawnZiel = CreateTrigger( )
call TriggerAddAction( gg_trg_AktuSpawnZiel, function Trig_AktuSpawnZiel_Actions )
endfunction
function Trig_SpawnSys_Actions takes nothing returns nothing
local unit Spawned = GetSoldUnit()
local player Sender = GetOwningPlayer(Spawned)
local integer Nr = GetConvertedPlayerId(Sender)
local location Spawn_Point = GetRandomLocInRect(udg_Spawn_Gebiet[udg_Spawn_Ziel[Nr]])
local integer ID = GetUnitPointValue(Spawned)
if(ID < 13) then
set udg_Player_Send1[Nr]=udg_Player_Send1[Nr]+udg_Unit_SpawnUnits[ID]
else
if(ID < 25) then
set udg_Player_Send2[Nr]=udg_Player_Send2[Nr]+udg_Unit_SpawnUnits[ID]
else
set udg_Player_Send3[Nr]=udg_Player_Send3[Nr]+udg_Unit_SpawnUnits[ID]
endif
endif
if(udg_Unit_GoldBonus[ID] > 0) then
set udg_Player_IncomeP[Nr]=udg_Player_IncomeP[Nr]+udg_Unit_GoldBonus[ID]
else
set udg_Player_IncomeM[Nr]=udg_Player_IncomeM[Nr]+udg_Unit_GoldBonus[ID]
endif
set udg_Aktions_this[Nr] = udg_Aktions_this[Nr]+1
call SetUnitPositionLoc( Spawned , Spawn_Point )
set udg_Slot_Gold[udg_Player_Slot[Nr]] = ( udg_Slot_Gold[udg_Player_Slot[Nr]] + udg_Unit_GoldBonus[ID] )
call RemoveLocation(Spawn_Point)
if( udg_Unit_SpawnUnits[ID] == 3 ) then
set Spawn_Point = GetRandomLocInRect(udg_Spawn_Gebiet[udg_Spawn_Ziel[Nr]])
set Spawned = CreateUnit( Sender, GetUnitTypeId(Spawned), GetLocationX(Spawn_Point), GetLocationY(Spawn_Point), 270)
call RemoveLocation(Spawn_Point)
set Spawn_Point = GetRandomLocInRect(udg_Spawn_Gebiet[udg_Spawn_Ziel[Nr]])
set Spawned = CreateUnit( Sender, GetUnitTypeId(Spawned), GetLocationX(Spawn_Point), GetLocationY(Spawn_Point), 270)
call RemoveLocation(Spawn_Point)
else
if( udg_Unit_SpawnUnits[ID] == 2 ) then
set Spawn_Point = GetRandomLocInRect(udg_Spawn_Gebiet[udg_Spawn_Ziel[Nr]])
set Spawned = CreateUnit( Sender, GetUnitTypeId(Spawned), GetLocationX(Spawn_Point), GetLocationY(Spawn_Point), 270)
call RemoveLocation(Spawn_Point)
endif
endif
set Spawned = null
set Sender = null
set Spawn_Point = null
endfunction
//===========================================================================
function InitTrig_SpawnSys takes nothing returns nothing
set gg_trg_SpawnSys = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_SpawnSys, EVENT_PLAYER_UNIT_SELL )
call TriggerAddAction( gg_trg_SpawnSys, function Trig_SpawnSys_Actions )
endfunction
function Trig_RemoveDeclyingUnit_Actions takes nothing returns nothing
local unit d = GetDyingUnit()
call PolledWait(4)
call RemoveUnit( d )
set d = null
endfunction
//===========================================================================
function InitTrig_RemoveDeclyingUnit takes nothing returns nothing
set gg_trg_RemoveDeclyingUnit = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_RemoveDeclyingUnit, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddAction( gg_trg_RemoveDeclyingUnit, function Trig_RemoveDeclyingUnit_Actions )
endfunction
function Trig_kills_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_STRUCTURE) == false ) ) then
return false
endif
return true
endfunction
function Trig_kills_Actions takes nothing returns nothing
local unit d = GetDyingUnit()
local unit k = GetKillingUnitBJ()
local integer killer = GetConvertedPlayerId(GetOwningPlayer(k))
local integer killerslot = GetUnitUserData(d)
if(GetUnitPointValue(d) < 13) then
set udg_Slot_Running1[killerslot] = udg_Slot_Running1[killerslot] - 1
if(IsUnitType(k, UNIT_TYPE_STRUCTURE) == true ) then
set udg_Player_Kills1[killer] = udg_Player_Kills1[killer] + 1
endif
else
if(GetUnitPointValue(d) < 25) then
set udg_Slot_Running2[killerslot] = udg_Slot_Running2[killerslot] - 1
if(IsUnitType(k, UNIT_TYPE_STRUCTURE) == true ) then
set udg_Player_Kills2[killer] = udg_Player_Kills2[killer] + 1
endif
else
if(GetUnitPointValue(d) < 37) then
set udg_Slot_Running3[killerslot] = udg_Slot_Running3[killerslot] - 1
if(IsUnitType(k, UNIT_TYPE_STRUCTURE) == true ) then
set udg_Player_Kills3[killer] = udg_Player_Kills3[killer] + 1
endif
endif
endif
endif
call SetTextTagTextBJ( udg_RunningCreeps[killerslot], ( "|cffffcc00Creeps running:|r
" + ( "|cff00ff00" + ( I2S(udg_Slot_Running1[killerslot]) + ( "|r |cffffcc00+|r |cffff0000" + ( I2S(udg_Slot_Running2[killerslot]) + ( "|r |cffffcc00+|r |cff0000ff" + ( I2S(udg_Slot_Running3[killerslot]) + ( "|r |cffffcc00 = " + ( I2S(( udg_Slot_Running1[killerslot] + ( udg_Slot_Running2[killerslot] + udg_Slot_Running3[killerslot] ) )) + "|r" ) ) ) ) ) ) ) ) ), 15.00 )
set d = null
set k = null
endfunction
//===========================================================================
function InitTrig_kills takes nothing returns nothing
set gg_trg_kills = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_kills, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_kills, Condition( function Trig_kills_Conditions ) )
call TriggerAddAction( gg_trg_kills, function Trig_kills_Actions )
endfunction
function Trig_RemoveUnits_Actions takes nothing returns nothing
local unit d = GetDecayingUnit()
call RemoveUnit( d )
set d = null
endfunction
//===========================================================================
function InitTrig_RemoveUnits takes nothing returns nothing
set gg_trg_RemoveUnits = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_RemoveUnits, EVENT_PLAYER_UNIT_DECAY )
call TriggerAddAction( gg_trg_RemoveUnits, function Trig_RemoveUnits_Actions )
endfunction
function Trig_EnterSpawn1_Actions takes nothing returns nothing
local unit Entering = GetEnteringUnit()
if (IsRunner(Entering) == true) then
if(RunHere(Entering,1)==true) then
call IssuePointOrderLocBJ( Entering, "move", udg_Zielpunkt[1] )
call SetUnitUserData( Entering, 1)
if(GetUnitPointValue(Entering) < 13) then
set udg_Slot_Running1[1] = udg_Slot_Running1[1] + 1
else
if(GetUnitPointValue(Entering) < 25) then
set udg_Slot_Running2[1] = udg_Slot_Running2[1] + 1
else
if(GetUnitPointValue(Entering) < 37) then
set udg_Slot_Running3[1] = udg_Slot_Running3[1] + 1
endif
endif
endif
call SetTextTagTextBJ( udg_RunningCreeps[1], ( "|cffffcc00Creeps running:|r
" + ( "|cff00ff00" + ( I2S(udg_Slot_Running1[1]) + ( "|r |cffffcc00+|r |cffff0000" + ( I2S(udg_Slot_Running2[1]) + ( "|r |cffffcc00+|r |cff0000ff" + ( I2S(udg_Slot_Running3[1]) + ( "|r |cffffcc00 = " + ( I2S(( udg_Slot_Running1[1] + ( udg_Slot_Running2[1] + udg_Slot_Running3[1] ) )) + "|r" ) ) ) ) ) ) ) ) ), 15.00 )
else
call RemoveLocation(udg_Movepoint1)
set udg_Movepoint1 = GetRandomLocInRect(udg_Spawn_Gebiet[udg_Spawn_Ziel[1]])
call SetUnitPositionLoc( Entering, udg_Movepoint1 )
endif
else
if(GetUnitTypeId(Entering) == 'nkot') then
call IssuePointOrderLocBJ( Entering, "move", udg_Zielpunkt[1] )
else
if(IsDmgtest(Entering)) then
call IssuePointOrderLocBJ( Entering, "move", udg_Zielpunkt[1] )
endif
endif
endif
set Entering = null
endfunction
//===========================================================================
function InitTrig_EnterSpawn1 takes nothing returns nothing
set gg_trg_EnterSpawn1 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_EnterSpawn1, gg_rct_Go_1 )
call TriggerAddAction( gg_trg_EnterSpawn1, function Trig_EnterSpawn1_Actions )
endfunction
function Trig_EnterSpawn2_Actions takes nothing returns nothing
local unit Entering = GetEnteringUnit()
if (IsRunner(Entering) == true) then
if(RunHere(Entering,2)==true) then
call IssuePointOrderLocBJ( Entering, "move", udg_Zielpunkt[2] )
call SetUnitUserData( Entering, 2)
if(GetUnitPointValue(Entering) < 13) then
set udg_Slot_Running1[2] = udg_Slot_Running1[2] + 1
else
if(GetUnitPointValue(Entering) < 25) then
set udg_Slot_Running2[2] = udg_Slot_Running2[2] + 1
else
if(GetUnitPointValue(Entering) < 37) then
set udg_Slot_Running3[2] = udg_Slot_Running3[2] + 1
endif
endif
endif
call SetTextTagTextBJ( udg_RunningCreeps[2], ( "|cffffcc00Creeps running:|r
" + ( "|cff00ff00" + ( I2S(udg_Slot_Running1[2]) + ( "|r |cffffcc00+|r |cffff0000" + ( I2S(udg_Slot_Running2[2]) + ( "|r |cffffcc00+|r |cff0000ff" + ( I2S(udg_Slot_Running3[2]) + ( "|r |cffffcc00 = " + ( I2S(( udg_Slot_Running1[2] + ( udg_Slot_Running2[2] + udg_Slot_Running3[2] ) )) + "|r" ) ) ) ) ) ) ) ) ), 15.00 )
else
call RemoveLocation(udg_Movepoint2)
set udg_Movepoint2 = GetRandomLocInRect(udg_Spawn_Gebiet[udg_Spawn_Ziel[3]])
call SetUnitPositionLoc( Entering, udg_Movepoint2 )
endif
else
if(GetUnitTypeId(Entering) == 'nkot') then
call IssuePointOrderLocBJ( Entering, "move", udg_Zielpunkt[2] )
else
if(IsDmgtest(Entering)) then
call IssuePointOrderLocBJ( Entering, "move", udg_Zielpunkt[2] )
endif
endif
endif
set Entering = null
endfunction
//===========================================================================
function InitTrig_EnterSpawn2 takes nothing returns nothing
set gg_trg_EnterSpawn2 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_EnterSpawn2, gg_rct_Go_2 )
call TriggerAddAction( gg_trg_EnterSpawn2, function Trig_EnterSpawn2_Actions )
endfunction
function Trig_EnterSpawn3_Actions takes nothing returns nothing
local unit Entering = GetEnteringUnit()
if (IsRunner(Entering) == true) then
if(RunHere(Entering,3)==true) then
call IssuePointOrderLocBJ( Entering, "move", udg_Zielpunkt[3] )
call SetUnitUserData( Entering, 3)
if(GetUnitPointValue(Entering) < 13) then
set udg_Slot_Running1[3] = udg_Slot_Running1[3] + 1
else
if(GetUnitPointValue(Entering) < 25) then
set udg_Slot_Running2[3] = udg_Slot_Running2[3] + 1
else
if(GetUnitPointValue(Entering) < 37) then
set udg_Slot_Running3[3] = udg_Slot_Running3[3] + 1
endif
endif
endif
call SetTextTagTextBJ( udg_RunningCreeps[3], ( "|cffffcc00Creeps running:|r
" + ( "|cff00ff00" + ( I2S(udg_Slot_Running1[3]) + ( "|r |cffffcc00+|r |cffff0000" + ( I2S(udg_Slot_Running2[3]) + ( "|r |cffffcc00+|r |cff0000ff" + ( I2S(udg_Slot_Running3[3]) + ( "|r |cffffcc00 = " + ( I2S(( udg_Slot_Running1[3] + ( udg_Slot_Running2[3] + udg_Slot_Running3[3] ) )) + "|r" ) ) ) ) ) ) ) ) ), 15.00 )
else
call RemoveLocation(udg_Movepoint3)
set udg_Movepoint3 = GetRandomLocInRect(udg_Spawn_Gebiet[udg_Spawn_Ziel[5]])
call SetUnitPositionLoc( Entering, udg_Movepoint3 )
endif
else
if(GetUnitTypeId(Entering) == 'nkot') then
call IssuePointOrderLocBJ( Entering, "move", udg_Zielpunkt[3] )
else
if(IsDmgtest(Entering)) then
call IssuePointOrderLocBJ( Entering, "move", udg_Zielpunkt[3] )
endif
endif
endif
set Entering = null
endfunction
//===========================================================================
function InitTrig_EnterSpawn3 takes nothing returns nothing
set gg_trg_EnterSpawn3 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_EnterSpawn3, gg_rct_Go_3 )
call TriggerAddAction( gg_trg_EnterSpawn3, function Trig_EnterSpawn3_Actions )
endfunction
function Trig_EnterSpawn5_Actions takes nothing returns nothing
local unit Entering = GetEnteringUnit()
if (IsRunner(Entering) == true) then
if(RunHere(Entering,5)==true) then
call IssuePointOrderLocBJ( Entering, "move", udg_Zielpunkt[5] )
call SetUnitUserData( Entering, 5)
if(GetUnitPointValue(Entering) < 13) then
set udg_Slot_Running1[5] = udg_Slot_Running1[5] + 1
else
if(GetUnitPointValue(Entering) < 25) then
set udg_Slot_Running2[5] = udg_Slot_Running2[5] + 1
else
if(GetUnitPointValue(Entering) < 37) then
set udg_Slot_Running3[5] = udg_Slot_Running3[5] + 1
endif
endif
endif
call SetTextTagTextBJ( udg_RunningCreeps[5], ( "|cffffcc00Creeps running:|r
" + ( "|cff00ff00" + ( I2S(udg_Slot_Running1[5]) + ( "|r |cffffcc00+|r |cffff0000" + ( I2S(udg_Slot_Running2[5]) + ( "|r |cffffcc00+|r |cff0000ff" + ( I2S(udg_Slot_Running3[5]) + ( "|r |cffffcc00 = " + ( I2S(( udg_Slot_Running1[5] + ( udg_Slot_Running2[5] + udg_Slot_Running3[5] ) )) + "|r" ) ) ) ) ) ) ) ) ), 15.00 )
else
call RemoveLocation(udg_Movepoint5)
set udg_Movepoint5 = GetRandomLocInRect(udg_Spawn_Gebiet[udg_Spawn_Ziel[9]])
call SetUnitPositionLoc( Entering, udg_Movepoint5 )
endif
else
if(GetUnitTypeId(Entering) == 'nkot') then
call IssuePointOrderLocBJ( Entering, "move", udg_Zielpunkt[5] )
else
if(IsDmgtest(Entering)) then
call IssuePointOrderLocBJ( Entering, "move", udg_Zielpunkt[5] )
endif
endif
endif
set Entering = null
endfunction
//===========================================================================
function InitTrig_EnterSpawn5 takes nothing returns nothing
set gg_trg_EnterSpawn5 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_EnterSpawn5, gg_rct_Go_5 )
call TriggerAddAction( gg_trg_EnterSpawn5, function Trig_EnterSpawn5_Actions )
endfunction
function Trig_EnterSpawn4_Actions takes nothing returns nothing
local unit Entering = GetEnteringUnit()
if (IsRunner(Entering) == true) then
if(RunHere(Entering,4)==true) then
call IssuePointOrderLocBJ( Entering, "move", udg_Zielpunkt[4] )
call SetUnitUserData( Entering, 4)
if(GetUnitPointValue(Entering) < 13) then
set udg_Slot_Running1[4] = udg_Slot_Running1[4] + 1
else
if(GetUnitPointValue(Entering) < 25) then
set udg_Slot_Running2[4] = udg_Slot_Running2[4] + 1
else
if(GetUnitPointValue(Entering) < 37) then
set udg_Slot_Running3[4] = udg_Slot_Running3[4] + 1
endif
endif
endif
call SetTextTagTextBJ( udg_RunningCreeps[4], ( "|cffffcc00Creeps running:|r
" + ( "|cff00ff00" + ( I2S(udg_Slot_Running1[4]) + ( "|r |cffffcc00+|r |cffff0000" + ( I2S(udg_Slot_Running2[4]) + ( "|r |cffffcc00+|r |cff0000ff" + ( I2S(udg_Slot_Running3[4]) + ( "|r |cffffcc00 = " + ( I2S(( udg_Slot_Running1[4] + ( udg_Slot_Running2[4] + udg_Slot_Running3[4] ) )) + "|r" ) ) ) ) ) ) ) ) ), 15.00 )
else
call RemoveLocation(udg_Movepoint4)
set udg_Movepoint4 = GetRandomLocInRect(udg_Spawn_Gebiet[udg_Spawn_Ziel[7]])
call SetUnitPositionLoc( Entering, udg_Movepoint4 )
endif
else
if(GetUnitTypeId(Entering) == 'nkot') then
call IssuePointOrderLocBJ( Entering, "move", udg_Zielpunkt[4] )
else
if(IsDmgtest(Entering)) then
call IssuePointOrderLocBJ( Entering, "move", udg_Zielpunkt[4] )
endif
endif
endif
set Entering = null
endfunction
//===========================================================================
function InitTrig_EnterSpawn4 takes nothing returns nothing
set gg_trg_EnterSpawn4 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_EnterSpawn4, gg_rct_Go_4 )
call TriggerAddAction( gg_trg_EnterSpawn4, function Trig_EnterSpawn4_Actions )
endfunction
function Trig_EnterSpawn6_Actions takes nothing returns nothing
local unit Entering = GetEnteringUnit()
if (IsRunner(Entering) == true) then
if(RunHere(Entering,6)==true) then
call IssuePointOrderLocBJ( Entering, "move", udg_Zielpunkt[6] )
call SetUnitUserData( Entering, 6)
if(GetUnitPointValue(Entering) < 13) then
set udg_Slot_Running1[6] = udg_Slot_Running1[6] + 1
else
if(GetUnitPointValue(Entering) < 25) then
set udg_Slot_Running2[6] = udg_Slot_Running2[6] + 1
else
if(GetUnitPointValue(Entering) < 37) then
set udg_Slot_Running3[6] = udg_Slot_Running3[6] + 1
endif
endif
endif
call SetTextTagTextBJ( udg_RunningCreeps[6], ( "|cffffcc00Creeps running:|r
" + ( "|cff00ff00" + ( I2S(udg_Slot_Running1[6]) + ( "|r |cffffcc00+|r |cffff0000" + ( I2S(udg_Slot_Running2[6]) + ( "|r |cffffcc00+|r |cff0000ff" + ( I2S(udg_Slot_Running3[6]) + ( "|r |cffffcc00 = " + ( I2S(( udg_Slot_Running1[6] + ( udg_Slot_Running2[6] + udg_Slot_Running3[6] ) )) + "|r" ) ) ) ) ) ) ) ) ), 15.00 )
else
call RemoveLocation(udg_Movepoint6)
set udg_Movepoint6 = GetRandomLocInRect(udg_Spawn_Gebiet[udg_Spawn_Ziel[11]])
call SetUnitPositionLoc( Entering, udg_Movepoint6 )
endif
else
if(GetUnitTypeId(Entering) == 'nkot') then
call IssuePointOrderLocBJ( Entering, "move", udg_Zielpunkt[6] )
else
if(IsDmgtest(Entering)) then
call IssuePointOrderLocBJ( Entering, "move", udg_Zielpunkt[6] )
endif
endif
endif
set Entering = null
endfunction
//===========================================================================
function InitTrig_EnterSpawn6 takes nothing returns nothing
set gg_trg_EnterSpawn6 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_EnterSpawn6, gg_rct_Go_6 )
call TriggerAddAction( gg_trg_EnterSpawn6, function Trig_EnterSpawn6_Actions )
endfunction
function Trig_FinishLine1_Actions takes nothing returns nothing
local unit Leaving_Unit = GetEnteringUnit()
local integer Leaving_Player = GetConvertedPlayerId(GetOwningPlayer(Leaving_Unit))
if (IsRunner(Leaving_Unit)) then
if ( udg_Slot_alive[1] == true ) then
set udg_Slot_Lifes[1] = ( udg_Slot_Lifes[1] - 1 )
set udg_Slot_Lifes[udg_Player_Slot[Leaving_Player]] = ( udg_Slot_Lifes[udg_Player_Slot[Leaving_Player]] + 1 )
call MultiboardSetItemValueBJ( udg_MB, 3, udg_MB_TR[1], I2S(udg_Slot_Lifes[1]) )
call MultiboardSetItemValueBJ( udg_MB, 3, udg_MB_TR[udg_Player_Slot[Leaving_Player]], I2S(udg_Slot_Lifes[udg_Player_Slot[Leaving_Player]]) )
call DisplayTextToForce( udg_Team[udg_Player_Slot[Leaving_Player]], ( udg_Fail[4] + " Team 1!|r" ) )
call DisplayTextToForce( udg_Team[1], ( "|cffff5500" + ( GetPlayerName(ConvertedPlayer(Leaving_Player)) + udg_Fail[5] ) ) )
if ( udg_Slot_Lifes[1] < 1 ) then
set udg_Slot_alive[1] = false
set udg_NumberAlvie = ( udg_NumberAlvie - 1 )
call TriggerExecute( udg_Loose[1] )
endif
if ( udg_NumberAlvie <= 1 ) then
call TriggerExecute( udg_Loose[0] )
endif
if(GetUnitPointValue(Leaving_Unit) < 13) then
set udg_Slot_Running1[1] = udg_Slot_Running1[1] - 1
else
if(GetUnitPointValue(Leaving_Unit) < 25) then
set udg_Slot_Running2[1] = udg_Slot_Running2[1] - 1
else
if(GetUnitPointValue(Leaving_Unit) < 37) then
set udg_Slot_Running3[1] = udg_Slot_Running3[1] - 1
endif
endif
endif
call SetTextTagTextBJ( udg_RunningCreeps[1], ( "|cffffcc00Creeps running:|r
" + ( "|cff00ff00" + ( I2S(udg_Slot_Running1[1]) + ( "|r |cffffcc00+|r |cffff0000" + ( I2S(udg_Slot_Running2[1]) + ( "|r |cffffcc00+|r |cff0000ff" + ( I2S(udg_Slot_Running3[1]) + ( "|r |cffffcc00 = " + ( I2S(( udg_Slot_Running1[1] + ( udg_Slot_Running2[1] + udg_Slot_Running3[1] ) )) + "|r" ) ) ) ) ) ) ) ) ), 15.00 )
call MultiboardSetItemColorBJ( udg_MB, 3, udg_MB_TR[1], 100, 0, 0, 0 )
call MultiboardSetItemColorBJ( udg_MB, 3, udg_MB_TR[udg_Player_Slot[Leaving_Player]], 0, 100, 0, 0 )
call PolledWait(0.3)
call MultiboardSetItemColorBJ( udg_MB, 3, udg_MB_TR[1], 100, 100, 100, 0 )
call MultiboardSetItemColorBJ( udg_MB, 3, udg_MB_TR[udg_Player_Slot[Leaving_Player]], 100, 100, 100, 0 )
endif
call RemoveLocation(udg_Movepoint1)
call SetUnitPathing( Leaving_Unit,true )
set udg_Movepoint1 = GetRandomLocInRect(udg_Spawn_Gebiet[udg_Spawn_Ziel[1]])
call SetUnitPositionLoc( Leaving_Unit, udg_Movepoint1 )
call RemoveLocation(udg_Movepoint1)
else
if(IsDmgtest(Leaving_Unit)) then
if(IsUnitInGroup(Leaving_Unit, udg_DmgTest[1]) == true ) then
set udg_Slot_LastDmgTest[1] = udg_Slot_LastDmgTest[1] + (GetUnitStateSwap(UNIT_STATE_MAX_LIFE,Leaving_Unit) - GetUnitStateSwap(UNIT_STATE_LIFE, Leaving_Unit))
call GroupRemoveUnitSimple(Leaving_Unit, udg_DmgTest[1] )
call KillUnit( Leaving_Unit )
call RemoveUnit( Leaving_Unit )
if(IsUnitGroupEmptyBJ(udg_DmgTest[1]) == true ) then
call DmgtestDone(1)
endif
endif
else
if(GetUnitTypeId(Leaving_Unit) == 'nkot') then
call RemoveLocation(udg_Movepoint1)
set udg_Movepoint1 = GetRandomLocInRect(udg_Spawn_Gebiet[1])
call SetUnitPositionLoc( Leaving_Unit, udg_Movepoint1 )
call IssuePointOrderLocBJ( Leaving_Unit, "move", udg_Zielpunkt[1] )
call RemoveLocation(udg_Movepoint1)
endif
endif
endif
set Leaving_Unit = null
endfunction
//===========================================================================
function InitTrig_FinishLine1 takes nothing returns nothing
set gg_trg_FinishLine1 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_FinishLine1, gg_rct_Ziel_1 )
call TriggerAddAction( gg_trg_FinishLine1, function Trig_FinishLine1_Actions )
endfunction
function Trig_FinishLine2_Actions takes nothing returns nothing
local unit Leaving_Unit = GetEnteringUnit()
local integer Leaving_Player = GetConvertedPlayerId(GetOwningPlayer(Leaving_Unit))
if (IsRunner(Leaving_Unit)) then
if ( udg_Slot_alive[2] == true ) then
set udg_Slot_Lifes[2] = ( udg_Slot_Lifes[2] - 1 )
set udg_Slot_Lifes[udg_Player_Slot[Leaving_Player]] = ( udg_Slot_Lifes[udg_Player_Slot[Leaving_Player]] + 1 )
call MultiboardSetItemValueBJ( udg_MB, 3, udg_MB_TR[2], I2S(udg_Slot_Lifes[2]) )
call MultiboardSetItemValueBJ( udg_MB, 3, udg_MB_TR[udg_Player_Slot[Leaving_Player]], I2S(udg_Slot_Lifes[udg_Player_Slot[Leaving_Player]]) )
call DisplayTextToForce( udg_Team[udg_Player_Slot[Leaving_Player]], ( udg_Fail[4] + " Team 2!|r" ) )
call DisplayTextToForce( udg_Team[2], ( "|cffff5500" + ( GetPlayerName(ConvertedPlayer(Leaving_Player)) + udg_Fail[5] ) ) )
if ( udg_Slot_Lifes[2] < 1 ) then
set udg_Slot_alive[2] = false
set udg_NumberAlvie = ( udg_NumberAlvie - 1 )
call TriggerExecute( udg_Loose[2] )
endif
if ( udg_NumberAlvie <= 1 ) then
call TriggerExecute( udg_Loose[0] )
endif
if(GetUnitPointValue(Leaving_Unit) < 13) then
set udg_Slot_Running1[2] = udg_Slot_Running1[2] - 1
else
if(GetUnitPointValue(Leaving_Unit) < 25) then
set udg_Slot_Running2[2] = udg_Slot_Running2[2] - 1
else
if(GetUnitPointValue(Leaving_Unit) < 37) then
set udg_Slot_Running3[2] = udg_Slot_Running3[2] - 1
endif
endif
endif
call SetTextTagTextBJ( udg_RunningCreeps[2], ( "|cffffcc00Creeps running:|r
" + ( "|cff00ff00" + ( I2S(udg_Slot_Running1[2]) + ( "|r |cffffcc00+|r |cffff0000" + ( I2S(udg_Slot_Running2[2]) + ( "|r |cffffcc00+|r |cff0000ff" + ( I2S(udg_Slot_Running3[2]) + ( "|r |cffffcc00 = " + ( I2S(( udg_Slot_Running1[2] + ( udg_Slot_Running2[2] + udg_Slot_Running3[2] ) )) + "|r" ) ) ) ) ) ) ) ) ), 15.00 )
call MultiboardSetItemColorBJ( udg_MB, 3, udg_MB_TR[2], 100, 0, 0, 0 )
call MultiboardSetItemColorBJ( udg_MB, 3, udg_MB_TR[udg_Player_Slot[Leaving_Player]], 0, 100, 0, 0 )
call PolledWait(0.3)
call MultiboardSetItemColorBJ( udg_MB, 3, udg_MB_TR[2], 100, 100, 100, 0 )
call MultiboardSetItemColorBJ( udg_MB, 3, udg_MB_TR[udg_Player_Slot[Leaving_Player]], 100, 100, 100, 0 )
endif
call RemoveLocation(udg_Movepoint2)
call SetUnitPathing( Leaving_Unit,true )
set udg_Movepoint2 = GetRandomLocInRect(udg_Spawn_Gebiet[udg_Spawn_Ziel[3]])
call SetUnitPositionLoc( Leaving_Unit, udg_Movepoint2 )
call RemoveLocation(udg_Movepoint2)
else
if(IsDmgtest(Leaving_Unit)) then
if(IsUnitInGroup(Leaving_Unit, udg_DmgTest[2]) == true ) then
set udg_Slot_LastDmgTest[2] = udg_Slot_LastDmgTest[2] + (GetUnitStateSwap(UNIT_STATE_MAX_LIFE,Leaving_Unit) - GetUnitStateSwap(UNIT_STATE_LIFE, Leaving_Unit))
call GroupRemoveUnitSimple(Leaving_Unit, udg_DmgTest[2] )
call KillUnit( Leaving_Unit )
call RemoveUnit( Leaving_Unit )
if(IsUnitGroupEmptyBJ(udg_DmgTest[2]) == true ) then
call DmgtestDone(2)
endif
endif
else
if(GetUnitTypeId(Leaving_Unit) == 'nkot') then
call RemoveLocation(udg_Movepoint2)
set udg_Movepoint2 = GetRandomLocInRect(udg_Spawn_Gebiet[2])
call SetUnitPositionLoc( Leaving_Unit, udg_Movepoint2 )
call IssuePointOrderLocBJ( Leaving_Unit, "move", udg_Zielpunkt[2] )
call RemoveLocation(udg_Movepoint2)
endif
endif
endif
set Leaving_Unit = null
endfunction
//===========================================================================
function InitTrig_FinishLine2 takes nothing returns nothing
set gg_trg_FinishLine2 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_FinishLine2, gg_rct_Ziel_2 )
call TriggerAddAction( gg_trg_FinishLine2, function Trig_FinishLine2_Actions )
endfunction
function Trig_FinishLine3_Actions takes nothing returns nothing
local unit Leaving_Unit = GetEnteringUnit()
local integer Leaving_Player = GetConvertedPlayerId(GetOwningPlayer(Leaving_Unit))
if (IsRunner(Leaving_Unit)) then
if ( udg_Slot_alive[3] == true ) then
set udg_Slot_Lifes[3] = ( udg_Slot_Lifes[3] - 1 )
set udg_Slot_Lifes[udg_Player_Slot[Leaving_Player]] = ( udg_Slot_Lifes[udg_Player_Slot[Leaving_Player]] + 1 )
call MultiboardSetItemValueBJ( udg_MB, 3, udg_MB_TR[3], I2S(udg_Slot_Lifes[3]) )
call MultiboardSetItemValueBJ( udg_MB, 3, udg_MB_TR[udg_Player_Slot[Leaving_Player]], I2S(udg_Slot_Lifes[udg_Player_Slot[Leaving_Player]]) )
call DisplayTextToForce( udg_Team[udg_Player_Slot[Leaving_Player]], ( udg_Fail[4] + " Team 3!|r" ) )
call DisplayTextToForce( udg_Team[3], ( "|cffff5500" + ( GetPlayerName(ConvertedPlayer(Leaving_Player)) + udg_Fail[5] ) ) )
if ( udg_Slot_Lifes[3] < 1 ) then
set udg_Slot_alive[3] = false
set udg_NumberAlvie = ( udg_NumberAlvie - 1 )
call TriggerExecute( udg_Loose[3] )
endif
if ( udg_NumberAlvie <= 1 ) then
call TriggerExecute( udg_Loose[0] )
endif
if(GetUnitPointValue(Leaving_Unit) < 13) then
set udg_Slot_Running1[3] = udg_Slot_Running1[3] - 1
else
if(GetUnitPointValue(Leaving_Unit) < 25) then
set udg_Slot_Running2[3] = udg_Slot_Running2[3] - 1
else
if(GetUnitPointValue(Leaving_Unit) < 37) then
set udg_Slot_Running3[3] = udg_Slot_Running3[3] - 1
endif
endif
endif
call SetTextTagTextBJ( udg_RunningCreeps[3], ( "|cffffcc00Creeps running:|r
" + ( "|cff00ff00" + ( I2S(udg_Slot_Running1[3]) + ( "|r |cffffcc00+|r |cffff0000" + ( I2S(udg_Slot_Running2[3]) + ( "|r |cffffcc00+|r |cff0000ff" + ( I2S(udg_Slot_Running3[3]) + ( "|r |cffffcc00 = " + ( I2S(( udg_Slot_Running1[3] + ( udg_Slot_Running2[3] + udg_Slot_Running3[3] ) )) + "|r" ) ) ) ) ) ) ) ) ), 15.00 )
call MultiboardSetItemColorBJ( udg_MB, 3, udg_MB_TR[3], 100, 0, 0, 0 )
call MultiboardSetItemColorBJ( udg_MB, 3, udg_MB_TR[udg_Player_Slot[Leaving_Player]], 0, 100, 0, 0 )
call PolledWait(0.3)
call MultiboardSetItemColorBJ( udg_MB, 3, udg_MB_TR[3], 100, 100, 100, 0 )
call MultiboardSetItemColorBJ( udg_MB, 3, udg_MB_TR[udg_Player_Slot[Leaving_Player]], 100, 100, 100, 0 )
endif
call RemoveLocation(udg_Movepoint3)
call SetUnitPathing( Leaving_Unit,true )
set udg_Movepoint3 = GetRandomLocInRect(udg_Spawn_Gebiet[udg_Spawn_Ziel[5]])
call SetUnitPositionLoc( Leaving_Unit, udg_Movepoint3 )
call RemoveLocation(udg_Movepoint3)
else
if(IsDmgtest(Leaving_Unit)) then
if(IsUnitInGroup(Leaving_Unit, udg_DmgTest[3]) == true ) then
set udg_Slot_LastDmgTest[3] = udg_Slot_LastDmgTest[3] + (GetUnitStateSwap(UNIT_STATE_MAX_LIFE,Leaving_Unit) - GetUnitStateSwap(UNIT_STATE_LIFE, Leaving_Unit))
call GroupRemoveUnitSimple(Leaving_Unit, udg_DmgTest[3] )
call KillUnit( Leaving_Unit )
call RemoveUnit( Leaving_Unit )
if(IsUnitGroupEmptyBJ(udg_DmgTest[3]) == true ) then
call DmgtestDone(3)
endif
endif
else
if(GetUnitTypeId(Leaving_Unit) == 'nkot') then
call RemoveLocation(udg_Movepoint3)
set udg_Movepoint3 = GetRandomLocInRect(udg_Spawn_Gebiet[3])
call SetUnitPositionLoc( Leaving_Unit, udg_Movepoint3 )
call IssuePointOrderLocBJ( Leaving_Unit, "move", udg_Zielpunkt[3] )
call RemoveLocation(udg_Movepoint3)
endif
endif
endif
set Leaving_Unit = null
endfunction
//===========================================================================
function InitTrig_FinishLine3 takes nothing returns nothing
set gg_trg_FinishLine3 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_FinishLine3, gg_rct_Ziel_3 )
call TriggerAddAction( gg_trg_FinishLine3, function Trig_FinishLine3_Actions )
endfunction
function Trig_FinishLine4_Actions takes nothing returns nothing
local unit Leaving_Unit = GetEnteringUnit()
local integer Leaving_Player = GetConvertedPlayerId(GetOwningPlayer(Leaving_Unit))
if (IsRunner(Leaving_Unit)) then
if ( udg_Slot_alive[4] == true ) then
set udg_Slot_Lifes[4] = ( udg_Slot_Lifes[4] - 1 )
set udg_Slot_Lifes[udg_Player_Slot[Leaving_Player]] = ( udg_Slot_Lifes[udg_Player_Slot[Leaving_Player]] + 1 )
call MultiboardSetItemValueBJ( udg_MB, 3, udg_MB_TR[4], I2S(udg_Slot_Lifes[4]) )
call MultiboardSetItemValueBJ( udg_MB, 3, udg_MB_TR[udg_Player_Slot[Leaving_Player]], I2S(udg_Slot_Lifes[udg_Player_Slot[Leaving_Player]]) )
call DisplayTextToForce( udg_Team[udg_Player_Slot[Leaving_Player]], ( udg_Fail[4] + " Team 4!|r" ) )
call DisplayTextToForce( udg_Team[4], ( "|cffff5500" + ( GetPlayerName(ConvertedPlayer(Leaving_Player)) + udg_Fail[5] ) ) )
if ( udg_Slot_Lifes[4] < 1 ) then
set udg_Slot_alive[4] = false
set udg_NumberAlvie = ( udg_NumberAlvie - 1 )
call TriggerExecute( udg_Loose[4] )
endif
if ( udg_NumberAlvie <= 1 ) then
call TriggerExecute( udg_Loose[0] )
endif
if(GetUnitPointValue(Leaving_Unit) < 13) then
set udg_Slot_Running1[4] = udg_Slot_Running1[4] - 1
else
if(GetUnitPointValue(Leaving_Unit) < 25) then
set udg_Slot_Running2[4] = udg_Slot_Running2[4] - 1
else
if(GetUnitPointValue(Leaving_Unit) < 37) then
set udg_Slot_Running3[4] = udg_Slot_Running3[4] - 1
endif
endif
endif
call SetTextTagTextBJ( udg_RunningCreeps[4], ( "|cffffcc00Creeps running:|r
" + ( "|cff00ff00" + ( I2S(udg_Slot_Running1[4]) + ( "|r |cffffcc00+|r |cffff0000" + ( I2S(udg_Slot_Running2[4]) + ( "|r |cffffcc00+|r |cff0000ff" + ( I2S(udg_Slot_Running3[4]) + ( "|r |cffffcc00 = " + ( I2S(( udg_Slot_Running1[4] + ( udg_Slot_Running2[4] + udg_Slot_Running3[4] ) )) + "|r" ) ) ) ) ) ) ) ) ), 15.00 )
call MultiboardSetItemColorBJ( udg_MB, 3, udg_MB_TR[4], 100, 0, 0, 0 )
call MultiboardSetItemColorBJ( udg_MB, 3, udg_MB_TR[udg_Player_Slot[Leaving_Player]], 0, 100, 0, 0 )
call PolledWait(0.3)
call MultiboardSetItemColorBJ( udg_MB, 3, udg_MB_TR[4], 100, 100, 100, 0 )
call MultiboardSetItemColorBJ( udg_MB, 3, udg_MB_TR[udg_Player_Slot[Leaving_Player]], 100, 100, 100, 0 )
endif
call RemoveLocation(udg_Movepoint4)
call SetUnitPathing( Leaving_Unit,true )
set udg_Movepoint4 = GetRandomLocInRect(udg_Spawn_Gebiet[udg_Spawn_Ziel[7]])
call SetUnitPositionLoc( Leaving_Unit, udg_Movepoint4 )
call RemoveLocation(udg_Movepoint4)
else
if(IsDmgtest(Leaving_Unit)) then
if(IsUnitInGroup(Leaving_Unit, udg_DmgTest[4]) == true ) then
set udg_Slot_LastDmgTest[4] = udg_Slot_LastDmgTest[4] + (GetUnitStateSwap(UNIT_STATE_MAX_LIFE,Leaving_Unit) - GetUnitStateSwap(UNIT_STATE_LIFE, Leaving_Unit))
call GroupRemoveUnitSimple(Leaving_Unit, udg_DmgTest[4] )
call KillUnit( Leaving_Unit )
call RemoveUnit( Leaving_Unit )
if(IsUnitGroupEmptyBJ(udg_DmgTest[4]) == true ) then
call DmgtestDone(4)
endif
endif
else
if(GetUnitTypeId(Leaving_Unit) == 'nkot') then
call RemoveLocation(udg_Movepoint4)
set udg_Movepoint4 = GetRandomLocInRect(udg_Spawn_Gebiet[4])
call SetUnitPositionLoc( Leaving_Unit, udg_Movepoint4 )
call IssuePointOrderLocBJ( Leaving_Unit, "move", udg_Zielpunkt[4] )
call RemoveLocation(udg_Movepoint4)
endif
endif
endif
set Leaving_Unit = null
endfunction
//===========================================================================
function InitTrig_FinishLine4 takes nothing returns nothing
set gg_trg_FinishLine4 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_FinishLine4, gg_rct_Ziel_4 )
call TriggerAddAction( gg_trg_FinishLine4, function Trig_FinishLine4_Actions )
endfunction
function Trig_FinishLine5_Actions takes nothing returns nothing
local unit Leaving_Unit = GetEnteringUnit()
local integer Leaving_Player = GetConvertedPlayerId(GetOwningPlayer(Leaving_Unit))
if (IsRunner(Leaving_Unit)) then
if ( udg_Slot_alive[5] == true ) then
set udg_Slot_Lifes[5] = ( udg_Slot_Lifes[5] - 1 )
set udg_Slot_Lifes[udg_Player_Slot[Leaving_Player]] = ( udg_Slot_Lifes[udg_Player_Slot[Leaving_Player]] + 1 )
call MultiboardSetItemValueBJ( udg_MB, 3, udg_MB_TR[5], I2S(udg_Slot_Lifes[5]) )
call MultiboardSetItemValueBJ( udg_MB, 3, udg_MB_TR[udg_Player_Slot[Leaving_Player]], I2S(udg_Slot_Lifes[udg_Player_Slot[Leaving_Player]]) )
call DisplayTextToForce( udg_Team[udg_Player_Slot[Leaving_Player]], ( udg_Fail[4] + " Team 5!|r" ) )
call DisplayTextToForce( udg_Team[5], ( "|cffff5500" + ( GetPlayerName(ConvertedPlayer(Leaving_Player)) + udg_Fail[5] ) ) )
if ( udg_Slot_Lifes[5] < 1 ) then
set udg_Slot_alive[5] = false
set udg_NumberAlvie = ( udg_NumberAlvie - 1 )
call TriggerExecute( udg_Loose[5] )
endif
if ( udg_NumberAlvie <= 1 ) then
call TriggerExecute( udg_Loose[0] )
endif
if(GetUnitPointValue(Leaving_Unit) < 13) then
set udg_Slot_Running1[5] = udg_Slot_Running1[5] - 1
else
if(GetUnitPointValue(Leaving_Unit) < 25) then
set udg_Slot_Running2[5] = udg_Slot_Running2[5] - 1
else
if(GetUnitPointValue(Leaving_Unit) < 37) then
set udg_Slot_Running3[5] = udg_Slot_Running3[5] - 1
endif
endif
endif
call SetTextTagTextBJ( udg_RunningCreeps[5], ( "|cffffcc00Creeps running:|r
" + ( "|cff00ff00" + ( I2S(udg_Slot_Running1[5]) + ( "|r |cffffcc00+|r |cffff0000" + ( I2S(udg_Slot_Running2[5]) + ( "|r |cffffcc00+|r |cff0000ff" + ( I2S(udg_Slot_Running3[5]) + ( "|r |cffffcc00 = " + ( I2S(( udg_Slot_Running1[5] + ( udg_Slot_Running2[5] + udg_Slot_Running3[5] ) )) + "|r" ) ) ) ) ) ) ) ) ), 15.00 )
call MultiboardSetItemColorBJ( udg_MB, 3, udg_MB_TR[5], 100, 0, 0, 0 )
call MultiboardSetItemColorBJ( udg_MB, 3, udg_MB_TR[udg_Player_Slot[Leaving_Player]], 0, 100, 0, 0 )
call PolledWait(0.3)
call MultiboardSetItemColorBJ( udg_MB, 3, udg_MB_TR[5], 100, 100, 100, 0 )
call MultiboardSetItemColorBJ( udg_MB, 3, udg_MB_TR[udg_Player_Slot[Leaving_Player]], 100, 100, 100, 0 )
endif
call RemoveLocation(udg_Movepoint5)
call SetUnitPathing( Leaving_Unit,true )
set udg_Movepoint5 = GetRandomLocInRect(udg_Spawn_Gebiet[udg_Spawn_Ziel[9]])
call SetUnitPositionLoc( Leaving_Unit, udg_Movepoint5 )
call RemoveLocation(udg_Movepoint5)
else
if(IsDmgtest(Leaving_Unit)) then
if(IsUnitInGroup(Leaving_Unit, udg_DmgTest[5]) == true ) then
set udg_Slot_LastDmgTest[5] = udg_Slot_LastDmgTest[5] + (GetUnitStateSwap(UNIT_STATE_MAX_LIFE,Leaving_Unit) - GetUnitStateSwap(UNIT_STATE_LIFE, Leaving_Unit))
call GroupRemoveUnitSimple(Leaving_Unit, udg_DmgTest[5] )
call KillUnit( Leaving_Unit )
call RemoveUnit( Leaving_Unit )
if(IsUnitGroupEmptyBJ(udg_DmgTest[5]) == true ) then
call DmgtestDone(5)
endif
endif
else
if(GetUnitTypeId(Leaving_Unit) == 'nkot') then
call RemoveLocation(udg_Movepoint5)
set udg_Movepoint5 = GetRandomLocInRect(udg_Spawn_Gebiet[5])
call SetUnitPositionLoc( Leaving_Unit, udg_Movepoint5 )
call IssuePointOrderLocBJ( Leaving_Unit, "move", udg_Zielpunkt[5] )
call RemoveLocation(udg_Movepoint5)
endif
endif
endif
set Leaving_Unit = null
endfunction
//===========================================================================
function InitTrig_FinishLine5 takes nothing returns nothing
set gg_trg_FinishLine5 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_FinishLine5, gg_rct_Ziel_5 )
call TriggerAddAction( gg_trg_FinishLine5, function Trig_FinishLine5_Actions )
endfunction
function Trig_FinishLine6_Actions takes nothing returns nothing
local unit Leaving_Unit = GetEnteringUnit()
local integer Leaving_Player = GetConvertedPlayerId(GetOwningPlayer(Leaving_Unit))
if (IsRunner(Leaving_Unit)) then
if ( udg_Slot_alive[6] == true ) then
set udg_Slot_Lifes[6] = ( udg_Slot_Lifes[6] - 1 )
set udg_Slot_Lifes[udg_Player_Slot[Leaving_Player]] = ( udg_Slot_Lifes[udg_Player_Slot[Leaving_Player]] + 1 )
call MultiboardSetItemValueBJ( udg_MB, 3, udg_MB_TR[6], I2S(udg_Slot_Lifes[6]) )
call MultiboardSetItemValueBJ( udg_MB, 3, udg_MB_TR[udg_Player_Slot[Leaving_Player]], I2S(udg_Slot_Lifes[udg_Player_Slot[Leaving_Player]]) )
call DisplayTextToForce( udg_Team[udg_Player_Slot[Leaving_Player]], ( udg_Fail[4] + " Team 6!|r" ) )
call DisplayTextToForce( udg_Team[6], ( "|cffff5500" + ( GetPlayerName(ConvertedPlayer(Leaving_Player)) + udg_Fail[5] ) ) )
if ( udg_Slot_Lifes[6] < 1 ) then
set udg_Slot_alive[6] = false
set udg_NumberAlvie = ( udg_NumberAlvie - 1 )
call TriggerExecute( udg_Loose[6] )
endif
if ( udg_NumberAlvie <= 1 ) then
call TriggerExecute( udg_Loose[0] )
endif
if(GetUnitPointValue(Leaving_Unit) < 13) then
set udg_Slot_Running1[6] = udg_Slot_Running1[6] - 1
else
if(GetUnitPointValue(Leaving_Unit) < 25) then
set udg_Slot_Running2[6] = udg_Slot_Running2[6] - 1
else
if(GetUnitPointValue(Leaving_Unit) < 37) then
set udg_Slot_Running3[6] = udg_Slot_Running3[6] - 1
endif
endif
endif
call SetTextTagTextBJ( udg_RunningCreeps[6], ( "|cffffcc00Creeps running:|r
" + ( "|cff00ff00" + ( I2S(udg_Slot_Running1[6]) + ( "|r |cffffcc00+|r |cffff0000" + ( I2S(udg_Slot_Running2[6]) + ( "|r |cffffcc00+|r |cff0000ff" + ( I2S(udg_Slot_Running3[6]) + ( "|r |cffffcc00 = " + ( I2S(( udg_Slot_Running1[6] + ( udg_Slot_Running2[6] + udg_Slot_Running3[6] ) )) + "|r" ) ) ) ) ) ) ) ) ), 15.00 )
call MultiboardSetItemColorBJ( udg_MB, 3, udg_MB_TR[6], 100, 0, 0, 0 )
call MultiboardSetItemColorBJ( udg_MB, 3, udg_MB_TR[udg_Player_Slot[Leaving_Player]], 0, 100, 0, 0 )
call PolledWait(0.3)
call MultiboardSetItemColorBJ( udg_MB, 3, udg_MB_TR[6], 100, 100, 100, 0 )
call MultiboardSetItemColorBJ( udg_MB, 3, udg_MB_TR[udg_Player_Slot[Leaving_Player]], 100, 100, 100, 0 )
endif
call RemoveLocation(udg_Movepoint6)
call SetUnitPathing( Leaving_Unit,true )
set udg_Movepoint6 = GetRandomLocInRect(udg_Spawn_Gebiet[udg_Spawn_Ziel[11]])
call SetUnitPositionLoc( Leaving_Unit, udg_Movepoint6 )
call RemoveLocation(udg_Movepoint6)
else
if(IsDmgtest(Leaving_Unit)) then
if(IsUnitInGroup(Leaving_Unit, udg_DmgTest[6]) == true ) then
set udg_Slot_LastDmgTest[6] = udg_Slot_LastDmgTest[6] + (GetUnitStateSwap(UNIT_STATE_MAX_LIFE,Leaving_Unit) - GetUnitStateSwap(UNIT_STATE_LIFE, Leaving_Unit))
call GroupRemoveUnitSimple(Leaving_Unit, udg_DmgTest[6] )
call KillUnit( Leaving_Unit )
call RemoveUnit( Leaving_Unit )
if(IsUnitGroupEmptyBJ(udg_DmgTest[6]) == true ) then
call DmgtestDone(6)
endif
endif
else
if(GetUnitTypeId(Leaving_Unit) == 'nkot') then
call RemoveLocation(udg_Movepoint6)
set udg_Movepoint6 = GetRandomLocInRect(udg_Spawn_Gebiet[6])
call SetUnitPositionLoc( Leaving_Unit, udg_Movepoint6 )
call IssuePointOrderLocBJ( Leaving_Unit, "move", udg_Zielpunkt[6] )
call RemoveLocation(udg_Movepoint6)
endif
endif
endif
set Leaving_Unit = null
endfunction
//===========================================================================
function InitTrig_FinishLine6 takes nothing returns nothing
set gg_trg_FinishLine6 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_FinishLine6, gg_rct_Ziel_6 )
call TriggerAddAction( gg_trg_FinishLine6, function Trig_FinishLine6_Actions )
endfunction
function Trig_Untitled_Trigger_002_Conditions takes nothing returns boolean
if ( not ( IsUnitInGroup(GetTriggerUnit(), udg_DmgTest[0]) == true ) ) then
return false
endif
return true
endfunction
function Trig_Untitled_Trigger_002_Func001C takes nothing returns boolean
if ( not ( IsUnitGroupEmptyBJ(udg_DmgTest[0]) == true ) ) then
return false
endif
return true
endfunction
function Trig_Untitled_Trigger_002_Actions takes nothing returns nothing
if ( Trig_Untitled_Trigger_002_Func001C() ) then
else
endif
call GroupRemoveUnitSimple( GetTriggerUnit(), udg_DmgTest[1] )
call KillUnit( GetTriggerUnit() )
call RemoveUnit( GetTriggerUnit() )
set udg_yy = ( GetUnitStateSwap(UNIT_STATE_MAX_LIFE, GetEnteringUnit()) - GetUnitStateSwap(UNIT_STATE_LIFE, GetEnteringUnit()) )
endfunction
//===========================================================================
function InitTrig_Untitled_Trigger_002 takes nothing returns nothing
set gg_trg_Untitled_Trigger_002 = CreateTrigger( )
call TriggerAddCondition( gg_trg_Untitled_Trigger_002, Condition( function Trig_Untitled_Trigger_002_Conditions ) )
call TriggerAddAction( gg_trg_Untitled_Trigger_002, function Trig_Untitled_Trigger_002_Actions )
endfunction