Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $imported = {} if $imported == nil
- $imported["KZM_CORE"] = true
- #==============================================================#
- # KZM - Core #
- #==============================================================#
- # Quest'opera è stata rilasciata con licenza Creative Commons #
- # Attribuzione - Condividi allo stesso modo 3.0 Italia. Per #
- # leggere una copia della licenza visita il sito web #
- # http://creativecommons.org/licenses/by-sa/3.0/it/ #
- # o spedisci una lettera a #
- # Creative Commons, PO Box 1866, Mountain View, CA 94042, USA. #
- #==============================================================#
- # Versione 1.1 #
- #--------------------------------------------------------------#
- # Storia #
- # 08/06/2015 Script iniziato e finito #
- # 07/06/2016 Inclusa la Cura su Level UP all'interno del Core #
- #==============================================================#
- # Descrizione #
- # Questo script permette di personalizzare il vostro #
- # progetto solamente configurando la parte qua sotto #
- #==============================================================#
- # Istruzioni #
- # Installare sotto "▼ Materials" e sopra "▼ Main". #
- #==============================================================#
- # CONFIGURAZIONE #
- #==============================================================#
- module KZM
- RISOLUZIONE = [640,480] # Game resolution, max 640x480
- SALVATAGGIO = '.sav' # save file extension
- SLOT = 15 # number of save slots
- Font.default_name = ["Times New Roman"] # default text font
- SIZE = 20 # font size
- BOLD = true # grassetto true => attivo, false => disattivo
- ITALIC = false # corsivo true => attivo, false => disattivo
- OUTLINE = true # bordo true => attivo, false => disattivo
- SHADOW = true # ombreggiatura true => attivo, false => disattivo
- ATTIVO = 1 # enable Switch [x] to enable heal on level up function (write the switch number instead of 1)
- HP = 2 # if heal on level up is on, with this switch enabled (write the switch number instead of 2),
- # only hp and mp will be restored on level up, else, even states will be affected by it
- end
- #=============================================================#
- # FINE CONFIGURAZIONE ** DO NOT MODIFY ANYTHING BELOW ** #
- #=============================================================#
- module SceneManager
- def self.run
- Graphics.resize_screen(KZM::RISOLUZIONE[0],KZM::RISOLUZIONE[1])
- DataManager.init
- Audio.setup_midi if use_midi?
- @scene = first_scene_class.new
- @scene.main while @scene
- end
- end
- module DataManager
- def self.save_file_exists?
- !Dir.glob('Save*' + KZM::SALVATAGGIO).empty?
- end
- def self.savefile_max
- return KZM::SLOT
- end
- def self.make_filename(index)
- sprintf("Save%02d" + KZM::SALVATAGGIO, index + 1)
- end
- end
- class Window_Base < Window
- def setup_message_font
- change_color(normal_color)
- contents.font.out_color = Font.default_out_color
- contents.font.size = KZM::SIZE
- contents.font.bold = KZM::BOLD
- contents.font.italic = KZM::ITALIC
- contents.font.outline = KZM::OUTLINE
- contents.font.shadow = KZM::SHADOW
- end
- alias window_base_reset_font_settings_ams reset_font_settings
- def reset_font_settings
- setup_message_font
- end
- end
- class Game_Actor < Game_Battler
- alias heal_on_level_up level_up
- def level_up
- heal_on_level_up
- if $game_switches[KZM::ATTIVO]
- if $game_switches[KZM::HP]
- @hp = mhp
- @mp = mmp
- else
- recover_all
- end
- end
- end
- end
Add Comment
Please, Sign In to add comment