System Vote Kick System

simonake

New Member
Reaction score
72
Simonake

Presents Vote Kick System 1.2

FAQ

The system is designed to add justice to your games. For example, if some one is killing his/her allys or doing anything wrong, red, can send an attempt to kick the player by his/her color. Here comes the beauty of a vote system, it's not because red hates someone that he will get kick. The vote needed are the total number of players less one because a "Bser" would obiously vote -no It can last a maximun of 45 seconds. If after 45 seconds the number of vote is not enuf high, the request will fail. When a player types -yes, the vote number is increased. When a player type -no, the vote number is decreased. (Only red can call a kick)

GUI Triggers.
Command are -ok and - no
To call the request it's -kick (color)
System disigned for 12 players.

Version 1.0
Version 1.1(Minor Changes)
Version 1.2(Minor Changes)

Triggers
Here are the triggers (5). I strongly suggest you download the map and copy triggers instead of re-doing it at all.

Trigger:
  • Map initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set PlayerColor[1] = -kick red
      • Set PlayerColor[2] = -kick blue
      • Set PlayerColor[3] = -kick teal
      • Set PlayerColor[4] = -kick purple
      • Set PlayerColor[5] = -kick yellow
      • Set PlayerColor[6] = -kick orange
      • Set PlayerColor[7] = -kick green
      • Set PlayerColor[8] = -kick pink
      • Set PlayerColor[9] = -kick gray
      • Set PlayerColor[10] = -kick light blue
      • Set PlayerColor[11] = -kick dark green
      • Set PlayerColor[12] = -kick brown

Trigger:
  • Start the Vote
    • Events
      • Player - Player 1 (Red) types a chat message containing < > as a Substring
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Entered chat string) Equal to_PlayerColor[1]
          • (Entered chat string) Equal to PlayerColor[2]
          • (Entered chat string) Equal to PlayerColor[3]
          • (Entered chat string) Equal to PlayerColor[4]
          • (Entered chat string) Equal to PlayerColor[5]
          • (Entered chat string) Equal to PlayerColor[6]
          • (Entered chat string) Equal to PlayerColor[7]
          • (Entered chat string) Equal to PlayerColor[8]
          • (Entered chat string) Equal to PlayerColor[9]
          • (Entered chat string) Equal to PlayerColor[10]
          • (Entered chat string) Equal to PlayerColor[11]
          • (Entered chat string) Equal to PlayerColor[12]
    • Actions
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Entered chat string) Equal to PlayerColor[(Integer A)]
            • Then - Actions
              • Set PlayerToKick = (Player((Integer A)))
              • Game - Display to (All players) for 45.00 seconds the text: (A request to kick + ((Name of PlayerToKick) + has been sent. To kick him type -ok, to refuse the kick type -no))
              • Countdown timer - Start Timer as a Un coup timer that will expire in 45.00 seconds
              • Countdown timer - Create a timer window for Timer with title (Player to kick: + (Name of (Player((Integer A)))))
              • Set Timer = (Last started timer)
              • Set TimerWindow = (Last created timer window)
              • Set TotalVotes = (Number of players in (All players controlled by a User player))
              • Set VotesToReach = (TotalVotes - 1)
              • Set VotesReached = 0
              • Trigger - Turn off (This trigger)
              • Trigger - Turn on Voting NO <gen>
              • Trigger - Turn on Voting yes <gen>
            • Else - Actions
          • Set PlayerVote[(Integer A)] = TRUE

Trigger:
  • Voting yes
    • Events
      • Player - Player 1 (Red) types a chat message containing -ok as Equivalent Result
      • Player - Player 2 (Blue) types a chat message containing -ok as Equivalent Result
      • Player - Player 3 (Teal) types a chat message containing -ok as Equivalent Result
      • Player - Player 4 (Purple) types a chat message containing -ok as Equivalent Result
      • Player - Player 5 (Yellow) types a chat message containing -ok as Equivalent Result
      • Player - Player 6 (Orange) types a chat message containing -ok as Equivalent Result
      • Player - Player 7 (Green) types a chat message containing -ok as Equivalent Result
      • Player - Player 8 (Pink) types a chat message containing -ok as Equivalent Result
      • Player - Player 9 (Gray) types a chat message containing -ok as Equivalent Result
      • Player - Player 10 (Light Blue) types a chat message containing -ok as Equivalent Result
      • Player - Player 11 (Dark Green) types a chat message containing -ok as Equivalent Result
      • Player - Player 12 (Brown) types a chat message containing -ok as Equivalent Result
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • PlayerVote[(Player number of (Triggering player))] Equal to TRUE
        • Then - Actions
          • Set VotesReached = (VotesReached + 1)
          • Set PlayerVote[(Player number of (Triggering player))] = FALSE
          • Game - Display to (All players) the text: ((( + (String(VotesReached))) + (/ + ((String(VotesToReach)) + ))))
        • Else - Actions
          • Game - Display to (Player group((Triggering player))) the text: Don't try to vote a...
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • VotesReached Greater Than of Equal to VotesToReach
        • Then - Actions
          • Trigger - Turn off (This trigger)
          • Trigger - Turn off Voting NO <gen>
          • Game - Defeat PlayerToKick with the message: YOU HAVE BEN KICKED!
          • Trigger - Turn on Start the Vote <gen>
          • Game - Display to (All players) the text: ((Name of PlayerToKick) + has been kicked.)
          • Countdown timer - Destroy TimerWindow
          • Trigger- Turn on Start the Vote <gen>
        • Else - Actions

Trigger:
  • Voting NO
    • Events
      • Player - Player 1 (Red) types a chat message containing -no as Equivalent Result
      • Player - Player 2 (Blue) types a chat message containing -no as Equivalent Result
      • Player - Player 3 (Teal) types a chat message containing -no as Equivalent Result
      • Player - Player 4 (Purple) types a chat message containing -no as Equivalent Result
      • Player - Player 5 (Yellow) types a chat message containing -no as Equivalent Result
      • Player - Player 6 (Orange) types a chat message containing -no as Equivalent Result
      • Player - Player 7 (Green) types a chat message containing -no as Equivalent Result
      • Player - Player 8 (Pink) types a chat message containing -no as Equivalent Result
      • Player - Player 9 (Gray) types a chat message containing -no as Equivalent Result
      • Player - Player 10 (Light Blue) types a chat message containing -no as Equivalent Result
      • Player - Player 11 (Dark Green) types a chat message containing -no as Equivalent Result
      • Player - Player 12 (Brown) types a chat message containing -no as Equivalent Result
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • PlayerVote[(Player number of (Triggering player))] Equal to TRUE
        • Then - Actions
          • Set VotesReached = (VotesReached - 1)
          • Set PlayerVote[(Player number of (Triggering player))] = FALSE
          • Game - Display to (All players) the text: ((( + (String(VotesReached))) + (/ + ((String(VotesToReach)) + ))))
        • Else - Actions

Trigger:
  • Timer Expires
    • Events
      • Time - Timer expires
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • VotesReached Greater Than or Equal to VotesToReach
        • Then - Actions
          • Then - Defeat PlayerToKick with the message: YOU HAVE BEN KICKED!
          • Trigger - Turn on Start the Vote <gen>
          • Game - Display to (All players) the text: ((Name of PlayerToKick) + has been kicked.)
          • Countdown timer - Destroy TimerWindow
          • Trigger - Turn on Start the Vote <gen>
          • Trigger - Turn on Voting Yes <gen>
          • Trigger - Turn off Voting NO <gen>
        • Else - Actions
          • Game - Display to (All players) the text: Vote is refused! Tr...
          • Countdown timer - Destroy TimerWindow
          • Trigger - Turn on Start the Vote <gen>

This is what's done so far. Upgrades are probally going to be made. Enjoy system, no Credits needed but appreciated. Map Below.
(Find bug, leaks. Tell it and changelog will be made)
 

Attachments

  • Kick system.w3x
    20.3 KB · Views: 248

Romek

Super Moderator
Reaction score
964
> Command are -yes and - no
> types a chat message containing -ok as Equivalent Result
...
 

Romek

Super Moderator
Reaction score
964
I was pointing out that either your triggers or your 'FAQ' is incorrect.
Also, you do realise that Wc3 is actually a 12 player game. Not an 8 player game.
 

Flare

Stops copies me!
Reaction score
662
most of the game doesn't contains 12 players.
If you want people to be able to use this system, it should be able to handle any number of players. Just because most maps supposedly have only 8 players (which is far from true IMO, I've seen alot of maps with more than 8 players) doesn't mean you shouldn't cater for other maps. It's a simple change, but it is quite necessary IMO
 

simonake

New Member
Reaction score
72
Trigger:
  • For each (Integer Bump) do 13 (Actions)
    • Loop -
      • Unit - This Tread has been bumped. 13 times <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite7" alt=":p" title="Stick Out Tongue :p" loading="lazy" data-shortname=":p" />


Can't it get aprooved?
 

wraithseeker

Tired.
Reaction score
122
Strings and integers don't leak, thats what in JASS is at least. Didn't I remember that Votekick systems were already submitted long ago?

Is this MUI? It should be.
 

simonake

New Member
Reaction score
72
Well, only player can be kicked at the same time..

typing -yes1, -no2 would be to complicated to do and to understand.
 

wraithseeker

Tired.
Reaction score
122
Well since this is a system, it should be MUI.
Some map makers might want to allow 3 kicking at once or something.
 

Undead Me

New Member
Reaction score
5
Thanks very much, this system works very well.

One thing to consider might be making it so you can have 2 or more different systems, if there is more than 1 team. For example, in dota if Red wanted to kick teal because teal fed brown might vote -no because he likes being fed.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top