demo.mov
This script allows you to easily insert how long to beat properties and a completion time table into an Obsidian note using the Quickadd plugin by @chhoumann. Now also works on Mobile (make sure you use latest QuickAdd) !
Uses the unofficial HLTB API.
Warning
Please never run a script that you don't understand. I cannot and will not be liable for any damage caused by the use of this script. Regularly make a backup of your Obsidian's vault!
- Make sure you use latest QuickAdd version (at least 0.5.1) !
- Save the script from the latest release to your vault somewhere. Make sure it is saved as a JavaScript file, meaning that it has the
.js
at the end. - Create a new template in your designated templates folder. Example template is provided below.
- Open the Macro Manager by opening the QuickAdd plugin settings and clicking
Manage Macros
. - Create a new Macro - you decide what to name it.
- Add the user script to the command list.
- Go back out to your QuickAdd main menu and add a new Capture choice. Again, you decide the name. This is what activates the macro.
- Click on the cog ⚙ icon next to the new Capture choice and set your options. Recommended options listed below:
- Toggle "Capture to active file" on.
- Toggle "Write to bottom of file" on to append the completion time table at the end of the note.
- Toggle "Capture format" on and add
{{MACRO:hltb-macro}}
to the text box below. Replacehltb-macro
with whatever you named your macro on step 5.
The script will automatically use the title
property from a note (if present) to search HLTB, otherwise it will ask for a search string before displaying the search results. If successful, HLTB properties will be added to the note's frontmatter and a table will be added at the bottom of the note.
Name | Description |
---|---|
gameplayMain |
The number of hours needed for main story completion. |
gameplayMainExtra |
The number of hours needed for main story and side story completion. |
gameplayCompletionist |
The number of hours needed for full completion. |
hltbId |
The HLTB id of the game as a string. |
hltbUrl |
The HLTB URL of the game. |
hltbPoster |
The HLTB game poster URL. |
## How long to beat
| Playstyle | Average time |
| --- | --- |
| Main Story | 36 hours |
| Main + Sides | 49½ hours |
| Completionist | 80½ hours |