Switch Puzzle

Mortalis

Veteran
Veteran
Joined
Jun 9, 2014
Messages
34
Reaction score
3
First Language
English
Primarily Uses
For some reason my brain is not figuring this out. I made a switch puzzle where it requires weight to flip the switch, ergo either the player or a boulder. First part is a switch that opens a gate, if the player steps on it, gate opens, steps off gate closes. So you push the boulder on it, gate opens and stays, YAY! I got that to work. Now I am making one where there is two pressure switches. Now for some reason I am having trouble figuring it out. Have 1 event tracking player XY coordinates. Another event tracking boulder XY. What would be the easiest way to do this puzzle? Both switches must be down for the gate to open, player on switch and boulder on another. Thanks!
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,108
Reaction score
13,713
First Language
English
Primarily Uses
RMMV
Use regions.  Paint a region on both switches (same region number).  Make your event that tracks their position check the region codes at their x/y location.  If both region codes are whatever value you paint them with, the conditions are met.
 

Mortalis

Veteran
Veteran
Joined
Jun 9, 2014
Messages
34
Reaction score
3
First Language
English
Primarily Uses
I haven't messed with regions too much, would this require the Yanfly plugin to do common events on regions?

EDIT: I got it now, maybe not the most efficient way but it works, thanks for the region tip!
 
Last edited by a moderator:

punchybot

Veteran
Veteran
Joined
Oct 17, 2015
Messages
99
Reaction score
216
First Language
English
Primarily Uses
RMMV
It's certainly not easy to do even if it is an easy puzzle. What Shaz said is correct but there are multiple ways. For example, you can use variables and conditional branches.
 

Mortalis

Veteran
Veteran
Joined
Jun 9, 2014
Messages
34
Reaction score
3
First Language
English
Primarily Uses
It's certainly not easy to do even if it is an easy puzzle. What Shaz said is correct but there are multiple ways. For example, you can use variables and conditional branches.
That's how I did the single switch one but the two switch puzzle was getting convoluted. I showed it to my wife. She was unimpressed. "You push the boulder on the other one" I was like but the work I put into it!!
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,108
Reaction score
13,713
First Language
English
Primarily Uses
RMMV
You do not need a plugin.

You need 3 variables.

Code:
Control Variables [001: X] = Player's Map XControl Variables [002: Y] = Player's Map YGet Location Info: [003: Region] = Region @ [001], [002]Conditional Branch: Variable [003: Region] = 1  Control Variables [001: X] = Boulder's Map X  Control Variables [002: Y] = Boulder's Map Y  Get Location Info: [003: Region] = Region @ [001], [002]  Conditional Branch: Variable [003: Region] = 1    Player and boulder are both on the correct tiles - open the door or whatever you want to do (likely turn on a switch)  Branch EndBranch End
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,040
Messages
1,018,472
Members
137,822
Latest member
madelbylz
Top