Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # =============================================================================
- # TheoAllen - Random Battle Transition
- # Version : 1.0
- # Contact : www.rpgmakerid.com (or) http://theolized.blogspot.com
- # (This script documentation is written in informal indonesian language)
- # =============================================================================
- ($imported ||= {})[:Theo_BattleTransition] = true
- # =============================================================================
- # CHANGE LOGS:
- # -----------------------------------------------------------------------------
- # 2013.05.14 - Started and Finished script
- # =============================================================================
- =begin
- Perkenalan:
- Script ini ngebikin tiap kali sebelum masuk battle akan menampilkan transisi
- yang berbeda-beda
- Cara penggunaan :
- Pasang diatas main tapi dibawah material
- Terms of use :
- Credit gw, TheoAllen. Kalo semisal u bisa ngedit2 script gw trus jadi lebih
- keren, terserah. Ane bebasin. Asal ngga ngeklaim aja. Kalo semisal mau
- dipake buat komersil, jangan lupa, gw dibagi gratisannya.
- =end
- # =============================================================================
- # Konfigurasi :
- # =============================================================================
- module THEO
- module TRANSISI
- # Catat file2 untuk transisi disini. File harus ada di Graphics/system
- LIST = [
- # ["nama file ,durasi ,blend],
- ["Ash" ,60 ,100],
- ["BattleStart" ,60 ,100],
- ["Cloud" ,60 ,100],
- ["Eye" ,60 ,100],
- ["SlideRight" ,60 ,100],
- ["Startbattlev2",60 ,100],
- ["Crossflame" ,60 ,100],
- ["Whitehole" ,60 ,100],
- ["Whirlwind" ,60 ,100],
- # Durasi adalah lamanya transisi ditampilin.
- # Blend adalah (bingung gw jelasinnya). semacem nilai ambiguitas antara
- # screen sebelumnya ama sesudahnya. Coba2 sendiri lah :P
- # default duration = 60
- # default blend = 100 (max 100)
- ] # <-- Jangan dihapus
- end
- end
- # =============================================================================
- # Akhir dari konfigurasi
- # =============================================================================
- class Scene_Map < Scene_Base
- def perform_battle_transition
- array = THEO::TRANSISI::LIST
- result = array[rand(array.size).to_i]
- duration = result[1]
- path = sprintf("Graphics/System/%s",result[0])
- blend = result[2]
- Graphics.transition(duration,path,blend)
- Graphics.freeze
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment