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

Display Variables in Holographic Display

Discussion in 'Skript' started by Ter2FIc, Jan 21, 2021.

Tags:
Thread Status:
Not open for further replies.
  1. Ter2FIc

    Ter2FIc Member

    Joined:
    Dec 30, 2020
    Messages:
    20
    Likes Received:
    0
    I tried to display variables in skript. I made a variables 'honor' which is the player gets 1 point in each kill, but I couldn't display the top 10 highest players with honor points. :emoji_grinning:
    Code (Text):
    1. on death of player:
    2.     add 1 to {honor::%attacker%}
    3.     message "&fYou got &41 &3honor &fby killing %victim%!" to attacker
    4.     remove 10 from {honor::%victim%}
    5.     message "&fYou lost &410 &3honor &f because you were killed by %attacker%." to victim
    6.  
    7. command /viewpoint:
    8.     trigger:
    9.         send "You have total &3%{honor::%player%}% &fhonor."

    But it was too hard for me :emoji_frowning:

    I use PlaceholderAPI, Holographic Display, Holographic Extension
    Is there any plugins that I need to add more?
     
    #1 Ter2FIc, Jan 21, 2021
    Last edited: Jan 21, 2021
  2. DeadlySkyLord

    DeadlySkyLord Member

    Joined:
    May 23, 2020
    Messages:
    11
    Likes Received:
    0
    You have to send some code...
     
  3. Marc

    Marc Active Member

    Joined:
    Nov 27, 2020
    Messages:
    94
    Likes Received:
    0
    Do you use the skript version of holographic bc you should probably use that.. dont know how good it is tho lol
     
  4. Ter2FIc

    Ter2FIc Member

    Joined:
    Dec 30, 2020
    Messages:
    20
    Likes Received:
    0
    No no. I mean how can I display the highest to lowest variables.
     
  5. Marc

    Marc Active Member

    Joined:
    Nov 27, 2020
    Messages:
    94
    Likes Received:
    0
    Ohhh,
    Code (Text):
    1. if {thisvariable} >= {thisvarible2}:
    2.     send message "{thisvariable}" to player
    3. else:
    4.     send message "{thisvariable2}" to player
     
Thread Status:
Not open for further replies.

Share This Page

Loading...