A Hat in Time

A Hat in Time

39 ratings
A Hat in Time Modding: Conversation Tree Formatting
By TheGreatAndPowerfulWeegee
Guide containing information relating to text formatting for in-game dialogues!
   
Award
Favorite
Favorited
Unfavorite
How Formatting Works
All text formatting is done within Conversation nodes of your Conversation Tree. Under the Message property where you type your dialogue text, you can use square brackets ( [ and ] ) to add text modifiers allowing you to specify formatting to your text. A set of these brackets should be used twice: Once before the text you want to modify, and again at the end of the text you want to format. Within the brackets themselves should be the modifier you wish to apply. The second bracket set should begin with / forward slash, which cancels out the specified modifier for the remainder of the dialogue. Using these, you can stack multiple modifiers on top of one another to create more complex formatting. For instance, combining Shake2, Big, Scream and Wave will replicate the same formatting used during Snatcher's laughing fits when you first encounter him.

The following sections show the various modifiers you can use within dialogue.
Text Colors

Hint Color: Green
[hint]<text>[/hint]
Timepiece Text: Blue
[timepiece]<text>[/timepiece]
Name Text: Red
[name]<text>[/name]
Treasure Text: Yellow
[treasure]<text>[/treasure]
In-line Icons
For all icons, simply format as [icon:<name of icon>]

The full list of available icons include:


For buttons, format them instead as [button:<name of button>]

The buttons you can include are as follows:
Reviews
Reviews will only work when the NPC using the conversation has the 'Trigger on Approach' property enabled. The conversation must only feature a single node with the conversation type in the node set to 'Internet'. The formatting of the message is as follows:

needs more beans[br][icon:reviewstar1][icon:reviewstar1][icon:reviewstar1][icon:reviewstar0][icon:reviewstar0]

you can change the endings of the review stars to either 1 or 0 to change the rating of each review.

Uncategorized Effects
Break line
Begin text on the next line before text wrapping
<text>[br]<more text>
Shake
Shake comes in 2 variants
[shake]<text>[/shake]
OR
[shake2]<text>[/shake2]
Wave
[wave]<text>[/wave]
Scream
[scream]<text>[/scream]
Small and Big
Change the font size
[small]<text>[/small]
OR
[big]<text>[/big]
Glitch
[glitch]<text>[/glitch]

Pauses
You can add a brief pause in the conversation using the following:
<text>[wait]<even more text>
OR
<text>[waitlong]<lots of additional text>
2 Comments
Dald22 10 Jan, 2021 @ 11:53am 
ok I was wondering how do I make a npc say one thing and then say a new thing the next time you talk you them
RsOnes 28 Dec, 2020 @ 2:40am 
Oh, thank you!