I've been playing around with your script but I can't get it to work somehow.
I quickly added 3 missions and added 'Quests' to the menu.
Whenever I try to open it through the menu I get the following error:
Script 'Scene_MissionMenu' line 311: TypeError occurred.
cannot convert nil into String
def draw_item(index)
mis = Mission_Menu
mission_name = @data[index]
x = 4
y = index * 32
rect = Rect.new(x, y, self.width - 32, 32)
self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
if $game_party.mission[mission_name] == 3
self.contents.font.color = Color.new(40, 250, 40, 255)
self.contents.draw_text(x, y, 228, 32, mis::Mission_Name[mission_name])
else
self.contents.font.color = normal_color
self.contents.draw_text(x, y, 228, 32, mis::Mission_Name[mission_name]) #<----- It's this line over here
end
end
I started a new game and called $game_party.mission[0] = 2
I've tried a few things but I can't seem to solve it by myself.
Does anyone know how to solve this problem?