mob
var
rank
New()
rank = rand(1,6)
Login()
..()
var/turfCol = 0
for(var/mob/m in world)
var/obj/clicker/o = new
o.icon = m.icon
o.name = "[m.name] ([m.rank])"
src << output(o, "Lobby.grid1:1, [++ turfCol]")
obj/clicker/Click()
for(var/mob/M in world)
if(M.name == src.name)
var/Challenge = input(M, "Do you want to play as a critter?", null, "no") in list("yes", "no")
switch(Challenge)
if("yes")
//Challenge Proc
if("no")
usr << "[M] has declined your challenge."
Problem description:
Ok. I click on the person name but it doesn't show the input screen. Any idea what i'm doing wrong here?
You may be better off defining a new variable of type /mob to obj/Clicker named owner or something and then assigning the mob to it on Login(). This will allow you to also bypass the need for a for() loop and the first if() statement (just use the new owner variable in place of M).