[{"data":1,"prerenderedAt":797},["ShallowReactive",2],{"help-\u002Fhelp\u002Fadd-template-from-catalogue":3,"help-index":485},{"id":4,"title":5,"body":6,"category":464,"description":465,"extension":466,"keywords":467,"meta":478,"navigation":479,"order":480,"path":481,"seo":482,"stem":483,"__hash__":484},"help\u002Fhelp\u002Fadd-template-from-catalogue.md","Add a template from the catalogue",{"type":7,"value":8,"toc":450},"minimark",[9,13,34,66,73,78,81,116,122,131,135,179,185,189,192,195,221,227,231,255,261,267,274,278,300,319,325,329,348,364,370,396,400,403,408,412,437,441],[10,11,5],"h1",{"id":12},"add-a-template-from-the-catalogue",[14,15,16,20,21,25,26,29,30,33],"p",{},[17,18,19],"strong",{},"The case:"," you're preparing a tabletop campaign in a world called ",[22,23,24],"em",{},"Saltwind",". You want a page for every monster with its armor class, hit points and ability scores in the same place, without building the fields yourself. Your world already has a ",[22,27,28],{},"Hit points"," number field and a ",[22,31,32],{},"Size"," text field from earlier notes.",[14,35,36,39,40,43,44,47,48,51,52,55,56,58,59,62,63,65],{},[17,37,38],{},"The short answer:"," open ",[17,41,42],{},"Templates and fields",", go to the ",[17,45,46],{},"Catalogue"," tab, pick the ",[17,49,50],{},"Monster"," template and click ",[17,53,54],{},"Add template",". The catalogue reuses your ",[22,57,28],{}," field and adds a new ",[22,60,61],{},"Monster size"," field next to your ",[22,64,32],{},".",[14,67,68],{},[69,70],"img",{"alt":71,"src":72},"The Monster template in the catalogue: a filled sample page for the Obsidian Wyrmling, and on the right what adding it does to Saltwind's fields","\u002Fimages\u002Fhelp\u002Fadd-template-from-catalogue\u002Fpreview.jpg",[74,75,77],"h2",{"id":76},"_1-open-the-catalogue","1. Open the catalogue",[14,79,80],{},"There are three ways in:",[82,83,84,95,104],"ul",{},[85,86,87,88,91,92,65],"li",{},"On any document, click the template chip at the top left (it says ",[17,89,90],{},"Document"," on a document without a template) and choose ",[17,93,94],{},"Browse catalogue",[85,96,97,98,100,101,103],{},"In ",[17,99,42],{},", click the ",[17,102,46],{}," tab.",[85,105,97,106,108,109,112,113,65],{},[17,107,42],{},", click ",[17,110,111],{},"New template"," and choose ",[17,114,115],{},"From the catalogue",[14,117,118],{},[69,119],{"alt":120,"src":121},"The New template menu: Blank template, and From the catalogue with 20 premade templates by genre","\u002Fimages\u002Fhelp\u002Fadd-template-from-catalogue\u002Fnew-template-menu.jpg",[14,123,124,125,127,128,103],{},"A world with no templates yet also offers the three starter packs and ",[17,126,94],{}," right on the ",[17,129,130],{},"Templates",[74,132,134],{"id":133},"_2-find-a-template","2. Find a template",[136,137,138,156,170,176],"ol",{},[85,139,140,141,144,145,148,149,152,153,65],{},"On the left, pick a genre: ",[17,142,143],{},"Tabletop RPG",", ",[17,146,147],{},"Fiction"," or ",[17,150,151],{},"Video game",", or stay on ",[17,154,155],{},"All templates",[85,157,158,159,162,163,148,166,169],{},"To find something specific, type in ",[17,160,161],{},"Search templates and fields",", for example ",[22,164,165],{},"armor",[22,167,168],{},"quest",". It searches template names and field names.",[85,171,172,175],{},[17,173,174],{},"In this world"," shows the catalogue templates you've already added.",[85,177,178],{},"Click a template's card to open its preview.",[14,180,181],{},[69,182],{"alt":183,"src":184},"The Tabletop RPG genre: the Campaign starter pack, then cards for NPC, Monster, Location, Faction, Quest, Magic item, Spell and Deity","\u002Fimages\u002Fhelp\u002Fadd-template-from-catalogue\u002Fbrowse.jpg",[74,186,188],{"id":187},"_3-check-what-it-adds-to-your-world","3. Check what it adds to your world",[14,190,191],{},"The preview shows a sample page filled with example values, laid out the way your documents will be. The sample values are only there for the preview.",[14,193,194],{},"The panel on the right lists every field the template has, with a badge:",[82,196,197,203,209],{},[85,198,199,202],{},[17,200,201],{},"Yours",": your world already has a field with the same name and type, so the template uses it. Its values and export key stay as they are.",[85,204,205,208],{},[17,206,207],{},"New",": the field is created when you add the template.",[85,210,211,214,215,217,218,220],{},[17,212,213],{},"Renamed",": your world uses that name for a different type of field, so the template adds its own field under a new name. Here your ",[22,216,32],{}," is text and the catalogue's is a choice, so it's added as ",[22,219,61],{},". You can type another name in the box.",[14,222,223],{},[69,224],{"alt":225,"src":226},"The Add to Saltwind panel: 14 new fields, 2 of yours, 1 renamed; Monster size in an editable box with the reason under it; Hit points marked Yours","\u002Fimages\u002Fhelp\u002Fadd-template-from-catalogue\u002Fadd-panel.jpg",[74,228,230],{"id":229},"_4-add-it","4. Add it",[136,232,233,243,250],{},[85,234,235,236,239,240,65],{},"Change the ",[17,237,238],{},"Template name"," if you like, for example ",[22,241,242],{},"Beast",[85,244,245,246,249],{},"Tick ",[17,247,248],{},"Also add the sample as a document"," if you want the filled example in your world too. It's a normal document you can edit or delete.",[85,251,252,253,65],{},"Click ",[17,254,54],{},[14,256,257,258,260],{},"LoreHub switches to the ",[17,259,130],{}," tab with the new template selected. A note above it says which catalogue template and version it came from, and a message at the bottom says how many fields were added and reused.",[14,262,263],{},[69,264],{"alt":265,"src":266},"After adding: Monster is selected on the Templates tab, a note says it came from the catalogue, and the message at the bottom says 15 new fields, 1 of yours reused, with Undo","\u002Fimages\u002Fhelp\u002Fadd-template-from-catalogue\u002Fadded.jpg",[14,268,269,270,273],{},"Changed your mind? Click ",[17,271,272],{},"Undo"," in that message. It removes the template and the fields it created, as long as no document has a value in them yet. Your own fields stay.",[74,275,277],{"id":276},"_5-add-a-whole-starter-pack","5. Add a whole starter pack",[14,279,280,281,284,285,288,289,292,293,148,296,299],{},"A pack adds four or five templates at once: ",[17,282,283],{},"Campaign starter"," (NPC, Monster, Location, Faction, Quest), ",[17,286,287],{},"Novel starter"," (Character, Place, Organisation, Object) or ",[17,290,291],{},"RPG game data"," (Character, Enemy, Weapon, Item, Ability). Fields the templates share, like ",[22,294,295],{},"Portrait",[22,297,298],{},"Home",", are created only once.",[136,301,302,308,311],{},[85,303,252,304,307],{},[17,305,306],{},"Add pack"," on the pack's card.",[85,309,310],{},"Click the template names above the sample to see each one's sample page.",[85,312,245,313,316,317,65],{},[17,314,315],{},"Also add the samples as documents"," for one filled document per template, then click ",[17,318,306],{},[14,320,321],{},[69,322],{"alt":323,"src":324},"The Campaign starter preview with the Faction sample, The Ash Circle, and the list of fields the pack adds","\u002Fimages\u002Fhelp\u002Fadd-template-from-catalogue\u002Fpack.jpg",[74,326,328],{"id":327},"_6-fill-in-a-list-of-documents","6. Fill in a list of documents",[14,330,331,332,335,336,339,340,343,344,347],{},"Some catalogue fields hold several documents: a faction's ",[17,333,334],{},"Members",", a location's ",[17,337,338],{},"Notable NPCs",", a deity's ",[17,341,342],{},"Followers",". They're ",[17,345,346],{},"Document list"," fields. When the template they list (here NPC) comes in the same pack, or your world already has it from the catalogue, the list picks from that template's documents.",[136,349,350,356,361],{},[85,351,352,353,65],{},"Open a faction document, for example ",[22,354,355],{},"The Ash Circle",[85,357,252,358,360],{},[17,359,334],{}," and pick the NPCs. Only documents that follow the NPC template are offered.",[85,362,363],{},"Click the cross on a name to take it out of the list.",[14,365,366],{},[69,367],{"alt":368,"src":369},"The Ash Circle's Members field with three NPCs: Maren Coalbright, Borin Ashhand and Ilda Brightforge","\u002Fimages\u002Fhelp\u002Fadd-template-from-catalogue\u002Fmembers.jpg",[14,371,372,373,376,377,379,380,383,384,387,388,144,391,148,394,65],{},"If the template a list should pick from isn't in your world, the field starts as a ",[17,374,375],{},"Hand-picked"," list. To change where it picks from, open ",[17,378,42],{},", then ",[17,381,382],{},"Fields",", click the field and change ",[17,385,386],{},"Documents from"," to ",[17,389,390],{},"By template",[17,392,393],{},"By tag",[17,395,375],{},[74,397,399],{"id":398},"make-it-yours","Make it yours",[14,401,402],{},"The template is a copy: rename it, change its icon, switch between the article and compact layouts, move fields between groups or take them off the page, the same as a template you built yourself. Nothing in the catalogue changes your documents later on.",[14,404,405,406,65],{},"People who can only view the world can browse and preview the catalogue, but they don't see ",[17,407,54],{},[74,409,411],{"id":410},"variations","Variations",[82,413,414,427],{},[85,415,416,419,420,422,423,426],{},[17,417,418],{},"Build a template from scratch:"," ",[17,421,111],{}," → ",[17,424,425],{},"Blank template",", then drag fields onto the page.",[85,428,429,432,433,436],{},[17,430,431],{},"Add the same template twice:"," it gets the next free name, like ",[22,434,435],{},"Monster 2",", and reuses the fields the first one created.",[74,438,440],{"id":439},"in-your-game","In your game",[14,442,443,444,449],{},"Each field keeps a fixed export key, and catalogue fields reuse yours rather than duplicating them. Document field values aren't part of the ",[445,446,448],"a",{"href":447},"\u002Fdocumentation","dialogue export"," yet.",{"title":451,"searchDepth":452,"depth":452,"links":453},"",3,[454,456,457,458,459,460,461,462,463],{"id":76,"depth":455,"text":77},2,{"id":133,"depth":455,"text":134},{"id":187,"depth":455,"text":188},{"id":229,"depth":455,"text":230},{"id":276,"depth":455,"text":277},{"id":327,"depth":455,"text":328},{"id":398,"depth":455,"text":399},{"id":410,"depth":455,"text":411},{"id":439,"depth":455,"text":440},"worldbuilder","Give your documents ready-made fields and layouts: preview a premade template or a starter pack, see which fields it reuses, add it and make it yours.","md",[468,469,470,471,472,473,474,475,476,477],"premade","starter pack","stat block","monster","npc","character sheet","dnd","campaign","document list","members",{},true,1,"\u002Fhelp\u002Fadd-template-from-catalogue",{"title":5,"description":465},"help\u002Fadd-template-from-catalogue","cDabZmQKRLQUKW0d2VEvkdgaAcvelLagNVh5ZwQEZKA",{"articles":486,"sections":576},[487,489,505,527,541,562],{"path":481,"title":5,"description":465,"category":464,"order":480,"keywords":488},[468,469,470,471,472,473,474,475,476,477],{"path":490,"title":491,"description":492,"category":464,"order":480,"keywords":493},"\u002Fhelp\u002Fdocument-list-field","Give a character a race from your lore","Pick a race, class or faction from your own documents with a Document list field, so every character points to the same Elf page.",[494,495,496,497,498,499,500,501,502,503,504],"race","class","faction","link documents","reference","relation","dropdown","select document","species","tag","field type",{"path":506,"title":507,"description":508,"category":509,"order":480,"keywords":510},"\u002Fhelp\u002Fgold-coins","Give or take gold coins","Track the main character's gold with a number variable: add coins when they earn them, take coins when they pay, and offer an option only when they can afford it.","variables",[511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526],"gold","coins","money","currency","inventory","counter","add","remove","subtract","increase","decrease","number variable","buy","sell","pay","price",{"path":528,"title":529,"description":530,"category":531,"order":480,"keywords":532},"\u002Fhelp\u002Foption-only-once","Make an option the player can pick only once","Hide a dialogue option after the player picks it, with Ask once in the LoreHub Dialogue Builder. Step by step, with a list of questions as the example.","dialogue-builder",[533,534,535,536,537,538,539,540],"play once","one time","only once","ask once","hide option","already asked","repeat question","disappear",{"path":542,"title":543,"description":544,"category":545,"order":480,"keywords":546},"\u002Fhelp\u002Fcamera-and-emotion","Set the camera and the emotion for every line","Give writers a fixed list of camera positions and emotions to pick from on each dialogue node, with text list fields in the meta schema.","export",[547,548,549,550,551,552,553,554,555,556,500,557,558,559,560,561],"camera","camera angle","shot","emotion","mood","facial expression","animation","cutscene","3d","cinematic","allowed values","predefined","enum","meta data","meta schema",{"path":563,"title":564,"description":565,"category":531,"order":455,"keywords":566},"\u002Fhelp\u002Fquestion-hub","Bring the player back to a list of questions","Let the player ask questions in any order and return to the same list after each answer, with Return to options in the LoreHub Dialogue Builder.",[567,568,569,570,571,572,573,574,575],"hub","question hub","back to questions","return","loop","go back","ask again","menu","list of questions",[577,579,583,587,591,595,599,603,607,611,615,619,621,625,630,635,640,645,649,653,655,659,664,669,674,679,684,688,692,694,698,703,708,713,717,721,725,727,731,736,741,746,751,755,760,764,768,770,774,779,784,789,793],{"id":481,"title":5,"titles":578,"content":465,"level":480},[],{"id":580,"title":5,"titles":581,"content":582,"level":480},"\u002Fhelp\u002Fadd-template-from-catalogue#add-a-template-from-the-catalogue",[],"The case: you're preparing a tabletop campaign in a world called Saltwind. You want a page for every monster with its armor class, hit points and ability scores in the same place, without building the fields yourself. Your world already has a Hit points number field and a Size text field from earlier notes. The short answer: open Templates and fields, go to the Catalogue tab, pick the Monster template and click Add template. The catalogue reuses your Hit points field and adds a new Monster size field next to your Size.",{"id":584,"title":77,"titles":585,"content":586,"level":455},"\u002Fhelp\u002Fadd-template-from-catalogue#_1-open-the-catalogue",[5],"There are three ways in: On any document, click the template chip at the top left (it says Document on a document without a template) and choose Browse catalogue. In Templates and fields, click the Catalogue tab. In Templates and fields, click New template and choose From the catalogue. A world with no templates yet also offers the three starter packs and Browse catalogue right on the Templates tab.",{"id":588,"title":134,"titles":589,"content":590,"level":455},"\u002Fhelp\u002Fadd-template-from-catalogue#_2-find-a-template",[5],"On the left, pick a genre: Tabletop RPG, Fiction or Video game, or stay on All templates. To find something specific, type in Search templates and fields, for example armor or quest. It searches template names and field names. In this world shows the catalogue templates you've already added. Click a template's card to open its preview.",{"id":592,"title":188,"titles":593,"content":594,"level":455},"\u002Fhelp\u002Fadd-template-from-catalogue#_3-check-what-it-adds-to-your-world",[5],"The preview shows a sample page filled with example values, laid out the way your documents will be. The sample values are only there for the preview. The panel on the right lists every field the template has, with a badge: Yours: your world already has a field with the same name and type, so the template uses it. Its values and export key stay as they are. New: the field is created when you add the template. Renamed: your world uses that name for a different type of field, so the template adds its own field under a new name. Here your Size is text and the catalogue's is a choice, so it's added as Monster size. You can type another name in the box.",{"id":596,"title":230,"titles":597,"content":598,"level":455},"\u002Fhelp\u002Fadd-template-from-catalogue#_4-add-it",[5],"Change the Template name if you like, for example Beast. Tick Also add the sample as a document if you want the filled example in your world too. It's a normal document you can edit or delete. Click Add template. LoreHub switches to the Templates tab with the new template selected. A note above it says which catalogue template and version it came from, and a message at the bottom says how many fields were added and reused. Changed your mind? Click Undo in that message. It removes the template and the fields it created, as long as no document has a value in them yet. Your own fields stay.",{"id":600,"title":277,"titles":601,"content":602,"level":455},"\u002Fhelp\u002Fadd-template-from-catalogue#_5-add-a-whole-starter-pack",[5],"A pack adds four or five templates at once: Campaign starter (NPC, Monster, Location, Faction, Quest), Novel starter (Character, Place, Organisation, Object) or RPG game data (Character, Enemy, Weapon, Item, Ability). Fields the templates share, like Portrait or Home, are created only once. Click Add pack on the pack's card. Click the template names above the sample to see each one's sample page. Tick Also add the samples as documents for one filled document per template, then click Add pack.",{"id":604,"title":328,"titles":605,"content":606,"level":455},"\u002Fhelp\u002Fadd-template-from-catalogue#_6-fill-in-a-list-of-documents",[5],"Some catalogue fields hold several documents: a faction's Members, a location's Notable NPCs, a deity's Followers. They're Document list fields. When the template they list (here NPC) comes in the same pack, or your world already has it from the catalogue, the list picks from that template's documents. Open a faction document, for example The Ash Circle. Click Members and pick the NPCs. Only documents that follow the NPC template are offered. Click the cross on a name to take it out of the list. If the template a list should pick from isn't in your world, the field starts as a Hand-picked list. To change where it picks from, open Templates and fields, then Fields, click the field and change Documents from to By template, By tag or Hand-picked.",{"id":608,"title":399,"titles":609,"content":610,"level":455},"\u002Fhelp\u002Fadd-template-from-catalogue#make-it-yours",[5],"The template is a copy: rename it, change its icon, switch between the article and compact layouts, move fields between groups or take them off the page, the same as a template you built yourself. Nothing in the catalogue changes your documents later on. People who can only view the world can browse and preview the catalogue, but they don't see Add template.",{"id":612,"title":411,"titles":613,"content":614,"level":455},"\u002Fhelp\u002Fadd-template-from-catalogue#variations",[5],"Build a template from scratch: New template → Blank template, then drag fields onto the page. Add the same template twice: it gets the next free name, like Monster 2, and reuses the fields the first one created.",{"id":616,"title":440,"titles":617,"content":618,"level":455},"\u002Fhelp\u002Fadd-template-from-catalogue#in-your-game",[5],"Each field keeps a fixed export key, and catalogue fields reuse yours rather than duplicating them. Document field values aren't part of the dialogue export yet.",{"id":542,"title":543,"titles":620,"content":544,"level":480},[],{"id":622,"title":543,"titles":623,"content":624,"level":480},"\u002Fhelp\u002Fcamera-and-emotion#set-the-camera-and-the-emotion-for-every-line",[],"The case: you're making a 3D game, and every line of dialogue plays as a small cutscene. For each line your game\nneeds to know where the camera goes and how the speaking character feels. Writers choose both while they write, but\nthe game only has three camera setups and five face animations, so a writer should only be able to pick one of those. Captain Mara: So you're the stowaway.        camera: wide           emotion: neutral\nFinn:         I can explain!                 camera: close_up       emotion: surprised\nCaptain Mara: You have until we reach port.  camera: over_shoulder  emotion: angry The short answer: add two text list fields to the game's meta schema, camera_position and emotion, and\ntype the values your game supports as their options. Writers then pick a value for each line from a dropdown in the\nnode's Meta data card, and nothing else can be entered.",{"id":626,"title":627,"titles":628,"content":629,"level":455},"\u002Fhelp\u002Fcamera-and-emotion#_1-add-the-camera_position-field","1. Add the camera_position field",[543],"You set this up once per game, and every dialogue in the game can use it. Open the game and click the pencil next to Meta schema in the explorer on the left. Click New field and name it camera_position. Names use small Latin letters and underscores. Set Type to text list. Under Options, type the camera setups your game has, one per line: wide, over_shoulder, close_up. Add a Comment like Camera setup the game cuts to when the line starts, so writers know what it does.\nClick Add field. The options are written exactly as your game expects them. A writer can't type closeup or Close Up by mistake,\nbecause they never type a value at all.",{"id":631,"title":632,"titles":633,"content":634,"level":455},"\u002Fhelp\u002Fcamera-and-emotion#_2-add-the-emotion-field","2. Add the emotion field",[543],"Click New field again and name it emotion. Set Type to text list. Under Options, type one emotion per line: neutral, happy, sad, angry, surprised. Add a comment like Face animation the speaking character plays, and click Add field.",{"id":636,"title":637,"titles":638,"content":639,"level":455},"\u002Fhelp\u002Fcamera-and-emotion#_3-pick-the-camera-and-the-emotion-on-each-line","3. Pick the camera and the emotion on each line",[543],"Open the dialogue and select a node, here Finn's \"I can explain!\" In the Meta data card, open the camera_position dropdown and pick close_up. Open the emotion dropdown and pick surprised. The value is saved as soon as you pick it. Pick the empty choice (—) to clear it. Hover over a field to see its\ncomment and its options.",{"id":641,"title":642,"titles":643,"content":644,"level":455},"\u002Fhelp\u002Fcamera-and-emotion#_4-test-it","4. Test it",[543],"Click Show player and turn on Show meta data at the top of the player. Play the dialogue. Under every line the player shows its Meta data: the camera and the emotion your game will\nuse for it. Look for lines without a camera or an emotion and fill them in.",{"id":646,"title":411,"titles":647,"content":648,"level":455},"\u002Fhelp\u002Fcamera-and-emotion#variations",[543],"One camera for a whole scene. Draw a Meta Area around the nodes of a scene and set camera_position to\nwide in its Meta data. Every node inside gets the value, and the node shows which area it comes from. Numbers instead of names. If your game reads a camera angle or an animation index, pick integer list and use\noptions like 0, 45, 90 and 180. Every node then holds one of those numbers. Change the options later. Open the field again to add an option, reorder them or fix a typo. LoreHub won't let you\nremove an option that a node or a Meta Area still uses, and tells you which one. More per-line data. The same works for anything your game needs per line: a voice-over take, a music cue, a\ncharacter's pose. Add a text list or integer list for each.",{"id":650,"title":440,"titles":651,"content":652,"level":455},"\u002Fhelp\u002Fcamera-and-emotion#in-your-game",[543],"Each node exports its values in metaData, as the field's id and the chosen option, and the export lists every field\nwith its type textList and its options, so your game can check the values or build its own lookup from them. See\nMeta Schema v1 and\nMetaData. In Godot, the\nLoreHub Dialogue Player gives you the values by name on every\nline, for example line.meta[\"camera_position\"].",{"id":490,"title":491,"titles":654,"content":492,"level":480},[],{"id":656,"title":491,"titles":657,"content":658,"level":480},"\u002Fhelp\u002Fdocument-list-field#give-a-character-a-race-from-your-lore",[],"The case: your world has races, and each race has its own document: Elf, Human, Dwarf. Legolas is an elf. You want his page to say so with a link to the Elf document, picked from a short list, so nobody types Elves or elf by hand. The short answer: tag every race document Race, then add a field of type Document list that takes its documents By tag = Race. Set it to Elf on Legolas's page.",{"id":660,"title":661,"titles":662,"content":663,"level":455},"\u002Fhelp\u002Fdocument-list-field#_1-make-the-race-documents-and-tag-them","1. Make the race documents and tag them",[491],"Open Documents and click New Document. Name it Elf and save. Under the title, click + Tag. In Create new tag, type Race, pick a colour and click Create. In Add or remove tags for \"Elf\", click Race so it's checked, then click Close. Do the same for Human and Dwarf: they already have the Race tag to pick.",{"id":665,"title":666,"titles":667,"content":668,"level":455},"\u002Fhelp\u002Fdocument-list-field#_2-add-a-race-field","2. Add a Race field",[491],"On any document, click the template menu at the top left (it says Document) and choose Manage templates. Open the Fields tab and click New field. For Label, type Race. For Type, pick Document list. Under Documents from, keep By tag and pick Race in Tag. The line below lists the documents it can hold today: Dwarf, Elf, Human. Leave Allow several off: a character has one race. Click Save.",{"id":670,"title":671,"titles":672,"content":673,"level":455},"\u002Fhelp\u002Fdocument-list-field#_3-put-the-field-on-a-character-template","3. Put the field on a character template",[491],"A field shows on a document through its template. If you don't have a character template yet: In Templates and fields, open the Templates tab and click New template (or Blank template). Name it Character and click Create. In the side column, click + on a group and pick Race. You can also drag it there from Fields that are not on the page. Click Save, then close the window.",{"id":675,"title":676,"titles":677,"content":678,"level":455},"\u002Fhelp\u002Fdocument-list-field#_4-make-legolas-an-elf","4. Make Legolas an elf",[491],"Create a document Legolas. Click the template menu at the top left and pick Character. The Race field appears in the side column. Click No document next to Race and pick Elf. The list only offers documents with the Race tag. Tag a new document Race (Orc, say) and it shows up in the list right away.",{"id":680,"title":681,"titles":682,"content":683,"level":455},"\u002Fhelp\u002Fdocument-list-field#when-a-document-leaves-the-list","When a document leaves the list",[491],"If Elf loses its Race tag later, Legolas keeps Elf. LoreHub doesn't change values behind your back: it marks the value with an amber warning that says why, and it stays until you remove it or tag Elf again. The same happens when a document changes template, is taken off a hand-picked list, or the field's tag or template is deleted. When a document is deleted, it's removed from every value that held it.",{"id":685,"title":411,"titles":686,"content":687,"level":455},"\u002Fhelp\u002Fdocument-list-field#variations",[491],"Several values: classes. A character can be a Ranger and an Archer. Make a Class field with Allow several turned on. In the picker, check every class that applies. Hand-picked. Choose Hand-picked under Documents from and add the documents one by one with Add a document. Drag them to set the order the picker shows. Good for short, fixed lists like classes. By template. Choose By template to offer every document that uses a template, for example a Faction field that lists every document using a Faction template. Picking the built-in Document template means documents with no template. One link, no list. For a single link to any document in the world, use a Document link field instead.",{"id":689,"title":440,"titles":690,"content":691,"level":455},"\u002Fhelp\u002Fdocument-list-field#in-your-game",[491],"Include in the game export is on by default for a Document list field, the same as for other fields. Turn it off for fields that only matter to your writers. Document field values aren't in the JSON export yet; this setting decides whether the field goes into it once they are.",{"id":506,"title":507,"titles":693,"content":508,"level":480},[],{"id":695,"title":507,"titles":696,"content":697,"level":480},"\u002Fhelp\u002Fgold-coins#give-or-take-gold-coins",[],"The case: the main character carries gold. A merchant sells bread for three coins and buys their old sword for five. The player can only buy bread while they have at least three coins. Gold: 10\nMerchant: Fresh bread, three coins a loaf. Anything else?\n  1. Buy bread (3 coins)\n  2. Sell my old sword\n  3. Goodbye.\nPlayer picks 1.\nMerchant: Here you go, still warm.\nGold: 7 The short answer: create a number variable gold. On the node where the player pays, add Set variable with gold −= 3. On the node where they earn coins, gold += 5. Give the buy option the condition gold ≥ 3.",{"id":699,"title":700,"titles":701,"content":702,"level":455},"\u002Fhelp\u002Fgold-coins#_1-create-the-gold-variable","1. Create the gold variable",[507],"Click the pencil next to Variables in the explorer on the left. Click New variable and name it gold. Names use small Latin letters and underscores. Set its type to Unsigned number, a whole number that never goes below 0. Under Starts as, enter how many coins the player has at the start, for example 10. Add a comment like Coins the player carries, so everyone on the team knows what it means. Click Save. Pick Number instead if gold can go negative, for example to allow debt.",{"id":704,"title":705,"titles":706,"content":707,"level":455},"\u002Fhelp\u002Fgold-coins#_2-take-coins-when-the-player-pays","2. Take coins when the player pays",[507],"Select the node that plays after the player pays, here \"Here you go, still warm.\" Under On start, set, click Set variable and pick gold. Choose −= and enter 3. The coins change when the node plays. To give coins, do the same on the node where the player earns them, with +=: here \"Five coins for it\" gets gold += 5. Choose = to set an exact amount, for example gold = 0 when the player is robbed.",{"id":709,"title":710,"titles":711,"content":712,"level":455},"\u002Fhelp\u002Fgold-coins#_3-offer-the-option-only-when-the-player-can-pay","3. Offer the option only when the player can pay",[507],"Select the merchant's node. On Buy bread (3 coins), click + condition and pick gold. Choose ≥ and enter 3. Now the player only sees Buy bread while they have three coins or more. The option shows a filter badge with its number of conditions on the canvas. To let the player come back to the merchant's options after buying, link the answer back to the merchant's node with Return to options. See Bring the player back to a list of questions.",{"id":714,"title":642,"titles":715,"content":716,"level":455},"\u002Fhelp\u002Fgold-coins#_4-test-it",[507],"Click Show player and play the dialogue. Watch gold in the Variables column while you buy bread: 10, 7, 4, 1. With 1 coin left, Buy bread is faded with gold ≥ 3 next to it. In your game the player won't see it. You can change gold in the Variables column to test other amounts without playing up to them. Click Restart to start again with 10 coins.",{"id":718,"title":411,"titles":719,"content":720,"level":455},"\u002Fhelp\u002Fgold-coins#variations",[507],"Sell only once. Turn on Ask once on Sell my old sword, since the player has only one sword. See Make an option the player can pick only once. Branch on the amount. Give the links from a node conditions, like gold ≥ 100 to one line and no condition to another. The game follows the first link whose conditions are met.",{"id":722,"title":440,"titles":723,"content":724,"level":455},"\u002Fhelp\u002Fgold-coins#in-your-game",[507],"gold is exported with the dialogue's variables and its starting value. A node exports its change in setVariableOnStart with operation set to add or subtract, and the option's condition with operator >=. See Variable v1 and SetVariableOnStart.",{"id":528,"title":529,"titles":726,"content":530,"level":480},[],{"id":728,"title":529,"titles":729,"content":730,"level":480},"\u002Fhelp\u002Foption-only-once#make-an-option-the-player-can-pick-only-once",[],"The case: the player talks to an innkeeper and can ask several questions: Who are you?, What's this town called?, Any work for me?. After each answer the player is back at the list of questions, but a question they have already asked shouldn't be offered again. Goodbye is always there, so the player can leave. The short answer: select the node with the options and turn on Ask once on each question. Then link each answer back to the node's options with Return to options.",{"id":732,"title":733,"titles":734,"content":735,"level":455},"\u002Fhelp\u002Foption-only-once#before-you-start","Before you start",[529],"You need a dialogue with a node that has options, and a node for each answer. If you are starting from scratch: Open your dialogue in the Dialogue Builder. Write the innkeeper's greeting in a node, for example \"Welcome, traveller. What can I do for you?\" Add the questions as options: click + Option on the node, or select the node and click Add option in the inspector. Add a node for each answer, and drag from each option's dot to its answer node.",{"id":737,"title":738,"titles":739,"content":740,"level":455},"\u002Fhelp\u002Foption-only-once#_1-turn-on-ask-once","1. Turn on Ask once",[529],"Click the node with the options to open it in the inspector. Under Options, find the question and turn on Ask once below it. Do the same for every question that should be asked only once. Leave Ask once off on Goodbye. The option's Visible when now shows a once chip, and the option gets a once pill on the canvas, so you can see at a glance which options disappear.",{"id":742,"title":743,"titles":744,"content":745,"level":455},"\u002Fhelp\u002Foption-only-once#_2-bring-the-player-back-to-the-questions","2. Bring the player back to the questions",[529],"An option that is asked once only makes sense if the player comes back to the list. After each answer, link back to the node with the questions: Drag from the answer node's dot to the innkeeper's node. Select the answer node. Under Links, turn on Return to options for the new link. With Return to options, the player skips the innkeeper's greeting and sees the questions again, minus the ones already asked. Without it, the greeting would play again first. Return to options shows only when the link goes to a node that has options. You'll also find it in the inspector when you select the link itself, and on an option's link under Goes to, if an option leads straight back.",{"id":747,"title":748,"titles":749,"content":750,"level":455},"\u002Fhelp\u002Foption-only-once#_3-leave-a-way-out","3. Leave a way out",[529],"Keep at least one option without Ask once that leads on, like Goodbye. If every option is asked once and every one leads back, the player ends up with nothing to pick. The inspector warns you about this on the node: Every option is asked once and leads back here, so the player runs out of options. Add an option that leads on, or turn off Ask once on one of them.",{"id":752,"title":642,"titles":753,"content":754,"level":455},"\u002Fhelp\u002Foption-only-once#_4-test-it",[529],"Click Show player and play the dialogue. Pick Who are you?. After the answer you are back at the questions. Who are you? is now faded, with its condition next to it. Hover it to see Hidden in the game: its condition is not met. In your game the player won't see it at all. The test player still lets you click a faded option, so you can check the rest of the dialogue without starting over. Click Restart to play from the beginning with every question available again.",{"id":756,"title":757,"titles":758,"content":759,"level":455},"\u002Fhelp\u002Foption-only-once#turn-it-off","Turn it off",[529],"Turn off Ask once on the option, or click the cross on its once chip.",{"id":761,"title":411,"titles":762,"content":763,"level":455},"\u002Fhelp\u002Foption-only-once#variations",[529],"Unlock a question after another one. Say Any work for me? should appear only after the player asked Who are you?. On Any work for me?, click + condition, pick stateData.isOptionSelected under Predefined variables, then pick Who are you?. The condition starts as true: the option shows once Who are you? was picked. Click the value to switch it to false for the opposite. React to a line the player has already heard. stateData.isNodePlayed works the same way for nodes: it checks whether the player has already seen a node. Use it on an option, or on a link, to play a different line the second time round. Remember it in other dialogues. Ask once remembers what was picked in this dialogue. If another dialogue needs to know that the player asked the question, use a variable instead: set it on the answer node with Set variable, and check it with + condition wherever you need it.",{"id":765,"title":440,"titles":766,"content":767,"level":455},"\u002Fhelp\u002Foption-only-once#in-your-game",[529],"If you load LoreHub dialogues into your own engine, Ask once is exported as a condition on the option: the option's own stateData.selected must be false. Your game marks an option selected when the player picks it, and checks the conditions again each time it shows the options. The LoreHub Dialogue Player for Godot does this for you. For the JSON, see state data conditions and StateData.",{"id":563,"title":564,"titles":769,"content":565,"level":480},[],{"id":771,"title":564,"titles":772,"content":773,"level":480},"\u002Fhelp\u002Fquestion-hub#bring-the-player-back-to-a-list-of-questions",[],"The case: Sam asks the player if they have questions, and the player can ask them in any order. After each answer, Sam shows the same questions again, until the player says That's all. Sam: Do you have questions?\n  1. Who are you?\n  2. Where are we?\n  3. What time is it now?\n  4. That's all.\nPlayer picks 2.\nSam: Eastbrook, by the old mill.\n  1. Who are you?\n  2. Where are we?\n  3. What time is it now?\n  4. That's all. The short answer: link each answer back to Sam's node and turn on Return to options on that link.",{"id":775,"title":776,"titles":777,"content":778,"level":455},"\u002Fhelp\u002Fquestion-hub#_1-write-the-questions-and-the-answers","1. Write the questions and the answers",[564],"Open your dialogue in the Dialogue Builder. Write Sam's line in a node: \"Do you have questions?\" Add the questions as options: click + Option on the node, or select it and click Add option in the inspector. Add That's all. as the last option. Add a node for each answer, and drag from each question's dot to its answer. Drag from That's all. to the node where the conversation goes on, or to a goodbye line.",{"id":780,"title":781,"titles":782,"content":783,"level":455},"\u002Fhelp\u002Fquestion-hub#_2-link-each-answer-back-to-the-questions","2. Link each answer back to the questions",[564],"Drag from the answer node's dot back to Sam's node. Select the answer node. Under Links, turn on Return to options. Do the same for every answer. With Return to options, the player skips \"Do you have questions?\" and goes straight back to the list. Without it, Sam would say the line again before every list. Return to options shows only when the link goes to a node that has options.",{"id":785,"title":786,"titles":787,"content":788,"level":455},"\u002Fhelp\u002Fquestion-hub#_3-test-it","3. Test it",[564],"Click Show player and play the dialogue. Pick Where are we? and click Continue after the answer. The player shows Back to the options of node_01 and the same four questions again.",{"id":790,"title":411,"titles":791,"content":792,"level":455},"\u002Fhelp\u002Fquestion-hub#variations",[564],"Hide a question once it's asked. Turn on Ask once on the question. See Make an option the player can pick only once. Unlock a question after another one. On the new question, click + condition, pick stateData.isOptionSelected and then the question it depends on.",{"id":794,"title":440,"titles":795,"content":796,"level":455},"\u002Fhelp\u002Fquestion-hub#in-your-game",[564],"A link with Return to options is exported with \"entry\": \"options\". When your game follows it, show the node's options again without its lines, and check each option's conditions again. The LoreHub Dialogue Player for Godot does this for you. See Link v1.1 for the JSON.",1795789836373]