cocola

Villager
Member
Joined
Aug 22, 2021
Messages
7
Reaction score
3
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,085
Reaction score
3,813
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
7
Reaction score
3
First Language
german
Primarily Uses
RMMV
Here you go.
 

Attachments

  • Screenshot (165).png
    Screenshot (165).png
    70 KB · Views: 7
  • Screenshot (166).png
    Screenshot (166).png
    81.7 KB · Views: 7
  • Screenshot (167).png
    Screenshot (167).png
    79.5 KB · Views: 6
  • Screenshot (168).png
    Screenshot (168).png
    83.8 KB · Views: 5
  • Screenshot (164).png
    Screenshot (164).png
    80.9 KB · Views: 5
  • Screenshot (171).png
    Screenshot (171).png
    90.4 KB · Views: 6
  • Screenshot (170).png
    Screenshot (170).png
    86.2 KB · Views: 6
  • Screenshot (173).png
    Screenshot (173).png
    84.2 KB · Views: 5
  • 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: 8

autodidact

Veteran
Veteran
Joined
Nov 13, 2020
Messages
62
Reaction score
41
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,500
Reaction score
1,728
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
7
Reaction score
3
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
554
Reaction score
1,140
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
7
Reaction score
3
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,211
Reaction score
1,176
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 Posts

Latest Profile Posts

Finally got my website fixed and the security sorted so it's been a productive day. Can I go to sleep now? I mean... I don't need to work right?
It's always a good idea to refresh yourself on what your plugins do. I'm working on a map with opening walls, and I was about to tear my hair out over how much image editing and hand-constructing of autotiles I'd have to do, when I looked again and saw @Shaz 's Tile Changer could copy areas from another map.
"sorry it took me so long to respond" - can we please agree not to say that anymore unless it actually took a long time?! (Like 36hrs at least) I mean, I'm running out of funny responses here xD
Ugh... 4:53AM over here and I can't sleep so why not just game make.
I just love the MV feature that allows you to create your own animations!

Forum statistics

Threads
115,919
Messages
1,094,017
Members
151,174
Latest member
sardin
Top