Revive skript help

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

lemonfrenzy_

Member
Jul 31, 2024
2
0
1
I'm trying to make a command for "/revive" that revives the player and adds them to an alivelist, its meant to set "{alive::%player%}" to true, but how can i stop it from showing an extra number on the scoreboard for alive players?

code below

Code:
command /revive <player>:
  permission: lemoncore.host
  trigger:
    if {alive::%arg-1%} is true:
      send "%{@prefix}% %{@color2}%%arg-1% %{@color1}%is already alive." to player
      play sound {ErrorSound} at volume 3 and pitch 1 to player
      stop
    else:
      set {alive::%arg-1%} to true
      teleport arg-1 to player
      add arg-1 to {alive::*}
      remove arg-1 from {dead::*}
      send "                                                                                            %{@prefix}% %{@color2}%%arg-1% %{@color1}%has been revived by %player%.                                    " to all players
      play sound {sound1} at volume 1 and pitch 1 to player
      set {status::%player%} to true
Screenshot 2024-07-31 095327.png
 
how can i stop it from showing an extra number on the scoreboard for alive players
There is no reference of a "scoreboard" anywhere in your issue description, code, or the image provided.
 
There is no reference of a "scoreboard" anywhere in your issue description, code, or the image provided.
1722418792782.png
Code:
set line 4 of player's scoreboard to "&7| %{@color1}%ᴀʟɪᴠᴇ:%{@color2}% %size of {alive::*}%"
 
Last edited: