H5游戏论坛

 找回密码
 入驻H5
查看: 966|回复: 4

[其它] VX初始人物改5人脚本

[复制链接]

大湿 - 大湿

发表于 2011-6-4 13:07:07 | 显示全部楼层 |阅读模式
第一步:
修改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
嘿嘿偶看到版块很冷清就想发个帖也不知道发啥就把这发上来了,这是在网上找到的.(其实是想加主题数)
有爱就有H5~

老湿 - 老湿

发表于 2011-6-4 14:50:22 | 显示全部楼层
看语法有点像VB的说~
只懂C#和Delphi的渣渣路过....
有爱就有H5~
回复 支持 反对

使用道具 举报

老湿 - 老湿

发表于 2011-6-4 16:47:30 | 显示全部楼层
虽然我没学过编程,但是这个貌似很像把队友变成5个人的脚本
有爱就有H5~
回复 支持 反对

使用道具 举报

大湿 - 大湿

 楼主| 发表于 2011-6-5 11:21:08 | 显示全部楼层
回复 熾·路西法 的帖子

是啊 不过小路啊  你签名挂了
有爱就有H5~
回复 支持 反对

使用道具 举报

老湿 - 老湿

发表于 2011-6-5 17:22:30 | 显示全部楼层
回复 瑷萝 的帖子

知道了,制作组的都挂了。
哎,多么可爱的签名啊。
有爱就有H5~
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 入驻H5

本版积分规则

Archiver|手机版|小黑屋|免责声明|H5Gal游戏论坛 |网站地图|网站地图

GMT+8, 2025-5-11 12:40 , Processed in 0.021673 second(s), 9 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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