outsourcing of messages into one file per language
parent
fe12a4409b
commit
b0b328c67d
|
@ -0,0 +1,35 @@
|
||||||
|
toxic, konnte dem warmen Glühen des giftigen Wassers nicht widerstehen.
|
||||||
|
toxic, wollte wie Hulk werden.
|
||||||
|
toxic, ist verstrahlt.
|
||||||
|
lava, dachte über Lava laufen ist wie über Wasser laufen.
|
||||||
|
lava, nahm ein zu heißes Bad in der Lava.
|
||||||
|
lava, schmolz dahin.
|
||||||
|
lava, verbrennt wie Papier.
|
||||||
|
lava, verbrannte sich die Finger.
|
||||||
|
drown, ertrank.
|
||||||
|
drown, verlor die Luft.
|
||||||
|
drown, dachte, er sei ein Anker.
|
||||||
|
drown, vergass, dass er kein Fisch ist.
|
||||||
|
drown, ist untergetauch.
|
||||||
|
drown, wohnt jetzt bei den Fischen.
|
||||||
|
drown, starb an einer Überdosis Dihydrogenmonooxyd.
|
||||||
|
fire, verbrannte sich die Finger.,
|
||||||
|
fire, wurde geröstet.,
|
||||||
|
fire, brennt wie eine Fackel.,
|
||||||
|
fire, spielte mit dem Feuer.
|
||||||
|
default, starb.
|
||||||
|
default, machte etwas tödliches.
|
||||||
|
default, ist irgendwie nicht mehr da.
|
||||||
|
default, weilt nicht mehr unter den Lebenden.
|
||||||
|
default, sieht die Radieschen von unten.
|
||||||
|
default, dient als Dünger.
|
||||||
|
exhausted, war erschöpft.
|
||||||
|
thirst, verdurstete.
|
||||||
|
pvp, geschlagen
|
||||||
|
pvp, wurde verletzt
|
||||||
|
pvp, angeschossen
|
||||||
|
player, weil er nervte.
|
||||||
|
player, denn er brachte den Müll nicht raus.
|
||||||
|
player, für das ungeputzte Bad.
|
||||||
|
mobs, und ist das Mittagessen.
|
||||||
|
mobs, weil er im Weg war.
|
|
@ -0,0 +1,101 @@
|
||||||
|
toxic, melted into a ball of radioactivity.
|
||||||
|
toxic, thought chemical waste was cool.
|
||||||
|
toxic, melted into a jittering pile of flesh.
|
||||||
|
toxic, couldn't resist that warm glow of toxic water.
|
||||||
|
toxic, dug straight down.
|
||||||
|
toxic, went into the toxic curtain.
|
||||||
|
toxic, thought it was a toxic-tub.
|
||||||
|
toxic, is radioactive.
|
||||||
|
toxic, didn't know toxic water was radioactive.
|
||||||
|
lava, melted into a ball of fire.
|
||||||
|
lava, thought lava was cool.
|
||||||
|
lava, melted into a ball of fire.
|
||||||
|
lava, couldn't resist that warm glow of lava.
|
||||||
|
lava, dug straight down.
|
||||||
|
lava, went into the lava curtain.
|
||||||
|
lava, thought it was a hottub.
|
||||||
|
lava, is melted.
|
||||||
|
lava, didn't know lava was hot.
|
||||||
|
drown, drowned.
|
||||||
|
drown, ran out of air.
|
||||||
|
drown, failed at swimming lessons.
|
||||||
|
drown, tried to impersonate an anchor.
|
||||||
|
drown, forgot he wasn't a fish.
|
||||||
|
drown, blew one too many bubbles.
|
||||||
|
fire, burned to a crisp.
|
||||||
|
fire, got a little too warm.
|
||||||
|
fire, got too close to the camp fire.
|
||||||
|
fire, just got roasted, hotdog style.
|
||||||
|
fire, got burned up. More light that way.
|
||||||
|
default, died.
|
||||||
|
default, did something fatal.
|
||||||
|
default, gave up on life.
|
||||||
|
default, is somewhat dead now.
|
||||||
|
default, passed out -permanently.
|
||||||
|
default, kinda screwed up.
|
||||||
|
default, couldn't fight very well.
|
||||||
|
default, got 0wn3d.
|
||||||
|
default, got SMOKED.
|
||||||
|
default, got hurted by Oerkki.
|
||||||
|
default, got blowed up.
|
||||||
|
fall, thought, he could fly.
|
||||||
|
fall, dropped like a stone.
|
||||||
|
exhausted, was exhausted.
|
||||||
|
thirst, was too thirsty.
|
||||||
|
pvp, fisted
|
||||||
|
pvp, sliced up
|
||||||
|
pvp, rekt
|
||||||
|
pvp, punched
|
||||||
|
pvp, hacked
|
||||||
|
pvp, skewered
|
||||||
|
pvp, blasted
|
||||||
|
pvp, tickled
|
||||||
|
pvp, gotten
|
||||||
|
pvp, sword checked
|
||||||
|
pvp, turned into a jittering pile of flesh
|
||||||
|
pvp, buried
|
||||||
|
pvp, served
|
||||||
|
pvp, poked
|
||||||
|
pvp, attacked viciously
|
||||||
|
pvp, busted up
|
||||||
|
pvp, schooled
|
||||||
|
pvp, told
|
||||||
|
pvp, learned
|
||||||
|
pvp, chopped up
|
||||||
|
pvp, deader than ded ded ded
|
||||||
|
pvp, CHOSEN to be the ONE
|
||||||
|
pvp, all kinds of messed up
|
||||||
|
pvp, smoked like a Newport
|
||||||
|
pvp, hurted
|
||||||
|
pvp, ballistic-ed
|
||||||
|
pvp, jostled
|
||||||
|
pvp, messed-da-frig-up
|
||||||
|
pvp, lanced
|
||||||
|
pvp, shot
|
||||||
|
pvp, knocked da heck out
|
||||||
|
pvp, pooped on
|
||||||
|
player, for talking smack about thier mother.
|
||||||
|
player, for cheating at Tic-Tac-Toe.
|
||||||
|
player, for being a stinky poop butt.
|
||||||
|
player, for letting Baggins grief.
|
||||||
|
player, because it felt like the right thing to do.
|
||||||
|
player, for spilling milk.
|
||||||
|
player, for wearing a n00b skin.
|
||||||
|
player, for not being good at PVP.
|
||||||
|
player, because they are a n00b.
|
||||||
|
player, for reasons uncertain.
|
||||||
|
player, for using a tablet.
|
||||||
|
player, with the quickness.
|
||||||
|
player, while texting.
|
||||||
|
mobs, and was eaten with a gurgling growl.
|
||||||
|
mobs, then was cooked for dinner.
|
||||||
|
mobs, then went to the supermarket.
|
||||||
|
mobs, badly.
|
||||||
|
mobs, terribly.
|
||||||
|
mobs, horribly.
|
||||||
|
mobs, in a haphazard way.
|
||||||
|
mobs, that sparkles in the twilight with that evil grin.
|
||||||
|
mobs, and now is covered by blood.
|
||||||
|
mobs, so swiftly, that not even Chuck Norris could block.
|
||||||
|
mobs, for talking smack about Oerkkii's mother.
|
||||||
|
mobs, and grimmaced wryly.
|
219
init.lua
219
init.lua
|
@ -46,197 +46,27 @@ local sby = { en = " by ", de = " von " }
|
||||||
local swith = {en = " with ", de = " mit " }
|
local swith = {en = " with ", de = " mit " }
|
||||||
|
|
||||||
-- Default messages
|
-- Default messages
|
||||||
-- Toxic death messages
|
|
||||||
messages.toxic = { en = {
|
|
||||||
" melted into a ball of radioactivity.",
|
|
||||||
" thought chemical waste was cool.",
|
|
||||||
" melted into a jittering pile of flesh.",
|
|
||||||
" couldn't resist that warm glow of toxic water.",
|
|
||||||
" dug straight down.",
|
|
||||||
" went into the toxic curtain.",
|
|
||||||
" thought it was a toxic-tub.",
|
|
||||||
" is radioactive.",
|
|
||||||
" didn't know toxic water was radioactive."
|
|
||||||
},
|
|
||||||
de={
|
|
||||||
" konnte dem warmen Glühen des giftigen Wassers nicht widerstehen.",
|
|
||||||
" wollte wie Hulk werden.",
|
|
||||||
" ist verstrahlt."
|
|
||||||
}}
|
|
||||||
-- Lava death messages
|
|
||||||
messages.lava = { en = {
|
|
||||||
" melted into a ball of fire.",
|
|
||||||
" thought lava was cool.",
|
|
||||||
" melted into a ball of fire.",
|
|
||||||
" couldn't resist that warm glow of lava.",
|
|
||||||
" dug straight down.",
|
|
||||||
" went into the lava curtain.",
|
|
||||||
" thought it was a hottub.",
|
|
||||||
" is melted.",
|
|
||||||
" didn't know lava was hot."
|
|
||||||
},de={
|
|
||||||
" dachte über Lava laufen ist wie über Wasser laufen.",
|
|
||||||
" nahm ein zu heißes Bad in der Lava.",
|
|
||||||
" schmolz dahin.",
|
|
||||||
" verbrennt wie Papier.",
|
|
||||||
" verbrannte sich die Finger."
|
|
||||||
}}
|
|
||||||
|
|
||||||
-- Drowning death messages
|
for _,lan in ipairs({"en","de"}) do
|
||||||
messages.water = { en = {
|
local infile=minetest.get_modpath("death_messages").."/"..lan..".txt"
|
||||||
" drowned.",
|
local file = io.open(infile, "r")
|
||||||
" ran out of air.",
|
for line in file:lines() do
|
||||||
" failed at swimming lessons.",
|
if line:sub(1,1) ~= "#" then -- lines starting with # are handled as comment
|
||||||
" tried to impersonate an anchor.",
|
local attribs = line:gsub("\r",""):split(",",true)
|
||||||
" forgot he wasn't a fish.",
|
if #attribs>1 then
|
||||||
" blew one too many bubbles."},
|
if messages[attribs[1]]==nil then
|
||||||
de = {
|
messages[attribs[1]]={}
|
||||||
" ertrank.",
|
end
|
||||||
" verlor die Luft.",
|
if messages[attribs[1]][lan] == nil then
|
||||||
" dachte, er sei ein Anker.",
|
messages[attribs[1]][lan] = {}
|
||||||
" vergass, dass er kein Fisch ist.",
|
end
|
||||||
" ist untergetauch.",
|
table.insert(messages[attribs[1]][lan],attribs[2])
|
||||||
" wohnt jetzt bei den Fischen.",
|
end
|
||||||
" starb an einer Überdosis Dihydrogenmonooxyd."
|
end
|
||||||
}}
|
end
|
||||||
--end
|
end
|
||||||
|
|
||||||
-- Burning death messages
|
print(dump2(messages))
|
||||||
messages.fire = {en = {
|
|
||||||
" burned to a crisp.",
|
|
||||||
" got a little too warm.",
|
|
||||||
" got too close to the camp fire.",
|
|
||||||
" just got roasted, hotdog style.",
|
|
||||||
" got burned up. More light that way."
|
|
||||||
},de={
|
|
||||||
" verbrannte sich die Finger.",
|
|
||||||
" wurde geröstet.",
|
|
||||||
" brennt wie eine Fackel.",
|
|
||||||
" spielte mit dem Feuer."
|
|
||||||
}}
|
|
||||||
|
|
||||||
-- Other death messages
|
|
||||||
messages.other = {en = {
|
|
||||||
" died.",
|
|
||||||
" did something fatal.",
|
|
||||||
" gave up on life.",
|
|
||||||
" is somewhat dead now.",
|
|
||||||
" passed out -permanently.",
|
|
||||||
" kinda screwed up.",
|
|
||||||
" couldn't fight very well.",
|
|
||||||
" got 0wn3d.",
|
|
||||||
" got SMOKED.",
|
|
||||||
" got hurted by Oerkki.",
|
|
||||||
" got blowed up."
|
|
||||||
},de={
|
|
||||||
" starb.",
|
|
||||||
" machte etwas tödliches.",
|
|
||||||
" ist irgendwie nicht mehr da.",
|
|
||||||
" weilt nicht mehr unter den Lebenden.",
|
|
||||||
" sieht die Radieschen von unten.",
|
|
||||||
" dient als Dünger."
|
|
||||||
}}
|
|
||||||
|
|
||||||
-- exhausted
|
|
||||||
messages.exhausted = {en = {
|
|
||||||
" was exhausted."
|
|
||||||
},
|
|
||||||
de = {
|
|
||||||
" war erschöpft."
|
|
||||||
}}
|
|
||||||
-- thirst
|
|
||||||
messages.thirst = {en = {
|
|
||||||
" was too thirsty."
|
|
||||||
},
|
|
||||||
de = {
|
|
||||||
" verdurstete."
|
|
||||||
}}
|
|
||||||
messages.sunburn = {en = {
|
|
||||||
" burned by sun."
|
|
||||||
},
|
|
||||||
de = {
|
|
||||||
" ist von der Sonne verbrannt."
|
|
||||||
}}
|
|
||||||
|
|
||||||
-- PVP Messages
|
|
||||||
messages.pvp = {en = {
|
|
||||||
" fisted",
|
|
||||||
" sliced up",
|
|
||||||
" rekt",
|
|
||||||
" punched",
|
|
||||||
" hacked",
|
|
||||||
" skewered",
|
|
||||||
" blasted",
|
|
||||||
" tickled",
|
|
||||||
" gotten",
|
|
||||||
" sword checked",
|
|
||||||
" turned into a jittering pile of flesh",
|
|
||||||
" buried",
|
|
||||||
" served",
|
|
||||||
" poked",
|
|
||||||
" attacked viciously",
|
|
||||||
" busted up",
|
|
||||||
" schooled",
|
|
||||||
" told",
|
|
||||||
" learned",
|
|
||||||
" chopped up",
|
|
||||||
" deader than ded ded ded",
|
|
||||||
" CHOSEN to be the ONE",
|
|
||||||
" all kinds of messed up",
|
|
||||||
" smoked like a Newport",
|
|
||||||
" hurted",
|
|
||||||
" ballistic-ed",
|
|
||||||
" jostled",
|
|
||||||
" messed-da-frig-up",
|
|
||||||
" lanced",
|
|
||||||
" shot",
|
|
||||||
" knocked da heck out",
|
|
||||||
" pooped on"
|
|
||||||
},de={
|
|
||||||
" geschlagen",
|
|
||||||
" wurde verletzt",
|
|
||||||
" angeschossen"
|
|
||||||
}}
|
|
||||||
|
|
||||||
-- Player Messages
|
|
||||||
messages.player = {en = {
|
|
||||||
" for talking smack about thier mother.",
|
|
||||||
" for cheating at Tic-Tac-Toe.",
|
|
||||||
" for being a stinky poop butt.",
|
|
||||||
" for letting Baggins grief.",
|
|
||||||
" because it felt like the right thing to do.",
|
|
||||||
" for spilling milk.",
|
|
||||||
" for wearing a n00b skin.",
|
|
||||||
" for not being good at PVP.",
|
|
||||||
" because they are a n00b.",
|
|
||||||
" for reasons uncertain.",
|
|
||||||
" for using a tablet.",
|
|
||||||
" with the quickness.",
|
|
||||||
" while texting."
|
|
||||||
},de={
|
|
||||||
" weil er nervte.",
|
|
||||||
" denn er brachte den Müll nicht raus.",
|
|
||||||
" für das ungeputzte Bad."
|
|
||||||
}}
|
|
||||||
|
|
||||||
-- MOB After Messages
|
|
||||||
messages.mobs = {en = {
|
|
||||||
" and was eaten with a gurgling growl.",
|
|
||||||
" then was cooked for dinner.",
|
|
||||||
" then went to the supermarket.",
|
|
||||||
" badly.",
|
|
||||||
" terribly.",
|
|
||||||
" horribly.",
|
|
||||||
" in a haphazard way.",
|
|
||||||
" that sparkles in the twilight with that evil grin.",
|
|
||||||
" and now is covered by blood.",
|
|
||||||
" so swiftly, that not even Chuck Norris could block.",
|
|
||||||
" for talking smack about Oerkkii's mother.",
|
|
||||||
" and grimmaced wryly."
|
|
||||||
},de={
|
|
||||||
" und ist das Mittagessen.",
|
|
||||||
" weil er im Weg war."
|
|
||||||
}}
|
|
||||||
|
|
||||||
local function get_message(mtype)
|
local function get_message(mtype)
|
||||||
if RANDOM_MESSAGES then
|
if RANDOM_MESSAGES then
|
||||||
|
@ -353,7 +183,16 @@ minetest.register_on_dieplayer(function(player,reason)
|
||||||
--player:setpos(death)
|
--player:setpos(death)
|
||||||
--minetest.sound_play("pacmine_death", { gain = 0.35}) NOPE!!!
|
--minetest.sound_play("pacmine_death", { gain = 0.35}) NOPE!!!
|
||||||
else
|
else
|
||||||
minetest.chat_send_all(string.char(0x1b)..player:get_player_name().." "..reason)
|
print(dump2(reason))
|
||||||
|
if reason.type ~= nil then
|
||||||
|
minetest.chat_send_all(string.char(0x1b)..player:get_player_name().." "..reason.type)
|
||||||
|
else
|
||||||
|
if (#reason > 1) then
|
||||||
|
minetest.chat_send_all(string.char(0x1b)..player:get_player_name().." "..reason[1])
|
||||||
|
else
|
||||||
|
minetest.chat_send_all(string.char(0x1b)..player:get_player_name().." "..reason)
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue