TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ GetChat()

virtual string Terraria.ModLoader.ModNPC.GetChat ( )
inlinevirtual

Allows you to give this NPC a chat message when a player talks to it. By default returns something embarrassing.

Returns

Definition at line 709 of file ModNPC.cs.

710 {
711 return Language.GetTextValue("tModLoader.DefaultTownNPCChat");
712 }
static string GetTextValue(string key)
Retrieves the text value for a specified localization key. The text returned will be for the currentl...
Definition Language.cs:35
Contains methods to access or retrieve localization values. The Localization Guideteaches more about ...
Definition Language.cs:12

References Terraria.Localization.Language.GetTextValue().

+ Here is the call graph for this function: