赞 0
VIP 0
好人卡 0
积分 1
经验 405
最后登录 2015-11-17
在线时间 3 小时
Lv1.梦旅人
梦石 0
星屑 50
在线时间 3 小时
注册时间 2012-7-27
帖子 5
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
本帖最后由 VIPArcher 于 2015-1-3 16:25 编辑
$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
$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
以后,原本跑步的时候会损耗魔法,但是屏幕不实时跟新,下面的变量显示也一样,比如我的HP-10,但屏幕上的血条任然不变,无法刷新
求屏幕刷新脚本