Exit processing "Input Number" command

Status
Not open for further replies.

KotoYama

Veteran
Veteran
Joined
Apr 20, 2019
Messages
174
Reaction score
13
First Language
Spanish
Primarily Uses
RMMV
There is a monster that is chasing you. In order, to beat the level you'll have to Input a certain number.
What I want to do is to force a Game Over when the monster touches you, even though you're in the middle of inputting the number or reading a message.

What I'll probably need is some kind of script call that imitates\forces "key pressed" command without you actually pressing it.
I tried to use these:

(Input.isTriggered('ok'))
(Input.isRepeated(ok'))
(Input.isPressed('ok'))
(Input.isLongPressed('ok'))

but as I understand those are only for checking if certain keys are pressed.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Don't all events pause when you have a message window or an input window open? How will the monster touch you if they're not moving?
 

KotoYama

Veteran
Veteran
Joined
Apr 20, 2019
Messages
174
Reaction score
13
First Language
Spanish
Primarily Uses
RMMV
Don't all events pause when you have a message window or an input window open? How will the monster touch you if they're not moving?
Nope. All my parallel events work perfectly fine.
I still can change some things (erase pictures, fade-out, display messages) in the middle of it, but I'll still have press Ok to get rid of this Input Number window.
 

KotoYama

Veteran
Veteran
Joined
Apr 20, 2019
Messages
174
Reaction score
13
First Language
Spanish
Primarily Uses
RMMV
So there is no way to do that? :D
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,091
Reaction score
1,508
First Language
EN
Primarily Uses
RMMZ
This seems to work for me in a Script command:
Code:
SceneManager._scene._messageWindow._numberWindow.processOk();
 

KotoYama

Veteran
Veteran
Joined
Apr 20, 2019
Messages
174
Reaction score
13
First Language
Spanish
Primarily Uses
RMMV
This seems to work for me in a Script command:
Code:
SceneManager._scene._messageWindow._numberWindow.processOk();
What command should I use for pressing X/Cancel?

There is an Exit Event Processing Script Call $gameInterpreter._index = $gameInterpreter._list.length;
Could I somehow use it on some particular event?
 
Last edited:

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,091
Reaction score
1,508
First Language
EN
Primarily Uses
RMMZ
How command should I use for pressing X/Cancel?

There is an Exit Event Processing Script Call $gameInterpreter._index = $gameInterpreter._list.length;
Could I somehow use it on some particular event?
I don't believe there is a "cancel" command for number input? What you could do instead is set the number to zero and "click" OK:
Code:
SceneManager._scene._messageWindow._numberWindow._number = 0;
SceneManager._scene._messageWindow._numberWindow.processOk();
There is no such object as $gameInterpreter in the default code: interpreters are bound to the map/battle scenes and individual parallel events. Generally speaking I would not recommend remotely interrupting an interpreter like that. :kaoswt2:

If you're still stuck, it would help to have more details of your situation and what you're trying to achieve. :)
 

KotoYama

Veteran
Veteran
Joined
Apr 20, 2019
Messages
174
Reaction score
13
First Language
Spanish
Primarily Uses
RMMV
There is no such object as $gameInterpreter in the default code: interpreters are bound to the map/battle scenes and individual parallel events. Generally speaking, I would not recommend remotely interrupting an interpreter like that. :kaoswt2:

If you're still stuck, it would help to have more details of your situation and what you're trying to achieve. :)
That's alright. There are more ways to stop an event :) Thank you anyway.
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
[closed]IgnoreMe[/closed]
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,078
Members
137,580
Latest member
Snavi
Top