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

Project1

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

求一个改好的脚本

 关闭 [复制链接]

Lv1.梦旅人

梦石
0
星屑
50
在线时间
94 小时
注册时间
2007-6-3
帖子
801
跳转到指定楼层
1
发表于 2007-8-26 20:37:08 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

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

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

x
注:要把
  1. class Game_Actor < Game_Battler
  2. def now_exp
  3.   return @exp - @exp_list[@level]
  4. end
  5. def next_exp
  6.   return @exp_list[@level+1] > 0 ? @exp_list[@level+1] - @exp_list[@level] : 0
  7. end
  8. end
  9. #==============================================================================
  10. # 描绘角色血条
  11. #==============================================================================
  12. class Window_BattleStatus < Window_Base
  13. #--------------------------------------------------------------------------
  14. # ● 初始化
  15. #--------------------------------------------------------------------------
  16. alias xrxs_bp2_refresh refresh
  17. def refresh
  18. xrxs_bp2_refresh
  19. @item_max = $game_party.actors.size
  20. for i in 0...$game_party.actors.size
  21.    actor = $game_party.actors[i]
  22.    actor_x = i * 65+ 300
  23.    x1=self.x
  24.    y1=self.y
  25.    draw_actor_hp_meter(actor, actor_x, 1,55)
  26.    draw_actor_sp_meter(actor, actor_x, 13, 55)
  27.    draw_actor_exp_meter(actor, actor_x, 25, 55)
  28. end
  29. end
  30. end
  31. #==============================================================================
  32. # ■ Window_Base
  33. #==============================================================================
  34. class Window_Base < Window
  35. #--------------------------------------------------------------------------
  36. # ● HP描画
  37. #--------------------------------------------------------------------------
  38. def draw_actor_hp_meter(actor, x, y, width = 156, type = 0)
  39. if type == 1 and actor.hp == 0
  40.    return
  41. end
  42. self.contents.fill_rect(x-1, y+82, width+2,6, Color.new(0, 0, 0, 255))
  43. w = width * actor.hp / [actor.maxhp,1].max
  44. self.contents.fill_rect(x, y+83, w,1, Color.new(153, 0, 0, 255))
  45. self.contents.fill_rect(x, y+84, w,1, Color.new(255, 140, 140, 255))
  46. self.contents.fill_rect(x, y+85, w,1, Color.new(180, 18, 0, 255))
  47. self.contents.fill_rect(x, y+86, w,1, Color.new(209, 33, 0,255))
  48. self.contents.fill_rect(x, y+87, w,1, Color.new(180, 18, 0, 255))
  49. self.contents.fill_rect(x, y+88, w,1, Color.new(153, 0, 0, 255))
  50. end
  51. #--------------------------------------------------------------------------
  52. # ● SP描画
  53. #--------------------------------------------------------------------------
  54. def draw_actor_sp_meter(actor, x, y, width = 156, type = 0)
  55. if type == 1 and actor.hp == 0
  56.    return
  57. end
  58. self.contents.fill_rect(x-1, y+82, width+2,6, Color.new(0, 0, 0, 255))
  59. w = width * actor.sp / [actor.maxsp,1].max
  60. self.contents.fill_rect(x, y+83, w,1, Color.new(56, 10, 143, 255))
  61. self.contents.fill_rect(x, y+84, w,1, Color.new(40, 176, 255, 255))
  62. self.contents.fill_rect(x, y+85, w,1, Color.new(78, 10, 175, 255))
  63. self.contents.fill_rect(x, y+86, w,1, Color.new(94, 10, 214, 255))
  64. self.contents.fill_rect(x, y+87, w,1, Color.new(78, 10, 175, 255))
  65. self.contents.fill_rect(x, y+88, w,1, Color.new(56, 10, 143,  255))
  66. end
  67. #--------------------------------------------------------------------------
  68. # ● exp描画
  69. #--------------------------------------------------------------------------
  70. def draw_actor_exp_meter(actor, x, y, width = 156, type = 0)
  71. if type == 1 and actor.hp == 0
  72.   return
  73. end
  74. self.contents.fill_rect(x-1, y+83, width+2,6, Color.new(0, 0, 0, 255))
  75. w = width * actor.now_exp/[ actor.next_exp,1].max
  76. self.contents.fill_rect(x, y+83, w,1, Color.new(77, 140, 140, 255))
  77. self.contents.fill_rect(x, y+85, w,1, Color.new(100, 220, 220, 255))
  78. self.contents.fill_rect(x, y+86, w,1, Color.new(77, 173, 173, 255))
  79. self.contents.fill_rect(x, y+87, w,1, Color.new(77, 207, 207, 255))
  80. self.contents.fill_rect(x, y+87, w,1, Color.new(77, 173, 173, 255))
  81. self.contents.fill_rect(x, y+87, w,1, Color.new(77, 140, 140, 255))
  82. end
  83. end
复制代码

这个血条脚本弄到脚色上方,我主战。论坛都找过,就是没有,急啊!!!!!
版务信息:本贴由楼主自主结贴~
无签名,不解释

Lv1.梦旅人

梦石
0
星屑
50
在线时间
94 小时
注册时间
2007-6-3
帖子
801
2
 楼主| 发表于 2007-8-26 20:37:08 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

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

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

x
注:要把
  1. class Game_Actor < Game_Battler
  2. def now_exp
  3.   return @exp - @exp_list[@level]
  4. end
  5. def next_exp
  6.   return @exp_list[@level+1] > 0 ? @exp_list[@level+1] - @exp_list[@level] : 0
  7. end
  8. end
  9. #==============================================================================
  10. # 描绘角色血条
  11. #==============================================================================
  12. class Window_BattleStatus < Window_Base
  13. #--------------------------------------------------------------------------
  14. # ● 初始化
  15. #--------------------------------------------------------------------------
  16. alias xrxs_bp2_refresh refresh
  17. def refresh
  18. xrxs_bp2_refresh
  19. @item_max = $game_party.actors.size
  20. for i in 0...$game_party.actors.size
  21.    actor = $game_party.actors[i]
  22.    actor_x = i * 65+ 300
  23.    x1=self.x
  24.    y1=self.y
  25.    draw_actor_hp_meter(actor, actor_x, 1,55)
  26.    draw_actor_sp_meter(actor, actor_x, 13, 55)
  27.    draw_actor_exp_meter(actor, actor_x, 25, 55)
  28. end
  29. end
  30. end
  31. #==============================================================================
  32. # ■ Window_Base
  33. #==============================================================================
  34. class Window_Base < Window
  35. #--------------------------------------------------------------------------
  36. # ● HP描画
  37. #--------------------------------------------------------------------------
  38. def draw_actor_hp_meter(actor, x, y, width = 156, type = 0)
  39. if type == 1 and actor.hp == 0
  40.    return
  41. end
  42. self.contents.fill_rect(x-1, y+82, width+2,6, Color.new(0, 0, 0, 255))
  43. w = width * actor.hp / [actor.maxhp,1].max
  44. self.contents.fill_rect(x, y+83, w,1, Color.new(153, 0, 0, 255))
  45. self.contents.fill_rect(x, y+84, w,1, Color.new(255, 140, 140, 255))
  46. self.contents.fill_rect(x, y+85, w,1, Color.new(180, 18, 0, 255))
  47. self.contents.fill_rect(x, y+86, w,1, Color.new(209, 33, 0,255))
  48. self.contents.fill_rect(x, y+87, w,1, Color.new(180, 18, 0, 255))
  49. self.contents.fill_rect(x, y+88, w,1, Color.new(153, 0, 0, 255))
  50. end
  51. #--------------------------------------------------------------------------
  52. # ● SP描画
  53. #--------------------------------------------------------------------------
  54. def draw_actor_sp_meter(actor, x, y, width = 156, type = 0)
  55. if type == 1 and actor.hp == 0
  56.    return
  57. end
  58. self.contents.fill_rect(x-1, y+82, width+2,6, Color.new(0, 0, 0, 255))
  59. w = width * actor.sp / [actor.maxsp,1].max
  60. self.contents.fill_rect(x, y+83, w,1, Color.new(56, 10, 143, 255))
  61. self.contents.fill_rect(x, y+84, w,1, Color.new(40, 176, 255, 255))
  62. self.contents.fill_rect(x, y+85, w,1, Color.new(78, 10, 175, 255))
  63. self.contents.fill_rect(x, y+86, w,1, Color.new(94, 10, 214, 255))
  64. self.contents.fill_rect(x, y+87, w,1, Color.new(78, 10, 175, 255))
  65. self.contents.fill_rect(x, y+88, w,1, Color.new(56, 10, 143,  255))
  66. end
  67. #--------------------------------------------------------------------------
  68. # ● exp描画
  69. #--------------------------------------------------------------------------
  70. def draw_actor_exp_meter(actor, x, y, width = 156, type = 0)
  71. if type == 1 and actor.hp == 0
  72.   return
  73. end
  74. self.contents.fill_rect(x-1, y+83, width+2,6, Color.new(0, 0, 0, 255))
  75. w = width * actor.now_exp/[ actor.next_exp,1].max
  76. self.contents.fill_rect(x, y+83, w,1, Color.new(77, 140, 140, 255))
  77. self.contents.fill_rect(x, y+85, w,1, Color.new(100, 220, 220, 255))
  78. self.contents.fill_rect(x, y+86, w,1, Color.new(77, 173, 173, 255))
  79. self.contents.fill_rect(x, y+87, w,1, Color.new(77, 207, 207, 255))
  80. self.contents.fill_rect(x, y+87, w,1, Color.new(77, 173, 173, 255))
  81. self.contents.fill_rect(x, y+87, w,1, Color.new(77, 140, 140, 255))
  82. end
  83. end
复制代码

这个血条脚本弄到脚色上方,我主战。论坛都找过,就是没有,急啊!!!!!
版务信息:本贴由楼主自主结贴~
无签名,不解释

Lv1.梦旅人

梦石
0
星屑
50
在线时间
94 小时
注册时间
2007-6-3
帖子
801
3
 楼主| 发表于 2007-8-26 20:56:03 | 只看该作者
为什么没人??我是脚本盲,个位大人快来啊{/pz}
无签名,不解释
回复 支持 反对

使用道具 举报

Lv1.梦旅人

星空骑士

梦石
0
星屑
50
在线时间
7 小时
注册时间
2007-4-22
帖子
87
4
发表于 2007-8-26 22:16:08 | 只看该作者
估计是都不 明白你说的什么吧?
?
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
94 小时
注册时间
2007-6-3
帖子
801
5
 楼主| 发表于 2007-8-26 22:59:55 | 只看该作者
以下引用鬥转星移于2007-8-26 14:16:08的发言:

估计是都不 明白你说的什么吧?

.....就是把血条脚本移到角色头上啊!{/gg}{/gg}
无签名,不解释
回复 支持 反对

使用道具 举报

头像被屏蔽

Lv1.梦旅人 (禁止发言)

圣魔

梦石
0
星屑
50
在线时间
0 小时
注册时间
2007-1-12
帖子
3395
6
发表于 2007-8-26 23:51:15 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
94 小时
注册时间
2007-6-3
帖子
801
7
 楼主| 发表于 2007-8-27 00:01:26 | 只看该作者
以下引用永劫的咎人于2007-8-26 15:51:15的发言:

draw_actor_hp_meter(actor, actor_x, 1,55)
draw_actor_sp_meter(actor, actor_x, 13, 55)
draw_actor_exp_meter(actor, actor_x, 25, 55)

好党员=v=
括号里面的actor是定义角色是谁的,不用动
actor_x是x坐标,1,13,25是y坐标。
向上移动缩小y坐标即可,明白的?


[本贴由作者于 2007-8-26 15:52:33 最后编辑]

哦,但改到多少?
无签名,不解释
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
94 小时
注册时间
2007-6-3
帖子
801
8
 楼主| 发表于 2007-8-27 00:05:03 | 只看该作者
能否帮我把整个脚本发出来?
无签名,不解释
回复 支持 反对

使用道具 举报

头像被屏蔽

Lv1.梦旅人 (禁止发言)

圣魔

梦石
0
星屑
50
在线时间
0 小时
注册时间
2007-1-12
帖子
3395
9
发表于 2007-8-27 00:14:44 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
55
在线时间
10 小时
注册时间
2006-6-15
帖子
383
10
发表于 2007-8-27 00:20:28 | 只看该作者
以下引用永劫的咎人于2007-8-26 16:14:44的发言:

自己去调试...
自己去脚本中搜索...
可以吗?不要什么都不想动手光伸手让别人帮忙。

恩恩~基本上都可以用伸手党来帮忙新人了
原签名太酷,被咔嚓了。重新换一个吧。by 管理员
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2026-6-24 06:13

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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