# # 効果不確定スキルVer2.00(RGSS2) #  (C)2008 TYPE74RX-T # # ※「魔法反射ステート」スクリプトと組み合わせる場合は #  この系統のスキルを「魔反射無視」スキルに指定してください。 #-------------------------------------------------------------------------- # ★ システムワードの登録:スキル追加発動 #-------------------------------------------------------------------------- module RPG class BaseItem alias rx_rgss2bo8_rx_extract_sys_str_from_note rx_extract_sys_str_from_note def rx_extract_sys_str_from_note rx_get_sys = RX_T.get_system_word_in_note2(@note, "効果不確定") @@rx_copy_str += rx_get_sys @note = @note.sub(rx_get_sys, "") @note = @note.sub("\r\n", "") @rx_sys_str = @@rx_copy_str # メソッドを呼び戻す rx_rgss2bo8_rx_extract_sys_str_from_note end end end #============================================================================== # ■ Scene_Battle #------------------------------------------------------------------------------ #  バトル画面の処理を行うクラスです。 #============================================================================== class Scene_Battle < Scene_Base #-------------------------------------------------------------------------- # ● 戦闘行動の実行 : スキル #-------------------------------------------------------------------------- alias rx_rgss2bo8_execute_action_skill execute_action_skill def execute_action_skill skill = @active_battler.action.skill # メソッドを呼び戻す rx_rgss2bo8_execute_action_skill # ★ システムワードに「効果不確定」が含まれていれば if RX_T.check_system_word_in_sys_str(skill, "効果不確定") # ★ 行動にスキルアクションをセット rx_random_p_skills = RX_T.get_array_of_system_word_in_sys_str(skill, "効果不確定") @active_battler.action.set_skill(rx_random_p_skills[rand(rx_random_p_skills.size)]) rx_execute_random_action_skill end end #-------------------------------------------------------------------------- # ★ 戦闘行動の実行 : 効果不確定スキル #-------------------------------------------------------------------------- def rx_execute_random_action_skill skill = @active_battler.action.skill targets = @active_battler.action.make_targets display_animation(targets, skill.animation_id) $game_temp.common_event_id = skill.common_event_id for target in targets target.skill_effect(@active_battler, skill) display_action_effects(target, skill) end end end