Hey everyone I am tryign to make a switch that will toggle a ladder to drop down from the ceiling and then back up again when activated again. (process repeats unlimited times)
Toggle switch for a Drop down Ladder
RPG Maker VXAce SupportYour ladder will need an event with 2 pages. The first page has nothing on it. That represents the ladder being pulled back up. The second page has the ladder graphic. Remember to mark the tile on the tile sheet with the ladder tag if it hasn't already got on. This page is conditioned by a switch which you create for this purpose. Name it something obvious like 'Drop Ladder'. Conditions are on the top left of the event page.
Have something which the player interacts with to activate the ladder. The next bit depends on how you want this to appear in game. Let us suppose, for the sake of this example, that the player can choose whether or not the ladder drops down. This second event would then look like this:
Conditional Branch: Drop Ladder switch OFF
Text: Do you want the ladder? YES/NO
When YES
Drop Ladder switch ON
When NO
(Either nothing or some other bit of text)
Else:
Text: Are you finished with the ladder? YES/NO
When YES
Drop Ladder switch OFF
When NO
(Either nothing or some other bit of text)
That basic structure of turning the switch ON and OFF is what you would do however you want this to appear.
If you wanted to get a bit more visually sophisticated you could make a sprite sheet for the ladder
On the first row have just a bit of the ladder showing
Second row a bit more
Third row a bit more
Fourth row all of it.
Look at the set route move for a door, and use that in a set route move for the ladder after you have turned the switch ON. The player will then see the ladder descending, rather than have it suddenly appear. When you turn the switch OFF, reverse the route move, and the ladder will appear to be being drawn by up.
Have something which the player interacts with to activate the ladder. The next bit depends on how you want this to appear in game. Let us suppose, for the sake of this example, that the player can choose whether or not the ladder drops down. This second event would then look like this:
Conditional Branch: Drop Ladder switch OFF
Text: Do you want the ladder? YES/NO
When YES
Drop Ladder switch ON
When NO
(Either nothing or some other bit of text)
Else:
Text: Are you finished with the ladder? YES/NO
When YES
Drop Ladder switch OFF
When NO
(Either nothing or some other bit of text)
That basic structure of turning the switch ON and OFF is what you would do however you want this to appear.
If you wanted to get a bit more visually sophisticated you could make a sprite sheet for the ladder
On the first row have just a bit of the ladder showing
Second row a bit more
Third row a bit more
Fourth row all of it.
Look at the set route move for a door, and use that in a set route move for the ladder after you have turned the switch ON. The player will then see the ladder descending, rather than have it suddenly appear. When you turn the switch OFF, reverse the route move, and the ladder will appear to be being drawn by up.
@Kes Hey Thank you Kes, here is a visual representation of what im trying to acheive. I had it working so i could bring the ladder down then back up with the pull of the string but only once. I couldnt figure out how to make us repeatable. I have to rewrite the events from scratch. Thank you for your help!!

this is where I hit "action" button. (rope pull animation)



this is where I hit action button. (rope pull animation)




this is where I hit "action" button. (rope pull animation)


this is where I hit action button. (rope pull animation)


So does that mean that you have got it working?
I think my suggestion of making a sprite which 'extends' is probably easier than trying to do this with 3 separate graphic events, but if you can get it working that way, then no need to change it.
I think my suggestion of making a sprite which 'extends' is probably easier than trying to do this with 3 separate graphic events, but if you can get it working that way, then no need to change it.
well with useing control switches and multiple events pages I was able to have it prefor the task one full rotation. But if i tried to do the action again it went all wonky...I must of had a mistake along the way in the event process.. Your suggestion about useing a sprit sheet seems very convienent, Thanks @Kes I will give it a shot and post my progress soon!
Just a very small point, but one which could save a lot of confusion in future topics.
You spoke about making a mistake in the script. With RPGMaker 'script' is a separate piece of coding which goes into the Script Editor. What we are doing here is using events, which is not scripting. I have seen threads descend into incomprehension because someone was talking about scripts when they meant events.
You spoke about making a mistake in the script. With RPGMaker 'script' is a separate piece of coding which goes into the Script Editor. What we are doing here is using events, which is not scripting. I have seen threads descend into incomprehension because someone was talking about scripts when they meant events.
Original thread: https://forums.rpgmakerweb.com/threads/toggle-switch-for-a-drop-down-ladder.74057/











