Messages are text that pop up from entering a trigger box such as the Billboard in Bargainburg, or the Stones in Bugstalk.
Dealing with a message
Adding a message has not been yet implemented inside Worldsmith. If you’d like to add a message, consider looking out the Steps (without Worldsmith).
Adding a message
Navigate to the Screens page.
Right-click onto the canvas on the left side of your screen (where you have your level preview) and select Add on screen…, then NPCs and text, then Message.
Once clicked, a prompt will ask you a few details about your message. You will need to select which font style, text alignment and the message contents you want to display.
Once done setting it up, click Add. Your message should appear on your preview or on your right sidebar.
Editing, moving or removing a message
Navigate to the Screens page.
Using the Go to screen… button or the up-down arrows, move to the screen you have the weather you want to change/get rid of.
From the right side of the page, expand the Messages tab. Here you should find all your messages.
Click on a message or, using the left side of the page (preview), click on the message’s hitbox to easily find the message you are looking for!
Modify your message’s font, text direction, quotes at your will. Click on the yellow button with an arrow to move the message to another screen. Click the red button with the trash bin to delete the message completely.
Message’s position, text position and text anchoring have not been yet implemented inside Worldsmith. If you’d like to modify them, consider looking out the Steps (without Worldsmith).
Steps (without Worldsmith)
Add a message
Copy the following snippet:
<?xml version="1.0"?><RattmanSettingsxmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:xsd="http://www.w3.org/2001/XMLSchema"><screen>YOUR_MESSAGE_SCREEN</screen><hitbox_center><X>1</X><!-- 0: trigger alignment on the right 1: trigger alignment on the left --><Y>1</Y><!-- 0: trigger alignment on the bottom 1: trigger alignment on the up --></hitbox_center><hitbox><X>YOUR_HITBOX_ON_X_AXIS</X><Y>YOUR_HITBOX_ON_Y_AXIS</Y><Width>YOUR_HITBOX_WIDTH</Width><Height>YOUR_HITBOX_HEIGHT</Height></hitbox><font>Default</font><text_anchor><X>YOUR_TEXT_START_X_POSITION</X><Y>YOUR_TEXT_START_Y_POSITION</Y></text_anchor><bubble_format><direction>YOUR_TEXT_BUBBLE_ALIGNMENT</direction><!-- alignment text --><anchor><X>YOUR_TEXT_BUBBLE_ANCHOR_X</X><Y>YOUR_TEXT_BUBBLE_ANCHOR_Y</Y></anchor><width>YOUR_TEXT_BUBBLE_WIDTH</width></bubble_format><text><lines><!-- your lines here --><string>This is a short string.</string><string>This could be a long string which could be somewhat long to show.</string></lines></text></RattmanSettings>
Setting the screen
Replace YOUR_MESSAGE_SCREEN with your screen number. This will set so the message is available to the screen given.
Setting the hitbox
The hitbox is needed to trigger the message to show up.
Inside the hitbox tag, you will see 4 tags with their respetive values:
Tag name
Value
X
YOUR_HITBOX_ON_X_AXIS
Y
YOUR_HITBOX_ON_Y_AXIS
Width
YOUR_HITBOX_WIDTH
Height
YOUR_HITBOX_HEIGHT
Replace the X and Y values with relative values of your screen.
You can easily see the values in the build mode by changing it from Absolute to Relative from the Pause Menu. Also thanks to the “Hitbox first” toggle in the build mode, you can easily see where the hitbox is, and fix it with ease.
Replace the Width and Height values with the size wanted.
By default, your item will start from the X and Y values given and expand right and down. If you want your item to be centered, change both hitbox_center’s X and Y to 0.5, or if you want it to start from the right, change it to 0. If this sounds confusing, test it in-game!
Setting a different font (optional)
You can also change the font if you would like.
If you search for the font tag, you can see it has a Default value.
Check all the available values for the font in the OldManFont’s API.
Setting the text anchor
The text anchor is the starting point for your speech bubble. Inside the text_anchor, you have 2 tags:
Tag name
Value
X
YOUR_TEXT_START_X_POSITION
Y
YOUR_TEXT_START_Y_POSITION
Replace the X and Y values with relative values of your screen.
Setting the bubble format
The bubble format can help you format text the way you want it; by aligning it differently, setting the anchor for your text and deciding the maximum width of your message’s speech.
Inside the bubble_format, you have 4 tags:
Tag name
Value
direction
YOUR_TEXT_BUBBLE_ALIGNMENT
X
YOUR_TEXT_BUBBLE_ANCHOR_X
Y
YOUR_TEXT_BUBBLE_ANCHOR_Y
width
YOUR_TEXT_BUBBLE_ANCHOR_WIDTH
Replace YOUR_TEXT_BUBBLE_ALIGNMENT with either Left or Right depending where you want the text to align.
Replace YOUR_TEXT_BUBBLE_ANCHOR_X and YOUR_TEXT_BUBBLE_ANCHOR_X values with their respective values.
Replace YOUR_TEXT_BUBBLE_ANCHOR_WIDTH with your speech maximum width.
Setting the text
Depending by your speech bubble width, the text might get very long. So don’t forget to cut them in more strings.
Just like the example above, here’s how you can avoid long texts while maintaining the content the same:
<text><lines><string>This is a short string.</string><!-- <string>This could be a long string which could be somewhat long to show.</string> --><string>This could be a long string,</string><string>which could be somewhat long to show.</string></lines></text>
So if you want to add more text, simply add a new line with:
<string>My new text!</string>
Once done…
Save your file by naming it properly so you can always retroactively tell which message is.