ID:178268
 
My code is used along with another proc but it is this one with problems
everything in this works except the line usr.test = input("hmm","hmm")in list("1","2"). the problem as far as I can tell is it doesn't ever get past this I don't know why but who knows

mob/monster/proc/fight(var/mob/src, var/mob/usr)
world<<"[usr], [src]-[src.inbattle]"
if(src.inbattle == 0)
world<<"starting"
usr.test = input("hmm","hmm")in list("1","2")
usr.zr = usr.z
usr.yr = usr.y
usr.xr = usr.x
if(src.number == 1)
src.loc = locate(4,5,4)
src.inbattle = 1
usr.loc = locate(4,3,4)
usr.inbattle = 1
You're probably sending the input to the monsters, not the player. Try adding a usr to the input proc to tell it who to send to, like this:

<code>mob.test = input(usr,"blahblah")</code>
In response to Foomer
can I make that ("usr","blahblahblah")in list("blah","blah")?