localitemok,itemtype,itemsubtype=showItemPrompt('What item do you want?',function(itype)returndf.item_type[itype]~='CORPSE'anddf.item_type[itype]~='FOOD'end,true)
ifnotitemokthenreturnend
ifnotargs.notRestrictivethen
matFilter=getMatFilter(itemtype)
end
ifnotusesCreature(itemtype)then
matok,mattype,matindex=showMaterialPrompt('Wish','And what material should it be made of?',matFilter)
ifnotmatokthenreturnend
else
localcreatureok,useless,creatureTable=script.showListPrompt('Wish','What creature should it be?',COLOR_LIGHTGREEN,getCreatureList())