Difference between revisions of "Dialogue Pools"
DeamonHunter (Talk | contribs) m (→"type": Formatting broke cause two spaces.) |
DeamonHunter (Talk | contribs) (Updates.) |
||
Line 20: | Line 20: | ||
= Config Options = | = Config Options = | ||
== "code" == | == "code" == | ||
− | '''Valid options (String): <code>A unique string which dialogue pool this object is.</code>''' | + | '''Valid options ([[Modding_Key_Terms#String|String]]): <code>A unique string which dialogue pool this object is.</code>''' |
'''Default Value:''' No default value is specified. Always need to provide your own. | '''Default Value:''' No default value is specified. Always need to provide your own. | ||
Line 28: | Line 28: | ||
== "dialogue" == | == "dialogue" == | ||
− | '''Valid options (List of | + | '''Valid options ([[Modding_Key_Terms#List|List]] of [[Modding_Key_Terms#String|Strings]]): <code>A list of strings which point to a [[Dialogue]] code each.</code>''' |
− | '''Default Value:''' | + | '''Default Value:''' If not specified, no dialogues will get added to this pool. |
Line 36: | Line 36: | ||
== "type" == | == "type" == | ||
− | '''Valid options (String): <code>One of the following options: Greeting, General, Weather, Evening, Morning, Personality, Quest, Theft, Leaving, Job, WorkPlaceMissing, Unemployed, Unique, Festival, TutorialNotCompleted, Seasonal</code>''' | + | '''Valid options ([[Modding_Key_Terms#String|String]]): <code>One of the following options: Greeting, General, Weather, Evening, Morning, Personality, Quest, Theft, Leaving, Job, WorkPlaceMissing, Unemployed, Unique, Festival, TutorialNotCompleted, Seasonal</code>''' |
'''Default Value:''' No default value is specified. Always need to provide your own. | '''Default Value:''' No default value is specified. Always need to provide your own. |
Revision as of 00:39, 16 November 2017
In Staxel, *.dialoguepool files are used to specify a collection of dialogues which are to be played together. These files also contain a type property to describe what type of dialogues are collected.
Creating a *.dialoguepool file
Creating an dialogue pool is fairly easy once you have created a dialogue, due to dialogue pools being more of a collection of other files. The full file looks like;
{ "code" : "mods.modname.dialoguepools.dialoguepoolname", "type" : "Personality", "dialogue" : [ "mods.modname.dialogue.dialoguename" ] }
The property "type" can only contain special values, listed below. Otherwise the rest should be explanatory. Once this is done, you can add it to your Villager Personalities
Config Options
"code"
Valid options (String): A unique string which dialogue pool this object is.
Default Value: No default value is specified. Always need to provide your own.
A string containing the unique identifier of the dialogue pool. Used by Villager Personalities and other similar files.
"dialogue"
Valid options (List of Strings): A list of strings which point to a Dialogue code each.
Default Value: If not specified, no dialogues will get added to this pool.
This is a list of strings that point towards the dialogues which will be selected when this pool is used.
"type"
Valid options (String): One of the following options: Greeting, General, Weather, Evening, Morning, Personality, Quest, Theft, Leaving, Job, WorkPlaceMissing, Unemployed, Unique, Festival, TutorialNotCompleted, Seasonal
Default Value: No default value is specified. Always need to provide your own.
This string chooses the type of dialogue and how the game should handle it. Some sections will require a certain type of dialogue or will crash.