Having trouble with Hime's Region name script.

Panda_Artist

Humble RPG Fan
Veteran
Joined
Dec 22, 2018
Messages
106
Reaction score
5
First Language
Portuguese
Primarily Uses
RMVXA
Hello Everyone.

I seem to be having some technical difficulties with Hime's Region name script.


It allows you to assign a name (among other neat stuff )to each region through notetags. However, in my game I only use regions for my world map.

Here is the issue: When I walk my actors around the world map the map display name changes normally as I had assigned using this script, however, when I teleport my actors to other maps where there is no region assignment, even though I have given these mas specific map display names, the displayed name stays the same as the previous world map region the actors have been to, rather than the specific map display name I have assigned for that particular new map.

Is there any way to fix this?

Note: NO REGIONS are used in the other maps other than the world map.
 

hinola

Veteran
Veteran
Joined
Jun 27, 2015
Messages
49
Reaction score
67
First Language
Français
Primarily Uses
RMVXA
Here are two scripts to patch the problem, that we made on a discord
I post the answer here if someone have the same problem

Ruby:
#==============================================================================
# ** Game_Player
#------------------------------------------------------------------------------
#  Patch to set the last_region_id back to 0
#==============================================================================

class Game_Player
  alias_method :reserve_transfer_before_region_patch, :reserve_transfer
  def reserve_transfer(map_id, x, y, d = 2)
    reserve_transfer_before_region_patch(map_id, x, y, d)
    @last_region_id = 0
  end
end

#==============================================================================
# ** Game_Map
#------------------------------------------------------------------------------
#  Patch to set the last_region_id back to 0
#==============================================================================
class Game_Map
  #--------------------------------------------------------------------------
  # * Setup
  #--------------------------------------------------------------------------
  alias_method :setup_before_region_patch, :setup
  def setup(map_id)
    setup_before_region_patch(map_id)
    @region_name = nil
  end
end
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Currently playing final fantasy 3 on DS. It's an old one but its a classic.
BCj
Gotta love some gossip :D
Please do not buy games from g2a.com. The sellers have total power over you. The website has many scam sellers. It looks cheap, but the key code didn't work.
A while back I was having fun making my own custom tiles, then I hit carpet... why is it so difficult!? Lol.

Forum statistics

Threads
97,946
Messages
948,074
Members
129,200
Latest member
jakeofblades
Top