RPG Maker Forums

I am trying to relocate the player to another location on the same map right after the player entered the map and before the screen fades in. This is what I got:

note: use map-notetag like: <auto-loc: 10,10>

#===============================================================================# Module Nap::Transfer#===============================================================================module Nap module Transfer module Conf MAP_AUTO_LOC_REGEX = /<auto-loc:((.*?))>/ix end endend#===============================================================================# Class Game Map#===============================================================================class Game_Map alias nap_transfer_auto setup def setup(nid) nap_transfer_auto(nid) # Analyse the map-notetag and find out where the player needs to be # transferred to as well as his (new) facing direction. note_lines = note.split(/\n/) new_location = nil note_lines.each { |l| if l.delete(' ') =~ Nap::Transfer::Conf::MAP_AUTO_LOC_REGEX new_location = $1.split(',') new_location[0] = new_location[0].to_i new_location[1] = new_location[1].to_i if new_location.length == 3 new_location[2] = new_location[2].to_i else new_location[2] = $game_player.direction end break end } # Perform the transfer if !new_location.nil? $game_player.moveto(new_location[0], new_location[1]) # printing player location here shows that the player has indeed been moved. # <<<<<<<<<<<<<<<<<< $game_player.set_direction(new_location[2]) # printing player location here shows that the player has indeed been moved. # <<<<<<<<<<<<<<<<<< end endendThe problem is that he is moved back by the original code after I put him on the correct location... But I could not find the proper method to alias. If I alias too early then I can't get the map-notetag (couldn't find it through data_system or daa_mapinfos) and if I do it too late then the screen faded in. And when I do it here... it's too early again.

Latest Threads

Latest Posts

Latest Profile Posts

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.
time for a new avatar :)

Forum statistics

Threads
106,018
Messages
1,018,357
Members
137,803
Latest member
andrewcole
Top