Can't insert menu script (RMXP)

Lobeila

Villager
Member
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:

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

ZirconStorms

Veteran
Veteran
Joined
Dec 22, 2014
Messages
359
Reaction score
111
First Language
English
Primarily Uses
RMVXA
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:

#==============================================================================
# ** 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!
You should probably not repost scripts without crediting the person who made it.
https://www.rpgmakercentral.com/topic/30246-witchs-house-menu/

This is for RPG Maker VX Ace, not XP.
 

Lobeila

Villager
Member
Joined
Apr 11, 2019
Messages
6
Reaction score
0
First Language
German
Primarily Uses
RMXP
Oh ok, sorry... I guess I'll post in the request forum then.
Thank you for information :thumbsup-left:
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.

Forum statistics

Threads
106,034
Messages
1,018,447
Members
137,820
Latest member
georg09byron
Top