# Choices Information Array
Choices = ["Information1", "Information2", "Information3", "Information4",
"Information5"]
# Scenes to call for Choices
Choice_Scenes = [Scene_Information_A, Scene_Information_B, Scene_Information_C, Scene_Information_D, Scene_Information_E]
I keep getting a
'Script 'Choices' line 16: NameError occured.
unintialized constant Choice::Scene_Information_A'
error.
I just don't get it. It called up the item script when it was Scene_Item. Why won't it call my Information_A, Information_B, Information_C, Information_D, or Information_E scripts?
EDIT : Here is my Information_A script.
module INFO_A
NAME = "Information 1"
FONT_SIZE = 24
INFORMATION_A1 = "Character 1 likes to : Eat Cake"
INFORMATION_A2 = "Character 2 likes to : Go Hiking"
INFORMATION_A3 = "Character 3 likes to : Swim Naked"
INFORMATION_A4 = "Character 4 likes to : Party Hard"
INFORMATION_A5 = "Character 5 likes to : Pilot Spaceships"
INFORMATION_A6 = "Character 6 likes to : Tend Animals"
INFORMATION_A7 = "Character 7 likes to : Make Love"
INFORMATION_A8 = "Character 8 likes to : Practice Shapechanging"
INFORMATION_A9 = "Character 9 likes to : Learn Calligraphy"
INFORMATION_A10 = "Character 10 likes to : Party X-TRME"
INFORMATION_A11 = "Character 11 likes to : Fly Fast"
INFORMATION_A12 = "Character 12 likes to : Do Fashion"
INFORMATION_A13 = "Character 13 likes to : Fight Lots"
INFORMATION_A14 = "Character 14 likes to : Be Helpful"
end
class Window_Information_A < Window_Selectable
include INFO_A
def visible_line_number
14
end
def initialize
super(0, line_height*2, Graphics.width, Graphics.height-line_height*2)
refresh
end
def refresh
contents.clear
contents.font.size = FONT_SIZE
draw_information_a(0, 0)
end
end
def draw_information_a(x, y)
draw_text(x, y, contents.width, line_height, INFORMATION_A1)
draw_text(x, y + line_height, contents.width, line_height, INFORMATION_A2)
draw_text(x, y + line_height*2, contents.width, line_height, INFORMATION_A3)
draw_text(x, y + line_height*3, contents.width, line_height, INFORMATION_A4)
draw_text(x, y + line_height*4, contents.width, line_height, INFORMATION_A5)
draw_text(x, y + line_height*5, contents.width, line_height, INFORMATION_A6)
draw_text(x, y + line_height*6, contents.width, line_height, INFORMATION_A7)
draw_text(x, y + line_height*7, contents.width, line_height, INFORMATION_A8)
draw_text(x, y + line_height*8, contents.width, line_height, INFORMATION_A9)
draw_text(x, y + line_height*9, contents.width, line_height, INFORMATION_A10)
draw_text(x, y + line_height*10, contents.width, line_height, INFORMATION_A11)
draw_text(x, y + line_height*11, contents.width, line_height, INFORMATION_A12)
draw_text(x, y + line_height*12, contents.width, line_height, INFORMATION_A13)
draw_text(x, y + line_height*13, contents.width, line_height, INFORMATION_A14)
end
class Window_Information_A_Title < Window_Selectable
include INFO_A
def initialize
super(0, 0, Graphics.width, line_height*2)
refresh
end
def refresh
contents.clear
draw_text(0, 0, contents.width, line_height, NAME, 1)
end
end
class Scene_Information_A < Scene_Base
def start
super
create_head_window
create_info_window
end
def create_head_window
@inform_title = Window_Information_A_Title.new
@inform_title.viewport = @viewport
end
def create_info_window
@info_window = Window_Information_A.new
@info_window.viewport = @viewport
end
def update
super
if Input.trigger?(:B)
Sound.play_cancel
return_scene
end
end
end
Information_A has info about characters 1-14, B 15-28, C 29-42... etc.