Lizzie S's Quest Script Error

Hey there. I'm very new to the RPG Maker VX Ace community (my mom recently brought me this) and I'm getting very into it. I recently installed Lizzie S'S Quest Script (http://www.gdunlimited.net/scripts/rpg-maker-vx-ace/window-scripts/quest-mission-menu <- link) 

I added some missions to the module but whenever I view Quest Two (ID 3) in the Quest Log (the script for that is somewhere in the comments), the game crashes with an error

"Script 'Quests' line 279: NoMethodError ocurred.

undefined method '[]' for nil:NilClass"

Here's what I've done to the script.

Spoiler
#===============================================================================

#  *  Module

#===============================================================================

module Missions

 

  #-----------------------------------------------------------------------------

  #  Mission_Names = { mission_id => "Mission_Name"

  #-----------------------------------------------------------------------------

  Mission_Names = { 0 => "Fetch a Pail of Water",

                    1 => "tch a Pail of Water",

                    2 => "Get me a drink!",

                    3 => "Brand New Bow",

                  }

  #-----------------------------------------------------------------------------

  #  Mission_Desc = { mission_id => ["Description", ["sprite_sheet", index, "name"]]

  #-----------------------------------------------------------------------------

  Mission_Desc = { 0 => ["You have been asked by your mother to fetch a pail of water.",

                                ["Actor2", 1, "Mother"]],

                    1 => ["You have been asked by your mother to fetch a pail of water.",

                                ["Actor2", 1, "Mother"]],

                    2 => ["Get a drink for the thirsty man!", 

                                ["People5", 4, "Man"]],

                    3 => ["The Hunter needs a new bow. The Magic Shop stocks them.",

                                ["Actor5", 1, "Hunter"]],

                    

                        }

  #-----------------------------------------------------------------------------

  # Mission_Objectives = {mission_id => {obj_id => "Objective_text",...  }

  #-----------------------------------------------------------------------------

  Mission_Objectives = { 0 => {0 => "You need to go out and find a bucket, wooden is preferable..",

                               1 => "Find a nice sturdy rope. Not something that will decay easily in water. Just something more like nylon.",

                               2 => "Fetch water from the well."

                               },

                         1 => {0 => "a need to go out and find a bucket, wooden is preferable..",

                               1 => "a a nice sturdy rope. Not something that will decay easily in water. Just something more like nylon.",

                               2 => "Fetch water from the well."

                               },

                         2 => {0 => "You can get a drink from the bar.",

                         3 => {0 => "You can get a bow from the Magic Shop in the well!",

                      

 
What exactly is line 279 in your script?


Because there is an editable region in that script, that line is most probably not the same as the one in the default script.


Anyway...


I don't know if it's a typo here only, but there is something wrong with your 'Mission_Objectives' settings.


You did not close the mission bracket for the 2nd mission (I mean the setting with the 2 as it's key in the settings). That means that there is no mission setting for the mission with 3 as it's key/ID.


And there are several closing brackets missing from the end as well, but I don't know if you just didn't copied all the settings and that is why we can't see those closing brackets, or if they are really missing from your script.


Recheck your settings there, make sure to open and close those brackets correctly.
What exactly is line 279 in your script?

Because there is an editable region in that script, that line is most probably not the same as the one in the default script.

Anyway...

I don't know if it's a typo here only, but there is something wrong with your 'Mission_Objectives' settings.

You did not close the mission bracket for the 2nd mission (I mean the setting with the 2 as it's key in the settings). That means that there is no mission setting for the mission with 3 as it's key/ID.

And there are several closing brackets missing from the end as well, but I don't know if you just didn't copied all the settings and that is why we can't see those closing brackets, or if they are really missing from your script.

Recheck your settings there, make sure to open and close those brackets correctly.
Thank you! I have fixed the error now!

Original thread: https://forums.rpgmakerweb.com/threads/lizzie-ss-quest-script-error.52139/