Tooltips

  • 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 community!

    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.

Mattllama987

Supporter
Aug 5, 2018
225
7
18
Hello, i use to use tool tips alot with skript. But now that i updated skript, it no longer works. Did the devs change up the stuff in the later verisons? This is what i have now:

Code:
on chat:
    cancel event
    send "<tooltip:&a%player%>%player's prefix% %player%<reset> %message%" to all players

And this is what it shows ingame:
https://gyazo.com/cb8608d8ed5e9f8b98236ed9ade2e4b7

Skript version: 2.4-beta5
Server version: 1.14.4
No errors

Thanks!
~Matt
 
Yeah, use formatted although it won't work on broadcast's.

Here's a coolio function I've made:
code_language.skript:
function MESSAGE( p: player, type: text, message: text ):
    switch {_type}:
        case "none":
            send formatted {_message} to {_p}
            exit 2 sections
        case "error":
            send formatted "{@ERROR-EXEC} &c&o(%{_message}%&c&o)" to {_p}
            exit 2 sections
        case "normal":
            send formatted "{@PREFIX} %{_message}%" to {_p}
            exit 2 sections
        true:
            send "&cError when choosing message &7TYPE" to {_p}
code_language.skript:
# USAGE
MESSAGE( player, "normal", "Your faction's name must &c&lNOT &7contain special characters!" )

Requires MundoSK for the "switch" statement.
seems very pointless to use mundoSK just for something you can do in vanilla.
 
Status
Not open for further replies.