1. Welcome to the Brawl website! Feel free to look around our forums. Join our growing community by typing /register in-game!

how do they pick a root zombie

Discussion in 'Discussion' started by EW7788, Dec 15, 2013.

Thread Status:
Not open for further replies.
Please be aware that this thread is more than 30 days old. Do not post unless the topic can still be discussed. Read more...
  1. EW7788

    EW7788 Active Member

    Joined:
    Oct 19, 2013
    Messages:
    206
    Ratings:
    +1
    i was just wondering how do they pick root zombie in infect?? does anyone know???
     
  2. TheBoyGenius510

    TheBoyGenius510 Well-Known Member

    Joined:
    Oct 12, 2013
    Messages:
    1,244
    Ratings:
    +390
    It's random most likely.
     
  3. BallingMC

    BallingMC Well-Known Member

    Joined:
    Aug 4, 2013
    Messages:
    966
    Ratings:
    +137
    Its just a random selection by the server.
     
  4. Pegleg98

    Pegleg98 Well-Known Member

    Joined:
    Aug 8, 2013
    Messages:
    1,094
    Ratings:
    +535
    Some random person said that the last person to join is the root. I don't believe this is true, but I do feel like it happens a little more often then it should when I join at the last second. Probably just bad luck. I think it's random.
     
  5. EW7788

    EW7788 Active Member

    Joined:
    Oct 19, 2013
    Messages:
    206
    Ratings:
    +1
    yes but how do they make the server pick it there must be some sort of algrithum that makes
    i might try testing this theory
     
  6. Darkchaosknight

    Darkchaosknight Well-Known Member

    Joined:
    Aug 3, 2013
    Messages:
    3,200
    Ratings:
    +955
  7. Javed

    Javed Well-Known Member

    Joined:
    Aug 6, 2013
    Messages:
    1,867
    Ratings:
    +370
    int playerToBeRoot = generator.nextInt(numberOfPlayersOnline+1);
    player[playerToBeRoot] = rootZombie;

    Obviously that isn't the code in the plugin files, but that's the gist of it. It takes a random number, 0 through however many players there are online, then matches that number with the corresponding player, and makes him/her the root.
    It's not some fancy algorithm you can figure out and use to rig the lottery, as it were.
     
  8. teawithchoco

    teawithchoco Well-Known Member

    Joined:
    Aug 19, 2013
    Messages:
    6,758
    Ratings:
    +844
    It's random as this thread
     
  9. _The_Ender_Boss_

    _The_Ender_Boss_ Well-Known Member

    Joined:
    Aug 3, 2013
    Messages:
    810
    Ratings:
    +273
    It's random. Question answered, locking. Use this section the next time you have a question like this please.

    Thread Locked.
     
    #9 _The_Ender_Boss_, Dec 16, 2013
    Last edited by a moderator: Jun 13, 2015
Loading...
Thread Status:
Not open for further replies.
Please be aware that this thread is more than 30 days old. Do not post unless the topic can still be discussed. Read more...