on death not working

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Toadyboii

Member
Jan 31, 2024
19
0
1
16
on death of living entities:
attacker is a player:
if name of attacker's tool is "&4Reaper's Scythe":
if {SoulsT.%attacker's uuid%} is true:
increase {Souls.%attacker's uuid%} by 1
send "x" to attacker
this code is supposed to increase a player uuid variable by 1 every kill.
Ive tried variations such as on death,removing the tool requirement etc.
Nothing works
 
Do you get an error message when reloading and if so what does it say? Not sure but I think the issue is that instead of "{SoulsT.%attacker's uuid%}" you should replace the . with 2 colons ({SoulsT::%attacker's uuid%})
 
Code:
on death of living entities:
    broadcast "1"
    attacker is a player:
        broadcast "2"
        if name of attacker's tool is "&4Reaper's Scythe":#I tested this just with "Sword" and i renamed a sword with that name
            broadcast "3"
            if {SoulsT.%attacker's uuid%} is true:
                broadcast "4"
                increase {Souls.%attacker's uuid%} by 1
                send "x" to attacker

Test it like this, and you see where your code stop, or which condition it does not accomplished.