What I want to do is add an event where the player can push a crate onto a spot underneath a ladder leading up. I already know how to make it possible to move the crate. That's not an issue. But I want the player to also be able to climb onto the crate only when it's under the ladder and use it as a stool to reach the ladder. I hope I'm making sense. I've looked at tutorials explaining weighted switches and other topics to do with map id, but I find it so confusing. Is anyone able to explain how to do this in a way that is easy to explain?
How can I add an event when a moveable crate is pushed onto a certain spot?
RPG Maker MV SupportGo to Control Variables, click on any Variable # in the selection where it says Single, name it as Event X or whatever with the X mark (Not 100% necessary but easy to keep track of) then click on Game Data.
That Variable will be the X location. Make sure, instead of Player, it says This Event and Map X.
Repeat the same process in a different Variable # by naming it as "Event Y". and click on Game Data, click on Character and go to This Event and change Map X to Map Y. Then this is how you want to do things. It's not all that complicated but I'll explain it anyway as it's hard to figure it out the first time. The X is the left and right of the map while the Y is the up and down on the map. You can figure it out by reading the number at the bottom. In your picture, it shows 58% | 17, 45 |
That 17, 48 is where you currently have the Crate. On Event Mode, not Tileset Mode, you can tell where you want it. 17 is the X Map and 45 is the Y Map. From what I could tell, you want the X to be #21 and the Y to be #43. It should look like this:
And then you want to go to Conditional Branch. It's pretty much the whole "IF this is on, then it goes..." kind of thing. Don't know how to explain that one very good but I think you get the gist of that. 😀
It should look like this.
And you can fill inside where it says Y whatever the Event you want. You can use the Else option to fill your movement of that crate as a "If Map X and Map Y doesn't match the desired number, it'll go this way."
Hope this helps!
EDIT: I'm actually using MZ but the Variables stuff should work the same way as MV.
That Variable will be the X location. Make sure, instead of Player, it says This Event and Map X.
Repeat the same process in a different Variable # by naming it as "Event Y". and click on Game Data, click on Character and go to This Event and change Map X to Map Y. Then this is how you want to do things. It's not all that complicated but I'll explain it anyway as it's hard to figure it out the first time. The X is the left and right of the map while the Y is the up and down on the map. You can figure it out by reading the number at the bottom. In your picture, it shows 58% | 17, 45 |
That 17, 48 is where you currently have the Crate. On Event Mode, not Tileset Mode, you can tell where you want it. 17 is the X Map and 45 is the Y Map. From what I could tell, you want the X to be #21 and the Y to be #43. It should look like this:
And then you want to go to Conditional Branch. It's pretty much the whole "IF this is on, then it goes..." kind of thing. Don't know how to explain that one very good but I think you get the gist of that. 😀
It should look like this.
And you can fill inside where it says Y whatever the Event you want. You can use the Else option to fill your movement of that crate as a "If Map X and Map Y doesn't match the desired number, it'll go this way."
Hope this helps!
EDIT: I'm actually using MZ but the Variables stuff should work the same way as MV.
that is 1 way to do it, but the other way around is to check object X and Y and map X and Y.
but it also require switches tomake things works nice.
there are some on VX Ace, but I cannot find the one for MV which explain everything in detail.
but you can also use galv_PuzzleFunctions plugin which make things a tiny bit easier than fully
eventing it, so check the demo how to do that for easier use.
else you need more checks to make it work.
EDIT: here is the [link] if you want fully evented =)
but it also require switches tomake things works nice.
there are some on VX Ace, but I cannot find the one for MV which explain everything in detail.
but you can also use galv_PuzzleFunctions plugin which make things a tiny bit easier than fully
eventing it, so check the demo how to do that for easier use.
else you need more checks to make it work.
EDIT: here is the [link] if you want fully evented =)
@ShadowDragon Oh yeah! I totally forgotten about that one! 😀 Just saw it the other day, too! Haha. Good catch! Yes, that might be easier, too. Lol.
Note that by default event positions reset when you leave the map (handy for resetting puzzles like this). Not sure what the plugin offers, but if you want the crate to remain in position after being pushed to the correct location, you can have two separate events:
This switch can correspond to page conditions on each of the crates:
- One for the pushable crate (you have this already)
- One for the climbable crate (replaces pushable one when appropriate)
This switch can correspond to page conditions on each of the crates:
- Pushable crate should have a second page that is blank and has condition "switch is on".
- Climbable crate should have 1 page with condition "switch is on".
I actually got your strategy working before I noticed ShadowDragon's response. While I had a few hiccups along the way, I managed to get it working. So cheers! I appreciate the help. Everything works as it should now.
I actually noticed that issue before I noticed your response so thanks for that advice. It ended up working quite well for me.
Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-add-an-event-when-a-moveable-crate-is-pushed-onto-a-certain-spot.131801/