• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

DotA: Captain Mode v1.1

This bundle is marked as useful / simple. Simplicity is bliss, low effort and/or may contain minor bugs.
  • Like
Reactions: Kazeon
Map: Captain Mode
Recomended to 4 Teams !!!

Changed Logs


Changed the Waits 5 seconds to Lederboard Game Will Start In 10 seconds
Changed For Loop Index A/B To CM_Loop #
Changed Every Location to CM_Loc # and Removed It
Changed Bad Words Pick to Picks
Fixed the Floating Text Bans/Picks
Screen Shot

236897-albums7230-picture83232.png

236897-albums7230-picture83231.png

236897-albums7230-picture83230.png

236897-albums7230-picture83229.png

The Triggers
[trigger="CM Find a Leader"]CM Finding Leader
Events
Time - Elapsed game time is 0.01 seconds
Conditions
Actions
-------- Set Team Leader --------
Set Game_Integer = 12
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player(Game_Integer)) slot status) Equal to (==) Is playing
Then - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player(Game_Integer)) controller) Equal to (==) User
Then - Actions
Set Game_Leader = Playername[Game_Integer]
Else - Actions
Set CM_TeamLeader[4] = Game_Integer
Else - Actions
Set Game_Integer = 11
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player(Game_Integer)) slot status) Equal to (==) Is playing
Then - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player(Game_Integer)) controller) Equal to (==) User
Then - Actions
Set Game_Leader = Playername[Game_Integer]
Else - Actions
Set CM_TeamLeader[4] = Game_Integer
Else - Actions
Set Game_Integer = 9
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player(Game_Integer)) slot status) Equal to (==) Is playing
Then - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player(Game_Integer)) controller) Equal to (==) User
Then - Actions
Set Game_Leader = Playername[Game_Integer]
Else - Actions
Set CM_TeamLeader[3] = Game_Integer
Else - Actions
Set Game_Integer = 8
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player(Game_Integer)) slot status) Equal to (==) Is playing
Then - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player(Game_Integer)) controller) Equal to (==) User
Then - Actions
Set Game_Leader = Playername[Game_Integer]
Else - Actions
Set CM_TeamLeader[3] = Game_Integer
Else - Actions
Set Game_Integer = 6
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player(Game_Integer)) slot status) Equal to (==) Is playing
Then - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player(Game_Integer)) controller) Equal to (==) User
Then - Actions
Set Game_Leader = Playername[Game_Integer]
Else - Actions
Set CM_TeamLeader[2] = Game_Integer
Else - Actions
Set Game_Integer = 5
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player(Game_Integer)) slot status) Equal to (==) Is playing
Then - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player(Game_Integer)) controller) Equal to (==) User
Then - Actions
Set Game_Leader = Playername[Game_Integer]
Else - Actions
Set CM_TeamLeader[2] = Game_Integer
Else - Actions
Set Game_Integer = 3
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player(Game_Integer)) slot status) Equal to (==) Is playing
Then - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player(Game_Integer)) controller) Equal to (==) User
Then - Actions
Set Game_Leader = Playername[Game_Integer]
Else - Actions
Set CM_TeamLeader[1] = Game_Integer
Else - Actions
Set Game_Integer = 2
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player(Game_Integer)) slot status) Equal to (==) Is playing
Then - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player(Game_Integer)) controller) Equal to (==) User
Then - Actions
Set Game_Leader = Playername[Game_Integer]
Else - Actions
Set CM_TeamLeader[1] = Game_Integer
Else - Actions
Game - Display to (Player group((Player(Game_Integer)))) for 10.00 seconds the text: You Are |c000080FFT...
Trigger - Add to CM Active <gen> the event (Player - (Player(Game_Integer)) types a chat message containing -cm as An exact match)
-------- Setting Variable --------
Set MB_PlayerGroup[1] = (All allies of Player 1 (Red))
Set MB_PlayerGroup[2] = (All allies of Player 4 (Purple))
Set MB_PlayerGroup[3] = (All allies of Player 7 (Green))
Set MB_PlayerGroup[4] = (All allies of Player 10 (Light Blue))
Do Multiple ActionsFor each (Integer CM_Loop0) from 1 to 4, do (Actions)
Loop - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of players in MB_PlayerGroup[CM_Loop0]) Not equal to (!=) 0
Then - Actions
Set CM_ColomsperTeam[CM_Loop0] = 3
Else - Actions
Set CM_ColomsperTeam[CM_Loop0] = 0
Set MB_SetLocationTeam2 = (CM_ColomsperTeam[1] + 1)
Set MB_SetLocationTeam3 = (CM_ColomsperTeam[1] + (CM_ColomsperTeam[2] + 1))
Set MB_SetLocationTeam4 = (CM_ColomsperTeam[1] + (CM_ColomsperTeam[2] + (CM_ColomsperTeam[3] + 1)))
-------- = --------
Set CM_Coloms = ((CM_ColomsperTeam[1] + (CM_ColomsperTeam[2] + (CM_ColomsperTeam[3] + CM_ColomsperTeam[4]))) + 0)
-------- -------------------------- --------[/trigger]


[trigger="CM Active"]CM Active
Events
Conditions
Actions
Set CM_MultiboardOnOff = True
-------- Create a Multiboard CM --------
Multiboard - Create a multiboard with CM_Coloms columns and 11 rows, titled Captain Mode
Set CM_Multiboard = (Last created multiboard)
Multiboard - Set the display style for (Last created multiboard) item in column 0, row 0 to Show text and Hide icons
Set Sys_IfThenElsePlayerGroup = 1
Set Sys_PositionOnLederboard = 1
Set Sys_Row2PlayerNameBlabla = CM_TeamLeader[Sys_IfThenElsePlayerGroup]
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of players in MB_PlayerGroup[Sys_IfThenElsePlayerGroup]) Not equal to (!=) 0
Then - Actions
Set CoutPlayersGroup = (CoutPlayersGroup + 1)
Set CM_BooleanBansPick[Sys_IfThenElsePlayerGroup] = True
Set CM_BooleanBans[Sys_IfThenElsePlayerGroup] = True
Set CM_BooleanPick[Sys_IfThenElsePlayerGroup] = True
Set CM_MB_Time[Sys_IfThenElsePlayerGroup] = 30
Set CM_MB_TimeExtra[Sys_IfThenElsePlayerGroup] = 90
Set CM_MB_Status[Sys_IfThenElsePlayerGroup] = Wait
Set Sys_ForceSlot[Sys_IfThenElsePlayerGroup] = True
-------- Leader --------
Multiboard - Set the width for (Last created multiboard) item in column Sys_PositionOnLederboard, row 2 to 10.00% of the total screen width
Multiboard - Set the text for (Last created multiboard) item in column Sys_PositionOnLederboard, row 2 to Playername[Sys_Row2PlayerNameBlabla]
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 1), row 2 to 0.01% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 2), row 2 to 0.01% of the total screen width
-------- Bans: --------
Multiboard - Set the width for (Last created multiboard) item in column Sys_PositionOnLederboard, row 4 to 4.00% of the total screen width
Multiboard - Set the text for (Last created multiboard) item in column Sys_PositionOnLederboard, row 4 to |c000080C0Bans:
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 1), row 4 to 1.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 2), row 4 to 5.00% of the total screen width
-------- Pick --------
Multiboard - Set the width for (Last created multiboard) item in column Sys_PositionOnLederboard, row 6 to 4.00% of the total screen width
Multiboard - Set the text for (Last created multiboard) item in column Sys_PositionOnLederboard, row 6 to |c000080C0Pick:
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 1), row 6 to 1.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 2), row 6 to 5.00% of the total screen width
-------- Time --------
Multiboard - Set the width for (Last created multiboard) item in column Sys_PositionOnLederboard, row 8 to 4.00% of the total screen width
Multiboard - Set the text for (Last created multiboard) item in column Sys_PositionOnLederboard, row 8 to |c000080C0Time:
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 1), row 8 to 3.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 2), row 8 to 3.00% of the total screen width
-------- Extra --------
Multiboard - Set the width for (Last created multiboard) item in column Sys_PositionOnLederboard, row 9 to 4.00% of the total screen width
Multiboard - Set the text for (Last created multiboard) item in column Sys_PositionOnLederboard, row 9 to |c000080C0Extra:
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 1), row 9 to 3.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 2), row 9 to 3.00% of the total screen width
-------- Status --------
Multiboard - Set the width for (Last created multiboard) item in column Sys_PositionOnLederboard, row 11 to 4.00% of the total screen width
Multiboard - Set the text for (Last created multiboard) item in column Sys_PositionOnLederboard, row 11 to |c000080C0Status:
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 1), row 11 to 3.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 2), row 11 to 3.00% of the total screen width
Else - Actions
Set Sys_IfThenElsePlayerGroup = 2
Set Sys_PositionOnLederboard = MB_SetLocationTeam2
Set Sys_Row2PlayerNameBlabla = CM_TeamLeader[Sys_IfThenElsePlayerGroup]
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of players in MB_PlayerGroup[Sys_IfThenElsePlayerGroup]) Not equal to (!=) 0
Then - Actions
Set CoutPlayersGroup = (CoutPlayersGroup + 1)
Set CM_BooleanBansPick[Sys_IfThenElsePlayerGroup] = True
Set CM_BooleanBans[Sys_IfThenElsePlayerGroup] = True
Set CM_BooleanPick[Sys_IfThenElsePlayerGroup] = True
Set CM_MB_Time[Sys_IfThenElsePlayerGroup] = 30
Set CM_MB_TimeExtra[Sys_IfThenElsePlayerGroup] = 90
Set CM_MB_Status[Sys_IfThenElsePlayerGroup] = Wait
Set Sys_ForceSlot[Sys_IfThenElsePlayerGroup] = True
-------- Leader --------
Multiboard - Set the width for (Last created multiboard) item in column Sys_PositionOnLederboard, row 2 to 10.00% of the total screen width
Multiboard - Set the text for (Last created multiboard) item in column Sys_PositionOnLederboard, row 2 to Playername[Sys_Row2PlayerNameBlabla]
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 1), row 2 to 0.01% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 2), row 2 to 0.01% of the total screen width
-------- Bans: --------
Multiboard - Set the width for (Last created multiboard) item in column Sys_PositionOnLederboard, row 4 to 4.00% of the total screen width
Multiboard - Set the text for (Last created multiboard) item in column Sys_PositionOnLederboard, row 4 to |c000080C0Bans:
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 1), row 4 to 1.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 2), row 4 to 5.00% of the total screen width
-------- Pick --------
Multiboard - Set the width for (Last created multiboard) item in column Sys_PositionOnLederboard, row 6 to 4.00% of the total screen width
Multiboard - Set the text for (Last created multiboard) item in column Sys_PositionOnLederboard, row 6 to |c000080C0Pick:
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 1), row 6 to 1.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 2), row 6 to 5.00% of the total screen width
-------- Time --------
Multiboard - Set the width for (Last created multiboard) item in column Sys_PositionOnLederboard, row 8 to 4.00% of the total screen width
Multiboard - Set the text for (Last created multiboard) item in column Sys_PositionOnLederboard, row 8 to |c000080C0Time:
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 1), row 8 to 3.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 2), row 8 to 3.00% of the total screen width
-------- Extra --------
Multiboard - Set the width for (Last created multiboard) item in column Sys_PositionOnLederboard, row 9 to 4.00% of the total screen width
Multiboard - Set the text for (Last created multiboard) item in column Sys_PositionOnLederboard, row 9 to |c000080C0Extra:
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 1), row 9 to 3.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 2), row 9 to 3.00% of the total screen width
-------- Status --------
Multiboard - Set the width for (Last created multiboard) item in column Sys_PositionOnLederboard, row 11 to 4.00% of the total screen width
Multiboard - Set the text for (Last created multiboard) item in column Sys_PositionOnLederboard, row 11 to |c000080C0Status:
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 1), row 11 to 3.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 2), row 11 to 3.00% of the total screen width
Else - Actions
Set Sys_IfThenElsePlayerGroup = 3
Set Sys_PositionOnLederboard = MB_SetLocationTeam3
Set Sys_Row2PlayerNameBlabla = CM_TeamLeader[Sys_IfThenElsePlayerGroup]
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of players in MB_PlayerGroup[Sys_IfThenElsePlayerGroup]) Not equal to (!=) 0
Then - Actions
Set CoutPlayersGroup = (CoutPlayersGroup + 1)
Set CM_BooleanBansPick[Sys_IfThenElsePlayerGroup] = True
Set CM_BooleanBans[Sys_IfThenElsePlayerGroup] = True
Set CM_BooleanPick[Sys_IfThenElsePlayerGroup] = True
Set CM_MB_Time[Sys_IfThenElsePlayerGroup] = 30
Set CM_MB_TimeExtra[Sys_IfThenElsePlayerGroup] = 90
Set CM_MB_Status[Sys_IfThenElsePlayerGroup] = Wait
Set Sys_ForceSlot[Sys_IfThenElsePlayerGroup] = True
-------- Leader --------
Multiboard - Set the width for (Last created multiboard) item in column Sys_PositionOnLederboard, row 2 to 10.00% of the total screen width
Multiboard - Set the text for (Last created multiboard) item in column Sys_PositionOnLederboard, row 2 to Playername[Sys_Row2PlayerNameBlabla]
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 1), row 2 to 0.01% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 2), row 2 to 0.01% of the total screen width
-------- Bans: --------
Multiboard - Set the width for (Last created multiboard) item in column Sys_PositionOnLederboard, row 4 to 4.00% of the total screen width
Multiboard - Set the text for (Last created multiboard) item in column Sys_PositionOnLederboard, row 4 to |c000080C0Bans:
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 1), row 4 to 1.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 2), row 4 to 5.00% of the total screen width
-------- Pick --------
Multiboard - Set the width for (Last created multiboard) item in column Sys_PositionOnLederboard, row 6 to 4.00% of the total screen width
Multiboard - Set the text for (Last created multiboard) item in column Sys_PositionOnLederboard, row 6 to |c000080C0Pick:
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 1), row 6 to 1.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 2), row 6 to 5.00% of the total screen width
-------- Time --------
Multiboard - Set the width for (Last created multiboard) item in column Sys_PositionOnLederboard, row 8 to 4.00% of the total screen width
Multiboard - Set the text for (Last created multiboard) item in column Sys_PositionOnLederboard, row 8 to |c000080C0Time:
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 1), row 8 to 3.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 2), row 8 to 3.00% of the total screen width
-------- Extra --------
Multiboard - Set the width for (Last created multiboard) item in column Sys_PositionOnLederboard, row 9 to 4.00% of the total screen width
Multiboard - Set the text for (Last created multiboard) item in column Sys_PositionOnLederboard, row 9 to |c000080C0Extra:
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 1), row 9 to 3.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 2), row 9 to 3.00% of the total screen width
-------- Status --------
Multiboard - Set the width for (Last created multiboard) item in column Sys_PositionOnLederboard, row 11 to 4.00% of the total screen width
Multiboard - Set the text for (Last created multiboard) item in column Sys_PositionOnLederboard, row 11 to |c000080C0Status:
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 1), row 11 to 3.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 2), row 11 to 3.00% of the total screen width
Else - Actions
Set Sys_IfThenElsePlayerGroup = 4
Set Sys_PositionOnLederboard = MB_SetLocationTeam4
Set Sys_Row2PlayerNameBlabla = CM_TeamLeader[Sys_IfThenElsePlayerGroup]
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of players in MB_PlayerGroup[Sys_IfThenElsePlayerGroup]) Not equal to (!=) 0
Then - Actions
Set CoutPlayersGroup = (CoutPlayersGroup + 1)
Set CM_BooleanBansPick[Sys_IfThenElsePlayerGroup] = True
Set CM_BooleanBans[Sys_IfThenElsePlayerGroup] = True
Set CM_BooleanPick[Sys_IfThenElsePlayerGroup] = True
Set CM_MB_Time[Sys_IfThenElsePlayerGroup] = 30
Set CM_MB_TimeExtra[Sys_IfThenElsePlayerGroup] = 90
Set CM_MB_Status[Sys_IfThenElsePlayerGroup] = Wait
Set Sys_ForceSlot[Sys_IfThenElsePlayerGroup] = True
-------- Leader --------
Multiboard - Set the width for (Last created multiboard) item in column Sys_PositionOnLederboard, row 2 to 10.00% of the total screen width
Multiboard - Set the text for (Last created multiboard) item in column Sys_PositionOnLederboard, row 2 to Playername[Sys_Row2PlayerNameBlabla]
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 1), row 2 to 0.01% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 2), row 2 to 0.01% of the total screen width
-------- Bans: --------
Multiboard - Set the width for (Last created multiboard) item in column Sys_PositionOnLederboard, row 4 to 4.00% of the total screen width
Multiboard - Set the text for (Last created multiboard) item in column Sys_PositionOnLederboard, row 4 to |c000080C0Bans:
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 1), row 4 to 1.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 2), row 4 to 5.00% of the total screen width
-------- Pick --------
Multiboard - Set the width for (Last created multiboard) item in column Sys_PositionOnLederboard, row 6 to 4.00% of the total screen width
Multiboard - Set the text for (Last created multiboard) item in column Sys_PositionOnLederboard, row 6 to |c000080C0Pick:
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 1), row 6 to 1.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 2), row 6 to 5.00% of the total screen width
-------- Time --------
Multiboard - Set the width for (Last created multiboard) item in column Sys_PositionOnLederboard, row 8 to 4.00% of the total screen width
Multiboard - Set the text for (Last created multiboard) item in column Sys_PositionOnLederboard, row 8 to |c000080C0Time:
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 1), row 8 to 3.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 2), row 8 to 3.00% of the total screen width
-------- Extra --------
Multiboard - Set the width for (Last created multiboard) item in column Sys_PositionOnLederboard, row 9 to 4.00% of the total screen width
Multiboard - Set the text for (Last created multiboard) item in column Sys_PositionOnLederboard, row 9 to |c000080C0Extra:
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 1), row 9 to 3.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 2), row 9 to 3.00% of the total screen width
-------- Status --------
Multiboard - Set the width for (Last created multiboard) item in column Sys_PositionOnLederboard, row 11 to 4.00% of the total screen width
Multiboard - Set the text for (Last created multiboard) item in column Sys_PositionOnLederboard, row 11 to |c000080C0Status:
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 1), row 11 to 3.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column (Sys_PositionOnLederboard + 2), row 11 to 3.00% of the total screen width
Else - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CoutPlayersGroup Equal to (==) 1
Then - Actions
Set CM_OnOff = False
Game - Display to (All players) for 60.00 seconds the text: Captain Mode Failed...
Multiboard - Destroy (Last created multiboard)
Trigger - Turn off (This trigger)
Else - Actions
Set CM_OnOff = True
Multiboard - Maximize (Last created multiboard)
-------- Create A Floating at Travern --------
Set CM_FloatingTextString = W A I T
Set CM_Loc5 = (Center of Floating Text <gen>)
Floating Text - Create floating text that reads CM_FloatingTextString at CM_Loc5 with Z offset 100.00, using font size 16.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
Set CM_Loc4 = (Center of Picking a Heroes <gen>)
Set CM_FloatingText = (Last created floating text)
Set CM_BooleanBansPickOnOff = True
Custom script: call RemoveLocation ( udg_CM_Loc5 )[/trigger]


[trigger="CM Multiboard Pick"]CM Multiboard Pick
Events
Unit - A unit enters Picking a Heroes <gen>
Conditions
Multiple ConditionsOr - Any (Conditions) are true
Conditions
(Owner of (Entering unit)) Equal to (==) (Player(CM_TeamLeader[1]))
(Owner of (Entering unit)) Equal to (==) (Player(CM_TeamLeader[2]))
(Owner of (Entering unit)) Equal to (==) (Player(CM_TeamLeader[3]))
(Owner of (Entering unit)) Equal to (==) (Player(CM_TeamLeader[4]))
Actions
Set CM_PickBanID = (Player number of (Owner of (Entering unit)))
Set CM_PickHero[CM_PickBanID] = (Entering unit)
Set CM_PickBanChosenHero[CM_PickBanID] = (Unit-type of CM_PickHero[CM_PickBanID])
Unit - Remove CM_PickHero[CM_PickBanID] from the game
Set CM_BooleanBansPickOnOff = True
-------- == --------
Do Multiple ActionsFor each (Integer CM_PickLoop) from 1 to Sys_HeroCount, do (Actions)
Loop - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CM_PickBanChosenHero[CM_PickBanID] Equal to (==) Sys_HeroType[CM_PickLoop]
Then - Actions
Set CM_PickStringHero[CM_PickBanID] = Sys_HeroTypeIcon[CM_PickLoop]
Else - Actions
-------- To AI --------
Do Multiple ActionsFor each (Integer CM_Loop8) from 1 to 12, do (Actions)
Loop - Actions
Player - Make CM_PickBanChosenHero[CM_PickBanID] Unavailable for training/construction by (Player(CM_Loop8))
-------- Setting Icon In Multiboard --------
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player(CM_PickBanID)) is an ally of Player 1 (Red)) Equal to (==) True
Then - Actions
Set CM_PickInteger = 1
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CM_BooleanBansPick[CM_PickInteger] Equal to (==) True
Then - Actions
Set CM_BooleanBansPick[CM_PickInteger] = False
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CM_BooleanBans[CM_PickInteger] Equal to (==) True
Then - Actions
Set CM_BooleanBans[CM_PickInteger] = False
Multiboard - Set the display style for CM_Multiboard item in column 2, row 4 to Hide text and Show icons
Multiboard - Set the icon for CM_Multiboard item in column 2, row 4 to CM_PickStringHero[CM_PickBanID]
Else - Actions
Set CM_End1[CM_PickInteger] = True
Multiboard - Set the display style for CM_Multiboard item in column 3, row 4 to Hide text and Show icons
Multiboard - Set the icon for CM_Multiboard item in column 3, row 4 to CM_PickStringHero[CM_PickBanID]
Else - Actions
Set CM_BooleanBansPick[CM_PickInteger] = True
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CM_BooleanPick[CM_PickInteger] Equal to (==) True
Then - Actions
Do Multiple ActionsFor each (Integer CM_Loop1) from 1 to Sys_HeroCount, do (Actions)
Loop - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CM_PickBanChosenHero[CM_PickBanID] Equal to (==) Sys_HeroType[CM_Loop1]
Then - Actions
Set CM_IDUnit1[CM_PickInteger] = CM_Loop1
Else - Actions
Set CM_BooleanPick[CM_PickInteger] = False
Multiboard - Set the display style for CM_Multiboard item in column 2, row 6 to Hide text and Show icons
Multiboard - Set the icon for CM_Multiboard item in column 2, row 6 to CM_PickStringHero[CM_PickBanID]
Else - Actions
Do Multiple ActionsFor each (Integer CM_Loop1) from 1 to Sys_HeroCount, do (Actions)
Loop - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CM_PickBanChosenHero[CM_PickBanID] Equal to (==) Sys_HeroType[CM_Loop1]
Then - Actions
Set CM_IDUnit2[CM_PickInteger] = CM_Loop1
Else - Actions
Set CM_End2[CM_PickInteger] = True
Multiboard - Set the display style for CM_Multiboard item in column 3, row 6 to Hide text and Show icons
Multiboard - Set the icon for CM_Multiboard item in column 3, row 6 to CM_PickStringHero[CM_PickBanID]
Else - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player(CM_PickBanID)) is an ally of Player 4 (Purple)) Equal to (==) True
Then - Actions
Set CM_PickInteger = 2
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CM_BooleanBansPick[CM_PickInteger] Equal to (==) True
Then - Actions
Set CM_BooleanBansPick[CM_PickInteger] = False
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CM_BooleanBans[CM_PickInteger] Equal to (==) True
Then - Actions
Set CM_BooleanBans[CM_PickInteger] = False
Multiboard - Set the display style for CM_Multiboard item in column (MB_SetLocationTeam2 + 1), row 4 to Hide text and Show icons
Multiboard - Set the icon for CM_Multiboard item in column (MB_SetLocationTeam2 + 1), row 4 to CM_PickStringHero[CM_PickBanID]
Else - Actions
Set CM_End1[CM_PickInteger] = True
Multiboard - Set the display style for CM_Multiboard item in column (MB_SetLocationTeam2 + 2), row 4 to Hide text and Show icons
Multiboard - Set the icon for CM_Multiboard item in column (MB_SetLocationTeam2 + 2), row 4 to CM_PickStringHero[CM_PickBanID]
Else - Actions
Set CM_BooleanBansPick[CM_PickInteger] = True
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CM_BooleanPick[CM_PickInteger] Equal to (==) True
Then - Actions
Do Multiple ActionsFor each (Integer CM_Loop1) from 1 to Sys_HeroCount, do (Actions)
Loop - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CM_PickBanChosenHero[CM_PickBanID] Equal to (==) Sys_HeroType[CM_Loop1]
Then - Actions
Set CM_IDUnit1[CM_PickInteger] = CM_Loop1
Else - Actions
Set CM_BooleanPick[CM_PickInteger] = False
Multiboard - Set the display style for CM_Multiboard item in column (MB_SetLocationTeam2 + 1), row 6 to Hide text and Show icons
Multiboard - Set the icon for CM_Multiboard item in column (MB_SetLocationTeam2 + 1), row 6 to CM_PickStringHero[CM_PickBanID]
Else - Actions
Do Multiple ActionsFor each (Integer CM_Loop1) from 1 to Sys_HeroCount, do (Actions)
Loop - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CM_PickBanChosenHero[CM_PickBanID] Equal to (==) Sys_HeroType[CM_Loop1]
Then - Actions
Set CM_IDUnit2[CM_PickInteger] = CM_Loop1
Else - Actions
Set CM_End2[CM_PickInteger] = True
Multiboard - Set the display style for CM_Multiboard item in column (MB_SetLocationTeam2 + 2), row 6 to Hide text and Show icons
Multiboard - Set the icon for CM_Multiboard item in column (MB_SetLocationTeam2 + 2), row 6 to CM_PickStringHero[CM_PickBanID]
Else - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player(CM_PickBanID)) is an ally of Player 7 (Green)) Equal to (==) True
Then - Actions
Set CM_PickInteger = 3
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CM_BooleanBansPick[CM_PickInteger] Equal to (==) True
Then - Actions
Set CM_BooleanBansPick[CM_PickInteger] = False
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CM_BooleanBans[CM_PickInteger] Equal to (==) True
Then - Actions
Set CM_BooleanBans[CM_PickInteger] = False
Multiboard - Set the display style for CM_Multiboard item in column (MB_SetLocationTeam3 + 1), row 4 to Hide text and Show icons
Multiboard - Set the icon for CM_Multiboard item in column (MB_SetLocationTeam3 + 1), row 4 to CM_PickStringHero[CM_PickBanID]
Else - Actions
Set CM_End1[CM_PickInteger] = True
Multiboard - Set the display style for CM_Multiboard item in column (MB_SetLocationTeam3 + 2), row 4 to Hide text and Show icons
Multiboard - Set the icon for CM_Multiboard item in column (MB_SetLocationTeam3 + 2), row 4 to CM_PickStringHero[CM_PickBanID]
Else - Actions
Set CM_BooleanBansPick[CM_PickInteger] = True
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CM_BooleanPick[CM_PickInteger] Equal to (==) True
Then - Actions
Do Multiple ActionsFor each (Integer CM_Loop1) from 1 to Sys_HeroCount, do (Actions)
Loop - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CM_PickBanChosenHero[CM_PickBanID] Equal to (==) Sys_HeroType[CM_Loop1]
Then - Actions
Set CM_IDUnit1[CM_PickInteger] = CM_Loop1
Else - Actions
Set CM_BooleanPick[CM_PickInteger] = False
Multiboard - Set the display style for CM_Multiboard item in column (MB_SetLocationTeam3 + 1), row 6 to Hide text and Show icons
Multiboard - Set the icon for CM_Multiboard item in column (MB_SetLocationTeam3 + 1), row 6 to CM_PickStringHero[CM_PickBanID]
Else - Actions
Do Multiple ActionsFor each (Integer CM_Loop1) from 1 to Sys_HeroCount, do (Actions)
Loop - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CM_PickBanChosenHero[CM_PickBanID] Equal to (==) Sys_HeroType[CM_Loop1]
Then - Actions
Set CM_IDUnit2[CM_PickInteger] = CM_Loop1
Else - Actions
Set CM_End2[CM_PickInteger] = True
Multiboard - Set the display style for CM_Multiboard item in column (MB_SetLocationTeam3 + 2), row 6 to Hide text and Show icons
Multiboard - Set the icon for CM_Multiboard item in column (MB_SetLocationTeam3 + 2), row 6 to CM_PickStringHero[CM_PickBanID]
Else - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player(CM_PickBanID)) is an ally of Player 10 (Light Blue)) Equal to (==) True
Then - Actions
Set CM_PickInteger = 4
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CM_BooleanBansPick[CM_PickInteger] Equal to (==) True
Then - Actions
Set CM_BooleanBansPick[CM_PickInteger] = False
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CM_BooleanBans[CM_PickInteger] Equal to (==) True
Then - Actions
Set CM_BooleanBans[CM_PickInteger] = False
Multiboard - Set the display style for CM_Multiboard item in column (MB_SetLocationTeam4 + 1), row 4 to Hide text and Show icons
Multiboard - Set the icon for CM_Multiboard item in column (MB_SetLocationTeam4 + 1), row 4 to CM_PickStringHero[CM_PickBanID]
Else - Actions
Set CM_End1[CM_PickInteger] = True
Multiboard - Set the display style for CM_Multiboard item in column (MB_SetLocationTeam4 + 2), row 4 to Hide text and Show icons
Multiboard - Set the icon for CM_Multiboard item in column (MB_SetLocationTeam4 + 2), row 4 to CM_PickStringHero[CM_PickBanID]
Else - Actions
Set CM_BooleanBansPick[CM_PickInteger] = True
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CM_BooleanPick[CM_PickInteger] Equal to (==) True
Then - Actions
Do Multiple ActionsFor each (Integer CM_Loop1) from 1 to Sys_HeroCount, do (Actions)
Loop - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CM_PickBanChosenHero[CM_PickBanID] Equal to (==) Sys_HeroType[CM_Loop1]
Then - Actions
Set CM_IDUnit1[CM_PickInteger] = CM_Loop1
Else - Actions
Set CM_BooleanPick[CM_PickInteger] = False
Multiboard - Set the display style for CM_Multiboard item in column (MB_SetLocationTeam4 + 1), row 6 to Hide text and Show icons
Multiboard - Set the icon for CM_Multiboard item in column (MB_SetLocationTeam4 + 1), row 6 to CM_PickStringHero[CM_PickBanID]
Else - Actions
Do Multiple ActionsFor each (Integer CM_Loop1) from 1 to Sys_HeroCount, do (Actions)
Loop - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CM_PickBanChosenHero[CM_PickBanID] Equal to (==) Sys_HeroType[CM_Loop1]
Then - Actions
Set CM_IDUnit2[CM_Loop1] = CM_Loop1
Else - Actions
Set CM_End2[CM_PickInteger] = True
Multiboard - Set the display style for CM_Multiboard item in column (MB_SetLocationTeam4 + 2), row 6 to Hide text and Show icons
Multiboard - Set the icon for CM_Multiboard item in column (MB_SetLocationTeam4 + 2), row 6 to CM_PickStringHero[CM_PickBanID]
Else - Actions[/trigger]


[trigger="CM Update"]CM Update
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CM_OnOff Equal to (==) True
Then - Actions
Do Multiple ActionsFor each (Integer CM_Loop3) from 1 to 4, do (Actions)
Loop - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CM_BooleanTimer[CM_Loop3] Equal to (==) True
Then - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CM_MB_Time[CM_Loop3] Less than or equal to (<=) 0
Then - Actions
Set CM_MB_Time[CM_Loop3] = 0
Set CM_MB_TimeExtra[CM_Loop3] = (CM_MB_TimeExtra[CM_Loop3] - 1)
Else - Actions
Set CM_MB_Time[CM_Loop3] = (CM_MB_Time[CM_Loop3] - 1)
-------- Color Green --------
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CM_MB_Time[CM_Loop3] Less than (<) 10
Then - Actions
Set CM_MB_TimeString[CM_Loop3] = (|c0020c000 + (String(CM_MB_Time[CM_Loop3])))
Else - Actions
Set CM_MB_TimeString[CM_Loop3] = (String(CM_MB_Time[CM_Loop3]))
-------- Color Red --------
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CM_MB_Time[CM_Loop3] Less than (<) 4
Then - Actions
Set CM_MB_TimeString[CM_Loop3] = (|c00ff0303 + (String(CM_MB_Time[CM_Loop3])))
Else - Actions
-------- Extra End --------
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CM_MB_TimeExtra[CM_Loop3] Less than or equal to (<=) 0
Then - Actions
Set CM_MB_TimeExtra[CM_Loop3] = 0
Set CM_Loc2 = (Center of Picking a Heroes <gen>)
Unit - Create 1 Sys_HeroType[(Random integer number between 1 and Sys_HeroCount)] for (Player(CM_TeamLeader[CM_Loop3])) at CM_Loc2 facing Default building facing (270.0) degrees
Custom script: call RemoveLocation ( udg_CM_Loc2 )
Else - Actions
Else - Actions
-------- System --------
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Sys_GameTime Greater than or equal to (>=) 15
Then - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CM_BooleanBansPickOnOff Equal to (==) True
Then - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CM_PickGetIntegerLeader Equal to (==) 0
Then - Actions
Custom script: set CHECKBANSPIKS = CHECKBANSPIKS + 1
Custom script: if CHECKBANSPIKS == 1 then
Set CM_FloatingTextString = B A N S
Multiboard - Change the title of CM_Multiboard to Captain Mode - |c00...
Custom script: endif
Custom script: if CHECKBANSPIKS == 2 then
Set CM_FloatingTextString = P I C K S
Multiboard - Change the title of CM_Multiboard to Captain Mode - |c00...
Custom script: endif
Custom script: if CHECKBANSPIKS == 3 then
Set CM_FloatingTextString = B A N S
Multiboard - Change the title of CM_Multiboard to Captain Mode - |c00...
Custom script: endif
Custom script: if CHECKBANSPIKS == 4 then
Set CM_FloatingTextString = P I C K S
Multiboard - Change the title of CM_Multiboard to Captain Mode - |c00...
Custom script: endif
Else - Actions
Set CM_PickGetIntegerLeader = (CM_PickGetIntegerLeader + 1)
-------- Adding Gold --------
Set CM_BooleanBansPickOnOff = False
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CM_PickGetIntegerLeader Equal to (==) 1
Then - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Sys_ForceSlot[1] Equal to (==) True
Then - Actions
Player - Add 125 to (Player(CM_TeamLeader[CM_PickGetIntegerLeader])) Current gold
Set CM_BooleanTimer[CM_PickGetIntegerLeader] = True
Set CM_MB_Time[CM_PickGetIntegerLeader] = 30
Set CM_MB_Status[1] = Active
Set CM_MB_Status[2] = Wait
Set CM_MB_Status[3] = Wait
Set CM_MB_Status[4] = Wait
Set CM_BooleanTimer[2] = False
Set CM_BooleanTimer[3] = False
Set CM_BooleanTimer[4] = False
-------- Running the AI --------
Trigger - Run AI CM Mode <gen> (checking conditions)
Else - Actions
Set CM_PickGetIntegerLeader = (CM_PickGetIntegerLeader + 1)
Else - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CM_PickGetIntegerLeader Equal to (==) 2
Then - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Sys_ForceSlot[2] Equal to (==) True
Then - Actions
Player - Add 125 to (Player(CM_TeamLeader[CM_PickGetIntegerLeader])) Current gold
Set CM_BooleanTimer[CM_PickGetIntegerLeader] = True
Set CM_MB_Time[CM_PickGetIntegerLeader] = 30
Set CM_MB_Status[2] = Active
Set CM_MB_Status[1] = Wait
Set CM_MB_Status[3] = Wait
Set CM_MB_Status[4] = Wait
Set CM_BooleanTimer[1] = False
Set CM_BooleanTimer[3] = False
Set CM_BooleanTimer[4] = False
-------- Running the AI --------
Trigger - Run AI CM Mode <gen> (checking conditions)
Else - Actions
Set CM_PickGetIntegerLeader = (CM_PickGetIntegerLeader + 1)
Else - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CM_PickGetIntegerLeader Equal to (==) 3
Then - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Sys_ForceSlot[3] Equal to (==) True
Then - Actions
Player - Add 125 to (Player(CM_TeamLeader[CM_PickGetIntegerLeader])) Current gold
Set CM_BooleanTimer[CM_PickGetIntegerLeader] = True
Set CM_MB_Time[CM_PickGetIntegerLeader] = 30
Set CM_MB_Status[3] = Active
Set CM_MB_Status[2] = Wait
Set CM_MB_Status[1] = Wait
Set CM_MB_Status[4] = Wait
Set CM_BooleanTimer[1] = False
Set CM_BooleanTimer[2] = False
Set CM_BooleanTimer[4] = False
-------- Running the AI --------
Trigger - Run AI CM Mode <gen> (checking conditions)
Else - Actions
Set CM_PickGetIntegerLeader = (CM_PickGetIntegerLeader + 1)
Else - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CM_PickGetIntegerLeader Equal to (==) 4
Then - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Sys_ForceSlot[4] Equal to (==) True
Then - Actions
Player - Add 125 to (Player(CM_TeamLeader[CM_PickGetIntegerLeader])) Current gold
Set CM_BooleanTimer[CM_PickGetIntegerLeader] = True
Set CM_MB_Time[CM_PickGetIntegerLeader] = 30
Set CM_MB_Status[4] = Active
Set CM_MB_Status[2] = Wait
Set CM_MB_Status[3] = Wait
Set CM_MB_Status[1] = Wait
Set CM_BooleanTimer[1] = False
Set CM_BooleanTimer[2] = False
Set CM_BooleanTimer[3] = False
-------- Running the AI --------
Trigger - Run AI CM Mode <gen> (checking conditions)
Else - Actions
Set CM_PickGetIntegerLeader = (CM_PickGetIntegerLeader + 1)
Else - Actions
-------- Clear Data --------
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CM_PickGetIntegerLeader Greater than or equal to (>=) 4
Then - Actions
Set CM_PickGetIntegerLeader = 0
Else - Actions
Else - Actions
-------- Bans/Pick --------
-------- Cheking Complete The Captain Mode --------
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CM_End1[1] Equal to (==) True
CM_End1[2] Equal to (==) True
CM_End1[3] Equal to (==) True
CM_End1[4] Equal to (==) True
CM_End2[1] Equal to (==) True
CM_End2[2] Equal to (==) True
CM_End2[3] Equal to (==) True
CM_End2[4] Equal to (==) True
Then - Actions
Do Multiple ActionsFor each (Integer CM_Loop4) from 1 to 4, do (Actions)
Loop - Actions
Set CM_BooleanTimer[CM_Loop4] = False
Set CM_MB_Status[CM_Loop4] = Ready
Set CM_OnOff = False
Set CM_FloatingTextString = C O M P L E T E
Multiboard - Change the title of CM_Multiboard to |c0180FF7FE|r|c0179...
Do Multiple ActionsFor each (Integer CM_Loop5) from 1 to 12, do (Actions)
Loop - Actions
Do Multiple ActionsFor each (Integer CM_Loop6) from 1 to Sys_HeroCount, do (Actions)
Loop - Actions
Player - Make Sys_HeroType[CM_Loop6] Unavailable for training/construction by (Player(CM_Loop5))
Set CM_LederboardInteger = 10
Leaderboard - Create a leaderboard for (All players) titled (Game Will Start In + ((String(CM_LederboardInteger)) + seconds))
Set CM_Lederboard = (Last created leaderboard)
Set CM_LederboardOnOff = True
Else - Actions
-------- Floating Text --------
Floating Text - Change text of CM_FloatingText to CM_FloatingTextString using font size 16.00
Else - Actions
Else - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CM_MultiboardOnOff Equal to (==) True
Then - Actions
-------- Setting at Multiboard --------
Set Sys_IfThenElsePlayerGroup = 1
Set Sys_PositionOnLederboard = 2
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of players in MB_PlayerGroup[Sys_IfThenElsePlayerGroup]) Not equal to (!=) 0
Then - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CM_BooleanTimer[Sys_IfThenElsePlayerGroup] Equal to (==) True
Then - Actions
Multiboard - Set the text for CM_Multiboard item in column Sys_PositionOnLederboard, row 8 to CM_MB_TimeString[Sys_IfThenElsePlayerGroup]
Multiboard - Set the text for CM_Multiboard item in column Sys_PositionOnLederboard, row 9 to (String(CM_MB_TimeExtra[Sys_IfThenElsePlayerGroup]))
Multiboard - Set the text for CM_Multiboard item in column Sys_PositionOnLederboard, row 11 to CM_MB_Status[Sys_IfThenElsePlayerGroup]
Else - Actions
Multiboard - Set the text for CM_Multiboard item in column Sys_PositionOnLederboard, row 8 to (|c00959697 + (String(CM_MB_Time[Sys_IfThenElsePlayerGroup])))
Multiboard - Set the text for CM_Multiboard item in column Sys_PositionOnLederboard, row 9 to (|c00959697 + (String(CM_MB_TimeExtra[Sys_IfThenElsePlayerGroup])))
Multiboard - Set the text for CM_Multiboard item in column Sys_PositionOnLederboard, row 11 to (|c00959697 + CM_MB_Status[Sys_IfThenElsePlayerGroup])
Else - Actions
Set Sys_IfThenElsePlayerGroup = 2
Set Sys_PositionOnLederboard = (MB_SetLocationTeam2 + 1)
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of players in MB_PlayerGroup[Sys_IfThenElsePlayerGroup]) Not equal to (!=) 0
Then - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CM_BooleanTimer[Sys_IfThenElsePlayerGroup] Equal to (==) True
Then - Actions
Multiboard - Set the text for CM_Multiboard item in column Sys_PositionOnLederboard, row 8 to CM_MB_TimeString[Sys_IfThenElsePlayerGroup]
Multiboard - Set the text for CM_Multiboard item in column Sys_PositionOnLederboard, row 9 to (String(CM_MB_TimeExtra[Sys_IfThenElsePlayerGroup]))
Multiboard - Set the text for CM_Multiboard item in column Sys_PositionOnLederboard, row 11 to CM_MB_Status[Sys_IfThenElsePlayerGroup]
Else - Actions
Multiboard - Set the text for CM_Multiboard item in column Sys_PositionOnLederboard, row 8 to (|c00959697 + (String(CM_MB_Time[Sys_IfThenElsePlayerGroup])))
Multiboard - Set the text for CM_Multiboard item in column Sys_PositionOnLederboard, row 9 to (|c00959697 + (String(CM_MB_TimeExtra[Sys_IfThenElsePlayerGroup])))
Multiboard - Set the text for CM_Multiboard item in column Sys_PositionOnLederboard, row 11 to (|c00959697 + CM_MB_Status[Sys_IfThenElsePlayerGroup])
Else - Actions
Set Sys_IfThenElsePlayerGroup = 3
Set Sys_PositionOnLederboard = (MB_SetLocationTeam3 + 1)
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of players in MB_PlayerGroup[Sys_IfThenElsePlayerGroup]) Not equal to (!=) 0
Then - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CM_BooleanTimer[Sys_IfThenElsePlayerGroup] Equal to (==) True
Then - Actions
Multiboard - Set the text for CM_Multiboard item in column Sys_PositionOnLederboard, row 8 to CM_MB_TimeString[Sys_IfThenElsePlayerGroup]
Multiboard - Set the text for CM_Multiboard item in column Sys_PositionOnLederboard, row 9 to (String(CM_MB_TimeExtra[Sys_IfThenElsePlayerGroup]))
Multiboard - Set the text for CM_Multiboard item in column Sys_PositionOnLederboard, row 11 to CM_MB_Status[Sys_IfThenElsePlayerGroup]
Else - Actions
Multiboard - Set the text for CM_Multiboard item in column Sys_PositionOnLederboard, row 8 to (|c00959697 + (String(CM_MB_Time[Sys_IfThenElsePlayerGroup])))
Multiboard - Set the text for CM_Multiboard item in column Sys_PositionOnLederboard, row 9 to (|c00959697 + (String(CM_MB_TimeExtra[Sys_IfThenElsePlayerGroup])))
Multiboard - Set the text for CM_Multiboard item in column Sys_PositionOnLederboard, row 11 to (|c00959697 + CM_MB_Status[Sys_IfThenElsePlayerGroup])
Else - Actions
Set Sys_IfThenElsePlayerGroup = 4
Set Sys_PositionOnLederboard = (MB_SetLocationTeam4 + 1)
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of players in MB_PlayerGroup[Sys_IfThenElsePlayerGroup]) Not equal to (!=) 0
Then - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CM_BooleanTimer[Sys_IfThenElsePlayerGroup] Equal to (==) True
Then - Actions
Multiboard - Set the text for CM_Multiboard item in column Sys_PositionOnLederboard, row 8 to CM_MB_TimeString[Sys_IfThenElsePlayerGroup]
Multiboard - Set the text for CM_Multiboard item in column Sys_PositionOnLederboard, row 9 to (String(CM_MB_TimeExtra[Sys_IfThenElsePlayerGroup]))
Multiboard - Set the text for CM_Multiboard item in column Sys_PositionOnLederboard, row 11 to CM_MB_Status[Sys_IfThenElsePlayerGroup]
Else - Actions
Multiboard - Set the text for CM_Multiboard item in column Sys_PositionOnLederboard, row 8 to (|c00959697 + (String(CM_MB_Time[Sys_IfThenElsePlayerGroup])))
Multiboard - Set the text for CM_Multiboard item in column Sys_PositionOnLederboard, row 9 to (|c00959697 + (String(CM_MB_TimeExtra[Sys_IfThenElsePlayerGroup])))
Multiboard - Set the text for CM_Multiboard item in column Sys_PositionOnLederboard, row 11 to (|c00959697 + CM_MB_Status[Sys_IfThenElsePlayerGroup])
Else - Actions
Else - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CM_LederboardOnOff Equal to (==) True
Then - Actions
Set CM_LederboardInteger = (CM_LederboardInteger - 1)
Leaderboard - Change the title of CM_Lederboard to (Game Will Start In + ((String(CM_LederboardInteger)) + seconds))
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CM_LederboardInteger Less than or equal to (<=) 0
Then - Actions
Set CM_LederboardInteger = 0
Set CM_LederboardOnOff = False
Leaderboard - Destroy CM_Lederboard
Trigger - Run CM Create Dummy <gen> (checking conditions)
Else - Actions
Else - Actions[/trigger]


[trigger="CM Create Dummy"]CM Create Dummy
Events
Conditions
Actions
Multiboard - Destroy CM_Multiboard
-------- Create The Dummy Hero To Team 1 - Team 2 - Team 3 - Team 4 --------
-------- Team 1 --------
Set Sys_IfThenElsePlayerGroup = 1
Set Sys_RectTeam1[1] = Team 1 Pick 1 <gen>
Set Sys_RectTeam1[2] = Team 1 Pick 2 <gen>
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Sys_ForceSlot[Sys_IfThenElsePlayerGroup] Equal to (==) True
Then - Actions
Set CM_Loc3[1] = (Center of Sys_RectTeam1[1])
Set CM_Loc3[2] = (Center of Sys_RectTeam1[2])
Unit - Create 1 Sys_DummyHeroType[CM_IDUnit1[Sys_IfThenElsePlayerGroup]] for Player 1 (Red) at CM_Loc3[1] facing Default building facing (270.0) degrees
Unit - Create 1 Sys_DummyHeroType[CM_IDUnit2[Sys_IfThenElsePlayerGroup]] for Player 1 (Red) at CM_Loc3[2] facing Default building facing (270.0) degrees
Custom script: call RemoveLocation ( udg_CM_Loc3 [ 1 ] )
Custom script: call RemoveLocation ( udg_CM_Loc3 [ 2 ] )
Else - Actions
-------- Team 2 --------
Set Sys_IfThenElsePlayerGroup = 2
Set Sys_RectTeam2[1] = Team 2 Pick 1 <gen>
Set Sys_RectTeam2[2] = Team 2 Pick 2 <gen>
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Sys_ForceSlot[Sys_IfThenElsePlayerGroup] Equal to (==) True
Then - Actions
Set CM_Loc3[3] = (Center of Sys_RectTeam2[1])
Set CM_Loc3[4] = (Center of Sys_RectTeam2[2])
Unit - Create 1 Sys_DummyHeroType[CM_IDUnit1[Sys_IfThenElsePlayerGroup]] for Player 4 (Purple) at CM_Loc3[3] facing Default building facing (270.0) degrees
Unit - Create 1 Sys_DummyHeroType[CM_IDUnit2[Sys_IfThenElsePlayerGroup]] for Player 4 (Purple) at CM_Loc3[4] facing Default building facing (270.0) degrees
Custom script: call RemoveLocation ( udg_CM_Loc3 [ 3 ] )
Custom script: call RemoveLocation ( udg_CM_Loc3 [ 4 ] )
Else - Actions
-------- Team 3 --------
Set Sys_IfThenElsePlayerGroup = 3
Set Sys_RectTeam3[1] = Team 3 Pick 1 <gen>
Set Sys_RectTeam3[2] = Team 3 Pick 2 <gen>
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Sys_ForceSlot[Sys_IfThenElsePlayerGroup] Equal to (==) True
Then - Actions
Set CM_Loc3[5] = (Center of Sys_RectTeam3[1])
Set CM_Loc3[6] = (Center of Sys_RectTeam3[2])
Unit - Create 1 Sys_DummyHeroType[CM_IDUnit1[Sys_IfThenElsePlayerGroup]] for Player 7 (Green) at CM_Loc3[5] facing Default building facing (270.0) degrees
Unit - Create 1 Sys_DummyHeroType[CM_IDUnit2[Sys_IfThenElsePlayerGroup]] for Player 7 (Green) at CM_Loc3[6] facing Default building facing (270.0) degrees
Custom script: call RemoveLocation ( udg_CM_Loc3 [ 5 ] )
Custom script: call RemoveLocation ( udg_CM_Loc3 [ 6 ] )
Else - Actions
-------- Team 4 --------
Set Sys_IfThenElsePlayerGroup = 4
Set Sys_RectTeam4[1] = Team 4 Pick 1 <gen>
Set Sys_RectTeam4[2] = Team 4 Pick 2 <gen>
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Sys_ForceSlot[Sys_IfThenElsePlayerGroup] Equal to (==) True
Then - Actions
Set CM_Loc3[7] = (Center of Sys_RectTeam4[1])
Set CM_Loc3[8] = (Center of Sys_RectTeam4[2])
Unit - Create 1 Sys_DummyHeroType[CM_IDUnit1[Sys_IfThenElsePlayerGroup]] for Player 10 (Light Blue) at CM_Loc3[7] facing Default building facing (270.0) degrees
Unit - Create 1 Sys_DummyHeroType[CM_IDUnit2[Sys_IfThenElsePlayerGroup]] for Player 10 (Light Blue) at CM_Loc3[8] facing Default building facing (270.0) degrees
Custom script: call RemoveLocation ( udg_CM_Loc3 [ 7 ] )
Custom script: call RemoveLocation ( udg_CM_Loc3 [ 8 ] )
Else - Actions
-------- Camera --------
Set CM_Loc1[1] = (Center of Sys_RectTeam1[1])
Set CM_Loc1[2] = (Center of Sys_RectTeam2[1])
Set CM_Loc1[3] = (Center of Sys_RectTeam3[1])
Set CM_Loc1[4] = (Center of Sys_RectTeam4[1])
Do Multiple ActionsFor each (Integer CM_Loop2) from 1 to 12, do (Actions)
Loop - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player(CM_Loop2)) is an ally of Player 1 (Red)) Equal to (==) True
Then - Actions
Camera - Pan camera for (Player(CM_Loop2)) to CM_Loc1[1] over 0.00 seconds
Else - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player(CM_Loop2)) is an ally of Player 4 (Purple)) Equal to (==) True
Then - Actions
Camera - Pan camera for (Player(CM_Loop2)) to CM_Loc1[2] over 0.00 seconds
Else - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player(CM_Loop2)) is an ally of Player 7 (Green)) Equal to (==) True
Then - Actions
Camera - Pan camera for (Player(CM_Loop2)) to CM_Loc1[3] over 0.00 seconds
Else - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player(CM_Loop2)) is an ally of Player 10 (Light Blue)) Equal to (==) True
Then - Actions
Camera - Pan camera for (Player(CM_Loop2)) to CM_Loc1[4] over 0.00 seconds
Else - Actions
Custom script: call RemoveLocation ( udg_CM_Loc1 [ 1 ] )
Custom script: call RemoveLocation ( udg_CM_Loc1 [ 2 ] )
Custom script: call RemoveLocation ( udg_CM_Loc1 [ 3 ] )
Custom script: call RemoveLocation ( udg_CM_Loc1 [ 4 ] )
-------- Clear Data --------
Set Sys_RectTeam1[1] = No region
Set Sys_RectTeam1[2] = No region
Set Sys_RectTeam2[1] = No region
Set Sys_RectTeam2[2] = No region
Set Sys_RectTeam3[1] = No region
Set Sys_RectTeam3[2] = No region
Set Sys_RectTeam4[1] = No region
Set Sys_RectTeam4[2] = No region[/trigger]


[trigger="CM Final"]CM Final
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to (==) Chosen Hero
Actions
Unit - Remove (Casting unit) from the game
Do Multiple ActionsFor each (Integer CM_Loop7) from 1 to Sys_HeroCount, do (Actions)
Loop - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Casting unit)) Equal to (==) Sys_DummyHeroType[CM_Loop7]
Then - Actions
Set CM_Loc6 = (Position of (Casting unit))
Unit - Create 1 Sys_HeroType[CM_Loop7] for (Owner of (Casting unit)) at CM_Loc6 facing Default building facing (270.0) degrees
Set ChosenHero[(Player number of (Owner of (Last created unit)))] = (Last created unit)
Selection - Select (Last created unit) for (Owner of (Casting unit))
Camera - Pan camera for (Owner of (Casting unit)) to ((Owner of (Casting unit)) start location) over 0.00 seconds
Custom script: call RemoveLocation ( udg_CM_Loc6 )
Else - Actions[/trigger]


[trigger="CM Select"]CM Select
Events
Player - Player 2 (Blue) Selects a unit
Player - Player 3 (Teal) Selects a unit
Player - Player 5 (Yellow) Selects a unit
Player - Player 6 (Orange) Selects a unit
Player - Player 8 (Pink) Selects a unit
Player - Player 9 (Gray) Selects a unit
Player - Player 11 (Dark Green) Selects a unit
Player - Player 12 (Brown) Selects a unit
Conditions
((Triggering unit) is A structure) Equal to (==) True
Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Triggering player) is an ally of Player 1 (Red)) Equal to (==) True
(Team 1 <gen> contains (Triggering unit)) Equal to (==) True
ChosenHero[(Player number of (Triggering player))] Equal to (==) No unit
Then - Actions
Unit - Change ownership of (Triggering unit) to (Triggering player) and Retain color
Else - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Triggering player) is an ally of Player 4 (Purple)) Equal to (==) True
(Team 2 <gen> contains (Triggering unit)) Equal to (==) True
ChosenHero[(Player number of (Triggering player))] Equal to (==) No unit
Then - Actions
Unit - Change ownership of (Triggering unit) to (Triggering player) and Retain color
Else - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Triggering player) is an ally of Player 7 (Green)) Equal to (==) True
(Team 3 <gen> contains (Triggering unit)) Equal to (==) True
ChosenHero[(Player number of (Triggering player))] Equal to (==) No unit
Then - Actions
Unit - Change ownership of (Triggering unit) to (Triggering player) and Retain color
Else - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Triggering player) is an ally of Player 10 (Light Blue)) Equal to (==) True
(Team 4 <gen> contains (Triggering unit)) Equal to (==) True
ChosenHero[(Player number of (Triggering player))] Equal to (==) No unit
Then - Actions
Unit - Change ownership of (Triggering unit) to (Triggering player) and Retain color
Else - Actions[/trigger]


[trigger="CM Unselect"]CM Unselect
Events
Player - Player 2 (Blue) Deselects a unit
Player - Player 3 (Teal) Deselects a unit
Player - Player 5 (Yellow) Deselects a unit
Player - Player 6 (Orange) Deselects a unit
Player - Player 8 (Pink) Deselects a unit
Player - Player 9 (Gray) Deselects a unit
Player - Player 11 (Dark Green) Deselects a unit
Player - Player 12 (Brown) Deselects a unit
Conditions
((Triggering unit) is A structure) Equal to (==) True
Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Triggering player) is an ally of Player 1 (Red)) Equal to (==) True
(Team 1 <gen> contains (Triggering unit)) Equal to (==) True
Then - Actions
Unit - Change ownership of (Triggering unit) to Player 1 (Red) and Retain color
Else - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Triggering player) is an ally of Player 4 (Purple)) Equal to (==) True
(Team 2 <gen> contains (Triggering unit)) Equal to (==) True
Then - Actions
Unit - Change ownership of (Triggering unit) to Player 4 (Purple) and Retain color
Else - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Triggering player) is an ally of Player 7 (Green)) Equal to (==) True
(Team 3 <gen> contains (Triggering unit)) Equal to (==) True
Then - Actions
Unit - Change ownership of (Triggering unit) to Player 7 (Green) and Retain color
Else - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Triggering player) is an ally of Player 10 (Light Blue)) Equal to (==) True
(Team 4 <gen> contains (Triggering unit)) Equal to (==) True
Then - Actions
Unit - Change ownership of (Triggering unit) to Player 10 (Light Blue) and Retain color
Else - Actions[/trigger]



[trigger="System Set Hero"]System Set Hero
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
-------- It Have Hero/Dummy Hero/Icons Hero --------
Set Sys_HeroType[1] = Paladin
Set Sys_DummyHeroType[1] = Paladin (Dummy)
Set Sys_HeroTypeIcon[1] = ReplaceableTextures\CommandButtons\BTNHeroPaladin.blp
Set Sys_HeroType[2] = Archmage
Set Sys_DummyHeroType[2] = Archmage (Dummy)
Set Sys_HeroTypeIcon[2] = ReplaceableTextures\CommandButtons\BTNHeroArchMage.blp
Set Sys_HeroType[3] = Mountain King
Set Sys_DummyHeroType[3] = Mountain King (Dummy)
Set Sys_HeroTypeIcon[3] = ReplaceableTextures\CommandButtons\BTNHeroMountainKing.blp
Set Sys_HeroType[4] = Blood Mage
Set Sys_DummyHeroType[4] = Blood Mage (Dummy)
Set Sys_HeroTypeIcon[4] = ReplaceableTextures\CommandButtons\BTNHeroBloodElfPrince.blp
Set Sys_HeroType[5] = Blademaster
Set Sys_DummyHeroType[5] = Blademaster (Dummy)
Set Sys_HeroTypeIcon[5] = ReplaceableTextures\CommandButtons\BTNHeroBlademaster.blp
Set Sys_HeroType[6] = Far Seer
Set Sys_DummyHeroType[6] = Far Seer (Dummy)
Set Sys_HeroTypeIcon[6] = ReplaceableTextures\CommandButtons\BTNHeroFarseer.blp
Set Sys_HeroType[7] = Tauren Chieftain
Set Sys_DummyHeroType[7] = Tauren Chieftain (Dummy)
Set Sys_HeroTypeIcon[7] = ReplaceableTextures\CommandButtons\BTNHeroTaurenChieftain.blp
Set Sys_HeroType[8] = Shadow Hunter
Set Sys_DummyHeroType[8] = Shadow Hunter (Dummy)
Set Sys_HeroTypeIcon[8] = ReplaceableTextures\CommandButtons\BTNShadowHunter.blp
Set Sys_HeroType[9] = Death Knight
Set Sys_DummyHeroType[9] = Death Knight (Dummy)
Set Sys_HeroTypeIcon[9] = ReplaceableTextures\CommandButtons\BTNHeroDeathKnight.blp
Set Sys_HeroType[10] = Lich
Set Sys_DummyHeroType[10] = Lich (Dummy)
Set Sys_HeroTypeIcon[10] = ReplaceableTextures\CommandButtons\BTNLichVersion2.blp
Set Sys_HeroType[11] = Dreadlord
Set Sys_DummyHeroType[11] = Dreadlord (Dummy)
Set Sys_HeroTypeIcon[11] = ReplaceableTextures\CommandButtons\BTNHeroDreadLord.blp
Set Sys_HeroType[12] = Crypt Lord
Set Sys_DummyHeroType[12] = Crypt Lord (Dummy)
Set Sys_HeroTypeIcon[12] = ReplaceableTextures\CommandButtons\BTNHeroCryptLord.blp
Set Sys_HeroType[13] = Keeper of the Grove
Set Sys_DummyHeroType[13] = Keeper of the Grove (Dummy)
Set Sys_HeroTypeIcon[13] = ReplaceableTextures\CommandButtons\BTNKeeperOfTheGrove.blp
Set Sys_HeroType[14] = Priestess of the Moon
Set Sys_DummyHeroType[14] = Priestess of the Moon (Dummy)
Set Sys_HeroTypeIcon[14] = ReplaceableTextures\CommandButtons\BTNPriestessOfTheMoon.blp
Set Sys_HeroType[15] = Demon Hunter
Set Sys_DummyHeroType[15] = Demon Hunter (Dummy)
Set Sys_HeroTypeIcon[15] = ReplaceableTextures\CommandButtons\BTNHeroDemonHunter.blp
Set Sys_HeroType[16] = Warden
Set Sys_DummyHeroType[16] = Warden (Dummy)
Set Sys_HeroTypeIcon[16] = ReplaceableTextures\CommandButtons\BTNHeroWarden.blp
Set Sys_HeroType[17] = Alchemist
Set Sys_DummyHeroType[17] = Alchemist (Dummy)
Set Sys_HeroTypeIcon[17] = ReplaceableTextures\CommandButtons\BTNHeroAlchemist.blp
Set Sys_HeroType[18] = Naga Sea Witch
Set Sys_DummyHeroType[18] = Naga See Witch (Dummy)
Set Sys_HeroTypeIcon[18] = ReplaceableTextures\CommandButtons\BTNNagaSeaWitch.blp
Set Sys_HeroType[19] = Tinker
Set Sys_DummyHeroType[19] = Tinker (Dummy)
Set Sys_HeroTypeIcon[19] = ReplaceableTextures\CommandButtons\BTNHeroTinker.blp
Set Sys_HeroType[20] = Beastmaster
Set Sys_DummyHeroType[20] = Beastmaster (Dummy)
Set Sys_HeroTypeIcon[20] = ReplaceableTextures\CommandButtons\BTNBeastMaster.blp
Set Sys_HeroType[21] = Dark Ranger
Set Sys_DummyHeroType[21] = Dark Ranger (Dummy)
Set Sys_HeroTypeIcon[21] = ReplaceableTextures\CommandButtons\BTNBansheeRanger.blp
Set Sys_HeroType[22] = Firelord
Set Sys_DummyHeroType[22] = Firelord (Dummy)
Set Sys_HeroTypeIcon[22] = ReplaceableTextures\CommandButtons\BTNHeroAvatarOfFlame.blp
Set Sys_HeroType[23] = Pandaren Brewmaster
Set Sys_DummyHeroType[23] = Pandaren Brewmaster (Dummy)
Set Sys_HeroTypeIcon[23] = ReplaceableTextures\CommandButtons\BTNPandarenBrewmaster.blp
Set Sys_HeroType[24] = Pit Lord
Set Sys_DummyHeroType[24] = Pit Lord (Dummy)
Set Sys_HeroTypeIcon[24] = ReplaceableTextures\CommandButtons\BTNPitLord.blp
Set Sys_HeroCount = 24[/trigger]
The Script Take From Battle of Heroes v1.3 by IceFrog Indonesian
Im get the permission from IFI to shared this.

Q: How to copy the variable, Its much ?
A: Frist you must check the Automatically Create the unknown variable in File - Perverence


Keywords:
dota, captain mode, captain, princesspenda
Contents

Captain Mode v1.1 (Map)

Reviews
07:49, 13th Jun 2014 BPower: Not configurable, requires a lot of code improvement, integrated AI script, ... rejected

Moderator

M

Moderator

07:49, 13th Jun 2014
BPower:
Not configurable, requires a lot of code improvement, integrated AI script, ... rejected
 
This is not vJass at all.
You have broken trigger tags.
Never use waits.
Never use Integer A / B. Create your own variable and use a custom integer loop for speed and efficiency.
Use a loop trigger to see if player is playing.

Anything used twice or more should be stored into a variable and the variable should be used.

All of these systems are hard coded to much. Look at other systems to see how they allow for configuration.
This makes no sense at all to have.
  • <Empty String> +
It is in many of your strings.

You leak locations.

You should look at the tutorial Things that leak on triggers and scripts page.
Also you should look at my tutorial Things You Should Know When Using Triggers / GUI
 

hdm

hdm

Level 9
Joined
Nov 19, 2011
Messages
384
Damn, the criticism of the HW's guys hurt. I have to be very cautious when I make my first spell.
 
ok all. So, i must changed categories, title, remove location/ add var then removelocation that, remove waits, changed foorloop A/B to integer, changed preview map, put ss map and etc.

Im very sry for all.

Yes and it isn't that big of a deal nothing to be sorry for. You should take a look at the things that leak tutorial on triggers and scripts forum.
Also take a look at my tutorial things you should know when using triggers / gui. Link is in my sig.
 
Green!X : if it's open source (like one from TheHelper, it's GUI), it shouldn't have leaks nor uses Integer A/B (I assume, since AceHeart is a well known triggerer).

Purge : I recall there's another one at The Helper Net....

Oh wait, here's the document : http://world-editor-tutorials.thehelper.net/maps.php?view=137
 
You need to combine your ITEs.
Example: This
  • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • ((Player(Game_Integer)) slot status) Equal to (==) Is playing
    • Then - Actions
      • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Player(Game_Integer)) controller) Equal to (==) User
        • Then - Actions
          • Set Game_Leader = Playername[Game_Integer]
        • Else - Actions
Into this.
  • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • ((Player(Game_Integer)) slot status) Equal to (==) Is playing
      • ((Player(Game_Integer)) controller) Equal to (==) User
    • Then - Actions
      • Set Game_Leader = Playername[Game_Integer]
    • Else - Actions
Also use a look and loop through all players checking for these conditions rather than a big mess of ITEs.

Anything used twice or more should be stored into a variable and the variable should be used. Example: store (Last created multiboard) into a mutliboard variable and use the variable.
This is for speed and efficiency.

Never use Entering unit. Use Triggering unit.
Never use Casting unit. Use Triggering unit.

This is just very inefficient and way to hard coded.
Look at some of the other systems here to see how they are easily manipulated to the users liking.

Also about this comment in your spell description.
The Script Take From Battle of Heroes v1.3 by IceFrog Indonesian
Any scripts taken and tried to be passed off as your own will get it removed and you possibly banned.
If this is not your own resource you should delete it.
 
But, I didn't say anything about leaks or integer A/B. :/

I know, I hope you did read the other posts though :)

EDIT :
DIMF : perhaps the map was open source and the author has permit him, you can ask if he/she has gain permission from Legend of BOH owner

EDIT :
The map was set to NEEDS FIX as of 03-26-2014, 07:01 PM.
 
Level 2
Joined
Mar 22, 2014
Messages
12
You need to combine your ITEs.
Example: This
  • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • ((Player(Game_Integer)) slot status) Equal to (==) Is playing
    • Then - Actions
      • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Player(Game_Integer)) controller) Equal to (==) User
        • Then - Actions
          • Set Game_Leader = Playername[Game_Integer]
        • Else - Actions
Into this.
  • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • ((Player(Game_Integer)) slot status) Equal to (==) Is playing
      • ((Player(Game_Integer)) controller) Equal to (==) User
    • Then - Actions
      • Set Game_Leader = Playername[Game_Integer]
    • Else - Actions
Also use a look and loop through all players checking for these conditions rather than a big mess of ITEs.

Anything used twice or more should be stored into a variable and the variable should be used. Example: store (Last created multiboard) into a mutliboard variable and use the variable.
This is for speed and efficiency.

Never use Entering unit. Use Triggering unit.
Never use Casting unit. Use Triggering unit.

This is just very inefficient and way to hard coded.
Look at some of the other systems here to see how they are easily manipulated to the users liking.

Also about this comment in your spell description.
The Script Take From Battle of Heroes v1.3 by IceFrog Indonesian
Any scripts taken and tried to be passed off as your own will get it removed and you possibly banned.
If this is not your own resource you should delete it.

If this The System have two functions
1. To Start the You are Team Leader, Chosen a Mode. [Only User]
2. To Picks or Bans in Captain Mode [Only both Computers or User]
 
You need to combine your ITEs.
Example: This
  • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • ((Player(Game_Integer)) slot status) Equal to (==) Is playing
    • Then - Actions
      • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Player(Game_Integer)) controller) Equal to (==) User
        • Then - Actions
          • Set Game_Leader = Playername[Game_Integer]
        • Else - Actions
Into this.
  • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • ((Player(Game_Integer)) slot status) Equal to (==) Is playing
      • ((Player(Game_Integer)) controller) Equal to (==) User
    • Then - Actions
      • Set Game_Leader = Playername[Game_Integer]
    • Else - Actions
Also use a look and loop through all players checking for these conditions rather than a big mess of ITEs.

Anything used twice or more should be stored into a variable and the variable should be used. Example: store (Last created multiboard) into a mutliboard variable and use the variable.
This is for speed and efficiency.

Never use Entering unit. Use Triggering unit.
Never use Casting unit. Use Triggering unit.

This is just very inefficient and way to hard coded.
Look at some of the other systems here to see how they are easily manipulated to the users liking.

Also about this comment in your spell description.
The Script Take From Battle of Heroes v1.3 by IceFrog Indonesian
Any scripts taken and tried to be passed off as your own will get it removed and you possibly banned.
If this is not your own resource you should delete it.

If this The System have two functions
1. To Start the You are Team Leader, Chosen a Mode. [Only User]
2. To Picks or Bans in Captain Mode [Only both Computers or User]

I have no idea what those are referring to as I have mentioned fixes / optimizations to the code you have provided.
 
Level 19
Joined
Mar 18, 2012
Messages
1,716
Anything used more than once should be stored into a variable, for instance Owner of (Casting Unit).

The AI is also integrated into the script? Who does need this?

I don't think this will be approveable at any point, because it is too map specific, not configurable and coded inefficiently. In my eyes this is more material for the "request section", once someone has such a request.
 
Top