Solved Translation of cooldown?

  • 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.

SpinKnight

Supporter +
Supporter
May 24, 2017
30
0
6
code_language.skript:
command /cooldown:
    trigger:
        set {cooldown} to difference between {cooldown_test::%player%} and now
        if {cooldown} is less than 10 seconds:
            send "&7Du er nød til at vente &c%difference between 10 seconds and {cooldown}% &7før at du kan bruge &c/cooldown &7igen."
            stop
        set {cooldown_test::%player%} to now

So I was wondering if there was a way to translate the "seconds" to another language?

Basically it says "you have to wait %amount of seconds% seconds to use this command again"

upload_2018-2-23_23-20-12.png
 

Attachments

  • upload_2018-2-23_23-19-35.png
    upload_2018-2-23_23-19-35.png
    16.4 KB · Views: 187
code_language.skript:
set {_time} to "%difference between 10 seconds and {cooldown}%"
replace "seconds" in {_time} with "something else"
 
Don't really know where to put it.
I'm stupiid

code_language.skript:
command /cooldown:
    trigger:
        set {_time} to "%difference between 10 seconds and {_time}%"
        replace "seconds" in {_time} with "sekunder"
        if {_time} is less than 10 seconds:
            send "&7Du er nød til at vente &c%difference between 10 seconds and {_time}% &7før at du kan bruge &c/cooldown &7igen."
            stop
 
Last edited:
You can’t compare a string to a time and you’re not even sending the variable...
 
this is why spoonfeeding is bad - "Don't really know where to put it." think about what you want to happen then make it happen
 
Status
Not open for further replies.