Movatterモバイル変換


[0]ホーム

URL:


Skip to main content

itch.ioitch.io logo & titleitch.io logo

Browse GamesGame JamsUpload GameDeveloper LogsCommunity
Log inRegister
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
Ringtail (alpha) »Comments

I'm curious, how do you handle the dialogue system? Do you have an array of words and build the phrases of someWord resource, or...?

Thanks for your comments!

Skipping to the end of dialogs will definitely be a feature.

Currently I am storing the dialog for each NPC in a JSON file, with a list of sentences (not words) and an associated language string. I wanted to keep the dialog in an easy to write and modify format so that its easy to add dialog and easy to eventually localize it.

I then have a language parser system that will split the dialog strings into tokens and check the language manager system to see if the player knows the word in the given language. The language manager has lists of known words for each language. If not the word is replaced with the obfuscation characters and then built back into the full sentence. Then its pushed out to get displayed and animated.

Other than the language learning mechanic, the dialog is quite static right now, there is no branching or anything like that. This will evolve over time though as more content and more complicated quests and dialog get added to the game.

Thanks for the explanation! I'm not very skilled with using multiple languages for one task, but I am genuinely interested in using JSON! So far I've used it only for saving data in Godot games.

Good luck with the project! As I said, I would love to see it grow.

itch.io on Twitteritch.io on Facebook
AboutFAQBlogContact us
Copyright © 2025 itch corp ·Directory ·Terms ·Privacy ·Cookies

[8]ページ先頭

©2009-2025 Movatter.jp