1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT??:

    You can always check our our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Tooltip not working

Discussion in 'Skript' started by Scholler, Jun 5, 2019.

Thread Status:
Not open for further replies.
  1. S

    Scholler Well-Known Member

    Joined:
    Aug 6, 2018
    Messages:
    104
    Likes Received:
    5
    So I am making a script which broadcast "Place your mouse HERE and write the word" every minute. The first to enter the word wins in-game money. But .. it is not working as expected.
    The code:
    Code (Text):
    1. broadcast "&7[&bChatEvent&7] &aMove your mouse over <tooltip:%{random}%>&chere<reset> &aand write the word! Prize: 5000$"
    It says:
    Move your mouse over <tooltip:kjdr83fj>here and.....
    Is there a way to do this?
     
  2. T

    TPGamesNL Well-Known Member

    Joined:
    Jan 20, 2018
    Messages:
    1,287
    Likes Received:
    73
    Medals:
    It doesn't work because broadcast also sends it to console, which can't format tooltips. You have to send it to all players instead
     
  3. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    406
    Likes Received:
    14
    Use
    Code (Skript):
    1.  
    2. every a minute:
    3.     loop all players:
    4.         message "&7[&bChatEvent&7] &aMove your mouse over <tooltip:%{random}%>&chere<reset> &aand write the word! Prize: 5000$" to loop-player
    instance of
    Code (Skript):
    1.  
    2. every a minute:
    3.     broadcast "&7[&bChatEvent&7] &aMove your mouse over <tooltip:%{random}%>&chere<reset> &aand write the word! Prize: 5000$"
     
  4. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,054
    Likes Received:
    144
    you don't need to loop players to send messages
    Code (Skript):
    1. send "blah" to all players
     
    • Agree Agree x 1
  5. S

    Scholler Well-Known Member

    Joined:
    Aug 6, 2018
    Messages:
    104
    Likes Received:
    5
    Thank you, this was fixed on Discord but yeah, the solution was using ,,send .. to all players'' instead of broadcast.
     
  6. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    406
    Likes Received:
    14
    I did not know that :0
     
Thread Status:
Not open for further replies.
Loading...