I don't want to make a new folder in Graphics because there are ways for that to cause problems when making encrypted data. Instead, you can put the transition graphics in System. I have this:
class Game_System
attr_writer :transition_graphic
def transition_graphic
random_transitions = ["BattleStart"]
return @transition_graphic unless @transition_graphic == nil
r_int = rand (random_transitions.size)
return random_transitions[r_int]
end
end
class Scene_Map
def perform_battle_transition
Graphics.freeze
end
end
class Scene_Battle
def perform_transition
Graphics.transition(80, "Graphics/System/" + $game_system.transition_graphic)
end
end
To set up what files can be used as transitions, merely include its name in the array at the top, so this thing:
random_transitions = ["BattleStart"]
To add more, just place a comma and the next filename in quotes, like:
random_transitions = ["BattleStart", "transitionfile2", "transitionfile3", etc...]
By default, it will randomly select from that array. You can set a specific transition graphic with this code in a call script:
$game_system.transition_graphic = "filename"
To set it back to random, use this:
$game_system.transition_graphic = nil