#Just trying to set a player's scoreboard

1 messages · Page 1 of 1 (latest)

still token
#

Like, minecraft scoreboard, which comes from command /scoreboard
Whole script:

command /donatetime <string> <integer>:
executable by: players and console
trigger:
set %arg-1's scoreboard "donatedtime" to %arg-2

cobalt ginkgo
#

why are your %%'s like that

hybrid rivetBOT
#

Teh's ZoruMug [PING✔] suggests that you read this embed

Percent signs (%)
When should percent signs be used in Skript?

In Skript, the purpose of surrounding an expression in % signs is letting Skript know you want it to be parsed as an expression and insert its value into the string or variable you've put it in.

Incorrect Usage
give dirt to %player%
send "Hey there player" to %arg-1%
kill %{_entity}%```
Here, the % signs are not inside strings or variable names and should therefore be removed.
Correct Usage
broadcast "%player% has joined"
send "%{_variable::*}%" to player
set {variable::%uuid of player%} to 10```
Here, the % signs are being use properly, as a means to put expressions inside strings and variable names.
still token
#

As a programmer I do not understand

#

Trying hard

onyx coral
#

%'s are for strings

#

so it understands them as variables/expressions

still token
#

Is it like

#

f"Number: {number}"

#

From python

#

command /donatetime <player> <number>:
executable by: players and console
trigger:
set arg-1's scoreboard "donatedtime" to arg-2

#

Someone please i have no clue why it doesn't want to work with arg-1 arg-2

desert ocean
#

what addon are you using scoreboards from? Skript doesn't have any on its own

inner sluice
desert ocean
#

that's true, sometimes it'll think you're doing arg minus 1 or 2 or whatever

still token
desert ocean
#

yeah, that's not how you use Skript to interact with them. you need an addon, like SkBee as I mentioned (check the wiki, there are examples)