- Joined
- Apr 11, 2019
- Messages
- 6
- Reaction score
- 0
- First Language
- German
- Primarily Uses
- RMXP
Hello guys,
since I don't really get how to write own scripts, I have to search for fitting ones.
I want to have a simple menu like that from the witch's house and found this:
I copied and pasted it into a new project at the point scene_menu, but then there's this error occuring:
What could that error be and how can it be avoided?
Thanks in advance for any help!
since I don't really get how to write own scripts, I have to search for fitting ones.
I want to have a simple menu like that from the witch's house and found this:
#==============================================================================
# ** Scene_Menu
#------------------------------------------------------------------------------
# This class performs the menu screen processing.
#==============================================================================
class Scene_Menu < Scene_MenuBase
alias :mrts_wh_start :start
def start
mrts_wh_start
move_windows
end
def create_gold_window ; end
def move_windows
@command_window.y = Graphics.height - @command_window.height - 20
@command_window.x += 10
@status_window.y = Graphics.height - @status_window.height - 10
@status_window.x += 20
end
end
class Window_MenuStatus < Window_Selectable
#--------------------------------------------------------------------------
# * Get Window Width
#--------------------------------------------------------------------------
def window_width
Graphics.width - 180
end
#--------------------------------------------------------------------------
# * Get Window Height
#--------------------------------------------------------------------------
def window_height
96 + standard_padding * 2
end
def draw_actor_simple_status(actor, x, y)
draw_actor_name(actor, x, y + 12)
draw_actor_level(actor, x, y + line_height * 1 + 12)
draw_actor_hp(actor, x + 100, y + line_height * 1 + 12)
end
end
class Window_MenuCommand < Window_Command
#--------------------------------------------------------------------------
# * Get Window Width
#--------------------------------------------------------------------------
def window_width
return 140
end
#--------------------------------------------------------------------------
# * Create Command List
#--------------------------------------------------------------------------
def make_command_list
add_main_commands
add_game_end_command
end
#--------------------------------------------------------------------------
# * Add Main Commands to List
#--------------------------------------------------------------------------
def add_main_commands
add_command(Vocab::item, :item, main_commands_enabled)
end
#--------------------------------------------------------------------------
# * Add Exit Game to Command List
#--------------------------------------------------------------------------
def add_game_end_command
add_command(Vocab::game_end, :game_end)
end
end
# ** Scene_Menu
#------------------------------------------------------------------------------
# This class performs the menu screen processing.
#==============================================================================
class Scene_Menu < Scene_MenuBase
alias :mrts_wh_start :start
def start
mrts_wh_start
move_windows
end
def create_gold_window ; end
def move_windows
@command_window.y = Graphics.height - @command_window.height - 20
@command_window.x += 10
@status_window.y = Graphics.height - @status_window.height - 10
@status_window.x += 20
end
end
class Window_MenuStatus < Window_Selectable
#--------------------------------------------------------------------------
# * Get Window Width
#--------------------------------------------------------------------------
def window_width
Graphics.width - 180
end
#--------------------------------------------------------------------------
# * Get Window Height
#--------------------------------------------------------------------------
def window_height
96 + standard_padding * 2
end
def draw_actor_simple_status(actor, x, y)
draw_actor_name(actor, x, y + 12)
draw_actor_level(actor, x, y + line_height * 1 + 12)
draw_actor_hp(actor, x + 100, y + line_height * 1 + 12)
end
end
class Window_MenuCommand < Window_Command
#--------------------------------------------------------------------------
# * Get Window Width
#--------------------------------------------------------------------------
def window_width
return 140
end
#--------------------------------------------------------------------------
# * Create Command List
#--------------------------------------------------------------------------
def make_command_list
add_main_commands
add_game_end_command
end
#--------------------------------------------------------------------------
# * Add Main Commands to List
#--------------------------------------------------------------------------
def add_main_commands
add_command(Vocab::item, :item, main_commands_enabled)
end
#--------------------------------------------------------------------------
# * Add Exit Game to Command List
#--------------------------------------------------------------------------
def add_game_end_command
add_command(Vocab::game_end, :game_end)
end
end
I copied and pasted it into a new project at the point scene_menu, but then there's this error occuring:
What could that error be and how can it be avoided?
Thanks in advance for any help!

