Advertisement
Kakakadafi

Kadafi - Idle Wait

Nov 9th, 2014
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 2.03 KB | None | 0 0
  1. #=============================================================================
  2. # Kadafi - Idle Wait
  3. # Version : 1.0
  4. # Contact : http://www.facebook.com/xandalfi
  5. # =============================================================================
  6. ($imported ||= {})[:Kadafi_IdleWait] = true
  7. # =============================================================================
  8. # CHANGE LOGS:
  9. # -----------------------------------------------------------------------------
  10. # 2014.11.09 - Finished script
  11. # =============================================================================
  12. =begin
  13.  
  14.   Perkenalan :
  15.   Script ini rekuesan Rikko Sawaragi
  16.   (http://www.facebook.com/groups/499519576752803?view=permalink&id=799785806726177)
  17.  
  18.   Cara penggunaan :
  19.   Pasang dibawah material namun diatas main
  20.   Edit script ato konfigurasinya kalo perlu
  21.  
  22.   Terms of Use :
  23.   Game ente gak boleh NEP.
  24.  
  25. =end
  26. # =============================================================================
  27. # Konfigurasi :
  28. # =============================================================================
  29. module Kadafi
  30.   module TITLE
  31.    
  32.     # Lama nunggu idle (Frame)
  33.     Idle_Time = 300
  34.    
  35.   end
  36. end
  37. # =============================================================================
  38. # Akhir dari konfigurasi :
  39. # =============================================================================
  40. class Scene_Title < Scene_Base
  41.   def initialize
  42.     @show_time = 0
  43.   end
  44.  
  45.   alias new_start start
  46.   def start
  47.     new_start
  48.     set_show_time
  49.   end
  50.  
  51.   def set_show_time
  52.     @show_time = Kadafi::TITLE::Idle_Time
  53.   end
  54.  
  55.   alias new_update update
  56.   def update
  57.     new_update
  58.     update_show_time if $imported[:Theo_PressStart]
  59.   end
  60.  
  61.   def update_show_time
  62.     if @show_time == 0
  63.       # Di sini tempat ente edit2 sesuai keperluan
  64.       $game_temp.input_title_command = false # true = Bisa input command_window; false = lawannya true
  65.       SceneManager.goto(Scene_Title)         # Buat reload Scene_Title
  66.     end
  67.     @show_time -= 1 if @command_window.active
  68.   end
  69. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement