#i want to make a play time kind of a skript but how does i store the playname and scoreboard

1 messages · Page 1 of 1 (latest)

agile steeple
#

cause the output in the discord is
peleg2210 - Time: <none> ticks

#

and i want it to show all the people that have score in play time not only me / all the people how connected

agile steeple
#

the result should be
player1name - Time: 46000 ticks
player2name - Time 47000 ticks
...

obsidian radish
#

time played of (PLAYER)

agile steeple
obsidian radish
#

its a statistic minecraft keeps track of

agile steeple
#

no

obsidian radish
#

yes

agile steeple
#

i want it on score boar

#

d

obsidian radish
#

so use that on the scoreboard

agile steeple
#

to be able to reset it

#

i do

#

but how i print it

#

i have play_time

obsidian radish
#

use the docs

agile steeple
#

i looked

obsidian radish
#

don't use console commands

agile steeple
#

i didnt found

obsidian radish
agile steeple
obsidian radish
#

because then you installed and "learned" a plugin for literally no reason

#

you're just doing stuff that command blocks can do

agile steeple
#

right

agile steeple
#

i want the scoreboard of a specific player

#

or else i want that i will be able to output both the player name and the score

#

this is just to show things and text on scoreboards

obsidian radish
#
on rightclick:
    send "%player% has played for %time played of player%"
    set line 1 of player's scoreboard to "&b%time played of player%"```
#

i don't know what else you could possibly want

#

i'd recommend you look at skript tutorials, if you don't understand how expressions work

agile steeple
#

i dont understand just how i output a scoreboard

obsidian radish
#

there is no output

agile steeple
#

i want to know hot to output a screboard data by player name

obsidian radish
#

you don't need an output

agile steeple
#

why?

obsidian radish
agile steeple
#

i want to be able to restart the time every week

#

and i cant do this with stats

obsidian radish
#

then set time played of player to 0 seconds every week

agile steeple
#

but i dont have the name of the player

obsidian radish
#

you always have the name of the player

agile steeple
#

i want just to reset the whole stats

#

for all the players

obsidian radish
#

loop all offline players:

agile steeple
#

wait
it output just a number of tickes or it output text?

obsidian radish
#

player refers to an online player
offline player refers to a player that is either online or offline

#

it outputs a timespan

#

ex. 3 ticks, 5 seconds, 10 days, 2 hours

agile steeple
#

oh

obsidian radish
#

it auto-rounds up

agile steeple
#

i want it just as lets say 3

#

not 3 ticks

obsidian radish
agile steeple
#

just 3

obsidian radish
agile steeple
#

but i want it to out put just a number

#

like 3

#

not 3 ticks

#

3 secend

#

3

#

this is possible?

obsidian radish
#

if you replace all in a string you can ig

#

zero point to doing that though

#

it removes basic understanding of units of measurement

agile steeple
#

amm this is the problam i want to do math with it

obsidian radish
#

the only people to understand it would be the people who have played the longest

#

you can just directly compare their time played

agile steeple
#

i want it to say how many ticks they played

obsidian radish
#

if time played of player >= 1 hour:

agile steeple
#

no but i want to do math with that times

#

those

obsidian radish
#

"do math" is incredibly vague

agile steeple
#

like
tick*1200

obsidian radish
#

but why

agile steeple
#

%time played of player%"

how do i print this as minitues?

obsidian radish
agile steeple
#

set time played of %{_username}% to 0 seconds
is not such a thing

obsidian radish
#

you need SkBee

agile steeple
#

oh ok

#

one moment

#

i still get a error its not a condition

obsidian radish
#

get rid of %'s

#

they're only needed when you want skript to understand what should be treated as skript language

#

when you're in a string

agile steeple
#

i dont see an error now but its still dont reset it for some reason

#

oh it works

#

you cant put username

#

you have to put player

#

but how do i loop for all the offline players?

#

cause here when i fix the spaces its just spams me

obsidian radish
#

should look at some loop or indentation tutorials

#

you didn't indent anything to be under the offline player loop, so nothing is going to happen with it

agile steeple
#

i updated it

#

that why it spams

agile steeple
#

i kind of fix that but its still not sending for every players in the server

#

and when i connect other player it works and reset both of us of us and when he disconect its reset just me

#

?

obsidian radish
#

loop all players only loops online players

agile steeple
#

I tried with offline and it just spam peleg2210 million time

agile steeple
#

Any one has an idea?

obsidian radish
#

prob didn't use loop-player or smthn