I want to implement a puzzle similar to the Gen 5 strength puzzles where you push a boulder into a hole and it makes the hole walkable and also stays there when you leave the area and come back, but any boulders not in holes reset. Any ideas on how to do this?
Help with Pokemon-style strength puzzles
RPG Maker MZ SupportThere are many tutorials in threads here and YouTube videos about how to implement pushing boulders onto a specific place - it's just a few event commands.
For keeping the successful boulders, you would just assign a switch for each correct placement. The holes have a second page with the condition of that switch that shows them being full of boulder.
And the boulder has a second page with the condition of a self switch - toggled on its first page when it detects being in a hole - which is entirely blank.
(you could also remotely toggle the holes' self switches, but that requires code or a plugin and it sounds like you'd be better off shoring up on more basic event logic first)
For keeping the successful boulders, you would just assign a switch for each correct placement. The holes have a second page with the condition of that switch that shows them being full of boulder.
And the boulder has a second page with the condition of a self switch - toggled on its first page when it detects being in a hole - which is entirely blank.
(you could also remotely toggle the holes' self switches, but that requires code or a plugin and it sounds like you'd be better off shoring up on more basic event logic first)
there are serveral "save event position" like TSR_SaveEvent, but you want
a reset button somehow if it's NOT in the hole as well or stuck in the corner.
a reset button somehow if it's NOT in the hole as well or stuck in the corner.
Please watch this video and it will help you a lot.
That's not an issue if you use the event pages method I described in my reply.
You don't need to save anything if you switch the event page on the hole to make it look like a boulder is in it. And the boulders will automatically reset when you leave and come back, because that's what events do.
I can agree on that part, but constant leaving and re-enter isn't always fun, but find
something to reset it as a challenge, but without is mostly better, depending on the
situation and mechanic to challenge the player.
specially if you have 4 rocks but 2 holes.
maybe sometimes you want to reset them, but require a skill or something to let them stay,
than it require 3 pages =) so it won't reset and stays on spots.
there are enough methods to go with, depending on the entire situation of the mechanic.
That's not what I was talking about. Your idea of also adding a reset button is fine.
I'm saying there's no reason to use a plugin for what the OP wants to do.
Original thread: https://forums.rpgmakerweb.com/threads/help-with-pokemon-style-strength-puzzles.173690/