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

Project1

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

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

[复制链接]

Lv1.梦旅人

梦石
0
星屑
50
在线时间
17 小时
注册时间
2009-1-1
帖子
73
跳转到指定楼层
1
发表于 2012-5-6 07:09:12 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式

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

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

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

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

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

Lv3.寻梦者

虚空人形

梦石
0
星屑
4723
在线时间
2037 小时
注册时间
2011-8-11
帖子
3398

贵宾

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

点评

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

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
17 小时
注册时间
2009-1-1
帖子
73
3
 楼主| 发表于 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
回复 支持 反对

使用道具 举报

Lv3.寻梦者

梦石
0
星屑
2816
在线时间
1051 小时
注册时间
2011-8-2
帖子
300
4
发表于 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 提供
——————————————————————————
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
17 小时
注册时间
2009-1-1
帖子
73
5
 楼主| 发表于 2012-5-8 06:45:26 | 只看该作者
不是,我新建的工程什么脚本也没加。加进去这个还是出现上面的错误!真郁闷!
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
105
在线时间
110 小时
注册时间
2012-11-14
帖子
57
6
发表于 2013-1-27 18:42:41 | 只看该作者
     其实可以直接改脚本
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2025-7-18 11:10

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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