#remember last attacker
1 messages · Page 1 of 1 (latest)
you have to connect the attacker's name to the victim
so the code is not wrong???
yes but you need to replace some stuff
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???
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
wont work 😢
also fire aspect wont work too
@abstract kettle
easy fix
@abstract kettle ??
just broadcast "%attacker%"
no point setting a local variable when there's already an expression for it
Won't work
It will broadcast
jo_mental fire aspect
what
can i not get pinged for literally nothing thx
Oh wrong person mb
@subtle echo for the error
