iron-vault-plugin / iron-vault

Obsidian plugin for Ironsworn/Starforged games
https://ironvault.quest/
Other
49 stars 10 forks source link

Change oracle modal and entity generators to allow choosing results from dropdowns #429

Closed zkat closed 4 days ago

zkat commented 3 months ago

Instead of forcing the result based on a roll, replace the oracle results with dropdowns that can be selected from, and have the randomize buttons just randomize which item is selected. We should do this both for oracle modals and for the oracle group/entity generator modal.

cwegrzyn commented 1 month ago

Been thinking a bit about this, and have an idea in two parts:

  1. The base oracle roll screen takes the form of a scrollable oracle table (with all of the relevant columns-- something we currently lack). A "roll" highlights one of the rows and scrolls it into view. You can select a different option by clicking the row. Possibly we can have links to jump to something like a flipped oracle (or highlight it or something)... but maybe we don't even need that if we are showing all the options anyway.

  2. The entity view remains more or less as-is, except you can also click on a result box and pop open the specific oracle modal for that oracle with the current result pre-selected.

One complexity: multiple and template rolls (including in entities now where we support rolling multiple times for a facet). One idea: we make any place a roll has been substituted a clickable link to the oracle modal. So a roll twice could look like "Roll twice (<result 1 clickable link>; <result 2 clickable link>)" and template substitutions, as with factions, would look like "<result 1 link> of the <result 2 link>". If you get a "roll twice" result in an entity page, the same text would be rendered but the whole thing would link to the oracle for that top result, at which point, the sub roll links could be clicked.