TheRoyalAce Posted December 7, 2020 Share Posted December 7, 2020 does anyone know how to make a balance format script. Would I have to make a variable and set it depending on the balance of the player. I want the format to be like 1k instead of 1,000 Link to comment Share on other sites More sharing options...
83y Posted December 9, 2020 Share Posted December 9, 2020 Here I found this for you. https://forums.skunity.com/threads/1000-to-1k.9198/ If posting that link ^^ is against the rules plz don't warn me I'll remove it. Youtube: https://www.youtube.com/c/83y123 Discord: 83y#2552 IGN: 83y If your seeing this I am currently banned from Posting, the Discord and GitHub I have helped out countless player's and been re-payed with multiple bans. staff are attention seeking and biased, i'd just leave for your sake. your just wasting your time. Link to comment Share on other sites More sharing options...
hangtight Posted December 9, 2020 Share Posted December 9, 2020 take this function, function formatNumber(n: number) :: string: set {_l::*} to split "k|M|B|T|Qn|Qi|Sx" at "|" set {_i} to min(floor(log({_n})/3), size of {_l::*}) return "%{_n}%" if {_i} <= 0 set {_i2} to 1000^{_i} return "%{_n}/{_i2}%%{_l::%{_i}%}%" # to run, send "%formatNumber(1000)%" Link to comment Share on other sites More sharing options...
TheRoyalAce Posted December 14, 2020 Author Share Posted December 14, 2020 (edited) It worked i just had to do was put %formatNumber(loop-player's balance)% for the score line thank you Edited December 14, 2020 by TheRoyalAce i fixed the problem Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now