(See the best response by Kozuma3.)
When using input or alert boxes that are triggered by a player, what is the most efficient way to ensure that they can't accidentally or intentionally spam open a bunch of windows.
Problem description:

Best response
if(using_input){return FALSE}
using_input = TRUE
var io = input(src) as text
world << io
using_input = FALSE

mob/var/tmp/using_input = FALSE
Is there really an issue if they do? The server will track the open prompts but that's unlikely to cause problems, and I would expect it'd cause an issue for the client long before that.

Anyway you're way better off not using alert() and input(). Modern UIs really don't need it and there are better ways to handle this.

Login to reply.