MV Help with a Mine Cart Mechanic

I'm making a Mine Cart mechanic for a part of my game. I've managed to get the mine cart to move and change direction from inputs from the player. It works great - mostly [a few hiccups I'm working on]. I'm using a combination of on map events and Common Events to run the entire mechanic.

But the problems come from the fact that the player HAS TO input something. If they don't then the mine cart just stops and waits. But whenever I try to add to the mechanic for an input less system, so the player can ignore an input and the minecart will just continue forward, the mechanic breaks the whole thing. Even the mechanic that was working before gets screwed up.

I've exhausted myself on different ways to fix the problem, but nothing has worked. I have videos below showing the input system at work and the input less system at work. I have all the events and their set ups for anyone that might need them as well.

I really hope there are some people out there that can help with this - I'm so frustrated right now. Oh, and I do have on script helping me with this system [just to change the graphics on the intersections - WIP] but the whole thing will be majority evented.



Mine Cart Map.png
Mine Cart #1 - Page 1.png
Mine Cart #1 - Page 2.png
Mine Cart - Common Event Setup.png

Spoiler: Intersection #1 CE
◆Stop SE
◆Play SE:Minecart_2 (35, 100, 0)
◆If:Script:Input.isPressed("right") && $gamePlayer.direction(2) || Input.isPressed("right") && $gamePlayer.direction(8)
◆If:Script:$gamePlayer.direction(2)
◆Plugin Command:SelfVariable Map 77, Event 2, Variable 841 to 1
◆
:Else
◆Plugin Command:SelfVariable Map 77, Event 2, Variable 841 to 2
◆
:End
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 31, 49
: :◇Turn Right
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 42, 49
◆Common Event:Intersection #2-M1
◆
:End
◆If:Script:Input.isPressed("down") && $gamePlayer.direction(2) || Input.isPressed("down") && $gamePlayer.direction(4)
◆Plugin Command:SelfVariable Map 77, Event 2, Variable 841 to 2
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 31, 69
◆Common Event:Intersection #4-M1
◆
:End
◆If:Script:Input.isPressed("up") && $gamePlayer.direction(8) || Input.isPressed("up") && $gamePlayer.direction(4)
◆Plugin Command:SelfVariable Map 77, Event 2, Variable 841 to 1
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 31, 43
◆Control Variables:#0719 Minecart Destination = 6
◆Common Event:Destination-M1
◆
:End
◆If:Script:$gamePlayer.direction(2) || $gamePlayer.direction(8)
◆Plugin Command:SelfVariable Map 77, Event 2, Variable 841 to 1
◆
:End
◆If:Script:$gamePlayer.direction(4) || $gamePlayer.direction(6)
◆Plugin Command:SelfVariable Map 77, Event 2, Variable 841 to 1
◆
:End
◆If:Script:$gamePlayer.direction(2)
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 31, 69
◆Common Event:Intersection #4-M1
◆
:End
◆If:Script:$gamePlayer.direction(4)
◆Plugin Command:SelfVariable Map 77, Event 2, Variable 841 to 1
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 31, 43
◆Control Variables:#0719 Minecart Destination = 6
◆Common Event:Destination-M1
◆
:End
◆If:Script:$gamePlayer.direction(8)
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 31, 43
◆Control Variables:#0719 Minecart Destination = 6
◆Common Event:Destination-M1
◆
:End
Spoiler: Intersection #2 CE
◆Stop SE
◆Play SE:Minecart_2 (35, 100, 0)
◆If:Script:Input.isPressed("up") && $gamePlayer.direction(6) || Input.isPressed("up") && $gamePlayer.direction(8)
◆Plugin Command:SelfVariable Map 77, Event 4, Variable 841 to 1
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 43, 49
: :◇Turn Up
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 58, 43
◆Control Variables:#0719 Minecart Destination = 1
◆Common Event:Destination-M1
◆
:End
◆If:Script:Input.isPressed("down") && $gamePlayer.direction(6) || Input.isPressed("down") && $gamePlayer.direction(2)
◆Plugin Command:SelfVariable Map 77, Event 4, Variable 841 to 2
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 43, 49
: :◇Turn Down
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 43, 69
◆Common Event:Intersection #3-M1
◆
:End
◆If:Script:Input.isPressed("left") && $gamePlayer.direction(8) || Input.isPressed("left") && $gamePlayer.direction(2)
◆If:Script:$gamePlayer.direction(8)
◆Plugin Command:SelfVariable Map 77, Event 4, Variable 841 to 2
◆
:Else
◆Plugin Command:SelfVariable Map 77, Event 4, Variable 841 to 1
◆
:End
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 31, 49
: :◇Turn Left
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 32, 49
◆Common Event:Intersection #1-M1
◆
:End
◆If:Script:$gamePlayer.direction(2) || $gamePlayer.direction(8)
◆Plugin Command:SelfVariable Map 77, Event 4, Variable 841 to 1
◆
:End
◆If:Script:$gamePlayer.direction(4) || $gamePlayer.direction(6)
◆Plugin Command:SelfVariable Map 77, Event 4, Variable 841 to 1
◆
:End
◆If:Script:$gamePlayer.direction(2)
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 43, 69
◆Common Event:Intersection #3-M1
◆
:End
◆If:Script:$gamePlayer.direction(6)
◆Plugin Command:SelfVariable Map 77, Event 4, Variable 841 to 1
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 58, 43
◆Control Variables:#0719 Minecart Destination = 1
◆Common Event:Destination-M1
◆
:End
◆If:Script:$gamePlayer.direction(8)
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 58, 43
◆Control Variables:#0719 Minecart Destination = 1
◆Common Event:Destination-M1
◆
:End
Spoiler: Intersection #3 CE
◆Stop SE
◆Play SE:Minecart_2 (35, 100, 0)
◆If:Script:Input.isPressed("up") && $gamePlayer.direction(6) || Input.isPressed("up") && $gamePlayer.direction(8) || Input.isPressed("up") && $gamePlayer.direction(4)
◆If:Script:$gamePlayer.direction(6)
◆Plugin Command:SelfVariable Map 77, Event 5, Variable 841 to 2
◆
:End
◆If:Script:$gamePlayer.direction(4)
◆Plugin Command:SelfVariable Map 77, Event 5, Variable 841 to 1
◆
:End
◆If:Script:$gamePlayer.direction(8)
◆Plugin Command:SelfVariable Map 77, Event 5, Variable 841 to 1
◆
:End
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 43, 70
: :◇Turn Up
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 43, 50
◆Common Event:Intersection #2-M1
◆
:End
◆If:Script:Input.isPressed("right") && $gamePlayer.direction(2) || Input.isPressed("right") && $gamePlayer.direction(8) || Input.isPressed("right") && $gamePlayer.direction(6)
◆If:Script:$gamePlayer.direction(8)
◆Plugin Command:SelfVariable Map 77, Event 5, Variable 841 to 3
◆
:End
◆If:Script:$gamePlayer.direction(2)
◆Plugin Command:SelfVariable Map 77, Event 5, Variable 841 to 1
◆
:End
◆If:Script:$gamePlayer.direction(6)
◆Plugin Command:SelfVariable Map 77, Event 5, Variable 841 to 5
◆
:End
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 43, 70
: :◇Turn Right
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 54, 70
◆Control Variables:#0719 Minecart Destination = 2
◆Common Event:Destination-M1
◆
:End
◆If:Script:Input.isPressed("down") && $gamePlayer.direction(2) || Input.isPressed("down") && $gamePlayer.direction(4) || Input.isPressed("down") && $gamePlayer.direction(6)
◆If:Script:$gamePlayer.direction(4)
◆Plugin Command:SelfVariable Map 77, Event 5, Variable 841 to 3
◆
:End
◆If:Script:$gamePlayer.direction(2)
◆Plugin Command:SelfVariable Map 77, Event 5, Variable 841 to 1
◆
:End
◆If:Script:$gamePlayer.direction(6)
◆Plugin Command:SelfVariable Map 77, Event 5, Variable 841 to 4
◆
:End
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 43, 70
: :◇Turn Down
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 43, 90
◆Control Variables:#0719 Minecart Destination = 3
◆Common Event:Destination-M1
◆
:End
◆If:Script:Input.isPressed("left") && $gamePlayer.direction(4) || Input.isPressed("left") && $gamePlayer.direction(8) || Input.isPressed("left") && $gamePlayer.direction(2)
◆If:Script:$gamePlayer.direction(4)
◆Plugin Command:SelfVariable Map 77, Event 5, Variable 841 to 5
◆
:End
◆If:Script:$gamePlayer.direction(2)
◆Plugin Command:SelfVariable Map 77, Event 5, Variable 841 to 2
◆
:End
◆If:Script:$gamePlayer.direction(8)
◆Plugin Command:SelfVariable Map 77, Event 5, Variable 841 to 4
◆
:End
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 43, 70
: :◇Turn Left
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 32, 70
◆Common Event:Intersection #4-M1
◆
:End
◆If:Script:$gamePlayer.direction(2) || $gamePlayer.direction(8)
◆Plugin Command:SelfVariable Map 77, Event 5, Variable 841 to 1
◆
:End
◆If:Script:$gamePlayer.direction(4) || $gamePlayer.direction(6)
◆Plugin Command:SelfVariable Map 77, Event 5, Variable 841 to 5
◆
:End
◆If:Script:$gamePlayer.direction(2)
◆Plugin Command:SelfVariable Map 77, Event 5, Variable 841 to 1
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 43, 90
◆Control Variables:#0719 Minecart Destination = 3
◆Common Event:Destination-M1
◆
:End
◆If:Script:$gamePlayer.direction(4)
◆Plugin Command:SelfVariable Map 77, Event 5, Variable 841 to 5
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 32, 70
◆Common Event:Intersection #4-M1
◆
:End
◆If:Script:$gamePlayer.direction(6)
◆Plugin Command:SelfVariable Map 77, Event 5, Variable 841 to 5
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 43, 90
◆Control Variables:#0719 Minecart Destination = 3
◆Common Event:Destination-M1
◆
:End
◆If:Script:$gamePlayer.direction(8)
◆Plugin Command:SelfVariable Map 77, Event 5, Variable 841 to 1
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 43, 50
◆Common Event:Intersection #2-M1
◆
:End
Spoiler: Intersection #4 CE
◆Stop SE
◆Play SE:Minecart_2 (35, 100, 0)
◆If:Script:Input.isPressed("up") && $gamePlayer.direction(6) || Input.isPressed("up") && $gamePlayer.direction(8) || Input.isPressed("up") && $gamePlayer.direction(4)
◆Set Movement Route:Player
: :◇Script:MOVE TO: 31, 70
: :◇Turn Up
◆If:Script:$gamePlayer.direction(6)
◆Plugin Command:SelfVariable Map 77, Event 6, Variable 841 to 2
◆
:End
◆If:Script:$gamePlayer.direction(4)
◆Plugin Command:SelfVariable Map 77, Event 6, Variable 841 to 1
◆
:End
◆If:Script:$gamePlayer.direction(8)
◆Plugin Command:SelfVariable Map 77, Event 6, Variable 841 to 1
◆
:End
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 31, 50
◆Common Event:Intersection #1-M1
◆
:End
◆If:Script:Input.isPressed("right") && $gamePlayer.direction(6) || Input.isPressed("right") && $gamePlayer.direction(8) || Input.isPressed("right") && $gamePlayer.direction(2)
◆Set Movement Route:Player
: :◇Script:MOVE TO: 31, 70
: :◇Turn Right
◆If:Script:$gamePlayer.direction(8)
◆Plugin Command:SelfVariable Map 77, Event 6, Variable 841 to 3
◆
:End
◆If:Script:$gamePlayer.direction(2)
◆Plugin Command:SelfVariable Map 77, Event 6, Variable 841 to 1
◆
:End
◆If:Script:$gamePlayer.direction(6)
◆Plugin Command:SelfVariable Map 77, Event 6, Variable 841 to 5
◆
:End
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 42, 70
◆Common Event:Intersection #3-M1
◆
:End
◆If:Script:Input.isPressed("down") && $gamePlayer.direction(6) || Input.isPressed("down") && $gamePlayer.direction(4) || Input.isPressed("down") && $gamePlayer.direction(2)
◆Set Movement Route:Player
: :◇Script:MOVE TO: 31, 70
: :◇Turn Down
◆If:Script:$gamePlayer.direction(4)
◆Plugin Command:SelfVariable Map 77, Event 6, Variable 841 to 3
◆
:End
◆If:Script:$gamePlayer.direction(2)
◆Plugin Command:SelfVariable Map 77, Event 6, Variable 841 to 1
◆
:End
◆If:Script:$gamePlayer.direction(6)
◆Plugin Command:SelfVariable Map 77, Event 6, Variable 841 to 4
◆
:End
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 31, 97
◆Control Variables:#0719 Minecart Destination = 4
◆Common Event:Destination-M1
◆
:End
◆If:Script:Input.isPressed("left") && $gamePlayer.direction(4) || Input.isPressed("left") && $gamePlayer.direction(8) || Input.isPressed("left") && $gamePlayer.direction(2)
◆Set Movement Route:Player
: :◇Script:MOVE TO: 31, 70
: :◇Turn Left
◆If:Script:$gamePlayer.direction(4)
◆Plugin Command:SelfVariable Map 77, Event 6, Variable 841 to 5
◆
:End
◆If:Script:$gamePlayer.direction(2)
◆Plugin Command:SelfVariable Map 77, Event 6, Variable 841 to 2
◆
:End
◆If:Script:$gamePlayer.direction(8)
◆Plugin Command:SelfVariable Map 77, Event 6, Variable 841 to 4
◆
:End
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 22, 70
◆Control Variables:#0719 Minecart Destination = 5
◆Common Event:Destination-M1
◆
:End
◆If:Script:$gamePlayer.direction(2) || $gamePlayer.direction(8)
◆Plugin Command:SelfVariable Map 77, Event 6, Variable 841 to 1
◆
:End
◆If:Script:$gamePlayer.direction(4) || $gamePlayer.direction(6)
◆Plugin Command:SelfVariable Map 77, Event 6, Variable 841 to 5
◆
:End
Spoiler: Destination CE
◆Fadeout Screen
◆Stop SE
◆If:Minecart Destination = 1
◆Transfer Player:GrandTree_Cave3 (59,43) (Direction: Right, Fade: None)
◆Set Event Location:MineCart #1, (58,43)
◆
:End
◆If:Minecart Destination = 2
◆Transfer Player:GrandTree_Cave3 (55,70) (Direction: Right, Fade: None)
◆Set Event Location:MineCart #1, (54,70)
◆
:End
◆If:Minecart Destination = 3
◆Transfer Player:GrandTree_Cave3 (43,91) (Direction: Down, Fade: None)
◆Set Event Location:MineCart #1, (43,90)
◆
:End
◆If:Minecart Destination = 4
◆Transfer Player:GrandTree_Cave3 (31,98) (Direction: Down, Fade: None)
◆Set Event Location:MineCart #1, (31,97)
◆
:End
◆If:Minecart Destination = 5
◆Transfer Player:GrandTree_Cave3 (21,70) (Direction: Left, Fade: None)
◆Set Event Location:MineCart #1, (22,70)
◆
:End
◆If:Minecart Destination = 6
◆Transfer Player:GrandTree_Cave3 (31,42) (Direction: Up, Fade: None)
◆Set Event Location:MineCart #1, (31,43)
◆
:End
◆Set Movement Route:Player (Wait)
: :◇Through OFF
: :◇Direction Fix OFF
◆Plugin Command:light off 1999
◆Plugin Command:ResetFocus 15
◆Plugin Command:WaitForCamera
◆Change Actor Images:Drez, Main Characters - Menu(0), Story Characters(6), Story Characters-MAIN
◆Change Player Followers:ON
◆Script:Galv.BES.pShadows(true)
◆Plugin Command:light radius 300 #FFFC91 B50
◆Change Menu Access:Enable
◆Plugin Command:AllowPlayerMovement
◆If:Script:$gameVariables.value(719) === 1 || $gameVariables.value(719) === 2
◆Plugin Command:SelfSwitch Map 77, Event 3, Switch 124 to false
◆Plugin Command:SelfSwitch Map 77, Event 3, Switch 126 to false
◆Plugin Command:SelfSwitch Map 77, Event 3, Switch 127 to false
◆Plugin Command:SelfSwitch Map 77, Event 3, Switch 128 to false
◆Plugin Command:SelfSwitch Map 77, Event 3, Switch 129 to false
◆Plugin Command:SelfSwitch Map 77, Event 3, Switch 130 to false
◆Plugin Command:SelfSwitch Map 77, Event 3, Switch 125 to true
◆
:End
◆If:Script:$gameVariables.value(719) === 3 || $gameVariables.value(719) === 4
◆Plugin Command:SelfSwitch Map 77, Event 3, Switch 124 to false
◆Plugin Command:SelfSwitch Map 77, Event 3, Switch 125 to false
◆Plugin Command:SelfSwitch Map 77, Event 3, Switch 126 to false
◆Plugin Command:SelfSwitch Map 77, Event 3, Switch 128 to false
◆Plugin Command:SelfSwitch Map 77, Event 3, Switch 129 to false
◆Plugin Command:SelfSwitch Map 77, Event 3, Switch 130 to false
◆Plugin Command:SelfSwitch Map 77, Event 3, Switch 127 to true
◆
:End
◆If:Minecart Destination = 5
◆Plugin Command:SelfSwitch Map 77, Event 3, Switch 124 to false
◆Plugin Command:SelfSwitch Map 77, Event 3, Switch 125 to false
◆Plugin Command:SelfSwitch Map 77, Event 3, Switch 126 to false
◆Plugin Command:SelfSwitch Map 77, Event 3, Switch 127 to false
◆Plugin Command:SelfSwitch Map 77, Event 3, Switch 128 to false
◆Plugin Command:SelfSwitch Map 77, Event 3, Switch 130 to false
◆Plugin Command:SelfSwitch Map 77, Event 3, Switch 129 to true
◆
:End
◆If:Minecart Destination = 6
◆Plugin Command:SelfSwitch Map 77, Event 3, Switch 124 to false
◆Plugin Command:SelfSwitch Map 77, Event 3, Switch 125 to false
◆Plugin Command:SelfSwitch Map 77, Event 3, Switch 126 to false
◆Plugin Command:SelfSwitch Map 77, Event 3, Switch 127 to false
◆Plugin Command:SelfSwitch Map 77, Event 3, Switch 128 to false
◆Plugin Command:SelfSwitch Map 77, Event 3, Switch 129 to false
◆Plugin Command:SelfSwitch Map 77, Event 3, Switch 130 to false
◆
:End
◆Fadein Screen
◆Wait:20 frames
◆Exit Event Processing

I really hope there is someone that help me out here... Thanks in advance
But the problems come from the fact that the player HAS TO input something. If they don't then the mine cart just stops and waits
this can be avoided if !input.ispressed("left") or whatever, adn continue the oppesite
direction => else go to the direction is pressed.

but fade in/fade out doesn't look to good, I don't know if you keep the same party
member or able to change order, so it would show the correct order on boarding/exit.
I don't know if you keep the same party
member or able to change order, so it would show the correct order on boarding/exit.
I only have the two characters in my game so that's not a problem.

this can be avoided if !input.ispressed("left") or whatever, adn continue the oppesite
direction => else go to the direction is pressed
Do you mean that I should put !Input.isPressed() in the same conditional branch? Or should I make a separate conditional branch with this in it?
if they DO press it, you turn the direction, so the else handler
should do the oppesite if they DONT.

while you do it mostly "outside" the condition for a plugin command.
put the move route INSIDE, so if they don't press anything, the move route
is different, so do the other move route.
if they DO press it, you turn the direction, so the else handler
should do the oppesite if they DONT.

while you do it mostly "outside" the condition for a plugin command.
put the move route INSIDE, so if they don't press anything, the move route
is different, so do the other move route.
OH! You mean to make a conditional branch with the !Input.isPressed() and nest it inside the conditional branch already there... Just make it an if...else statement! Genius - I'm going to try that now.

This is the new setup:
Spoiler: New Intersection Setup
◆Stop SE
◆Play SE:Minecart_2 (35, 100, 0)
◆If:Script:$gamePlayer.direction(2)
◆If:Script:Input.isPressed("right")
◆Control Variables:#0841 Intersections MineCart #1 = 1
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 42, 49
◆Control Variables:#0841 Intersections MineCart #1 = 0
◆Common Event:Intersection #2-M1
◆
:Else
◆Control Variables:#0841 Intersections MineCart #1 = 1
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 31, 69
◆Control Variables:#0841 Intersections MineCart #1 = 0
◆Common Event:Intersection #4-M1
◆
:End
◆
:End
◆If:Script:$gamePlayer.direction(4)
◆If:Script:Input.isPressed("down")
◆Control Variables:#0841 Intersections MineCart #1 = 2
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 31, 69
◆Control Variables:#0841 Intersections MineCart #1 = 0
◆Common Event:Intersection #4-M1
◆
:Else
◆Control Variables:#0841 Intersections MineCart #1 = 1
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 31, 43
◆Control Variables:#0841 Intersections MineCart #1 = 0
◆Control Variables:#0719 Minecart Destination = 6
◆Common Event:Destination-M1
◆
:End
◆
:End
◆If:Script:$gamePlayer.direction(8)
◆If:Script:Input.isPressed("right")
◆Control Variables:#0841 Intersections MineCart #1 = 2
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 42, 49
◆Control Variables:#0841 Intersections MineCart #1 = 0
◆Common Event:Intersection #2-M1
◆
:Else
◆Control Variables:#0841 Intersections MineCart #1 = 1
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 31, 43
◆Control Variables:#0841 Intersections MineCart #1 = 0
◆Control Variables:#0719 Minecart Destination = 6
◆Common Event:Destination-M1
◆
:End
◆
:End

I works great - EXCEPT when it comes to moving left. The direction(4) section, for some reason, makes the player go DOWN FIRST before sending them back up to the spot they were supposed to go to in the first place.
sended DM on discord, so its easier to help you.
I've solved it [with help]] so for anyone wanting to try it:

Spoiler: Four Way Intersection
◆Stop SE
◆Play SE:Minecart_2 (35, 100, 0)
◆If:Player is facing Up
◆If:Button
is pressed down
◆Control Variables:#0841 Intersections MineCart #1 = 3
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 54, 70
◆Control Variables:#0719 Minecart Destination = 2
◆Common Event:Destination-M1
◆
:Else
◆If:Button
is pressed down
◆Control Variables:#0841 Intersections MineCart #1 = 4
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 32, 70
◆Common Event:Intersection #4-M1
◆
:Else
◆Control Variables:#0841 Intersections MineCart #1 = 0
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 43, 50
◆Common Event:Intersection #2-M1
◆
:End
◆
:End
◆
:End
◆If:Player is facing Down
◆If:Button
is pressed down
◆Control Variables:#0841 Intersections MineCart #1 = 2
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 32, 70
◆Common Event:Intersection #4-M1
◆
:Else
◆If:Button
is pressed down
◆Control Variables:#0841 Intersections MineCart #1 = 0
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 54, 70
◆Control Variables:#0719 Minecart Destination = 2
◆Common Event:Destination-M1
◆
:Else
◆Control Variables:#0841 Intersections MineCart #1 = 0
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 43, 90
◆Control Variables:#0719 Minecart Destination = 3
◆Common Event:Destination-M1
◆
:End
◆
:End
◆
:End
◆If:Player is facing Right
◆If:Button [Up] is pressed down
◆Control Variables:#0841 Intersections MineCart #1 = 2
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 43, 50
◆Common Event:Intersection #2-M1
◆
:Else
◆If:Button [Down] is pressed down
◆Control Variables:#0841 Intersections MineCart #1 = 3
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 43, 90
◆Control Variables:#0719 Minecart Destination = 3
◆Common Event:Destination-M1
◆
:Else
◆Control Variables:#0841 Intersections MineCart #1 = 5
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 54, 70
◆Control Variables:#0719 Minecart Destination = 2
◆Common Event:Destination-M1
◆
:End
◆
:End
◆
:End
◆If:Player is facing Left
◆If:Button [Up] is pressed down
◆Control Variables:#0841 Intersections MineCart #1 = 0
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 43, 50
◆Common Event:Intersection #2-M1
◆
:Else
◆If:Button [Down] is pressed down
◆Control Variables:#0841 Intersections MineCart #1 = 4
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 43, 90
◆Control Variables:#0719 Minecart Destination = 3
◆Common Event:Destination-M1
◆
:Else
◆Control Variables:#0841 Intersections MineCart #1 = 5
◆Set Movement Route:Player (Wait)
: :◇Script:MOVE TO: 32, 70
◆Common Event:Intersection #4-M1
◆
:End
◆
:End
◆
:End



​





You can adjust and change them as need be.
Plugins in use for this:
  1. YEP_MoveRouteCore​
  2. YEP_SelfSwVar​
  3. YEP_StopMapMovement​
  4. YEP_RegionRestrictions​
Path.png



Also, there's this tutorial: Mine Cart Tutorial

This one has a lot of features - So I feel my way is a bit easier and simpler to fix and adjust as need be. Also, it's simpler and easier to implement IMO.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/help-with-a-mine-cart-mechanic.182833/