PinWright
← All areas

Data tables

Project & assets
6 operationsdata_table

Fill in and update Data Table rows to your spec, and check what a table holds.

What it’s for

A Data Table is a spreadsheet-style asset. Every row has the same set of fields and a row name. Ask your assistant to read and change that data, such as loot tables, ability stats, dialogue lines or tuning values, by describing the change. You skip clicking through the Data Table editor.

Your assistant first reads which fields the table has, how many rows there are and what each row holds, so its edits match what is really there. It can add a row, overwrite one or remove one.

It can also switch the whole table to a different row structure. That wipes every existing row, so it only does this on an empty table or when you clearly ask for it. Use it only when you change the table’s fields, not its data.

Things you can ask

See what a table holds before editing

You get the fields and current rows, so you can decide what to change.

exampledata_table
You: What rows are in DT_WeaponStats right now?

DT_WeaponStats uses WeaponStatRow and has two rows: Pistol (12 damage, 0.4 fire rate) and Rifle (30 damage, 0.1 fire rate).

Add a new row

The new row goes in with the values you give. If that row name already exists, your assistant tells you.

exampledata_table
You: Add a Shotgun to DT_WeaponStats: 45 damage, 0.8 fire rate.

Added Shotgun to DT_WeaponStats with 45 damage and a 0.8 fire rate.

Update a row, creating it if needed

Your assistant changes the existing row, or adds it if it is missing.

exampledata_table
You: Set Rifle damage to 34 in DT_WeaponStats, and create the row if it's gone.

Rifle now deals 34 damage. Its fire rate stays at 0.1.