
Security News
CISA Rebuffs Funding Concerns as CVE Foundation Draws Criticism
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.
The easy to use plaintext dialog format.
Sprich (German: speak) is a tool for game developers to easily manage dialogs for NPCs. It features a nice human readable format for creating the dialogs and compiles them to JSON for you to embed in your game.
Put all the .sprich
files you want to compile in one directory and run:
sprich input_directory
or
sprich input_directory output_directory
Which will compile the files and place the resulting JSON - Files in the output directory, or in the input directory, if no output directory was specified.
Each file consists of several states and other statements which are all on their own line. In the following I will describe the intended behaviour for all statements, in your game however you can exploit them as you wish.
Consult the folder examples
for a few examples of the syntax in action.
Each state can have several actions followed by several options. If no options are given or no action transitions into a new state the dialog is over.
The default start state in sprich is considered to be named [+]
and other
states can be named by a mix of letters, numbers and underscores.
The simplest action is a message your character should say:
[+]
"Hello!"
Once all actions in a state have been processed you can show options to your user. They define a text that should be selectable follow by an optional state and a condition. The option should only be selectable/visible if the condition holds true. If no state is given the option ends the dialog.
Conditions are always strings that your game needs to process.
[+]
"Hello! How are you?"
> "Good" [good]
> "Bad" [bad] "mood == 0"
> "I don't want to talk"
You can call any function with parameters seperated by spaces. A function call
is denoted by a \
.
[+]
\think
\feel "happy" 3
"Nice to meet you!"
Instants can be used for intermediate states. They start with a ->
followed by
a state and an optional condition. If no condition is given the instant will be
acted out immediately. This can be useful for checking conditions at the start
of a dialog.
[+]
-> [grumpy] "weather == bad"
-> [happy]
FAQs
A compiler for interactive dialogs.
We found that sprich demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.
Product
We’re excited to announce a powerful new capability in Socket: historical data and enhanced analytics.
Product
Module Reachability filters out unreachable CVEs so you can focus on vulnerabilities that actually matter to your application.