#how can i check how much dmg a player has done to an entity

1 messages · Page 1 of 1 (latest)

onyx gale
hollow trellis
#

show code

onyx gale
#

you don't have any code yet?

#
on damage:
    if attacker is player:
        set {_finaldamage} to the final damage
        broadcast "%{_finaldamage}}%" ```
hollow trellis
#
    if attacker is player:
        broadcast final damage```
onyx gale
#

or that

#

you good now?

#

wdym compare?

hollow trellis
#

depends

#

what a player value is

#

if you are using a variable to keep track of balance then you can sort that variable

#

if you arent and you are just comparing two values you can

set {_2} to player2's balance
if {_1} > {_2}:
else:```
req vault
odd forge
#

Set damage to {damage.%player%}

#

But to compare them im not sore to do that

#

U mean like who deals the most damage?

hollow trellis
#

{damage::%player's uuid%}

young vigil