vault commit: 2025-10-02 17:47, 32 files changed
This commit is contained in:
+217
@@ -0,0 +1,217 @@
|
||||
---
|
||||
Reputation: 0
|
||||
Faction_Type: Family
|
||||
Motto:
|
||||
Ideology:
|
||||
Symbol:
|
||||
Colors:
|
||||
Headquarters:
|
||||
Territories:
|
||||
-
|
||||
Allies:
|
||||
- "[[Faylen Valora]]"
|
||||
Rivals:
|
||||
-
|
||||
SMH_Acronym:
|
||||
Intel:
|
||||
Tags:
|
||||
- faction
|
||||
---
|
||||
|
||||
# Draycott Family
|
||||
*One-line role/description — e.g., “Elven High House controlling Y’athir’s docks.”*
|
||||
|
||||
---
|
||||
|
||||
## 🎨 Artwork
|
||||
![[Draycott Family.png]]
|
||||
*Optional caption / artist credit*
|
||||
|
||||
---
|
||||
|
||||
## 🧭 Identity & Heraldry
|
||||
- **Motto:** `= default(this.Motto, "—")`
|
||||
- **Symbol:** `= default(this.Symbol, "—")`
|
||||
- **Colors:** `= default(this.Colors, "—")`
|
||||
- **Headquarters:** `= default(this.Headquarters, "—")`
|
||||
- **Territories:** `= this.Territories`
|
||||
|
||||
---
|
||||
|
||||
## 📜 Ideology & Goals
|
||||
- **Ideology / Alignment:** `= default(this.Ideology, "—")`
|
||||
- **Primary Goals:**
|
||||
-
|
||||
- **Taboos / Anathema:**
|
||||
-
|
||||
|
||||
---
|
||||
|
||||
## 🤝 Relationship with Party
|
||||
- **Reputation:** `= this.Reputation`
|
||||
|
||||
---
|
||||
|
||||
## 🧑💼 Leadership & Structure
|
||||
- **Leader(s):** [[NPC A]], [[NPC B]]
|
||||
- **Structure:** (council, hierarchy, cells, chapters)
|
||||
- **Key Offices:** (Intelligence, Logistics, Priory, Treasury, etc.)
|
||||
|
||||
---
|
||||
|
||||
## 🧰 Assets & Operations
|
||||
- **Resources:** (coin, troops, mages, ships, safehouses, contacts)
|
||||
- **Notable Holdings:**
|
||||
- **Typical Ops / Tactics:**
|
||||
|
||||
---
|
||||
|
||||
## 🕊️ Diplomacy & Relations
|
||||
- **Allies:** `= this.Allies`
|
||||
- **Rivals:** `= this.Rivals`
|
||||
- **Stance toward “SMH” (their wording):** `= default(this.SMH_Acronym, "—")`
|
||||
|
||||
---
|
||||
|
||||
## 🧠 Intelligence & Mentions
|
||||
```button
|
||||
name ➕ Add Intel
|
||||
type command
|
||||
action Templater: Insert Add Intel Entry to Faction
|
||||
```
|
||||
```dataviewjs
|
||||
const THIS = dv.current();
|
||||
const thisName = String(THIS.file.name);
|
||||
const thisLC = thisName.toLowerCase();
|
||||
|
||||
const factions = dv.pages("#faction");
|
||||
|
||||
// mention detector (same logic as your table)
|
||||
function mentionsThisFaction(entry) {
|
||||
const sum = String(entry.summary ?? "");
|
||||
if (sum.includes(`[[${thisName}]]`) || sum.includes(`[[${thisName}|`)) return true;
|
||||
const src = entry.source;
|
||||
const list = Array.isArray(src) ? src : (src ? [src] : []);
|
||||
for (const s of list) {
|
||||
if (typeof s === "string") {
|
||||
if (s.includes(`[[${thisName}]]`) || s.includes(`[[${thisName}|`)) return true;
|
||||
if (s.toLowerCase() === thisLC) return true;
|
||||
} else if (s && typeof s === "object" && s.path) {
|
||||
const base = s.path.split("/").pop().replace(/\.md$/i,"").toLowerCase();
|
||||
if (base === thisLC) return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
const own = (THIS.Intel ?? []).length;
|
||||
|
||||
let mentions = 0;
|
||||
for (const p of factions.where(p => p.file.name !== thisName)) {
|
||||
for (const it of (p.Intel ?? [])) if (mentionsThisFaction(it)) mentions++;
|
||||
}
|
||||
|
||||
dv.paragraph(`_Entries: ${own + mentions} (own ${own} + mentions ${mentions})_`);
|
||||
```
|
||||
```dataviewjs
|
||||
// Current faction
|
||||
const THIS = dv.current();
|
||||
const thisName = String(THIS.file.name);
|
||||
const thisLC = thisName.toLowerCase();
|
||||
|
||||
// All faction pages (including this one)
|
||||
const factions = dv.pages("#faction");
|
||||
|
||||
// Mention detector: summary has [[This Faction]] OR source points at this faction
|
||||
function mentionsThisFaction(entry) {
|
||||
const sum = String(entry.summary ?? "");
|
||||
if (sum.includes(`[[${thisName}]]`) || sum.includes(`[[${thisName}|`)) return true;
|
||||
|
||||
const src = entry.source;
|
||||
const list = Array.isArray(src) ? src : (src ? [src] : []);
|
||||
for (const s of list) {
|
||||
if (typeof s === "string") {
|
||||
if (s.includes(`[[${thisName}]]`) || s.includes(`[[${thisName}|`)) return true;
|
||||
if (s.toLowerCase() === thisLC) return true; // fallback: plain text match
|
||||
} else if (s && typeof s === "object" && s.path) { // wikilink object
|
||||
const base = s.path.split("/").pop().replace(/\.md$/i,"").toLowerCase();
|
||||
if (base === thisLC) return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// Collect rows
|
||||
const rows = [];
|
||||
|
||||
// 1) Own intel
|
||||
for (const it of (THIS.Intel ?? [])) {
|
||||
rows.push({
|
||||
date: it.date ?? "",
|
||||
from: THIS.file.link,
|
||||
type: it.type ?? "",
|
||||
summary: String(it.summary ?? ""),
|
||||
source: it.source ?? "",
|
||||
rel: it.reliability ?? "",
|
||||
cred: it.credibility ?? "",
|
||||
tags: Array.isArray(it.tags) ? it.tags.join(", ") : (it.tags ?? "")
|
||||
});
|
||||
}
|
||||
|
||||
// 2) Mentions from other factions
|
||||
for (const p of factions.where(p => p.file.name !== thisName)) {
|
||||
for (const it of (p.Intel ?? [])) {
|
||||
if (mentionsThisFaction(it)) {
|
||||
rows.push({
|
||||
date: it.date ?? "",
|
||||
from: p.file.link,
|
||||
type: it.type ?? "",
|
||||
summary: String(it.summary ?? ""),
|
||||
source: it.source ?? "",
|
||||
rel: it.reliability ?? "",
|
||||
cred: it.credibility ?? "",
|
||||
tags: Array.isArray(it.tags) ? it.tags.join(", ") : (it.tags ?? "")
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Sort newest first
|
||||
rows.sort((a,b) => String(b.date).localeCompare(String(a.date)));
|
||||
|
||||
if (!rows.length) {
|
||||
dv.paragraph("_No intel yet._");
|
||||
} else {
|
||||
dv.table(
|
||||
["Date","From Faction","Type","Summary","Source","Rel","Cred","Tags"],
|
||||
rows.map(r => [r.date, r.from, r.type, r.summary, r.source, r.rel, r.cred, r.tags])
|
||||
);
|
||||
}
|
||||
```
|
||||
> Add new entries in the **frontmatter** under `Intel:` (keep newest on top). Suggested fields: `date, type, summary, source, reliability, credibility, tags`.
|
||||
|
||||
---
|
||||
|
||||
## 🔗 Related NPCs (auto)
|
||||
```dataview
|
||||
TABLE link(file.name) AS NPC, number(Level_of_Influence) AS Influence, default(SMH_Acronym, "—") AS SMH
|
||||
FROM #npc
|
||||
WHERE file.name != "NPC Template"
|
||||
AND (
|
||||
Faction = this.file.link
|
||||
OR lower(string(Faction)) = lower(this.file.name)
|
||||
OR contains(lower(string(Faction)), lower(this.file.name))
|
||||
)
|
||||
SORT number(Level_of_Influence) DESC
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 📌 Plot Hooks & Notes
|
||||
-
|
||||
-
|
||||
|
||||
---
|
||||
|
||||
## 🗒 Session Updates
|
||||
- 2025-10-02: …
|
||||
+240
@@ -0,0 +1,240 @@
|
||||
---
|
||||
Reputation: 0
|
||||
Faction_Type: High House
|
||||
Motto:
|
||||
Ideology:
|
||||
Symbol:
|
||||
Colors:
|
||||
Headquarters:
|
||||
Territories:
|
||||
-
|
||||
Allies:
|
||||
-
|
||||
Rivals:
|
||||
-
|
||||
SMH_Acronym:
|
||||
Intel:
|
||||
- date: 2025-10-02
|
||||
type: interaction
|
||||
summary: Vaust informs us that [[House Asase]] has been exceeding their quota for excavations underneath the arch. It's possible that [[House Asase]] is working with [[The Archmasons]] on this endeavour.
|
||||
source: "[[Lord Ellin Vaust]]"
|
||||
reliability: B
|
||||
credibility: 5
|
||||
tags: []
|
||||
- date: 2025-10-02
|
||||
type: interaction
|
||||
summary: We've learned that [[Iniana Asase]] runs a Soup Kitchen in the Drenches
|
||||
source: "[[Kite]]"
|
||||
reliability: A
|
||||
credibility: 5
|
||||
tags: []
|
||||
- date: 2025-10-02
|
||||
type: rumor
|
||||
summary: The Inspector General and Auditor of Internal Affairs for Y'athyr is from this house.
|
||||
source: "[[Kite]]"
|
||||
reliability: A
|
||||
credibility: 1
|
||||
tags: []
|
||||
Tags:
|
||||
- faction
|
||||
---
|
||||
|
||||
|
||||
# House Asase
|
||||
*One-line role/description — e.g., “Elven High House controlling Y’athir’s docks.”*
|
||||
|
||||
---
|
||||
|
||||
## 🎨 Artwork
|
||||
![[House Asase.png]]
|
||||
*Optional caption / artist credit*
|
||||
|
||||
---
|
||||
|
||||
## 🧭 Identity & Heraldry
|
||||
- **Motto:** `= default(this.Motto, "—")`
|
||||
- **Symbol:** `= default(this.Symbol, "—")`
|
||||
- **Colors:** `= default(this.Colors, "—")`
|
||||
- **Headquarters:** `= default(this.Headquarters, "—")`
|
||||
- **Territories:** `= this.Territories`
|
||||
|
||||
---
|
||||
|
||||
## 📜 Ideology & Goals
|
||||
- **Ideology / Alignment:** `= default(this.Ideology, "—")`
|
||||
- **Primary Goals:**
|
||||
-
|
||||
- **Taboos / Anathema:**
|
||||
-
|
||||
|
||||
---
|
||||
|
||||
## 🤝 Relationship with Party
|
||||
- **Reputation:** `= this.Reputation`
|
||||
|
||||
---
|
||||
|
||||
## 🧑💼 Leadership & Structure
|
||||
- **Leader(s):** [[NPC A]], [[NPC B]]
|
||||
- **Structure:** (council, hierarchy, cells, chapters)
|
||||
- **Key Offices:** (Intelligence, Logistics, Priory, Treasury, etc.)
|
||||
|
||||
---
|
||||
|
||||
## 🧰 Assets & Operations
|
||||
- **Resources:** (coin, troops, mages, ships, safehouses, contacts)
|
||||
- **Notable Holdings:**
|
||||
- **Typical Ops / Tactics:**
|
||||
|
||||
---
|
||||
|
||||
## 🕊️ Diplomacy & Relations
|
||||
- **Allies:** `= this.Allies`
|
||||
- **Rivals:** `= this.Rivals`
|
||||
- **Stance toward “SMH” (their wording):** `= default(this.SMH_Acronym, "—")`
|
||||
|
||||
---
|
||||
|
||||
## 🧠 Intelligence & Mentions
|
||||
|
||||
```button
|
||||
name ➕ Add Intel
|
||||
type command
|
||||
action Templater: Insert Add Intel Entry to Faction
|
||||
```
|
||||
```dataviewjs
|
||||
const THIS = dv.current();
|
||||
const thisName = String(THIS.file.name);
|
||||
const thisLC = thisName.toLowerCase();
|
||||
|
||||
const factions = dv.pages("#faction");
|
||||
|
||||
// mention detector (same logic as your table)
|
||||
function mentionsThisFaction(entry) {
|
||||
const sum = String(entry.summary ?? "");
|
||||
if (sum.includes(`[[${thisName}]]`) || sum.includes(`[[${thisName}|`)) return true;
|
||||
const src = entry.source;
|
||||
const list = Array.isArray(src) ? src : (src ? [src] : []);
|
||||
for (const s of list) {
|
||||
if (typeof s === "string") {
|
||||
if (s.includes(`[[${thisName}]]`) || s.includes(`[[${thisName}|`)) return true;
|
||||
if (s.toLowerCase() === thisLC) return true;
|
||||
} else if (s && typeof s === "object" && s.path) {
|
||||
const base = s.path.split("/").pop().replace(/\.md$/i,"").toLowerCase();
|
||||
if (base === thisLC) return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
const own = (THIS.Intel ?? []).length;
|
||||
|
||||
let mentions = 0;
|
||||
for (const p of factions.where(p => p.file.name !== thisName)) {
|
||||
for (const it of (p.Intel ?? [])) if (mentionsThisFaction(it)) mentions++;
|
||||
}
|
||||
|
||||
dv.paragraph(`_Entries: ${own + mentions} (own ${own} + mentions ${mentions})_`);
|
||||
```
|
||||
```dataviewjs
|
||||
// Current faction
|
||||
const THIS = dv.current();
|
||||
const thisName = String(THIS.file.name);
|
||||
const thisLC = thisName.toLowerCase();
|
||||
|
||||
// All faction pages (including this one)
|
||||
const factions = dv.pages("#faction");
|
||||
|
||||
// Mention detector: summary has [[This Faction]] OR source points at this faction
|
||||
function mentionsThisFaction(entry) {
|
||||
const sum = String(entry.summary ?? "");
|
||||
if (sum.includes(`[[${thisName}]]`) || sum.includes(`[[${thisName}|`)) return true;
|
||||
|
||||
const src = entry.source;
|
||||
const list = Array.isArray(src) ? src : (src ? [src] : []);
|
||||
for (const s of list) {
|
||||
if (typeof s === "string") {
|
||||
if (s.includes(`[[${thisName}]]`) || s.includes(`[[${thisName}|`)) return true;
|
||||
if (s.toLowerCase() === thisLC) return true; // fallback: plain text match
|
||||
} else if (s && typeof s === "object" && s.path) { // wikilink object
|
||||
const base = s.path.split("/").pop().replace(/\.md$/i,"").toLowerCase();
|
||||
if (base === thisLC) return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// Collect rows
|
||||
const rows = [];
|
||||
|
||||
// 1) Own intel
|
||||
for (const it of (THIS.Intel ?? [])) {
|
||||
rows.push({
|
||||
date: it.date ?? "",
|
||||
from: THIS.file.link,
|
||||
type: it.type ?? "",
|
||||
summary: String(it.summary ?? ""),
|
||||
source: it.source ?? "",
|
||||
rel: it.reliability ?? "",
|
||||
cred: it.credibility ?? "",
|
||||
tags: Array.isArray(it.tags) ? it.tags.join(", ") : (it.tags ?? "")
|
||||
});
|
||||
}
|
||||
|
||||
// 2) Mentions from other factions
|
||||
for (const p of factions.where(p => p.file.name !== thisName)) {
|
||||
for (const it of (p.Intel ?? [])) {
|
||||
if (mentionsThisFaction(it)) {
|
||||
rows.push({
|
||||
date: it.date ?? "",
|
||||
from: p.file.link,
|
||||
type: it.type ?? "",
|
||||
summary: String(it.summary ?? ""),
|
||||
source: it.source ?? "",
|
||||
rel: it.reliability ?? "",
|
||||
cred: it.credibility ?? "",
|
||||
tags: Array.isArray(it.tags) ? it.tags.join(", ") : (it.tags ?? "")
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Sort newest first
|
||||
rows.sort((a,b) => String(b.date).localeCompare(String(a.date)));
|
||||
|
||||
if (!rows.length) {
|
||||
dv.paragraph("_No intel yet._");
|
||||
} else {
|
||||
dv.table(
|
||||
["Date","From Faction","Type","Summary","Source","Rel","Cred","Tags"],
|
||||
rows.map(r => [r.date, r.from, r.type, r.summary, r.source, r.rel, r.cred, r.tags])
|
||||
);
|
||||
}
|
||||
```
|
||||
> Add new entries in the **frontmatter** under `Intel:` (keep newest on top). Suggested fields: `date, type, summary, source, reliability, credibility, tags`.
|
||||
|
||||
---
|
||||
|
||||
## 🔗 Related NPCs (auto)
|
||||
```dataview
|
||||
TABLE link(file.name) AS NPC, number(Level_of_Influence) AS Influence, default(SMH_Acronym, "—") AS SMH
|
||||
FROM #npc
|
||||
WHERE file.name != "NPC Template"
|
||||
AND (
|
||||
Faction = this.file.link
|
||||
OR lower(string(Faction)) = lower(this.file.name)
|
||||
OR contains(lower(string(Faction)), lower(this.file.name))
|
||||
)
|
||||
SORT number(Level_of_Influence) DESC
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 📌 Plot Hooks & Notes
|
||||
-
|
||||
-
|
||||
|
||||
---
|
||||
|
||||
## 🗒 Session Updates
|
||||
- 2025-10-02: …
|
||||
+218
@@ -0,0 +1,218 @@
|
||||
---
|
||||
Reputation: 0
|
||||
Faction_Type: High House
|
||||
Motto:
|
||||
Ideology:
|
||||
Symbol:
|
||||
Colors:
|
||||
Headquarters:
|
||||
Territories:
|
||||
-
|
||||
Allies:
|
||||
-
|
||||
Rivals:
|
||||
-
|
||||
SMH_Acronym:
|
||||
Intel:
|
||||
Tags:
|
||||
- faction
|
||||
---
|
||||
|
||||
# House Calil
|
||||
*One-line role/description — e.g., “Elven High House controlling Y’athir’s docks.”*
|
||||
|
||||
---
|
||||
|
||||
## 🎨 Artwork
|
||||
![[House Calil.png]]
|
||||
*Optional caption / artist credit*
|
||||
|
||||
---
|
||||
|
||||
## 🧭 Identity & Heraldry
|
||||
- **Motto:** `= default(this.Motto, "—")`
|
||||
- **Symbol:** `= default(this.Symbol, "—")`
|
||||
- **Colors:** `= default(this.Colors, "—")`
|
||||
- **Headquarters:** `= default(this.Headquarters, "—")`
|
||||
- **Territories:** `= this.Territories`
|
||||
|
||||
---
|
||||
|
||||
## 📜 Ideology & Goals
|
||||
- **Ideology / Alignment:** `= default(this.Ideology, "—")`
|
||||
- **Primary Goals:**
|
||||
-
|
||||
- **Taboos / Anathema:**
|
||||
-
|
||||
|
||||
---
|
||||
|
||||
## 🤝 Relationship with Party
|
||||
- **Reputation:** `= this.Reputation`
|
||||
|
||||
---
|
||||
|
||||
## 🧑💼 Leadership & Structure
|
||||
- **Leader(s):** [[NPC A]], [[NPC B]]
|
||||
- **Structure:** (council, hierarchy, cells, chapters)
|
||||
- **Key Offices:** (Intelligence, Logistics, Priory, Treasury, etc.)
|
||||
|
||||
---
|
||||
|
||||
## 🧰 Assets & Operations
|
||||
- **Resources:**
|
||||
- Known to be Very Rich
|
||||
- **Notable Holdings:**
|
||||
- **Typical Ops / Tactics:**
|
||||
|
||||
---
|
||||
|
||||
## 🕊️ Diplomacy & Relations
|
||||
- **Allies:** `= this.Allies`
|
||||
- **Rivals:** `= this.Rivals`
|
||||
- **Stance toward “SMH” (their wording):** `= default(this.SMH_Acronym, "—")`
|
||||
|
||||
---
|
||||
|
||||
## 🧠 Intelligence & Mentions
|
||||
```button
|
||||
name ➕ Add Intel
|
||||
type command
|
||||
action Templater: Insert Add Intel Entry to Faction
|
||||
```
|
||||
```dataviewjs
|
||||
const THIS = dv.current();
|
||||
const thisName = String(THIS.file.name);
|
||||
const thisLC = thisName.toLowerCase();
|
||||
|
||||
const factions = dv.pages("#faction");
|
||||
|
||||
// mention detector (same logic as your table)
|
||||
function mentionsThisFaction(entry) {
|
||||
const sum = String(entry.summary ?? "");
|
||||
if (sum.includes(`[[${thisName}]]`) || sum.includes(`[[${thisName}|`)) return true;
|
||||
const src = entry.source;
|
||||
const list = Array.isArray(src) ? src : (src ? [src] : []);
|
||||
for (const s of list) {
|
||||
if (typeof s === "string") {
|
||||
if (s.includes(`[[${thisName}]]`) || s.includes(`[[${thisName}|`)) return true;
|
||||
if (s.toLowerCase() === thisLC) return true;
|
||||
} else if (s && typeof s === "object" && s.path) {
|
||||
const base = s.path.split("/").pop().replace(/\.md$/i,"").toLowerCase();
|
||||
if (base === thisLC) return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
const own = (THIS.Intel ?? []).length;
|
||||
|
||||
let mentions = 0;
|
||||
for (const p of factions.where(p => p.file.name !== thisName)) {
|
||||
for (const it of (p.Intel ?? [])) if (mentionsThisFaction(it)) mentions++;
|
||||
}
|
||||
|
||||
dv.paragraph(`_Entries: ${own + mentions} (own ${own} + mentions ${mentions})_`);
|
||||
```
|
||||
```dataviewjs
|
||||
// Current faction
|
||||
const THIS = dv.current();
|
||||
const thisName = String(THIS.file.name);
|
||||
const thisLC = thisName.toLowerCase();
|
||||
|
||||
// All faction pages (including this one)
|
||||
const factions = dv.pages("#faction");
|
||||
|
||||
// Mention detector: summary has [[This Faction]] OR source points at this faction
|
||||
function mentionsThisFaction(entry) {
|
||||
const sum = String(entry.summary ?? "");
|
||||
if (sum.includes(`[[${thisName}]]`) || sum.includes(`[[${thisName}|`)) return true;
|
||||
|
||||
const src = entry.source;
|
||||
const list = Array.isArray(src) ? src : (src ? [src] : []);
|
||||
for (const s of list) {
|
||||
if (typeof s === "string") {
|
||||
if (s.includes(`[[${thisName}]]`) || s.includes(`[[${thisName}|`)) return true;
|
||||
if (s.toLowerCase() === thisLC) return true; // fallback: plain text match
|
||||
} else if (s && typeof s === "object" && s.path) { // wikilink object
|
||||
const base = s.path.split("/").pop().replace(/\.md$/i,"").toLowerCase();
|
||||
if (base === thisLC) return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// Collect rows
|
||||
const rows = [];
|
||||
|
||||
// 1) Own intel
|
||||
for (const it of (THIS.Intel ?? [])) {
|
||||
rows.push({
|
||||
date: it.date ?? "",
|
||||
from: THIS.file.link,
|
||||
type: it.type ?? "",
|
||||
summary: String(it.summary ?? ""),
|
||||
source: it.source ?? "",
|
||||
rel: it.reliability ?? "",
|
||||
cred: it.credibility ?? "",
|
||||
tags: Array.isArray(it.tags) ? it.tags.join(", ") : (it.tags ?? "")
|
||||
});
|
||||
}
|
||||
|
||||
// 2) Mentions from other factions
|
||||
for (const p of factions.where(p => p.file.name !== thisName)) {
|
||||
for (const it of (p.Intel ?? [])) {
|
||||
if (mentionsThisFaction(it)) {
|
||||
rows.push({
|
||||
date: it.date ?? "",
|
||||
from: p.file.link,
|
||||
type: it.type ?? "",
|
||||
summary: String(it.summary ?? ""),
|
||||
source: it.source ?? "",
|
||||
rel: it.reliability ?? "",
|
||||
cred: it.credibility ?? "",
|
||||
tags: Array.isArray(it.tags) ? it.tags.join(", ") : (it.tags ?? "")
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Sort newest first
|
||||
rows.sort((a,b) => String(b.date).localeCompare(String(a.date)));
|
||||
|
||||
if (!rows.length) {
|
||||
dv.paragraph("_No intel yet._");
|
||||
} else {
|
||||
dv.table(
|
||||
["Date","From Faction","Type","Summary","Source","Rel","Cred","Tags"],
|
||||
rows.map(r => [r.date, r.from, r.type, r.summary, r.source, r.rel, r.cred, r.tags])
|
||||
);
|
||||
}
|
||||
```
|
||||
> Add new entries in the **frontmatter** under `Intel:` (keep newest on top). Suggested fields: `date, type, summary, source, reliability, credibility, tags`.
|
||||
|
||||
---
|
||||
|
||||
## 🔗 Related NPCs (auto)
|
||||
```dataview
|
||||
TABLE link(file.name) AS NPC, number(Level_of_Influence) AS Influence, default(SMH_Acronym, "—") AS SMH
|
||||
FROM #npc
|
||||
WHERE file.name != "NPC Template"
|
||||
AND (
|
||||
Faction = this.file.link
|
||||
OR lower(string(Faction)) = lower(this.file.name)
|
||||
OR contains(lower(string(Faction)), lower(this.file.name))
|
||||
)
|
||||
SORT number(Level_of_Influence) DESC
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 📌 Plot Hooks & Notes
|
||||
-
|
||||
-
|
||||
|
||||
---
|
||||
|
||||
## 🗒 Session Updates
|
||||
- 2025-10-02: …
|
||||
+225
@@ -0,0 +1,225 @@
|
||||
---
|
||||
Reputation: 0
|
||||
Faction_Type: High House
|
||||
Motto:
|
||||
Ideology:
|
||||
Symbol:
|
||||
Colors:
|
||||
Headquarters:
|
||||
Territories:
|
||||
-
|
||||
Allies:
|
||||
-
|
||||
Rivals:
|
||||
-
|
||||
SMH_Acronym:
|
||||
Intel:
|
||||
- date: 2025-10-02
|
||||
type: interaction
|
||||
summary: We're told by [[Fenric Draycott]] that [[House Elidari]] has been threatening to adopt a new chief enforcer.
|
||||
source: "[[Draycott Family]]"
|
||||
reliability: A
|
||||
credibility: 5
|
||||
tags: []
|
||||
Tags:
|
||||
- faction
|
||||
---
|
||||
|
||||
|
||||
# House Elidari
|
||||
*Current Ruling House of Y'athyr*
|
||||
|
||||
---
|
||||
|
||||
## 🎨 Artwork
|
||||
![[House Elidari.png]]
|
||||
*Optional caption / artist credit*
|
||||
|
||||
---
|
||||
|
||||
## 🧭 Identity & Heraldry
|
||||
- **Motto:** `= default(this.Motto, "—")`
|
||||
- **Symbol:** `= default(this.Symbol, "—")`
|
||||
- **Colors:** `= default(this.Colors, "—")`
|
||||
- **Headquarters:** `= default(this.Headquarters, "—")`
|
||||
- **Territories:** `= this.Territories`
|
||||
|
||||
---
|
||||
|
||||
## 📜 Ideology & Goals
|
||||
- **Ideology / Alignment:** `= default(this.Ideology, "—")`
|
||||
- **Primary Goals:**
|
||||
-
|
||||
- **Taboos / Anathema:**
|
||||
-
|
||||
|
||||
---
|
||||
|
||||
## 🤝 Relationship with Party
|
||||
- **Reputation:** `= this.Reputation`
|
||||
|
||||
---
|
||||
|
||||
## 🧑💼 Leadership & Structure
|
||||
- **Leader(s):** [[NPC A]], [[NPC B]]
|
||||
- **Structure:** (council, hierarchy, cells, chapters)
|
||||
- **Key Offices:** (Intelligence, Logistics, Priory, Treasury, etc.)
|
||||
|
||||
---
|
||||
|
||||
## 🧰 Assets & Operations
|
||||
- **Resources:** (coin, troops, mages, ships, safehouses, contacts)
|
||||
- **Notable Holdings:**
|
||||
- **Typical Ops / Tactics:**
|
||||
|
||||
---
|
||||
|
||||
## 🕊️ Diplomacy & Relations
|
||||
- **Allies:** `= this.Allies`
|
||||
- **Rivals:** `= this.Rivals`
|
||||
- **Stance toward “SMH” (their wording):** `= default(this.SMH_Acronym, "—")`
|
||||
|
||||
---
|
||||
|
||||
## 🧠 Intelligence & Mentions
|
||||
```button
|
||||
name ➕ Add Intel
|
||||
type command
|
||||
action Templater: Insert Add Intel Entry to Faction
|
||||
```
|
||||
```dataviewjs
|
||||
const THIS = dv.current();
|
||||
const thisName = String(THIS.file.name);
|
||||
const thisLC = thisName.toLowerCase();
|
||||
|
||||
const factions = dv.pages("#faction");
|
||||
|
||||
// mention detector (same logic as your table)
|
||||
function mentionsThisFaction(entry) {
|
||||
const sum = String(entry.summary ?? "");
|
||||
if (sum.includes(`[[${thisName}]]`) || sum.includes(`[[${thisName}|`)) return true;
|
||||
const src = entry.source;
|
||||
const list = Array.isArray(src) ? src : (src ? [src] : []);
|
||||
for (const s of list) {
|
||||
if (typeof s === "string") {
|
||||
if (s.includes(`[[${thisName}]]`) || s.includes(`[[${thisName}|`)) return true;
|
||||
if (s.toLowerCase() === thisLC) return true;
|
||||
} else if (s && typeof s === "object" && s.path) {
|
||||
const base = s.path.split("/").pop().replace(/\.md$/i,"").toLowerCase();
|
||||
if (base === thisLC) return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
const own = (THIS.Intel ?? []).length;
|
||||
|
||||
let mentions = 0;
|
||||
for (const p of factions.where(p => p.file.name !== thisName)) {
|
||||
for (const it of (p.Intel ?? [])) if (mentionsThisFaction(it)) mentions++;
|
||||
}
|
||||
|
||||
dv.paragraph(`_Entries: ${own + mentions} (own ${own} + mentions ${mentions})_`);
|
||||
```
|
||||
```dataviewjs
|
||||
// Current faction
|
||||
const THIS = dv.current();
|
||||
const thisName = String(THIS.file.name);
|
||||
const thisLC = thisName.toLowerCase();
|
||||
|
||||
// All faction pages (including this one)
|
||||
const factions = dv.pages("#faction");
|
||||
|
||||
// Mention detector: summary has [[This Faction]] OR source points at this faction
|
||||
function mentionsThisFaction(entry) {
|
||||
const sum = String(entry.summary ?? "");
|
||||
if (sum.includes(`[[${thisName}]]`) || sum.includes(`[[${thisName}|`)) return true;
|
||||
|
||||
const src = entry.source;
|
||||
const list = Array.isArray(src) ? src : (src ? [src] : []);
|
||||
for (const s of list) {
|
||||
if (typeof s === "string") {
|
||||
if (s.includes(`[[${thisName}]]`) || s.includes(`[[${thisName}|`)) return true;
|
||||
if (s.toLowerCase() === thisLC) return true; // fallback: plain text match
|
||||
} else if (s && typeof s === "object" && s.path) { // wikilink object
|
||||
const base = s.path.split("/").pop().replace(/\.md$/i,"").toLowerCase();
|
||||
if (base === thisLC) return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// Collect rows
|
||||
const rows = [];
|
||||
|
||||
// 1) Own intel
|
||||
for (const it of (THIS.Intel ?? [])) {
|
||||
rows.push({
|
||||
date: it.date ?? "",
|
||||
from: THIS.file.link,
|
||||
type: it.type ?? "",
|
||||
summary: String(it.summary ?? ""),
|
||||
source: it.source ?? "",
|
||||
rel: it.reliability ?? "",
|
||||
cred: it.credibility ?? "",
|
||||
tags: Array.isArray(it.tags) ? it.tags.join(", ") : (it.tags ?? "")
|
||||
});
|
||||
}
|
||||
|
||||
// 2) Mentions from other factions
|
||||
for (const p of factions.where(p => p.file.name !== thisName)) {
|
||||
for (const it of (p.Intel ?? [])) {
|
||||
if (mentionsThisFaction(it)) {
|
||||
rows.push({
|
||||
date: it.date ?? "",
|
||||
from: p.file.link,
|
||||
type: it.type ?? "",
|
||||
summary: String(it.summary ?? ""),
|
||||
source: it.source ?? "",
|
||||
rel: it.reliability ?? "",
|
||||
cred: it.credibility ?? "",
|
||||
tags: Array.isArray(it.tags) ? it.tags.join(", ") : (it.tags ?? "")
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Sort newest first
|
||||
rows.sort((a,b) => String(b.date).localeCompare(String(a.date)));
|
||||
|
||||
if (!rows.length) {
|
||||
dv.paragraph("_No intel yet._");
|
||||
} else {
|
||||
dv.table(
|
||||
["Date","From Faction","Type","Summary","Source","Rel","Cred","Tags"],
|
||||
rows.map(r => [r.date, r.from, r.type, r.summary, r.source, r.rel, r.cred, r.tags])
|
||||
);
|
||||
}
|
||||
```
|
||||
> Add new entries in the **frontmatter** under `Intel:` (keep newest on top). Suggested fields: `date, type, summary, source, reliability, credibility, tags`.
|
||||
|
||||
---
|
||||
|
||||
## 🔗 Related NPCs (auto)
|
||||
```dataview
|
||||
TABLE link(file.name) AS NPC, number(Level_of_Influence) AS Influence, default(SMH_Acronym, "—") AS SMH
|
||||
FROM #npc
|
||||
WHERE file.name != "NPC Template"
|
||||
AND (
|
||||
Faction = this.file.link
|
||||
OR lower(string(Faction)) = lower(this.file.name)
|
||||
OR contains(lower(string(Faction)), lower(this.file.name))
|
||||
)
|
||||
SORT number(Level_of_Influence) DESC
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 📌 Plot Hooks & Notes
|
||||
-
|
||||
-
|
||||
|
||||
---
|
||||
|
||||
## 🗒 Session Updates
|
||||
- 2025-10-02: …
|
||||
+241
@@ -0,0 +1,241 @@
|
||||
---
|
||||
Reputation: 0
|
||||
Faction_Type: High House
|
||||
Motto:
|
||||
Ideology:
|
||||
Symbol:
|
||||
Colors:
|
||||
Headquarters:
|
||||
Territories:
|
||||
-
|
||||
Allies:
|
||||
-
|
||||
Rivals:
|
||||
-
|
||||
SMH_Acronym:
|
||||
Intel:
|
||||
- date: 2025-10-02
|
||||
type: report
|
||||
summary: "[[House Miiran]] owns a lumbering operation that is running out of land to...lumber?"
|
||||
source: "[[Kite]]"
|
||||
reliability: A
|
||||
credibility: 5
|
||||
tags: []
|
||||
- date: 2025-10-02
|
||||
type: lore
|
||||
summary: "[[House Miiran]] is frequently involved in the production of goods."
|
||||
source: Lore
|
||||
reliability: A
|
||||
credibility: 5
|
||||
tags: []
|
||||
- date: 2025-10-02
|
||||
type: report
|
||||
summary: "[[Kite]] finds a series of threatening letters that indiciate [[House Miiran]] wants to purchase the farm of [[Atmaka Sayin]]"
|
||||
source: "[[Kite]]"
|
||||
reliability: A
|
||||
credibility: 5
|
||||
tags: []
|
||||
Tags:
|
||||
- faction
|
||||
---
|
||||
|
||||
|
||||
|
||||
|
||||
# House Miiran
|
||||
*One-line role/description — e.g., “Elven High House controlling Y’athir’s docks.”*
|
||||
|
||||
---
|
||||
|
||||
## 🎨 Artwork
|
||||
![[House Miiran.png]]
|
||||
*Optional caption / artist credit*
|
||||
|
||||
---
|
||||
|
||||
## 🧭 Identity & Heraldry
|
||||
- **Motto:** `= default(this.Motto, "—")`
|
||||
- **Symbol:** `= default(this.Symbol, "—")`
|
||||
- **Colors:** `= default(this.Colors, "—")`
|
||||
- **Headquarters:** `= default(this.Headquarters, "—")`
|
||||
- **Territories:** `= this.Territories`
|
||||
|
||||
---
|
||||
|
||||
## 📜 Ideology & Goals
|
||||
- **Ideology / Alignment:** `= default(this.Ideology, "—")`
|
||||
- **Primary Goals:**
|
||||
-
|
||||
- **Taboos / Anathema:**
|
||||
-
|
||||
|
||||
---
|
||||
|
||||
## 🤝 Relationship with Party
|
||||
- **Reputation:** `= this.Reputation`
|
||||
|
||||
---
|
||||
|
||||
## 🧑💼 Leadership & Structure
|
||||
- **Leader(s):** [[NPC A]], [[NPC B]]
|
||||
- **Structure:** (council, hierarchy, cells, chapters)
|
||||
- **Key Offices:** (Intelligence, Logistics, Priory, Treasury, etc.)
|
||||
|
||||
---
|
||||
|
||||
## 🧰 Assets & Operations
|
||||
- **Resources:** (coin, troops, mages, ships, safehouses, contacts)
|
||||
- **Notable Holdings:**
|
||||
- **Typical Ops / Tactics:**
|
||||
|
||||
---
|
||||
|
||||
## 🕊️ Diplomacy & Relations
|
||||
- **Allies:** `= this.Allies`
|
||||
- **Rivals:** `= this.Rivals`
|
||||
- **Stance toward “SMH” (their wording):** `= default(this.SMH_Acronym, "—")`
|
||||
|
||||
---
|
||||
|
||||
## 🧠 Intelligence & Mentions
|
||||
```button
|
||||
name ➕ Add Intel
|
||||
type command
|
||||
action Templater: Insert Add Intel Entry to Faction
|
||||
```
|
||||
```dataviewjs
|
||||
const THIS = dv.current();
|
||||
const thisName = String(THIS.file.name);
|
||||
const thisLC = thisName.toLowerCase();
|
||||
|
||||
const factions = dv.pages("#faction");
|
||||
|
||||
// mention detector (same logic as your table)
|
||||
function mentionsThisFaction(entry) {
|
||||
const sum = String(entry.summary ?? "");
|
||||
if (sum.includes(`[[${thisName}]]`) || sum.includes(`[[${thisName}|`)) return true;
|
||||
const src = entry.source;
|
||||
const list = Array.isArray(src) ? src : (src ? [src] : []);
|
||||
for (const s of list) {
|
||||
if (typeof s === "string") {
|
||||
if (s.includes(`[[${thisName}]]`) || s.includes(`[[${thisName}|`)) return true;
|
||||
if (s.toLowerCase() === thisLC) return true;
|
||||
} else if (s && typeof s === "object" && s.path) {
|
||||
const base = s.path.split("/").pop().replace(/\.md$/i,"").toLowerCase();
|
||||
if (base === thisLC) return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
const own = (THIS.Intel ?? []).length;
|
||||
|
||||
let mentions = 0;
|
||||
for (const p of factions.where(p => p.file.name !== thisName)) {
|
||||
for (const it of (p.Intel ?? [])) if (mentionsThisFaction(it)) mentions++;
|
||||
}
|
||||
|
||||
dv.paragraph(`_Entries: ${own + mentions} (own ${own} + mentions ${mentions})_`);
|
||||
```
|
||||
```dataviewjs
|
||||
// Current faction
|
||||
const THIS = dv.current();
|
||||
const thisName = String(THIS.file.name);
|
||||
const thisLC = thisName.toLowerCase();
|
||||
|
||||
// All faction pages (including this one)
|
||||
const factions = dv.pages("#faction");
|
||||
|
||||
// Mention detector: summary has [[This Faction]] OR source points at this faction
|
||||
function mentionsThisFaction(entry) {
|
||||
const sum = String(entry.summary ?? "");
|
||||
if (sum.includes(`[[${thisName}]]`) || sum.includes(`[[${thisName}|`)) return true;
|
||||
|
||||
const src = entry.source;
|
||||
const list = Array.isArray(src) ? src : (src ? [src] : []);
|
||||
for (const s of list) {
|
||||
if (typeof s === "string") {
|
||||
if (s.includes(`[[${thisName}]]`) || s.includes(`[[${thisName}|`)) return true;
|
||||
if (s.toLowerCase() === thisLC) return true; // fallback: plain text match
|
||||
} else if (s && typeof s === "object" && s.path) { // wikilink object
|
||||
const base = s.path.split("/").pop().replace(/\.md$/i,"").toLowerCase();
|
||||
if (base === thisLC) return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// Collect rows
|
||||
const rows = [];
|
||||
|
||||
// 1) Own intel
|
||||
for (const it of (THIS.Intel ?? [])) {
|
||||
rows.push({
|
||||
date: it.date ?? "",
|
||||
from: THIS.file.link,
|
||||
type: it.type ?? "",
|
||||
summary: String(it.summary ?? ""),
|
||||
source: it.source ?? "",
|
||||
rel: it.reliability ?? "",
|
||||
cred: it.credibility ?? "",
|
||||
tags: Array.isArray(it.tags) ? it.tags.join(", ") : (it.tags ?? "")
|
||||
});
|
||||
}
|
||||
|
||||
// 2) Mentions from other factions
|
||||
for (const p of factions.where(p => p.file.name !== thisName)) {
|
||||
for (const it of (p.Intel ?? [])) {
|
||||
if (mentionsThisFaction(it)) {
|
||||
rows.push({
|
||||
date: it.date ?? "",
|
||||
from: p.file.link,
|
||||
type: it.type ?? "",
|
||||
summary: String(it.summary ?? ""),
|
||||
source: it.source ?? "",
|
||||
rel: it.reliability ?? "",
|
||||
cred: it.credibility ?? "",
|
||||
tags: Array.isArray(it.tags) ? it.tags.join(", ") : (it.tags ?? "")
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Sort newest first
|
||||
rows.sort((a,b) => String(b.date).localeCompare(String(a.date)));
|
||||
|
||||
if (!rows.length) {
|
||||
dv.paragraph("_No intel yet._");
|
||||
} else {
|
||||
dv.table(
|
||||
["Date","From Faction","Type","Summary","Source","Rel","Cred","Tags"],
|
||||
rows.map(r => [r.date, r.from, r.type, r.summary, r.source, r.rel, r.cred, r.tags])
|
||||
);
|
||||
}
|
||||
```
|
||||
> Add new entries in the **frontmatter** under `Intel:` (keep newest on top). Suggested fields: `date, type, summary, source, reliability, credibility, tags`.
|
||||
|
||||
---
|
||||
|
||||
## 🔗 Related NPCs (auto)
|
||||
```dataview
|
||||
TABLE link(file.name) AS NPC, number(Level_of_Influence) AS Influence, default(SMH_Acronym, "—") AS SMH
|
||||
FROM #npc
|
||||
WHERE file.name != "NPC Template"
|
||||
AND (
|
||||
Faction = this.file.link
|
||||
OR lower(string(Faction)) = lower(this.file.name)
|
||||
OR contains(lower(string(Faction)), lower(this.file.name))
|
||||
)
|
||||
SORT number(Level_of_Influence) DESC
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 📌 Plot Hooks & Notes
|
||||
-
|
||||
-
|
||||
|
||||
---
|
||||
|
||||
## 🗒 Session Updates
|
||||
- 2025-10-02: …
|
||||
+225
@@ -0,0 +1,225 @@
|
||||
---
|
||||
Reputation: 0
|
||||
Faction_Type: High House
|
||||
Motto:
|
||||
Ideology:
|
||||
Symbol:
|
||||
Colors:
|
||||
Headquarters:
|
||||
Territories:
|
||||
-
|
||||
Allies:
|
||||
-
|
||||
Rivals:
|
||||
-
|
||||
SMH_Acronym:
|
||||
Intel:
|
||||
- date: 2025-10-02
|
||||
type: report
|
||||
summary: Oft composed of politicians and historians, members of this High House are frequently employed as advisors and ambassadors
|
||||
source: Lore
|
||||
reliability: A
|
||||
credibility: 5
|
||||
tags: []
|
||||
Tags:
|
||||
- faction
|
||||
---
|
||||
|
||||
|
||||
# House Noctilun
|
||||
*One of the True High Houses*
|
||||
|
||||
---
|
||||
|
||||
## 🎨 Artwork
|
||||
![[House Noctilun.png]]
|
||||
*Optional caption / artist credit*
|
||||
|
||||
---
|
||||
|
||||
## 🧭 Identity & Heraldry
|
||||
- **Motto:** `= default(this.Motto, "—")`
|
||||
- **Symbol:** `= default(this.Symbol, "—")`
|
||||
- **Colors:** `= default(this.Colors, "—")`
|
||||
- **Headquarters:** `= default(this.Headquarters, "—")`
|
||||
- **Territories:** `= this.Territories`
|
||||
|
||||
---
|
||||
|
||||
## 📜 Ideology & Goals
|
||||
- **Ideology / Alignment:** `= default(this.Ideology, "—")`
|
||||
- **Primary Goals:**
|
||||
-
|
||||
- **Taboos / Anathema:**
|
||||
-
|
||||
|
||||
---
|
||||
|
||||
## 🤝 Relationship with Party
|
||||
- **Reputation:** `= this.Reputation`
|
||||
|
||||
---
|
||||
|
||||
## 🧑💼 Leadership & Structure
|
||||
- **Leader(s):** [[NPC A]], [[NPC B]]
|
||||
- **Structure:** (council, hierarchy, cells, chapters)
|
||||
- **Key Offices:** (Intelligence, Logistics, Priory, Treasury, etc.)
|
||||
|
||||
---
|
||||
|
||||
## 🧰 Assets & Operations
|
||||
- **Resources:** (coin, troops, mages, ships, safehouses, contacts)
|
||||
- **Notable Holdings:** Gathering Venues - pubs, theaters, opera houses
|
||||
- **Typical Ops / Tactics:**
|
||||
|
||||
---
|
||||
|
||||
## 🕊️ Diplomacy & Relations
|
||||
- **Allies:** `= this.Allies`
|
||||
- **Rivals:** `= this.Rivals`
|
||||
- **Stance toward “SMH” (their wording):** `= default(this.SMH_Acronym, "—")`
|
||||
|
||||
---
|
||||
|
||||
## 🧠 Intelligence & Mentions
|
||||
```button
|
||||
name ➕ Add Intel
|
||||
type command
|
||||
action Templater: Insert Add Intel Entry to Faction
|
||||
```
|
||||
```dataviewjs
|
||||
const THIS = dv.current();
|
||||
const thisName = String(THIS.file.name);
|
||||
const thisLC = thisName.toLowerCase();
|
||||
|
||||
const factions = dv.pages("#faction");
|
||||
|
||||
// mention detector (same logic as your table)
|
||||
function mentionsThisFaction(entry) {
|
||||
const sum = String(entry.summary ?? "");
|
||||
if (sum.includes(`[[${thisName}]]`) || sum.includes(`[[${thisName}|`)) return true;
|
||||
const src = entry.source;
|
||||
const list = Array.isArray(src) ? src : (src ? [src] : []);
|
||||
for (const s of list) {
|
||||
if (typeof s === "string") {
|
||||
if (s.includes(`[[${thisName}]]`) || s.includes(`[[${thisName}|`)) return true;
|
||||
if (s.toLowerCase() === thisLC) return true;
|
||||
} else if (s && typeof s === "object" && s.path) {
|
||||
const base = s.path.split("/").pop().replace(/\.md$/i,"").toLowerCase();
|
||||
if (base === thisLC) return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
const own = (THIS.Intel ?? []).length;
|
||||
|
||||
let mentions = 0;
|
||||
for (const p of factions.where(p => p.file.name !== thisName)) {
|
||||
for (const it of (p.Intel ?? [])) if (mentionsThisFaction(it)) mentions++;
|
||||
}
|
||||
|
||||
dv.paragraph(`_Entries: ${own + mentions} (own ${own} + mentions ${mentions})_`);
|
||||
```
|
||||
```dataviewjs
|
||||
// Current faction
|
||||
const THIS = dv.current();
|
||||
const thisName = String(THIS.file.name);
|
||||
const thisLC = thisName.toLowerCase();
|
||||
|
||||
// All faction pages (including this one)
|
||||
const factions = dv.pages("#faction");
|
||||
|
||||
// Mention detector: summary has [[This Faction]] OR source points at this faction
|
||||
function mentionsThisFaction(entry) {
|
||||
const sum = String(entry.summary ?? "");
|
||||
if (sum.includes(`[[${thisName}]]`) || sum.includes(`[[${thisName}|`)) return true;
|
||||
|
||||
const src = entry.source;
|
||||
const list = Array.isArray(src) ? src : (src ? [src] : []);
|
||||
for (const s of list) {
|
||||
if (typeof s === "string") {
|
||||
if (s.includes(`[[${thisName}]]`) || s.includes(`[[${thisName}|`)) return true;
|
||||
if (s.toLowerCase() === thisLC) return true; // fallback: plain text match
|
||||
} else if (s && typeof s === "object" && s.path) { // wikilink object
|
||||
const base = s.path.split("/").pop().replace(/\.md$/i,"").toLowerCase();
|
||||
if (base === thisLC) return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// Collect rows
|
||||
const rows = [];
|
||||
|
||||
// 1) Own intel
|
||||
for (const it of (THIS.Intel ?? [])) {
|
||||
rows.push({
|
||||
date: it.date ?? "",
|
||||
from: THIS.file.link,
|
||||
type: it.type ?? "",
|
||||
summary: String(it.summary ?? ""),
|
||||
source: it.source ?? "",
|
||||
rel: it.reliability ?? "",
|
||||
cred: it.credibility ?? "",
|
||||
tags: Array.isArray(it.tags) ? it.tags.join(", ") : (it.tags ?? "")
|
||||
});
|
||||
}
|
||||
|
||||
// 2) Mentions from other factions
|
||||
for (const p of factions.where(p => p.file.name !== thisName)) {
|
||||
for (const it of (p.Intel ?? [])) {
|
||||
if (mentionsThisFaction(it)) {
|
||||
rows.push({
|
||||
date: it.date ?? "",
|
||||
from: p.file.link,
|
||||
type: it.type ?? "",
|
||||
summary: String(it.summary ?? ""),
|
||||
source: it.source ?? "",
|
||||
rel: it.reliability ?? "",
|
||||
cred: it.credibility ?? "",
|
||||
tags: Array.isArray(it.tags) ? it.tags.join(", ") : (it.tags ?? "")
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Sort newest first
|
||||
rows.sort((a,b) => String(b.date).localeCompare(String(a.date)));
|
||||
|
||||
if (!rows.length) {
|
||||
dv.paragraph("_No intel yet._");
|
||||
} else {
|
||||
dv.table(
|
||||
["Date","From Faction","Type","Summary","Source","Rel","Cred","Tags"],
|
||||
rows.map(r => [r.date, r.from, r.type, r.summary, r.source, r.rel, r.cred, r.tags])
|
||||
);
|
||||
}
|
||||
```
|
||||
> Add new entries in the **frontmatter** under `Intel:` (keep newest on top). Suggested fields: `date, type, summary, source, reliability, credibility, tags`.
|
||||
|
||||
---
|
||||
|
||||
## 🔗 Related NPCs (auto)
|
||||
```dataview
|
||||
TABLE link(file.name) AS NPC, number(Level_of_Influence) AS Influence, default(SMH_Acronym, "—") AS SMH
|
||||
FROM #npc
|
||||
WHERE file.name != "NPC Template"
|
||||
AND (
|
||||
Faction = this.file.link
|
||||
OR lower(string(Faction)) = lower(this.file.name)
|
||||
OR contains(lower(string(Faction)), lower(this.file.name))
|
||||
)
|
||||
SORT number(Level_of_Influence) DESC
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 📌 Plot Hooks & Notes
|
||||
-
|
||||
-
|
||||
|
||||
---
|
||||
|
||||
## 🗒 Session Updates
|
||||
- 2025-10-02: …
|
||||
+251
@@ -0,0 +1,251 @@
|
||||
---
|
||||
Reputation: 0
|
||||
Faction_Type: High House
|
||||
Motto:
|
||||
Ideology:
|
||||
Symbol:
|
||||
Colors:
|
||||
Headquarters:
|
||||
Territories:
|
||||
-
|
||||
Allies:
|
||||
- "[[House Tenrae]]"
|
||||
Rivals:
|
||||
-
|
||||
SMH_Acronym:
|
||||
Intel:
|
||||
- date: 2025-10-02
|
||||
type: interaction
|
||||
summary: We're told by [[Fenric Draycott]] that there's been a recent change in leadership for [[House Tassarion]]
|
||||
source: "[[Draycott Family]]"
|
||||
reliability: A
|
||||
credibility: 5
|
||||
tags: []
|
||||
- date: 2025-10-02
|
||||
type: report
|
||||
summary: House Tassarion is generally known for their deaings with the craftsmanship of ships, wagons and buildings.
|
||||
source: Lore
|
||||
reliability: A
|
||||
credibility: 5
|
||||
tags:
|
||||
- lore
|
||||
- date: 2025-10-02
|
||||
type: report
|
||||
summary: "[[House Tassarion]] has been lending forces to the Master of the Port, so that they can keep things controlled."
|
||||
source: "[[Session 1 - The Beginning of the End]]"
|
||||
reliability: A
|
||||
credibility: 5
|
||||
tags: []
|
||||
- date: 2025-10-02
|
||||
type: report
|
||||
summary: "[[House Tassarion]] has very few people holding that last name in Y'athyr. Instead, the major sub-house of Tassarion in the city is [[House Tenrae]]"
|
||||
source: Lore
|
||||
reliability: A
|
||||
credibility: 5
|
||||
tags:
|
||||
- lore
|
||||
Tags:
|
||||
- faction
|
||||
---
|
||||
|
||||
|
||||
|
||||
|
||||
# House Tassarion
|
||||
*One of the True High Houses*
|
||||
|
||||
---
|
||||
|
||||
## 🎨 Artwork
|
||||
![[House Tassarion.png]]
|
||||
*Optional caption / artist credit*
|
||||
|
||||
---
|
||||
|
||||
## 🧭 Identity & Heraldry
|
||||
- **Motto:** `= default(this.Motto, "—")`
|
||||
- **Symbol:** `= default(this.Symbol, "—")`
|
||||
- **Colors:** `= default(this.Colors, "—")`
|
||||
- **Headquarters:** `= default(this.Headquarters, "—")`
|
||||
- **Territories:** `= this.Territories`
|
||||
|
||||
---
|
||||
|
||||
## 📜 Ideology & Goals
|
||||
- **Ideology / Alignment:** `= default(this.Ideology, "—")`
|
||||
- **Primary Goals:**
|
||||
-
|
||||
- **Taboos / Anathema:**
|
||||
-
|
||||
|
||||
---
|
||||
|
||||
## 🤝 Relationship with Party
|
||||
- **Reputation:** `= this.Reputation`
|
||||
|
||||
---
|
||||
|
||||
## 🧑💼 Leadership & Structure
|
||||
- **Leader(s):** [[NPC A]], [[NPC B]]
|
||||
- **Structure:** (council, hierarchy, cells, chapters)
|
||||
- **Key Offices:** (Intelligence, Logistics, Priory, Treasury, etc.)
|
||||
|
||||
---
|
||||
|
||||
## 🧰 Assets & Operations
|
||||
- **Resources:** (coin, troops, mages, ships, safehouses, contacts)
|
||||
- **Notable Holdings:**
|
||||
- **Typical Ops / Tactics:**
|
||||
|
||||
---
|
||||
|
||||
## 🕊️ Diplomacy & Relations
|
||||
- **Allies:** `= this.Allies`
|
||||
- **Rivals:** `= this.Rivals`
|
||||
- **Stance toward “SMH” (their wording):** `= default(this.SMH_Acronym, "—")`
|
||||
|
||||
|
||||
---
|
||||
|
||||
## 🧠 Intelligence & Mentions
|
||||
```button
|
||||
name ➕ Add Intel
|
||||
type command
|
||||
action Templater: Insert Add Intel Entry to Faction
|
||||
```
|
||||
```dataviewjs
|
||||
const THIS = dv.current();
|
||||
const thisName = String(THIS.file.name);
|
||||
const thisLC = thisName.toLowerCase();
|
||||
|
||||
const factions = dv.pages("#faction");
|
||||
|
||||
// mention detector (same logic as your table)
|
||||
function mentionsThisFaction(entry) {
|
||||
const sum = String(entry.summary ?? "");
|
||||
if (sum.includes(`[[${thisName}]]`) || sum.includes(`[[${thisName}|`)) return true;
|
||||
const src = entry.source;
|
||||
const list = Array.isArray(src) ? src : (src ? [src] : []);
|
||||
for (const s of list) {
|
||||
if (typeof s === "string") {
|
||||
if (s.includes(`[[${thisName}]]`) || s.includes(`[[${thisName}|`)) return true;
|
||||
if (s.toLowerCase() === thisLC) return true;
|
||||
} else if (s && typeof s === "object" && s.path) {
|
||||
const base = s.path.split("/").pop().replace(/\.md$/i,"").toLowerCase();
|
||||
if (base === thisLC) return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
const own = (THIS.Intel ?? []).length;
|
||||
|
||||
let mentions = 0;
|
||||
for (const p of factions.where(p => p.file.name !== thisName)) {
|
||||
for (const it of (p.Intel ?? [])) if (mentionsThisFaction(it)) mentions++;
|
||||
}
|
||||
|
||||
dv.paragraph(`_Entries: ${own + mentions} (own ${own} + mentions ${mentions})_`);
|
||||
```
|
||||
```dataviewjs
|
||||
// Current faction
|
||||
const THIS = dv.current();
|
||||
const thisName = String(THIS.file.name);
|
||||
const thisLC = thisName.toLowerCase();
|
||||
|
||||
// All faction pages (including this one)
|
||||
const factions = dv.pages("#faction");
|
||||
|
||||
// Mention detector: summary has [[This Faction]] OR source points at this faction
|
||||
function mentionsThisFaction(entry) {
|
||||
const sum = String(entry.summary ?? "");
|
||||
if (sum.includes(`[[${thisName}]]`) || sum.includes(`[[${thisName}|`)) return true;
|
||||
|
||||
const src = entry.source;
|
||||
const list = Array.isArray(src) ? src : (src ? [src] : []);
|
||||
for (const s of list) {
|
||||
if (typeof s === "string") {
|
||||
if (s.includes(`[[${thisName}]]`) || s.includes(`[[${thisName}|`)) return true;
|
||||
if (s.toLowerCase() === thisLC) return true; // fallback: plain text match
|
||||
} else if (s && typeof s === "object" && s.path) { // wikilink object
|
||||
const base = s.path.split("/").pop().replace(/\.md$/i,"").toLowerCase();
|
||||
if (base === thisLC) return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// Collect rows
|
||||
const rows = [];
|
||||
|
||||
// 1) Own intel
|
||||
for (const it of (THIS.Intel ?? [])) {
|
||||
rows.push({
|
||||
date: it.date ?? "",
|
||||
from: THIS.file.link,
|
||||
type: it.type ?? "",
|
||||
summary: String(it.summary ?? ""),
|
||||
source: it.source ?? "",
|
||||
rel: it.reliability ?? "",
|
||||
cred: it.credibility ?? "",
|
||||
tags: Array.isArray(it.tags) ? it.tags.join(", ") : (it.tags ?? "")
|
||||
});
|
||||
}
|
||||
|
||||
// 2) Mentions from other factions
|
||||
for (const p of factions.where(p => p.file.name !== thisName)) {
|
||||
for (const it of (p.Intel ?? [])) {
|
||||
if (mentionsThisFaction(it)) {
|
||||
rows.push({
|
||||
date: it.date ?? "",
|
||||
from: p.file.link,
|
||||
type: it.type ?? "",
|
||||
summary: String(it.summary ?? ""),
|
||||
source: it.source ?? "",
|
||||
rel: it.reliability ?? "",
|
||||
cred: it.credibility ?? "",
|
||||
tags: Array.isArray(it.tags) ? it.tags.join(", ") : (it.tags ?? "")
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Sort newest first
|
||||
rows.sort((a,b) => String(b.date).localeCompare(String(a.date)));
|
||||
|
||||
if (!rows.length) {
|
||||
dv.paragraph("_No intel yet._");
|
||||
} else {
|
||||
dv.table(
|
||||
["Date","From Faction","Type","Summary","Source","Rel","Cred","Tags"],
|
||||
rows.map(r => [r.date, r.from, r.type, r.summary, r.source, r.rel, r.cred, r.tags])
|
||||
);
|
||||
}
|
||||
```
|
||||
> Add new entries in the **frontmatter** under `Intel:` (keep newest on top). Suggested fields: `date, type, summary, source, reliability, credibility, tags`.
|
||||
|
||||
---
|
||||
|
||||
## 🔗 Related NPCs (auto)
|
||||
```dataview
|
||||
TABLE link(file.name) AS NPC, number(Level_of_Influence) AS Influence, default(SMH_Acronym, "—") AS SMH
|
||||
FROM #npc
|
||||
WHERE file.name != "NPC Template"
|
||||
AND (
|
||||
Faction = this.file.link
|
||||
OR lower(string(Faction)) = lower(this.file.name)
|
||||
OR contains(lower(string(Faction)), lower(this.file.name))
|
||||
)
|
||||
SORT number(Level_of_Influence) DESC
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 📌 Plot Hooks & Notes
|
||||
-
|
||||
-
|
||||
|
||||
---
|
||||
|
||||
## 🗒 Session Updates
|
||||
- 2025-10-02: …
|
||||
+217
@@ -0,0 +1,217 @@
|
||||
---
|
||||
Reputation: 0
|
||||
Faction_Type: High House
|
||||
Motto:
|
||||
Ideology:
|
||||
Symbol:
|
||||
Colors:
|
||||
Headquarters:
|
||||
Territories:
|
||||
-
|
||||
Allies:
|
||||
-
|
||||
Rivals:
|
||||
-
|
||||
SMH_Acronym:
|
||||
Intel:
|
||||
Tags:
|
||||
- faction
|
||||
---
|
||||
|
||||
# House Tenrae
|
||||
*One-line role/description — e.g., “Elven High House controlling Y’athir’s docks.”*
|
||||
|
||||
---
|
||||
|
||||
## 🎨 Artwork
|
||||
![[House Tenrae.png]]
|
||||
*Optional caption / artist credit*
|
||||
|
||||
---
|
||||
|
||||
## 🧭 Identity & Heraldry
|
||||
- **Motto:** `= default(this.Motto, "—")`
|
||||
- **Symbol:** `= default(this.Symbol, "—")`
|
||||
- **Colors:** `= default(this.Colors, "—")`
|
||||
- **Headquarters:** `= default(this.Headquarters, "—")`
|
||||
- **Territories:** `= this.Territories`
|
||||
|
||||
---
|
||||
|
||||
## 📜 Ideology & Goals
|
||||
- **Ideology / Alignment:** `= default(this.Ideology, "—")`
|
||||
- **Primary Goals:**
|
||||
-
|
||||
- **Taboos / Anathema:**
|
||||
-
|
||||
|
||||
---
|
||||
|
||||
## 🤝 Relationship with Party
|
||||
- **Reputation:** `= this.Reputation`
|
||||
|
||||
---
|
||||
|
||||
## 🧑💼 Leadership & Structure
|
||||
- **Leader(s):** [[NPC A]], [[NPC B]]
|
||||
- **Structure:** (council, hierarchy, cells, chapters)
|
||||
- **Key Offices:** (Intelligence, Logistics, Priory, Treasury, etc.)
|
||||
|
||||
---
|
||||
|
||||
## 🧰 Assets & Operations
|
||||
- **Resources:** (coin, troops, mages, ships, safehouses, contacts)
|
||||
- **Notable Holdings:**
|
||||
- **Typical Ops / Tactics:**
|
||||
|
||||
---
|
||||
|
||||
## 🕊️ Diplomacy & Relations
|
||||
- **Allies:** `= this.Allies`
|
||||
- **Rivals:** `= this.Rivals`
|
||||
- **Stance toward “SMH” (their wording):** `= default(this.SMH_Acronym, "—")`
|
||||
|
||||
---
|
||||
|
||||
## 🧠 Intelligence & Mentions
|
||||
```button
|
||||
name ➕ Add Intel
|
||||
type command
|
||||
action Templater: Insert Add Intel Entry to Faction
|
||||
```
|
||||
```dataviewjs
|
||||
const THIS = dv.current();
|
||||
const thisName = String(THIS.file.name);
|
||||
const thisLC = thisName.toLowerCase();
|
||||
|
||||
const factions = dv.pages("#faction");
|
||||
|
||||
// mention detector (same logic as your table)
|
||||
function mentionsThisFaction(entry) {
|
||||
const sum = String(entry.summary ?? "");
|
||||
if (sum.includes(`[[${thisName}]]`) || sum.includes(`[[${thisName}|`)) return true;
|
||||
const src = entry.source;
|
||||
const list = Array.isArray(src) ? src : (src ? [src] : []);
|
||||
for (const s of list) {
|
||||
if (typeof s === "string") {
|
||||
if (s.includes(`[[${thisName}]]`) || s.includes(`[[${thisName}|`)) return true;
|
||||
if (s.toLowerCase() === thisLC) return true;
|
||||
} else if (s && typeof s === "object" && s.path) {
|
||||
const base = s.path.split("/").pop().replace(/\.md$/i,"").toLowerCase();
|
||||
if (base === thisLC) return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
const own = (THIS.Intel ?? []).length;
|
||||
|
||||
let mentions = 0;
|
||||
for (const p of factions.where(p => p.file.name !== thisName)) {
|
||||
for (const it of (p.Intel ?? [])) if (mentionsThisFaction(it)) mentions++;
|
||||
}
|
||||
|
||||
dv.paragraph(`_Entries: ${own + mentions} (own ${own} + mentions ${mentions})_`);
|
||||
```
|
||||
```dataviewjs
|
||||
// Current faction
|
||||
const THIS = dv.current();
|
||||
const thisName = String(THIS.file.name);
|
||||
const thisLC = thisName.toLowerCase();
|
||||
|
||||
// All faction pages (including this one)
|
||||
const factions = dv.pages("#faction");
|
||||
|
||||
// Mention detector: summary has [[This Faction]] OR source points at this faction
|
||||
function mentionsThisFaction(entry) {
|
||||
const sum = String(entry.summary ?? "");
|
||||
if (sum.includes(`[[${thisName}]]`) || sum.includes(`[[${thisName}|`)) return true;
|
||||
|
||||
const src = entry.source;
|
||||
const list = Array.isArray(src) ? src : (src ? [src] : []);
|
||||
for (const s of list) {
|
||||
if (typeof s === "string") {
|
||||
if (s.includes(`[[${thisName}]]`) || s.includes(`[[${thisName}|`)) return true;
|
||||
if (s.toLowerCase() === thisLC) return true; // fallback: plain text match
|
||||
} else if (s && typeof s === "object" && s.path) { // wikilink object
|
||||
const base = s.path.split("/").pop().replace(/\.md$/i,"").toLowerCase();
|
||||
if (base === thisLC) return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// Collect rows
|
||||
const rows = [];
|
||||
|
||||
// 1) Own intel
|
||||
for (const it of (THIS.Intel ?? [])) {
|
||||
rows.push({
|
||||
date: it.date ?? "",
|
||||
from: THIS.file.link,
|
||||
type: it.type ?? "",
|
||||
summary: String(it.summary ?? ""),
|
||||
source: it.source ?? "",
|
||||
rel: it.reliability ?? "",
|
||||
cred: it.credibility ?? "",
|
||||
tags: Array.isArray(it.tags) ? it.tags.join(", ") : (it.tags ?? "")
|
||||
});
|
||||
}
|
||||
|
||||
// 2) Mentions from other factions
|
||||
for (const p of factions.where(p => p.file.name !== thisName)) {
|
||||
for (const it of (p.Intel ?? [])) {
|
||||
if (mentionsThisFaction(it)) {
|
||||
rows.push({
|
||||
date: it.date ?? "",
|
||||
from: p.file.link,
|
||||
type: it.type ?? "",
|
||||
summary: String(it.summary ?? ""),
|
||||
source: it.source ?? "",
|
||||
rel: it.reliability ?? "",
|
||||
cred: it.credibility ?? "",
|
||||
tags: Array.isArray(it.tags) ? it.tags.join(", ") : (it.tags ?? "")
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Sort newest first
|
||||
rows.sort((a,b) => String(b.date).localeCompare(String(a.date)));
|
||||
|
||||
if (!rows.length) {
|
||||
dv.paragraph("_No intel yet._");
|
||||
} else {
|
||||
dv.table(
|
||||
["Date","From Faction","Type","Summary","Source","Rel","Cred","Tags"],
|
||||
rows.map(r => [r.date, r.from, r.type, r.summary, r.source, r.rel, r.cred, r.tags])
|
||||
);
|
||||
}
|
||||
```
|
||||
> Add new entries in the **frontmatter** under `Intel:` (keep newest on top). Suggested fields: `date, type, summary, source, reliability, credibility, tags`.
|
||||
|
||||
---
|
||||
|
||||
## 🔗 Related NPCs (auto)
|
||||
```dataview
|
||||
TABLE link(file.name) AS NPC, number(Level_of_Influence) AS Influence, default(SMH_Acronym, "—") AS SMH
|
||||
FROM #npc
|
||||
WHERE file.name != "NPC Template"
|
||||
AND (
|
||||
Faction = this.file.link
|
||||
OR lower(string(Faction)) = lower(this.file.name)
|
||||
OR contains(lower(string(Faction)), lower(this.file.name))
|
||||
)
|
||||
SORT number(Level_of_Influence) DESC
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 📌 Plot Hooks & Notes
|
||||
-
|
||||
-
|
||||
|
||||
---
|
||||
|
||||
## 🗒 Session Updates
|
||||
- 2025-10-02: …
|
||||
+221
@@ -0,0 +1,221 @@
|
||||
---
|
||||
Reputation: 0
|
||||
Faction_Type: High House
|
||||
Motto:
|
||||
Ideology:
|
||||
Symbol:
|
||||
Colors:
|
||||
Headquarters:
|
||||
Territories:
|
||||
-
|
||||
Allies:
|
||||
- "[[Calen]]"
|
||||
- "[[Metternich]]"
|
||||
- "[[Val]]"
|
||||
- "[[Kite]]"
|
||||
- "[[Faylen Valora]]"
|
||||
Rivals:
|
||||
-
|
||||
SMH_Acronym:
|
||||
Intel:
|
||||
Tags:
|
||||
- faction
|
||||
---
|
||||
|
||||
# House Valora
|
||||
*One-line role/description — e.g., “Elven High House controlling Y’athir’s docks.”*
|
||||
|
||||
---
|
||||
|
||||
## 🎨 Artwork
|
||||
![[House Valora.png]]
|
||||
*Optional caption / artist credit*
|
||||
|
||||
---
|
||||
|
||||
## 🧭 Identity & Heraldry
|
||||
- **Motto:** `= default(this.Motto, "—")`
|
||||
- **Symbol:** `= default(this.Symbol, "—")`
|
||||
- **Colors:** `= default(this.Colors, "—")`
|
||||
- **Headquarters:** `= default(this.Headquarters, "—")`
|
||||
- **Territories:** `= this.Territories`
|
||||
|
||||
---
|
||||
|
||||
## 📜 Ideology & Goals
|
||||
- **Ideology / Alignment:** `= default(this.Ideology, "—")`
|
||||
- **Primary Goals:**
|
||||
-
|
||||
- **Taboos / Anathema:**
|
||||
-
|
||||
|
||||
---
|
||||
|
||||
## 🤝 Relationship with Party
|
||||
- **Reputation:** `= this.Reputation`
|
||||
|
||||
---
|
||||
|
||||
## 🧑💼 Leadership & Structure
|
||||
- **Leader(s):** [[NPC A]], [[NPC B]]
|
||||
- **Structure:** (council, hierarchy, cells, chapters)
|
||||
- **Key Offices:** (Intelligence, Logistics, Priory, Treasury, etc.)
|
||||
|
||||
---
|
||||
|
||||
## 🧰 Assets & Operations
|
||||
- **Resources:** (coin, troops, mages, ships, safehouses, contacts)
|
||||
- **Notable Holdings:**
|
||||
- **Typical Ops / Tactics:**
|
||||
|
||||
---
|
||||
|
||||
## 🕊️ Diplomacy & Relations
|
||||
- **Allies:** `= this.Allies`
|
||||
- **Rivals:** `= this.Rivals`
|
||||
- **Stance toward “SMH” (their wording):** `= default(this.SMH_Acronym, "—")`
|
||||
|
||||
---
|
||||
|
||||
## 🧠 Intelligence & Mentions
|
||||
```button
|
||||
name ➕ Add Intel
|
||||
type command
|
||||
action Templater: Insert Add Intel Entry to Faction
|
||||
```
|
||||
```dataviewjs
|
||||
const THIS = dv.current();
|
||||
const thisName = String(THIS.file.name);
|
||||
const thisLC = thisName.toLowerCase();
|
||||
|
||||
const factions = dv.pages("#faction");
|
||||
|
||||
// mention detector (same logic as your table)
|
||||
function mentionsThisFaction(entry) {
|
||||
const sum = String(entry.summary ?? "");
|
||||
if (sum.includes(`[[${thisName}]]`) || sum.includes(`[[${thisName}|`)) return true;
|
||||
const src = entry.source;
|
||||
const list = Array.isArray(src) ? src : (src ? [src] : []);
|
||||
for (const s of list) {
|
||||
if (typeof s === "string") {
|
||||
if (s.includes(`[[${thisName}]]`) || s.includes(`[[${thisName}|`)) return true;
|
||||
if (s.toLowerCase() === thisLC) return true;
|
||||
} else if (s && typeof s === "object" && s.path) {
|
||||
const base = s.path.split("/").pop().replace(/\.md$/i,"").toLowerCase();
|
||||
if (base === thisLC) return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
const own = (THIS.Intel ?? []).length;
|
||||
|
||||
let mentions = 0;
|
||||
for (const p of factions.where(p => p.file.name !== thisName)) {
|
||||
for (const it of (p.Intel ?? [])) if (mentionsThisFaction(it)) mentions++;
|
||||
}
|
||||
|
||||
dv.paragraph(`_Entries: ${own + mentions} (own ${own} + mentions ${mentions})_`);
|
||||
```
|
||||
```dataviewjs
|
||||
// Current faction
|
||||
const THIS = dv.current();
|
||||
const thisName = String(THIS.file.name);
|
||||
const thisLC = thisName.toLowerCase();
|
||||
|
||||
// All faction pages (including this one)
|
||||
const factions = dv.pages("#faction");
|
||||
|
||||
// Mention detector: summary has [[This Faction]] OR source points at this faction
|
||||
function mentionsThisFaction(entry) {
|
||||
const sum = String(entry.summary ?? "");
|
||||
if (sum.includes(`[[${thisName}]]`) || sum.includes(`[[${thisName}|`)) return true;
|
||||
|
||||
const src = entry.source;
|
||||
const list = Array.isArray(src) ? src : (src ? [src] : []);
|
||||
for (const s of list) {
|
||||
if (typeof s === "string") {
|
||||
if (s.includes(`[[${thisName}]]`) || s.includes(`[[${thisName}|`)) return true;
|
||||
if (s.toLowerCase() === thisLC) return true; // fallback: plain text match
|
||||
} else if (s && typeof s === "object" && s.path) { // wikilink object
|
||||
const base = s.path.split("/").pop().replace(/\.md$/i,"").toLowerCase();
|
||||
if (base === thisLC) return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// Collect rows
|
||||
const rows = [];
|
||||
|
||||
// 1) Own intel
|
||||
for (const it of (THIS.Intel ?? [])) {
|
||||
rows.push({
|
||||
date: it.date ?? "",
|
||||
from: THIS.file.link,
|
||||
type: it.type ?? "",
|
||||
summary: String(it.summary ?? ""),
|
||||
source: it.source ?? "",
|
||||
rel: it.reliability ?? "",
|
||||
cred: it.credibility ?? "",
|
||||
tags: Array.isArray(it.tags) ? it.tags.join(", ") : (it.tags ?? "")
|
||||
});
|
||||
}
|
||||
|
||||
// 2) Mentions from other factions
|
||||
for (const p of factions.where(p => p.file.name !== thisName)) {
|
||||
for (const it of (p.Intel ?? [])) {
|
||||
if (mentionsThisFaction(it)) {
|
||||
rows.push({
|
||||
date: it.date ?? "",
|
||||
from: p.file.link,
|
||||
type: it.type ?? "",
|
||||
summary: String(it.summary ?? ""),
|
||||
source: it.source ?? "",
|
||||
rel: it.reliability ?? "",
|
||||
cred: it.credibility ?? "",
|
||||
tags: Array.isArray(it.tags) ? it.tags.join(", ") : (it.tags ?? "")
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Sort newest first
|
||||
rows.sort((a,b) => String(b.date).localeCompare(String(a.date)));
|
||||
|
||||
if (!rows.length) {
|
||||
dv.paragraph("_No intel yet._");
|
||||
} else {
|
||||
dv.table(
|
||||
["Date","From Faction","Type","Summary","Source","Rel","Cred","Tags"],
|
||||
rows.map(r => [r.date, r.from, r.type, r.summary, r.source, r.rel, r.cred, r.tags])
|
||||
);
|
||||
}
|
||||
```
|
||||
> Add new entries in the **frontmatter** under `Intel:` (keep newest on top). Suggested fields: `date, type, summary, source, reliability, credibility, tags`.
|
||||
|
||||
---
|
||||
|
||||
## 🔗 Related NPCs (auto)
|
||||
```dataview
|
||||
TABLE link(file.name) AS NPC, number(Level_of_Influence) AS Influence, default(SMH_Acronym, "—") AS SMH
|
||||
FROM #npc
|
||||
WHERE file.name != "NPC Template"
|
||||
AND (
|
||||
Faction = this.file.link
|
||||
OR lower(string(Faction)) = lower(this.file.name)
|
||||
OR contains(lower(string(Faction)), lower(this.file.name))
|
||||
)
|
||||
SORT number(Level_of_Influence) DESC
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 📌 Plot Hooks & Notes
|
||||
-
|
||||
-
|
||||
|
||||
---
|
||||
|
||||
## 🗒 Session Updates
|
||||
- 2025-10-02: …
|
||||
+251
@@ -0,0 +1,251 @@
|
||||
---
|
||||
Reputation: 0
|
||||
Faction_Type: Gang
|
||||
Motto:
|
||||
Ideology:
|
||||
Symbol: Hammer & Chisel
|
||||
Colors:
|
||||
Headquarters:
|
||||
Territories:
|
||||
- Whitewater
|
||||
Allies:
|
||||
-
|
||||
Rivals:
|
||||
-
|
||||
SMH_Acronym:
|
||||
Intel:
|
||||
- date: 2025-10-02
|
||||
type: interaction
|
||||
summary: Vaust informs us that [[House Tenrae]] has been using [[The Archmasons]] as pseudo-mercenaries.
|
||||
source: "[[Lord Ellin Vaust]]"
|
||||
reliability: B
|
||||
credibility: 4
|
||||
tags: []
|
||||
- date: 2025-10-02
|
||||
type: rumor
|
||||
summary: Fritch would be our best vector of getting further information on [[The Archmasons]]
|
||||
source: "[[Kite]]"
|
||||
reliability: C
|
||||
credibility: 4
|
||||
tags: []
|
||||
- date: 2025-10-02
|
||||
type: rumor
|
||||
summary: "They are undertaking an ongoing project to excavate under the arch to build out carved out homes and save those for who are loyal or can offer something to [[The Archmasons]]. Anyone who can offer services is often compensated and provided those homes. "
|
||||
source: "[[Calen]]"
|
||||
reliability: B
|
||||
credibility: 4
|
||||
tags: []
|
||||
- date: 2025-10-02
|
||||
type: rumor
|
||||
summary: People in Whitewater are walking on eggshells to avoid injury - it's not uncommon for someone in the way of the Arch masons getting hurt. Most could benefit from Magical Healing. Disease is not uncommon here, but most people hope for the best.
|
||||
source: "[[Calen]]"
|
||||
reliability: B
|
||||
credibility: 4
|
||||
tags: []
|
||||
Tags:
|
||||
- faction
|
||||
---
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# The Archmasons
|
||||
*Ruling Faction of the Whitewater District*
|
||||
|
||||
---
|
||||
|
||||
## 🎨 Artwork
|
||||
![[The Archmasons.png]]
|
||||
*Optional caption / artist credit*
|
||||
|
||||
---
|
||||
|
||||
## 🧭 Identity & Heraldry
|
||||
- **Motto:** `= default(this.Motto, "—")`
|
||||
- **Symbol:** `= default(this.Symbol, "—")`
|
||||
- **Colors:** `= default(this.Colors, "—")`
|
||||
- **Headquarters:** `= default(this.Headquarters, "—")`
|
||||
- **Territories:** `= this.Territories`
|
||||
|
||||
---
|
||||
|
||||
## 📜 Ideology & Goals
|
||||
- **Ideology / Alignment:** `= default(this.Ideology, "—")`
|
||||
- **Primary Goals:**
|
||||
- Runs a Protection Racket in Whitewater
|
||||
- **Taboos / Anathema:**
|
||||
-
|
||||
|
||||
---
|
||||
|
||||
## 🤝 Relationship with Party
|
||||
- **Reputation:** `= this.Reputation`
|
||||
|
||||
---
|
||||
|
||||
## 🧑💼 Leadership & Structure
|
||||
- **Leader(s):** [[NPC A]], [[NPC B]]
|
||||
- **Structure:** (council, hierarchy, cells, chapters)
|
||||
- **Key Offices:** (Intelligence, Logistics, Priory, Treasury, etc.)
|
||||
|
||||
---
|
||||
|
||||
## 🧰 Assets & Operations
|
||||
- **Resources:** (coin, troops, mages, ships, safehouses, contacts)
|
||||
- **Notable Holdings:**
|
||||
- **Typical Ops / Tactics:**
|
||||
- Protection Rackets
|
||||
|
||||
---
|
||||
|
||||
## 🕊️ Diplomacy & Relations
|
||||
- **Allies:** `= this.Allies`
|
||||
- **Rivals:** `= this.Rivals`
|
||||
- **Stance toward “SMH” (their wording):** `= default(this.SMH_Acronym, "—")`
|
||||
|
||||
---
|
||||
|
||||
## 🧠 Intelligence & Mentions
|
||||
```button
|
||||
name ➕ Add Intel
|
||||
type command
|
||||
action Templater: Insert Add Intel Entry to Faction
|
||||
```
|
||||
```dataviewjs
|
||||
const THIS = dv.current();
|
||||
const thisName = String(THIS.file.name);
|
||||
const thisLC = thisName.toLowerCase();
|
||||
|
||||
const factions = dv.pages("#faction");
|
||||
|
||||
// mention detector (same logic as your table)
|
||||
function mentionsThisFaction(entry) {
|
||||
const sum = String(entry.summary ?? "");
|
||||
if (sum.includes(`[[${thisName}]]`) || sum.includes(`[[${thisName}|`)) return true;
|
||||
const src = entry.source;
|
||||
const list = Array.isArray(src) ? src : (src ? [src] : []);
|
||||
for (const s of list) {
|
||||
if (typeof s === "string") {
|
||||
if (s.includes(`[[${thisName}]]`) || s.includes(`[[${thisName}|`)) return true;
|
||||
if (s.toLowerCase() === thisLC) return true;
|
||||
} else if (s && typeof s === "object" && s.path) {
|
||||
const base = s.path.split("/").pop().replace(/\.md$/i,"").toLowerCase();
|
||||
if (base === thisLC) return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
const own = (THIS.Intel ?? []).length;
|
||||
|
||||
let mentions = 0;
|
||||
for (const p of factions.where(p => p.file.name !== thisName)) {
|
||||
for (const it of (p.Intel ?? [])) if (mentionsThisFaction(it)) mentions++;
|
||||
}
|
||||
|
||||
dv.paragraph(`_Entries: ${own + mentions} (own ${own} + mentions ${mentions})_`);
|
||||
```
|
||||
```dataviewjs
|
||||
// Current faction
|
||||
const THIS = dv.current();
|
||||
const thisName = String(THIS.file.name);
|
||||
const thisLC = thisName.toLowerCase();
|
||||
|
||||
// All faction pages (including this one)
|
||||
const factions = dv.pages("#faction");
|
||||
|
||||
// Mention detector: summary has [[This Faction]] OR source points at this faction
|
||||
function mentionsThisFaction(entry) {
|
||||
const sum = String(entry.summary ?? "");
|
||||
if (sum.includes(`[[${thisName}]]`) || sum.includes(`[[${thisName}|`)) return true;
|
||||
|
||||
const src = entry.source;
|
||||
const list = Array.isArray(src) ? src : (src ? [src] : []);
|
||||
for (const s of list) {
|
||||
if (typeof s === "string") {
|
||||
if (s.includes(`[[${thisName}]]`) || s.includes(`[[${thisName}|`)) return true;
|
||||
if (s.toLowerCase() === thisLC) return true; // fallback: plain text match
|
||||
} else if (s && typeof s === "object" && s.path) { // wikilink object
|
||||
const base = s.path.split("/").pop().replace(/\.md$/i,"").toLowerCase();
|
||||
if (base === thisLC) return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// Collect rows
|
||||
const rows = [];
|
||||
|
||||
// 1) Own intel
|
||||
for (const it of (THIS.Intel ?? [])) {
|
||||
rows.push({
|
||||
date: it.date ?? "",
|
||||
from: THIS.file.link,
|
||||
type: it.type ?? "",
|
||||
summary: String(it.summary ?? ""),
|
||||
source: it.source ?? "",
|
||||
rel: it.reliability ?? "",
|
||||
cred: it.credibility ?? "",
|
||||
tags: Array.isArray(it.tags) ? it.tags.join(", ") : (it.tags ?? "")
|
||||
});
|
||||
}
|
||||
|
||||
// 2) Mentions from other factions
|
||||
for (const p of factions.where(p => p.file.name !== thisName)) {
|
||||
for (const it of (p.Intel ?? [])) {
|
||||
if (mentionsThisFaction(it)) {
|
||||
rows.push({
|
||||
date: it.date ?? "",
|
||||
from: p.file.link,
|
||||
type: it.type ?? "",
|
||||
summary: String(it.summary ?? ""),
|
||||
source: it.source ?? "",
|
||||
rel: it.reliability ?? "",
|
||||
cred: it.credibility ?? "",
|
||||
tags: Array.isArray(it.tags) ? it.tags.join(", ") : (it.tags ?? "")
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Sort newest first
|
||||
rows.sort((a,b) => String(b.date).localeCompare(String(a.date)));
|
||||
|
||||
if (!rows.length) {
|
||||
dv.paragraph("_No intel yet._");
|
||||
} else {
|
||||
dv.table(
|
||||
["Date","From Faction","Type","Summary","Source","Rel","Cred","Tags"],
|
||||
rows.map(r => [r.date, r.from, r.type, r.summary, r.source, r.rel, r.cred, r.tags])
|
||||
);
|
||||
}
|
||||
```
|
||||
> Add new entries in the **frontmatter** under `Intel:` (keep newest on top). Suggested fields: `date, type, summary, source, reliability, credibility, tags`.
|
||||
|
||||
---
|
||||
|
||||
## 🔗 Related NPCs (auto)
|
||||
```dataview
|
||||
TABLE link(file.name) AS NPC, number(Level_of_Influence) AS Influence, default(SMH_Acronym, "—") AS SMH
|
||||
FROM #npc
|
||||
WHERE file.name != "NPC Template"
|
||||
AND (
|
||||
Faction = this.file.link
|
||||
OR lower(string(Faction)) = lower(this.file.name)
|
||||
OR contains(lower(string(Faction)), lower(this.file.name))
|
||||
)
|
||||
SORT number(Level_of_Influence) DESC
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 📌 Plot Hooks & Notes
|
||||
-
|
||||
-
|
||||
|
||||
---
|
||||
|
||||
## 🗒 Session Updates
|
||||
- 2025-10-02: …
|
||||
+253
@@ -0,0 +1,253 @@
|
||||
---
|
||||
Reputation: 0
|
||||
Faction_Type: Gang
|
||||
Motto:
|
||||
Ideology: Semi-Communism
|
||||
Symbol:
|
||||
Colors:
|
||||
Headquarters:
|
||||
Territories:
|
||||
- Drenches
|
||||
Allies:
|
||||
-
|
||||
Rivals:
|
||||
-
|
||||
SMH_Acronym:
|
||||
Intel:
|
||||
- date: 2025-10-02
|
||||
type: interaction
|
||||
summary: Vaust informs us that some of the taxes that the [[Thin Wisps]] impose on those in the Drenches, end up in the hands of [[House Elidari]].
|
||||
source: "[[Lord Ellin Vaust]]"
|
||||
reliability: A
|
||||
credibility: 5
|
||||
tags: []
|
||||
- date: 2025-10-02
|
||||
type: interaction
|
||||
summary: Maltrix in [[Session 8 - Operatic Intentions]] believes that their vision for the Drenches, is idealistic. They believe that they should be the ones running the Drenches.
|
||||
source: Maltrix
|
||||
reliability: A
|
||||
credibility: 5
|
||||
tags: []
|
||||
- date: 2025-10-02
|
||||
type: interaction
|
||||
summary: We were explicitly warned again, by the [[Thin Wisps]] to stop snooping in their territory.
|
||||
source: "[[Calen]]"
|
||||
reliability: A
|
||||
credibility: 5
|
||||
tags: []
|
||||
- date: 2025-10-02
|
||||
type: interaction
|
||||
summary: "[[Metternich]] received communiques from his spies from the [[Thin Wisps]], with them explicitly warning the SMH to stay off their turf."
|
||||
source: "[[Session 1 - The Beginning of the End]]"
|
||||
reliability: A
|
||||
credibility: 5
|
||||
tags: []
|
||||
Tags:
|
||||
- faction
|
||||
---
|
||||
|
||||
|
||||
|
||||
|
||||
# Thin Wisps
|
||||
*Territorial Gang of the Drenches*
|
||||
|
||||
---
|
||||
|
||||
## 🎨 Artwork
|
||||
![[Thin Wisps.png]]
|
||||
*Optional caption / artist credit*
|
||||
|
||||
---
|
||||
|
||||
## 🧭 Identity & Heraldry
|
||||
- **Motto:** `= default(this.Motto, "—")`
|
||||
- **Symbol:** `= default(this.Symbol, "—")`
|
||||
- **Colors:** `= default(this.Colors, "—")`
|
||||
- **Headquarters:** `= default(this.Headquarters, "—")`
|
||||
- **Territories:** `= this.Territories`
|
||||
|
||||
---
|
||||
|
||||
## 📜 Ideology & Goals
|
||||
- **Ideology / Alignment:** `= default(this.Ideology, "—")`
|
||||
- **Primary Goals:**
|
||||
- Believe they should be the one's running the drenches
|
||||
- **Taboos / Anathema:**
|
||||
-
|
||||
|
||||
---
|
||||
|
||||
## 🤝 Relationship with Party
|
||||
- **Reputation:** `= this.Reputation`
|
||||
|
||||
---
|
||||
|
||||
## 🧑💼 Leadership & Structure
|
||||
- **Leader(s):** [[NPC A]], [[NPC B]]
|
||||
- **Structure:** (council, hierarchy, cells, chapters)
|
||||
- **Key Offices:** (Intelligence, Logistics, Priory, Treasury, etc.)
|
||||
|
||||
---
|
||||
|
||||
## 🧰 Assets & Operations
|
||||
- **Resources:** (coin, troops, mages, ships, safehouses, contacts)
|
||||
- **Notable Holdings:**
|
||||
- **Typical Ops / Tactics:**
|
||||
- Intimidation (see intel)
|
||||
- Thievery
|
||||
|
||||
---
|
||||
|
||||
## 🕊️ Diplomacy & Relations
|
||||
- **Allies:** `= this.Allies`
|
||||
- **Rivals:** `= this.Rivals`
|
||||
- **Stance toward “SMH” (their wording):** `= default(this.SMH_Acronym, "—")`
|
||||
|
||||
---
|
||||
|
||||
|
||||
## 🧠 Intelligence & Mentions
|
||||
```button
|
||||
name ➕ Add Intel
|
||||
type command
|
||||
action Templater: Insert Add Intel Entry to Faction
|
||||
```
|
||||
```dataviewjs
|
||||
const THIS = dv.current();
|
||||
const thisName = String(THIS.file.name);
|
||||
const thisLC = thisName.toLowerCase();
|
||||
|
||||
const factions = dv.pages("#faction");
|
||||
|
||||
// mention detector (same logic as your table)
|
||||
function mentionsThisFaction(entry) {
|
||||
const sum = String(entry.summary ?? "");
|
||||
if (sum.includes(`[[${thisName}]]`) || sum.includes(`[[${thisName}|`)) return true;
|
||||
const src = entry.source;
|
||||
const list = Array.isArray(src) ? src : (src ? [src] : []);
|
||||
for (const s of list) {
|
||||
if (typeof s === "string") {
|
||||
if (s.includes(`[[${thisName}]]`) || s.includes(`[[${thisName}|`)) return true;
|
||||
if (s.toLowerCase() === thisLC) return true;
|
||||
} else if (s && typeof s === "object" && s.path) {
|
||||
const base = s.path.split("/").pop().replace(/\.md$/i,"").toLowerCase();
|
||||
if (base === thisLC) return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
const own = (THIS.Intel ?? []).length;
|
||||
|
||||
let mentions = 0;
|
||||
for (const p of factions.where(p => p.file.name !== thisName)) {
|
||||
for (const it of (p.Intel ?? [])) if (mentionsThisFaction(it)) mentions++;
|
||||
}
|
||||
|
||||
dv.paragraph(`_Entries: ${own + mentions} (own ${own} + mentions ${mentions})_`);
|
||||
```
|
||||
```dataviewjs
|
||||
// Current faction
|
||||
const THIS = dv.current();
|
||||
const thisName = String(THIS.file.name);
|
||||
const thisLC = thisName.toLowerCase();
|
||||
|
||||
// All faction pages (including this one)
|
||||
const factions = dv.pages("#faction");
|
||||
|
||||
// Mention detector: summary has [[This Faction]] OR source points at this faction
|
||||
function mentionsThisFaction(entry) {
|
||||
const sum = String(entry.summary ?? "");
|
||||
if (sum.includes(`[[${thisName}]]`) || sum.includes(`[[${thisName}|`)) return true;
|
||||
|
||||
const src = entry.source;
|
||||
const list = Array.isArray(src) ? src : (src ? [src] : []);
|
||||
for (const s of list) {
|
||||
if (typeof s === "string") {
|
||||
if (s.includes(`[[${thisName}]]`) || s.includes(`[[${thisName}|`)) return true;
|
||||
if (s.toLowerCase() === thisLC) return true; // fallback: plain text match
|
||||
} else if (s && typeof s === "object" && s.path) { // wikilink object
|
||||
const base = s.path.split("/").pop().replace(/\.md$/i,"").toLowerCase();
|
||||
if (base === thisLC) return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// Collect rows
|
||||
const rows = [];
|
||||
|
||||
// 1) Own intel
|
||||
for (const it of (THIS.Intel ?? [])) {
|
||||
rows.push({
|
||||
date: it.date ?? "",
|
||||
from: THIS.file.link,
|
||||
type: it.type ?? "",
|
||||
summary: String(it.summary ?? ""),
|
||||
source: it.source ?? "",
|
||||
rel: it.reliability ?? "",
|
||||
cred: it.credibility ?? "",
|
||||
tags: Array.isArray(it.tags) ? it.tags.join(", ") : (it.tags ?? "")
|
||||
});
|
||||
}
|
||||
|
||||
// 2) Mentions from other factions
|
||||
for (const p of factions.where(p => p.file.name !== thisName)) {
|
||||
for (const it of (p.Intel ?? [])) {
|
||||
if (mentionsThisFaction(it)) {
|
||||
rows.push({
|
||||
date: it.date ?? "",
|
||||
from: p.file.link,
|
||||
type: it.type ?? "",
|
||||
summary: String(it.summary ?? ""),
|
||||
source: it.source ?? "",
|
||||
rel: it.reliability ?? "",
|
||||
cred: it.credibility ?? "",
|
||||
tags: Array.isArray(it.tags) ? it.tags.join(", ") : (it.tags ?? "")
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Sort newest first
|
||||
rows.sort((a,b) => String(b.date).localeCompare(String(a.date)));
|
||||
|
||||
if (!rows.length) {
|
||||
dv.paragraph("_No intel yet._");
|
||||
} else {
|
||||
dv.table(
|
||||
["Date","From Faction","Type","Summary","Source","Rel","Cred","Tags"],
|
||||
rows.map(r => [r.date, r.from, r.type, r.summary, r.source, r.rel, r.cred, r.tags])
|
||||
);
|
||||
}
|
||||
```
|
||||
> Add new entries in the **frontmatter** under `Intel:` (keep newest on top). Suggested fields: `date, type, summary, source, reliability, credibility, tags`.
|
||||
|
||||
---
|
||||
|
||||
## 🔗 Related NPCs (auto)
|
||||
```dataview
|
||||
TABLE link(file.name) AS NPC, number(Level_of_Influence) AS Influence, default(SMH_Acronym, "—") AS SMH
|
||||
FROM #npc
|
||||
WHERE file.name != "NPC Template"
|
||||
AND (
|
||||
Faction = this.file.link
|
||||
OR lower(string(Faction)) = lower(this.file.name)
|
||||
OR contains(lower(string(Faction)), lower(this.file.name))
|
||||
)
|
||||
SORT number(Level_of_Influence) DESC
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 📌 Plot Hooks & Notes
|
||||
-
|
||||
-
|
||||
|
||||
---
|
||||
|
||||
## 🗒 Session Updates
|
||||
- 2025-10-02: …
|
||||
|
||||
|
||||
Reference in New Issue
Block a user