- Joined
- Jan 3, 2015
- Messages
- 41
- Reaction score
- 6
- First Language
- English
- Primarily Uses
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.
Yeah, I was talking about all button presses.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.
Ha, thanks!By the way, cool avatar.
Well, I said script because I wanted to call a script that ignore button presses in an event with a script call.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.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 guess i'll wait.And unfortunately, autoruns don't actually stop you speeding up text when pressing enter, so technically button presses still work in autoruns.
Now there is! Open the script editor and paste the following code in a new slot above Main:Is there a script that allows you to ignore button presses when called?
I log off for a while, then when I log back in, I nearly jump out of my seat.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!