Msbt: Difference between revisions
→Text Commands
imported>Argo |
imported>Argo |
||
Line 287: | Line 287: | ||
|} | |} | ||
== Text Commands == | |||
{{expand section}} | {{expand section}} | ||
Some string include interpolation operators or commands within the strings. These commands tell the game to behave in a certain way while displaying the string. Commands include choices, selling items, buying items and interacting with objects. | Some string include interpolation operators or commands within the strings. These commands tell the game to behave in a certain way while displaying the string. Commands include choices, selling items, buying items and interacting with objects. | ||
Line 324: | Line 324: | ||
<code>[00 0A] [00 02] [00 03] [00 04] [00 05] [02 03]</code> | <code>[00 0A] [00 02] [00 03] [00 04] [00 05] [02 03]</code> | ||
=== Commands === | |||
The commands are not fully understood at this time, but below is a list of the known command identifiers and variable counts. | The commands are not fully understood at this time, but below is a list of the known command identifiers and variable counts. | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 332: | Line 333: | ||
| 0 | | 0 | ||
| 3 | | 3 | ||
|Modify text. Followed by modifiers. | |Modify text. Followed by modifiers. (Text Modifiers) | ||
|- | |- | ||
| 1 | | 1 | ||
Line 354: | Line 355: | ||
| Seem to always end with a line-feed character <code>00 0A</code> | | Seem to always end with a line-feed character <code>00 0A</code> | ||
|} | |} | ||
=== Text Modifiers === | |||
The Modify text or 0 command can have up to 3 shorts after it. The shorts follow in this order <code>Font</code> <code>Color Modifier</code> <code>Color</code>. | |||
'''Note:''' These 5 colors appear to be the only choices availible <ref>https://github.com/Argo-SC/BOTW-re-notes/blob/master/MSBT/Colour_Test.txt</ref> | |||
Below are the known Hex codes for the shorts. | |||
{| class="wikitable" | {| class="wikitable" | ||
!Type | !Type | ||
!Hex | |||
!Notes | !Notes | ||
|- | |- | ||
| | |Font | ||
|Font | |<code>00 03</code> | ||
| | |English font which allows color changing. | ||
| | |- | ||
|Font | |||
|<code>00 01</code> | |||
|Hylian Font. Does not allow color changes. | |||
|- | |||
|Color Modifier | |||
|<code>00 02</code> | |||
|Allows changes in color | |||
|- | |||
|Color | |||
|<code>00 00</code> | |||
|Red | |||
|- | |||
|Color | |||
|<code>00 01</code> | |||
|Green | |||
|- | |||
|Color | |||
|<code>00 02</code> | |||
|Blue | |||
|- | |||
|Color | |||
|<code>00 03</code> | |||
|Gray | |||
|- | |||
|Color | |||
|<code>00 05</code> | |||
|Orange | |||
|- | |- | ||
|} | |} |