#****************************************************************************** # # <拡張> パーティ編成 for VX : RGSS2 Ver 1.00    by CACAO # #------------------------------------------------------------------------------ # #  :待機メンバーにも戦闘後の経験値を振り分けます。 # ※ このスクリプトの実行には、「パーティ編成」スクリプトが必要です。 # #============================================================================== #============================================================================== # ◆ ユーザー設定 #============================================================================== module CAO_MEMBER #-------------------------------------------------------------------------- # ◇ 待機メンバーに n %の経験値を振り分ける #-------------------------------------------------------------------------- UNAVAILABLE_EXP_RATE = 50 #-------------------------------------------------------------------------- # ◇ レベルアップメッセージを表示する #-------------------------------------------------------------------------- UNAVAILABLE_EXP_VIEW = true end #/////////////////////////////////////////////////////////////////////////////# # # # 下記には一切、手を加えないでください。 # # # #/////////////////////////////////////////////////////////////////////////////# #============================================================================== # ■ Scene_Battle #------------------------------------------------------------------------------ #  バトル画面の処理を行うクラスです。 #============================================================================== class Scene_Battle < Scene_Base #-------------------------------------------------------------------------- # ● レベルアップの表示 #-------------------------------------------------------------------------- def display_level_up exp = $game_troop.exp_total for actor in $game_party.existing_members last_level = actor.level last_skills = actor.skills actor.gain_exp(exp, true) end # 待機メンバーに経験値を振り分ける for i in 1...$data_actors.size next if $game_actors[i].unavailable for actor in $game_party.members break if $game_actors[i] == actor end if $game_actors[i] != actor exp = $game_troop.exp_total / 100.0 * CAO_MEMBER::UNAVAILABLE_EXP_RATE $game_actors[i].gain_exp(exp.to_i, CAO_MEMBER::UNAVAILABLE_EXP_VIEW) end end wait_for_message end end