0
\$\begingroup\$

I'm creating an HTML5 RPG and need to write NPC dialog. In my beta, I wrote the dialog in spreadsheets and assigned lines to NPC by ID. Branching required writing a complicated flag system. It was impossible for anyone to read through it and understand what was going on.

I'm looking for a better alternative to writing branching story dialog. The dialog will require some degree of in-text markdown support (so I can be sure which text to highlight with CSS). In the spreadsheet, that looked like

"Hello, my name is [name: John]. Welcome to [location: Aragon]. Please fetch the [keyword: sword]"

Would would appear as:

"Hello, my name is John. Welcome to Aragon. Please fetch the sword"

These would be higlighted/handled differently in code.

\$\endgroup\$
0
\$\begingroup\$

I find the actual editing and management prohibitively hard when the tool itself doesn't allow hypertext.

I'd start with something like Twinery: https://twinery.org/

You can then devise a way to import your Twines as e.g. XML or Markdown text files into your game. At least you will know that the data is properly set up because a tool like Twinery visualizes the branches.

| improve this answer | |
\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.