# ============================================================================= # TheoAllen - Auto-Toggle Switches # Version : 1.0 # Contact : www.rpgmakerid.com (or) http://theolized.blogspot.com # (This script documentation is written in informal indonesian language) # ============================================================================= ($imported ||= {})[:Theo_AutoSwitch] = true # ============================================================================= # CHANGE LOGS: # ----------------------------------------------------------------------------- # 2013.08.22 - Finished script # ============================================================================= =begin Perkenalan : Script ini berfungsi untuk ngebikin game switches otomatis nyala dengan kondisi yang ditentuin berdasar script Cara penggunaan : Pasang diatas main namun dibawah material. Edit konfignya 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 Switch List = { # ID => "Script Eval" 5 => "$game_system.playtime > 10", } end end # ============================================================================= # Akhir dari konfigurasi # ============================================================================= class Game_Switches def update THEO::Switch::List.each do |id,script| cond = eval(script) self[id] = cond if self[id] != cond end end end class Scene_Base alias theo_auto_toggle_switches_update update def update theo_auto_toggle_switches_update $game_switches.update end end