查看: 5590|回复: 5

[已经过期] 用了多人战斗脚本问题所在!

[复制链接]
梦石
0
星屑
50
在线时间
17 小时
注册时间
2009-1-1
回帖
42
发表于 2012-5-6 07:09:12 | 显示全部楼层 |阅读模式

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

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

×
我用了这个多人战斗脚本,但是总是出问题,一运行就出现这个:

1.jpg 然后我就查看,结果就是这个:

2.jpg !到底是怎么回事啊?请前辈赐教!谢谢!

虚空人形

梦石
0
星屑
4866
在线时间
2037 小时
注册时间
2011-8-11
回帖
3260

贵宾

发表于 2012-5-7 12:19:28 | 显示全部楼层
电脑其实很死板的,报错的位置不一定是你真正要修改的位置。
一般这种问题最好把全套的传上来。

点评

同感,那报错的只是发生的部位,引起的也可能在别的脚本  发表于 2012-5-8 12:56
回复

使用道具 举报

梦石
0
星屑
50
在线时间
17 小时
注册时间
2009-1-1
回帖
42
 楼主| 发表于 2012-5-7 18:11:09 | 显示全部楼层
就是这个!
#==============================================================================

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

#                      ——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
回复

使用道具 举报

梦石
0
星屑
2816
在线时间
1051 小时
注册时间
2011-8-2
回帖
273
发表于 2012-5-7 18:19:19 | 显示全部楼层
会是脚本冲突吗》?
为方便新人,建议大家一同换上此签名(当然我没指最下面的宣传……)
RM各版本下载链接
RMXP:http://pan.baidu.com/s/1qWLZjIW
RMVX:http://pan.baidu.com/s/1sjBhM2L
以上链接由妖精蕾贝卡 提供
--------------------------------------------------------------------------------
RMVA:http://pan.baidu.com/s/1jG1mDUY
以上链接由VIPArcher 提供
——————————————————————————
回复

使用道具 举报

梦石
0
星屑
50
在线时间
17 小时
注册时间
2009-1-1
回帖
42
 楼主| 发表于 2012-5-8 06:45:26 | 显示全部楼层
不是,我新建的工程什么脚本也没加。加进去这个还是出现上面的错误!真郁闷!
回复

使用道具 举报

梦石
0
星屑
105
在线时间
110 小时
注册时间
2012-11-14
回帖
43
发表于 2013-1-27 18:42:41 | 显示全部楼层
360软件小助手截图20130127**953.jpg      其实可以直接改脚本
回复

使用道具 举报

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

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部