mob
verb
PlayCard(var/obj/Cards/C in usr.trunk)
new C(locate(usr.x-2,usr.y+1,usr.z))
trunk.Remove(C)
Problem description:
I tried to make it so it would play any type of card that you have in your trunk, not just /obj/Cards/Test.
Now I get this runtime error when I try to play a card:
runtime error: Cannot create objects of type /obj/Cards/Test2.
proc name: PlayCard (/mob/verb/PlayCard)
usr: Dead_Demon (/mob/Player)
src: Dead_Demon (/mob/Player)
call stack:
Dead_Demon (/mob/Player): PlayCard(Dark Monster (/obj/Cards/Test2))
Lummox JR