Custom Characters Layout

2»

Comments

  • HumAnnoyd
    HumAnnoyd
    Posts: 300

    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. 

     

    <div class="secondary-heading">

      IWO JIMA CREW

    </div>

    <div class="content-list" data-filter=".tag-iwo-jima">

      <ul class="large-block-grid-2 small-block-grid-1"></ul>

    </div>

    <div class="secondary-heading">

      ATHAME CREW

    </div>

    <div class="content-list" data-filter=".tag-athame">

      <ul class="large-block-grid-2 small-block-grid-1"></ul>

    </div>

    <div class="secondary-heading">

      NON-PLAYER CHARACTERS

    </div>

    <div class="content-list" data-filter="tag-npc:not(.tag-iwo-jima), :not(tag-athame), :not(tag-dead)">

      <ul class="large-block-grid-2 small-block-grid-1"></ul>

    </div>

    <div class="secondary-heading">

      DECEASED CHARACTERS

    </div>

    <div class="content-list" data-filter=".tag-dead">

      <ul class="large-block-grid-2 small-block-grid-1"></ul>

    </div>

    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

  • thaen
    thaen
    Posts: 1,081 edited April 20
    @HumAnnoyd

    I haven't tested this, but I think you want:

    ".npc:not(.tag-iwo-jima):not(.tag-athame):not(.tag-dead)"

    Post edited by thaen on

    Obsidian Portal Developer

  • HumAnnoyd
    HumAnnoyd
    Posts: 300

    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

  • thaen
    thaen
    Posts: 1,081

    Huzzah!!

    Obsidian Portal Developer

  • LucasValenti
    LucasValenti
    Posts: 3

    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)">

  • thaen
    thaen
    Posts: 1,081

    @LucasValenti, thanks for pointing that out! I had missed that nuance of the ":not" selector. Makes the selectors much more concise.

    Obsidian Portal Developer

Sign In or Register to comment.

May 2024
The World of Elurah

Read the feature post on the blog
Return to Obsidian Portal

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Discussions