OK. I am trying to understand this new feature which I think will be useful in my Mass Effect game. Unfortunately, I don't quite get it. I want to have 3 categories (so far). Iwo Jima Crew, Athame Crew, and Dead characters. Then I want the rest to be NPCs where I don't want the other categories to repeat. But it does repeat. Here is my code.
Comments
OK. I am trying to understand this new feature which I think will be useful in my Mass Effect game. Unfortunately, I don't quite get it. I want to have 3 categories (so far). Iwo Jima Crew, Athame Crew, and Dead characters. Then I want the rest to be NPCs where I don't want the other categories to repeat. But it does repeat. Here is my code.
November 2012 CotM: Dresden Files RPG: The Emerald City
June 2016 CotM: Star Wars: Rise of the Infinite Empire
JUNE 2020 CotM & 2020 CotY: Mass Effect Accelerated
FEBRUARY 2022 CotM & 2022 CotY: Dresden Files Accelerated: Emerald City-Requiem
Current Campaigns: Traveller Osmium Buccaneers: Pirates of Drinax, Cyberpunk 2077 Accelerated
I haven't tested this, but I think you want:
".npc:not(.tag-iwo-jima):not(.tag-athame):not(.tag-dead)"
Obsidian Portal Developer
Oh. PERFECT! Thanks, Thaen. That works.
November 2012 CotM: Dresden Files RPG: The Emerald City
June 2016 CotM: Star Wars: Rise of the Infinite Empire
JUNE 2020 CotM & 2020 CotY: Mass Effect Accelerated
FEBRUARY 2022 CotM & 2022 CotY: Dresden Files Accelerated: Emerald City-Requiem
Current Campaigns: Traveller Osmium Buccaneers: Pirates of Drinax, Cyberpunk 2077 Accelerated
Huzzah!!
Obsidian Portal Developer
I've found the tags can be streamlined down into a more simplified format. Rather than:
<div class="content-list" data-filter="tag-npc:not(.tag-iwo-jima), :not(tag-athame), :not(tag-dead)">
You should instead be able to use:
<div class="content-list" data-filter="tag-npc:not(.tag-iwo-jima, .tag-athame, .tag-dead)">
It doesn't seem to care how many tags you use. One of mine looks like this, lol:
<div class="content-list" data-filter=".npc:not(.tag-aranthor, .tag-deepforge, .tag-haven-npc, .tag-ikothas, .tag-notania, .tag-tenebria, .tag-urgos, .tag-hairen-npc, .tag-hairen-noble, .tag-hairen-archmage, .tag-hairen-songbird)">
@LucasValenti, thanks for pointing that out! I had missed that nuance of the ":not" selector. Makes the selectors much more concise.
Obsidian Portal Developer