#are scoreboards possible with skript?
1 messages · Page 1 of 1 (latest)
oh sweet, would you not mind showing me how its done? ^^'
wait its not possible with Skript?
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
i found it, using execute player command "scoreboard players set @s silly.elytra.owned.cosmetic_1 2" allows me to set someones scoreboard
not really, only now need help with if its possible to tab autocomplete with Skript
it only works with sub commands
sub commands?
you would need to install SkBee
Like when you have to type it in even if it doesnt prompt it.
ex: /score add Cosmic (Doesnt show) 100
Cosmic 100
this doesnt show.
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?
What will autocomplete do?
...auto complete the command like suggested in the image, its an example
Joined skUnity for further help
Chatgpt is not useful for coding whatsoever unless you're already proficient in the language
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"
thanks! is there anything else i need to know? I have my code working for me but when others try to use it, it wont work :(
everyone has permissions on LuckPerms, don't know what else is the issue TwT''
@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
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
do you have Vault?
I assume it only works if you're op since you're making the player execute the commands
oh no... is there no way i can make the console do this?
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
I'm on a lower version, not sure if particle and sound is possible on these verisons ^^'
it should still work, what version are you on?
most of my servers run on 1.21.4 too
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 :)
well scoreboards are just this
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
you would use variables for values, which can be displayed like so:
set line 0 of player's scoreboard to "Your value is: %{someValue::%player%}%"
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%}%"