#community goal skript

1 messages · Page 1 of 1 (latest)

stray orbit
#
command /goal:
    permission: op
    trigger:
        broadcast "&eFusion Genz &8| &c&lCOMMUNITY GOAL REACHED &5+50 gems to EVERYONE"
        add 50 to {gems::*}``` this broadcasts but doesnt give the gems for some reason (the variable stays at 0 i checked)
#

clear {gems::*} works

#

so idk why this doesnt

cerulean horizon
#

gems::* is not a variable

#

it's a list

#

you can't add 50 to a list

keen steeple
#

I think what you're trying to do is add 50 to every element in the list.
But, skript is adding the object 50 to the list

#

just loop the list, and then set {gems::%loop-value%} to itself + 50

cerulean horizon
#

No I think they're trying to set one value

#

because they're saying they checked the variable and it's 0

#

I'd guess that

#

but I may be wrong

stray orbit
#

the fix was

#
loop {gems::*}
add 50 to {gems::*}```
cerulean horizon
#

No it wasn’t?

#

Unless you wrote it differently

daring nymph
#

Id recommend you sending your skript

#

to make this alot easier on us

thick widget