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.

void kills help

Discussion in 'Skript' started by iiFinals, Jul 18, 2020.

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

    iiFinals Member

    Joined:
    Jul 18, 2020
    Messages:
    2
    Likes Received:
    0
    Code (Text):
    1. on damage of player:
    2.     attacker is a player:
    3.         set {attacker} to attacker's uuid
    4.         set {tagged::%victim's uuid%} to 10
    5.         {tagged::%victim's uuid%} is not set
    6.         while {tagged::%victim's uuid%} > 0:
    7.             wait 1 second
    8.             remove 1 from {tagged::%victim's uuid%}
    9.             if {tagged::%victim's uuid%} = 0:
    10.                 delete {tagged::%victim's uuid%}
    11.                 delete {attacker}
    12.        
    13. on death of player:
    14.     attacker is a player:
    15.         set action bar of attacker to "&7+1 &dEnder Token &8(Killed %victim%)"
    16.         if damage cause is void:
    17.             if {tagged::%victim's uuid%} is set:
    18.                 set action bar of {tagged::%victim's uuid%} to "&7+1 &dEnder Token &8(Killed %victim%)"
    19.                 give {tagged::%victim's uuid%} 1 of purple dye named "&dEnder Token"
    20.                 add 1 to {kills::%{attacker}%}
    21.                 add 1 to {streak::%{attacker}%}
    22.             else:
    23.                 loop all players:
    24.                     set action bar of loop-player to "&d%victim% &7fell into a black hole"
    so basically if i hit someone into void action bar message doesnt show and i dont get the item. and for if you fell into void and didnt get attacked the action bar death message just doesnt show

    can anyone help?
    --- Double Post Merged, Jul 18, 2020, Original Post Date: Jul 18, 2020 ---
    just so you know i dont get errors
     
  2. FusionCore

    Supporter

    Joined:
    Apr 19, 2020
    Messages:
    44
    Likes Received:
    1
    That's because you are checking if its a player first ;-;
     
  3. iiFinals

    iiFinals Member

    Joined:
    Jul 18, 2020
    Messages:
    2
    Likes Received:
    0
Thread Status:
Not open for further replies.

Share This Page

Loading...