• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] [GUI] Votekick System

Status
Not open for further replies.
Level 9
Joined
Aug 27, 2009
Messages
473
So guys, I've created a new more flexible Votekick System in GUI.
I just want you guys to have a look at it before I replace it with the old one..
Before you mention; Many ITE, I know.

Can you see any flaws?
Any feedback & ideas will be considered.
Thanks


  • VKSetup
    • Events
      • Map initialization
    • Conditions
    • Actions
      • -------- Set False to turn off the Votekick System --------
      • Set VKCheck = True
      • -------- - - - --------
      • -------- - - - - - - - - - - - - - - - - - - --------
      • -------- - - - --------
      • -------- Votekick Session Time --------
      • -------- The duration allowing players to kick the "victim" --------
      • -------- Standard: 45 --------
      • Set VKSetup[0] = 45
      • -------- - - - --------
      • -------- - - - - - - - - - - - - - - - - - - --------
      • -------- - - - --------
      • -------- Votekick Text Time --------
      • -------- The time the text should display on the screen --------
      • -------- Standard: 15 --------
      • Set VKSetup[1] = 15
      • -------- - - - --------
      • -------- - - - - - - - - - - - - - - - - - - --------
      • -------- - - - --------
      • -------- Votekick All / Allies / Enemies --------
      • -------- Allows you kick players depending on force --------
      • -------- 0 : You can kick everyone --------
      • -------- 1 : You can kick allies only --------
      • -------- 2 or greater : You can kick enemies only --------
      • -------- Standard: 0 --------
      • Set VKSetup[2] = 0
      • -------- - - - --------
      • -------- - - - - - - - - - - - - - - - - - - --------
      • -------- - - - --------
      • -------- Show Timer Window --------
      • -------- Show the countdown of the "Votekick Session Time" --------
      • -------- 0 : Don't show Timer Window --------
      • -------- 1 or greater : Show Timer Window --------
      • -------- Standard: 1 --------
      • Set VKSetup[3] = 1
      • -------- - - - --------
      • -------- - - - - - - - - - - - - - - - - - - --------
      • -------- - - - --------
      • -------- Show Messages --------
      • -------- This can enable / disable all text displayed by the system --------
      • -------- 0 : Disable Messages --------
      • -------- 1 or greater : Enable Messages --------
      • -------- Standard: 1 --------
      • Set VKSetup[4] = 1
      • -------- - - - --------
      • -------- - - - - - - - - - - - - - - - - - - --------
      • -------- - - - --------
      • -------- Kick Requirements --------
      • -------- "Yes Votes" has to be higher then or equal to "No Votes" + "Kick Requirements" to preform the kick --------
      • -------- Example 1 : Kick Requirements = 1 | Yes = 2 | No = 1 | Kick = YES --------
      • -------- Example 2 : Kick Requirements = 2 | Yes = 2 | No = 1 | Kick = NO --------
      • -------- Example 3 : Kick Requirements = 1 | Yes = 2 | No = 2 | Kick = NO --------
      • -------- Example 4 : Kick Requirements = 5 | Yes = 4 | No = 0 | Kick = NO --------
      • -------- Standard: 1 --------
      • Set VKSetup[5] = 1
      • -------- - - - --------
      • -------- - - - - - - - - - - - - - - - - - - --------
      • -------- - - - --------
      • -------- Secret Voting / Multiboard --------
      • -------- 0 : Multiboard will not be displayed; Amount of votes will not be revealed before the end of the votekick session --------
      • -------- 1 or greater : Multiboard will be displayed; Amount of votes will be revealed trough the votekick session --------
      • -------- Standard: 1 --------
      • Set VKSetup[6] = 1
      • -------- - - - --------
      • -------- - - - - - - - - - - - - - - - - - - --------
      • -------- - - - --------
      • -------- Force Kick --------
      • -------- The Player #Number that can force / instant kick other players, without checking the conditions --------
      • -------- Example 1 : Force Kick = 1 | Player 1 can preform Force Kick --------
      • -------- Example 2 : Force Kick = 11 | Player 11 can preform Force Kick --------
      • -------- Example 3 : Force Kick = 0 | Nobody can preform Force Kick --------
      • -------- Standard: 0 --------
      • Set VKSetup[7] = 0
      • -------- - - - --------
      • -------- - - - - - - - - - - - - - - - - - - --------
      • -------- - - - --------
      • -------- Abort / Stop / Cancel --------
      • -------- The Player #Number that can use the -stop / -abort / -cancel commands to abort the current votekick session --------
      • -------- Example 1 : Abort / Stop / Cancel = 1 | Player 1 can preform votekick Aborts --------
      • -------- Example 2 : Abort / Stop / Cancel = 11 | Player 11 can preform votekick Aborts --------
      • -------- Example 3 : Abort / Stop / Cancel = 0 | Nobody can preform votekick Aborts --------
      • -------- Standard: 1 (Player #1) --------
      • Set VKSetup[8] = 1
      • -------- - - - --------
      • -------- - - - - - - - - - - - - - - - - - - --------
      • -------- - - - --------
      • -------- Anonymous Voting --------
      • -------- 0 : The votes will only be revealed to players that can read your text message --------
      • -------- 1 or greater : The votes will be revealed to everyone --------
      • -------- Standard: 1 --------
      • Set VKSetup[9] = 1
      • -------- - - - --------
      • -------- - - - - - - - - - - - - - - - - - - --------
      • -------- - - - --------
      • -------- Playing Players --------
      • -------- The number of players starting from 1 to chosen number that can be kicked --------
      • -------- Example 1 : You got all 12 slots in use | Player 6 & 12 is computers | You don't want to kick those computers | Set Playing Players = 11 and Unkickable Players = 6 --------
      • -------- Max Limit: 12 --------
      • -------- Standard: 8 (8 Players) --------
      • Set VKSetup[10] = 8
      • -------- - - - --------
      • -------- - - - - - - - - - - - - - - - - - - --------
      • -------- - - - --------
      • -------- Unkickable Players --------
      • -------- Allow you to make player # 1-9 unkickable --------
      • -------- Example 1 : You got all 12 slots in use | Player 6 & 12 is computers | You don't want to kick those computers | Set Playing Players = 11 and Unkickable Players = 6 --------
      • -------- Max Length: 9 --------
      • -------- Standard: 1458 (Player #1, Player #4, Player #5 and Player #8) --------
      • Set VKSetup[11] = 1458
      • -------- - - - --------
      • -------- - - - - - - - - - - - - - - - - - - --------
      • -------- - - - --------
      • -------- Kicked Players Units --------
      • -------- 0 : Keep all units owned by kicked players --------
      • -------- 1 or greater : Remove all units owned by kicked players --------
      • -------- Standard: 1 --------
      • Set VKSetup[12] = 1
      • -------- - - - --------
      • -------- - - - - - - - - - - - - - - - - - - --------
      • -------- - - - --------
      • -------- Other Commands --------
      • -------- This displays a message that the entered command was invaild --------
      • -------- 0 : Does not display the error message --------
      • -------- 1 or greater : Display the error message --------
      • -------- NOTE: If you have other commands starting on "-" set this to "0" --------
      • -------- Standard: 1 --------
      • Set VKSetup[13] = 1
      • -------- - - - --------
      • -------- - - - - - - - - - - - - - - - - - - --------
      • -------- - - - --------
      • -------- Player Votes --------
      • -------- The amount of votes every player can use during each votekick session --------
      • -------- Standard: 1 --------
      • Set VKSetup[14] = 1



  • VKCommands
    • Events
      • Player - Player 1 (Red) types a chat message containing - as A substring
      • Player - Player 2 (Blue) types a chat message containing - as A substring
      • Player - Player 3 (Teal) types a chat message containing - as A substring
      • Player - Player 4 (Purple) types a chat message containing - as A substring
      • Player - Player 5 (Yellow) types a chat message containing - as A substring
      • Player - Player 6 (Orange) types a chat message containing - as A substring
      • Player - Player 7 (Green) types a chat message containing - as A substring
      • Player - Player 8 (Pink) types a chat message containing - as A substring
      • Player - Player 9 (Gray) types a chat message containing - as A substring
      • Player - Player 10 (Light Blue) types a chat message containing - as A substring
      • Player - Player 11 (Dark Green) types a chat message containing - as A substring
      • Player - Player 12 (Brown) types a chat message containing - as A substring
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • VKCheck Equal to True
          • (Substring((Entered chat string), 2, 6)) Equal to kick
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Or - Any (Conditions) are true
                • Conditions
                  • (Substring((Entered chat string), 7, 9)) Equal to (String((Player number of (Triggering player))))
                  • (Substring((Entered chat string), 7, 22)) Equal to (Name of (Triggering player))
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • VKSetup[4] Greater than or equal to 1
                • Then - Actions
                  • Set TempForce = (Player group((Triggering player)))
                  • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: |cffffff00You can't...
                  • Custom script: call DestroyForce(udg_TempForce)
                • Else - Actions
              • Skip remaining actions
            • Else - Actions
          • For each (Integer A) from 1 to VKSetup[10], do (Actions)
            • Loop - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • VKSetup[7] Equal to (Player number of (Triggering player))
                • Then - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • ((Player((Integer A))) slot status) Equal to Is playing
                      • Or - Any (Conditions) are true
                        • Conditions
                          • (Substring((Entered chat string), 7, 22)) Equal to (Name of (Player((Integer A))))
                          • (Substring((Entered chat string), 7, 9)) Equal to (String((Integer A)))
                    • Then - Actions
                      • Game - Defeat (Player((Integer A))) with the message: You got kicked!
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • VKSetup[4] Greater than or equal to 1
                        • Then - Actions
                          • Set TempForce = (All players controlled by a User player)
                          • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: (|cffffff00The player|r + ((Name of (Player((Integer A)))) + |cffffff00has been kicked.|r))
                          • Custom script: call DestroyForce(udg_TempForce)
                        • Else - Actions
                      • Skip remaining actions
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (Integer A) Equal to VKSetup[10]
                        • Then - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • VKSetup[4] Greater than or equal to 1
                            • Then - Actions
                              • Set TempForce = (Player group((Triggering player)))
                              • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: |cffffff00Requested...
                              • Custom script: call DestroyForce(udg_TempForce)
                            • Else - Actions
                          • Skip remaining actions
                        • Else - Actions
                • Else - Actions
                  • If (VKSetup[2] Equal to 0) then do (Set VKAble = True) else do (If (VKSetup[2] Equal to 1) then do (Set VKAble = ((Triggering player) is an ally of (Player((Integer A))))) else do (Set VKAble = ((Triggering player) is an enemy of (Player((Integer A))))))
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • VKAble Equal to True
                      • (Integer A) Not equal to (Integer((Substring((String(VKSetup[11])), 1, 1))))
                      • (Integer A) Not equal to (Integer((Substring((String(VKSetup[11])), 2, 2))))
                      • (Integer A) Not equal to (Integer((Substring((String(VKSetup[11])), 3, 3))))
                      • (Integer A) Not equal to (Integer((Substring((String(VKSetup[11])), 4, 4))))
                      • (Integer A) Not equal to (Integer((Substring((String(VKSetup[11])), 5, 5))))
                      • (Integer A) Not equal to (Integer((Substring((String(VKSetup[11])), 6, 6))))
                      • (Integer A) Not equal to (Integer((Substring((String(VKSetup[11])), 7, 7))))
                      • (Integer A) Not equal to (Integer((Substring((String(VKSetup[11])), 8, 8))))
                      • (Integer A) Not equal to (Integer((Substring((String(VKSetup[11])), 9, 9))))
                      • ((Player((Integer A))) slot status) Equal to Is playing
                      • Or - Any (Conditions) are true
                        • Conditions
                          • (Substring((Entered chat string), 7, 22)) Equal to (Name of (Player((Integer A))))
                          • (Substring((Entered chat string), 7, 9)) Equal to (String((Integer A)))
                    • Then - Actions
                      • Set VKCheck = False
                      • Set VKPlayers[0] = (Triggering player)
                      • Set VKPlayers[1] = (Player((Integer A)))
                      • Set VKVotes[0] = VKSetup[14]
                      • Set VKVotes[1] = 0
                      • Set VKVoted[(Player number of (Triggering player))] = VKSetup[14]
                      • Set VKVoted[(Integer A)] = (VKSetup[14] + 1)
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • VKSetup[6] Greater than or equal to 1
                        • Then - Actions
                          • Multiboard - Create a multiboard with 1 columns and 2 rows, titled (Kick player: + (Name of VKPlayers[1]))
                          • Set VKMultiBoard = (Last created multiboard)
                          • -------- Row 1 --------
                          • Multiboard - Set the display style for VKMultiBoard item in column 1, row 1 to Show text and Hide icons
                          • Multiboard - Set the text for VKMultiBoard item in column 1, row 1 to |cff00ff00Yes|r: 1
                          • -------- Row 2 --------
                          • Multiboard - Set the display style for VKMultiBoard item in column 1, row 2 to Show text and Hide icons
                          • Multiboard - Set the text for VKMultiBoard item in column 1, row 2 to |cffff0000No|r: 0
                        • Else - Actions
                      • Countdown Timer - Start VKTime as a One-shot timer that will expire in (Real(VKSetup[0])) seconds
                      • Set VKTime = (Last started timer)
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • VKSetup[3] Greater than or equal to 1
                        • Then - Actions
                          • Countdown Timer - Create a timer window for VKTime with title (Kick + ((Name of VKPlayers[1]) + :))
                          • Set VKTimeWindow = (Last created timer window)
                        • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • VKSetup[4] Greater than or equal to 1
                        • Then - Actions
                          • Set TempForce = (All players controlled by a User player)
                          • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: (|cffffff00Player|r + ((Name of (Triggering player)) + ( |cffffff00has started a vote kick on player|r + ((Name of VKPlayers[1]) + .))))
                          • Custom script: call DestroyForce(udg_TempForce)
                        • Else - Actions
                      • Skip remaining actions
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (Integer A) Equal to VKSetup[10]
                        • Then - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • VKSetup[4] Greater than or equal to 1
                            • Then - Actions
                              • Set TempForce = (Player group((Triggering player)))
                              • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: |cffffff00Requested...
                              • Custom script: call DestroyForce(udg_TempForce)
                            • Else - Actions
                          • Skip remaining actions
                        • Else - Actions
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Triggering player) Equal to (Player(VKSetup[8]))
              • VKCheck Equal to False
              • Or - Any (Conditions) are true
                • Conditions
                  • (Substring((Entered chat string), 2, 5)) Equal to stop
                  • (Substring((Entered chat string), 2, 6)) Equal to abort
                  • (Substring((Entered chat string), 2, 7)) Equal to cancel
            • Then - Actions
              • Countdown Timer - Pause VKTime
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • VKSetup[3] Greater than or equal to 1
                • Then - Actions
                  • Countdown Timer - Destroy VKTimeWindow
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • VKSetup[6] Greater than or equal to 1
                • Then - Actions
                  • Multiboard - Destroy VKMultiBoard
                • Else - Actions
              • Set VKCheck = True
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • VKSetup[4] Greater than or equal to 1
                • Then - Actions
                  • Set TempForce = (All players controlled by a User player)
                  • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: |cffffff00The votek...
                  • Custom script: call DestroyForce(udg_TempForce)
                • Else - Actions
              • Skip remaining actions
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Or - Any (Conditions) are true
                    • Conditions
                      • (Substring((Entered chat string), 2, 5)) Equal to stop
                      • (Substring((Entered chat string), 2, 6)) Equal to abort
                      • (Substring((Entered chat string), 2, 7)) Equal to cancel
                • Then - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Triggering player) Equal to (Player(VKSetup[8]))
                    • Then - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • VKSetup[4] Greater than or equal to 1
                        • Then - Actions
                          • Set TempForce = (Player group((Triggering player)))
                          • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: |cffffff00No voteki...
                          • Custom script: call DestroyForce(udg_TempForce)
                        • Else - Actions
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • VKSetup[4] Greater than or equal to 1
                        • Then - Actions
                          • Set TempForce = (Player group((Triggering player)))
                          • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: |cffffff00You can't...
                          • Custom script: call DestroyForce(udg_TempForce)
                        • Else - Actions
                  • Skip remaining actions
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • VKCheck Equal to False
                      • (Substring((Entered chat string), 2, 4)) Equal to yes
                      • VKVoted[(Player number of (Triggering player))] Less than VKSetup[14]
                    • Then - Actions
                      • Set VKVotes[0] = (VKVotes[0] + 1)
                      • Set VKVoted[(Player number of (Triggering player))] = (VKVoted[(Player number of (Triggering player))] + 1)
                      • If (VKSetup[6] Greater than or equal to 1) then do (Multiboard - Create a multiboard with 1 columns and 1 rows, titled (|cff00ff00Yes|r: + (String(VKVotes[0])))) else do (Do nothing)
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • VKSetup[4] Greater than or equal to 1
                        • Then - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • VKSetup[9] Greater than or equal to 1
                            • Then - Actions
                              • Set TempForce = (All players controlled by a User player)
                              • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: (|cffffff00Player|r + ((Name of (Triggering player)) + |cffffff00has voted:|r |cff00ff00Yes|r))
                            • Else - Actions
                          • Set TempForce = (Player group((Triggering player)))
                          • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: |cffffff00Your vote...
                          • Custom script: call DestroyForce(udg_TempForce)
                        • Else - Actions
                      • Skip remaining actions
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • VKCheck Equal to False
                          • (Substring((Entered chat string), 2, 3)) Equal to no
                          • VKVoted[(Player number of (Triggering player))] Less than VKSetup[14]
                        • Then - Actions
                          • Set VKVotes[1] = (VKVotes[1] + 1)
                          • Set VKVoted[(Player number of (Triggering player))] = (VKVoted[(Player number of (Triggering player))] + 1)
                          • If (VKSetup[6] Greater than or equal to 1) then do (Multiboard - Create a multiboard with 1 columns and 2 rows, titled (|cffff0000No|r: + (String(VKVotes[1])))) else do (Do nothing)
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • VKSetup[4] Greater than or equal to 1
                            • Then - Actions
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • If - Conditions
                                  • VKSetup[9] Greater than or equal to 1
                                • Then - Actions
                                  • Set TempForce = (All players controlled by a User player)
                                  • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: (|cffffff00Player|r + ((Name of (Triggering player)) + |cffffff00has voted:|r |cffff0000No|r))
                                • Else - Actions
                              • Set TempForce = (Player group((Triggering player)))
                              • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: |cffffff00Your vote...
                              • Custom script: call DestroyForce(udg_TempForce)
                            • Else - Actions
                          • Skip remaining actions
                        • Else - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • Or - Any (Conditions) are true
                                • Conditions
                                  • (Substring((Entered chat string), 2, 4)) Equal to yes
                                  • (Substring((Entered chat string), 2, 3)) Equal to no
                            • Then - Actions
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • If - Conditions
                                  • VKCheck Equal to False
                                • Then - Actions
                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • If - Conditions
                                      • VKVoted[(Player number of (Triggering player))] Equal to VKSetup[14]
                                    • Then - Actions
                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                        • If - Conditions
                                          • VKSetup[4] Greater than or equal to 1
                                        • Then - Actions
                                          • Set TempForce = (Player group((Triggering player)))
                                          • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: |cffffff00You've us...
                                          • Custom script: call DestroyForce(udg_TempForce)
                                        • Else - Actions
                                    • Else - Actions
                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                        • If - Conditions
                                          • VKSetup[4] Greater than or equal to 1
                                        • Then - Actions
                                          • Set TempForce = (Player group((Triggering player)))
                                          • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: |cffffff00You can't...
                                          • Custom script: call DestroyForce(udg_TempForce)
                                        • Else - Actions
                                • Else - Actions
                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • If - Conditions
                                      • VKSetup[4] Greater than or equal to 1
                                    • Then - Actions
                                      • Set TempForce = (Player group((Triggering player)))
                                      • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: |cffffff00You can't...
                                      • Custom script: call DestroyForce(udg_TempForce)
                                    • Else - Actions
                              • Skip remaining actions
                            • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • VKSetup[4] Greater than or equal to 1
          • (Substring((Entered chat string), 2, 6)) Equal to kick
          • VKCheck Equal to False
        • Then - Actions
          • Set TempForce = (Player group((Triggering player)))
          • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: |cffffff00You can't...
          • Custom script: call DestroyForce(udg_TempForce)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • VKSetup[4] Greater than or equal to 1
              • VKSetup[13] Greater than or equal to 1
            • Then - Actions
              • Set TempForce = (Player group((Triggering player)))
              • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: |cffffff00You can't...
              • Custom script: call DestroyForce(udg_TempForce)
            • Else - Actions



  • VKEndKick
    • Events
      • Time - VKTime expires
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 12, do (Set VKVoted[(Integer A)] = 0)
      • If (VKSetup[3] Greater than or equal to 1) then do (Countdown Timer - Destroy VKTimeWindow) else do (Do nothing)
      • If (VKSetup[6] Greater than or equal to 1) then do (Multiboard - Destroy VKMultiBoard) else do (Do nothing)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • VKVotes[0] Greater than or equal to (VKVotes[1] + VKSetup[5])
        • Then - Actions
          • Game - Defeat VKPlayers[1] with the message: You got kicked!
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • VKSetup[12] Greater than or equal to 1
            • Then - Actions
              • Set TempGroup = (Units owned by VKPlayers[1])
              • Unit Group - Pick every unit in TempGroup and do (Unit - Remove (Picked unit) from the game)
              • Custom script: call DestroyGroup(udg_TempGroup)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • VKSetup[4] Greater than or equal to 1
            • Then - Actions
              • Set TempForce = (All players controlled by a User player)
              • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: (|cffffff00The player|r + ((Name of VKPlayers[1]) + |cffffff00has been kicked.|r))
              • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: (|cff00ff00Yes|r: + (((String(VKVotes[0])) + | ) + (|cffff0000No|r: + ((String(VKVotes[1])) + ( + + (String(VKSetup[5])))))))
              • Custom script: call DestroyForce(udg_TempForce)
            • Else - Actions
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • VKSetup[4] Greater than or equal to 1
            • Then - Actions
              • Set TempForce = (All players controlled by a User player)
              • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: (|cffffff00The player|r + ((Name of VKPlayers[1]) + |cffffff00was not kicked.|r))
              • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: (|cff00ff00Yes|r: + (((String(VKVotes[0])) + | ) + (|cffff0000No|r: + ((String(VKVotes[1])) + ( + + (String(VKSetup[5])))))))
              • Custom script: call DestroyForce(udg_TempForce)
            • Else - Actions
      • Set VKCheck = True


Sorry about this: http://www.hiveworkshop.com/forums/world-editor-help-zone-98/gui-votekick-system-178995/ it was really not on purpose.
 
Last edited:
Level 9
Joined
Aug 27, 2009
Messages
473
Wow, so many Trigger Comments in VKSetup!!!
Anyways, you can remove all the events in VKCommands, and add:
For Each Integer A From 1 -12 Do:
Add Player (Integer A) types a chat message containing - as A substring to VKCommands


This uses the same events, all in one action.

Or For Each Integer A From 1 - VKSetup[10].. ;)
But why should I do that, when I can add it manualy without any extra CPU.. :p

looks very good ^^

Thank you very much! :)

EDIT: Added some new features to the VKCommand
- Kicked player ("Victim") can't vote on his / her own votekick session; This also got it's own error message.
- Player starting the votekick will now use all his / her votes when the command is used, not just 1.

I think those are a bit important, so I added that.. :)

EDIT 2: I would love to see a simple selution for color based kicking.. You can kick by Player #ID and Player Name.. Would be cool if someone could help me with Player Color too.. (I'm sure this require Jass / vJass, right?)
 
Level 9
Joined
Aug 27, 2009
Messages
473
Well, you don't have to change it now that you've already set it up, but in the future, if you want MPI(multi-player) events, you can use my actions for quicker editing.

I know, but it's actually stupid when you can add the events manually.. If you want to add events to certain units not in the map from game start, then the add event action is good.

Thanks for your feedbak anyway. :goblin_good_job:
 
Status
Not open for further replies.
Top