Goddiga

Veteran
Veteran
Joined
Oct 3, 2015
Messages
61
Reaction score
10
First Language
Thai
Primarily Uses
RMMV
Hello! I've been looking into "Window_Selectable" in "rpg.windows.js" and see that it could be possible for me to do some tricks with a cursor movement by using script call without writing the whole new script.

I managed to invert the cursor movement by swapping the command in "Window_Selectable.prototype.cursorDown" and "Window_Selectable.prototype.cursorUp" with script call. So, I think I can do that to make the cursor moving up or down forever without (but still can) the player's arrow keys input (the confirm and cancel button is still intact). Also, moving the cursor to a specified choice when player trying to move it (e.g. when I pressed the down button, it will go down for a second and go back up to the upper choice.). I just had no idea which "Window_Selectable.prototype.XXXX" I should edit.

If anyone can point me out the hints where the line to make this possible is, please let me know. Thank you very much!
 

Orichalcum+

Veteran
Veteran
Joined
Apr 17, 2015
Messages
72
Reaction score
52
First Language
English
Primarily Uses
You could force the input by changing "Input._currentState.dir" to true.
But Window_Selectable.prototype.processCursorMove is might be what you are looking for.
 

Goddiga

Veteran
Veteran
Joined
Oct 3, 2015
Messages
61
Reaction score
10
First Language
Thai
Primarily Uses
RMMV
You could force the input by changing "Input._currentState.dir" to true.
But Window_Selectable.prototype.processCursorMove is might be what you are looking for.

Thank you! Anyways, how does "Input._currentState.dir" work? Did I just have to use a script call of Input._currentState.dir = true? Would you please provide me more information about how to use it?
 

Orichalcum+

Veteran
Veteran
Joined
Apr 17, 2015
Messages
72
Reaction score
52
First Language
English
Primarily Uses
Sorry for the late response. Replace .dir with the direction you want, to force down as the input you'd write "Input._currentState.down = true" this will force down to be the input untill you set the direction to false or the player presses the down key.
 

Latest Threads

Latest Posts

Latest Profile Posts

 After a few distractions (and my annual rough second week of October), I’m getting back on track with my OMGC project.
 Am I overcomplicating it? Yes. Am I going to tone it down? Almost certainly not.
 At least the dialogue stuff is almost done. I need to do the map itself, and then all that’s left is combat.
 Getting there!
Creating 3D CGs for Cutscenes. :kaosalute:

I keep wanting to post every song I make for the game and have to hold back on that because at this rate, I'll have spoiled all the really good stuff lol..
DerniBorges wrote on TSR's profile.
Is there any way this plugin works with the big character, and the QSprite plugin? Using RTP chars, everything works fine, but the big ones, with QSprite, it's like that in the image, it doesn't reflect right. And there is, in the settings, an option to fix it. Thanks.
bug2.png
Bengawan Solo with fantasy style arrangement. :D

Forum statistics

Threads
115,900
Messages
1,093,816
Members
151,145
Latest member
nylleve
Top