Stopping actor movement during while Window_Command is visible

Occupant

Hypothetical
Member
Joined
Dec 4, 2017
Messages
15
Reaction score
9
First Language
English
Primarily Uses
RMMV
Hello all,

I have a plugin script that displays a Window_Command via a plugin command.

My question is how do I turn off actor movement while the Window_Command is displayed? By "actor movement", I'm referring to mouse clicks and arrow keys. I want those inputs to navigate the command window instead of move the actor. But by default both are happening.

Obviously the built-in "Show Choices" version of the Window_Command does this, but I'm having a hard time finding the properties to set on the scene/window to make it happen with my own Window_Command.

Thanks for any help!
Occupant
 

Occupant

Hypothetical
Member
Joined
Dec 4, 2017
Messages
15
Reaction score
9
First Language
English
Primarily Uses
RMMV
Ah, of course I found the answer right after posting this question.

The issue seems to be surrounding the "Game_Message" state variable. Showing a custom window doesn't configure the $gameMessage at all, which is responsible for reporting an "is busy" status to the actor .canMove() check.

This makes it a little tricky when you want to drastically change the behavior of the choice list. I'm not sure if it would be easier to override the canMove check to include an "is busy" query to my own window, or if it would be easier to try and make the built-in game message choices behave the way I want.

I'm leaning toward the former, but am open to suggestions!
 
Last edited:

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

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,986
Members
137,561
Latest member
visploo100
Top