Ocarina songs
#1
Posted 10 June 2009 - 08:18 PM
I know everyone would want this script if someone made it. Ocarina songs would jsut about be the best thing for Zelda Classic ever.
#2
Posted 11 June 2009 - 02:19 PM
#3
Posted 11 June 2009 - 02:49 PM
#4
Posted 11 June 2009 - 03:13 PM
#6
Posted 11 June 2009 - 06:43 PM
#7
Posted 16 June 2009 - 02:56 AM
#8
Posted 23 June 2009 - 11:18 AM
#9
Posted 23 June 2009 - 03:24 PM
#10
Posted 25 June 2009 - 07:59 AM
2,3,5,7,11
Everytime you play a note, it multiplies by the previous note, 0 to start and that is added to the most recent of 9 totals.
Each time they move down one before playing the note.
The first of the nine is not counted but is used because it can be subtracted from each consecutive total to find the total of the eight notes.
The most recent notes that are as long as each song are checked, after subtracting the preceding total multiplied by the number of notes in the song.
if one of 6 different totals come up (1 for each preceding note, and 1 for nothing), then the song is played. Correct me if I'm wrong but each song should be individual, because it multiplies primes and adds them.
#11
Posted 25 June 2009 - 11:38 AM
Perhaps I just misunderstood the algorithm you described, but a much better way in my opinion would be to use arrays to store notes, and just compare the notes played array with the true song array to see if the song has been played correctly. I was actually working on creating "a library" where it is simple for a person to add any song they want, and then all they would have to do is write a function to be executed when that song is played correctly. I haven't looked at it in about a week, maybe I will post what I did so far later so someone else can get some ideas from it / modify it for their own purposes / etc.
#12
Posted 25 June 2009 - 02:06 PM
Which gives me an idea.
Each song is an array. In every screen, you would reserve an FFC for "Secret Combo data." This FFC sets a few things- what song activates it, what flag type to replace, which combo replaces these, etc.
When a song match is detected in the global ocarina playing script, the ocarina repeats the song, (like in OoT, MM, and WW) stops playing, and passes the song number to the FFC script, which will react if it is the appropriate song.
#13
Posted 25 June 2009 - 05:08 PM
#14
Posted 25 June 2009 - 11:37 PM
#15
Posted 27 June 2009 - 11:35 AM
It only does taht for repeating songs, and songs that start and end with teh same letter.
EDIT: Fixed the song of healing/saria's song thing. If no button is played before, it's multiplied by 1, not 0. So now they would differ by 4
Edited by L33TSkillz, 27 June 2009 - 07:58 PM.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users