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

I just don't know why, but it's funny.
5.gif
Ugh. The one time I forget to save every hour or so is also the day my computer crashes. That's life!
Even though I spent 100's of dollars on my game already. I think I might just have to give it away for free. Since I haven't heard back from people if I could use some of their graphics. Even from a global mod here. Maybe I can make a donation thing.
you know, some days you get resentful that game dev is even considered a "fun job" and other days it's like, welp, time to roll up my sleeves and code these molotov cocktails
If you suck at playing trumpets, that is probably why.

Forum statistics

Threads
115,968
Messages
1,094,499
Members
151,241
Latest member
DarkDarx
Top