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.
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. 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.
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