Kill Rewards

  • 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 community!

    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!

xSummons

Member
Apr 14, 2025
12
1
3
Could someone help me, I'm trying to make slightly a kill rewards system but more of taking something from the victim's inventory and giving it to the attacker.
I've done this but doesn't seem to work: (Also with skript error)

on death:
if attacker is player:
set {_h} to amount of skulls in victim's inventory
remove {_h} from victim's inventory
give {_h} to attacker

2025-05-15_17.26.11.png
 
this will probably work
Python:
on death:
    loop all items in the inventory of player:
        if loop-item is a skull
            #your code here
 
bah I did player and not victim and it needs to be exact item name
Code:
on death of player:
    loop all items in victim's inventory:
        if loop-item is zombie skull: