HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Capturing Control Points...

05-10-2009, 05:01 AM#1
Sunwarrior25
... Not in anyway related to ccp.

EDIT: Not the best thing in the world, but it works. Here's the setup, check, and one of the Control Point triggers:
Some parts may have been cut of by the CnP procedurisms

Trigger:
Collapse SetupForces
Events
Conditions
Collapse Actions
-------- The parts that matter --------
-------- Red Team --------
Set FactionLeader[0] = Player 1 (Red)
Set TeamCaster[0] = Elementalist
Set TeamFootman[0] = Foot Soldier
Set TeamHealer[0] = Drake Priest
Set TeamNecro[0] = Summoner
Set TeamRanger[0] = Archer
-------- Blue Forces --------
Set FactionLeader[1] = Player 2 (Blue)
Set TeamCaster[1] = Sorceress
Set TeamFootman[1] = Swordsman
Set TeamHealer[1] = Priest
Set TeamNecro[1] = Spell Breaker
Set TeamRanger[1] = Archer
Collapse SetupControPoints
Events
Conditions
Collapse Actions
-------- North Summoner's Shrine --------
Set ControlPoint[0] = Summoner's Shrine (Control Point) 0038 <gen>
Set Faction[0] = 125
Set ControlSpawn[0] = N Summons <gen>
-------- West Melee --------
Set ControlPoint[1] = Melee Defense Point (large) 0033 <gen>
Set Faction[1] = 125
Set ControlSpawn[1] = W Melee <gen>
-------- Southwest Rat's Nest --------
Set ControlPoint[2] = Rat's Nest (large) 0091 <gen>
Set Faction[2] = 125
Set ControlSpawn[2] = SW Ranger <gen>
-------- South Ele Shrine --------
Set ControlPoint[3] = Elemental Shrine (large) 0007 <gen>
Set Faction[3] = 125
Set ControlSpawn[3] = S Ele <gen>
-------- Warrior --------
Set ControlPoint[4] = Warrior Shrine (large) 0026 <gen>
Set Faction[4] = 125
Set ControlSpawn[4] = E Warrior <gen>
-------- Northeast Guardpost --------
Set ControlPoint[5] = Stream Attack Point (Control Point) 0022 <gen>
Set Faction[5] = 125
Set ControlSpawn[5] = NE Ranger <gen>
-------- RezShrine --------
Set ControlPoint[6] = Resurrection Shrine (Control Point) 0068 <gen>
Set Faction[6] = 125
Set ControlSpawn[6] = Rez Shrine <gen>
-------- DaBars! --------
Set FactionBar[0] = |||||||||||||||||||||||||
Set FactionBar[1] = ||||||||||||||||||||||||
Set FactionBar[2] = |||||||||||||||||||||||
Set FactionBar[3] = ||||||||||||||||||||||
Set FactionBar[4] = |||||||||||||||||||||
Set FactionBar[5] = ||||||||||||||||||||
Set FactionBar[6] = |||||||||||||||||||
Set FactionBar[7] = ||||||||||||||||||
Set FactionBar[8] = |||||||||||||||||
Set FactionBar[9] = ||||||||||||||||
Set FactionBar[10] = |||||||||||||||
Set FactionBar[11] = ||||||||||||||
Set FactionBar[12] = |||||||||||||
Set FactionBar[13] = ||||||||||||
Set FactionBar[14] = |||||||||||
Set FactionBar[15] = ||||||||||
Set FactionBar[16] = |||||||||
Set FactionBar[17] = ||||||||
Set FactionBar[18] = |||||||
Set FactionBar[19] = ||||||
Set FactionBar[20] = |||||
Set FactionBar[21] = ||||
Set FactionBar[22] = |||
Set FactionBar[23] = ||
Set FactionBar[24] = |
Set FactionBar[25] = Neutral
Set FactionBar[26] = |
Set FactionBar[27] = ||
Set FactionBar[28] = |||
Set FactionBar[29] = ||||
Set FactionBar[30] = |||||
Set FactionBar[31] = ||||||
Set FactionBar[32] = |||||||
Set FactionBar[33] = ||||||||
Set FactionBar[34] = |||||||||
Set FactionBar[35] = ||||||||||
Set FactionBar[36] = |||||||||||
Set FactionBar[37] = ||||||||||||
Set FactionBar[38] = |||||||||||||
Set FactionBar[39] = ||||||||||||||
Set FactionBar[40] = |||||||||||||||
Set FactionBar[41] = ||||||||||||||||
Set FactionBar[42] = |||||||||||||||||
Set FactionBar[43] = ||||||||||||||||||
Set FactionBar[44] = |||||||||||||||||||
Set FactionBar[45] = ||||||||||||||||||||
Set FactionBar[46] = |||||||||||||||||||||
Set FactionBar[47] = ||||||||||||||||||||||
Set FactionBar[48] = |||||||||||||||||||||||
Set FactionBar[49] = ||||||||||||||||||||||||
Set FactionBar[50] = |||||||||||||||||||||||||
Collapse ControlPointCheck
Collapse Events
Time - Every 0.50 seconds of game time
Collapse Conditions
isGameOver Equal to False
isGameStarted Equal to True
Collapse Actions
Collapse For each (Integer A) from 0 to 6, do (Actions)
Collapse Loop - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
Faction[(Integer A)] Less than 250
Collapse Then - Actions
Set Faction[(Integer A)] = (Faction[(Integer A)] + (5 x (Number of units in (Units within 512.00 of (Position of ControlPoint[(Integer A)]) matching (((((Matching unit) is alive) Equal to True) and (((Owner of (Matching unit)) is an ally of Player 2 (Blue)) Equal to True)) and ((((Matc
Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
Faction[(Integer A)] Greater than 0
Collapse Then - Actions
Set Faction[(Integer A)] = (Faction[(Integer A)] - (5 x (Number of units in (Units within 512.00 of (Position of ControlPoint[(Integer A)]) matching (((((Matching unit) is alive) Equal to True) and (((Owner of (Matching unit)) is an ally of Player 1 (Red)) Equal to True)) and ((((Match
Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
Collapse And - All (Conditions) are true
Collapse Conditions
Faction[(Integer A)] Less than or equal to 0
(Owner of ControlPoint[(Integer A)]) Not equal to FactionLeader[0]
Collapse Then - Actions
Unit - Change ownership of ControlPoint[(Integer A)] to FactionLeader[0] and Change color
Trigger - Run ControlSpawn[(Integer A)] (checking conditions)
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
Collapse And - All (Conditions) are true
Collapse Conditions
Faction[(Integer A)] Equal to 125
(Owner of ControlPoint[(Integer A)]) Not equal to Neutral Passive
Collapse Then - Actions
Unit - Change ownership of ControlPoint[(Integer A)] to Neutral Passive and Change color
Cinematic - Ping minimap for (All players) at (Position of ControlPoint[(Integer A)]) for 1.00 seconds, using a Simple ping of color (50.00%, 50.00%, 50.00%)
Quest - Display to (All players) the Warning message: ((|cffffcc00 + (Name of ControlPoint[(Integer A)])) + |r has been neutralized.)
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
Collapse And - All (Conditions) are true
Collapse Conditions
Faction[(Integer A)] Greater than or equal to 250
(Owner of ControlPoint[(Integer A)]) Not equal to FactionLeader[1]
Collapse Then - Actions
Unit - Change ownership of ControlPoint[(Integer A)] to FactionLeader[1] and Change color
Trigger - Run ControlSpawn[(Integer A)] (checking conditions)
Else - Actions
Collapse For each (Integer B) from 0 to 50, do (Actions)
Collapse Loop - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Faction[(Integer A)] / 5) Equal to (Integer B)
Collapse Then - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
Faction[(Integer A)] Equal to 125
Collapse Then - Actions
Floating Text - Hide ControlPointText[(Integer A)] for (All players)
Floating Text - Destroy ControlPointText[(Integer A)]
Floating Text - Create floating text that reads FactionBar[(Integer B)] at (Position of ControlPoint[(Integer A)]) with Z offset 200.00, using font size 15.00, color (50.00%, 50.00%, 50.00%), and 0.00% transparency
Set ControlPointText[(Integer A)] = (Last created floating text)
Floating Text - Change ControlPointText[(Integer A)]: Enable permanence
Floating Text - Show ControlPointText[(Integer A)] for (All players)
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
Faction[(Integer A)] Greater than 125
Collapse Then - Actions
Floating Text - Hide ControlPointText[(Integer A)] for (All players)
Floating Text - Destroy ControlPointText[(Integer A)]
Floating Text - Create floating text that reads FactionBar[(Integer B)] at (Position of ControlPoint[(Integer A)]) with Z offset 200.00, using font size 15.00, color (0.00%, 0.00%, 100.00%), and 0.00% transparency
Set ControlPointText[(Integer A)] = (Last created floating text)
Floating Text - Change ControlPointText[(Integer A)]: Enable permanence
Floating Text - Show ControlPointText[(Integer A)] for (All players)
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
Faction[(Integer A)] Less than 125
Collapse Then - Actions
Floating Text - Hide ControlPointText[(Integer A)] for (All players)
Floating Text - Destroy ControlPointText[(Integer A)]
Floating Text - Create floating text that reads FactionBar[(Integer B)] at (Position of ControlPoint[(Integer A)]) with Z offset 200.00, using font size 15.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
Set ControlPointText[(Integer A)] = (Last created floating text)
Floating Text - Change ControlPointText[(Integer A)]: Enable permanence
Floating Text - Show ControlPointText[(Integer A)] for (All players)
Else - Actions
Else - Actions
Collapse N Summons
Events
Conditions
Collapse Actions
Collapse For each (Integer A) from 0 to 1, do (Actions)
Collapse Loop - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Owner of ControlPoint[0]) Equal to FactionLeader[(Integer A)]
Collapse Then - Actions
Unit - Create 1 TeamNecro[(Integer A)] for FactionLeader[(Integer A)] at ((Position of ControlPoint[0]) offset by 128.00 towards 225.00 degrees) facing 225.00 degrees
Unit - Create 1 TeamNecro[(Integer A)] for FactionLeader[(Integer A)] at ((Position of ControlPoint[0]) offset by 128.00 towards 315.00 degrees) facing 315.00 degrees
Unit - Change color of Flag (Rogues) 0082 <gen> to (Color of FactionLeader[(Integer A)])
Unit - Change color of Flag (Rogues) 0083 <gen> to (Color of FactionLeader[(Integer A)])
Cinematic - Ping minimap for TeamGroup[(Integer A)] at (Position of ControlPoint[0]) for 1.00 seconds, using a Simple ping of color (100.00%, 100.00%, 100.00%)
Quest - Display to TeamGroup[(Integer A)] the New Unit Acquired message: ((The |cffffcc00 + (Name of ControlPoint[0])) + (|r has been captured by the |cff00ff00 + ((Name of FactionLeader[(Integer A)]) + |r)))
Collapse Else - Actions
Cinematic - Ping minimap for TeamGroup[(Integer A)] at (Position of ControlPoint[0]) for 1.00 seconds, using a Warning ping of color (100.00%, 100.00%, 100.00%)
Quest - Display to TeamGroup[(Integer A)] the Warning message: ((The |cffffcc00 + (Name of ControlPoint[0])) + (|r has been captured by the |cff00ff00 + ((Name of FactionLeader[(Integer A)]) + |r)))