Page 1 of 1

Probabilty results

Posted: Wed May 11, 2016 6:01 pm
by Lutra
on the 0.12.30 API page (http://lua-api.factorio.com/), recipe results can be listed as:

Code: Select all

result =  {{type="item",name="custom-item", probability=0.5, amount_min=1, amount_max=5}}
However, when i use

Code: Select all

result = {{type = "item", name="plant-cell", probability=0.75, amount_min=1, amount_max = 10}}
i get an error at runtime saying (recipe): 'result not defined correctly'

WHYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY

Re: Probabilty results

Posted: Wed May 11, 2016 6:06 pm
by prg
"results", not "result".

Re: Probabilty results

Posted: Wed May 11, 2016 6:09 pm
by Lutra
:oops: ah. damn. thanks for that :D