本帖最后由 howhow1314 于 2015-2-27 01:40 编辑
class Window_MenuStatus < Window_Selectable #-------------------------------------------------------------------------- # ● 按下確定鍵時的處理 #-------------------------------------------------------------------------- def process_ok super #~ $game_party.menu_actor = $game_party.members[index] $game_party.menu_actor = $game_party.actors[index] end end class Game_Party < Game_Unit #-------------------------------------------------------------------------- # ● 設置菜單畫面中選中角色 #-------------------------------------------------------------------------- def menu_actor=(actor) #~ @menu_actor_id = actor.id @menu_actor_id = actor end end
class Window_MenuStatus < Window_Selectable
#--------------------------------------------------------------------------
# ● 按下確定鍵時的處理
#--------------------------------------------------------------------------
def process_ok
super
#~ $game_party.menu_actor = $game_party.members[index]
$game_party.menu_actor = $game_party.actors[index]
end
end
class Game_Party < Game_Unit
#--------------------------------------------------------------------------
# ● 設置菜單畫面中選中角色
#--------------------------------------------------------------------------
def menu_actor=(actor)
#~ @menu_actor_id = actor.id
@menu_actor_id = actor
end
end
解決了 |