cocola

Villager
Member
Joined
Aug 22, 2021
Messages
8
Reaction score
4
First Language
german
Primarily Uses
RMMV
Hi Guys!
I want to make a piano puzzle. I am using
the yep Button Common Events and followed Driftwood Gaming Tutorial.
Everything is working.
Except....
I want to make the Player play a certain piano key sequence for example:

A E D CC H D
If I play this section a secret mod is activated.

But If play one key wrong then play it right
Like for example

A E D C C D H D
It still work and activats the mod.
Can anyone help me and give me a script?
I tried for weeks to fix the problem thank you in advance.
 

HexMozart88

The Master of Random Garbage
Veteran
Joined
May 15, 2016
Messages
2,100
Reaction score
3,870
First Language
English
Primarily Uses
RMVXA
Not super relevant, but H isn't a real key, LOL.
So what do you have working right now? It would help if we had some screenshots of what you've done/tried.
 

cocola

Villager
Member
Joined
Aug 22, 2021
Messages
8
Reaction score
4
First Language
german
Primarily Uses
RMMV
Here you go.
 

Attachments

  • Screenshot (165).png
    Screenshot (165).png
    70 KB · Views: 8
  • Screenshot (166).png
    Screenshot (166).png
    81.7 KB · Views: 8
  • Screenshot (167).png
    Screenshot (167).png
    79.5 KB · Views: 7
  • Screenshot (168).png
    Screenshot (168).png
    83.8 KB · Views: 6
  • Screenshot (164).png
    Screenshot (164).png
    80.9 KB · Views: 6
  • Screenshot (171).png
    Screenshot (171).png
    90.4 KB · Views: 7
  • Screenshot (170).png
    Screenshot (170).png
    86.2 KB · Views: 7
  • Screenshot (173).png
    Screenshot (173).png
    84.2 KB · Views: 6
  • Screenshot (172).png
    Screenshot (172).png
    96.7 KB · Views: 3
  • Screenshot (169).png
    Screenshot (169).png
    78.5 KB · Views: 3
  • Screenshot (174).png
    Screenshot (174).png
    87.4 KB · Views: 3
  • Screenshot (175).png
    Screenshot (175).png
    79 KB · Views: 3
  • Screenshot (177).png
    Screenshot (177).png
    79 KB · Views: 3
  • Screenshot (176).png
    Screenshot (176).png
    79.7 KB · Views: 3
  • Screenshot (178).png
    Screenshot (178).png
    79.3 KB · Views: 3
  • Screenshot (179).png
    Screenshot (179).png
    90 KB · Views: 4
  • Screenshot (180).png
    Screenshot (180).png
    151.1 KB · Views: 4
  • Screenshot (181).png
    Screenshot (181).png
    100.3 KB · Views: 9

autodidact

Veteran
Veteran
Joined
Nov 13, 2020
Messages
64
Reaction score
45
First Language
English
Primarily Uses
RMMV
Hi,
Now, I wish I knew German, but I think I understand what you are doing in the code.

But I'm not quite clear on the outcome you want. It sounds like you want the player to start the melody from the beginning if they make a mistake in input at any point in the melody.

If that is the case, it looks like you just need to reset variable #20 "Piano" back to 0 inside an else statement after each "Piano" variable check. You actually already did that in Common Event #12.

So Common Event #8 would look like this (added an else statement):
1631860587655.png

If I misunderstood, my apologies. And good job so far!
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
4,514
Reaction score
1,734
First Language
Dutch
Primarily Uses
RMMV
you use far more common events when needed, you can check
a variable to check the song if it's correct or not, you can take
a look to my Ocarina tutorial how it is setted up.

you can use any instruments and letters (if using a keymapper)
everywhere on the map (but you can also use it on certain parts
if you link the common event to that event.

it's easier and better control on how your learn the songs or how
to add them to your game.
 

cocola

Villager
Member
Joined
Aug 22, 2021
Messages
8
Reaction score
4
First Language
german
Primarily Uses
RMMV
Thanks for the answers.
I tried putting Else with variable Piano = 0
with no luck. The mod didn't activate.
Yup you're right. I want to reset the variables if the piano key sequence is played wrong. Its hard to manage the variable cause the Keys are linked to the Common Events.
I will try look the ocarina tutorial up.
Maybe I have to use a different plugin to fix it.
 
Last edited:

Quexp

Lifelong Learner
Veteran
Joined
Jun 18, 2018
Messages
561
Reaction score
1,153
First Language
English
Primarily Uses
RMMV
I made a playable piano from their tutorial too! Like you, I think requiring a short sequence to turn a Switch on would be cool.

I think it could be done with Conditional Branches (If Common Event x...) but it looks like more work than I'm up for. If I'm on the right track, I'd have to put conditional branches under other conditional branches.

Anyways, I don't know if my thought is a solution but I hope it helps point you in the right direction.
 

cocola

Villager
Member
Joined
Aug 22, 2021
Messages
8
Reaction score
4
First Language
german
Primarily Uses
RMMV
That's a good idea.
I have thought too that I could solve it with conditional branches (common event). The thing is that I don't know to write it on a the Script there is definitively a script for it. I search for it on the rpgmakerweb with no luck. If the buttons have to be linked to a comment event than a variable or switch it would be much more easier to control.
I tried it with conditional branches too but it doesn't give me the outcome I want.
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
2,268
Reaction score
1,222
First Language
English
Primarily Uses
RMMV
Not super relevant, but H isn't a real key
It is in German. The German pitch naming system uses B to reference the pitch B flat and H to reference B natural.

That's how Bach has lots of compositions (including an entire fugue) containing his "signature," B flat, A, C, B natural.
 

Latest Threads

Latest Profile Posts

Doing RPG Maker News for 24th October 2021

I'm not sure how to do this so I'll just ask here, Wheres a good place to post your game (for free) once its done?
I don't know what I'm doing :D
So got my hearing tested to see if it was the cause of my mishearing what people say. Test showed no problems but talked with the doctor about anxiety and ADHD causing hearing issues and she agreed and also added that some people hear things differently. With my anxiety cause I am in fight or flight I pay attention to all the sounds in the area so body knows when react. Can't pay attention to one source.

Forum statistics

Threads
116,060
Messages
1,095,410
Members
151,421
Latest member
Coder_Make
Top