#are scoreboards possible with skript?

1 messages · Page 1 of 1 (latest)

flint heron
#

I just made something like that the other day and I found it actualy in a reddit for.

molten dawn
#

oh sweet, would you not mind showing me how its done? ^^'

flint heron
#

Let me see If I can find it in my js script brb.

#

Is it a plugin or add-on

molten dawn
flint heron
#

I think It could be

#

but this is what I made

#

Wait

#

Found it

#

options:
objective: points

command /score <text> <offlineplayer> <number>:
permission: score.admin
permission message: &cYou don't have permission.
trigger:

    if arg-1 is "add":
        add arg-3 to {score::%arg-2%}
        send "&aAdded %arg-3% points to %arg-2%."

    else if arg-1 is "set":
        set {score::%arg-2%} to arg-3
        send "&eSet %arg-2%'s score to %arg-3%."

    else:
        send "&cUsage: /score <add/set> <player> <amount>"

command /scoreboard:
trigger:
set {_board} to scoreboard named "&aPoints"

    loop all players:
        set score "%loop-player%" in {_board} to {score::%loop-player%}

    set sidebar of player to {_board}
    send "&aScoreboard displayed!"
#

these are the commands

#

/score add <player> <amount> → Adds points
/score set <player> <amount> → Sets points
/scoreboard → Shows scoreboard

molten dawn
#

i found it, using execute player command "scoreboard players set @s silly.elytra.owned.cosmetic_1 2" allows me to set someones scoreboard

flint heron
#

Yea that works

#

Do you need any help building or anything

molten dawn
flint heron
#

it only works with sub commands

molten dawn
#

sub commands?

flint heron
#

you would need to install SkBee

flint heron
#

ex: /score add Cosmic (Doesnt show) 100

#

Cosmic 100

#

this doesnt show.

molten dawn
#

I'm somewhat confused.
I am now trying to make one of my commands autocomplete for example like this, but instead of "objectives" and "players" appearing, its "join" or "leave", your saying i need to download SkBee for this?

flint heron
#

What will autocomplete do?

molten dawn
#

...auto complete the command like suggested in the image, its an example

flint heron
#

Bro I have zero Idea...

#

you wnat my advice?

#

just do

molten dawn
#

Joined skUnity for further help

fair rose
storm delta
#

don't know what the heck happened in this thread but if you have SkBee you can do:```
on join:
set title of player's scoreboard to "My Scoreboard"
set line 0 of player's scoreboard to "Test 1"
set line 15 of player's scoreboard to "Test 15"

molten dawn
storm delta
#

@flint heron when you don't know the answer then you're not really helping and telling someone to use chatgpt also isn't helping... please don't misuse help channels

molten dawn
#
    
    description: Toggle joining the next Round.
    permission: skript.queue
    executable by: players
    
    trigger:
        if arg-1 is "join":
            send "&a[!] &7Joined Queue!" to player
            execute player command "scoreboard players set %player% silly.queue 1"

        else if arg-1 is "leave":
            send "&c[!] &7Left Queue..." to player
            execute player command "scoreboard players set %player% silly.queue 0"
            
        else:
            send "Incorrect Usage of /queue." to player

        execute player command "particle minecraft:poof ~ ~1 ~ 0.3 0.3 0.3 0.025 25 force %player%"
        execute player command "playsound entity.experience_orb.pickup master %player%"

on tab complete of "/queue":
    set tab completions for position 1 to "join" and "leave"

here is the code since it may be helpful to have on hand, clearly works for me, but not others

molten dawn
#

yep, Vault is installed

storm delta
#

I assume it only works if you're op since you're making the player execute the commands

molten dawn
#

oh no... is there no way i can make the console do this?

storm delta
#

well you shouldn't in the first place, there's never really a need to have players execute commands

#

you can make your scoreboard in skbee, and your particles and sounds all in skript

molten dawn
#

I'm on a lower version, not sure if particle and sound is possible on these verisons ^^'

storm delta
#

it should still work, what version are you on?

molten dawn
storm delta
#

most of my servers run on 1.21.4 too

molten dawn
#

not sure how to run particles, sounds or change scoreboards via Skript, i'm insanely new to this all, sorry in advance for my rookie mistakes, and thank you for the help :)

storm delta
molten dawn
#

that example doesn't include changing someone's current value in a scoreboard

#

seems to be creating a dummy scoreboard and only displaying it on the sidebar

storm delta
#

set line 0 of player's scoreboard to "Your value is: %{someValue::%player%}%"

molten dawn
#

this is all confusing sorry, so is:
/scoreboard players set @s silly.queue 1
the same as:
set line 0 of player's scoreboard to "silly.queue: %{1:%player%}%"

storm delta
#

that both sets a value and displays it

#

so it would be more like:

#
set {silly.queue::%player%} to 1
set line 0 of player's scoreboard to "silly.queue: %{silly.queue::%player%}%"```