Jump to content
Tybug0rz

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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...