tankReinforcements = { "gmtnk" } artyReinforcements = { "arty" } superReinforcements = { "turtnk" } lightReinforcements = { "e1", "e1", "e1", "e3" } medReinforcements = { "e1", "e4", "e3", "e3" } heavyReinforcements = { "e1", "e3", "e4", "e4" } maxiReinforcements = { "e1", "e1", "e3", "e3", "e4", "e4" } smalltankReinforcements = { "ltnk" } smallartyReinforcements = { "ltnk" } smallsuperReinforcements = { "ltnk" } smallsuperReinforcements = { "gmtnk" } smalllightReinforcements = { "e1", "e3" } smallmedReinforcements = {"e2", "e3" } smallheavyReinforcements = {"e3", "e4",} smallmaxiReinforcements = { "e1", "e3", "e4"} remainingTime = DateTime.Minutes(2) + DateTime.Seconds(0) -- 2:00 Zon1Trigger = { CPos.New(41,14), CPos.New(40,14), CPos.New(41,15), CPos.New(40,15), CPos.New(41,13), CPos.New(40,13) } Zon2Trigger = { CPos.New(103,19), CPos.New(102,19), CPos.New(103,20), CPos.New(102,20) } Zon3Trigger = { CPos.New(105,104), CPos.New(104,104), CPos.New(105,105), CPos.New(104,105) } Zon4Trigger = { CPos.New(27,94), CPos.New(26,94), CPos.New(27,95), CPos.New(26,95) } Zon5Trigger = { CPos.New(28,61), CPos.New(27,61), CPos.New(28,62), CPos.New(27,62) } Zon6Trigger = { CPos.New(72,25), CPos.New(72,25), CPos.New(72,26), CPos.New(72,26) } Zon7Trigger = { CPos.New(104,64), CPos.New(103,64), CPos.New(104,65), CPos.New(103,65) } Zon8Trigger = { CPos.New(69,91), CPos.New(68,91), CPos.New(69,92), CPos.New(68,92) } Zon9Trigger = { CPos.New(48,45), CPos.New(48,44) } Zon10Trigger = { CPos.New(90,78), CPos.New(90,77) } Zon11Trigger = { CPos.New(94,38), CPos.New(93,38), CPos.New(94,39), CPos.New(93,39) } Zon12Trigger = { CPos.New(53,74), CPos.New(52,74), CPos.New(53,75), CPos.New(52,75) } Zon13Trigger = { CPos.New(74,55), CPos.New(73,55), CPos.New(74,56), CPos.New(73,56) } Zon15Trigger = { CPos.New(47,114), CPos.New(46,114), CPos.New(47,115), CPos.New(46,115) } Zon14Trigger = { CPos.New(83,115), CPos.New(82,115), CPos.New(83,116), CPos.New(82,116) } Zon16Trigger = { CPos.New(5,36), CPos.New(4,36), CPos.New(5,37), CPos.New(4,37) } Zon17Trigger = { CPos.New(122,37), CPos.New(121,37), CPos.New(122,38), CPos.New(121,38) } Sight1Trigger = { CPos.New(68,109), CPos.New(67,109), CPos.New(68,110), CPos.New(67,110) } Sight2Trigger = { CPos.New(9,71), CPos.New(8,71), CPos.New(9,72), CPos.New(8,72) } Sight3Trigger = { CPos.New(74,7), CPos.New(73,7), CPos.New(74,8), CPos.New(73,8) } Sight4Trigger = { CPos.New(97,90), CPos.New(96,90), CPos.New(97,91), CPos.New(96,91) } Sight5Trigger = { CPos.New(49,90), CPos.New(48,90), CPos.New(49,91), CPos.New(48,91) } Sight6Trigger = { CPos.New(109,49), CPos.New(108,49), CPos.New(109,50), CPos.New(108,50) } Sight7Trigger = { CPos.New(54,58), CPos.New(53,58), CPos.New(54,59), CPos.New(53,59) } Sight8Trigger = { CPos.New(88,22), CPos.New(87,22), CPos.New(88,23), CPos.New(87,23) } Sight9Trigger = { CPos.New(50,28), CPos.New(49,28), CPos.New(50,29), CPos.New(49,29) } Sight10Trigger = { CPos.New(121,60 ), CPos.New(120,60 ), CPos.New(121,61 ), CPos.New(120,61 ) } Aiinterestnone = { Sight1, Sight2, Sight3, Sight4, Sight5, Sight6, Sight7, Sight8, Sight9, Sight10 } Aiinterestless = { Zone1Flare, Zone2Flare, Zone3Flare, Zone4Flare, Zone14Flare, Zone15Flare, Zone16Flare, Zone17Flare } Aiinterestmore = { Zone5Flare, Zone6Flare, Zone7Flare, Zone8Flare } Aiinterestmost = { Zone9Flare, Zone10Flare, Zone11Flare, Zone12Flare } Aiinterestsupe = Zone13Flare AiCaptureDistance = 5 AiCaptureDistanceless = 8 AiCaptureDistancemore = 9 AiCaptureDistancemost = 11 mdesc1="Welcome to the Zonecontrole Center, Commander!" mdesc2="The map contains different zones, marked with flares!" mdesc3="When you hover over a flare you will be shown what benefets you get if you controle this zone." mdesc4="To capture a zone, simply move a unit into the flare." mdesc5="Try to keep your command vehicle alive, it will generate money over time!" aiTicker = DateTime.Minutes(0) + DateTime.Seconds(3) -- 0:20 WorldLoaded = function() -- Reinforcements.ReinforceWithTransport(player, 'newtran', TankReinforcements, { Helispawn1.Location, Helilanding1.Location }, { Helispawn1.Location }, nil, nil) Trigger.AfterDelay(DateTime.Seconds(3), function() timerStarted = true Media.DisplayMessage(mdesc1,"") end) Trigger.AfterDelay(DateTime.Seconds(8), function() Media.DisplayMessage(mdesc2,"") end) Trigger.AfterDelay(DateTime.Seconds(15), function() Media.DisplayMessage(mdesc3,"") end) Trigger.AfterDelay(DateTime.Seconds(22), function() Media.DisplayMessage(mdesc4,"") end) Trigger.AfterDelay(DateTime.Seconds(29), function() Media.DisplayMessage(mdesc5,"") end) Trigger.OnEnteredFootprint(Zon1Trigger, function(a, id) local mine = Zone1Flare.Owner local yours = a.Owner if (mine ~= yours) and (yours.Team ~= mine.Team) then Zone1Flare.Owner = yours Zone1B1.Owner = yours Zone1B2.Owner = yours for i=1,8 do local member = Player.GetPlayer("Multi" .. tostring(i-1)) if member ~= Nil then if (yours.Team == member.Team) and (member ~= yours) then Zone1B2.Owner = member end end end end end) Trigger.OnEnteredFootprint(Zon2Trigger, function(a, id) local mine = Zone2Flare.Owner local yours = a.Owner if (mine ~= yours) and (yours.Team ~= mine.Team) then Zone2Flare.Owner = yours Zone2B1.Owner = yours Zone2B2.Owner = yours for i=1,8 do local member = Player.GetPlayer("Multi" .. tostring(i-1)) if member ~= Nil then if (yours.Team == member.Team) and (member ~= yours) then Zone2B2.Owner = member end end end end end) Trigger.OnEnteredFootprint(Zon3Trigger, function(a, id) local mine = Zone3Flare.Owner local yours = a.Owner if (mine ~= yours) and (yours.Team ~= mine.Team) then Zone3Flare.Owner = yours Zone3B1.Owner = yours Zone3B2.Owner = yours for i=1,8 do local member = Player.GetPlayer("Multi" .. tostring(i-1)) if member ~= Nil then if (yours.Team == member.Team) and (member ~= yours) then Zone3B2.Owner = member end end end end end) Trigger.OnEnteredFootprint(Zon4Trigger, function(a, id) local mine = Zone4Flare.Owner local yours = a.Owner if (mine ~= yours) and (yours.Team ~= mine.Team) then Zone4Flare.Owner = yours Zone4B1.Owner = yours Zone4B2.Owner = yours for i=1,8 do local member = Player.GetPlayer("Multi" .. tostring(i-1)) if member ~= Nil then if (yours.Team == member.Team) and (member ~= yours) then Zone4B2.Owner = member end end end end end) Trigger.OnEnteredFootprint(Zon5Trigger, function(a, id) local mine = Zone5Flare.Owner local yours = a.Owner if (mine ~= yours) and (yours.Team ~= mine.Team) then Zone5Flare.Owner = yours Zone5B1.Owner = yours Zone5B3.Owner = yours Zone5B2.Owner = yours for i=1,8 do local member = Player.GetPlayer("Multi" .. tostring(i-1)) if member ~= Nil then if (yours.Team == member.Team) and (member ~= yours) then Zone5B2.Owner = member end end end end end) Trigger.OnEnteredFootprint(Zon6Trigger, function(a, id) local mine = Zone6Flare.Owner local yours = a.Owner if (mine ~= yours) and (yours.Team ~= mine.Team) then Zone6Flare.Owner = yours Zone6B1.Owner = yours Zone6B2.Owner = yours Zone6B3.Owner = yours for i=1,8 do local member = Player.GetPlayer("Multi" .. tostring(i-1)) if member ~= Nil then if (yours.Team == member.Team) and (member ~= yours) then Zone6B3.Owner = member end end end end end) Trigger.OnEnteredFootprint(Zon7Trigger, function(a, id) local mine = Zone7Flare.Owner local yours = a.Owner if (mine ~= yours) and (yours.Team ~= mine.Team) then Zone7Flare.Owner = yours Zone7B1.Owner = yours Zone7B3.Owner = yours Zone7B2.Owner = yours for i=1,8 do local member = Player.GetPlayer("Multi" .. tostring(i-1)) if member ~= Nil then if (yours.Team == member.Team) and (member ~= yours) then Zone7B2.Owner = member end end end end end) Trigger.OnEnteredFootprint(Zon8Trigger, function(a, id) local mine = Zone8Flare.Owner local yours = a.Owner if (mine ~= yours) and (yours.Team ~= mine.Team) then Zone8Flare.Owner = yours Zone8B1.Owner = yours Zone8B3.Owner = yours Zone8B2.Owner = yours for i=1,8 do local member = Player.GetPlayer("Multi" .. tostring(i-1)) if member ~= Nil then if (yours.Team == member.Team) and (member ~= yours) then Zone8B2.Owner = member end end end end end) Trigger.OnEnteredFootprint(Zon9Trigger, function(a, id) local mine = Zone9Flare.Owner local yours = a.Owner if (mine ~= yours) and (yours.Team ~= mine.Team) then Zone9Flare.Owner = yours Zone9B1.Owner = yours Zone9B3.Owner = yours Zone9B2.Owner = yours Zone9B4.Owner = yours for i=1,8 do local member = Player.GetPlayer("Multi" .. tostring(i-1)) if member ~= Nil then if (yours.Team == member.Team) and (member ~= yours) then Zone9B2.Owner = member Zone9B4.Owner = member end end end end end) Trigger.OnEnteredFootprint(Zon10Trigger, function(a, id) local mine = Zone10Flare.Owner local yours = a.Owner if (mine ~= yours) and (yours.Team ~= mine.Team) then Zone10Flare.Owner = yours Zone10B1.Owner = yours Zone10B3.Owner = yours Zone10B2.Owner = yours Zone10B4.Owner = yours for i=1,8 do local member = Player.GetPlayer("Multi" .. tostring(i-1)) if member ~= Nil then if (yours.Team == member.Team) and (member ~= yours) then Zone10B2.Owner = member Zone10B4.Owner = member end end end end end) Trigger.OnEnteredFootprint(Zon11Trigger, function(a, id) local mine = Zone11Flare.Owner local yours = a.Owner if (mine ~= yours) and (yours.Team ~= mine.Team) then Zone11Flare.Owner = yours Zone11B1.Owner = yours Zone11B3.Owner = yours Zone11B2.Owner = yours Zone11B4.Owner = yours for i=1,8 do local member = Player.GetPlayer("Multi" .. tostring(i-1)) if member ~= Nil then if (yours.Team == member.Team) and (member ~= yours) then Zone11B2.Owner = member Zone11B4.Owner = member end end end end end) Trigger.OnEnteredFootprint(Zon12Trigger, function(a, id) local mine = Zone12Flare.Owner local yours = a.Owner if (mine ~= yours) and (yours.Team ~= mine.Team) then Zone12Flare.Owner = yours Zone12B1.Owner = yours Zone12B3.Owner = yours Zone12B2.Owner = yours Zone12B4.Owner = yours for i=1,8 do local member = Player.GetPlayer("Multi" .. tostring(i-1)) if member ~= Nil then if (yours.Team == member.Team) and (member ~= yours) then Zone12B2.Owner = member Zone12B4.Owner = member end end end end end) Trigger.OnEnteredFootprint(Zon13Trigger, function(a, id) local mine = Zone13Flare.Owner local yours = a.Owner if (mine ~= yours) and (yours.Team ~= mine.Team) then Zone13Flare.Owner = yours Zone13B1.Owner = yours Zone13B3.Owner = yours Zone13B2.Owner = yours Zone13B4.Owner = yours for i=1,8 do local member = Player.GetPlayer("Multi" .. tostring(i-1)) if member ~= Nil then if (yours.Team == member.Team) and (member ~= yours) then Zone13B2.Owner = member Zone13B4.Owner = member end end end end end) Trigger.OnEnteredFootprint(Zon14Trigger, function(a, id) local mine = Zone14Flare.Owner local yours = a.Owner if (mine ~= yours) and (yours.Team ~= mine.Team) then Zone14Flare.Owner = yours Zone14B1.Owner = yours Zone14B2.Owner = yours for i=1,8 do local member = Player.GetPlayer("Multi" .. tostring(i-1)) if member ~= Nil then if (yours.Team == member.Team) and (member ~= yours) then Zone14B2.Owner = member end end end end end) Trigger.OnEnteredFootprint(Zon15Trigger, function(a, id) local mine = Zone15Flare.Owner local yours = a.Owner if (mine ~= yours) and (yours.Team ~= mine.Team) then Zone15Flare.Owner = yours Zone15B1.Owner = yours Zone15B2.Owner = yours for i=1,8 do local member = Player.GetPlayer("Multi" .. tostring(i-1)) if member ~= Nil then if (yours.Team == member.Team) and (member ~= yours) then Zone15B2.Owner = member end end end end end) Trigger.OnEnteredFootprint(Zon16Trigger, function(a, id) local mine = Zone16Flare.Owner local yours = a.Owner if (mine ~= yours) and (yours.Team ~= mine.Team) then Zone16Flare.Owner = yours Zone16B1.Owner = yours Zone16B2.Owner = yours for i=1,8 do local member = Player.GetPlayer("Multi" .. tostring(i-1)) if member ~= Nil then if (yours.Team == member.Team) and (member ~= yours)then Zone16B2.Owner = member end end end end end) Trigger.OnEnteredFootprint(Zon17Trigger, function(a, id) local mine = Zone17Flare.Owner local yours = a.Owner if (mine ~= yours) and (yours.Team ~= mine.Team) then Zone17Flare.Owner = yours Zone17B1.Owner = yours Zone17B2.Owner = yours for i=1,8 do local member = Player.GetPlayer("Multi" .. tostring(i-1)) if member ~= Nil then if (yours.Team == member.Team) and (member ~= yours) then Zone17B2.Owner = member end end end end end) Trigger.OnEnteredFootprint(Sight1Trigger, function(a, id) local mine = Sight1.Owner local yours = a.Owner if (mine ~= yours) and (yours.Team ~= mine.Team) then Sight1.Owner = yours end end) Trigger.OnEnteredFootprint(Sight2Trigger, function(a, id) local mine = Sight2.Owner local yours = a.Owner if (mine ~= yours) and (yours.Team ~= mine.Team) then Sight2.Owner = yours end end) Trigger.OnEnteredFootprint(Sight3Trigger, function(a, id) local mine = Sight3.Owner local yours = a.Owner if (mine ~= yours) and (yours.Team ~= mine.Team) then Sight3.Owner = yours end end) Trigger.OnEnteredFootprint(Sight4Trigger, function(a, id) local mine = Sight4.Owner local yours = a.Owner if (mine ~= yours) and (yours.Team ~= mine.Team) then Sight4.Owner = yours end end) Trigger.OnEnteredFootprint(Sight5Trigger, function(a, id) local mine = Sight5.Owner local yours = a.Owner if (mine ~= yours) and (yours.Team ~= mine.Team) then Sight5.Owner = yours end end) Trigger.OnEnteredFootprint(Sight6Trigger, function(a, id) local mine = Sight6.Owner local yours = a.Owner if (mine ~= yours) and (yours.Team ~= mine.Team) then Sight6.Owner = yours end end) Trigger.OnEnteredFootprint(Sight7Trigger, function(a, id) local mine = Sight7.Owner local yours = a.Owner if (mine ~= yours) and (yours.Team ~= mine.Team) then Sight7.Owner = yours end end) Trigger.OnEnteredFootprint(Sight8Trigger, function(a, id) local mine = Sight8.Owner local yours = a.Owner if (mine ~= yours) and (yours.Team ~= mine.Team) then Sight8.Owner = yours end end) Trigger.OnEnteredFootprint(Sight9Trigger, function(a, id) local mine = Sight9.Owner local yours = a.Owner if (mine ~= yours) and (yours.Team ~= mine.Team) then Sight9.Owner = yours end end) Trigger.OnEnteredFootprint(Sight10Trigger, function(a, id) local mine = Sight10.Owner local yours = a.Owner if (mine ~= yours) and (yours.Team ~= mine.Team) then Sight10.Owner = yours end end) end Tick = function() if remainingTime == 1 and timerStarted then if Zone1Flare.Owner ~= Player.GetPlayer("Neutral") and Zone1Flare.Owner ~= Player.GetPlayer("Creeps") then Reinforcements.ReinforceWithTransport(Zone1Flare.Owner, 'newtran', lightReinforcements, { Zone1Waypoint.Location, Zone1Delev.Location }, { Zone2Waypoint.Location }, nil, nil) local yours = Zone1Flare.Owner Trigger.AfterDelay(DateTime.Seconds(5), function() for i=1,8 do local member = Player.GetPlayer("Multi" .. tostring(i-1)) if member ~= Nil then if (yours.Team == member.Team) and (member ~= yours) then Reinforcements.ReinforceWithTransport(member, 'newtran', smalllightReinforcements, { Zone1Waypoint.Location, Zone1Delev.Location }, { Zone2Waypoint.Location }, nil, nil) end end end end) end if Zone2Flare.Owner ~= Player.GetPlayer("Neutral") and Zone2Flare.Owner ~= Player.GetPlayer("Creeps") then Reinforcements.ReinforceWithTransport(Zone2Flare.Owner, 'newtran', lightReinforcements, { Zone2Waypoint.Location, Zone2Delev.Location }, { Zone3Waypoint.Location }, nil, nil) local yours = Zone2Flare.Owner Trigger.AfterDelay(DateTime.Seconds(5), function() for i=1,8 do local member = Player.GetPlayer("Multi" .. tostring(i-1)) if member ~= Nil then if (yours.Team == member.Team) and (member ~= yours) then Reinforcements.ReinforceWithTransport(member, 'newtran', smalllightReinforcements, { Zone2Waypoint.Location, Zone2Delev.Location }, { Zone3Waypoint.Location }, nil, nil) end end end end) end if Zone3Flare.Owner ~= Player.GetPlayer("Neutral") and Zone3Flare.Owner ~= Player.GetPlayer("Creeps") then Reinforcements.ReinforceWithTransport(Zone3Flare.Owner, 'newtran', lightReinforcements, { Zone3Waypoint.Location, Zone3Delev.Location }, { Zone4Waypoint.Location }, nil, nil) local yours = Zone3Flare.Owner Trigger.AfterDelay(DateTime.Seconds(5), function() for i=1,8 do local member = Player.GetPlayer("Multi" .. tostring(i-1)) if member ~= Nil then if (yours.Team == member.Team) and (member ~= yours) then Reinforcements.ReinforceWithTransport(member, 'newtran', smalllightReinforcements, { Zone3Waypoint.Location, Zone3Delev.Location }, { Zone4Waypoint.Location }, nil, nil) end end end end) end if Zone4Flare.Owner ~= Player.GetPlayer("Neutral") and Zone4Flare.Owner ~= Player.GetPlayer("Creeps") then Reinforcements.ReinforceWithTransport(Zone4Flare.Owner, 'newtran', lightReinforcements, { Zone4Waypoint.Location, Zone4Delev.Location }, { Zone5Waypoint.Location }, nil, nil) local yours = Zone4Flare.Owner Trigger.AfterDelay(DateTime.Seconds(5), function() for i=1,8 do local member = Player.GetPlayer("Multi" .. tostring(i-1)) if member ~= Nil then if (yours.Team == member.Team) and (member ~= yours) then Reinforcements.ReinforceWithTransport(member, 'newtran', smalllightReinforcements, { Zone4Waypoint.Location, Zone4Delev.Location }, { Zone5Waypoint.Location }, nil, nil) end end end end) end if Zone5Flare.Owner ~= Player.GetPlayer("Neutral") and Zone5Flare.Owner ~= Player.GetPlayer("Creeps") then Reinforcements.ReinforceWithTransport(Zone5Flare.Owner, 'newtran', medReinforcements, { Zone5Waypoint.Location, Zone5Delev.Location }, { Zone6Waypoint.Location }, nil, nil) local yours = Zone5Flare.Owner Trigger.AfterDelay(DateTime.Seconds(5), function() for i=1,8 do local member = Player.GetPlayer("Multi" .. tostring(i-1)) if member ~= Nil then if (yours.Team == member.Team) and (member ~= yours) then Reinforcements.ReinforceWithTransport(member, 'newtran', smallmedReinforcements, { Zone5Waypoint.Location, Zone5Delev.Location }, { Zone6Waypoint.Location }, nil, nil) end end end end) end if Zone6Flare.Owner ~= Player.GetPlayer("Neutral") and Zone6Flare.Owner ~= Player.GetPlayer("Creeps") then Reinforcements.ReinforceWithTransport(Zone6Flare.Owner, 'newtran', medReinforcements, { Zone6Waypoint.Location, Zone6Delev.Location }, { Zone7Waypoint.Location }, nil, nil) local yours = Zone6Flare.Owner Trigger.AfterDelay(DateTime.Seconds(5), function() for i=1,8 do local member = Player.GetPlayer("Multi" .. tostring(i-1)) if member ~= Nil then if (yours.Team == member.Team) and (member ~= yours) then Reinforcements.ReinforceWithTransport(member, 'newtran', smallmedReinforcements, { Zone6Waypoint.Location, Zone6Delev.Location }, { Zone7Waypoint.Location }, nil, nil) end end end end) end if Zone7Flare.Owner ~= Player.GetPlayer("Neutral") and Zone7Flare.Owner ~= Player.GetPlayer("Creeps") then Reinforcements.ReinforceWithTransport(Zone7Flare.Owner, 'newtran', medReinforcements, { Zone7Waypoint.Location, Zone7Delev.Location }, { Zone8Waypoint.Location }, nil, nil) local yours = Zone7Flare.Owner Trigger.AfterDelay(DateTime.Seconds(5), function() for i=1,8 do local member = Player.GetPlayer("Multi" .. tostring(i-1)) if member ~= Nil then if (yours.Team == member.Team) and (member ~= yours) then Reinforcements.ReinforceWithTransport(member, 'newtran', smallmedReinforcements, { Zone7Waypoint.Location, Zone7Delev.Location }, { Zone8Waypoint.Location }, nil, nil) end end end end) end if Zone8Flare.Owner ~= Player.GetPlayer("Neutral") and Zone8Flare.Owner ~= Player.GetPlayer("Creeps") then Reinforcements.ReinforceWithTransport(Zone8Flare.Owner, 'newtran', medReinforcements, { Zone8Waypoint.Location, Zone8Delev.Location }, { Zone9Waypoint1.Location }, nil, nil) local yours = Zone8Flare.Owner Trigger.AfterDelay(DateTime.Seconds(5), function() for i=1,8 do local member = Player.GetPlayer("Multi" .. tostring(i-1)) if member ~= Nil then if (yours.Team == member.Team) and (member ~= yours) then Reinforcements.ReinforceWithTransport(member, 'newtran', smallmedReinforcements, { Zone8Waypoint.Location, Zone8Delev.Location }, { Zone9Waypoint1.Location }, nil, nil) end end end end) end if Zone9Flare.Owner ~= Player.GetPlayer("Neutral") and Zone9Flare.Owner ~= Player.GetPlayer("Creeps") then Reinforcements.ReinforceWithTransport(Zone9Flare.Owner, 'newtran', tankReinforcements, { Zone9Waypoint1.Location, Zone9Delev1.Location }, { Zone10Waypoint1.Location }, nil, nil) Reinforcements.ReinforceWithTransport(Zone9Flare.Owner, 'newtran', medReinforcements, { Zone9Waypoint2.Location, Zone9Delev2.Location }, { Zone10Waypoint2.Location }, nil, nil) local yours = Zone9Flare.Owner Trigger.AfterDelay(DateTime.Seconds(5), function() for i=1,8 do local member = Player.GetPlayer("Multi" .. tostring(i-1)) if member ~= Nil then if (yours.Team == member.Team) and (member ~= yours) then Reinforcements.ReinforceWithTransport(member, 'newtran', smalltankReinforcements, { Zone9Waypoint1.Location, Zone9Delev1.Location }, { Zone10Waypoint1.Location }, nil, nil) Reinforcements.ReinforceWithTransport(member, 'newtran', smallmedReinforcements, { Zone9Waypoint2.Location, Zone9Delev2.Location }, { Zone10Waypoint2.Location }, nil, nil) end end end end) end if Zone10Flare.Owner ~= Player.GetPlayer("Neutral") and Zone10Flare.Owner ~= Player.GetPlayer("Creeps") then Reinforcements.ReinforceWithTransport(Zone10Flare.Owner, 'newtran', tankReinforcements, { Zone10Waypoint1.Location, Zone10Delev1.Location }, { Zone11Waypoint1.Location }, nil, nil) Reinforcements.ReinforceWithTransport(Zone10Flare.Owner, 'newtran', medReinforcements, { Zone10Waypoint2.Location, Zone10Delev2.Location }, { Zone11Waypoint2.Location }, nil, nil) local yours = Zone10Flare.Owner Trigger.AfterDelay(DateTime.Seconds(5), function() for i=1,8 do local member = Player.GetPlayer("Multi" .. tostring(i-1)) if member ~= Nil then if (yours.Team == member.Team) and (member ~= yours) then Reinforcements.ReinforceWithTransport(member, 'newtran', smalltankReinforcements, { Zone10Waypoint1.Location, Zone10Delev1.Location }, { Zone11Waypoint1.Location }, nil, nil) Reinforcements.ReinforceWithTransport(member, 'newtran', smallmedReinforcements, { Zone10Waypoint2.Location, Zone10Delev2.Location }, { Zone11Waypoint2.Location }, nil, nil) end end end end) end if Zone11Flare.Owner ~= Player.GetPlayer("Neutral") and Zone11Flare.Owner ~= Player.GetPlayer("Creeps") then Reinforcements.ReinforceWithTransport(Zone11Flare.Owner, 'newtran', heavyReinforcements, { Zone11Waypoint1.Location, Zone11Delev1.Location }, { Zone12Waypoint1.Location }, nil, nil) Reinforcements.ReinforceWithTransport(Zone11Flare.Owner, 'newtran', artyReinforcements, { Zone11Waypoint2.Location, Zone11Delev2.Location }, { Zone12Waypoint2.Location }, nil, nil) local yours = Zone11Flare.Owner Trigger.AfterDelay(DateTime.Seconds(5), function() for i=1,8 do local member = Player.GetPlayer("Multi" .. tostring(i-1)) if member ~= Nil then if (yours.Team == member.Team) and (member ~= yours) then Reinforcements.ReinforceWithTransport(member, 'newtran', smallheavyReinforcements, { Zone11Waypoint1.Location, Zone11Delev1.Location }, { Zone12Waypoint1.Location }, nil, nil) Reinforcements.ReinforceWithTransport(member, 'newtran', smallartyReinforcements, { Zone11Waypoint2.Location, Zone11Delev2.Location }, { Zone12Waypoint2.Location }, nil, nil) end end end end) end if Zone12Flare.Owner ~= Player.GetPlayer("Neutral") and Zone12Flare.Owner ~= Player.GetPlayer("Creeps") then Reinforcements.ReinforceWithTransport(Zone12Flare.Owner, 'newtran', heavyReinforcements, { Zone12Waypoint1.Location, Zone12Delev1.Location }, { Zone13Waypoint1.Location }, nil, nil) Reinforcements.ReinforceWithTransport(Zone12Flare.Owner, 'newtran', artyReinforcements, { Zone12Waypoint2.Location, Zone12Delev2.Location }, { Zone13Waypoint2.Location }, nil, nil) local yours = Zone12Flare.Owner Trigger.AfterDelay(DateTime.Seconds(5), function() for i=1,8 do local member = Player.GetPlayer("Multi" .. tostring(i-1)) if member ~= Nil then if (yours.Team == member.Team) and (member ~= yours) then Reinforcements.ReinforceWithTransport(member, 'newtran', smallheavyReinforcements, { Zone12Waypoint1.Location, Zone12Delev1.Location }, { Zone13Waypoint1.Location }, nil, nil) Reinforcements.ReinforceWithTransport(member, 'newtran', smallartyReinforcements, { Zone12Waypoint2.Location, Zone12Delev2.Location }, { Zone13Waypoint2.Location }, nil, nil) end end end end) end if Zone13Flare.Owner ~= Player.GetPlayer("Neutral") and Zone13Flare.Owner ~= Player.GetPlayer("Creeps") then Reinforcements.ReinforceWithTransport(Zone13Flare.Owner, 'newtran', superReinforcements, { Zone13Waypoint1.Location, Zone13Delev1.Location }, { Zone14Waypoint.Location }, nil, nil) Reinforcements.ReinforceWithTransport(Zone13Flare.Owner, 'newtran', maxiReinforcements, { Zone13Waypoint2.Location, Zone13Delev2.Location }, { Zone14Waypoint.Location }, nil, nil) local yours = Zone13Flare.Owner Trigger.AfterDelay(DateTime.Seconds(5), function() for i=1,8 do local member = Player.GetPlayer("Multi" .. tostring(i-1)) if member ~= Nil then if (yours.Team == member.Team) and (member ~= yours) then Reinforcements.ReinforceWithTransport(member, 'newtran', smallsuperReinforcements, { Zone13Waypoint1.Location, Zone13Delev1.Location }, { Zone14Waypoint.Location }, nil, nil) Reinforcements.ReinforceWithTransport(member, 'newtran', smallmaxiReinforcements, { Zone13Waypoint2.Location, Zone13Delev2.Location }, { Zone14Waypoint.Location }, nil, nil) end end end end) end if Zone14Flare.Owner ~= Player.GetPlayer("Neutral") and Zone14Flare.Owner ~= Player.GetPlayer("Creeps") then Reinforcements.ReinforceWithTransport(Zone14Flare.Owner, 'newtran', lightReinforcements, { Zone14Waypoint.Location, Zone14Delev.Location }, { Zone15Waypoint.Location }, nil, nil) local yours = Zone14Flare.Owner Trigger.AfterDelay(DateTime.Seconds(5), function() for i=1,8 do local member = Player.GetPlayer("Multi" .. tostring(i-1)) if member ~= Nil then if (yours.Team == member.Team) and (member ~= yours) then Reinforcements.ReinforceWithTransport(member, 'newtran', smalllightReinforcements, { Zone14Waypoint.Location, Zone14Delev.Location }, { Zone15Waypoint.Location }, nil, nil) end end end end) end if Zone15Flare.Owner ~= Player.GetPlayer("Neutral") and Zone15Flare.Owner ~= Player.GetPlayer("Creeps") then Reinforcements.ReinforceWithTransport(Zone15Flare.Owner, 'newtran', lightReinforcements, { Zone15Waypoint.Location, Zone15Delev.Location }, { Zone16Waypoint.Location }, nil, nil) local yours = Zone15Flare.Owner Trigger.AfterDelay(DateTime.Seconds(5), function() for i=1,8 do local member = Player.GetPlayer("Multi" .. tostring(i-1)) if member ~= Nil then if (yours.Team == member.Team) and (member ~= yours) then Reinforcements.ReinforceWithTransport(member, 'newtran', smalllightReinforcements, { Zone15Waypoint.Location, Zone15Delev.Location }, { Zone16Waypoint.Location }, nil, nil) end end end end) end if Zone16Flare.Owner ~= Player.GetPlayer("Neutral") and Zone16Flare.Owner ~= Player.GetPlayer("Creeps") then Reinforcements.ReinforceWithTransport(Zone16Flare.Owner, 'newtran', lightReinforcements, { Zone16Waypoint.Location, Zone16Delev.Location }, { Zone17Waypoint.Location }, nil, nil) local yours = Zone16Flare.Owner Trigger.AfterDelay(DateTime.Seconds(5), function() for i=1,8 do local member = Player.GetPlayer("Multi" .. tostring(i-1)) if member ~= Nil then if (yours.Team == member.Team) and (member ~= yours) then Reinforcements.ReinforceWithTransport(member, 'newtran', smalllightReinforcements, { Zone16Waypoint.Location, Zone16Delev.Location }, { Zone17Waypoint.Location }, nil, nil) end end end end) end if Zone17Flare.Owner ~= Player.GetPlayer("Neutral") and Zone17Flare.Owner ~= Player.GetPlayer("Creeps") then Reinforcements.ReinforceWithTransport(Zone17Flare.Owner, 'newtran', lightReinforcements, { Zone17Waypoint.Location, Zone17Delev.Location }, { Zone1Waypoint.Location }, nil, nil) local yours = Zone17Flare.Owner Trigger.AfterDelay(DateTime.Seconds(5), function() for i=1,8 do local member = Player.GetPlayer("Multi" .. tostring(i-1)) if member ~= Nil then if (yours.Team == member.Team) and (member ~= yours) then Reinforcements.ReinforceWithTransport(member, 'newtran', smalllightReinforcements, { Zone17Waypoint.Location, Zone17Delev.Location }, { Zone1Waypoint.Location }, nil, nil) end end end end) end end if remainingTime > 0 and timerStarted then UserInterface.SetMissionText("Time until Reinforcments: " .. Utils.FormatTime(remainingTime), Player.GetPlayer("Neutral").Color) remainingTime = remainingTime - 1 elseif remainingTime == 0 then UserInterface.SetMissionText("Time until Reinforcments: " .. Utils.FormatTime(remainingTime), Player.GetPlayer("Neutral").Color) Trigger.AfterDelay(DateTime.Seconds(5), function() remainingTime = DateTime.Minutes(1) + DateTime.Seconds(30) -- 1:30 end) end end