ID:1346011
 
(See the best response by Neimo.)
Code:
    Crafting_Bench
icon='Workbench.dmi'
Click ()
if (usr.vin > 0)

if (usr.stk > 0)

if (usr.stn > 0)
usr.stn= usr.stn -1
usr.vin= usr.vin -1
usr.stk= usr.stk -1
del(Stick in usr.contents)
del(Stone in usr.contents)
del(Vine in usr.contents)

else
alert("You don't have the stuff.")


Var stn,vin, and stk are vars used to count how many of that object are in the characters inventory, Stone being stn, Vine being vin, and Stick being stk. In the code I am attempting to delete the three objects after the verb is initiated. (If the requirements of objects are in the inventory/usr.contents):

Best response
You have to first reference the objects to delete them in your contents.

var/obj/Stick/stick = locate() in usr.contents
if(stick) del(stick)
Thanks, and quite amazing response time.
I think this is how you do it:

    Crafting_Bench
icon='Workbench.dmi'
Click ()
if (usr.vin > 0 && usr.stk>0 && usr.stn>0)
usr.stn= usr.stn -1
usr.vin= usr.vin -1
usr.stk= usr.stk -1
for(var/obj/Stick/S in usr.contents) //use whatever path of the stick you have
del S
for(var/obj/Stone/S in usr.contents)
del S
for(var/obj/Vine/V in usr.contents)
del V

else
alert("You don't have the stuff.")
Keep the objects in a list then delete each object in the list

Crafting_Bench
icon = 'Workbench.dmi'
Click()
if(usr.vin > 0 && usr.stk > 0 && usr.stn > 0)
var/list/sticks = new
for(var/Stick/s in usr)
sticks += s
var/list/stones = new
for(var/Stone/s in usr)
stones += s
var/list/vines = new
for(var/Vine/v in usr)
vines += v

if(sticks.len > 0 && stones.len > 0 && vines.len > 0)

usr.stn -= 1
usr.vin -= 1
usr.stk -= 1

del sticks[1]//delete a stick
del stones[1]//delete a stone
del vines[1]//delete a vine
else
alert("You don't have enough items for this!")
else
alert("You don't have enough items for this!")
In response to TheDarkChakra
That would delete all sticks stones and vines, and it also doesn't check to see if there's a stick, stone, or vine in the inventory in the first place