#i simply just need help fixing this code

1 messages · Page 1 of 1 (latest)

eternal echo
#
loop all players:
    if {endstaff::%loop-player-1%} is true:
        loop all entities in radius 3 around location of loop-player-1:
            if loop-entities-2 isn't "%loop-player-1%":
                make loop player-1 damage loop-entity-2 by 20
#

can't just do damage loop-entities-2 by 20 hearts because i want the player to have ownership of the damage

sterile willow
#

cant undertand is a syntax or typo error

#

or you dont have the addon

eternal echo
#

ive tried a bunch of different syntaxes

#

it worked until i added loop-player instead of just player

sterile willow
#

so you do have the addon?

#

also why stringify loop-player-1

eternal echo
eternal echo
sterile willow
#

well

eternal echo
#

its probably just some syntax im missing

sterile willow
#

for this effect you do need the addon

eternal echo
#

i tried it with the dash

calm harness
#

Also try loop-value-1/2 instead

#

loop entities in radius 3 around loop-value-1 where [input isn't loop-value-1]:

#

So u can remove the if .. isn't "..." line

#

make loop-value-1 damage loop-value-2 by 1

eternal echo
#
loop all players:
        if {endstaff::%loop-player-1%} is true:
            loop entities in radius 3 around loop-value-1 where input isn't loop-value-1:
                make loop-value-1 damage loop-value-2 by 20
#

i probably misinterpreted what you told me

calm harness
#

U didn't copy it correctly, u forgot the []

eternal echo
#

oh i thought that was just like

#

nvm

#

adding it rn

calm harness
#

Do u have skbee?

eternal echo
#

i'm just going to try installing some addons with this event in them to see if maybe the addon i have is broke lol

#

yeah i guess my addon was broke

#

no errors anymore