| 
 
| 赞 | 0 |  
| VIP | 0 |  
| 好人卡 | 2 |  
| 积分 | 0 |  
| 经验 | 713 |  
| 最后登录 | 2012-2-15 |  
| 在线时间 | 678 小时 |  
 Lv1.梦旅人 
	梦石0 星屑48 在线时间678 小时注册时间2010-8-11帖子1533 | 
| 唔……用变量控制不知道怎么做 只会显示默认的HP条&MP条
 draw_actor_hp(@actor, 525, 105)
 draw_actor_mp(@actor, 525, 155)
 直接显示的方法:
 刷新变量就不知道了……唔……复制代码class Window_HPMP < Window_Base
  def initialize(actor = $game_party.members[0])
    super(0, 0, 544, 416)
    self.opacity = 0
    @actor = actor
    @actor_id = @actor.index
    refresh
  end
  def refresh
    self.contents.clear
    draw_actor_hp(@actor, 525, 105)
    draw_actor_mp(@actor, 525, 155)
  end
end
class Scene_Map
  
  alias window1_start start unless $@
  def start(*args)
    window1_start(*args)
    @window1 = Window_HPMP.new
  end
  
  alias window2_update update unless $@
  def update(*args)
    window2_update(*args)
    @window1.refresh
  end
  
  alias window3_terminate terminate unless $@
  def terminate(*args)
    @window1.dispose
    window3_terminate(*args)
  end
end
 | 
 |