Currency converter (1000 to 1k)

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Narek7445

Member
May 12, 2019
4
0
1
27
Can i make with else way? And what way
command /money:
trigger:
if {money.%player%} >= 1000
set {ac.%player%} to {money.%player%} / 10
send "Money >> %{ac.%player%}%"
 
Can i make with else way? And what way
command /money:
trigger:
if {money.%player%} >= 1000
set {ac.%player%} to {money.%player%} / 10
send "Money >> %{ac.%player%}%"
Try:
code_language.skript:
command /money:
    trigger:
        if {money.%player%} is between 1000 and 9999:
            set {_first} to first character of {money.%player%}
            send "Money >> %{_first}%K"
Although, if I'm not mistaken, someone made a code of a function that designated the letter of the value of money. For example, 1k, 1m, 1b, 1t, 1q, etc.
 
its really simple. i think lol
try:
Code:
command /money:
    trigger:
        if {money.%player%} is more than 999:
            set {_m} to ({money.%player%} / 1000)
            message "&aYour Balance is &b%{_m}%k!"
        else:
            message "&aYour Balance is &b%{money.%player%}%!"
 
Status
Not open for further replies.