I'm trying to program in a custom battle system that makes you repeat a melody to do magic attacks, but it isn't working correctly at all. I deleted my code, but basically, it went:
Common Event
Condition Switch: Music Battle
Fadeout BGM
Wait 1.5 Seconds
Play SE (the melody to be copied)
Wait 1.5 Seconds
Key Input Processing (Number Keys, Variable 36, Wait)
Conditional Branch: Variable 36 = 13
If yes: Play SE: (note)
Wait 0.5 Seconds
Jump to Label 1
If no: Jump to Label 11
Label 11
Play SE: (fail sound)
Wait: 0.5 Seconds
Control Switches: Music Battle: OFF
Label 1
Key Input Processing (Number Keys, Variable 36, Wait)
Conditional Branch: Variable 36 = 12
If yes: Play SE: (note)
Wait 0.5 Seconds
Jump to Label 2
If no: Jump to Label 11
Label 2
Key Input Processing (Number Keys, Variable 36, Wait)
Conditional Branch: Variable 36 = 11
If yes: Play SE: (note)
Wait 0.5 Seconds
Jump to Label 3
If no: Jump to Label 11
Label 3
Play SE: (complete)
Wait 0.5 Seconds
Control Switches: Music Battle OFF
I want it to take place in battle and be triggered by a Switch Skill to trigger the common event. Any help is appreciated!
Common Event
Condition Switch: Music Battle
Fadeout BGM
Wait 1.5 Seconds
Play SE (the melody to be copied)
Wait 1.5 Seconds
Key Input Processing (Number Keys, Variable 36, Wait)
Conditional Branch: Variable 36 = 13
If yes: Play SE: (note)
Wait 0.5 Seconds
Jump to Label 1
If no: Jump to Label 11
Label 11
Play SE: (fail sound)
Wait: 0.5 Seconds
Control Switches: Music Battle: OFF
Label 1
Key Input Processing (Number Keys, Variable 36, Wait)
Conditional Branch: Variable 36 = 12
If yes: Play SE: (note)
Wait 0.5 Seconds
Jump to Label 2
If no: Jump to Label 11
Label 2
Key Input Processing (Number Keys, Variable 36, Wait)
Conditional Branch: Variable 36 = 11
If yes: Play SE: (note)
Wait 0.5 Seconds
Jump to Label 3
If no: Jump to Label 11
Label 3
Play SE: (complete)
Wait 0.5 Seconds
Control Switches: Music Battle OFF
I want it to take place in battle and be triggered by a Switch Skill to trigger the common event. Any help is appreciated!