ID:143130
 
Code:
mob/verb/DRAW(mob/M in view(src,2))
var/list/DRAWMAGIC=newlist()
for(var/battle/A in M.Magic)
if(A in src.Magic)
DRAWMAGIC.Add(A)
else
var/battle/Magic/N=new()
N.name="????"
N.name2=A.name
N.magictype=A:magictype
DRAWMAGIC.Add(N)
spawn()
var/choice=input(src,"What magic?","Draw") in DRAWMAGIC


Problem description:
Well, I know it's adding the magic to the list accordingly under both If circumstances, i've checked that already, The only thing it ISENT doing, is displaying the choice display, and i dont know why it wont display it, can somebody shed some light?

SoraKu wrote:
> mob/verb/DRAW(mob/M in view(src,2))
> var/list/DRAWMAGIC=newlist()//Look up newlist(). It creates a list of newly created objects, which is unnecessary in this case.
> for(var/battle/A in M.Magic)
> if(A in src.Magic)
> DRAWMAGIC.Add(A)
> else
> var/battle/Magic/N=new()//Hmm..
> N.name="????" //What
> N.name2=A.name //could
> N.magictype=A:magictype //this
> DRAWMAGIC.Add(N) //be?
> spawn()//Useless.
> var/choice=input(src,"What magic?","Draw") in DRAWMAGIC
//I'm assuming you have more stuff under here.
>