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.
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.
#===============================================================================
# * 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!",
# * 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!",