[Mod] Death Messages [0.1.2] [death_messages]

4aiman
Member
 
Posts: 1208
Joined: Mon Jul 30, 2012 05:47

by 4aiman » Thu Mar 20, 2014 18:13

get_breath is good :)
Better API is good too. (Have never said it's not, actually ;)
 

User avatar
SaKeL
Member
 
Posts: 652
Joined: Tue Apr 14, 2015 18:39
GitHub: JurajVajda
IRC: SaKeL
In-game: SaKeL

Re: [Mod]Death Messages[0.1.2 beta][death_messages]

by SaKeL » Wed Mar 02, 2016 21:04

would be nice to check if is player already dead.... now when player dies from hunger and afk, death messages will loop and spam the chat :)
 

bark
Member
 
Posts: 35
Joined: Thu Sep 24, 2015 13:25
In-game: bark

Re: [Mod]Death Messages[0.1.2 beta][death_messages]

by bark » Sat Aug 13, 2016 19:05

I love this mod! Adds a lot of fun to dying.

Deathmessages spamming the chat when player is taking damage would be nice to see fixed, as SaKeL mentions. The spam loop also occurs when dying in lava.

Also, I wrote some more death messages (most of the original ones are included in this list) that can be implemented in the mod if you like
Code: Select all

-- Other death messages
messages.other = {
        " died.",
        " died trying.",
        " didn't survive that final blow.",
        " did not survive.",
        " failed at staying alive.",
        " had a meeting with destiny.",
        " died and resurrected.",
        " made a deadly decision.",
        " is no more.",
        " was being reckless.",
        " did something fatal.",
        " gave up on life.",
        " is somewhat dead now.",
        " flatlined.",
        " took a fatal beating.",
        " is a pile of bones.",
        " is in need of a funeral service.",
        " passed out permanently.",
        " is knocking at the gates.",
        " tried to survive, but didn't.",
        " had an appointment with fate."
}

-- Lava death messages
messages.lava = {
        " melted into a ball of fire.",
        " thought lava was cool.",
        " melted into a ball of fire.",
        " dug straight down and landed in lava.",
        " didn't know lava was hot.",
        " tried swimming in lava and failed at it.",
        " got stuck in lava and stayed there.",
        " can't swim in lava."
}

-- Drowning death messages
messages.water = {
        " drowned.",
        " ran out of air.",
        " failed at swimming lessons.",
        " tried to impersonate an anchor.",
        " forgot he wasn't a fish.",
        " blew one too many bubbles.",
        " couldn't reach the surface in time.",
        " was lost at sea."
}

 

wilkgr76
Member
 
Posts: 831
Joined: Wed Feb 18, 2015 02:44
GitHub: wilkgr76

Re: [Mod]Death Messages[0.1.2 beta][death_messages]

by wilkgr76 » Sat Aug 20, 2016 08:51

[player] became a pancake (Fall)
[player] is now medium to well-roasted. (Lava/fire)
A [mob] finds [player] delicious. (Mob)
[killer] won't be bothered by [player] for some time... (PvP)
[killer] sent [player] as a tribute to Hades (PvP)
[player] popped in to visit Hades. (Anything really)
<[player]> THE FALL WAS OVER 9000!!! (i.e. looks like a chat message xD) (Fall)
[player] was walking and texting (Lava/fire/fall)
[killer]'s [weapon] wasn't very polite to [player] (PvP)
[player] breathed his last.

More coming in another post ;)
N/A
 

User avatar
bigfoot
Member
 
Posts: 203
Joined: Fri Sep 02, 2016 23:31
Location: Somewhere between polar bears and penguins.
GitHub: bigfoot547
IRC: bigfoot547 or bigfoot
In-game: bigfoot547 or bigfoot

Re: [Mod]Death Messages[0.1.2 beta][death_messages]

by bigfoot » Wed Oct 19, 2016 00:46

So, I whipped up some code that you can use for detecting if a player was killed by another player or a mob. I which case, it will say the mobname (e.g. "mobs:dungeon_master").
Death messages:
[player] was killed by [player].
[player] was killed by [mobname]

+ So, here's the code!

Oh! By the way, you can use this freely. You have my permission.
Last edited by bigfoot on Wed Nov 22, 2017 23:02, edited 2 times in total.
God's not dead, He's surely alive!
My Stuff | My User Page | Check out my website!
<bigfoot547> I major in existing. | <RedPanda246> Not every day is good, but there is good in every day.
Stay elusive ⓐⓝⓓ ⓣⓐⓛⓚ ⓘⓝ ⓒⓘⓡⓒⓛⓔⓢ!
 

User avatar
azekill_DIABLO
Member
 
Posts: 7489
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO
 

User avatar
Wuzzy
Member
 
Posts: 3562
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: [Mod]Death Messages[0.1.2 beta][death_messages]

by Wuzzy » Fri Jun 09, 2017 11:41

Some messages have poor grammar:

You forgot he wasn't a fish.

You is somewhat dead now.
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH
 

User avatar
Beerholder
Member
 
Posts: 199
Joined: Wed Aug 03, 2016 20:23
GitHub: evrooije
In-game: Beerholder

Re: [Mod]Death Messages[0.1.2 beta][death_messages]

by Beerholder » Fri Jun 09, 2017 12:33

Wuzzy wrote:Some messages have poor grammar:

You forgot he wasn't a fish.

You is somewhat dead now.


Somebody set us up the bomb ;)
 

User avatar
azekill_DIABLO
Member
 
Posts: 7489
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO
 

User avatar
ManElevation
Member
 
Posts: 896
Joined: Tue Aug 02, 2016 22:04
Location: Madrid,Spain
GitHub: ManElevation
IRC: ManElevation
In-game: ManElevation

Re:

by ManElevation » Thu Nov 16, 2017 18:20

CraigyDavi wrote:Cool mod. I now use this mod on my server rather than my terrible death messages mod :)

Also does anyone know if this would be possible?
When someone kills someone else it would show as a message:
Code: Select all
player1 killed player2

hum... city_block mod has this
Code: Select all
minetest.chat_send_all("Player "..name.." sent to jail for killing " .. pname .." without reason in town")

you could modified it to do it what u want.
https://github.com/minetest-mods/city_block/blob/master/init.lua
My Public Mods! Discord: Rottweiler Games#3368
 

User avatar
ManElevation
Member
 
Posts: 896
Joined: Tue Aug 02, 2016 22:04
Location: Madrid,Spain
GitHub: ManElevation
IRC: ManElevation
In-game: ManElevation

Re:

by ManElevation » Sat Nov 18, 2017 22:19

CraigyDavi wrote:Cool mod. I now use this mod on my server rather than my terrible death messages mod :)

Also does anyone know if this would be possible?
When someone kills someone else it would show as a message:
Code: Select all
player1 killed player2

here
Code: Select all
minetest.register_on_punchplayer(function(player, hitter, _, _, _, damage)
   if not (hitter and hitter:is_player()) then
      return
   end

   local hp = player:get_hp()
   if hp - damage > 0 or hp <= 0 then
      return
   end


   local hitter_name = hitter:get_player_name()
   local player_name = player:get_player_name()
   
   minetest.chat_send_player(hitter_name, ""..hitter_name.." killed " .. player_name .."")
end)
My Public Mods! Discord: Rottweiler Games#3368
 

User avatar
bigfoot
Member
 
Posts: 203
Joined: Fri Sep 02, 2016 23:31
Location: Somewhere between polar bears and penguins.
GitHub: bigfoot547
IRC: bigfoot547 or bigfoot
In-game: bigfoot547 or bigfoot

Re:

by bigfoot » Wed Nov 22, 2017 23:04

CraigyDavi wrote:Cool mod. I now use this mod on my server rather than my terrible death messages mod :)

Also does anyone know if this would be possible?
When someone kills someone else it would show as a message:
Code: Select all
player1 killed player2


Been there, done that ;)
Here's the link to the post...

EDIT: Fixed link, also my code is more elaborate and informative than ManElevation's code
Last edited by bigfoot on Sat Nov 25, 2017 16:29, edited 1 time in total.
God's not dead, He's surely alive!
My Stuff | My User Page | Check out my website!
<bigfoot547> I major in existing. | <RedPanda246> Not every day is good, but there is good in every day.
Stay elusive ⓐⓝⓓ ⓣⓐⓛⓚ ⓘⓝ ⓒⓘⓡⓒⓛⓔⓢ!
 

User avatar
ManElevation
Member
 
Posts: 896
Joined: Tue Aug 02, 2016 22:04
Location: Madrid,Spain
GitHub: ManElevation
IRC: ManElevation
In-game: ManElevation

Re: Re:

by ManElevation » Thu Nov 23, 2017 14:49

bigfoot547 wrote:EDIT: Fixed link, also my code is more elaborate and informative than ManElivation's code

ah dint see that :P nice!
My Public Mods! Discord: Rottweiler Games#3368
 

User avatar
azekill_DIABLO
Member
 
Posts: 7489
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO
 

User avatar
Evergreen
Member
 
Posts: 2135
Joined: Sun Jan 06, 2013 01:22
Location: A forest in the midwest
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen

Re: Re:

by Evergreen » Thu Nov 23, 2017 17:03

bigfoot547 wrote:
CraigyDavi wrote:Cool mod. I now use this mod on my server rather than my terrible death messages mod :)

Also does anyone know if this would be possible?
When someone kills someone else it would show as a message:
Code: Select all
player1 killed player2


Been there, done that ;)
Here's the link to the post...

EDIT: Fixed link, also my code is more elaborate and informative than ManElivation's code

Thanks for the contribution! If you want to be credited in the commit log than you can create a pull request, though it's fine with me if you want me to commit your changes and credit you in a code comment.
Back from the dead!
 

User avatar
Evergreen
Member
 
Posts: 2135
Joined: Sun Jan 06, 2013 01:22
Location: A forest in the midwest
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen

Re: [Mod]Death Messages[0.1.2 beta][death_messages]

by Evergreen » Thu Nov 23, 2017 17:08

I think I will make it so the random messages are customizable in the settings.txt file (keeping the current set of defaults). That way if people want to use their own set of messages they can change it for themselves instead of having to create a pull request.
Back from the dead!
 

User avatar
bigfoot
Member
 
Posts: 203
Joined: Fri Sep 02, 2016 23:31
Location: Somewhere between polar bears and penguins.
GitHub: bigfoot547
IRC: bigfoot547 or bigfoot
In-game: bigfoot547 or bigfoot

Re: [Mod] Death Messages [0.1.2] [death_messages]

by bigfoot » Sat Nov 25, 2017 16:29

Ok, I'll create a pull request later today :)
God's not dead, He's surely alive!
My Stuff | My User Page | Check out my website!
<bigfoot547> I major in existing. | <RedPanda246> Not every day is good, but there is good in every day.
Stay elusive ⓐⓝⓓ ⓣⓐⓛⓚ ⓘⓝ ⓒⓘⓡⓒⓛⓔⓢ!
 

User avatar
bigfoot
Member
 
Posts: 203
Joined: Fri Sep 02, 2016 23:31
Location: Somewhere between polar bears and penguins.
GitHub: bigfoot547
IRC: bigfoot547 or bigfoot
In-game: bigfoot547 or bigfoot

Re: Re:

by bigfoot » Sat Nov 25, 2017 16:30

azekill_DIABLO wrote:
bigfoot547 wrote:ManElivation

What? Who is this guy? :P


lol where'd u git that from ;)
God's not dead, He's surely alive!
My Stuff | My User Page | Check out my website!
<bigfoot547> I major in existing. | <RedPanda246> Not every day is good, but there is good in every day.
Stay elusive ⓐⓝⓓ ⓣⓐⓛⓚ ⓘⓝ ⓒⓘⓡⓒⓛⓔⓢ!
 

User avatar
Hamlet
Member
 
Posts: 506
Joined: Sat Jul 29, 2017 21:09
Location: Lombardy, Italy
GitHub: h4ml3t
IRC: H4mlet

Re: [Mod] Death Messages [0.2.0] [death_messages]

by Hamlet » Wed Feb 07, 2018 17:34

EDIT
my fork no longer exists
Last edited by Hamlet on Sun Sep 09, 2018 11:34, edited 1 time in total.
"It is not necessary to hope in order to undertake, nor to succeed in order to persevere." (Unknown)
 

User avatar
scottwolff
Member
 
Posts: 124
Joined: Sat Apr 30, 2016 06:15
Location: Central Illinois
In-game: scottwolff or some variant of iasiney

Re: [Mod] Death Messages [0.1.2] [death_messages]

by scottwolff » Wed Feb 14, 2018 22:13

Oh the shame. Now everyone knows your pain or can laugh at you.
Seriously though, good mod.
 

ademant
New member
 
Posts: 4
Joined: Sun Sep 09, 2018 07:11
Location: Euskirchen, Duitsland
GitHub: ademant
In-game: ademant

Re: [Mod] Death Messages [0.1.2] [death_messages]

by ademant » Sun Sep 09, 2018 07:28

As a beginner for modding minetest I forked this mod and tried to add german.
The language is checked and then a random message of the language is printed.

Also it tries to identify death by starving, sunburn and thirst if mod is installed.

The code can be found at: https://notabug.org/ademant/death_messages.git
 

User avatar
Hamlet
Member
 
Posts: 506
Joined: Sat Jul 29, 2017 21:09
Location: Lombardy, Italy
GitHub: h4ml3t
IRC: H4mlet

Re: [Mod] Death Messages [0.1.2] [death_messages]

by Hamlet » Sun Sep 09, 2018 11:46

ademant wrote:As a beginner for modding minetest I forked this mod and tried to add german.
The language is checked and then a random message of the language is printed. [...]


Hello and welcome!
If you wish to add multilanguage support to a mod then I suggest you to use the Internationalization Library ("Intllib") mod: it allows to use external localization files instead of hardcoding the translation strings in the source code.
"It is not necessary to hope in order to undertake, nor to succeed in order to persevere." (Unknown)
 

ademant
New member
 
Posts: 4
Joined: Sun Sep 09, 2018 07:11
Location: Euskirchen, Duitsland
GitHub: ademant
In-game: ademant

Re: [Mod] Death Messages [0.1.2] [death_messages]

by ademant » Mon Sep 10, 2018 13:24

Hamlet wrote:Hello and welcome!
If you wish to add multilanguage support to a mod then I suggest you to use the Internationalization Library ("Intllib") mod: it allows to use external localization files instead of hardcoding the translation strings in the source code.


Sure; I read the code, but it is not really for use with death messages. Most of them can't be translated to another language.
 

Previous

Return to Mod Releases



Who is online

Users browsing this forum: No registered users and 23 guests