script call whether the player is getting movement orders

Hey guys,

I need a conditional branch to check if the player is getting input commands to move to a different spot(the person playing tries to make the player move)

Also I did stumble upon this script but i dont know how to use it:
Code:
$gamePlayer.moveByInput()

Thanks in advance!
you need to explain the game situation a bit more. There are several possible solutions, but they depend on the details because they have different advantages and disadvantages.
Would the Button option on page 4 of the condition branch tab work for what you want?
@Andar Well honestly id just like to know as many script calls as possible that could be related to player movement. But more specifically I want a script call that checks if the player is getting the command to move to right, left, or whatever.
Lets say you order the player to move left through a movement route, but left of the player is a wall. Im assuming the game will still know that the player is trying to move left, even though he cant actually move to the left because of that wall. Im basically looking for the script call that tells the game that the player, or an event is supposed to move.

@Jeremiah Eastman that would probably work under normal circumstances, but i also have a dash system that uses a player movement route to move instead of the player using arrows
@Monkey BizNiz
It doesn't work that way - there is no script call that does this, because any script call is a command and not a check.
The passability is basically checked when the engine receives a command to move an object, and that command is rejected if the position is impassable.

The only way to get what you want is to have a plugin rewrite the move sequence to add a function call to whatever you want when the move sequence has been triggered by a key press or a move command or so.
@Monkey BizNiz
It doesn't work that way - there is no script call that does this, because any script call is a command and not a check.
The passability is basically checked when the engine receives a command to move an object, and that command is rejected if the position is impassable.

The only way to get what you want is to have a plugin rewrite the move sequence to add a function call to whatever you want when the move sequence has been triggered by a key press or a move command or so.

So theres no script call for: ''command to move an object''? And, otherwise isnt there something for the setmovement route in event commands? like: if movement command is"move down".

Also i dont really understand that youre saying with that script calls cant be checks, i mean for example isnt: ''$gamePlayer.isJumping()'' a check? since it its either true or false depending on whether the player is jumping or not, youre not actually commanding the player to jump when you use this.
it is a technical difference, that needs some programming knowledge to understand - but it is a true limitation (not only in RM but in all programming languages)
There is of course a script call "move that object now". and (because moving needs time) there is a way to check if an object is currently moving (after the passability was allowed).

But giving a command "move that now" by script call is not the same as detecting that something else (like a key press) gave that command.
And if a passabiliy is blocked, then there is nothing to detect that the player tried to move, because the functions like ismoving or isjumping are commands that return a value based on flags that are set when the move has been approved. If there is no move, then those flags don't exist and the return is simply false, without you being able to see any difference between "no command given" or "command has been blocked by passability".
And those flags only work because the move takes time in the main game loop, if there is a try to move and that move is blocked, that time (and the flags) do not exist.

So the game cannot remember that the player tried to move and was blocked without the function handling the move and checking the passability placing a signal flag about that somewhere (in which case you would have to decide how long that flag stays, which might cause a lot of timing problems) or calling a function (like reserving a common event) to do something in the very frame the move was blocked (which is what I recommended above). But modifications to existing functions need to be done by plugin.

So in short: you can command a move, but you cannot check if a move command from a different source was aborted, not without implementing such a check by plugin.
Im sorry if you explained this already, im still slowly processing all thats been said, its alot of new stuff to take in. But just to be sure. What im gathering is that the string that results in the player either moving or not would appear to be something like this: ''Gets command to move left> checks if player is allowed to move, or if there is something in the way>moves, or not, depending on previous.''
And if it works somewhat like this, id be looking not to command the player to move left through a script call, but to let a conditional branch respond on whether that command was given or not.
Perhaps - your description is a bit strange. But yes, you need the javascript equivalent of a conditional branch inside the engine where the move commands are handled (to be exact, the branch already exists there and only needs to be expanded with a few more commands).
And because it needs to be inside the engine, it can't be a script call but needs to be a plugin.

Just go to plugin requests, give a full description of what you want and request a plugin for that.
It might be that some plugin already exist, I don't know - but it can't be done without a plugin.
Perhaps - your description is a bit strange. But yes, you need the javascript equivalent of a conditional branch inside the engine where the move commands are handled (to be exact, the branch already exists there and only needs to be expanded with a few more commands).
And because it needs to be inside the engine, it can't be a script call but needs to be a plugin.

Just go to plugin requests, give a full description of what you want and request a plugin for that.
It might be that some plugin already exist, I don't know - but it can't be done without a plugin.
ah ic, thanks for the information.

Too bad it is not possible without plugins. I try to have as few plugins as possible, because i prefer to have as much control over my game as possible without all these plugins running in it that i dont understand. Ill just have to tune up my scripting knowledge first, and then come back to this later.
I believe I can probably find some way to work around this anyway. I am currently using ''isMoving'' to check whether the player is hitting an obstacle. But isMoving is only true when the player is in the middle of moving, and every moment youre in the center of the tile, its false again for a slight moment; which caused me some issues that were kinda solved by putting a little wait there to skip that tiny moment when it would turn off, but it did still cause the player to "crash" into thin air at some rare times.

Original thread: https://forums.rpgmakerweb.com/threads/script-call-whether-the-player-is-getting-movement-orders.81796/