LMS > Overview > Flow Chart (MSBF)
This file is identified by the magic number MsgFlwBn
. The format holds flowcharts.
This section holds all the nodes.
Actions defined within the FLW3 Section are done via nodes.
Offset | Size | Description |
0x0 | 1 | Node type |
0x1 | 1 | Subtype |
0x2 | 2 | Reserved |
0x4 | 2 | Subtype value |
0x6 | 10 | Node specifc data |
Value | Type | Description |
1 | Message | Prompts a message from a MSBT. |
2 | Branch | Branches into different nodes based on a condition. |
3 | Event | Pompts an action or event. |
4 | Entry | Node that acts as a starting point. |
5 | Jump | Jumps to a different node. |
Implementations of type specifc data vary between game. These types are only valid for Branch and Event nodes.
Value | Description |
0 | Unknown |
1 | Unknown |
2 | Unknown |
3 | Unknown |
4 | Unknown |
5 | Offset from start of block to string in string table. Specific to Event and Branch nodes. |
6 | Unknown |
Offset | Size | Description |
0x0 | 2 | Unused |
0x2 | 2 | Next node index |
0x4 | 2 | MSBT file index |
0x6 | 2 | TXT2 message index |
0x8 | 2 | Unused |
Offset | Size | Description |
0x0 | 2 | Short 1 |
0x2 | 2 | 0xFFFF (always as next node index) |
0x4 | 2 | Short 3 |
0x6 | 2 | Branch table case count |
0x8 | 2 | Starting index into the branch table |
Short data is specifc to the game and subtype of the node.
Offset | Size | Description |
0x0 | 2 | Short 1 |
0x2 | 2 | Next node index |
0x4 | 2 | Short 3 |
0x6 | 2 | Short 4 |
0x8 | 2 | Short 5 |
Short data is specifc to the game and subtype of the node.
Offset | Size | Description |
0x0 | 2 | Unused |
0x2 | 2 | Next node index |
0x4 | 2 | Unused |
0x6 | 2 | Unused |
0x8 | 2 | Unused |
Offset | Size | Description |
0x0 | 2 | Unused |
0x2 | 2 | Next node index |
0x4 | 2 | Unused |
0x6 | 2 | Unused |
0x8 | 2 | Unused |
0xFFFF marks the end of a flowchart for any node that isn't a branch node.
Nodes that are branch will jump to a specifc case based on a condition.
Offset | Size | Description |
0x0 | | List of node IDs |
Offset | Size | Description |
0x0 | | List of null-terminated strings. |
This block contains the flowchart labels. The index of a flowchart is the location of its entry node.