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,098
Reaction score
3,859
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: 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
42
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,509
Reaction score
1,730
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
557
Reaction score
1,152
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,261
Reaction score
1,214
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

The new Dune movie reminds me of the game Dune 2 made by Westwood. A quality product on its own, but extremely disloyal to its source of inspiration.
Terrible Writing Advice, you've done it again.
1635026211997.png
Feeling like my new profile picture is nice. Thinking of making it semi-permanent, does any one has an opinion? Does it look too evil or does it work as a public profile picture? :)
Bishiba.png
My washing machine is a supernatural being. I lost a piece of clothing in there a month ago; searched up and down, inside other clothes, nothing. It just vanished.
Today, put in a new load. When I pull it out, the missing clothing is back! And a sock was sacrificed in the process :yswt2:

Forum statistics

Threads
116,031
Messages
1,095,108
Members
151,362
Latest member
Haniel_Sword
Top