VX ACE - ADDING MENU OPTIONS

Posts

Pages: 1
I am trying to add a travel option for my main menu in the game. Right now my code looks a bit like this:

Under Scene_Menu

#--------------------------------------------------------------------------
# * Create Command Window
#--------------------------------------------------------------------------
def create_command_window
@command_window = Window_MenuCommand.new
@command_window.set_handler(:item, method(:command_item))
@command_window.set_handler(:skill, method(:command_personal))
@command_window.set_handler(:equip, method(:command_personal))
@command_window.set_handler(:status, method(:command_personal))
@command_window.set_handler(:formation, method(:command_formation))
@command_window.set_handler(:save, method(:command_save))
@command_window.set_handler(:game_end, method(:command_game_end))
@command_window.set_handler(:travel, method(:command_original))
@command_window.set_handler(:cancel, method(:return_scene))
end

And Under Window_MenuCommand

#--------------------------------------------------------------------------
# * For Adding Original Commands
#--------------------------------------------------------------------------
def add_original_commands
add_command(Vocab::travel, :original, original_enabled)
end

Basically I want the option to allow the player to warp to a set location whenever they press this option in the menu. Any ideas?
SunflowerGames
The most beautiful user on RMN!
13323

Yanfly has a script for menu's. From there it might be just be a case of using common events for which location is selected. (ie. each location you select being its own common event.)

You could probably easily do this with key items as well, but if you want a whole section in the menu for it, it may be a bit more complex.

Thanks for the suggestion. I've used some of his scripts before some I'm trying to get adjusted to this one.
Right now I've added in this line to the Common Event Commands:
:event_3 => { "Ship", 0, 0, 3],

However I keep getting the error-

Unexpected ',', expecting tASSOC
:event_3 => { "Ship", 0, 0, 3],
Thanks for the suggestion. I've used some of his scripts before some I'm trying to get adjusted to this one.
Right now I've added in this line to the Common Event Commands:
:event_3 => { "Ship", 0, 0, 3],

However I keep getting the error-

Unexpected ',', expecting tASSOC
:event_3 => { "Ship", 0, 0, 3],
Pages: 1