Transfer Player

I'm not sure if this is the right place but...

I'm trying to code something that make the player able to transfer from a map to a other with a option window (kind like what TheUnproPro make with is monsterbook). The game run correctly but when I click the option for transfer to the next map the song from that map start but I'm stuck in my previous map and I can't move and the option windows is still there.

Someone can help me with that?
Is your option window done via script or event? If script, do you actually do a return to scene command? Might help to include the script so we can see what you're doing - otherwise we can only guess at what you're doing wrong. If you do post a script, make sure you enclose it in code tags (to keep the formatting and make it easier to read), and enclose the whole lot in spoiler tags if it's a long script.


I'm not sure if this should go in RGSSx Script Support or VX Ace Support - it will depend on whether you're using a script to do it or an event. In any case, it doesn't belong here 😉 I'll move it when you post some answers.
I'm using this script. 
 

Code:
class Transfer_command < Window_Command  def initialize    super(0, 0)  end  def window_width    return 160  end  def window_height    return 416  end  def make_command_list    add_command("Next Map",   :Next_Zone) if  $game_party.item_number($data_items[26]) > 0    add_command("Back",   :back)  endendclass Scene_Transfer < Scene_MenuBase    def start    super    make_command_window    @command_window.opacity=250    @command_window.back_opacity=50  end    def make_command_window    @command_window=Transfer_command.new    @command_window.set_handler(:Next_Zone,      method(:transfer_Next_Zone))    @command_window.set_handler(:back,      method(:return_scene))    @command_window.set_handler(:cancel,    method(:return_scene))  end    def transfer_Next_Zone    $game_player.reserve_transfer(9, 38, 41, 5)    $game_player.perform_transfer  end    end
I think you still need a return_scene even if they choose transfer - you've got to have some method of getting out of the window and back to the map.


I don't have Ace open and am about to go out, but have you set the transfer stuff to happen the same way Game_Interpreter does it when you do the Transfer event command? Nothing else missing from there?


The other thing you could do is just turn on a switch when they choose to transfer and then return to the scene, and have an autorun common event conditioned by that switch that does a Transfer Player command then turns the switch off again. That will allow the existing map/player/interpreter functionality to handle the actual transfer, while all your script does is trigger it to happen.

Original thread: https://forums.rpgmakerweb.com/threads/transfer-player.22173/