Ignore button press

Is there a script that allows you to ignore button presses when called?
It actually depends on what button/functions you need ignored.  Why don't you tell us a little more about what you want to do?

By the way, cool avatar.
In a similar vein, I'm actually looking for a script that ignores -all- button presses until called up again. Essentially, to stop people pressing enter on text as events are timed up against the text. I would imagine he is looking for something similar.
It actually depends on what button/functions you need ignored.  Why don't you tell us a little more about what you want to do?

By the way, cool avatar.
In a similar vein, I'm actually looking for a script that ignores -all- button presses until called up again. Essentially, to stop people pressing enter on text as events are timed up against the text. I would imagine he is looking for something similar.
Yeah, I was talking about all button presses.

By the way, cool avatar.
Ha, thanks!
to ignore all button presses is simply - make an autorun, that's what they do automatically: Ignore all player input until their commands are completed.


It's the selective ignore that's the problem, if only some inputs are to be ignored - and to solve that we need more info.


Edit:


Always remember: if all button presses are ignored, the game will basically be either frozen or in a cutscene
to ignore all button presses is simply - make an autorun, that's what they do automatically: Ignore all player input until their commands are completed.

It's the selective ignore that's the problem, if only some inputs are to be ignored - and to solve that we need more info.

Edit:

Always remember: if all button presses are ignored, the game will basically be either frozen or in a cutscene
Well, I said script because I wanted to call a script that ignore button presses in an event with a script call.

The event is in the common events section of the database, and I only want to ignore button presses for a small amount of time, not the whole event.
to ignore all button presses is simply - make an autorun, that's what they do automatically: Ignore all player input until their commands are completed.

It's the selective ignore that's the problem, if only some inputs are to be ignored - and to solve that we need more info.

Edit:

Always remember: if all button presses are ignored, the game will basically be either frozen or in a cutscene
And unfortunately, autoruns don't actually stop you speeding up text when pressing enter, so technically button presses still work in autoruns.
And unfortunately, autoruns don't actually stop you speeding up text when pressing enter, so technically button presses still work in autoruns.
Well, i guess i'll wait.
Hello!

Is there a script that allows you to ignore button presses when called?
Now there is! Open the script editor and paste the following code in a new slot above Main:

# Ignore Input.# Version 1.0.0# 03/05/15 - DD/MM/YY# www.rpgmakersource.com# forums.rpgmakersource.com## Use Input.ignore = true/false in a Script Event Command.# Free to use on free or commercial games. Don't remove the original header.class << Input attr_accessor :ignore [:trigger?, 😛ress?, :repeat?, :dir4, :dir8].each { |name| class_eval %Q( alias_method🙂ignore_original_#{name}, :#{name}) def #{name}(*args) @ignore ? #{name[/\d/].nil? ? false : 0} : ignore_original_#{name}(*args) end)} endWhen you want the game to ignore input, add a Script command with the following:

Input.ignore = trueWhen you want the game to work normally again, add a Script command with the following:

Input.ignore = falseCheers!
Hello!

Now there is! Open the script editor and paste the following code in a new slot above Main:

# Ignore Input.# Version 1.0.0# 03/05/15 - DD/MM/YY# www.rpgmakersource.com# forums.rpgmakersource.com## Use Input.ignore = true/false in a Script Event Command.# Free to use on free or commercial games. Don't remove the original header.class << Input attr_accessor :ignore [:trigger?, 😛ress?, :repeat?, :dir4, :dir8].each { |name| class_eval %Q( alias_method🙂ignore_original_#{name}, :#{name}) def #{name}(*args) @ignore ? #{name[/\d/].nil? ? false : 0} : ignore_original_#{name}(*args) end)} endWhen you want the game to ignore input, add a Script command with the following:

Input.ignore = trueWhen you want the game to work normally again, add a Script command with the following:

Input.ignore = falseCheers!
I log off for a while, then when I log back in, I nearly jump out of my seat.

Thank you, very, very much! It works like a charm!

SOLVED! 😀
Marioman13, please do not quote entire posts to answer them, especially not if they are directly above your post.


And to have a topic closed, simply report the topic with the report button and a comment like "close" or so.


This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/ignore-button-press.39612/