#Wired skript attrubute bug?

1 messages · Page 1 of 1 (latest)

wicked zenith
#

on death:
if {speed::victim's uuid} is greater than 1:
subtract 1 from {speed::victim's uuid}

if {speed::attacker's uuid} is less than 10:
    add 1 to {speed::attacker's uuid}
else:
    give attacker {cooldowntoken}
set attacker's attack speed attribute to {speed::attacker's uuid}
set victim's attack speed attribute to {speed::victim's uuid}

when I player dies I'm trying to give them a reduced attack speed but for some reason wired stuff happens, for example sometimes the player attack speed seems to be 0 after a player dies even tho they have an Speed varible of 9. Other times people who die actually gain attack speed

final spear
#

I don't now if it's causing your bugs but I think this could cause other problems any way: on death works on animals and any other living entities by default not just players

Killing a few mobs would easily max out the attack speed of a player to 10 for example

#

Regarding the issue if wrong speed attributes, you could debug if the set ... attack speed to {speed::player} thing in it self works and maybe update their attribute after the respawn as well

near shard
#

^^