#remember last attacker

1 messages · Page 1 of 1 (latest)

subtle echo
#

thats a sameple i tried many ways but it keeps broadcasting <none> on lastattacker & attacker

#

im struggling with this problem for Days plz HELP feelsbadman

steel path
#

you have to connect the attacker's name to the victim

subtle echo
#

so the code is not wrong???

steel path
#

yes but you need to replace some stuff

subtle echo
#
    if attacker is a player:
        set {attack::%attacker's uuid%} to victim
        wait 8 seconds
        remove {attack::%attacker's uuid%} from victim

on death of player:
    if {attack::%attacker's uuid%} is set:
        attacker = {attack::%attacker's uuid%}
    broadcast "%attacker%"```??like this???
abstract kettle
#

Try this?

#
    if attacker is a player:
        set {lastAttacker::%victim's uuid%} to attacker's uuid
        wait 8 seconds
        clear {lastAttacker::%victim's uuid%}

on death of player:
    if {lastAttacker::%victim's uuid%} is set:
        set {_attackerUUID} to {lastAttacker::%victim's uuid%}
        set {_attacker} to player with uuid {_attackerUUID}
        broadcast "%{_attacker}%"
        clear {lastAttacker::%victim's uuid%}
#

@subtle echo

subtle echo
#

wont work 😢

#

also fire aspect wont work too

#

@abstract kettle

abstract kettle
#

easy fix

subtle echo
#

player to attacker???

#

wont work...

#

also i want the actual attacker to be replace

subtle echo
#

@abstract kettle ??

icy berry
#

no point setting a local variable when there's already an expression for it

finite merlin
#

It will broadcast
jo_mental fire aspect

icy berry
#

what

abstract kettle
#

Use skript docs

#

@icy berry

icy berry
#

can i not get pinged for literally nothing thx

abstract kettle
#

Bru

#

Close this then

abstract kettle
abstract kettle