GFreak45
I didnt slap you, i high 5'd your face.
- Reaction score
- 130
G_Display
v.1.00
v.1.00
System Uses
This system creates a dialog box on the top right with a pulldown menu. This menu will attach list items to it with names of your choosing. Each menu item will be allowed 1 Dialog Module ID, which will determine what type of dialog box is created for that list item. When you select a list item, it hides the current item and shows the selected one. It is very open to use with modules from other programmers, so anyone who wants to have a link to their module if they create one put up on this thread pm me with a download link and i will check it out.
Customize-ability
- Box Width
- Window Ammount
- Window Type
- Name Label Sizes
- Hide All Windows Text (IE: None, Hidden, etc.)
- The Initial Selected Window
NOTE: These are the customize-able options for the core only.
Initialization Code:
Trigger:
- G_Display System Init
- Events
- Game - Map initialization
- Local Variables
- Integer Loop 1 = 0 <Integer>
- Untitled Variable 001 = 0 <Integer[15]>
- Conditions
- Actions
- ------- Here is what you edit.
- ------- Here you set the names and Type ID Strings of each window in the pulldown menu.
- Variable - Set G_Display Window Names[1] = "Test 1: Scores/Kills"
- Variable - Set G_Display Window Type ID[1] = G_D M_S/K ID Number
- ------- Here is Where You add the actions from the module in the trigger that begins with: Initialization Actions <gen>
- Data Table - Save G_D M_S/K Score Window Initialization as ("G_D Mod ID " + (String(G_D M_S/K ID Number))) in the Global data table
- Player Group - Pick each player in (All players) and do (Actions)
- Actions
- General - If (Conditions) then do (Actions) else do (Actions)
- If
- (Bank "G_D M_S/K" exists for player (Picked player)) == True
- Then
- Bank - Preload and synchronize bank "G_D M_S/K" for player (Picked player)
- Variable - Set G_D M_S/K Bank[(Picked player)] = (Last opened bank)
- Variable - Set G_D M_S/K Scores and stats[(Picked player)][4] = (Load "Kill Rating" of section "Kill Rating" from bank (Last opened bank) as integer value)
- Variable - Set G_D M_S/K Kill/Death Instances[(Picked player)] = (Load "Kill Rating Reduction Factor" of section "Kill Rating" from bank (Last opened bank) as integer value)
- Else
- Bank - Open bank "G_D M_S/K" for player (Picked player)
- Variable - Set G_D M_S/K Bank[(Picked player)] = (Last opened bank)
- Variable - Set G_D M_S/K Scores and stats[(Picked player)][4] = 1000
- Variable - Set G_D M_S/K Kill/Death Instances[(Picked player)] = 0
- Bank - Store integer G_D M_S/K Scores and stats[(Picked player)][4] as "Kill Rating" of section "Kill Rating" in bank G_D M_S/K Bank[0]
- Bank - Store integer G_D M_S/K Kill/Death Instances[(Picked player)] as "Kill Rating Reduction Factor" of section "Kill Rating" in bank G_D M_S/K Bank[0]
- Bank - Save bank G_D M_S/K Bank[(Picked player)]
- If
- General - If (Conditions) then do (Actions) else do (Actions)
- Actions
- General - For each integer Integer Loop 1 from 1 to G_D M_S/K Team Ammount with increment 1, do (Actions)
- Actions
- Player Group - Pick each player in (Players on team Integer Loop 1) and do (Actions)
- Actions
- Variable - Set G_D M_S/K Team Int[(Picked player)] = Integer Loop 1
- Variable - Set Untitled Variable 001[G_D M_S/K Team Int[(Picked player)]] = (G_D M_S/K Scores and stats[(Picked player)][4] + Untitled Variable 001[G_D M_S/K Team Int[(Picked player)]])
- Actions
- General - If (Conditions) then do (Actions) else do (Actions)
- If
- (Number of players in (Players on team Integer Loop 1)) < 0
- Then
- Variable - Set G_D M_S/K Scores and stats[(Integer Loop 1 + 14)][4] = (Untitled Variable 001[Integer Loop 1] / (Number of players in (Players on team Integer Loop 1)))
- Else
- Variable - Set G_D M_S/K Scores and stats[(Integer Loop 1 + 14)][4] = 0
- If
- Player Group - Pick each player in (Players on team Integer Loop 1) and do (Actions)
- Actions
- ------- This creates the core pulldown menu.
- ------- Do not edit below here.
- Dialog - Create a Modal dialog of size (G_Display Width, 100) at (0, 50) relative to Top Right of screen
- Dialog - Create a Pulldown for dialog (Last created dialog)
- Variable - Set G_Display Pulldown = (Last created dialog item)
- Dialog - Set (Last created dialog item) size to ((G_Display Width - 45), 50) for (All players)
- Dialog - Move (Last created dialog item) to (26, 26) relative to Top Left of dialog for (All players)
- Dialog - Show (Last created dialog) for (All players)
- General - For each integer Integer Loop 1 from 1 to G_Display Window Ammount with increment 1, do (Actions)
- Actions
- Dialog - Add list item G_Display Window Names[Integer Loop 1] to (Last created dialog item) for (All players)
- Variable - Set G_Display Initializer = Integer Loop 1
- Trigger - Run (("G_D Mod ID " + (String(G_Display Window Type ID[Integer Loop 1]))) from the Global data table) (Check Conditions, Wait until it finishes)
- Actions
- Dialog - Add list item "None" to (Last created dialog item) for (All players)
- Dialog - Select item G_Display Initial Option of (Last created dialog item) for (All players)
- Events
Hide/Show Windows Code:
Trigger:
- G_Display Hide and Show
- Events
- Dialog - Any Dialog Item is used by Player Any Player with event type Changed Selection
- Local Variables
- Integer Loop 1 = 0 <Integer>
- Conditions
- G_Display Pulldown == (Used dialog item)
- Actions
- General - For each integer Integer Loop 1 from 1 to G_Display Window Ammount with increment 1, do (Actions)
- Actions
- Dialog - Hide G_Display Dialog Windows[Integer Loop 1] for (Player group((Triggering player)))
- Actions
- General - If (Conditions) then do (Actions) else do (Actions)
- If
- (Selected list item of (Used dialog item) for (Triggering player)) == (G_Display Window Ammount + 1)
- Then
- Else
- Dialog - Show G_Display Dialog Windows[(Selected list item of (Used dialog item) for (Triggering player))] for (Player group((Triggering player)))
- If
- General - For each integer Integer Loop 1 from 1 to G_Display Window Ammount with increment 1, do (Actions)
- Events
Core Download:
View attachment G_Display Core.SC2Map
Test Map With basic Score/Kill Module with an arena style rating system:
View attachment G_Display Demonstration.SC2Map



Module Info:
G_Display Score/Kills Mod, rating system included.
v. 0.79
This system records the kills, deaths, and assists of all heroes and teams. It also records a rating system based off your kills and deaths that is saved in a bank and adjusted by a large ammount at first, gradually getting to a smaller change with every kill or death, allowing you to reach your true rating as fast as possible. The change from deaths/kills is also dependent on the difference in rating between the players. Label Positions have an algorithm that allows them to be appropriately placed based on the size of the width. It is not yet completed, still changing some things and hopefully getting the teams to properly display the average kill rating average of the team.
Customize-ability:
v. 0.79
This system records the kills, deaths, and assists of all heroes and teams. It also records a rating system based off your kills and deaths that is saved in a bank and adjusted by a large ammount at first, gradually getting to a smaller change with every kill or death, allowing you to reach your true rating as fast as possible. The change from deaths/kills is also dependent on the difference in rating between the players. Label Positions have an algorithm that allows them to be appropriately placed based on the size of the width. It is not yet completed, still changing some things and hopefully getting the teams to properly display the average kill rating average of the team.
Customize-ability:
- Window Length
- Window ID #
- Whether to display teams or not
- The label width for K/D/A and KR (Kill Rating)
- Unit Type Conditions (IE: Record only heroic/Massive/Armor kills etc)
- Algorithm for Kill Rating
Module Coding:
Trigger:
- G_D M_S/K Score Window Initialization
- Events
- Local Variables
- Untitled Variable 002 = 50 <Integer>
- Untitled Variable 003 = 0 <Integer>
- Conditions
- Actions
- Variable - Set G_D M_S/K Height = 0
- General - If (Conditions) then do (Actions) else do (Actions)
- If
- G_D M_S/K Show Teams[G_Display Initializer] == True
- Then
- Variable - Set G_D M_S/K Height = (+ (120, ((Number of players in (Active Players)) * 30), (G_D M_S/K Team Ammount * 50)))
- Else
- Variable - Set G_D M_S/K Height = (+ (120, ((Number of players in (Active Players)) * 30)))
- If
- Dialog - Create a Modal dialog of size (G_Display Width, G_D M_S/K Height) at (0, 140) relative to Top Right of screen
- Variable - Set G_Display Dialog Windows[G_Display Initializer] = (Last created dialog)
- Dialog - Create a label for dialog (Last created dialog) with the dimensions (G_Display Name Width, 50) anchored to Top Left with an offset of (50, Untitled Variable 002) with the text "Player Names" color set to White text writeout set to False with a writeout duration of 2.0
- Dialog - Create a label for dialog (Last created dialog) with the dimensions (75, 50) anchored to Top Left with an offset of ((G_Display Name Width + ((G_Display Width - (+ (G_Display Name Width, (G_D M_S/K Field Size * 2)))) / 2)), Untitled Variable 002) with the text "K/D/A" color set to Gray text writeout set to False with a writeout duration of 2.0
- Dialog - Set (Last created dialog item) tooltip to "Kills/Deaths/Assists" for (All players)
- Dialog - Create a label for dialog (Last created dialog) with the dimensions (75, 50) anchored to Top Left with an offset of ((G_Display Name Width + (+ (G_D M_S/K Field Size, (G_Display Width - (+ (G_Display Name Width, (G_D M_S/K Field Size * 2), ((G_Display Width - (+ (G_Display Name Width, (G_D M_S/K Field Size * 2)))) / 4))))))), Untitled Variable 002) with the text "KR" color set to Gray text writeout set to False with a writeout duration of 2.0
- Dialog - Set (Last created dialog item) tooltip to "Kill Rating Begins at 1000, then i..." for (All players)
- Variable - Set Untitled Variable 002 = (Untitled Variable 002 + 50)
- General - If (Conditions) then do (Actions) else do (Actions)
- If
- G_D M_S/K Show Teams[G_Display Initializer] == True
- Then
- General - For each integer Untitled Variable 003 from 1 to G_D M_S/K Team Ammount with increment 1, do (Actions)
- Actions
- Dialog - Create a label for dialog (Last created dialog) with the dimensions (G_Display Name Width, 50) anchored to Top Left with an offset of (50, Untitled Variable 002) with the text ("Team " + (Text(Untitled Variable 003))) color set to White text writeout set to False with a writeout duration of 2.0
- Variable - Set G_D M_S/K Score Labels[(Untitled Variable 003 + 14)][1] = (Last created dialog item)
- Dialog - Create a label for dialog (Last created dialog) with the dimensions (75, 50) anchored to Top Left with an offset of ((G_Display Name Width + ((G_Display Width - (+ (G_Display Name Width, (G_D M_S/K Field Size * 2)))) / 2)), Untitled Variable 002) with the text (Combine ((Text(G_D M_S/K Scores and stats[(Untitled Variable 003 + 14)][1])), "/", (Text(G_D M_S/K Scores and stats[(Untitled Variable 003 + 14)][2])), "/", (Text(G_D M_S/K Scores and stats[(Untitled Variable 003 + 14)][3])))) color set to Gray text writeout set to False with a writeout duration of 2.0
- Variable - Set G_D M_S/K Score Labels[(Untitled Variable 003 + 14)][2] = (Last created dialog item)
- Dialog - Create a label for dialog (Last created dialog) with the dimensions (75, 50) anchored to Top Left with an offset of ((G_Display Name Width + (+ (G_D M_S/K Field Size, (G_Display Width - (+ (G_Display Name Width, (G_D M_S/K Field Size * 2), ((G_Display Width - (+ (G_Display Name Width, (G_D M_S/K Field Size * 2)))) / 4))))))), Untitled Variable 002) with the text (Text(G_D M_S/K Scores and stats[(Untitled Variable 003 + 14)][0])) color set to Gray text writeout set to False with a writeout duration of 2.0
- Variable - Set G_D M_S/K Score Labels[(Untitled Variable 003 + 14)][3] = (Last created dialog item)
- Variable - Set Untitled Variable 002 = (Untitled Variable 002 + 30)
- Player Group - Pick each player in (Players on team Untitled Variable 003) and do (Actions)
- Actions
- Dialog - Create a label for dialog (Last created dialog) with the dimensions (G_Display Name Width, 50) anchored to Top Left with an offset of (50, Untitled Variable 002) with the text (Name of player (Picked player)) color set to (Color((Current player (Picked player) color))) text writeout set to False with a writeout duration of 2.0
- Variable - Set G_D M_S/K Score Labels[(Picked player)][1] = (Last created dialog item)
- Dialog - Create a label for dialog (Last created dialog) with the dimensions (75, 50) anchored to Top Left with an offset of ((G_Display Name Width + ((G_Display Width - (+ (G_Display Name Width, (G_D M_S/K Field Size * 2)))) / 2)), Untitled Variable 002) with the text (Combine ((Text(G_D M_S/K Scores and stats[(Picked player)][1])), "/", (Text(G_D M_S/K Scores and stats[(Picked player)][2])), "/", (Text(G_D M_S/K Scores and stats[(Picked player)][3])))) color set to (Color((Current player (Picked player) color))) text writeout set to False with a writeout duration of 2.0
- Variable - Set G_D M_S/K Score Labels[(Picked player)][2] = (Last created dialog item)
- Dialog - Create a label for dialog (Last created dialog) with the dimensions (75, 50) anchored to Top Left with an offset of ((G_Display Name Width + (+ (G_D M_S/K Field Size, (G_Display Width - (+ (G_Display Name Width, (G_D M_S/K Field Size * 2), ((G_Display Width - (+ (G_Display Name Width, (G_D M_S/K Field Size * 2)))) / 4))))))), Untitled Variable 002) with the text (Text(G_D M_S/K Scores and stats[(Picked player)][4])) color set to (Color((Current player (Picked player) color))) text writeout set to False with a writeout duration of 2.0
- Variable - Set G_D M_S/K Score Labels[(Picked player)][3] = (Last created dialog item)
- Variable - Set Untitled Variable 002 = (Untitled Variable 002 + 30)
- Actions
- Variable - Set Untitled Variable 002 = (Untitled Variable 002 + 20)
- Actions
- General - For each integer Untitled Variable 003 from 1 to G_D M_S/K Team Ammount with increment 1, do (Actions)
- Else
- Player Group - Pick each player in (All players) and do (Actions)
- Actions
- Dialog - Create a label for dialog (Last created dialog) with the dimensions (G_Display Name Width, 50) anchored to Top Left with an offset of (50, Untitled Variable 002) with the text (Name of player (Picked player)) color set to (Color((Current player (Picked player) color))) text writeout set to False with a writeout duration of 2.0
- Variable - Set G_D M_S/K Score Labels[(Picked player)][1] = (Last created dialog item)
- Dialog - Create a label for dialog (Last created dialog) with the dimensions (75, 50) anchored to Top Left with an offset of ((G_Display Name Width + ((G_Display Width - (+ (G_Display Name Width, (G_D M_S/K Field Size * 2)))) / 2)), Untitled Variable 002) with the text (Combine ((Text(G_D M_S/K Scores and stats[(Picked player)][1])), "/", (Text(G_D M_S/K Scores and stats[(Picked player)][2])), "/", (Text(G_D M_S/K Scores and stats[(Picked player)][3])))) color set to (Color((Current player (Picked player) color))) text writeout set to False with a writeout duration of 2.0
- Variable - Set G_D M_S/K Score Labels[(Picked player)][2] = (Last created dialog item)
- Dialog - Create a label for dialog (Last created dialog) with the dimensions (75, 50) anchored to Top Left with an offset of ((G_Display Name Width + (+ (G_D M_S/K Field Size, (G_Display Width - (+ (G_Display Name Width, (G_D M_S/K Field Size * 2), ((G_Display Width - (+ (G_Display Name Width, (G_D M_S/K Field Size * 2)))) / 4))))))), Untitled Variable 002) with the text (Text(G_D M_S/K Scores and stats[(Picked player)][4])) color set to (Color((Current player (Picked player) color))) text writeout set to False with a writeout duration of 2.0
- Variable - Set G_D M_S/K Score Labels[(Picked player)][3] = (Last created dialog item)
- Variable - Set Untitled Variable 002 = (Untitled Variable 002 + 30)
- Actions
- Player Group - Pick each player in (All players) and do (Actions)
- If
Module Refresher Code:
Trigger:
- G_D M_S/K Window Refresher
- Events
- Unit - Any Unit dies
- Local Variables
- Integer Loop 1 = 0 <Integer>
- Untitled Variable 001 = 0 <Integer[15]>
- Untitled Variable 002 = 0.0 <Real>
- Untitled Variable 003 = 0 <Integer>
- Conditions
- ((Unit type of (Triggering unit)) is Hero) == True
- Actions
- Variable - Set G_D M_S/K Kill/Death Instances[(Owner of (Triggering unit))] = (G_D M_S/K Kill/Death Instances[(Owner of (Triggering unit))] + 1)
- Variable - Set G_D M_S/K Kill/Death Instances[(Owner of (Killing unit))] = (G_D M_S/K Kill/Death Instances[(Owner of (Killing unit))] + 1)
- Variable - Set Untitled Variable 002 = ((Real(G_D M_S/K Scores and stats[(Owner of (Triggering unit))][4])) / (Real(G_D M_S/K Scores and stats[(Owner of (Killing unit))][4])))
- Variable - Set G_D M_S/K Scores and stats[(Owner of (Triggering unit))][4] = (G_D M_S/K Scores and stats[(Owner of (Triggering unit))][4] - (Integer((50.0 + (* (Untitled Variable 002, ((Real(G_D M_S/K Kill/Death Instances[(Owner of (Triggering unit))])) ^ 0.5)))))))
- Dialog - Set G_D M_S/K Score Labels[(Owner of (Triggering unit))][3] text to (Text(G_D M_S/K Scores and stats[(Owner of (Triggering unit))][4])) for (Player group((Owner of (Triggering unit))))
- Bank - Store integer G_D M_S/K Scores and stats[(Owner of (Triggering unit))][4] as "Kill Rating" of section "Kill Rating" in bank G_D M_S/K Bank[(Owner of (Triggering unit))]
- Bank - Store integer G_D M_S/K Kill/Death Instances[(Owner of (Triggering unit))] as "Kill Rating Reduction Factor" of section "Kill Rating" in bank G_D M_S/K Bank[(Owner of (Triggering unit))]
- Bank - Save bank G_D M_S/K Bank[(Owner of (Triggering unit))]
- Variable - Set G_D M_S/K Scores and stats[(Owner of (Killing unit))][4] = (G_D M_S/K Scores and stats[(Owner of (Killing unit))][4] + (Integer((50.0 + (* (Untitled Variable 002, ((Real(G_D M_S/K Kill/Death Instances[(Owner of (Killing unit))])) ^ 0.5)))))))
- Dialog - Set G_D M_S/K Score Labels[(Owner of (Killing unit))][3] text to (Text(G_D M_S/K Scores and stats[(Owner of (Killing unit))][4])) for (Player group((Owner of (Killing unit))))
- Bank - Store integer G_D M_S/K Scores and stats[(Owner of (Killing unit))][4] as "Kill Rating" of section "Kill Rating" in bank G_D M_S/K Bank[(Owner of (Killing unit))]
- Bank - Store integer G_D M_S/K Kill/Death Instances[(Owner of (Killing unit))] as "Kill Rating Reduction Factor" of section "Kill Rating" in bank G_D M_S/K Bank[(Owner of (Killing unit))]
- Bank - Save bank G_D M_S/K Bank[(Owner of (Killing unit))]
- Variable - Set G_D M_S/K Scores and stats[(Owner of (Triggering unit))][2] = (G_D M_S/K Scores and stats[(Owner of (Triggering unit))][2] + 1)
- Dialog - Set G_D M_S/K Score Labels[(Owner of (Triggering unit))][2] text to (Combine ((Text(G_D M_S/K Scores and stats[(Owner of (Triggering unit))][1])), "/", (Text(G_D M_S/K Scores and stats[(Owner of (Triggering unit))][2])), "/", (Text(G_D M_S/K Scores and stats[(Owner of (Triggering unit))][3])))) for (All players)
- Dialog - Set G_D M_S/K Score Labels[(Owner of (Triggering unit))][3] text to (Text(G_D M_S/K Scores and stats[(Owner of (Triggering unit))][4])) for (All players)
- Variable - Set G_D M_S/K Scores and stats[(Owner of (Killing unit))][1] = (G_D M_S/K Scores and stats[(Owner of (Killing unit))][1] + 1)
- Dialog - Set G_D M_S/K Score Labels[(Owner of (Killing unit))][2] text to (Combine ((Text(G_D M_S/K Scores and stats[(Owner of (Killing unit))][1])), "/", (Text(G_D M_S/K Scores and stats[(Owner of (Killing unit))][2])), "/", (Text(G_D M_S/K Scores and stats[(Owner of (Killing unit))][3])))) for (All players)
- Dialog - Set G_D M_S/K Score Labels[(G_D M_S/K Team Int[(Owner of (Killing unit))] + 14)][3] text to (Text(G_D M_S/K Scores and stats[(G_D M_S/K Team Int[(Owner of (Killing unit))] + 14)][4])) for (All players)
- Variable - Set G_D M_S/K Scores and stats[(G_D M_S/K Team Int[(Owner of (Triggering unit))] + 14)][2] = (G_D M_S/K Scores and stats[(G_D M_S/K Team Int[(Owner of (Triggering unit))] + 14)][2] + 1)
- Dialog - Set G_D M_S/K Score Labels[(G_D M_S/K Team Int[(Owner of (Triggering unit))] + 14)][2] text to (Combine ((Text(G_D M_S/K Scores and stats[(G_D M_S/K Team Int[(Owner of (Triggering unit))] + 14)][1])), "/", (Text(G_D M_S/K Scores and stats[(G_D M_S/K Team Int[(Owner of (Triggering unit))] + 14)][2])), "/", (Text(G_D M_S/K Scores and stats[(G_D M_S/K for (All players)
- Dialog - Set G_D M_S/K Score Labels[(G_D M_S/K Team Int[(Owner of (Triggering unit))] + 14)][3] text to (Text(G_D M_S/K Scores and stats[(G_D M_S/K Team Int[(Owner of (Triggering unit))] + 14)][4])) for (All players)
- Variable - Set G_D M_S/K Scores and stats[(G_D M_S/K Team Int[(Owner of (Killing unit))] + 14)][1] = (G_D M_S/K Scores and stats[(G_D M_S/K Team Int[(Owner of (Killing unit))] + 14)][1] + 1)
- Dialog - Set G_D M_S/K Score Labels[(G_D M_S/K Team Int[(Owner of (Killing unit))] + 14)][2] text to (Combine ((Text(G_D M_S/K Scores and stats[(G_D M_S/K Team Int[(Owner of (Killing unit))] + 14)][1])), "/", (Text(G_D M_S/K Scores and stats[(G_D M_S/K Team Int[(Owner of (Killing unit))] + 14)][2])), "/", (Text(G_D M_S/K Scores and stats[(G_D M_S/K Team for (All players)
- Dialog - Set G_D M_S/K Score Labels[(Owner of (Killing unit))][3] text to (Text(G_D M_S/K Scores and stats[(Owner of (Killing unit))][4])) for (All players)
- Unit Group - Pick each unit in (Units in (Region((Position of (Triggering unit)), 9.0)) having alliance Ally Exclude Self with player (Owner of (Killing unit)) matching Required: Heroic; Excluded: Missile, with at most Any Amount) and do (Actions)
- Actions
- Variable - Set G_D M_S/K Kill/Death Instances[(Owner of (Picked unit))] = (G_D M_S/K Kill/Death Instances[(Owner of (Picked unit))] + 1)
- Variable - Set G_D M_S/K Scores and stats[(Owner of (Picked unit))][3] = (G_D M_S/K Scores and stats[(Owner of (Picked unit))][1] + 3)
- Variable - Set G_D M_S/K Scores and stats[(Owner of (Killing unit))][4] = (G_D M_S/K Scores and stats[(Owner of (Killing unit))][4] + (Integer((50.0 + (* (Untitled Variable 002, ((Real(G_D M_S/K Kill/Death Instances[(Owner of (Killing unit))])) ^ 0.5), 0.1))))))
- Dialog - Set G_D M_S/K Score Labels[(Picked player)][2] text to (Combine ((Text(G_D M_S/K Scores and stats[(Owner of (Picked unit))][1])), "/", (Text(G_D M_S/K Scores and stats[(Owner of (Picked unit))][2])), "/", (Text(G_D M_S/K Scores and stats[(Owner of (Picked unit))][3])))) for (All players)
- Dialog - Set G_D M_S/K Score Labels[(Picked player)][3] text to (Text(G_D M_S/K Scores and stats[(Owner of (Picked unit))][4])) for (All players)
- Dialog - Set G_D M_S/K Score Labels[(Owner of (Picked unit))][3] text to (Text(G_D M_S/K Scores and stats[(Owner of (Picked unit))][4])) for (Player group((Owner of (Picked unit))))
- Bank - Store integer G_D M_S/K Scores and stats[(Owner of (Picked unit))][4] as "Kill Rating" of section "Kill Rating" in bank G_D M_S/K Bank[(Owner of (Picked unit))]
- Bank - Store integer G_D M_S/K Kill/Death Instances[(Owner of (Picked unit))] as "Kill Rating Reduction Factor" of section "Kill Rating" in bank G_D M_S/K Bank[(Owner of (Picked unit))]
- Bank - Save bank G_D M_S/K Bank[(Picked player)]
- Actions
- General - For each integer Integer Loop 1 from 1 to 14 with increment 1, do (Actions)
- Actions
- Dialog - Set G_D M_S/K Score Labels[(Picked player)][2] text to (Combine ((Text(G_D M_S/K Scores and stats[(Owner of (Picked unit))][1])), "/", (Text(G_D M_S/K Scores and stats[(Owner of (Picked unit))][2])), "/", (Text(G_D M_S/K Scores and stats[(Owner of (Picked unit))][3])))) for (All players)
- Player Group - Pick each player in (Players on team Integer Loop 1) and do (Actions)
- Actions
- Variable - Set G_D M_S/K Team Int[(Picked player)] = Integer Loop 1
- Variable - Set Untitled Variable 001[G_D M_S/K Team Int[(Picked player)]] = (G_D M_S/K Scores and stats[(Picked player)][4] + Untitled Variable 001[G_D M_S/K Team Int[(Picked player)]])
- Actions
- Variable - Set G_D M_S/K Scores and stats[(Integer Loop 1 + 14)][4] = (Untitled Variable 001[Integer Loop 1] / (Number of players in (Players on team Integer Loop 1)))
- Dialog - Set G_D M_S/K Score Labels[(Integer Loop 1 + 14)][4] text to (Text(G_D M_S/K Scores and stats[(Integer Loop 1 + 14)][4])) for (All players)
- Actions
- Events
Copy and paste to Core Initialization Trigger:
Trigger:
- G_D M_S/K Initialization Actions Score/Kills
- Events
- Local Variables
- Integer Loop 1 = 0 <Integer>
- Untitled Variable 001 = 0 <Integer[15]>
- Conditions
- Actions
- ------- These go in the G_Display System Init Trigger where it says to paste it.
- Data Table - Save G_D M_S/K Score Window Initialization as ("G_D Mod ID " + (String(G_D M_S/K ID Number))) in the Global data table
- Player Group - Pick each player in (All players) and do (Actions)
- Actions
- General - If (Conditions) then do (Actions) else do (Actions)
- If
- (Bank "G_D M_S/K" exists for player (Picked player)) == True
- Then
- Bank - Preload and synchronize bank "G_D M_S/K" for player (Picked player)
- Variable - Set G_D M_S/K Bank[(Picked player)] = (Last opened bank)
- Variable - Set G_D M_S/K Scores and stats[(Picked player)][4] = (Load "Kill Rating" of section "Kill Rating" from bank (Last opened bank) as integer value)
- Variable - Set G_D M_S/K Kill/Death Instances[(Picked player)] = (Load "Kill Rating Reduction Factor" of section "Kill Rating" from bank (Last opened bank) as integer value)
- Else
- Bank - Open bank "G_D M_S/K" for player (Picked player)
- Variable - Set G_D M_S/K Bank[(Picked player)] = (Last opened bank)
- Variable - Set G_D M_S/K Scores and stats[(Picked player)][4] = 1000
- Variable - Set G_D M_S/K Kill/Death Instances[(Picked player)] = 0
- Bank - Store integer G_D M_S/K Scores and stats[(Picked player)][4] as "Kill Rating" of section "Kill Rating" in bank G_D M_S/K Bank[0]
- Bank - Store integer G_D M_S/K Kill/Death Instances[(Picked player)] as "Kill Rating Reduction Factor" of section "Kill Rating" in bank G_D M_S/K Bank[0]
- Bank - Save bank G_D M_S/K Bank[(Picked player)]
- If
- General - If (Conditions) then do (Actions) else do (Actions)
- Actions
- General - For each integer Integer Loop 1 from 1 to 14 with increment 1, do (Actions)
- Actions
- Player Group - Pick each player in (Players on team Integer Loop 1) and do (Actions)
- Actions
- Variable - Set G_D M_S/K Team Int[(Picked player)] = Integer Loop 1
- Variable - Set Untitled Variable 001[G_D M_S/K Team Int[(Picked player)]] = (G_D M_S/K Scores and stats[(Picked player)][4] + Untitled Variable 001[G_D M_S/K Team Int[(Picked player)]])
- Actions
- Variable - Set G_D M_S/K Scores and stats[(Integer Loop 1 + 14)][4] = (Untitled Variable 001[Integer Loop 1] / (Number of players in (Players on team Integer Loop 1)))
- Player Group - Pick each player in (Players on team Integer Loop 1) and do (Actions)
- Actions
- ------- These go in the G_Display System Init Trigger where it says to paste it.
Mod Download:
View attachment G_Display Score-Kills Mod.SC2Map
All Downloads again:
Core: View attachment G_Display Core.SC2Map
Mod: View attachment G_Display Score-Kills Mod.SC2Map
Demonstration Map: View attachment G_Display Demonstration.SC2Map