hi i use skBee and need help with this skript im making

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

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

brsko

Member
Mar 21, 2024
18
0
1
21
every 1 tick:
loop all players:
set %player_strength% to loop-player's {strength::%loop-player%}
if %player_strength% is 5:
set loop-player's attack damage attribute to 6
else if %player_strength% is 4:
set loop-player's attack damage attribute to 5
else if %player_strength% is 3:
set loop-player's attack damage attribute to 4
else if %player_strength% is 2:
set loop-player's attack damage attribute to 3
else if %player_strength% is 1:
set loop-player's attack damage attribute to 2
else if %player_strength% is 0:
set loop-player's attack damage attribute to 1
else if %player_strength% is -1:
set loop-player's attack damage attribute to 0
else if %player_strength% is -2:
set loop-player's attack damage attribute to -1
else if %player_strength% is -3:
set loop-player's attack damage attribute to -2
else if %player_strength% is -4:
set loop-player's attack damage attribute to -3
else if %player_strength% is -5:
execute console command "/tempban %loop-player% 12h &cYou have been set down to -5 attack damage and have been banned! You will be unbanned in 12 hours."
set {strength.eliminated::%loop-player%} to true
wait 12 hours
set {strength.eliminated::%loop-player%} to false
set %loop-player%'s {strength::%loop-player%} to 0
 
every 1 tick:
loop all players:
set %player_strength% to loop-player's {strength::%loop-player%}
if %player_strength% is 5:
set loop-player's attack damage attribute to 6
else if %player_strength% is 4:
set loop-player's attack damage attribute to 5
else if %player_strength% is 3:
set loop-player's attack damage attribute to 4
else if %player_strength% is 2:
set loop-player's attack damage attribute to 3
else if %player_strength% is 1:
set loop-player's attack damage attribute to 2
else if %player_strength% is 0:
set loop-player's attack damage attribute to 1
else if %player_strength% is -1:
set loop-player's attack damage attribute to 0
else if %player_strength% is -2:
set loop-player's attack damage attribute to -1
else if %player_strength% is -3:
set loop-player's attack damage attribute to -2
else if %player_strength% is -4:
set loop-player's attack damage attribute to -3
else if %player_strength% is -5:
execute console command "/tempban %loop-player% 12h &cYou have been set down to -5 attack damage and have been banned! You will be unbanned in 12 hours."
set {strength.eliminated::%loop-player%} to true
wait 12 hours
set {strength.eliminated::%loop-player%} to false
set %loop-player%'s {strength::%loop-player%} to 0
can you please indent it so I can help
 
normal code has tabs so skript knows what triggers trigger what, like this
Code:
on death of player:
    kill attacker
(this is not actual code for you this is just an example)
Code:
every 1 tick:
    loop all players:
        set %player_strength% to loop-player's {strength::%loop-player%}
        if %player_strength% is 5:
            set loop-player's attack damage attribute to 6
        else if %player_strength% is 4:
            set loop-player's attack damage attribute to 5
        else if %player_strength% is 3:
            set loop-player's attack damage attribute to 4
        else if %player_strength% is 2:
            set loop-player's attack damage attribute to 3
        else if %player_strength% is 1:
            set loop-player's attack damage attribute to 2
        else if %player_strength% is 0:
            set loop-player's attack damage attribute to 1
        else if %player_strength% is -1:
            set loop-player's attack damage attribute to 0
        else if %player_strength% is -2:
            set loop-player's attack damage attribute to -1
        else if %player_strength% is -3:
            set loop-player's attack damage attribute to -2
        else if %player_strength% is -4:
            set loop-player's attack damage attribute to -3
        else if %player_strength% is -5:
            execute console command "/tempban %loop-player% 12h &cYou have been set down to -5 attack damage and have been banned! You will be unbanned in 12 hours."
            set {strength.eliminated::%loop-player%} to true
            wait 12 hours
            set {strength.eliminated::%loop-player%} to false
            set %loop-player%'s {strength::%loop-player%} to 0
 
Code:
every 1 tick:
    loop all players:
        set %player_strength% to loop-player's {strength::%loop-player%}
        if %player_strength% is 5:
            set loop-player's attack damage attribute to 6
        else if %player_strength% is 4:
            set loop-player's attack damage attribute to 5
        else if %player_strength% is 3:
            set loop-player's attack damage attribute to 4
        else if %player_strength% is 2:
            set loop-player's attack damage attribute to 3
        else if %player_strength% is 1:
            set loop-player's attack damage attribute to 2
        else if %player_strength% is 0:
            set loop-player's attack damage attribute to 1
        else if %player_strength% is -1:
            set loop-player's attack damage attribute to 0
        else if %player_strength% is -2:
            set loop-player's attack damage attribute to -1
        else if %player_strength% is -3:
            set loop-player's attack damage attribute to -2
        else if %player_strength% is -4:
            set loop-player's attack damage attribute to -3
        else if %player_strength% is -5:
            execute console command "/tempban %loop-player% 12h &cYou have been set down to -5 attack damage and have been banned! You will be unbanned in 12 hours."
            set {strength.eliminated::%loop-player%} to true
            wait 12 hours
            set {strength.eliminated::%loop-player%} to false
            set %loop-player%'s {strength::%loop-player%} to 0
k I'll be working on trying to find the problems and fix them
 
Code:
every 1 tick:
    loop all players:
        set {_player_strength} to {strength::%loop-player's uuid%}
        if {_player_strength} is 5:
            set loop-player's attack damage attribute to 6
        else if {_player_strength} is 4:
            set loop-player's attack damage attribute to 5
        else if {_player_strength} is 3:
            set loop-player's attack damage attribute to 4
        else if {_player_strength} is 2:
            set loop-player's attack damage attribute to 3
        else if {_player_strength} is 1:
            set loop-player's attack damage attribute to 2
        else if {_player_strength} is 0:
            set loop-player's attack damage attribute to 1
        else if {_player_strength} is -1:
            set loop-player's attack damage attribute to 0
        else if {_player_strength} is -2:
            set loop-player's attack damage attribute to -1
        else if {_player_strength} is -3:
            set loop-player's attack damage attribute to -2
        else if {_player_strength} is -4:
            set loop-player's attack damage attribute to -3
        else if {_player_strength} is -5:
            execute console command "/tempban %loop-player% 12h &cYou have been set down to -5 attack damage and have been banned! You will be unbanned in 12 hours."
            set {strength.eliminated::%loop-player%} to true
            wait 12 hours
            set {strength.eliminated::%loop-player%} to false
            set {strength::%loop-player's uuid%} to 0
this is the code I made but for it to work you need all the variables to be set like {strength::%loop-player's uuid%} but ofc that would have to be set when you have access to a player's uuid