Jest to skrypt który daje ukazuje nazwę lokacji podczas gry .
Screen:
Sorry za zły screen wystarczy powiększyć .
Spoiler:
Kod:
#===============================================================#
# Map HUD v0.1 #
# By Carbajosa #
# A Simple Script that lets you show the name of the map at the #
# bottom-left of the screen... My first script :D #
#===============================================================#
# The following lines are editable #
#===============================================================#
module Show_Map_HUD
# Put the Map_IDs you want to exlude automatic map showing here.
Do_Not_Show_Map = [3] #Separate it with commas. e.g. Do_Not_Show_Map = [1, 9, 12, 1000000000000000000]
# Change the number here to change the size of the font default = 12
Font_Size = 12 # Suggested font size is 12-18
Y_Coord = 340 # Y-Coordinates of the hud. 0 for the upper-left corner, 340 to allign it at the lower-left corner
#Note: The opacity is 0, will be fixed on future released X__X Im a total noob.
end
#===============================================================#
# End of Configuration #
#===============================================================#
#===============================================================#
# Please do not change the lines beyond this point :D #
#===============================================================#
class Map_HUD < Window_Base
#=========================================#
# INITIALIZE METHOD #
#=========================================#
def initialize
super (0, Show_Map_HUD::Y_Coord, 200, 150)
self.contents = Bitmap.new(width-32, height-32) #This will let you draw text within
self.contents.font.size = Show_Map_HUD::Font_Size
self.opacity = 0
refresh
end
#=========================================#
# UPDATE #
#=========================================#
def update
refresh
end
end
#================================================================#
# GAME MAP SETUP #
#================================================================#
class Game_Map
def name
map_infos = load_data("Data/MapInfos.rvdata")
name = map_infos[@map_id].name
name.gsub!(/\\N\[([0-9]+)\]/i) { $game_actors[$1.to_i].name }
return name
end
end
class Scene_Map
# Aliases
alias don_map_main main
alias don_map_update update
alias don_map_terminate terminate
# defining main, update and terminate
def main
@MN = Map_HUD.new
@DM = $game_map.name
don_map_main
end
def update
@MN.update #if @DM >= $game_map.name
don_map_update
end
def terminate
@MN.dispose
don_map_terminate
end
end
________________________ _________________
_________________
Jak kraść to milinony...
Jak ruchać to księżniczki...
_________________
_________________
_________________
Nie możesz pisać nowych tematów Nie możesz odpowiadać w tematach Nie możesz zmieniać swoich postów Nie możesz usuwać swoich postów Nie możesz głosować w ankietach Nie możesz załączać plików na tym forum Możesz ściągać załączniki na tym forum