table_rows
Writes a table of new rows for one the game merges from every file of its prefix (apr_base and apr_*, the appearances): each row copied from a row of table by its ID, with cells changed. A new ID already in the merged table, the game’s, its DLC’s or another mod’s, is refused. Answers the file written; put it beside what uses the rows.
Arguments
| Name | Type | Required | What |
|---|---|---|---|
table | string | yes | The game’s table to copy rows from, “apr_base”: its columns are the new file’s. |
rows | array | yes | Each {“copy”: the ID of a row to copy, “set”: {column: value}}; set ID to a new one. |
name | string | yes | The file’s name, the table’s prefix and yours: “apr_mymod”. |
to | string | yes | The folder to write into, a full path; made if missing. Never inside the game’s folder. |
Call it as table_rows over MCP, or from a shell as ghilana.exe --call table_rows '<arguments as JSON>'.