Skip to content

Latest commit

 

History

History
530 lines (436 loc) · 35.5 KB

README.md

File metadata and controls

530 lines (436 loc) · 35.5 KB

Inline Scripts (Obsidian Plugin) - Shortcut-file library

Version 0.24.10.2

These are sample shortcut-files for the Obsidian plugin Inline Scripts.

The easiest way to use these shortcut-files in your Obsidian vault is to click the "Import Full Library" button, near the top of the plugin settings, beside "Shortcut-files". This will download the full library into your vault, after which point you can disable or remove shortcut-files from the library as you wish.

To use an indiviual shortcut-file from this library in your Obsidian vault, you can copy the raw text of the shortcut-file and paste it into a note in your vault. Then:

  1. Make sure that the plugin Inline scripts is installed in your vault.
  2. Open The Inline Scripts plugin settings.
  3. Go to the first setting: "Shortcut-files".
  4. Click the "Add file reference" button. This adds a new textfield below the setting.
  5. Type the address of the vault-note into the new textfield. The textfield will be red until the address is recognized.
  6. Close the settings and type ;;help; (!!help! on mobile) to review the new shortcuts.

Reference - All shortcut-files in this repo


state.sfile

This shortcut-file includes shortcuts to manage a session state. This allows one to save and restore the state of other shortcut-files across Obsidian sessions.

This shortcut file can be used by other shortcut-files to let them create data that can persist across sessions of Obsidian.

This shortcut-file has 2 tutorial videos available. The first one is right for most users, but if you are making your own shortcut-file, the second one shows you how to connect it to the state system: Using the "state" shortcut-file to save and load session state (runtime 2:23) Setup a shortcut-file for saving & loading with the "state" shortcut-file (runtime 6:12)

  • state reset - Clears all session state.
  • state get - Expands to a state-string - a string containing all data for the current session state.
  • state restore - Loads the session state from the last "state get" shortcut expansion in the current note.
  • state set {state: text} - Loads the session state from {state}, a state-string created with the "state get" shortcut.
  • state save - Store the state to file. This is called automatically after each shortcut expansion that triggers a state change.

lists.sfile

Shortcuts for working with lists.

This shortcut-file has a tutorial video available: Using the "list" shortcut-file to manage lists (runtime 5:34)

  • lists reset - Clears all lists.

  • lists - Shows all lists and their info: type, associations and items.
  • lists {list name: name text} - Shows all info for the single list {list name}: type, associations and items.
  • lists rename {original list name: name text} {new list name: name text} - Changes the name of list {original list name} to {new list name}.
  • lists removelist {list name: name text} - Removes the entire list {list name}.
  • lists pick {list name: name text} - Gets a random item from the list {list name}.
  • lists add {list name: name text} {item: text} - Adds {item} to the list {list name}. Allows duplicate items.
    • Can only add to (1) basic lists and (2) combo lists which contain basic lists.
  • lists replace {list name: name text} {item: text} {replacement: text} - Replaces all instances of {item} with {replacement}. {item} must be quoted if it has any space.
  • lists remove {list name: name text} {item: text} - Removes an instance of {item} from the list {list name}.
    • Can only remove from (1) basic lists and (2) combo lists which contain basic lists.

  • lists addfolder {list name: name text} {folder: path text} - Creates a folder-list named {list name} that is linked to the folder {folder}. A "folder-list" is a list who's items are the names of the notes in the linked folder.
  • lists addcombo {list name: name text} {sub-list: name text separated by spaces} - Creates a combo-list named {list name} that is linked to the lists given in {sub-list}. A "combo-list" is a list who's items are all of the items of its linked sub-lists.

  • lists shortcutbatch {list name: name text} {shortcut: text} - Runs shortcut {shortcut} once for each item in list {list name}, replacing "%1" in {shortcut} with the item.
  • lists fromfile lines {list name: name text} {file: path text} - Takes the file {file}, breaks it up into individual lines and adds each of those lines, as items, to list {list name}.

notevars.sfile

This shortcut-file includes shortcuts to get and set note-variables. Note-variables are variables set in the YAML frontmatter. They can be used by many plugins, including DataView and TTRPG StatBlocks.

This shortcut file can be used by other shortcut-files to let them read and manipulate data in notes for many uses, including TTRPG character sheets.

This shortcut-file has a tutorial video available: Using the "notevars" shortcut-file to work with note variables (runtime 6:59)

  • notevars reset - Clears the isMarkdownRefreshed flag.

  • notevars isMarkdownRefreshed {state: y OR n, default: ""} - If {state} is given, assigns it to the notevars "isMarkdownRefreshed" flag. Otherwise, displays the current "isMarkdownRefreshed" flag.
    • If isMarkdownRefreshed flag is set then a note's markdown is refreshed each time one of it's variables is set.

  • notevars get {note name: path text} {variable name: name text} - Expands to the value of variable {variable name} in note {note name}. If {note name} is "." then it represents the current note.
  • notevars getArray {note name: path text} {array name: name text} {index: >=0} - Expands to the value of item {index} of array {array name} in note {note name}. If {note name} is "." then it represents the current note.
  • notevars set {note name: path text} {variable name: name text} {value: text} - Sets the value of variable {variable name} to {value} in note {note name}. If {note name} is "." then it represents the current note.
  • notevars setArray {note name: path text} {array name: name text} {values: text (comma separated)} - Sets the values of array {array name} to {value1}, {value2}, etc. in note {note name}. If {note name} is "." then it represents the current note.

notepick.sfile

Shortcuts to pick X random notes from a folder of notes and to get their front matter data.

This shortcut-file has a tutorial video available: Using the "notepick" shortcut-file to randomly pick notes & get variables (runtime 3:22)

  • notepick reset - Clears all picks.

  • notepick pickFromFolderAndGetPick {folder name: path text} {pick count: >0, default: 1} {pick id: name text, default: ""} {to ignore: text ( | separated filenames)} - Combines the shortcuts "notepick pickFromFolder" and "notepick getPick".
  • notepick pickFromFolderAndGetFrontmatter {folder name: path text} {pick count: >0, default: 1} {pick id: name text, default: ""} {to ignore: text ( | separated filenames)} - Combines the shortcuts "notepick pickFromFolder" and "notepick frontmatter".

  • notepick pickFromFolder {folder name: path text} {count: >0, default: 1} {pick id: name text, default: ""} {to ignore: text ( | separated filenames)} - Picks {count} random notes from folder {folder name} and remembers them as {pick id}. Any files in {to ignore} are never picked.
  • notepick getPick {pick id: name text, default: ""} - Gets a list of the files last picked for {pick id}.
  • notepick frontmatter {pick id: name text, default: ""} - Gets the frontmatter from the notes that are remembered in {pick id}.

mythicv2.sfile

(disabled by default, due to incompatibility with mythicgme.sfile)

Shortcuts for Mythic Variations 2. Mythic GME, along with it's "Variations 2" supplement, is an excellent "GM emulator" system for solo and GM'less gaming. It was designed by Tana Pigeon. You can find more info about Mythic Variations 2 at wordmill games.

This shortcut-file has a tutorial video available: Using the "mythicv2" shortcut-file to play Mythic Variations 2 (runtime 7:27)

Incompatible with mythicgme.sfile. If mythicgme.sfile comes before mythicv2.sfile in the shortcut-list, then mythicv2.sfile will be disabled.

  • mythicv2 reset - Resets mythic state to defaults and displays scene heading.
  • mythicv2 details {state: y OR n, default: ""} - If {state} is given, assigns it to the mythicv2 "details" mode. Otherwise, displays the current "details" mode.

  • fate {odds: -4 TO 4 ("impossible" TO "has to be"), default: 0 ("50/50")} {wanted: y OR n, default: y} - Makes a fate check based on {odds}. This fate check is also based on {wanted}: the desired outcome. Used for the direction of the chaos modifier.
  • fate {odds: text, default: "50/50"} {wanted: y OR n, default: y} - Makes a fate check based on {odds}: a specific text such as "impossible", "sure thing", etc. This fate check is also based on {wanted}: the desired outcome. Used for the direction of the chaos modifier.
  • detail - Makes a detail check.
  • event - Makes an event check.

  • meaning action - Rolls on the action meaning tables.
    • Alternative: meaning
  • meaning description - Rolls on the description meaning tables.

  • scene get - Shows the current scene.
  • scene {chaos adjust: -1 OR 1} - Shifts the chaos value by {chaosAdjust}, then increments the current scene and run a scene check.
  • chaos - Shows the current chaos value.
  • chaos-- - Decreases the chaos value by 1 (minimum of 3).
  • chaos++ - Increases the chaos value by 1 (maximum of 6).
  • chaos={value: 3 TO 6} - Sets the chaos value to {value}, an integer from 3 to 6.

  • descriptors - Generates a personality and activity descriptor for an NPC.
  • disposition {descriptor count: -3 TO 3} - Rolls for an NPC's disposition, modified by {descriptor count}, which represents the total of the NPC's activated descriptors.
    • Example: 2 positively activated descriptors and 1 negatively activated descriptor would make a {descriptor count} of 1+1+(-1) = 1.
  • disposition {descriptorCount: -3 TO 3} {base: 2 TO 20} - Displays the NPC disposition determined by the {base} disposition, modified by {descriptorCount}. {descriptor count} represents the total of the NPC's activated descriptors.
    • Example: 2 positively activated descriptors and 1 negatively activated descriptor would make a {descriptor count} of 1+1+(-1) = 1.
  • action {dispositionAdjust: -2 OR 0 OR 2 OR 4} - Makes an NPC behavior check, modified by {dispositionAdjust}: the modifier of the NPC's disposition.

mythicgme.sfile

Shortcuts for Mythic Game Master Emulator. Mythic GME is an excellent "GM emulator" system for solo and GM'less gaming. It was designed by Tana Pigeon. You can find more info about Mythic GME at wordmill games.

This shortcut-file has a tutorial video available: Using the "mythicgme" shortcut-file to play Mythic GME (runtime 5:00)

Incompatible with mythicv2.sfile. If mythicv2.sfile comes before mythicgme.sfile in the shortcut-list, then mythicgme.sfile will be disabled.

  • mythicgme reset - Resets mythic state to defaults and displays scene heading.

  • fate {odds: -4 TO 6 ("impossible" TO "has to be"), default: 0 ("50/50")} - Makes a fate check based on {odds}.
  • fate {odds: text, default: "50/50"} - Makes a fate check based on {odds}: a specific text, such as "impossible", "sure thing", etc.
  • scene get - Shows the current scene.
  • scene {chaosAdjust: -1 OR 1} - Shifts the chaos value by {chaosAdjust}, then increments the current scene and runs a scene check.

  • event - Makes an event check.
  • meaning - Rolls on the meaning tables.

  • chaos - Shows the current chaos value.
  • chaos-- - Decreases the chaos value by 1 (minimum of 1).
  • chaos++ - Increases the chaos value by 1 (maximum of 9).
  • chaos={value: 1 TO 9} - Sets the chaos value to {value}.

une.sfile

Shortcuts for UNE: The Universal NPC Emulator. UNE is an excellent character generation system for tabletop role playing and general storytelling. It was designed by Zach Best. You can find more info about UNE at its drivethrurpg page.

  • une {randomness: 1 TO 5 (order to chaos), default: 3 (standard)} {relationship to PC: 1 TO 7 (love to hate), default: 4 (neutral)} {demeanor: 1 TO 8 (scheming to prejudiced), default: random} - Runs "une character" and "une interact" together. {randomness} is a value for "une character". {relationship to PC} and {demeanor} are values for "une interact".

  • une character {randomness: 1 TO 5 (order to chaos), default: 3 (standard)} - Runs "identity", "power" and "motive" together. {randomness} is a value for "power".
  • une interact {relationship to PC: 1 TO 7 (love to hate), default: 4 (neutral)} {demeanor: 1 TO 8 (scheming to prejudiced), default: random} - Runs "mood", "bearing" and "focus" together. {relationship to PC} is a value for "mood". {demeanor} is a value for "bearing".

  • une identity - Generates a 2-word description for an NPC.
  • une power {randomness: 1 TO 5 (order to chaos), default: 3 (standard)} - Generates an NPC's power level relative to PC's power level, based on {randomness}.
  • une motive - Generates three 2-word descriptions for an NPC's motivations.

  • une mood {relationship to PC: 1 TO 7 (love to hate), default: 4 (neutral)} - Generates an NPC's willingness to socialize for this interaction, based on {relationship to PC}.
  • une bearing {demeanor: 1 TO 8 (scheming to prejudiced), default: random} - Generates an NPC's attitude for this interaction, based on {demeanor}: a number defaulting to random and meaning one of the following: 1 - sceming 2 - insane 3 - friendly 4 - hostile 5 - inquisitive 6 - knowing 7 - mysterious 8 - prejudiced
  • une focus - Generates an NPC's primary interest for this interaction.

adventurecrafter.sfile

Shortcuts for Adventure Crafter. Adventure Crafter is a system to create coherent story beats through randomization and tables. It was designed by Tana Pigeon. You can find more info about Adventure Crafter at wordmill games.

This shortcut-file has a tutorial video available: Using the "adventurecrafter" shortcut-file to play with AdventureCrafter (runtime 7:29)

  • adventurecrafter reset - Resets adventurecrafter state to defaults.

  • turning point - Gets a list of five plot points to represent a major milestone in a plotline.
  • plot point - Gets a single plot point, generated from the plot points table.

  • themes pick - Picks a random theme from the chosen themes, as per the Adventure Crafter rules.
  • themes - Shows the list of picked themes.
  • themes add - Chooses a theme for the next unchosen theme-slot.
  • themes roll - Picks a random theme for the next unchosen theme-slot.
  • themes fill - Picks random themes for the remaining unchosen theme-slots.
  • themes clear - Clears all chosen themes.

  • ac chars gen - Generates a new character description, as per the Adventure Crafter rules.

  • ac chars pick - Picks a random character, as per the Adventure Crafter rules.
  • ac chars - Lists all character entries.
  • ac chars add {character: text} - Adds {character} to the list of character entries.
  • ac chars dupe - Asks the user for a character from the characters list and adds a new entry for that character.
  • ac chars reduce - Asks the user for a character from the characters list and removes one entry for that character.
  • ac chars rename - Asks the user for a character from the characters list and what to change it's text to, then changes the character's text.

  • ac plots pick - Picks a random plotline, as per the Adventure Crafter rules.
  • ac plots - Lists all plotline entries.
  • ac plots add {plotline: text} - Adds {plotline} to the list of plotline entries.
  • ac plots dupe - Asks the user for a plotline from the plotlines list and adds a new entry for that plotline.
  • ac plots reduce - Asks the user for a plotline from the plotlines list and removes one entry for that plotline.
  • ac plots rename - Asks the user for a plotline from the plotlines list and what to change it's text to, then changes the plotline's text.

cards.sfile

Shortcuts for working with virtual cards. Almost all of these shortcuts work on piles of cards, rather than individual cards.

This shortcut-file has a tutorial video available: Using the "cards" shortcut-file to use virtual cards (runtime 9:01)

  • cards reset - Clears all card-piles.
  • cards settings {size: >0, default: ""} {back-image: path text, default: ""} - Updates the settings for the cards system.
    • {size} - The width for all cards, in pixels. Card height scales to match.
    • {back-image} - The path to an image file to represent face-down cards, or "default" to reset to the default back-image.

  • cards pile {pile id: name text} {facing: up OR down, default: down} {show moved: y OR n, default: prior} - Creates an empty card-pile {pile id} with all cards facing {facing} (face-up or face-down). If {show moved}, cards that are drawn or picked into the {pile id} card-pile are also printed to the note.
  • cards remove {pile id: name text} {recall: y OR n, default: n} - Removes the {pile id} card-pile, including all cards within it. If {recall}, all cards in {pile id} are recalled before the {pile id} card-pile is removed. If the {pile id} card-pile is the origin for any cards, then they are orphaned, and immediately re-origined to their current card-pile.
  • cards pilesettings {pile id: name text} {facing: up OR down, default: current} {show moved: y OR n, default: current} - Updates the settings for the {pile id} card-pile.
    • {facing} - Are the {pile id} card-pile's cards shown face-up or face-down?
    • {show moved} - Are cards that are drawn or picked into the {pile id} card-pile also printed to the note?

  • cards fromfolder {pile id: name text} {folder: path text} - Creates cards based on images in {folder} and puts them into the {pile id} card-pile.
    • Note that this does not randomize the new cards. Call the "cards shuffle" shortcut to do that.

  • cards list - Lists all card-piles.
  • cards peek {count: >0, default: 1} {pile id: name text, default: prior} {from the bottom: y OR n, default: prior OR n} - Displays the first {count} cards in the {pile id} card-pile. If {from the bottom}, displays the LAST {count} cards instead.

  • cards draw {count: >0, default: 1} {destination pile id: name text, default: prior} {source pile id: name text, default: prior} - Removes {count} cards from the {source pile id} card-pile and adds them to the {destination pile id} card-pile.
  • cards draw {details: text} - This version of "draw" lets you define the 3 parameters in your own order.
    • Parameters:
      • source card-pile - prefix with the word "from". If skipped, defaults to what it was on the prior draw.
      • destination card-pile - prefix with the word "into" or "to". If skipped, defaults to what it was on the prior draw.
      • count - don't prefix with anything. It'll be recognized as a number of 1 or more. If skipped, defaults to 1.
    • Examples:
      • ;;cards draw 3 from deck into hand::
      • ;;cards draw to hand 5 from deck::
      • ;;cards draw into discard::
      • ;;cards draw 7 from deck::
      • ;;cards draw::
  • cards pick {destination pile id: name text, default: prior} {source pile id: name text, default: prior} - Has the user choose cards from the {source pile id} card-pile. Moves the chosen cards into the {destination pile id} card-pile.
  • cards pick {details: text} - This version of "pick" lets you define the 2 parameters in your own order.
    • Parameters:
      • source card-pile - prefix with the word "from". If skipped, defaults to what it was on the prior pick.
      • destination card-pile - prefix with the word "into" or "to". If skipped, defaults to what it was on the prior pick.
    • Examples:
      • ;;cards pick from deck into hand::
      • ;;cards pick to hand from deck::
      • ;;cards pick into discard::
      • ;;cards pick from deck::
      • ;;cards pick::

  • cards shuffle {pile id: name text} {rotate: y OR n, default: n} - Randomizes the card order for the {pile id}. If {rotate}, then card rotations are also randomized.
    • Rotation typically means 0 or 180 degrees (right-side-up or up-side-down), but can also mean 90 or 270 degrees if the card is square.
  • cards unrotate {pile id: name text} - Sets the rotation for all cards in the {pile id} card-pile to 0 (right-side-up).
  • cards reverse {pile id: name text} - Reverses the order of the cards in the {pile id} card-pile.
  • cards recall {pile id: name text} - Moves all cards that have the {pile id} card-pile as their origin, from their current card-piles back into the {pile id} card-pile. If {facing} is specified, all cards in {pile id} are then put to face {facing}.
  • cards reorigin {pile id: name text} - Sets the origin of all cards in the {pile id} card-pile to {pile id}.

  • cards import {pile id: name text, default: table} {data: text} - Imports the {data} into the {pile id} card pile.
  • cards export {pile id: name text} - Expands to a data-string containing all date for the {pile id} card-pile.

tablefiles.sfile

Shortcut file to load tables from files and roll them.

  • tbl reset - Clears registered table paths and table path configurations.
  • tbl add {path: path text} - Adds {path} to the list of registered table paths. {path} is either an individual table file, or a folder filled with table files.
  • tbl addfoldertable {path: path text} - Adds the folder {path} to the list of registered table paths as a folder-table. A folder-table is a virtual table where each item is a file in the {path} folder.
  • tbl list - Get a list of the registered table paths.
  • tbl roll - Get random results from one of the registered tables. Shows a popup to allow selecting the table and how to get results from it.
  • tbl roll {table file: path text} {parameters: text, default: ""} - Get random results from table {table file}. If provided, {parameters} can alter the results. {parameters} is expected to be a comma-separated list of parameters in "key: value" form. Here are accepted parameters:
    • count - A positive integer defaulting to 1. Determines number of items picked.
    • uniquePicks - "true" or "false", defaulting to "false". If true, each item can be picked only once for this roll.
    • format - "commas", "bullets" or "periods", defaulting to "commas". Determines the format of the output.
    • useExpansionFormat - If true, the result is outputted in the standard expansion format.
    • isFolderTable - "true" or "false", defaulting to "false". If true, {table file} must be a folder path, and the result is picks from the files within it.
    • useConfig - If true, startOffset and itemFormat are determined by the current configuration for the given table file.
    • startOffset - A positive integer defaulting to 0. Defines what line the table starts on in {table file}. This is ignored for folder-tables.
    • itemFormat - A regex string defaulting to (.*). Determines what part of each item is printed out, as well as what part of each item is used as the weight value. The default prints out the entire item.
  • tbl reroll - Re-rolls the last successful table roll.

rpgtools.sfile

Shortcuts to help in playing tabletop rpgs, either group or solo.

  • tbl twist - Rolls a plot twist from random tables. Source.

plugin_diceroller.sfile

A shortcut to run commands through the Dice Roller plugin.

  • diceroller {command: text} - Runs {command} through the Dice Roller plugin and expands to the result.

files.sfile

Shortcuts for working with files in the vault.

  • files extensionchange {file name: path text} {extension: nospace text, default: "md"} - Changes the extension of file {file name} to {extension}.
  • files shortcutbatch {folder name: path text} {shortcut: text} - Runs shortcut {shortcut} once for each file in folder {folder name}, replacing "%1" in {shortcut} with the file's name.

clips.sfile

Shortcuts that let the user manage clips of text. A "clip" is a bit of named text that can be quickly added to your note. Similar to a shortcut, but simplistic and tied to the session state.

  • clips reset - Removes all clips.
  • clips - Lists all stored clips.
  • clips set {name: name text} {value: text} - Creates / Sets a clip named {name} to the string {value}.
  • clips get {name: name text} - Expands to the value stored in clip {name}.
    • Alternative: cg {name: name text}
  • clips expansion {name: name text} - Creates a clip named {name} that stores the previous expansion.
  • clips remove {name: name text} - Removes the clip named {name}.

arrows.sfile

Shortcuts for writing various arrows:

  • →←↑↓
  • ▶◀▲▼
  • ⇒⇐⇑⇓
  • ↔↕⇔⇕⇄⇅
  • ↗↘↖↙
  • ↪↩↻↺↝↜

lipsum.sfile

A decent Lorum Ipsum generator.

  • lipsum {paragraph count: >0, default: 1} - Generates a lorem ipsum text with {paragraph count} paragraphs.

lists_ui.sfile

An extension to lists.sfile that provides graphical ui versions of shortcuts.

  • ui lists reset - Clears all lists.

  • ui lists - User chooses a list (options include "all lists"), then shows info on the chosen list.
  • ui lists rename - User chooses a list, and enters a new name for it. The list is renamed.
  • ui lists removelist - User chooses a list, which is removed.
  • ui lists pick - User chooses a non-empty list, a random item is picked from that list and returned.

  • ui lists add - User chooses a list to add to and an item to add. The item is added to the list.
    • Identical items within a list are allowed.
    • Can only add to (1) basic lists and (2) combo lists with at least one basic list as a sub-list.
  • ui lists replace - User chooses a list, an item from the list and enters text to replace the item with. All instances of the item are replaced with the text.
    • Can only replace from (1) basic lists and (2) combo lists that contain basic lists.
  • ui lists remove - User choses a list and an item from the list. The last instance of the item is removed from the list.
    • Can only remove from (1) basic lists and (2) combo lists that contain basic lists.

  • ui lists addfolder - Asks the user to type a name for the new folder-list. Asks the user to choose a folder. Creates the folder-list, attached to the folder.
  • ui lists addcombo - User enters a name for he comb-list and chooses sub-lists. A combo-list is made from the choices.

  • ui lists shortcutbatch - User chooses a list and enters a shortcut-text. The shortcut-text is run for each item in the list, with "%1" being replaced by the list item.
  • ui lists fromfile lines - Use chooses a list (or enters a new list) and chooses a file. The file is broken into lines, which are added to the list as items.

mythicv2_ui.sfile

(disabled by default, due to incompatibility with mythicgme.sfile)

An extension to mythicv2.sfile that provides graphical ui versions of shortcuts.

  • ui mythicv2 details - Asks the user whether to enable or disable 'details' mode. Displays whether 'details' mode is enabled.
  • ui fate - Asks the user to choose the odds for this fate check. Asks the user what answer is best for the pc(s). Displays the answer to a yes/no question, possibly with a random event attached.
  • ui scene - Asks the user to choose whether chaos increased or decreased last scene. Starts a new scene with the chosen chaos value adjustment.
  • ui disposition - Asks the user for the total descriptor modifier for an npc (+1 for descriptors that make the npc more active in the scene, -1 for descriptors that make the npc less active). If the npc already has a disposition for this scene, select it. If NOT, select "random" to choose one. Rolls and shows a disposition for the npc for the current scene.
  • ui action - Asks the user for the npc's disposition modifier. Rolls and shows an action for the npc to take.

mythicgme_ui.sfile

An extension to mythicgme.sfile that provides graphical ui versions of shortcuts.

  • ui fate - Asks the user to choose the odds for this fate check. Displays the answer to a yes/no question, possibly with a random event attached.
  • ui scene - Asks the user to choose whether chaos increased or decreased last scene. Starts a new scene with the chosen chaos value adjustment.

une_ui.sfile

An extension to une.sfile that provides graphical ui versions of shortcuts.

  • ui une - Asks the user to choose the scene's randomness (for picking the NPC's power). Asks the user to choose the NPC's felings towards the PC(s) (for the NPC's mood). Asks the user to choose the NPC's demeanor, or pick it randomly (for the NPC's bearing). Displays the NPC's character (identity, power, motive) and the NPC's interaction for this scene (mood, bearing, focus).

  • ui une character - Asks the user to choose the scene's randomness (for picking the NPC's power). Displays the NPC's character (identity, power, motive).
  • ui une interact - Asks the user to choose the NPC's feelings towards the PC(s) (for the NPC's mood). Asks the user to choose the NPC's demeanor, or pick it randomly (for the NPC's bearing). Displays the NPC's interaction for this scene (mood, bearing, focus).

  • ui une identity - Generates a 2-word description for an NPC.
  • ui une power - Asks the user to choose the scene's randomness. Displays the NPC's power relative to the PC power(s).
  • ui une motive - Generates three 2-word descriptions for an NPC's motivations.

  • ui une mood - Asks the user to choose the NPC's felings towards the PC(s). Displays the NPC's mood for this scene.
  • ui une bearing - Asks the user to choose the NPC's demeanor, or pick it randomly. Displays a the NPC's bearing.
  • ui une focus - Generates an NPC's primary interest for this interaction.

cards_pileviewer.sfile

An extension to cards.sfile that adds an Obsidian panel type that lets you view card-piles.

This shortcut-file has a tutorial video available: Using the "cards" shortcut-file to use virtual cards (runtime 9:01)

  • cards open viewer - Open a panel for viewing card-piles.

cards_ui.sfile

An extension to cards.sfile that provides graphical ui versions of shortcuts.

This shortcut-file has a tutorial video available: Using the "cards" shortcut-file to use virtual cards (runtime 9:01)

  • ui cards reset - Clears all card-piles.
  • ui cards settings - User chooses card size and card back image.

  • ui cards pile - User enters a name, card-facing and show-moved flag for the new card-pile. Card-pile is created from the choices.
  • ui cards remove - User choses a card-pile to remove, then removes that card-pile.
  • ui cards pilesettings - User chooses a card-pile, then choses its card-facing and show-moved flag.

  • ui cards fromfolder - User choses a folder to create new cards from, then choses a card-pile to put them into. Cards are created and added to the chosen card-pile.

  • ui cards list - Lists all card-piles.
  • ui cards peek - User choses a card-pile, how many cards to peek and what side to peek from (top or bottom). The peeked cards are printed to the note.

  • ui cards draw - User choses one card-pile to draw from, one to add to and how many cards to draw. Cards are moved from the top of one card-pile to the top of the other.
  • ui cards pick - User choses one card-pile to pick from and one to add to, then the user picks the cards to move from the top of one to the top of the other.

  • ui cards shuffle - User choses a card-pile, and whether to rotate the cards while shuffling. The card-pile is then shuffled.
  • ui cards unrotate - User choses a card-pile, then all the card-pile's cards are turned right-side-up.
  • ui cards reverse - User choses a card-pile, then the card-pile's order is reversed.
  • ui cards recall - User choses a card-pile, then the card-pile is recalled. Recalling means finding all cards with the card-pile as their origin, then moving them to the card-pile.
  • ui cards reorigin - Asks the user to choose a card-pile, then the card-pile is re-origined.. Re-origining means setting the origin of all cards in a card-pile to that card-pile.

  • ui cards import - User chooses a card-pile and enters a data-string representation of a card-pile. The data-string is turned into a card-pile and assigned to the card-pile the user chose.
  • ui cards export - User chooses a card-pile, then the card-pile is exported to a data-string, which is printed to the note.

clips_ui.sfile

An extension to clips.sfile that provides graphical ui versions of shortcuts.

  • ui clips reset - Removes all clips.
  • ui clips - Lists all stored clips.
  • ui clips set - User enters a clip name and a clip value. The value is then assigned to the clip name.
  • ui clips get - User chooses a clip, which is then expanded into the note.
    • Alternative: ui cg
  • ui clips expansion - User enters a clip name. The prior expansion's text is then assigned to the clip name.
  • ui clips remove - User chooses a clip, which is then removed.

system.sfile

Shortcuts to work with the system: Obsidian, JS, InlineScripts backend, etc.

  • sys lasterror - Expands to the last expansion error that was posted to the console. This does not include errors that were created by a shortcut, only those created by Inline Scripts itself, i.e. those the trigger the message: ERROR: Shortcut expansion issues. (see console for details).
  • sys runjs {code: text} - Run the javascript in {code}. Can run multiple statements separated with newline characters (\n).
  • sys triggererror - Create an expansion error. Useful for testing the sys lasterror shortcut.