Difference between revisions of "Talk To Component"
DeamonHunter (Talk | contribs) (Initial commit.) |
DeamonHunter (Talk | contribs) (Update Page.) |
||
Line 22: | Line 22: | ||
</pre> | </pre> | ||
− | The first property is the [[Villager NPCs#"name"|Villager's name]] that you want the player to talk to. The second property, "translationString" is the translation string for the achievement description. | + | The first property is the [[Villager NPCs#"name"|Villager's name]] that you want the player to talk to. The second property, [[#"translationString"]] is the translation string for the achievement description. |
With that this component is done. | With that this component is done. | ||
Line 36: | Line 36: | ||
== "npc" == | == "npc" == | ||
− | '''Valid options (String): <code>A string that points to a certain [[Villager NPCs#"name"|Villager's name]].</code>''' | + | '''Valid options ([[Modding_Key_Terms#String|String]]): <code>A string that points to a certain [[Villager NPCs#"name"|Villager's name]].</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 45: | Line 45: | ||
== "translationString" == | == "translationString" == | ||
− | '''Valid options (String): <code>A string that contains a unique [[Translations|Translation Code]].</code>''' | + | '''Valid options ([[Modding_Key_Terms#String|String]]): <code>A string that contains a unique [[Translations|Translation Code]].</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. |
Latest revision as of 06:10, 14 December 2017
Category:Component Modding are all optional properties that can be added to any file. Components are useful in extending the original files with even more information, such as the cost of the item or whether the block can be broken by a weapon.
On this page, we go over the Talk To component, signified by the following;
"talkTo": { =Content= }
Talk To components are one of the components that are related to Achievements. This component is for making the player talk to an npc. This is mainly used as a way to point players to finding more information about the game and to help direct them.
When and How to use
Talk To components are used whenever you want an Achievement that tracks who you have talked to since activating the achievement.
To start off with first, you should create an Achievement. Once that is done, you can add the following below the last property of the file;
"talkTo" : { "npc" : "FarmFan", "translationString" : "staxel.achievements.talkFarmFanOverlay" }
The first property is the Villager's name that you want the player to talk to. The second property, #"translationString" is the translation string for the achievement description.
With that this component is done.
Config Options
All config options must be inside the body of;
"talkTo": { =Config Here= }
"npc"
Valid options (String): A string that points to a certain Villager's name.
Default Value: No default value is specified. Always need to provide your own.
This is the villager that the player must talk to.
"translationString"
Valid options (String): A string that contains a unique Translation Code.
Default Value: No default value is specified. Always need to provide your own.
This is the translation code to the description of the achievement.