Module:VaeringheimGossip

From MicrasWiki
Revision as of 22:27, 25 December 2024 by NewZimiaGov (talk | contribs) (Created page with "local p = {} function p.getCurrentDate() local startDate = os.time({year = 1999, month = 8, day = 6}) local secondsInDay = 86400 local daysPerYear = 183 local currentDate = os.time() local totalDaysElapsed = math.floor((currentDate - startDate) / secondsInDay) local yearFraction = totalDaysElapsed / daysPerYear local psscYear = math.floor(yearFraction) local dayOfYear = math.floor((yearFraction - psscYear) * daysPerYear) + 1 local...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Documentation for this module may be created at Module:VaeringheimGossip/doc

local p = {}

function p.getCurrentDate()
    local startDate = os.time({year = 1999, month = 8, day = 6})
    local secondsInDay = 86400
    local daysPerYear = 183

    local currentDate = os.time()
    local totalDaysElapsed = math.floor((currentDate - startDate) / secondsInDay)

    local yearFraction = totalDaysElapsed / daysPerYear
    local psscYear = math.floor(yearFraction)
    local dayOfYear = math.floor((yearFraction - psscYear) * daysPerYear) + 1

    local month, dayInMonth
    if dayOfYear <= 61 then
        month = "Atosiel"
        dayInMonth = dayOfYear
    elseif dayOfYear <= 122 then
        month = "Thalassiel"
        dayInMonth = dayOfYear - 61
    else
        month = "Opsitheiel"
        dayInMonth = dayOfYear - 122
    end

    local dateInfo = {
        year = psscYear,
        month = month,
        day = dayInMonth
    }

    return dateInfo
end

function p.generateGossip()
    local npcs = {
        {name = "Amar Sefar", role = "Canal Dockworker", company = "Lake Morovia Blockade Fund", cult = "Ordo Solis Invicti", description = "A burly man with weathered skin, always wearing a wide-brimmed hat to shield himself from the sun."},
        {name = "Liora Eoseth", role = "Merchant of Silks", company = "Market Hanavusu", cult = "Order of Aurora Mystica", description = "A petite woman with sharp features and flowing auburn hair, known for her vibrant robes."},
        {name = "Tahir Morion", role = "Priest of the Host Spirit", company = "Temple Bank of the Reformed Stripping Path", cult = "Ordo Solis Invicti", description = "A tall, solemn man with a shaved head and piercing green eyes."},
        {name = "Kala Inephra", role = "Goldsmith", company = "Shï Collective", cult = "Guild of Golden Shadows", description = "A middle-aged woman with nimble fingers and a streak of silver in her jet-black hair."},
        {name = "Nadir Alphon", role = "Tavern Keeper", company = "Ale of the Night Central Brewery", cult = "Mystery of Red Mirth", description = "A stout man with a booming laugh and a thick mustache."},
        {name = "Elina Voraith", role = "Fisherwoman", company = "Suncliff Fisheries", cult = "Azure Sentinel Sect", description = "A lean, tanned woman with a perpetual smell of saltwater and a streak of mischief in her smile."},
        {name = "Darin Ilphas", role = "Caravan Guard", company = "East Keltian Iron Company", cult = "Court of the Ironclad", description = "A rugged man with a scar across his cheek and a protective demeanor."},
        {name = "Saira Lineth", role = "Student of the Arts", company = "La Sái Ebile", cult = "Reverie Nebulous", description = "A dreamy young woman with ink-stained fingers and a penchant for painting sunsets."},
        {name = "Marik Troven", role = "Historian", company = "Temple University of Delphica", cult = "Conclave Illuminara", description = "A wiry man with spectacles perpetually sliding down his nose and a satchel full of scrolls."},
        {name = "Zia Falorin", role = "Street Performer", company = "Maritime Guild of the Cult of Maskmakers", cult = "Harmony Sanctum", description = "A flamboyant figure with a painted face and a penchant for acrobatics."},
        {name = "Vera Myrian", role = "Apothecary", company = "Salurian Temple of Sacred Horehound", cult = "Mystery of the Verdant Embrace", description = "A serene woman with gentle eyes and a belt full of pouches and vials."},
        {name = "Torin Velar", role = "Blacksmith", company = "East Keltian Iron Company", cult = "Court of the Ironclad", description = "A burly man with soot-streaked arms and a hammer that rarely leaves his side."},
        {name = "Ilari Draven", role = "Architect", company = "Thalassian Granite Export Cooperative", cult = "Guild of Golden Shadows", description = "A meticulous man with a monocle and a leather-bound notebook always in hand."},
        {name = "Nina Iseth", role = "Trader", company = "Gladeseed Farmers' Union", cult = "Harmony Sanctum", description = "A shrewd woman with sharp eyes and a knack for bartering."},
        {name = "Orin Lareth", role = "Boat Builder", company = "Lake Morovia Blockade Fund", cult = "Azure Sentinel Sect", description = "A stocky man with calloused hands and a deep tan."},
        {name = "Rina Fahl", role = "Chef", company = "Ale of the Night Central Brewery", cult = "Mystery of Red Mirth", description = "A jovial woman with a round face and a knack for making people smile with her cooking."},
        {name = "Khalid Fenra", role = "Scholar", company = "Temple University of Delphica", cult = "Reverie Nebulous", description = "A lanky man with a dreamy expression and a habit of muttering to himself."},
        {name = "Evanor Tyreth", role = "Carpenter", company = "East Keltian Timber Company", cult = "Sylvan Fellowship", description = "A wiry man with a saw always slung over his shoulder and a warm smile."},
        {name = "Sorin Althis", role = "Guard Captain", company = "Baratar Corporation", cult = "Court of the Ironclad", description = "A stoic man with a commanding presence and a deep, gravelly voice."},
        {name = "Leona Veyar", role = "Painter", company = "Shï Collective", cult = "Order of Aurora Mystica", description = "A vibrant woman with paint-splattered clothing and a sparkle in her eye."},
        {name = "Dariel Voss", role = "Bard", company = "La Sái Ebile", cult = "Reverie Nebulous", description = "A charismatic performer with a lute slung over his back and a song always ready."},
        {name = "Hirin Velas", role = "Jeweler", company = "Shï Collective", cult = "Guild of Golden Shadows", description = "A quiet man with steady hands and a love for intricate designs."},
        {name = "Zorin Kael", role = "Weaver", company = "Seamstresses of Rouge", cult = "Harmony Sanctum", description = "A tall man with a calm demeanor and a knack for creating intricate patterns."},
        {name = "Linara Theros", role = "Tea House Keeper", company = "Market Hanavusu", cult = "Mystery of the Verdant Embrace", description = "A warm woman with a welcoming smile and a deep knowledge of herbal teas."},
        {name = "Karim Jorath", role = "Fisherman", company = "Suncliff Fisheries", cult = "Azure Sentinel Sect", description = "A jovial man with a love for storytelling and a passion for the sea."},
        {name = "Mira Elvor", role = "Librarian", company = "Temple University of Delphica", cult = "Conclave Illuminara", description = "A meticulous woman with an ever-present pair of reading glasses and a soft voice."},
        {name = "Rivan Pharos", role = "Trader", company = "Gladeseed Farmers' Union", cult = "Harmony Sanctum", description = "A shrewd trader with a sharp mind and a ready smile."},
        {name = "Talia Meren", role = "Herbalist", company = "Salurian Temple of Sacred Horehound", cult = "Mystery of the Verdant Embrace", description = "A serene woman with a deep knowledge of plants and their uses."},
        {name = "Elanor Trayn", role = "Storyteller", company = "La Sái Ebile", cult = "Reverie Nebulous", description = "An older woman with a rich voice and a treasure trove of tales."}
    }

    local gossip = {
        "The canals have seen fewer Morovian Rainbow Birds this season—some say it's an omen of change.",
        "Gold prices in the General Port are skyrocketing; whispers of a new trade route opening abound.",
        "A secretive cult was spotted performing rituals near the Tomb of Styx.",
        "The Shï Collective's latest sculptures fetch unimaginable prices in the markets.",
        "Fishermen claim the Atterian Armored Pufferfish are growing larger this year, likely due to new hatchery practices.",
        "A caravan from Aurelia was attacked by rogue pirates, sparking rumors of Operation Thunder Drop's return.",
        "The Host Spirit's blessings were reportedly felt during the Lightfall Festival this year, bringing renewed hope.",
        "A new canal project is rumored to link Vaeringheim directly to Lunalis Sancta.",
        "The Pyralian Emberfey sightings near the tea houses of Luminaria have sparked pilgrimages.",
        "A haunting song was heard from the depths of Lake Morovia—fisherfolk fear it may be tied to a Somniant Eidolon.",
        "A large shipment of spices was delayed due to unrest in the southern trade routes.",
        "The annual Regatta Festival is expected to draw record-breaking crowds this year.",
        "Rumors swirl of a lost artifact found near the Tomb of Styx.",
        "Vaeringheim’s street performers have begun showcasing dances inspired by the Garganram.",
        "A rare Morovian Sasquatch sighting has sparked a flurry of interest in the northern forests.",
        "An eccentric scholar claims to have decoded a forgotten script from the Morovian Frontier Campaign.",
        "The canals were lit with lanterns last night in honor of the Host Spirit.",
        "A local blacksmith has forged a blade said to be blessed by the Pyreska cult.",
        "Fisherfolk report seeing strange lights in the water near the docks after midnight.",
        "A bard’s new song about Operation Thunder Drop is stirring fierce debates in taverns across the city.",
        "Caravan guards have increased patrols due to rising bandit activity on the eastern roads.",
        "A trader in the General Port is accused of smuggling relics from sacred sites.",
        "The tea houses are abuzz with talk of an upcoming political summit in the city.",
        "A mysterious illness has struck a small village on the outskirts of Vaeringheim.",
        "Local merchants are lobbying for reduced tariffs on luxury goods.",
        "The city’s weavers are creating a massive tapestry to commemorate the Lightfall Festival.",
        "Pilgrims have begun flocking to Vaeringheim in anticipation of a major religious event.",
        "A series of thefts in the artisan district has left jewelers on edge.",
        "The Tavern Guild has declared a citywide celebration for the anniversary of the Bassaridian Charter.",
        "A historian claims to have uncovered a link between Vaeringheim’s architecture and ancient Haifan designs.",
        "A sculptor unveiled a statue dedicated to the Host Spirit in the central square.",
        "The city council debates funding a new bridge over the eastern canals.",
        "A series of murals depicting scenes from the Reformed Stripping Path have appeared overnight.",
        "A rare bloom of phosphorescent plants in the northern marshes is drawing crowds.",
        "Local farmers report that crops blessed by the Opsithia cult are yielding twice the usual harvest.",
        "A visiting bard claims to have seen a vision of Styx during their performance.",
        "Merchants in the General Port are investing heavily in new fishing vessels.",
        "The city watch has apprehended a gang accused of selling counterfeit relics.",
        "An ancient scroll detailing rites of the Host Spirit has been donated to the library.",
        "A new type of tea from Luminaria is causing a sensation in Vaeringheim’s tea houses.",
        "A scholar suggests the glowing lights in Lake Morovia may be linked to the Pyralian Emberfey.",
        "A fisherman claims to have caught a fish inscribed with strange runes near the western docks.",
        "The canals are being cleaned in preparation for the upcoming Regatta Festival.",
        "An eccentric inventor has designed a device to navigate Vaeringheim’s complex canal system.",
        "A caravan guard tells tales of a hidden treasure buried in the canyonlands.",
        "The Host Spirit shrine has seen a record number of visitors this season.",
        "A sculptor’s new work depicting Styx’s resurrection has sparked heated debates.",
        "A local tavern is hosting a storytelling competition with a focus on the Reformed Stripping Path.",
        "A young artist has painted a breathtaking mural of Lake Morovia’s wildlife in the marketplace."
    }

    local dateInfo = p.getCurrentDate()
    local news = {}

    for i = 1, 100 do
        local npc = npcs[math.random(#npcs)]
        local story = gossip[math.random(#gossip)]
        local entry = string.format(
            "Date: %d %s, %s PSSC | Reporter: %s (%s, %s, %s) | Gossip: %s",
            dateInfo.day,
            dateInfo.month,
            dateInfo.year,
            npc.name,
            npc.role,
            npc.company,
            npc.cult,
            story
        )
        table.insert(news, entry)
    end

    return news
end

return p