read_block
Extract a specific block from a script file by providing a file path and nested key path, retrieving only the needed data instead of the whole file.
Instructions
Read one block out of a script file instead of the whole thing.
file: path relative to the game/mod script root, e.g. 'common/religions/00_religion.txt'. key_path: keys to walk into, e.g. ['catholic'] or ['my_event', 'trigger']. source: 'vanilla' or a mod directory name, when the same path exists in both.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| source | No | ||
| key_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||