====== Jedi Comparison ======

This should really be a distinct tool (and I have a plan to build one). But right now, you get this:

  - Select the mission you tell (you can skip this step if you want to do a global comparison),
  - Select the trait you want to compare,
  - The table will now display a comparison of the trait for all Jedi in the mission!

<table ?jedi [imagelink] "" ?jedi [ref] ?thing "Trait" ?level [dot::g5] ?story "Mission">
?jedi is a: jedi

union {
  {
    ?subject Character [ref]: ?jedi
    ?subject Level: ?level

    union {
      {
        ?subject is a: skill_known
        ?subject Skill [rule]: ?skill
        ?skill entry title: ?thing
      }
      {
        ?subject is a: force_power_known
        ?subject Force Power [rule]: ?power
        ?power entry title: ?thing
      }
    }
  }
  {
    union {
      {
        ?jedi ?thing: ?level
        ?thing [text] = Force Level
      }
      {
        ?jedi ?thing: ?level
        ?thing [text] = Fitness
      }
      {
        ?jedi ?thing: ?level
        ?thing [text] = Vision
      }
      {
        ?jedi ?thing: ?level
        ?thing [text] = Strength
      }
      {
        ?jedi ?thing: ?level
        ?thing [text] = Reason
      }
      {
        ?jedi ?thing: ?level
        ?thing [text] = Intuition
      }
      {
        ?jedi ?thing: ?level
        ?thing [text] = Energy
      }
    }
  }
}

optional {
?story is a: story
?story Characters [ref]: ?jedi

minus {
  ?story End Date [date]: ?end
}
}

group {
  ?jedi
  ?thing
  ?level
}

ui {
  Trait {
    filter: select
  }
  Mission {
    filter: select
  }
  
  #1 {
    sort: no
  }
}
</table>