Void Death

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

Pykaxe

Member
Jul 26, 2017
32
1
0
23
Hi

I'm not good at script. Can somebody please help me make a void death script that will say in Chat

"victim was knocked into the void by attacker"

I also have a vanish script, so if the attacker is in {vanish.%player%} then it should say

"victim was knocked into the void by unknown"

if they weren't knocked into the void by anyone, it would just say

"player fell in the void"

Thank you
 
@Pykaxe
code_language.skript:
on death:
    victim is a player
    if damage cause is void:
        if attacker is set:
            if {vanish.%attacker%} is set:
                set death message to "%victim% was knocked out by unknown."
                stop
            else:
                set death message to "%victim% was knocked out by %attacker%."
                stop
        else:
            set death message to "%victim% fell in the void."
            stop