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.
Value Type Description
1 Message Prompts a message from a MSBT file
2 Branch Branches to a different node depending on a specific condition
3 Event Executes a specific action or game event
4 Entry Node that acts as a starting point for a flowchart
5 Jump Jumps to a different flowchart
Parameter types dictate how parameter values may be passed into the node if it takes arguments. There may be more than one value passed into a node.
Value Description
0 Int32 value
1 Pair of Int16 values
2 Int16 value + pair of Int8 values
3 Pair of Int8 + Int16 value
4 Int8 Array
5 String value. Stored as an offset from start of block to the string in the string table
6 Int32 value
Offset Size Description
0x0 2 Next node index
0x2 2 MSBT file index
0x4 2 Message index into TXT2
0x6 2 Unused
Offset Size Description
0x0 2 0xFFFF
0x2 2 Node Identifier
0x4 2 Branch table case count
0x6 2 Starting index into the branch table
Offset Size Description
0x0 2 Next node index
0x2 2 Node identifier
0x4 4 Unused
The node identifier allows a game to link the node to a specific action or condition.
Offset Size Description
0x0 2 Next node index
0x2 6 Unused
Offset Size Description
0x0 2 Flowchart index
0x2 6 Unused
The next node index when marked as 0xFFFF
is the end of a flowchart unless it is a branch node. The next node for a jump node must refer to the index of the entry node for another flowchart.
Nodes that are branch will jump to a specifc case based on a condition. These function like switch statements.
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 .