Page 1 of 1

lua - result - results - construction

Posted: Tue Jun 21, 2016 6:59 pm
by YuokiTani
a lua-construction like
results = { {type="item", name="y-boiler-iv", amount=1,}, {type="item", name="y_rwtechsign", amount=2,}, },
will remove ingame recipe description box/line and entity-stats

results = { {type="item", name="y-boiler-iv", amount=1,}, },
show the ingame recipe-description and entity-stats

i understand this, because the game needs to decide which stats from these 2 items/entitys to show ...
maybe it's possible to refer only to the first item and take from this the entity-name as recipe-name and more importend the stats.

Re: lua - result - results - construction

Posted: Tue Jun 21, 2016 8:03 pm
by Arch666Angel
I think if you don't set the main_product it always shows the recipes description and name. If you set main_product it will show the name and description of said item.

Re: lua - result - results - construction

Posted: Wed Jun 22, 2016 9:50 am
by bobingabout
Yeah, basically...

result= will use the item on result's name.
results= will use the recipe's name.
results= with main_product= will use the name of the item on main_product.

Re: lua - result - results - construction

Posted: Wed Jun 22, 2016 9:05 pm
by YuokiTani
looks like working now ...

so done !