# # 効果不確定スキル(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_note(@note, "効果不確定", true) @@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, "効果不確定") # ★ 行動にスキルアクションをセット @active_battler.action.set_skill(rand($data_skills.size - 1) + 1) 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