#--------------------------------------------------------------------------
# * Get Song : Get a Song
#--------------------------------------------------------------------------
def get_song(song_id)
# Return if Song Doesn't Exist
return unless Game_Instrument::Songs.keys.include?(song_id)
# Return if song already known
return if @songs.include?(song_id)
# Push Song into the list
@songs << song_id
end
While I try using the Ocarina the error appear.
Script 'Instrument' line 134: NoMethodError occurred
undefined method 'include?' for nil:NilClass
(For some reason, most of the errors I have with script is NoMethodError)
# * Get Song : Get a Song
#--------------------------------------------------------------------------
def get_song(song_id)
# Return if Song Doesn't Exist
return unless Game_Instrument::Songs.keys.include?(song_id)
# Return if song already known
return if @songs.include?(song_id)
# Push Song into the list
@songs << song_id
end
While I try using the Ocarina the error appear.
Script 'Instrument' line 134: NoMethodError occurred
undefined method 'include?' for nil:NilClass
(For some reason, most of the errors I have with script is NoMethodError)