Set text from hologram to variable

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

GamingGeek

Supporter
Aug 1, 2017
46
0
0
Is it possible to get the text from a hologram made by HolographicDisplays and set it to a variable?
I want to do something like this:
code_language.skript:
    if {_HoloLine1} contains "%loop-player%":
        stop
 
Last edited:
Ya boi has a solution!

syntax:
code_language.skript:
text in line %number% of holo[gram] [object] %string%
example:
code_language.skript:
text in line 1 of hologram "NameOfHologram"

In you case your would use:
code_language.skript:
if text in line 1 of hologram "HologramName" contains "%loop-player%":
    stop
 
Status
Not open for further replies.