#very basic variable question

1 messages · Page 1 of 1 (latest)

rotund python
#

if {killstreak::%uuid of attacker%} is 50: # overdrive preset
send "hi" to attacker # just debugging

this unfortunately sends on every kill, how do i make it only on the 50th

limpid igloo
#

Send your full code

#

Also

#

Use
```
Code
```

rotund python
#

ok

#

1s

#
  add 1 to {killstreak}

every second:
  loop all players:
    send {killstreak} to loop-player


on death of a player:
  attacker is a player                 # only run beneath code if killer is a player
  add 1 to {killstreak::%uuid of attacker%}  # add 1 to kills for killer
  set {killstreak::%uuid of victim%} to 0    # reset kills for killed player
  send "&6%{killstreak::%uuid of attacker%}% killstreak!" to attacker
  play sound "ANVIL_BREAK" at volume 0.4 at pitch 1 to attacker # goofy killsound
  if {killstreak::%uuid of attacker%} is 50: # overdrive preset
  send "hi" to attacker # just debugging```
limpid igloo
#

What is the first part doing

#

You didnt indent

#

The send should be inside the if

rotund python
#

the on chat is

#

idk

rotund python
#

do i close the post or sth

limpid igloo
#

So no, its not

rotund python
#

oh i just reliased thatlol