1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still haven't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. Lead your forces to battle in the 15th Techtree Contest. The call is yours, commander!
    Dismiss Notice
  4. The reforging of the races is complete. Come see the 14th Techtree Contest Results.
    Dismiss Notice
  5. It's time to choose your horse in the race - the 32nd Modeling Contest Poll is up!
    Dismiss Notice
  6. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Creating a Votekick System

Discussion in 'Trigger (GUI) Editor Tutorials' started by 1)ark_NiTe, Nov 8, 2007.

  1. GhostWolf

    GhostWolf

    Joined:
    Jul 29, 2007
    Messages:
    4,878
    Resources:
    2
    Tools:
    1
    Tutorials:
    1
    Resources:
    2
    I would like to comment on 2 things.

    First, if you would have used Substrings instead of Exact Match strings it could shorten to code by... a lot.

    And the second thing is, vote kickes should ultimatly have the option for ANY play to start a vote kick and by this removing the "ultimate power" of the host.
     
  2. 1)ark_NiTe

    1)ark_NiTe

    Joined:
    Nov 1, 2006
    Messages:
    1,680
    Resources:
    5
    Maps:
    1
    Spells:
    3
    Tutorials:
    1
    Resources:
    5
    Any player can start a vote kick. Also, any player can be kicked unless the mapmaker used Step 9 and created the Host-Immune section of the system. I recommended that it be used because if someone kicks the host and no one else in the game can host, the game will end for everybody.
     
  3. marcotjuhhhh

    marcotjuhhhh

    Joined:
    Dec 23, 2007
    Messages:
    3
    Resources:
    1
    Tutorials:
    1
    Resources:
    1
    dude, i like you votekick, but you made it way to hard...
    ="http://www.megaupload.com/?d=M0BD7ML2"
    if you want to add the host code, add that code into it and change the \votekick call triggers by adding another action
    if all conditions are true, then do actions:
    condition, player 1 not equal to host
    action:Sorry, host cannot be kicked game text
    else:do action, (what normally follows in this script)
     
  4. ADemon

    ADemon

    Joined:
    Jan 5, 2008
    Messages:
    23
    Resources:
    0
    Resources:
    0
    Simple Way
    Useful tutorial. Thanks. But it's to complicated. it would be easier to:
    ADemon(all):Guys, do you want to kick him?
    Someone(all):Yup!
    ADemon(all):/kick x
     
  5. 1)ark_NiTe

    1)ark_NiTe

    Joined:
    Nov 1, 2006
    Messages:
    1,680
    Resources:
    5
    Maps:
    1
    Spells:
    3
    Tutorials:
    1
    Resources:
    5
    That's the "Red has to be Host" noob triggered way to kick someone.
     
  6. marcotjuhhhh

    marcotjuhhhh

    Joined:
    Dec 23, 2007
    Messages:
    3
    Resources:
    1
    Tutorials:
    1
    Resources:
    1
    :D

    i just made an complete votekick system with just 6 triggers, exceptions added, anyone can type:\votekick and then a dialog list shows up of all active players, and then the player can select 1 of them, (meanwhile vote there can not be voted against another player)
    then all active players besides the voted against one get an menu called:
    kick <playername>?
    yes
    no

    after 20 seconds or so the game will compare all no and yes votes, if yes is greater then no then votekick selected player.
    it will auto-fix the list with active players and the name will be set to: kicked

    if you want this for test of use in your map just ask, i will save it as seperate map so you can import it, or test it.

    it also has hostfinding code so every player CAn be host, and host cannot be kicked!
     
  7. cHeRoL

    cHeRoL

    Joined:
    Mar 30, 2008
    Messages:
    655
    Resources:
    2
    Spells:
    2
    Resources:
    2
    Its a lot of work here.
     
  8. Anti-krazy

    Anti-krazy

    Joined:
    May 23, 2008
    Messages:
    22
    Resources:
    0
    Resources:
    0
    Do u copy the KickBlue Parts to the other Kick(Color) ?
     
  9. 1)ark_NiTe

    1)ark_NiTe

    Joined:
    Nov 1, 2006
    Messages:
    1,680
    Resources:
    5
    Maps:
    1
    Spells:
    3
    Tutorials:
    1
    Resources:
    5
    Yes you do. You need 1 for each player in your map.
     
  10. Tichondrius1523

    Tichondrius1523

    Joined:
    Nov 2, 2008
    Messages:
    38
    Resources:
    0
    Resources:
    0
    for making the host immune, does it really matter whether you put it under the second or first 'if,then,else' thing? All in all, a good tutorial, but too confusing. You have a lot of seperate pieces of triggers, and I think you should have made one with ALL of them put together, so you know exactly where everything goes