cocola

Villager
Member
Joined
Aug 22, 2021
Messages
6
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,081
Reaction score
3,802
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
6
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,492
Reaction score
1,723
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
6
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,137
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
6
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,173
Reaction score
1,163
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

One uncomfortable truth that has withstood the test of time, is how most people will stand by while they see a crime happening, unless it's illegal to stand by. We probably wouldn't have stories about "special heroes" or games about heroes if the "everyday common folk" were largely capable of being heroes. Heroes face dangers that most people are not willing to.
I'm having toooo much fun designing the new MP (Mental Psyche) system. I've only worked it out for enemies so far, but it's fun to stun them, then go after their MP and delete them instead to farm for better item drops.
anyone know of a place I can promote my game? sorta like game awards but for indie devs, like a place where I can drop a trailer and like stir up some hype
Doing RPG Maker News for 17th October 2021

That moment when you came up with a very good game title, but when you searched it, it has already been used... T.T

Forum statistics

Threads
115,881
Messages
1,093,685
Members
151,124
Latest member
jonahcisco
Top