ToriKlepto

Villager
Member
Joined
Nov 13, 2016
Messages
25
Reaction score
2
First Language
English
Primarily Uses
Someone please help. I only recently purchased VX Ace and am having a hard time with more difficult events. I wanted to create a puzzle room with four switches that would work kind of like in Skyrim. By moving one switch, it would move the others. The player would need to find the right pattern to unlock the door (shown by the glowing animation). However, I realized that it would be far too difficult. Instead, I tried to find a tutorial for a similar puzzle and found this one: http://blog.rpgmakerweb.com/tutorials/golden-week-tutorial-ordered-switch-puzzle/?utm_source=forum&utm_medium=social&utm_campaign=gwtswitch


I believe I followed the instructions correctly but my puzzle still does not work at all! Only one switch was able to be messed with out of four. Here is what the puzzle room looks like. What am I doing wrong?

puzzle room3.png

puzzle room2.png

puzzle room.png
 

taarna23

Marshmallow Princess
Global Mod
Joined
Jul 20, 2012
Messages
2,433
Reaction score
5,237
First Language
English
Primarily Uses
RMMZ
I've moved this thread to RPG Maker VX Ace Support. Please be sure to post your threads in the correct forum next time. Thank you.
 

HexMozart88

The Master of Random Garbage
Veteran
Joined
May 15, 2016
Messages
2,534
Reaction score
4,833
First Language
English
Primarily Uses
RMVXA
That seems like a very sloppy way of doing it. And very confusing. 


Try this: 


First Switch - Action Button Trigger:


Conditional Branch: Variable 1 == 0


 Control Variables: Variable 1 += 1


 Control Self Switches: A == ON


Else


Play SE: Buzzer


Control Switches: Fail == ON


Branch End


Next page - Parallel Process Trigger:


Conditional Branch: Fail == ON


Control Self Switches: A == OFF


Branch End


Second Switch - Same thing:


Conditional Branch: Variable 1 == 1


 Control Variables: Variable 1 += 1


 Control Self Switches: A == ON


Else


Play SE: Buzzer


Control Switches: Fail == ON


Branch End


#You get the idea of this, right? 


Results - Parallel Process Trigger: 


Conditional Branch: Switches == 4


#Anything you want. 


Branch End
 

ToriKlepto

Villager
Member
Joined
Nov 13, 2016
Messages
25
Reaction score
2
First Language
English
Primarily Uses
That seems like a very sloppy way of doing it. And very confusing. 


Try this: 


First Switch - Action Button Trigger:


Conditional Branch: Variable 1 == 0


 Control Variables: Variable 1 += 1


 Control Self Switches: A == ON


Else


Play SE: Buzzer


Control Switches: Fail == ON


Branch End


Next page - Parallel Process Trigger:


Conditional Branch: Fail == ON


Control Self Switches: A == OFF


Branch End


Second Switch - Same thing:


Conditional Branch: Variable 1 == 1


 Control Variables: Variable 1 += 1


 Control Self Switches: A == ON


Else


Play SE: Buzzer


Control Switches: Fail == ON


Branch End


#You get the idea of this, right? 


Results - Parallel Process Trigger: 


Conditional Branch: Switches == 4


#Anything you want. 


Branch End

Thank you for responding! I am a very visual learner and text by itself is rather hard for me to interpret. Would you mind displaying your solution in the program? Thank you again.
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,714
Reaction score
12,262
First Language
English
Primarily Uses
RMMZ
@ToriKlepto Please do not quote whole posts simply to indicate who you are replying to.  It makes the page slow to load and slower to scroll down - especially for those who are accessing this on their phones.  If you want to make it clear who you are answering, just use the @username convention as I have done on this post.


Thanks
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,746
Reaction score
15,885
First Language
English
Primarily Uses
RMMV
I know you said "like in Skyrim" but that means the only people who can help you are the people who've played Skyrim.  I haven't, so that means nothing to me.


What is the mechanic you're looking for?  At what point do the switches reset (or don't they)?  What happens if the first switch is in the wrong order - should there be a buzzer sound?  What happens if the first switch is correct, but the second one is not - should there be a buzzer sound and should both switches reset?  If the player presses the first and second switch correctly, can they go and press the first switch again?  What happens then - does the order get messed up and do all the switches reset?  Do they have to do all 4 switches before they get any indication whether they got it right?  (could be a very long puzzle then, as that's 9999 combinations of switches and they'd have no idea which ones are right/wrong).


I'm sure there is a much easier way to do it than either the tutorial or the suggestion above, but it depends on whether the player can reset the switches or at what point they get reset automatically.
 

ToriKlepto

Villager
Member
Joined
Nov 13, 2016
Messages
25
Reaction score
2
First Language
English
Primarily Uses
@Shaz Thank you for replying, however, I don't care about the Skyrim idea anymore. At this point, I just would like a puzzle similar to the tutorial previously mentioned. I want four switches. The player has to press each switch in the correct order. After all four are pressed, the program should be able to tell whether or not the switches were pressed in the correct order. If so, door unlocks. If not, then it resets all four switches.
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,746
Reaction score
15,885
First Language
English
Primarily Uses
RMMV
Okay, if the player can't turn any switches back off again, this is going to be super easy to do.


I'm going to make a tutorial and I'll post the link here when it's done.
 

Heirukichi

Veteran
Veteran
Joined
Sep 24, 2015
Messages
1,456
Reaction score
621
First Language
Italian
Primarily Uses
RMVXA
If Shaz is gonna do it you hare in good hands.


Anyway be careful when applying the method displayed above. I might have missed something but that doesn't seem to allowba reset for $game_variables[1], which will prevent the player from trying a second time.


Anyway I would do it using self switches and only a single variable. You can do it without using any variable at all but that would require very long checks for condition branches so I would rather avoid that.


Anyway if Shaz doesn't have time I can send you screenshots as soon as I get my hands on a computer :)
 
Last edited by a moderator:

ToriKlepto

Villager
Member
Joined
Nov 13, 2016
Messages
25
Reaction score
2
First Language
English
Primarily Uses
@Shaz Thank you very much! I appreciate the help.


@Heirukichi Thank you as well. You guys are all very helpful and nice.
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,746
Reaction score
15,885
First Language
English
Primarily Uses
RMMV
Here you go:






There's a lot there, but I've gone into a lot of detail with the explanations and have shown a lot of screenshots.  You can skip the alternate version of step 5, which is probably the most complicated of all the steps, as it's not needed for your purposes.
 

Latest Threads

Latest Profile Posts

So I kinda came back and learned how to mod other RPG Maker games so... Hello everyone!
Captura-de-pantalla-475.png
Version 1.0.1 done! Now finally free time... oh
Capture.PNG
I'm Really proud of how my game over screen looks!
UldJFr1.png
I felt inspired by a piece of art I saw. So I made this.

Wanderer Doge.png

Thought i'd be cool to have like a company introduction. Check it out!

Forum statistics

Threads
123,278
Messages
1,155,433
Members
161,674
Latest member
Luxheo
Top