Back to search
PatternGold tierData

DataTable driven item database: read stats from table

Updated 3mo ago2 look-ups
UE 5.3UE 5.4UE 5.5UE 5.6UE 5.7#datatable#item#stats#database#driven#row

Reference

SETUP: 1. Create struct FItemData: {Name(Name), Damage(float), Icon(Texture2D), Description(Text)}. 2. Create DataTable with row type FItemData. Add rows (Sword, Bow, Staff...).

READ: GetDataTableRow(Table=DT_Items, RowName='Sword') → Row Found exec → BreakFItemData(OutRow) → use Damage, Name, etc.

DYNAMIC READ (from variable): SetVariable(CurrentItemName='Bow') → GetDataTableRow(RowName=CurrentItemName) → same flow.

LIST ALL: GetDataTableRowNames → ForEachLoop → GetDataTableRow per name → display.

Key: GetDataTableRow exec outs are 'Row Found' and 'Row Not Found' (NOT 'then').