ID:161250
 
i've fixed my pop-up bug problem but now when the pop-up menu shows up instead of listing the things in his battle options it lists /list
Show the code ?
In response to Subzero1
var/list/L = src.majick_options
if(L.len)
var/battle/battleskill/I = input(src, "Pick a skill to use","Skill") in L + "Back"
if(I=="Back")
Engage(src, M)
else
var/path = I.skillpath
call(src,path)(M)
In response to Choka
i dont know why variable is far back it isnt like that in the real dm
In response to Choka
var/list/L = new()
L.Add(src.majick_options)
var/P = "Back"
L.Add(P)
if(L.len)
var/battle/battleskill/I = input(src, "Pick a skill to use","Skill") in L
if(P)
Engage(src, M)
L.Remove(P)
else
var/path = I.skillpath
call(src,path)(M)
L.Remove(P)


Since you screwed up when pasting, it looks screwed up here too.[EDIT]: Never mind, I fixed it.

:P I'm sure there is a better way of doing this, so if you think you can help him more than I can, feel free to do so.