Historic Events

//CONFIG
const path = '"1. General/Historic Events"'
const title = "Historic Events"

//FUNCTIONS
function genMermaidLine(page, begin, end) {
    return ;
}

function checkfrontmatter(page){
    if (typeof page.gantt != "undefined")
    {
        if (typeof page.gantt.begin != "undefined" && typeof page.gantt.end != "undefined")
        {
            return true;
        }
        if (typeof page.gantt.milestone != "undefined")
        {
            return true;
        }
    }
    return false;
}

function loopPages(pages) {
    let mermaid = ''; 
    console.log(pages)
    pages = pages.filter(page => checkfrontmatter(page))
    console.log(pages)
    //sort pages by gantt.begin
    for (let page of pages) {
        //log to console
        console.log("Processing:"+ page.file.name)
        console.log(page)
        //check if gantt.begin and gantt.end object exists in page
        if (typeof page.gantt != "undefined"){
            if (typeof page.gantt.begin != "undefined" && typeof page.gantt.end != "undefined") {
                let identifier = page.file.name.replace(/ /g, "_");
                //create mermaid line
                mermaid += page.file.name + ' : ' + identifier + ", " + page.gantt.begin + ', ' + page.gantt.end + '\n';
                //make clickable
                mermaid += 'click ' + identifier + ' href "obsidian://open?vault=obsidian&file=' + page.file.path + '"\n';
            }
            //milestone if gantt.milestone exists
            //format:
            // A task           :milestone, identifier, 2014-01-01, 2014-01-01
            if (typeof page.gantt.milestone != "undefined") {
                console.log("milestone:"+ page.file.name)
                let identifier = page.file.name.replace(/ /g, "_");
                //create mermaid line
                mermaid += page.file.name + ' :milestone, ' + identifier + ", " + page.gantt.milestone + ', ' + page.gantt.milestone + '\n';
                //make clickable
                mermaid += 'click ' + identifier + ' href "obsidian://open?vault=obsidian&file=' + page.file.path + '"\n';
            }
        }
    }
    return mermaid;
}
//dates are not related to the actual date but a fantasy date system
//deactivate todayMarker and start with year 0


const Mermaid = `gantt
    title `+title+`
    todayMarker off
    dateFormat DD-MM-YYYY
    axisFormat %Y
    `;

const pages = dv.pages(path)
dv.paragraph('```mermaid\n' + Mermaid +loopPages(pages)+ '\n```');

War History

Those are the most important facts about the War between the Defilers and the League of Arathor:

Year 3014:

The initial attack on Lichtachte occurred in the year 3014. The attackers were a horde of zombies. The zombies overwhelmed the city's defenses, and many people were killed. To regain the casualties Malachi spread her Plague to rescue the citizens. This is what caused the great divide in The Basin.

Behind the Scenes

The Zombies were controlled by Naruun who instigated the attack with his last bit of power to get Malachi to use her Ritual. Naruun, General Malachi, instigate, power, Ritual

Year 3015:

The Plague was a necrotic virus that was spread by the necromancer Malachi. It caused the recently deceased to rise from the dead as zombies with their souls still affixed to them. The Plague caused a great divide in The Basin, with many people seeing the undead as monsters. The League of Arathor to this day sees the undead as the same monsters that killed many of their kin.

Behind the Scenes

While Researching The Plague Malachi was Influenced by Naruun. She didn't intend The Plague to be contagious.

Year 3018:

The Cure for The Plague was found in the year 3018 by the Paladin Erathenar. It was a complicated mixture of holy essences. The Cure was distributed to the people of The Basin, and The Plague was brought under control. The prevents The Plague from going rampage, but didn't revert the already undead.

Year 3023:

The Defilers were founded in the year 3023 by the necromancer Malachi. She united her Undead breathren in the South of The Basin and established her territory. The Orcs of the nearby mountains soon joined her, and the Defilers became a powerful force.

Year 3024:

The War began in the year 3024 when the Defilers attacked multiple cities in the west of The Basin. The League of Arathor was quick to respond, and they pushed the Defilers back. The war continued for four years, with neither side gaining an advantage.

Year 3028:

In the year 3028, the Defilers conquered the Desecrated Stronghold, a key strategic location in the war. This gave them a major advantage, and they began to push the League back. The League fought bravely, but they were outnumbered.

Year 3031:

In the year 3031, the Defilers conquered almost all of The Basin. The League was pushed back to their last stronghold, the city of Trollbans Hold. The Defilers laid siege to the city, but the League's paladins fought bravely, and they were able to hold the city.

Year 3032:

In the year 3032, the tide of the war began to turn. The League of Arathor fought back, and they regained control of the Desecrated Stronghold. This gave them a major advantage, and they began to push the Defilers back.

Year 3036:

The war continued for four more years, with neither side gaining an advantage. The Defilers were unable to break through the League's defenses, and the League was unable to push the Defilers back. The war reached a stalemate.

Year 3039:

In the year 3039, the Defilers made a push to conquer The Basin. They attacked the city of Edschmied, the League's last stronghold. The League's paladins fought bravely, but they were outnumbered and outmatched. The Defilers conquered the city, and the war came to an end.

a_Cathedral_concept_art_by_Chris_Rallistrending_on_d.png

Volars History

Volars History:

Sori

  • Domain: Sun
  • Associated Element: Nature
  • Virtue: Morality
Comments

We'd love to hear how you've used this content in your own campaigns! Share your anecdotes and examples in the comments below to inspire and help other readers imagine the possibilities. Your input can also help us refine and improve the note structure for future adventure modules.