=begin
# ---------------------------------------------------------------------------- #
# Kyrie Engine - Breath of Fire IV Battle Condition Transition
# By: SoulPour777
# Website URL: infinitytears.wordpress.com
# Description: Creates two different transition based on battle condition,
# such as Preemptive or Surprise, based on the Breath of Fire IV game.

Terms of Use:

For Non-Commercial Use:

You are free to use the script on any non-commercial projects.
You are free to adapt the script. Any modifications are allowed as long as it is provided as a note on the script.
Credits to SoulPour777 for the script.
Preserve the Script Header.
Claiming the script as your own is prohibited.

Instructions:

Place the correct transition name on your Systems folder.

Premeptive Graphic Name: "Preemptive"
Surprise Graphic Name: "Surprise"

Script call for testing:

$activate_preemptive = false
$activate_surprise = false

then do a battle processing.


# ---------------------------------------------------------------------------- #
=end
$activate_preemptive = false
$activate_surprise = false

module BattleManager
def self.battle_start
$game_system.battle_count += 1
$game_party.on_battle_start
$game_troop.on_battle_start
$game_troop.enemy_names.each do |name|
$game_message.add(sprintf(Vocab::Emerge, name))
end
if @preemptive
$activate_preemptive = true
$game_message.add(sprintf(Vocab::Preemptive, $game_party.name))
@pre_result_window = Preemptive_Graphics.new
elsif @surprise
$activate_surprise = true
$game_message.add(sprintf(Vocab::Surprise, $game_party.name))
end
wait_for_message
if $activate_preemptive
$game_message.add(sprintf(Vocab::Preemptive, $game_party.name))
end
if $activate_surprise
$game_message.add(sprintf(Vocab::Surprise, $game_party.name))
end
end
end
class Scene_Map < Scene_Base
alias new_trans perform_battle_transition
def perform_battle_transition
if $activate_preemptive
$activate_preemptive = false
Graphics.transition(60, "Graphics/System/preemptive", 100)
end
if $activate_surprise
$activate_preemptive = false
Graphics.transition(60, "Graphics/System/surprise", 100)
end
Graphics.freeze
end
end

$soulpour777_bofiv_conditiontransition_rgss3 = true