generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Number Abbreviating (For Tycoon-Cash) Script?

Previous Thread :: Next Thread 
reepile is not online. reepile
Joined: 16 Apr 2012
Total Posts: 1385
23 Mar 2016 12:06 PM
Hey! I'm looking for a number abbreviating script (A number shortener) that exceeds the limit of what would be around 2 billion or so. If you have seen this in other tycoons, you can see when you reach 999, to 1,000 it changes to 1k, then 1.1k for 1,100. I want this, and once I get the main script for K, million (m), billion (M) etc I should be able to continue myself. I need this because I'm trying to exceed the limit of billions to huge numbers (Decillions)

Thanks!!
Report Abuse
lupine is not online. lupine
Joined: 24 Jun 2008
Total Posts: 3561
23 Mar 2016 12:30 PM
For whatever reason, my script is breaking Roblox's forum / message rules and I can't send it over either of those mediums. Here's a model of the script. Sorry for the inconvenience, but I'm glad I could help.

http://www.roblox.com/item.aspx?id=386592611
Report Abuse
reepile is not online. reepile
Joined: 16 Apr 2012
Total Posts: 1385
23 Mar 2016 02:09 PM
It looks like a really nice script, but it didn't work in my case. I'm using Berezaa's tycoon kit and I need the Cash to be abbreviated. I tried some stuff but it didn't work in my case. I understand how to add more values after something such as 1k, 1m and 1M but it wont shorten for me :C

I'm also not sure if there is a script in the kit that prevents it from working but if that is the case I don't want to stress you out with a little question. Thanks so much for the script though!
Report Abuse
Void_Optics is not online. Void_Optics
Joined: 21 Mar 2016
Total Posts: 286
23 Mar 2016 02:10 PM
just check the number of numbers
Report Abuse
reepile is not online. reepile
Joined: 16 Apr 2012
Total Posts: 1385
23 Mar 2016 02:18 PM
Sorry, what?
Report Abuse
lupine is not online. lupine
Joined: 24 Jun 2008
Total Posts: 3561
23 Mar 2016 03:16 PM
The problem is probably the following,

The script that manages how much money a player has creates a leaderstat value (the value on the leaderboard for all to see) and it's either an IntValue or a NumberValue. The problem is, my script outputs a string and it needs to to tag on that 'M' or 'k' or whatever.

My solution? You need to find several things in the scripts the kit comes with.

1. Find the script that creates all the leaderstat values. There should be one created called 'cash' or something of the like. Change it to a StringValue, not an IntValue or NumberValue.

2. Find the script that -sets- the player's cash. In fact, there might not just be one instance of this. Any time the player's cash is changed, you need to instead set it to
player.Cash = Short(player.Cash + n)
where player.Cash should be the path leading to the player's leaderstat cash value and 'n' is the amount being added to their cash.
In addition, if they're multiple scripts that change the player's cash, each one of them will need my function defined in it. The necessary parts for that include,

a. The two tables, abv and nabv
b. The actual function 'Short'
c. Short needs to have a valid value passed through it


Remember, for step 2, you're looking for areas in the code that look like,
player.Cash = player.Cash + n
where, again, player.Cash is the path to the player's cash stat and n is an arbitrary number.


If you link me to the kit you're using, I could republish them with the fix or guide you through the fix better.
Report Abuse
reepile is not online. reepile
Joined: 16 Apr 2012
Total Posts: 1385
24 Mar 2016 02:37 AM
I'm going to try this method out. If I am unable to find or complete these actions I could PM you. You have helped me so much, if only I was BC I would pay you. Thanks, I'll try to do it!!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image