var/list/Monsters_on_Field = list()
var/Monsters_Played = 0
verb
Summon(obj/Cards/C as obj in usr.Hand)
if(C.Level==5||6)
for(var/obj/Cards/A in usr.Monsters_on_Field)
var/select = input(A, "What would you like to tribute?", "Tribute Monster") in list(usr.Monsters_on_Field)
if(select == "Monster")
usr.Monsters_on_Field -= A
usr.Monsters_Played --
del A
usr.Monsters_on_Field += C
usr.Monsters_Played ++
C.loc = A.loc
Problem description:
What I am trying to do is select a monster on the "field", delete that monster, and summon a monster of a higher level (5 or 6) from the "Hand" (statpanel contents list). For some reason, the input does not show up, and I am getting errors like crazy. Also, the monster does NOT appear on the field from the hand. Can someone help me with this?
If this was english this would be: If C's level is 5, or if 6.
That comma matters on what this is saying. It is pretty much two if statements: if(C.level==5) or if(6). You should probably have if(C.level==(5||6)), at least I'm pretty sure - technically you could just check if the level is level 5 or higher.
Also, you delete A and then try to read it's location. Try saving it's location before you delete into a var like var/a_loc=A.loc so you can call on it but not depend on A to be there.