ID:150128
 
im making a shop keeper code again my old one got deleted here is what i got so far

mob
Shop
George
contents = newlist(/obj/sword/long_sword)

verb
buy()
set src in oview(2)
var/prompt_title = "Waddya wanna buy?"
var/list = src.contents
var/help_text = "your buying something retard"


i forget how tomake the prompt pop up
DuDE6688 wrote:
im making a shop keeper code again my old one got deleted here is what i got so far

mob
Shop
George
contents = newlist(/obj/sword/long_sword)

verb
buy()
set src in oview(2)
var/prompt_title = "Waddya wanna buy?"
var/list = src.contents
var/help_text = "your buying something retard"


i forget how tomake the prompt pop up
var/whatever = input(src, help_text, prompt_title) in list
In response to Bingis
thanks
In response to Bingis
self explanetory
In response to DuDE6688
It's because you only have one thing in the list, it will automaticly pick that one thing which means no pop-up.