Solved Display cooldown time, but in another language

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

kamilleon

Member
Nov 18, 2017
48
0
6
24
So I basically have this skript right now, but it displays the cooldown time in English, and I wanted to ask if there's any way to translate/make a custom display message for time.

If there is I would want it to display it in Hungarian, so "seconds" would be "másodperc".

Code:
options:
    effektdinnye: 10 seconds

on right click holding glistering melon:
    if name of player's tool is "&6&lArany Répucis Dinnye?":
        set {_várt} to difference between {effektdinnye.%player%} and now
        if {_várt} is less than {@effektdinnye}:
            send "&6&lBalker&eCraft &8» &eEhhez még várnod kell %difference between {@effektdinnye} and {_várt}% másodpercet!"
            stop
        else:
            set {effektdinnye.%player%} to now
            apply strength of tier 2 to player for 10 seconds
            apply speed of tier 5 to player for 10 seconds
            remove 1 glistering melon from the player's tool
            send "&6&lBalker&eCraft &8» &eSikeres használat!"
            stop
[doublepost=1556287098,1556285257][/doublepost]already done, with an own method, sorry for posting
[doublepost=1556287135][/doublepost]this is the way I made it:


Code:
options:
    effektdinnye: 10 seconds

on right click holding glistering melon:
    if name of player's tool is "&6&lArany Répucis Dinnye?":
        set {_várt} to difference between {effektdinnye.%player%} and now
        if {_várt} is less than {@effektdinnye}:
            send "&6&lBalker&eCraft &8» &eEhhez még várnod kell %{cdvárt.%player%}% másodpercet!"
            stop
        else:
            set {effektdinnye.%player%} to now
            apply strength of tier 2 to player for 10 seconds
            apply speed of tier 5 to player for 10 seconds
            remove 1 glistering melon from the player's tool
            set {cdvárt.%player%} to 10
            send "&6&lBalker&eCraft &8» &eSikeres használat!"
            stop

every 1 second:
    loop all players:
        set {cdvárt.%loop-player%} to {cdvárt.%loop-player%}-1
 
Status
Not open for further replies.