Jump to content

Death messages script


DeltaRays

Recommended Posts

The title says everything

options:
    heart: 
    ver: 0.001

on death of player:
    set death message to ""
    if attacker is a player:
        if projectile is set:
            send "&b%victim% &fwas shot by &b%attacker%&f &8[&b%attacker's health%{@heart}&8]&f!" to all players where [{deathmsg::%input's uuid%} = true]
        else if attacker is set:
            send "&b%victim% &fwas beaten to death by &b%attacker%&f &8[&b%attacker's health%{@heart}&8]&f!" to all players where [{deathmsg::%input's uuid%} = true]
    else if damage was caused by potion:
        send "&b%victim% &fwas killed by &e&k--&fmagic&e&k--&f." to all players where [{deathmsg::%input's uuid%} = true]
    else if damage was caused by fall:
        send "&fGravity got the best of &b%victim%&f." to all players where [{deathmsg::%input's uuid%} = true]
    else if damage was caused by lava:
        send "&b%victim% &fthought swimming in lava was a good idea." to all players where [{deathmsg::%input's uuid%} = true]
    else if damage was caused by burning:
        send "&b%victim% &fjust got ##Roasted." to all players where [{deathmsg::%input's uuid%} = true]
    else if damage was caused by drown:
        send "&b%victim% &fnever learned how to swim." to all players where [{deathmsg::%input's uuid%} = true]
    else if damage was caused by starvation:
        send "&b%victim% &fforgot how to use the microwave." to all players where [{deathmsg::%input's uuid%} = true]
    else if damage was caused by lightning:
        send "&b%victim% &fwas struck by lightning." to all players where [{deathmsg::%input's uuid%} = true]
    else if damage was caused by block explosion:
        send "&b%victim% &fgot too close to an explosion." to all players where [{deathmsg::%input's uuid%} = true]
    else if damage was caused by contact:
        send "&b%victim% &fsat on a prickle." to all players where [{deathmsg::%input's uuid%} = true]
    else if damage was caused by suffocation:
        send "&b%victim% &fforgot how to breathe." to all players where [{deathmsg::%input's uuid%} = true]
    else if damage was caused by melting:
        send "&b%victim% &fsweat to death." to all players where [{deathmsg::%input's uuid%} = true]
    else if damage was caused by suicide:
        send "&b%victim% &fsaw the light at the end of the tunnel." to all players where [{deathmsg::%input's uuid%} = true]
    else if damage was caused by void:
        send "&b%victim% &fstared into the abyss for too long, and the abyss stared back at them." to all players where [{deathmsg::%input's uuid%} = true]
    else if damage was caused by poison:
        send "&b%victim% &fdrank bleach irresponsibly." to all players where [{deathmsg::%input's uuid%} = true]
    else if damage was caused by wither:
        send "&b%victim% &fwithered away..." to all players where [{deathmsg::%input's uuid%} = true]
    else if damage was caused by falling block:
        send "&b%victim% &fwas crushed by a block because it wanted love." to all players where [{deathmsg::%input's uuid%} = true]
    else if damage was caused by hitting wall while flying:
        send "&b%victim% &fdidn't see a block." to all players where [{deathmsg::%input's uuid%} = true]
    else if damage was caused by cramming:
        send "&fThe huddle was too much for &b%victim%&f." to all players where [{deathmsg::%input's uuid%} = true]
    else:
        send "&b%victim% &fdied." to all players where [{deathmsg::%input's uuid%} = true]


command /toggledeathmsgs [<text>]:
    trigger:
        if {deathmsg::%player's uuid%} = true:
            set {deathmsg::%player's uuid%} to false
            send "&cDisabled death messages!"
        else:
            set {deathmsg::%player's uuid%} to true
            send "&aEnabled death messages!"

 

Link to comment
Share on other sites

  • 1 year later...

Locked - Necroposting

Please avoid posting on threads that have been inactive for over a month.

Support  July 29, 2020 → November 3, 2020

► Helper November 3, 2020 → February 22, 2021

► Moderator February 22, 2021 → May 17, 2021

 I might not always respond to forum dms, however I am always contactable on discord (mig#0069)

Screen Shot 2020-03-20 at 5.23.33 pm.png

Link to comment
Share on other sites

  • Migins locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...