#could someone help me on making a points system

1 messages · Page 1 of 1 (latest)

velvet dagger
#

depends, how do you want it to be counted?

scenic silo
velvet dagger
scenic silo
#

if someone dies

#

then give the other 39 players coins

#

[+5] SpaceFl1erz fell into the void

#

@velvet dagger

velvet dagger
#

im not sure u can just say "if someone dies" or in any other way

scenic silo
#

i was just giving an example

#

I dont know where to start

#

thats why im looking for help

chilly radish
#

On death of player:
Give points to all other players

#

Same for kill

scenic silo
#

where will i store the points?

chilly radish
#

But then it’s give attacker points

#

A list

scenic silo
#

?

chilly radish
#

{points::%player’s uuid%}

scenic silo
#

how about team points?

chilly radish
#

Wdym team points

scenic silo
#

how will i add those points into team points

chilly radish
#

Loop all players

#

Then check the team they in and add their points to a list for the team points

scenic silo
#

no clue how to write that in code

chilly radish
#

Bruh

scenic silo
#

thats why i said "could someone help me on making a points system"

velvet dagger
scenic silo
#

i need to learn it somehow

velvet dagger
#

youtube

static igloo
#

This is Skript help. This is where you send your code and other people help you with the errors.

velvet dagger
#

tutorial

scenic silo
#

mbmb

velvet dagger
static igloo
#

Does anybody here have a link to svode’s gitbook

static igloo
scenic silo
#

💀

static igloo
scenic silo
#

ok

scenic silo
#

is it this

static igloo
#

No

#

Search up ‘Svode Skript GitHub’ maybe

scenic silo
static igloo
#

1 second I’ll get my pc up

scenic silo
#

kk

static igloo
#

There we go

#

Also, please turn off reply pings

scenic silo
#

@chilly radish

#

on death:
attacker is a player
add 5 to {points::%player's uuid%}

#

@static igloo

static igloo
#

Please turn off reply pings
this means pings, please don't ping me

#

And it's literally telling you what you need to do.

#

You can't use %player's uuid% in an on damage event

scenic silo
#

sorry

chilly radish
#

Attacker’s uuid

scenic silo
#

how would you do it to all players?

chilly radish
#

Loop them

#

Then check if loop-player is not the victim

#

Then add points to loop-players uuid

scenic silo
#

omg i love u

#

how would i reset the points to all players

#

currently im doing

#

command /pointsreset:
permission: op
trigger:
loop all players:
set {points::%player's uuid%} to 0

#

but that doesnt work

static igloo
#

```vb
code

#

use code blocks

static igloo
scenic silo
#

i want it to reset it to all players tho

static igloo
#

?

#

Yes, to give points to each player, right?

chilly radish
#

When you loop something it does that code for each and every single thing inside the loop

#

So when you loop all players it will delete the points of each and every player that is online

scenic silo
chilly radish
#

When you use loop-player atleast

static igloo
#

yes...

#

like I told you...

#

but actually, that's weird

#

Instead just

#

delete the list

#

in general

chilly radish
#

Or that

scenic silo
#

delete the list?

static igloo
#

yes

scenic silo
#

how

static igloo
#

...

#

delete %variable%

#

Go to your own thread

#

make your own thread

scenic silo
#

huh

scenic silo
static igloo
#

send it

#

istg, if you put the % signs there.

scenic silo
#

command /test:
trigger:
delete {points::%player's uuid%}

static igloo
#

yes, because you only deleted one variable

#

I said the entire list

#

{points::*} is the list

scenic silo
#

command /test:
trigger:
delete {points::}
wait 1 tick
set {points::
} to 0

#

it just says none

#

on scoreboard

static igloo
#

just

#

loop all offline players and set the points to 0

#

ig

#

Also,

Use code blocks

scenic silo
#

doesnt work

static igloo
scenic silo
#

command /test:
trigger:
loop all offline players:
delete {points::}
wait 1 tick
set {points::
} to 0

static igloo
#

Code Blocks

scenic silo
#

code blocks?

static igloo
#

```vb
code```

scenic silo
#

?

static igloo
#
command /test:
  trigger:
    send "hi"```
#

code blocks

scenic silo
#

oh

#

em

#

how

static igloo
scenic silo
#
    trigger:
        loop all offline players:
            delete {points::*}
            wait 1 tick
            set {points::*} to 0```
static igloo
#

Remove the delete line and the waiting a tick

#

and just set {points::%uuid of loop-player%} to 0

scenic silo
static igloo
#

loop-value

scenic silo