Rate How Popular The Person Above You Is! [Game]
3 3

21 posts in this topic

Recommended Posts

Okay here are the rules.

 

1: When a person writes a comment, you then comment how popular they are like so: 

 

 

Randomguy395043: Tybug0rz = ?/?

 

OtherGuy37894789345: Randomguy395043 = ?/?

 

And so on.

 

LETS BEGIN!!!

Share this post


Link to post
Share on other sites

local first = ZombRand(11);

local sec = ZombRand(11);

 

if first > sec then

    first = sec;

end

 

QueenGlory = getText("Popular_Queen Glory") .. first .. "/" .. sec;

Edited by Snakeman

Share this post


Link to post
Share on other sites
On 2016-12-01 at 1:02 PM, Snakeman said:

local first = ZombRand(11);

local sec = ZombRand(11);

 

if first > sec then

    first = sec;

end

 

QueenGlory = getText("Popular_Queen Glory") .. first .. "/" .. sec;

minor efficiency tweak:
 

local function retPopularity(username)
  local sec = ZombRand(11);
  local first = ZombRand(sec); -- ensures that it will always be within sec. example: sec is 7, first will be number between 0 and sec

  local userPop = popularity[username] .. first .. "/" .. sec;

  return userPop;
end

retPopularity("snakeman")
Edited by ethanwdp

Share this post


Link to post
Share on other sites
6 hours ago, ethanwdp said:

minor efficiency tweak:
 


local function retPopularity(username)
  local sec = ZombRand(11);
  local first = ZombRand(sec); -- ensures that it will always be within sec. example: sec is 7, first will be number between 0 and sec

  local userPop = popularity[username] .. first .. "/" .. sec;

  return userPop;
end

retPopularity("snakeman")

So never i have 10/10 or 9/9... :P
i have 9/10... 7/8... 6/7 because first is attached to result of sec (if sec = 7 then first will be 0 to 6) :P

Share this post


Link to post
Share on other sites
9 hours ago, Snakeman said:

So never i have 10/10 or 9/9... :P
i have 9/10... 7/8... 6/7 because first is attached to result of sec (if sec = 7 then first will be 0 to 6) :P

Easily fixed by having this, no?

local first = ZombRand(sec+1)

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
3 3