> ashref recip
> ashref ingred
int [item] get_ingredients( item )
> foreach i in $items[]{if(i.food){ foreach j in i.get_ingredients(if(j.inebriety > 0) print(j+" is booze that crafts into "+i+", a food");}}
Unable to invoke foreach
> ash foreach i in $items[]{if(i.food){ foreach j in i.get_ingredients(if(j.inebriety > 0) print(j+" is booze that crafts into "+i+", a food");}}
Invalid field name 'food' ()
Returned: void
> ash foreach i in $items[]{if(i.fullness > 0){ foreach j in i.get_ingredients(if(j.inebriety > 0) print(j+" is booze that crafts into "+i+", a food");}}
Unknown variable 'j' ()
Returned: void
> ash foreach i in $items[]{if(i.fullness > 0){ foreach j in i.get_ingredients{if(j.inebriety > 0) print(j+" is booze that crafts into "+i+", a food");}}
Invalid field name 'get_ingredients' ()
Returned: void
> ash foreach i in $items[]{if(i.fullness > 0){ foreach j in i.get_ingredients(){if(j.inebriety > 0) print(j+" is booze that crafts into "+i+", a food");}}
Expected }, found ; ()
Returned: void
> ash foreach i in $items[]{if(i.fullness > 0){ foreach j in i.get_ingredients(){if(j.inebriety > 0) print(j+" is booze that crafts into "+i+", a food");}}}
McMillicancuddy's Special Lager is booze that crafts into beer basted brat, a food
bottle of vodka is booze that crafts into red drunki-bear, a food
bottle of vodka is booze that crafts into green drunki-bear, a food
bottle of vodka is booze that crafts into yellow drunki-bear, a food
Returned: void
Comments