Is it possible to loop only a single player

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

Nikkari5

Member
Aug 2, 2022
1
0
1
Im (very) new to using skript and im trying to make a skript that would basically link the health of two (or more players) but due to me being extremely in-experienced im not able to make it happen. so i came here to ask for help. is there any way of even making this possible?
every 0.1 seconds:
loop all players:
if name of loop-player is "playername":
if health of loop-player is 19:
set health of player named "otherplayername" to 19
here is the code but im only testing it so it is very incomplete it keeps telling me can't understand this condition/effect: set health of player named "otherplayename" to 19
i would like to solve this problem before making the full skript
 
Last edited:
Player named "otherplayername" isn't really an expression. You should use "otherplayername" parsed as (offline) player.
 
Status
Not open for further replies.