Solved Open book with clickable text?

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

ItsDy1an

New Member
Jun 23, 2017
8
0
0
28
Title really says it all, What i'm trying to do is when the book opens there will be links so for example &cYouTube but you can click YouTube to open it. Anybody know how to do this. Thanks
 
i tested fast. This way is what youre searching:
code_language.skript:
command /book:
    trigger:
        set {_book} to a new written book
        set {_component} to a new text component with "&b>&6Test%nl%%nl% test&b<"
        add hover event with action SHOW_TEXT with text "&eLel" to text component {_component}
        add text component {_component} to book {_book}
        set {_THIS} to a new text component with "THIS IS CLICKABLE!"
        add click event with action RUN_COMMAND with execute "/broadcast LoL" to text component {_THIS}
        add text component {_THIS} to book {_book}
        open book {_book} to player
 
The format however is still required. Without actual code to fix it belongs in the request section. its not a "discussion". he's requesting help with skript and that requires information so he can be helped as easily as possible.
Obviously too late for this postx3 but do use it in the future.
 
i tested fast. This way is what youre searching:
code_language.skript:
command /book:
    trigger:
        set {_book} to a new written book
        set {_component} to a new text component with "&b>&6Test%nl%%nl% test&b<"
        add hover event with action SHOW_TEXT with text "&eLel" to text component {_component}
        add text component {_component} to book {_book}
        set {_THIS} to a new text component with "THIS IS CLICKABLE!"
        add click event with action RUN_COMMAND with execute "/broadcast LoL" to text component {_THIS}
        add text component {_THIS} to book {_book}
        open book {_book} to player
Thanks a million! :emoji_slight_smile:
 
Status
Not open for further replies.