if("Token") list.decklist.Add(new /obj/cards/token())
if("Monster Token") usr.decklist.Add(new /obj/cards/tokenmon())
Problem description:
So, I've been squeezing myself against this several days. I' trying to write a deck management system for a friend's game, but I don't seem myself to find the way to do it the way he wants. I offered him to do it like in DuelZ (on which cards go into a verb tab instead of a forsaken variable), but he wants it to have a nifty management window... so here I am.
I've been looking up and down, running throught Dream Maker's articles, code demostrations, the Byond Reference, and the byond guide, which currently show no sample code about list.Add (or, at least, I wasn't smart enough to find them ;w; ).
forms.dm:34:error:usr.decklist.Add:undefined proc forms.dm:33:error:decklist :invalid expression forms.dm:33:list :warning: statement has no effect
Line 34 is the second one shown in the code. I'm using the htmlib by dantom to produce the forms.
Putting up code of just of the line an error points to really isn't giving alot of info.