Random Battle Transitions
Alright, I'm not quite sure if this is the right place for this, because it's just a script snippet. If you are like me, then you'd like some randomness in your games. It gets really annoying when the engine always uses the same transition for Scene_Battle.
First, go into the Script Editor. Next go to Scene_Battle1. Now look in the main method for where it says:
if $data_system.battle_transition == ""
Graphics.transition(20)
else
Graphics.transition(40, "Graphics/Transitions/" + $data_system.battle_transition)
end
Replace those lines with:
trans = []
Dir['Graphics/Transitions/*.{png,jpg,bmp}'].each{ |file|
trans.push(File.basename(file, '.*'))
}
if FileTest.directory?('C:\Program Files/Common Files/Enterbrain/RGSS/Standard/Graphics/Windowskins')
Dir['C:\Program Files/Common Files/Enterbrain/RGSS/Standard/Graphics/Transitions/*.{png,jpg,bmp}'].each{ |file|
trans.push(File.basename(file, '.*'))
}
end
trans_index = rand(trans.size)
Graphics.transition(40, "Graphics/Transitions/" + trans[trans_index])
And there you have it, random battle transitions.
Note. It works even if you don't use the RTP.