Category: Get*Val
Since engine version: 5.1 OC
var wdt = GetID()->GetDefCoreVal("Width", "DefCore");
Log(" A tools workshop requires the following material:"); for(var i = 0;; i++) { var id = GetDefCoreVal("Components", "DefCore", ToolsWorkshop, i*2); if(!id) break; var cnt = GetDefCoreVal("Components", "DefCore", ToolsWorkshop, i*2+1); Log("%d x %s", cnt, id->GetName()); }
nil
which means the end of the list.