Project1
标题:
队伍人数上限提升啊
[打印本页]
作者:
1187030008
时间:
2013-7-5 11:26
标题:
队伍人数上限提升啊
队伍人数上限能否提升为八人?
妖精图书馆里的八人队伍脚本加进去后,怎么还是四人的哇!!!!!{:2_270:}
作者:
没想好
时间:
2013-7-5 17:00
修改Game_Party的第11行
作者:
1187030008
时间:
2013-7-16 14:28
不行啊!这样的话下面第五个人物显示不了啊!
作者:
1187030008
时间:
2013-7-16 14:35
谢了!我知道了,还要插入那个脚本
作者:
17106231373
时间:
2013-8-27 09:33
是指8人菜单脚本吗?
#==============================================================================
# ○ 多人队伍脚本扩展-八人状态菜单
# ——By.冰舞蝶恋
#------------------------------------------------------------------------------
# ■ 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
if @item_max <= 4
for actor in $game_party.members
draw_actor_face(actor, 2, actor.index * 96 + 2, 92)
x = 104
y = actor.index * 96 + WLH / 2
draw_actor_name(actor, x, y)
draw_actor_class(actor, x + 120, y)
draw_actor_level(actor, x, y + WLH * 1)
draw_actor_state(actor, x, y + WLH * 2)
draw_actor_hp(actor, x + 120, y + WLH * 1)
draw_actor_mp(actor, x + 120, y + WLH * 2)
end
else
for actor in $game_party.members
for a in 0..@item_max-1
if a < 4
draw_actor_face(actor, 2, actor.index * 96 + 2, 92)
x = 4
y = actor.index * 96 + WLH / 2-12
draw_actor_name(actor, x, y)
draw_actor_class(actor, x + 120-24, y)
draw_actor_level(actor, x+120-24, y + WLH * 1)
draw_actor_hp(actor, x + 120-24, y + WLH * 1+24, 72)
draw_actor_mp(actor, x + 120-24, y + WLH * 2+24, 72)
else
draw_actor_face(actor, 2+176, (actor.index - 4) * 96 + 2, 92)
x = 4+176
y = (actor.index - 4) * 96 + WLH / 2-12
draw_actor_name(actor, x, y)
draw_actor_class(actor, x + 120-24, y)
draw_actor_level(actor, x+120-24, y + WLH * 1)
draw_actor_hp(actor, x + 120-24, y + WLH * 1+24, 72)
draw_actor_mp(actor, x + 120-24, y + WLH * 2+24, 72)
end
end
end
end
end
#--------------------------------------------------------------------------
# ● 更新光标
#--------------------------------------------------------------------------
def update_cursor
if @item_max <= 4
if @index < 0 # 无光标
self.cursor_rect.empty
elsif @index < @item_max # 一般
self.cursor_rect.set(0, @index * 96, contents.width, 96)
elsif @index >= 100 # 使用本身
self.cursor_rect.set(0, (@index - 100) * 96, contents.width, 96)
else # 全体
self.cursor_rect.set(0, 0, contents.width, @item_max * 96)
end
else
if @index < 0 # 无光标
self.cursor_rect.empty
elsif @index < @item_max # 一般
if @index < 4
self.cursor_rect.set(0, @index * 96, 352 / 2, 96)
else
self.cursor_rect.set(352 / 2, (@index - 4) * 96, 352 / 2, 96)
end
elsif @index >= 100 # 使用本身
if @index-100 < 4
self.cursor_rect.set(0, (@index - 100) * 96, 352 / 2, 96)
else
self.cursor_rect.set(352 / 2, (@index - 100 - 4) * 96, 352 / 2, 96)
end
else # 全体
self.cursor_rect.set(0, 0, contents.width, 4*96)
end
end
end
end
复制代码
以上为8人菜单脚本
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1