Crafting script?

I have found almost every other script examples I would need, but have not found any type of crafting script example.

Is there an example of a craft script I might have missed? Just looking for a basic recipe script of if have item1 + item2 then get item3 when you craft.

http://forum.unity3d.com/threads/34015-Newbie-guide-to-Unity-Javascript-(long)

That is a good start. Thanks.