赞 | 0 |
VIP | 1 |
好人卡 | 1 |
积分 | 1 |
经验 | 1826 |
最后登录 | 2012-6-25 |
在线时间 | 25 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 25 小时
- 注册时间
- 2008-11-8
- 帖子
- 145
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
我用了这个脚本后,战斗时显示同伴窗口不见了!!!该如何修改?
#==============================================================================
# ■ Window_BattleStatus
#------------------------------------------------------------------------------
# 显示战斗画面同伴状态的窗口。
#==============================================================================
class Window_BattleStatus < Window_Base
#--------------------------------------------------------------------------
# ● 初始化对像
#--------------------------------------------------------------------------
#$data_system_level_up_me = "Audio/ME/升级音乐"
def initialize
super(80, 330, 200, 200)
self.contents = Bitmap.new(width - 10, height - 32)
self.opacity = 0
self.contents.font.name = "Arial Black"
@level_up_flags = [false, false, false, false]
refresh
end
#--------------------------------------------------------------------------
# ● 释放
#--------------------------------------------------------------------------
def dispose
super
end
#--------------------------------------------------------------------------
# ● 设置升级标志
# actor_index : 角色索引
#--------------------------------------------------------------------------
def level_up(actor_index)
@level_up_flags[actor_index] = true
end
#--------------------------------------------------------------------------
# ● 刷新
#--------------------------------------------------------------------------
def refresh
self.contents.clear
@item_max = $game_party.actors.size
for i in 0...$game_party.actors.size
actor = $game_party.actors[i]
actor_x = i * 150
a = actor.id.to_s + "_b"
bitmap=Bitmap.new("Graphics/pictures/#{a}")
src_rect = Rect.new(0, 0, bitmap.width, bitmap.height)
self.contents.blt(50+ x , 320, bitmap, src_rect)
#cinderelmini
#draw_actor_hp(@actor, 96, 112, 172)
#draw_actor_sp(@actor, 96, 144, 172)
#由于前面没有“@actor = actor”这句,所以这里的"actor"前不要加"@"
cinderelmini_hp(actor, actor_x, 32+10)
cinderelmini_sp(actor, actor_x, 64+10)
#cinderelmini
#draw_actor_hp(actor, actor_x, 32, 120)
#draw_actor_sp(actor, actor_x, 64, 120)
if @level_up_flags[i]
self.contents.font.color = normal_color
self.contents.draw_text(actor_x, 96, 120, 32, "LEVEL UP!")
else
draw_actor_state(actor, actor_x, 96)
end
end
end
#==============================================================================
# ■ Window_BattleStatus
#==============================================================================
class Window_BattleStatus < Window_Base
#--------------------------------------------------------------------------
# ● 初始化
#--------------------------------------------------------------------------
def refresh
@item_max = $game_party.actors.size
for i in 0...$game_party.actors.size
actor = $game_party.actors[i]
case i
when 0
x = 250
y = 390
when 1
x = 390
y = 340
when 2
x = 480
y = 300
when 3
x = 550
y = 270
end
end
end
end
#--------------------------------------------------------------------------
# ● 刷新画面
#--------------------------------------------------------------------------
def update
super
# 主界面的不透明度下降
if $game_temp.battle_main_phase
self.contents_opacity =255 if self.contents_opacity =255#> 191-= 4
else
self.contents_opacity =255 if self.contents_opacity =255#< 255 += 4
end
end
end
keshom于2011-1-2 12:14补充以下内容:
显示同伴生命值和真气值的窗口 |
|