PanwellzJoin Date: 2012-10-16 Post Count: 749 |
scripts i need:
- A script that shortens leaderstat values from 1000 to 1,00K, 10000 to 10,0K 100000 to 100K, 1000000 to 1.00M and so on.
pay = 200-250 robux
- A script that puts gear into the backpack of players owning gamepassID
pay = 75-100 robux
- A script to use in a gear that breaks joints of items inside the "Humanoid", Only the humanoid of the player that has the gear
pay = 300+ robux
|
|
PanwellzJoin Date: 2012-10-16 Post Count: 749 |
bump
|
|
jroles7Join Date: 2014-10-24 Post Count: 766 |
i'll do the Shorten script PM me |
|
chimmihcJoin Date: 2014-09-01 Post Count: 17143 |
"1000 to 1,00K, 10000 to 10,0K 100000 to 100K, 1000000 to 1.00M"
Your rules for this shortening seem rather random.
Also there is no possible way to add such functionality to your game by simple adding a script. You would have to store the actual stats somewhere else and replace them with StringValues.
|
|
jroles7Join Date: 2014-10-24 Post Count: 766 |
I just did nub so actually you can its called leaderbard stats it convertes anything with certain amount of 0 to k or m or b or t, etc |
|
chimmihcJoin Date: 2014-09-01 Post Count: 17143 |
You do know that NumberValues and IntValue can't hold strings right?
|
|
chimmihcJoin Date: 2014-09-01 Post Count: 17143 |
You probably don't. No doubt you are too 1337 for logic and sandboxes.
|
|
PanwellzJoin Date: 2012-10-16 Post Count: 749 |
@chim It is possible to make just check miners haven
|
|
chimmihcJoin Date: 2014-09-01 Post Count: 17143 |
I have not played it so I do not know if it used the default playerlist or not. But either way it employs the exact tactic I explained in my first post. Store the actual number value somewhere else, display its value formatted.
|
|
PanwellzJoin Date: 2012-10-16 Post Count: 749 |
yeah that makes sense, guess i'll just rescript everything to a money value outside leaderstats
|
|
|
Miners haven is a bit more complex actually, since the numbers go really big in that game, it stores each section separately in a table, I saw it on the devforum somewhere.
It's similar to Adventure capitalist, they go up to like 1x10^255. |
|
chimmihcJoin Date: 2014-09-01 Post Count: 17143 |
"Miners haven is a bit more complex actually, since the numbers go really big in that game, it stores each section separately in a table, I saw it on the devforum somewhere.
It's similar to Adventure capitalist, they go up to like 1x10^255."
How you store the number doesn't matter, the concept is the exact same.
And that number isn't possible, doubles loose integer precision LONG before that.
9999999999999999 is the limit, afterwards digit precision is gone.
|
|
|
|
"9999999999999999 is the limit, afterwards digit precision is gone."
I don't think you get how its stored, its not a single digit, its a table of digits
Like they store 4 digits for every 3 digits or similar, so example is they would store how much Quattuornonagintillion money they have, then the next would be Quinnonagintillion, etc.
To handle adding, they would just do a loop through, like if Quattuornonagintillion > 1000, Quattuornonagintillion = Quattuornonagintillion - 1000, then Quinnonagintillion + 1
Just an example. |
|