Este script permite que un enemigo use una habilidad que expulsa a uno de tus aliados de la batalla. Ese aliado se recuperá nada más terminar esa batalla.
Script:
CODE
class Game_Battler
Blow_Away_Skills = [1]
attr_accessor :hidden_skill
alias before_blow_away_initialize initialize
def initialize
before_blow_away_initialize
@hidden_skill = false
end
alias before_blow_away_skill_effect skill_effect
def skill_effect(user, skill)
if self.hidden
return false
end
if Blow_Away_Skills.include?(skill.id)
@hidden_skill = true
self.current_action.clear
end
return before_blow_away_skill_effect(user, skill)
end
end
class Scene_Battle
alias before_blow_away_update_phase4_step5 update_phase4_step5
def update_phase4_step5
before_blow_away_update_phase4_step5
for target in @target_battlers
if target.hidden_skill == true
target.hidden = true
end
end
end
alias before_blow_away_start_phase5 start_phase5
def start_phase5
for actor in $game_party.actors
actor.hidden = false
actor.hidden_skill = false
end
before_blow_away_start_phase5
end
end
class Game_Party
def all_dead?
# If number of party members is 0
if $game_party.actors.size == 0
return false
end
# If an actor is in the party with 0 or more HP
for actor in @actors
if actor.hp > 0 and actor.hidden == false
return false
end
end
# All members dead
return true
end
end
Blow_Away_Skills = [1]
attr_accessor :hidden_skill
alias before_blow_away_initialize initialize
def initialize
before_blow_away_initialize
@hidden_skill = false
end
alias before_blow_away_skill_effect skill_effect
def skill_effect(user, skill)
if self.hidden
return false
end
if Blow_Away_Skills.include?(skill.id)
@hidden_skill = true
self.current_action.clear
end
return before_blow_away_skill_effect(user, skill)
end
end
class Scene_Battle
alias before_blow_away_update_phase4_step5 update_phase4_step5
def update_phase4_step5
before_blow_away_update_phase4_step5
for target in @target_battlers
if target.hidden_skill == true
target.hidden = true
end
end
end
alias before_blow_away_start_phase5 start_phase5
def start_phase5
for actor in $game_party.actors
actor.hidden = false
actor.hidden_skill = false
end
before_blow_away_start_phase5
end
end
class Game_Party
def all_dead?
# If number of party members is 0
if $game_party.actors.size == 0
return false
end
# If an actor is in the party with 0 or more HP
for actor in @actors
if actor.hp > 0 and actor.hidden == false
return false
end
end
# All members dead
return true
end
end
Instrucciones:


QUOTE
Blow_Away_Skills = [1]
Cambia el 1 por la habilidad que quieras.Crédito:
Script creado por: Fomar0153