Advertisement
TroyZ

CRIME - Menu Blackout Transition (Edited by TroyZ)

Nov 28th, 2013
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 4.78 KB | None | 0 0
  1. =begin
  2.   ██▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀██
  3.   █                 CRIME's RGSS3 Scripts               █
  4.   ██▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄██
  5.   ██                                                   ██
  6.   █                Menu Blackout Effect                `█
  7.   █              - 1.0 - 28 November 2013 -            `█
  8.   █                                                     █
  9.   █ Contact:                                            █
  10.   █ Facebook   : fb.me/chairul.crime                    █
  11.   █ Twitter    : t.co/owfzpyCEk0                        █
  12.   █ RPGMakerID : BlackCrows                             █
  13.   █ Website    : mythcrows.blogspot.com                 █
  14.   █                                                     █
  15.   █                      - T.O.S -                      █
  16.   █     Jika kamu memakai Script ini, berarti kamu      █
  17.   █           telah menaati prinsip CRIME:              █
  18.   █                                                     █
  19.   █        C : Credit me if you want this Script        █
  20.   █        R : Report me if bugs happened with you      █
  21.   █        I : If you want to contact me, do it now!    █
  22.   █        M : My Scripts are free to edit              █
  23.   █           (But, I don't give a guarantee)           █
  24.   █        E : Ends, Don't be Plagiarism!               █
  25.   █                                                     █
  26.   ██▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄██
  27.  
  28.   ██▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀██
  29.   █                 Non-Scripter's Region               █
  30.   ██▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄██
  31. =end
  32.  
  33. module CRIME
  34.   module M_BLACKOUT
  35.    
  36.     #Transition Settings
  37.     FILENAME = ["Cool","Flat","Flat Square", "Fog"] # Transition Filename
  38.     TRANS_TYPE = 2 # 1 = Single, 2 = Random, 3 = Single Blackout, 4 = Random Blackout
  39.    
  40.     # Atur ke false jika ingin single transition
  41.     # Tapi, Array pertama yang akan menjadi Transition
  42.     TRANS_TIME = 60 # Waktu transisi dimulai
  43.     TRANS_VAGUE = 100 # Vague effect level
  44.    
  45.     #Transition Fading Back Settings
  46.     FADEBACK_TIME = 60 # Waktu efek fade-in back
  47.     VAGUE_TIME = 120
  48.   end
  49. end
  50.  
  51. =begin
  52.   ██▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀██
  53.   █         Ingat prinsip "M" kalau mau mengedit!         █
  54.   ██▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄██
  55. =end
  56. class Scene_Menu < Scene_MenuBase
  57.  
  58.   alias crime_menu_start    start
  59.    def start    
  60.     case CRIME::M_BLACKOUT::TRANS_TYPE
  61.     when 1..2
  62.       crime_menu_start
  63.       menutrans_run
  64.     when 3..4
  65.       menutrans_run
  66.       crime_menu_start
  67.     end
  68.   end
  69.  
  70.   def menutrans_run
  71.     trans = Array.new
  72.     trans = CRIME::M_BLACKOUT::FILENAME
  73.     rand_trans = rand(trans.size)
  74.     case CRIME::M_BLACKOUT::TRANS_TYPE
  75.     when 1
  76.       Graphics.transition(CRIME::M_BLACKOUT::TRANS_TIME,"Graphics/Transition/" + (trans[1]),CRIME::M_BLACKOUT::VAGUE_TIME)
  77.     when 2
  78.       Graphics.transition(CRIME::M_BLACKOUT::TRANS_TIME,"Graphics/Transition/" + (trans[rand_trans]),CRIME::M_BLACKOUT::VAGUE_TIME)
  79.     when 3
  80.       Graphics.transition(CRIME::M_BLACKOUT::TRANS_TIME,"Graphics/Transition/" + (trans[1]),CRIME::M_BLACKOUT::VAGUE_TIME)
  81.       Graphics.freeze
  82.       Graphics.fadein(CRIME::M_BLACKOUT::FADEBACK_TIME)
  83.     when 4
  84.       Graphics.transition(CRIME::M_BLACKOUT::TRANS_TIME,"Graphics/Transition/" + (trans[rand_trans]),CRIME::M_BLACKOUT::VAGUE_TIME)
  85.       Graphics.freeze
  86.       Graphics.fadein(CRIME::M_BLACKOUT::FADEBACK_TIME)      
  87.     end    
  88.   end
  89. end
  90.  
  91. =begin
  92.   ██▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀██
  93.   █     End of Script - 28 November 2013 - CRiME     █
  94.   ██▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄██
  95. =end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement