ID:149682
 
Hmm I can't seem to find whats wrong with this??
Normally this works but for some reason here its not popping up a menu of the list and allowing the input to work.

LJR



verb
Dock()
set src in oview(1)
if(!istype(usr,/mob/pc)) return // NPC Check
var/mob/pc/M = usr
if(M.docking == 0)
M.docking = 1
usr << "You are cleared for docking."
sleep(100)
usr << "Docking complete...Welcome to Home Station!"
var/list/homebase = list("Undock")
var/help_text = "Welcome to homebase what do ?"
var/prompt_title = "Home Base Menu"
var/P = input(help_text, prompt_title) in homebase
if(P == "Undock")
M.docking = 0
return
You only have one item in your list, that will cause it to automaticly pick that item.
In response to Nadrew
Yes, if you only want one item, just add + "Cancel" and have it return.

-Rcet
In response to Nadrew
ah hah! K thanks I'll keep note on that one :)
Of course it being a menu I'll be adding more stuff to it tonight. Thanks.

LJR