Module:VaeringheimGossip

From MicrasWiki
Revision as of 22:47, 25 December 2024 by NewZimiaGov (talk | contribs)
(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.generateSingleGossip()
    local npcs = {
        {name = "Amar Sefar", role = "Canal Dockworker", company = "Lake Morovia Blockade Fund", cult = "Ordo Solis Invicti", description = "A burly dockworker with weathered skin and a strong back, Amar ensures that the bustling canals of Vaeringheim stay operational. He begins every morning with a prayer to the Ordo Solis Invicti, seeking blessings for smooth shipments and clear waters."},
        {name = "Liora Eoseth", role = "Merchant of Silks", company = "Market Hanavusu", cult = "Order of Aurora Mystica", description = "A petite and sharp-eyed silk merchant, Liora sources rare and vibrant fabrics that light up the Market Hanavusu. Her devotion to the Order of Aurora Mystica inspires her designs, reflecting the light of dawn."},
        {name = "Tahir Morion", role = "Priest of the Host Spirit", company = "Temple Bank of the Reformed Stripping Path", cult = "Ordo Solis Invicti", description = "Tahir is a solemn and commanding presence at the Temple Bank, where he leads rituals that strengthen the community’s faith in the Host Spirit. His emerald-green eyes and deep voice make him a revered figure in Vaeringheim."},
        {name = "Kala Inephra", role = "Goldsmith", company = "Shï Collective", cult = "Guild of Golden Shadows", description = "Kala crafts intricate jewelry that reflects her deep connection to the Guild of Golden Shadows. Her mysterious demeanor and precise hands produce pieces that are both luxurious and enigmatic."},
        {name = "Nadir Alphon", role = "Tavern Keeper", company = "Ale of the Night Central Brewery", cult = "Mystery of Red Mirth", description = "Nadir is a stout and boisterous man who operates the most popular tavern in the canal district. Known for his Ale of the Night brews, his establishment is a hub for laughter, stories, and celebrations inspired by the Mystery of Red Mirth."},
        {name = "Elina Voraith", role = "Fisherwoman", company = "Suncliff Fisheries", cult = "Azure Sentinel Sect", description = "Elina is a fearless fisherwoman with salt-kissed skin and a steady hand. She navigates Lake Morovia daily, her devotion to the Azure Sentinel Sect guiding her through its treacherous waters."},
        {name = "Darin Ilphas", role = "Caravan Guard", company = "East Keltian Iron Company", cult = "Court of the Ironclad", description = "A rugged guard with a scar over his left eye, Darin is known for his unwavering dedication to protecting Vaeringheim’s valuable iron caravans. His loyalty to the Court of the Ironclad is unshakable."},
        {name = "Saira Lineth", role = "Student of the Arts", company = "La Sái Ebile", cult = "Reverie Nebulous", description = "Saira is a bright-eyed young artist who finds inspiration in the dreamlike teachings of the Reverie Nebulous. Her murals, often featuring swirling celestial themes, grace the walls of Vaeringheim’s artisan district."},
        {name = "Marik Troven", role = "Historian", company = "Temple University of Delphica", cult = "Conclave Illuminara", description = "Marik is a wiry academic who spends his days delving into the chronicles of Vaeringheim. Known for his meticulous research, he often lectures on the myths and histories preserved by the Conclave Illuminara."},
        {name = "Zia Falorin", role = "Street Performer", company = "Maritime Guild of the Cult of Maskmakers", cult = "Harmony Sanctum", description = "Zia is an exuberant performer whose acts combine acrobatics, music, and storytelling. Her performances, influenced by the Harmony Sanctum, bring joy and balance to the streets of Vaeringheim."},
        {name = "Vera Myrian", role = "Apothecary", company = "Salurian Temple of Sacred Horehound", cult = "Mystery of the Verdant Embrace", description = "Vera is a soft-spoken apothecary who crafts remedies infused with sacred chants from the Mystery of the Verdant Embrace. Her shop is a haven for those seeking both healing and serenity."},
        {name = "Torin Velar", role = "Blacksmith", company = "East Keltian Iron Company", cult = "Court of the Ironclad", description = "Torin is a towering blacksmith whose forge burns day and night. Known for his resilience and strength, he attributes his craft to the discipline instilled by the Court of the Ironclad."},
        {name = "Ilari Draven", role = "Architect", company = "Thalassian Granite Export Cooperative", cult = "Guild of Golden Shadows", description = "Ilari is a visionary architect who blends functionality with artistic grandeur. His works often feature elements of sacred geometry inspired by his Guild of Golden Shadows affiliation."},
        {name = "Nina Iseth", role = "Trader", company = "Gladeseed Farmers' Union", cult = "Harmony Sanctum", description = "Nina is a keen negotiator who ensures fair deals in the bustling markets. Her dedication to the Harmony Sanctum influences her balanced and ethical approach to trading."},
        {name = "Orin Lareth", role = "Boat Builder", company = "Lake Morovia Blockade Fund", cult = "Azure Sentinel Sect", description = "Orin is a skilled craftsman who builds boats designed to withstand the unpredictable waters of Lake Morovia. His meticulous work reflects the blessings of the Azure Sentinel Sect."},
        {name = "Rina Fahl", role = "Chef", company = "Ale of the Night Central Brewery", cult = "Mystery of Red Mirth", description = "Rina is a vibrant chef whose innovative recipes draw crowds to her feasts. Her dishes, infused with the celebratory spirit of the Mystery of Red Mirth, are renowned across Vaeringheim."},
        {name = "Khalid Fenra", role = "Scholar", company = "Temple University of Delphica", cult = "Reverie Nebulous", description = "Khalid is a contemplative scholar whose studies focus on the intersection of dreams and history. His insights are often attributed to the Reverie Nebulous."},
        {name = "Evanor Tyreth", role = "Carpenter", company = "East Keltian Timber Company", cult = "Sylvan Fellowship", description = "Evanor is a talented carpenter who crafts beautiful and functional wooden pieces. His work is inspired by the natural balance celebrated by the Sylvan Fellowship."},
        {name = "Sorin Althis", role = "Guard Captain", company = "Baratar Corporation", cult = "Court of the Ironclad", description = "Sorin is a stoic guard captain who oversees Vaeringheim’s security. His disciplined leadership and loyalty to the Court of the Ironclad make him a respected figure."},
        {name = "Leona Veyar", role = "Painter", company = "Shï Collective", cult = "Order of Aurora Mystica", description = "Leona is a vibrant painter whose work captures the beauty of dawn, a reflection of her devotion to the Order of Aurora Mystica."},
        {name = "Dariel Voss", role = "Bard", company = "La Sái Ebile", cult = "Reverie Nebulous", description = "Dariel is a charismatic bard whose performances are inspired by dreams and myths, often influenced by the teachings of the Reverie Nebulous."},
        {name = "Hirin Velas", role = "Jeweler", company = "Shï Collective", cult = "Guild of Golden Shadows", description = "Hirin is a meticulous jeweler whose creations are imbued with the subtle mysteries of the Guild of Golden Shadows."},
        {name = "Zorin Kael", role = "Weaver", company = "Seamstresses of Rouge", cult = "Harmony Sanctum", description = "Zorin is a skilled weaver whose intricate patterns reflect the balance and harmony celebrated by the Harmony Sanctum."},
        {name = "Linara Theros", role = "Tea House Keeper", company = "Market Hanavusu", cult = "Mystery of the Verdant Embrace", description = "Linara is a warm and knowledgeable tea house keeper who blends teas infused with the blessings of the Mystery of the Verdant Embrace."},
        {name = "Karim Jorath", role = "Fisherman", company = "Suncliff Fisheries", cult = "Azure Sentinel Sect", description = "Karim is a jovial fisherman whose tales of the lake are as plentiful as his catches. He attributes his success to the Azure Sentinel Sect."},
        {name = "Mira Elvor", role = "Librarian", company = "Temple University of Delphica", cult = "Conclave Illuminara", description = "Mira is a meticulous librarian whose quiet demeanor belies a vast knowledge of Vaeringheim’s history and legends."},
        {name = "Rivan Pharos", role = "Trader", company = "Gladeseed Farmers' Union", cult = "Harmony Sanctum", description = "Rivan is a shrewd trader who ensures ethical practices in all his dealings, guided by the Harmony Sanctum."},
        {name = "Talia Meren", role = "Herbalist", company = "Salurian Temple of Sacred Horehound", cult = "Mystery of the Verdant Embrace", description = "Talia is a serene herbalist whose remedies are as effective as they are thoughtfully crafted, thanks to her devotion to the Mystery of the Verdant Embrace."},
        {name = "Elanor Trayn", role = "Storyteller", company = "La Sái Ebile", cult = "Reverie Nebulous", description = "Elanor is an older storyteller whose rich voice brings ancient myths and dreams to life, inspired by the Reverie Nebulous."}
    }

    local gossip = {
        "A mysterious glowing light was spotted near the Host Spirit shrine on the eastern canals.",
        "Rumors swirl of a secret underground passage connecting the Temple Bank to the artisan district.",
        "A sculptor unveiled a new statue in honor of the Azure Sentinel Sect, drawing crowds in the central square.",
        "The canals are alive with music as Vaeringheim’s Regatta Festival preparations are underway.",
        "Local merchants report that an ancient relic was discovered during canal dredging.",
        "Residents claim to have seen ghostly figures walking across the bridges late at night.",
        "The Market Hanavusu is bustling with traders showcasing rare goods from Luminaria.",
        "A historian’s lecture on the first Vaeringheim settlers drew record-breaking crowds at the Host Spirit Temple.",
        "Fishermen near Lake Morovia have reported an unprecedented bloom of phosphorescent algae.",
        "A bard’s ballad about the Reformed Stripping Path is being sung in every tavern across Vaeringheim.",
        "The Shï Collective has unveiled an intricate golden amulet said to bring clarity to the wearer’s dreams.",
        "An eccentric inventor claims to have created a device that will purify the canal water.",
        "The Lantern Lighting Ceremony in honor of the Host Spirit saw its largest crowd this year.",
        "Vaeringheim’s artisans are creating a mural depicting the ancient myths of the Azure Sentinel Sect.",
        "The Merchant’s Guild debates the construction of a new trade outpost on the eastern canals.",
        "Fishermen report a sudden increase in their hauls, calling it a blessing from the Host Spirit.",
        "Pilgrims arriving in Vaeringheim claim to have had vivid dreams of Atos guiding them.",
        "The city council has approved funding for the restoration of the oldest bridge in Vaeringheim.",
        "An alchemist revealed a new elixir crafted from Atterian Armored Pufferfish scales, sparking interest from traders.",
        "Vaeringheim’s central square is being prepared for the Lightfall Festival, with lanterns and flowers.",
        "A rogue trader was caught attempting to sell counterfeit artifacts from the Host Spirit Temple.",
        "The canals are being cleaned for the upcoming festival, revealing forgotten relics beneath the water.",
        "The Shï Collective is hosting a workshop on crafting sacred jewelry at the artisan district.",
        "A scholar claims the Host Spirit shrine holds hidden runes that predict the future.",
        "Vaeringheim’s musicians are composing a symphony to honor the Regatta Festival.",
        "A fisherman claims to have caught a fish inscribed with ancient symbols near the western docks.",
        "A new variety of herbal tea from the eastern marshes is gaining popularity among the city’s elite.",
        "Residents report strange lights in the canals, sparking superstitions about the Host Spirit’s favor.",
        "A historian uncovered documents suggesting a lost temple beneath the canal district.",
        "The Lantern Lighting Ceremony is rumored to attract spirits of Vaeringheim’s founders.",
        "An artisan has crafted a stunning mosaic of Lake Morovia, now displayed in the central square.",
        "Merchants are lobbying for reduced tariffs on spices imported from Luminaria.",
        "A bard’s haunting melody about the Reformed Stripping Path has captivated audiences in every tavern.",
        "The Azure Sentinel Sect plans a public ceremony to bless the canal waters before the festival.",
        "Residents prepare for a massive parade featuring floats inspired by the myths of the Host Spirit.",
        "A sculptor’s depiction of the Azure Sentinel Sect’s blessing rituals has drawn widespread praise.",
        "Pilgrims claim the canals themselves whisper prayers to the Host Spirit during the night.",
        "Vaeringheim’s tea houses are experimenting with new blends that incorporate rare herbs from Lake Morovia.",
        "The Merchant’s Guild is debating the introduction of steam-powered boats in the canal network.",
        "A ghost ship was reportedly sighted drifting near the northern docks during the early hours of dawn.",
        "A controversial play about the founding of Vaeringheim premiered at the main theater last night.",
        "The central square is abuzz with excitement over a new mural depicting the Reformed Stripping Path.",
        "A new canal section linking Vaeringheim to Lunalis Sancta is nearing completion, promising faster trade routes."
    }

    local dateInfo = p.getCurrentDate()
    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
    )

    return entry
end

function p.generate(frame)
    return p.generateSingleGossip()
end

return p