Multi-Puzzles/Multi-Choices

Hello there! I got started quite literally 4 days ago. I've watched many tutorials and read many posts from this very website. I'm sure what I'm going to ask has been asked before so I apologize for that. I'm getting held up on the variables and the event pages themselves. I know it's a little silly, it's pretty basic, but I'm really hung up so far. I have this puzzle I want to do, where the Player drops 4 boulders into a hole and activates a pathway forward afterwards. But the sequence is pretty confusing to me. Currently my events are: The Event Controller (oversees what happens to the variables) - The Hole - The Boulders - The Path (a single entity that should be destroyed when the hole is filled and disappears. I've also simply swapped this out for the hole a few times so it's not necessary or anything.)

So I can usually get the first boulder in just fine following a tutorial like my life depends on it. But what confuses me are the rest, and the idea of what the hole needs. Does it need several event pages for when each boulder goes down? Do I make separate "Event Controller"s with different variables that correspond to the different boulders? When last I tried that, it didn't work (went up against the hole as if an impassable tile) or disappeared with the first boulder (when I pushed that in). My Event Controller setup is quite literally the first "Boulder Switch Puzzle" from Echo607. She was using MV, but to my understanding the mechanics used are mostly the same between games. If not then that was an oversight of mine, haha

My last question has to do with something probably much more manageable. If anyone'd like I'll post screenshots. I'm 98% sure I'm missing something super obvious, so I'll do my best to explain. The sequence is: Player walks up to a monument. If she sticks her hand in, she'll get damaged but get the artifact. If not, she won't. This all works perfectly fine, my only issue is the repeating. Now I'd like it to repeat, if you want you can press it again and stick your hand in to get the artifact. But when you DO get the artifact.. you can get it again. I'm not sure how to break this loop. I have it self-switched to Page 2, which is when you can try again. I also have some Player interactions on Page 2, where if you get another Actor in your party, you'll have a unique interaction with the monument. So, this sequence is basically stitched together by the Conditional Branches and Choices. It's like this:

Page 1:

[text]

Choice: Yes or No?

Yes: Get Artifact

No: Exit Choices

Page 2:

If You Have Artifact:

[text] [Problem: can get artifact again]

If You Have Artifact With Actor:

[text] [Problem: can get artifact again]

If You Don't Have Artifact:

[Choose Yes, Get] [Problem: can get artifact again]

If You Don't Have Artifact But Have Actor:

[text, Actor gets it for you] [Problem: can get artifact again]

The scenarios are dependent on the Actor you have with you, so if you don't have the Actor your Else will be getting it yourself, essentially just pivoting you to grab it again (I might have made these branches more confusing than they should be). If you do.. The same thing will happen again. And again, even if she got it for you. My only question for this is.. How do I put a pin in that? Is it a specific order of Choice/Conditional Branches I need to follow? Once you get it (if you choose so or have her do it for you) you can just get it again and again. But, like I said, the initial choice to grab it if you said no SHOULD be there, otherwise it'd be way simpler for me and it'd just be a normal one-time-only event.


I'm sorry for such a long (first) post, and my shoddy explanation of things. I just hope I can figure this out and get back to testing again. Thank you for your time and any of your help!! <3
Does it need several event pages for when each boulder goes down?
If you want the sprite to change each time, then it's probably simplest to make a page for each. If not, then you'll only need one for empty and one for filled, and use a variable to track how many boulders are already in.

As to the artefact, just set a self switch when you get it, and make that activate another page where getting it is no longer possible.
Welcome!

As a tip, it would be much more useful for you to convert about 50% of that text into just posting screenshots of your events 😉

Logically, I don't see why you have events for the holes. I also don't see why you have a "controller" event.

All you should need are the boulders that you push. After each push, have the boulder use Control Variables and Conditional Branch to check their coordinates (or have the holes designated with a region ID and use Get Location Info).

If they're on a hole, set a switch on. If not, turn it off. If all four switches are on, open the door.
If you want the sprite to change each time, then it's probably simplest to make a page for each. If not, then you'll only need one for empty and one for filled, and use a variable to track how many boulders are already in.

As to the artefact, just set a self switch when you get it, and make that activate another page where getting it is no longer possible.
Thank you very much!! Would every "Else" in page 2 have, say, a self-switch b "on" for when you choose to get it and all of them could correspond to that self-switch b page where it isn't possible?

Edit: here are the screenshots I got, Page 1 and 2 in order. Page 3 is the Self-Switch B. Now that I tried it, she doesn't reach in anymore, but her commentary dialogue doesn't come up so I assume that is cut off in using B. I understand Page 3 would take precedent, so should I switch 1 and 2? I also tried to use "If Party has Artifact" to try and prevent being able to get it again, but that doesn't seem to have much effect.

Screenshot (1144).png

Screenshot (1145).png


If these aren't clear enough I can get them again!
Yeah, you probably want to set it everywhere you give the player artefact.

The rightmost page that meets all conditions is always active in any event.

It's a bit hard to tell without actually seeing everything that's happening, but I'm not sure why pages 1 and 2 are separate on the first place, seems like it might be easier to combine them.
Welcome!

As a tip, it would be much more useful for you to convert about 50% of that text into just posting screenshots of your events 😉

Logically, I don't see why you have events for the holes. I also don't see why you have a "controller" event.

All you should need are the boulders that you push. After each push, have the boulder use Control Variables and Conditional Branch to check their coordinates (or have the holes designated with a region ID and use Get Location Info).

If they're on a hole, set a switch on. If not, turn it off. If all four switches are on, open the door.
Could you please define how you'd Do that? I used the region ID route, first boulder goes in, second doesn't. The sprite changes to the second page's, but the second boulder doesn't even go over the hole, like it's blocked, but I can still pass through it. All 2nd/3rd page images I didn't include are simply blank for the self-switches.

The Hole itself:

Hole, Page 1.png

Hole, Page 2.png


Common Events (it's simply called "Hole" because it's placed in it)
Common Event, Region ID 1.png

Common Event, Region 2.png


Boulders:
Boulder, 1.png

Boulder, 2.png


Thank you again for all of your help already!
First tip - you should almost never have parallel events without a Wait command. That makes them try to run every frame, 60 times a second. Your holes do not need to be updated that frequently.

Personally, as I described in my first reply, I would use 0 parallel events and 0 common events for this. Just put it on the boulder.

Could you please define how you'd Do that?
All from my original instructions in Post #3:
have the holes designated with a region ID
1715950127897.png


After each push, have the boulder...use Get Location Info.
1715950349606.png


If they're on a hole, set a switch on.
1715950481760.png

(and, logically, you have 4 of those for the 4 different region IDs and hole switches)

If all four switches are on, open the door.
1715950616179.png


Then you just copy and paste 3 copies of the same boulder.
Spoiler: Boulder Event
Code:
◆Set Movement Route:This Event (Wait)
:Set Movement Route:◇Move away from Player
◆Control Variables:#0001 Boulder X = Map X of This Event
◆Control Variables:#0002 Boulder Y = Map Y of This Event
◆Get Location Info:Boulder X, Region ID, ({Boulder X},{Boulder Y})
◆If:Boulder X = 1
  ◆Control Switches:#0001 Hole 1 = ON
  ◆Control Self Switch:A = ON
  ◆
:End
◆If:Boulder X = 2
  ◆Control Switches:#0002 Hole 2 = ON
  ◆Control Self Switch:A = ON
  ◆
:End
◆If:Boulder X = 3
  ◆Control Switches:#0003 Hole 3 = ON
  ◆Control Self Switch:A = ON
  ◆
:End
◆If:Boulder X = 4
  ◆Control Switches:#0004 Hole 4 = ON
  ◆Control Self Switch:A = ON
  ◆
:End
◆If:Hole 1 is ON
  ◆If:Hole 2 is ON
    ◆If:Hole 3 is ON
      ◆If:Hole 4 is ON
        ◆Control Switches:#0005 Passageway Open = ON
        ◆
      :End
      ◆
    :End
    ◆
  :End
  ◆
:End

Your holes don't need any event commands, just a second page with the condition of their individual switch to change to the filled hole graphic. There's no need for any common events, nor anything parallel.
First tip - you should almost never have parallel events without a Wait command. That makes them try to run every frame, 60 times a second. Your holes do not need to be updated that frequently.

Personally, as I described in my first reply, I would use 0 parallel events and 0 common events for this. Just put it on the boulder.


All from my original instructions in Post #3:
Thank you so much for all of this! I didn't know how to work with some of this. My only final question is would it be possible to feed 4 boulders into ONE hole (as that was the original idea of the puzzle), or would that just not be possible? Thank you again!
My only final question is would it be possible to feed 4 boulders into ONE hole (as that was the original idea of the puzzle), or would that just not be possible?
Did you try it?

Look at the eventing I gave you and think it through. It would be even easier - you don't have 4 different region IDs and 4 different switches, right?

All you'd do is say "if the region ID is the hole, add 1 to a variable. If the variable is now 4, open the door." What would prevent it from being possible? 😉

Original thread: https://forums.rpgmakerweb.com/threads/multi-puzzles-multi-choices.168734/