|
第一步:
修改Game_Party中的
MAX_MEMBERS = 5
第二步:
在脚本栏下面的外来RDSS插件脚本中插入以下脚本就行了
#==============================================================================
# ■ Window_MenuStatus
#------------------------------------------------------------------------------
# 显示菜单画面和同伴状态的窗口。
#==============================================================================
class Window_MenuStatus < Window_Selectable
#--------------------------------------------------------------------------
# ● 初始化目标
# x : 窗口的X坐标
# y : 窗口的Y坐标
#--------------------------------------------------------------------------
def initialize(x, y)
super(x, y, 384, 416)
refresh
self.active = false
self.index = -1
end
#--------------------------------------------------------------------------
# ● 刷新
#--------------------------------------------------------------------------
def refresh
self.contents.clear
@item_max = $game_party.members.size
for actor in $game_party.members
draw_actor_face(actor, 2, actor.index * 75 + 11, 92)
x = 104
y = actor.index * 75 + WLH / 2
draw_actor_name(actor, x, y)
draw_actor_class(actor, x + 120, y)
draw_actor_level(actor, x, y + WLH * 0.9)
draw_actor_state(actor, x, y + WLH * 1.8)
draw_actor_hp(actor, x + 120, y + WLH * 0.9)
draw_actor_mp(actor, x + 120, y + WLH * 1.8)
end
end
#--------------------------------------------------------------------------
# ● 刷新光标矩形
#--------------------------------------------------------------------------
def update_cursor
if @index < 0 # 没有光标
self.cursor_rect.empty
elsif @index < @item_max # 通常
self.cursor_rect.set(0, 10+@index * 75, contents.width, 75)
elsif @index >= 75 # 自己
self.cursor_rect.set(0, (@index - 75) * 75, contents.width, 75)
else # 全体
self.cursor_rect.set(0, 0, contents.width, @item_max * 75)
end
end
end
#==============================================================================
# ■ Window_BattleStatus
#------------------------------------------------------------------------------
# 显示战斗画面同伴状态的窗口。
#==============================================================================
class Window_BattleStatus < Window_Selectable
#--------------------------------------------------------------------------
# ● 初始化对像
#--------------------------------------------------------------------------
def initialize
super(0, 0, 416, 180)
refresh
self.active = false
end
#--------------------------------------------------------------------------
# ● 释放
#--------------------------------------------------------------------------
def dispose
super
end
#--------------------------------------------------------------------------
# ● 刷新
#--------------------------------------------------------------------------
def refresh
self.contents.clear
@item_max = $game_party.members.size
for i in 0...@item_max
draw_item(i)
end
end
#--------------------------------------------------------------------------
# ● 描绘项目
# index : 项目编号
#--------------------------------------------------------------------------
def draw_item(index)
rect = item_rect(index)
rect.x += 4
rect.width -= 8
rect.y -=4
self.contents.clear_rect(rect)
self.contents.font.color = normal_color
actor = $game_party.members[index]
draw_actor_name(actor, 4, rect.y)
draw_actor_state(actor, 114, rect.y, 48)
draw_actor_hp(actor, 174, rect.y-3, 120)
draw_actor_mp(actor, 310, rect.y-3, 70)
end
end
嘿嘿偶看到版块很冷清就想发个帖也不知道发啥就把这发上来了,这是在网上找到的.(其实是想加主题数)
|
|