设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 2126|回复: 4
打印 上一主题 下一主题

[已经解决] 队伍人数上限提升啊

[复制链接]

Lv1.梦旅人

梦石
0
星屑
55
在线时间
85 小时
注册时间
2012-8-9
帖子
102
跳转到指定楼层
1
发表于 2013-7-5 11:26:10 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有帐号?注册会员

x
队伍人数上限能否提升为八人?


妖精图书馆里的八人队伍脚本加进去后,怎么还是四人的哇!!!!!{:2_270:}
《烈火契约》工作室招收美工,有意者进Q群:248202504

Lv1.梦旅人

梦石
0
星屑
50
在线时间
260 小时
注册时间
2013-4-19
帖子
216
2
发表于 2013-7-5 17:00:51 | 只看该作者
修改Game_Party的第11行

评分

参与人数 1星屑 +70 收起 理由
怪蜀黍 + 70 认可答案

查看全部评分

【轩辕Game】
【广告位出租】
【广告位出租】
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
55
在线时间
85 小时
注册时间
2012-8-9
帖子
102
3
 楼主| 发表于 2013-7-16 14:28:17 | 只看该作者
不行啊!这样的话下面第五个人物显示不了啊!
《烈火契约》工作室招收美工,有意者进Q群:248202504
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
55
在线时间
85 小时
注册时间
2012-8-9
帖子
102
4
 楼主| 发表于 2013-7-16 14:35:41 | 只看该作者
谢了!我知道了,还要插入那个脚本
《烈火契约》工作室招收美工,有意者进Q群:248202504
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
16 小时
注册时间
2013-8-20
帖子
5
5
发表于 2013-8-27 09:33:21 | 只看该作者
是指8人菜单脚本吗?
  1. #==============================================================================

  2. # ○ 多人队伍脚本扩展-八人状态菜单

  3. #                      ——By.冰舞蝶恋

  4. #------------------------------------------------------------------------------

  5. # ■ Window_MenuStatus

  6. #------------------------------------------------------------------------------

  7. #  显示菜单画面和同伴状态的窗口。

  8. #==============================================================================


  9. class Window_MenuStatus < Window_Selectable

  10.   #--------------------------------------------------------------------------

  11.   # ● 初始化对像

  12.   #     x      : 窗口 X 座标

  13.   #     y      : 窗口 Y 座标

  14.   #--------------------------------------------------------------------------

  15.   def initialize(x, y)

  16.     super(x, y, 384, 416)

  17.     refresh

  18.     self.active = false

  19.     self.index = -1

  20.   end

  21.   #--------------------------------------------------------------------------

  22.   # ● 刷新

  23.   #--------------------------------------------------------------------------

  24.   def refresh

  25.     self.contents.clear

  26.     @item_max = $game_party.members.size

  27.     if @item_max <= 4

  28.     for actor in $game_party.members

  29.       draw_actor_face(actor, 2, actor.index * 96 + 2, 92)

  30.       x = 104

  31.       y = actor.index * 96 + WLH / 2

  32.       draw_actor_name(actor, x, y)

  33.       draw_actor_class(actor, x + 120, y)

  34.       draw_actor_level(actor, x, y + WLH * 1)

  35.       draw_actor_state(actor, x, y + WLH * 2)

  36.       draw_actor_hp(actor, x + 120, y + WLH * 1)

  37.       draw_actor_mp(actor, x + 120, y + WLH * 2)

  38.     end

  39.     else

  40.     for actor in $game_party.members

  41.      for a in 0..@item_max-1

  42.      if a < 4
  43.       draw_actor_face(actor, 2, actor.index * 96 + 2, 92)

  44.       x = 4

  45.       y = actor.index * 96 + WLH / 2-12

  46.       draw_actor_name(actor, x, y)

  47.       draw_actor_class(actor, x + 120-24, y)

  48.       draw_actor_level(actor, x+120-24, y + WLH * 1)

  49.       draw_actor_hp(actor, x + 120-24, y + WLH * 1+24, 72)

  50.       draw_actor_mp(actor, x + 120-24, y + WLH * 2+24, 72)

  51.      else

  52.       draw_actor_face(actor, 2+176, (actor.index - 4) * 96 + 2, 92)

  53.       x = 4+176

  54.       y = (actor.index - 4) * 96 + WLH / 2-12

  55.       draw_actor_name(actor, x, y)

  56.       draw_actor_class(actor, x + 120-24, y)

  57.       draw_actor_level(actor, x+120-24, y + WLH * 1)

  58.       draw_actor_hp(actor, x + 120-24, y + WLH * 1+24, 72)

  59.       draw_actor_mp(actor, x + 120-24, y + WLH * 2+24, 72)

  60.      end

  61.      end

  62.     end

  63.     end

  64.   end

  65.   #--------------------------------------------------------------------------

  66.   # ● 更新光标

  67.   #--------------------------------------------------------------------------

  68.   def update_cursor

  69.     if @item_max <= 4

  70.     if @index < 0               # 无光标

  71.       self.cursor_rect.empty

  72.     elsif @index < @item_max    # 一般

  73.       self.cursor_rect.set(0, @index * 96, contents.width, 96)

  74.     elsif @index >= 100         # 使用本身

  75.       self.cursor_rect.set(0, (@index - 100) * 96, contents.width, 96)

  76.     else                        # 全体

  77.       self.cursor_rect.set(0, 0, contents.width, @item_max * 96)

  78.     end

  79.     else

  80.     if @index < 0               # 无光标

  81.       self.cursor_rect.empty

  82.     elsif @index < @item_max    # 一般

  83.       if @index < 4

  84.         self.cursor_rect.set(0, @index * 96, 352 / 2, 96)

  85.       else

  86.         self.cursor_rect.set(352 / 2, (@index - 4) * 96, 352 / 2, 96)

  87.       end

  88.     elsif @index >= 100         # 使用本身

  89.       if @index-100 < 4

  90.         self.cursor_rect.set(0, (@index - 100) * 96, 352 / 2, 96)

  91.       else

  92.         self.cursor_rect.set(352 / 2, (@index - 100 - 4) * 96, 352 / 2, 96)

  93.       end

  94.     else                        # 全体

  95.       self.cursor_rect.set(0, 0, contents.width, 4*96)

  96.     end

  97.     end

  98.   end

  99. end
复制代码
以上为8人菜单脚本
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-4-23 18:23

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表