Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Do you know how to change the css for paragraphs? I know there's a way to have a set difference between each one rather than the extra space I'm doing. Frustratingly, I can't get the coding to work.

Ok, spend some time playing around with twinery

Take a backup of your story then: 

  1. Add "Config.passages.nobr = true;" to the stories javascript
  2. Use search and replace, click use regex and put "\n\n " in the find box, and in the replace box do

    <p>
    With the empty line before and a linebreak after the <p>
  3. Add the following to the stylesheet
    #passages p {
      margin-top: 2em;
    }

If all goes correct it should be converted to use <p> instead, and you can play around with the spacing. It might be simpler to rerun the search and replace instead of manually adding in <p> in new passages.