need help making a 2 way lever

hey everybody im trying to make a rail puzzle for my game but only problem is i am  struggling to make a lever that when activated will switch the rail event to left position but if pushed again will switch it back to right position

can anybody give me a demo or a guide on how to make this thanks
Is this one of those things where you have to complete the circuit by making the entire length of track a complete journey?


it is a simple matter to have a lever change the appearance of the rail. simply set a global switch not just a self switch when you use the action button on the event for the lever.


the lever will be a two page event. both pages will be triggered by the action button the first page will have no conditions the second page will be conditional on self switch A.


the first event page will simply set a global switch to on, and change the appearance of the graphic and set self switch a to on. the second event page will also set the global switch to OFF and change the appearance of the graphic and set self switch a to off.


the event for the rail graphic will have one direction on its first page dependent on the switch being off and another graphic on the second page dependent on the switch being on.


the hard part about your puzzle is knowing if the entire railway is set up in the correct direction and that is a whole nother ballgame.


†*************


Edited from my phone please excuse formatting


***************


Small example - click spoiler for events


railway%20switch%20graphic_zpsh948xy9a.png


Spoiler
switch%20page%201_zpsauagfj9u.png



switch%20page%20two_zpsynarx2y9.png



rail%20graphic%20page%20one_zpsrwg6jyye.png



rail%20graphic%20page%20two_zpsnu6vbh10.png
That is basic eventing - just assign a switch to the rail with OFF = left and ON = right, and use conditionals to check and change switch dependent on current value.


Please post a screenshot of what you have so far, and we can tell you what you have to change to make it work.
 sorry i don't have any progress on this yet   but in simple terms what i need to do is       the hero will get on the cart he will go north  till he gets to a platform he will then pull the lever what will make the track event move from left to right

then he will continue down the  altered track to his new destination   then at a point he will have to come back that way (this is the part i cant do)  he will re pull the same lever that will switch the track from right back to left position again  

if that is what u are on about above please to say if it not could you  post up new screenshots on how this is done  thank you ever so much 
Unfortunately at this point, simple screenshots will not really help you.

What you want is simple eventing by the use of switches (as in "switches used in event logic and by the control switch command", not as in switches visible in game) combined with conditional branches.

To use those general switches, you need an understanding what they are and how they work - that is given by the tutorials.

If you try to use them without that understanding by simply copying what is shown in a screenshot, then you will get everything mixed up - happened to dozens of others in the past. And it always resulted in either those people abandoning game making out of frustration, or in several hours to get game projects corrected again with events that would have been very simple if they had been done right the first time.

Yes, it will take you about a week to work through the tutorials before you can continue your own game. But please, take that week to learn the engine and the editr - it will speed up your game making a lot. That has been proven again and again in the past.

Please follow the link in my signature and work through the tutorials given there - that will get you the needed understanding as fast as possible.
thanks all i shall do this   

if you can could this be marked as solved or done or is there a way to do that
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/need-help-making-a-2-way-lever.40353/