ID:267997
 
Hi.

Can some one tell me what is wrong with this:

use()
set category="Commands"
var/item1=input("Use what...") in usr.contents
switch(item1)
if("A_stick")
var/item2=input("...with what?") in usr.contents-item1
switch(item2)
if("grass")
usr<<"You use [item1] with [item2].."
del(item1)
del(item2)

i know there should be obj/verb at the top but it took up more space so i removed that bit for here.

use with.dm:9:error:switch:undefined proc
use with.dm:10:error:if:undefined proc
use with.dm:9:error:item2: compile failed (possible infinite cross-reference loop)
use with.dm:11:error:item2: compile failed (possible infinite cross-reference loop)
use with.dm:13:error:item2: compile failed (possible infinite cross-reference loop)

Thanks
Mousie
Everything after the var/item1=... line should be unindented once.
In response to Garthor
Thanks.

Thanks alot :D

Mousie.