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

1638170340913.png
Crossover Inn is getting very crowded, and I love it
Climbing to the top #mapping
1638160732198.png
I've started the first steps of the final few maps that I need to make for B:ms. I haven't been able to say that in a really, really long time. It'd probably be a good idea to blog about this or something.
Question for the Mods: What am I supposed to do when I can't make a synopsis 350 words long? (for project recruitment thread) @Shaz @mlogan
The game is meant to be more on the simple side in order to be achievable so I'm a bit stuck...

Forum statistics

Threads
117,043
Messages
1,104,083
Members
152,991
Latest member
packerus
Top