Rewrote load game screen inc. supporting multiple save files, allowed \PN and \v[42] in map names and Town Map point names

This commit is contained in:
Maruno17
2024-10-20 23:46:56 +01:00
parent 89c344dc00
commit 6152b75cb1
21 changed files with 781 additions and 60 deletions

View File

@@ -186,6 +186,8 @@ class PokemonRegionMap_Scene
next if point[0] != x || point[1] != y
return "" if point[7] && (@wallmap || point[7] <= 0 || !$game_switches[point[7]])
name = pbGetMessageFromHash(MessageTypes::REGION_LOCATION_NAMES, point[2])
name = name.gsub(/\\PN/, $player.name)
name = name.gsub(/\\v\[(\d+)\]/) { |num| $game_variables[$~[1].to_i].to_s }
return (@editor) ? point[2] : name
end
return ""
@@ -336,7 +338,7 @@ class PokemonRegionMapScreen
end
def pbStartScreen
@scene.pbStartScene($DEBUG)
@scene.pbStartScene # ($DEBUG)
ret = @scene.pbMapScene
@scene.pbEndScene
return ret