Last victim

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

snepzy

Member
Aug 6, 2023
2
0
1
So there is "Last attatcker" (last player that hit you) in skript but there isnt "Last victim" (Last player you hit). Anyone knows if it does exsists or how to create it?

Thanks
 
So there is "Last attatcker" (last player that hit you) in skript but there isnt "Last victim" (Last player you hit). Anyone knows if it does exsists or how to create it?

Thanks
Not sure if it exists, but in the case it doesn't; you can save that data in a variable. You'd use an on death event, checking that both attacker and victim are players. Store the victim's username into a var like {lastvic::%attacker%}, You could then use a custom command to check a player's last killed player or really any mob if you modify the code slightly.