obj
cfb
icon='ICONS.dmi'
icon_state="CFB"
name="Chocolate Frog Box"
verb/Open()
pick()
prob(10)
var/obj/T=new/obj/WC(usr)
T.name="Morganna"
usr<<"You open the box and find the Morganna card!"
prob(20)
var/obj/T=new/obj/WC(usr)
T.name="Dumbledore"
usr<<"You open the box and find the Dumbledore card!"
Problem description:I don't know how to make this work randomly. It says proc definition not allowed inside another proc every time I compile it.