From 1232714c1290c5a21ecb7d926e960b6bc10f3e3f Mon Sep 17 00:00:00 2001 From: Unfunny Date: Mon, 22 Dec 2025 16:22:57 -0500 Subject: [PATCH] Add death messages and welcome messages --- control.lua | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 control.lua diff --git a/control.lua b/control.lua new file mode 100644 index 0000000..4ccfa88 --- /dev/null +++ b/control.lua @@ -0,0 +1,55 @@ +--Refactored by Gemini (thx i suck at lua) +local welcome_messages = { + "welcome to capitalism 2, you're in for it", + "The factory must grow.", + "Efficiency is key.", + "I subject you to the ultimate torture: no more linked belts", + "If you die on cap 2, I will laugh.", + "Cap 0 never existed and can't hurt you", + "The game is not broken, you are.", + "RATIO FAILED! (To ratio, get more likes than someone)", + "LIVE THE DREAM WITH A TIME MACHINE, YOU'VE BEEN WAITING FOREVER!", + "ALOONE AT THE EDGE OF THE UNIVERSE, HUMMING A TUNE... FOR MEERLY DREAMING WE WERE SNOW", + "here at capitalism game 2 where we pride ourselves on shenanigans", + "we got the entire continent to ourselves", + "we got the entire world to ourselves" +} + +local death_messages = { + "forgot how to factory.", + "was deemed inefficient.", + "has been terminated.", + "didn't check for trains.", + "is sleeping with the biters.", + "encountered a fatal exception.", + "tried reconstructing v2", + "got returned to sender.", + "is now part of the ecosystem.", + "went insane.", + "desynced.. nah just kidding you got pwned", + "died on cap 2, which 9/10 doctors say is a skill issue.", + ": The system files are corrupeted. Please refer to the Wii Operations Manual for help troubleshooting.", + "was terminid scum", + "was a socialist automaton", + "was a terrorist illuminate", + "did not hop on helldivers", + "betrayed the cause of Managed Democracy", + "betrayed the cause of capitalism", + "missed the MLG", + "HAD ZERO SWAG", + "thought they were him", + "blamed Microsoft" +} + +--Add random welcome messages! If we're modifying the game we might as well do it in STYLE +script.on_event(defines.events.on_player_joined_game, function(event) + local player = game.players[event.player_index] + if player then + player.print(welcome_messages[math.random(#welcome_messages)]) + end +end) +--Courtesy of Gemini +script.on_event(defines.events.on_player_died, function(event) + local player = game.players[event.player_index] + game.print(player.name .. " " .. death_messages[math.random(#death_messages)]) +end)