ID:562568
 
(See the best response by Kaiochao.)
Code:
mob
verb
Troll()
var/list/mobs = list()
for(var/mob/M in world)
if(!M.trololol) mobs+= M
var/mob/M = input("Who do you wanna troll")as null|anything in mobs
if(!M) return
else
M<<"You were trolled"


Problem description:
Hello. How can i disable input while I am using it.
I'm not entirely sure but I don't think you can do that. input() is supposed to stop the code until a selection has been made from its list.
Well I am in game that it has this so Im guessing its possible.
Best response
One way is to give the mob a variable, set it to true before the input, and set it to false after. Override all player input and block it if that variable is found to be true.
Can you show it with example please im a bit confused