| 本帖最后由 76213585 于 2013-9-26 17:52 编辑 
 插入main以上
 設定設好之後就行了
 
 module Panda U_VAR = 1 #使用變量 ACT = 1#几號隊員回血?endclass Scene_Map < Scene_Base  def update    super    $game_map.update(true)    $game_player.update    $game_timer.update    @spriteset.update     if $game_variables[Panda::U_VAR]> 0      $game_actors[Panda::ACT].hp += 1      $game_variables[Panda::U_VAR] -= 1     end     update_scene if scene_change_ok?   end end
module Panda 
 U_VAR = 1 #使用變量 
 ACT = 1#几號隊員回血? 
end 
class Scene_Map < Scene_Base 
  def update 
    super 
    $game_map.update(true) 
    $game_player.update 
    $game_timer.update 
    @spriteset.update 
     if $game_variables[Panda::U_VAR]> 0 
      $game_actors[Panda::ACT].hp += 1 
      $game_variables[Panda::U_VAR] -= 1 
     end 
     update_scene if scene_change_ok? 
   end 
 end 
 然後物品的設置就是通到公共事件然後加你使用的變量任何數字(血包含量)即可
 應該可行  有bug跟我說
 |