Talk To Component

From wiki
Revision as of 06:10, 14 December 2017 by DeamonHunter (Talk | contribs) (Update Page.)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.