#Code does not run with 2 players online

1 messages · Page 1 of 1 (latest)

limber crown
#

So this is my code

    {player::count} = 0
    {amount::count} = 5
    {expand::count} = 0

command /setwbtime <integer>:
    permission: skript.set.join_message
    description: Sets message when player joins
    trigger:
        set {amount::count} to argument
        set {expand::count} to {amount::count}*{player::count}
        message "Set the new time to: %{amount::count}% and player count is %{player::count}% and is getting expanded with %{expand::count}%" 

every 10 seconds:
    {player::count} = real online player count
    broadcast "%{player::count}%"
    if {player::count} > 0:
        set {expand::count} to {amount::count}*{player::count}
        expand world border of world "world" by {expand::count} in 5 seconds
        broadcast "World border is getting expanded by %{expand::count}% total blocks on the border this is %{expand::count}/2%"```

For some reason every thing after ``every 10 seconds:`` doesn't run any thing at all. am I doing something wrong or?
wispy rune
#

you arnt setting the var

limber crown
#

set {player::count} to real online player count

#

right?

wispy rune
#

there you go

limber crown
#

I forgot I was skripting

#

lmao

wispy rune
#

= is for comparisons
to is for definitions