| 赞 | 0 |
| VIP | 5 |
| 好人卡 | 4 |
| 积分 | 1 |
| 经验 | 12066 |
| 最后登录 | 2015-12-4 |
| 在线时间 | 94 小时 |
Lv1.梦旅人 叶
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 94 小时
- 注册时间
- 2007-6-3
- 帖子
- 801
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
注:要把- class Game_Actor < Game_Battler
- def now_exp
- return @exp - @exp_list[@level]
- end
- def next_exp
- return @exp_list[@level+1] > 0 ? @exp_list[@level+1] - @exp_list[@level] : 0
- end
- end
- #==============================================================================
- # 描绘角色血条
- #==============================================================================
- class Window_BattleStatus < Window_Base
- #--------------------------------------------------------------------------
- # ● 初始化
- #--------------------------------------------------------------------------
- alias xrxs_bp2_refresh refresh
- def refresh
- xrxs_bp2_refresh
- @item_max = $game_party.actors.size
- for i in 0...$game_party.actors.size
- actor = $game_party.actors[i]
- actor_x = i * 65+ 300
- x1=self.x
- y1=self.y
- 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)
- end
- end
- end
- #==============================================================================
- # ■ Window_Base
- #==============================================================================
- class Window_Base < Window
- #--------------------------------------------------------------------------
- # ● HP描画
- #--------------------------------------------------------------------------
- def draw_actor_hp_meter(actor, x, y, width = 156, type = 0)
- if type == 1 and actor.hp == 0
- return
- end
- self.contents.fill_rect(x-1, y+82, width+2,6, Color.new(0, 0, 0, 255))
- w = width * actor.hp / [actor.maxhp,1].max
- self.contents.fill_rect(x, y+83, w,1, Color.new(153, 0, 0, 255))
- self.contents.fill_rect(x, y+84, w,1, Color.new(255, 140, 140, 255))
- self.contents.fill_rect(x, y+85, w,1, Color.new(180, 18, 0, 255))
- self.contents.fill_rect(x, y+86, w,1, Color.new(209, 33, 0,255))
- self.contents.fill_rect(x, y+87, w,1, Color.new(180, 18, 0, 255))
- self.contents.fill_rect(x, y+88, w,1, Color.new(153, 0, 0, 255))
- end
- #--------------------------------------------------------------------------
- # ● SP描画
- #--------------------------------------------------------------------------
- def draw_actor_sp_meter(actor, x, y, width = 156, type = 0)
- if type == 1 and actor.hp == 0
- return
- end
- self.contents.fill_rect(x-1, y+82, width+2,6, Color.new(0, 0, 0, 255))
- w = width * actor.sp / [actor.maxsp,1].max
- self.contents.fill_rect(x, y+83, w,1, Color.new(56, 10, 143, 255))
- self.contents.fill_rect(x, y+84, w,1, Color.new(40, 176, 255, 255))
- self.contents.fill_rect(x, y+85, w,1, Color.new(78, 10, 175, 255))
- self.contents.fill_rect(x, y+86, w,1, Color.new(94, 10, 214, 255))
- self.contents.fill_rect(x, y+87, w,1, Color.new(78, 10, 175, 255))
- self.contents.fill_rect(x, y+88, w,1, Color.new(56, 10, 143, 255))
- end
- #--------------------------------------------------------------------------
- # ● exp描画
- #--------------------------------------------------------------------------
- def draw_actor_exp_meter(actor, x, y, width = 156, type = 0)
- if type == 1 and actor.hp == 0
- return
- end
- self.contents.fill_rect(x-1, y+83, width+2,6, Color.new(0, 0, 0, 255))
- w = width * actor.now_exp/[ actor.next_exp,1].max
- self.contents.fill_rect(x, y+83, w,1, Color.new(77, 140, 140, 255))
- self.contents.fill_rect(x, y+85, w,1, Color.new(100, 220, 220, 255))
- self.contents.fill_rect(x, y+86, w,1, Color.new(77, 173, 173, 255))
- self.contents.fill_rect(x, y+87, w,1, Color.new(77, 207, 207, 255))
- self.contents.fill_rect(x, y+87, w,1, Color.new(77, 173, 173, 255))
- self.contents.fill_rect(x, y+87, w,1, Color.new(77, 140, 140, 255))
- end
- end
复制代码
这个血条脚本弄到脚色上方,我主战。论坛都找过,就是没有,急啊!!!!! 版务信息:本贴由楼主自主结贴~ |
|