Quest Journal Script Error

Hey.


So in-game, I just opened my quest journal and came across this error:


[IMG]https://i.gyazo.com/59767ff52bdbabcfb3f39e9ce869b738.png[/IMG]


It was working before, but recently has completely stopped working. Line 2261 in my script is below, as I've added quests to mine, so it's further down.


Line 2261 is the case reward[0] line

Code:
 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Draw Reward
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  def draw_reward(r_id, y)
    reward = @quest.rewards[r_id]
    case reward[0]

Here is the link to the original script:


http://pastebin.com/4pAz9KG5


Does anyone know what's happening here?
Most likely you broke the quest by adding illegal entries to your quests.


Modern Algebra's Quest Journal is the best, but you need to make the quest data exactly as needed by coding rules, and a lot of users with no programming knowledge fail there.


Please copy your version of the script (the entire script, not just the quest sequence) into a textfile and upload that somewhere for us to check.
Ya it sounds like you made a mistake with your rewards. I'd hazard a guess and say it was an ID number placed improperly or using the wrong array. For example if you meant to use Item 5, 7 but put Armour 5, 7 and there is no Armour 5 or 7. This may have caused the problem. Is there anything you have changed recently since testing it last?

Original thread: https://forums.rpgmakerweb.com/threads/quest-journal-script-error.63356/