$LBA = 5 #============================================================================== # ■ Scene_Map #------------------------------------------------------------------------------ # 处理地图画面的类。 #============================================================================== class Scene_Map < Scene_Base #-------------------------------------------------------------------------- # ● 开始処理 #-------------------------------------------------------------------------- alias map_windpwz_start start def start map_windpwz_start @mapz_window = Window_MapZ.new(0, 0) @mapz_window.refresh @mapz_window.hide end alias map_windpwz_update update def update map_windpwz_update @mapz_window.visible = $game_switches[$LBA] end end class Window_MapZ < Window_Base #-------------------------------------------------------------------------- # ● 初始化对像 #-------------------------------------------------------------------------- def initialize(x,y) super(-12, -12, 544+16,416+16) self.opacity = 0 update end #-------------------------------------------------------------------------- # ● 刷新 #-------------------------------------------------------------------------- def refresh self.contents.clear draw_actor_face($game_actors[1],0 ,0 ) #$game_map.screen.pictures[1].show("你要显示的图片名", 0, 0, 0, 100, 100, 255, 0) #若要使用请取消注释 draw_actor_hp($game_actors[1], 80+12, 0, 160) draw_actor_mp($game_actors[1], 80+12, 32, 160) self.contents.font.color = normal_color self.contents.draw_text(84+12, 52+8, 544, 24, "#{$game_actors[1].name} Lv.#{$game_actors[1].level}") self.contents.font.color = system_color #self.contents.draw_text(0+96+120+40, 0-4, 544, 24, "攻:") #self.contents.draw_text(0+96+120+40, 22-4, 544, 24, "防:") #self.contents.draw_text(0+96+120+96+40, 0-4, 544, 24, "异化液") #self.contents.draw_text(-18, 22-4, 544, 24, "G", 2) #self.contents.font.color = normal_color #self.contents.draw_text(-456+96+120+40, 0-4, 544, 24, $game_actors[1].atk, 2) #self.contents.draw_text(-456+96+120+40, 22-4, 544, 24, $game_actors[1].def, 2) #self.contents.draw_text(-36, 22-4, 544, 24, $game_party.gold, 2) self.contents.font.color = text_color(5)#改颜色什么的~ #self.contents.draw_text(0,380 , 534, 24, "异化液:#{ $game_party.gold}") end end #本脚本关联 class Game_CharacterBase def real_move_speed if $game_actors[1].mp>=1 @move_speed + (dash? ? 2 : 0)#前面一个数字是跑步的速度,本来是1。 else @move_speed + (dash? ? 0 : 0) end end end
QQ截图20150103121641.png (168.81 KB, 下载次数: 22)
QQ截图20150105144921.png (19.95 KB, 下载次数: 24)
同步及时扣血和扣魔刷新
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |