cocola

Villager
Member
Joined
Aug 22, 2021
Messages
9
Reaction score
5
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,165
Reaction score
4,089
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
9
Reaction score
5
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
73
Reaction score
52
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,689
Reaction score
1,801
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
9
Reaction score
5
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
605
Reaction score
1,243
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
9
Reaction score
5
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,830
Reaction score
1,654
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

Where would you go if you're looking to hire someone on here? I'm in need of a writer to take my story concept and turn it into npcs/dialog in my game.
Evening humans! How goes the game make?
The anime characters we saw 20 years ago,
still have the same age when we see them now.
Somehow it's strange but also beautiful.
It's like no matter how much we change,
there's certain part of ourselves we can reconnect to when we see them again.
Took a long, long time, way longer than it should to be honest...but I've finally finished the big content update to my demo!
Lots of not good things happening IRL but I'm not gonna let this day end like this. Quote time:
"Success is not final, failure is not fatal: it is the courage to continue that counts." -Winston Churchill

So, keep going, lads. Whatever you do keep going. Until next time.

Forum statistics

Threads
117,253
Messages
1,105,881
Members
153,420
Latest member
doldol
Top