Advertisement
Guest User

RAFAEL_SOL_MAKER's VX POWER COMMANDS v1.2

a guest
Nov 17th, 2011
409
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 24.89 KB | None | 0 0
  1. #===============================================================================
  2. #                   RAFAEL_SOL_MAKER's VX POWER COMMANDS v1.2
  3. #-------------------------------------------------------------------------------
  4. # Description:  Special collection with more than 40 different commands and new
  5. #               functions, ready to use. Extremely powerful!!
  6. #-------------------------------------------------------------------------------
  7. # How to Use: Use the functions with the event command 'Call Script', the
  8. #             parameters in brackets '[]' are optional.  
  9. =begin
  10.        
  11. PARTY COMMANDS
  12.   party_full?
  13.   party_state?      (state_id)
  14.   party_skill_learn?(skill_id)  
  15.   remove_all_equip  (id)  
  16.   decreate_steps    ([value])
  17.   reset_steps
  18.   get_all_items
  19.  
  20. EVENTS & CHARACTERS COMMANDS
  21.   start_event_id    (id)
  22.   get_event_id      (x, y)  
  23.   start_event_xy    (x, y)
  24.   set_custom_speed  ([speed], [target])
  25.   move_route_wait    ([id])
  26.   stop_all_movement
  27.   move_all  
  28.   mirror_character  ([target])
  29.   unmirror_character([target])  
  30.  
  31. BATCH TOOLS COMMANDS
  32.   reset_all_switches
  33.   reset_all_variables
  34.   reset_all_self_switches
  35.   batch_self_switch  (map_id, key, state, name)
  36.   delete_pictures    ([start], [finish])
  37.  
  38. MAP COMMANDS
  39.   disable_scroll
  40.   enable_scroll
  41.   save_bgm
  42.   play_saved_bgm
  43.   increase_timer    (value)
  44.   decrease_timer    (value)
  45.   scroll_lower_left  (distance, [speed])
  46.   scroll_lower_right(distance, [speed])
  47.   scroll_upper_left  (distance, [speed])
  48.   scroll_upper_right(distance, [speed])
  49.  
  50. PICTURE COMMANDS
  51.   mirror_picture  ([id])  
  52.   unmirror_picture([id])  
  53.   shake_picture    ([id], [power], [duration])
  54.   jump_picture    ([id], [duration], [height])
  55.  
  56. CHANGE GRAPHIC COMMANDS
  57.   set_windowskin      ([filename])
  58.   set_message_back    ([filename])
  59.   set_balloon_icon    ([filename])
  60.   set_vehicle_shadow  ([filename])
  61.   set_gameover_graphic([filename])
  62.   set_title_graphic    ([filename])
  63.  
  64. MISC COMMANDS
  65.   open_browser ([url])
  66.  
  67. =end
  68. #-------------------------------------------------------------------------------
  69. # Special Thanks:
  70. #               This script would not even be imaginable without the help
  71. #               of great masters of scripting: Team Pockethouse (Engine Melody),
  72. #               Tomy (KGC Library) and Mr.Anonymous (RGSS2+).
  73. #               Most of these commands were made by them! Thanks, guys!!
  74. #-------------------------------------------------------------------------------
  75.  
  76. #===============================================================================
  77. # UPDATES
  78. #-------------------------------------------------------------------------------
  79. # VX POWER COMMANDS v1.1 -> v1.2
  80. # * CHANGE GRAPHIC COMMANDS:
  81. # * Improved a lot the structure to handle invalid images;
  82. # * Now the switching of shadows in vehicles is done without errors;
  83. # * Corrected some bugs on balloons, now it's have no flicker anymore;
  84. # * The title graphic now is changed correctly, but it doesn't save the graphic
  85. #     change in save files, it's just a global variable independent from system;
  86. #-------------------------------------------------------------------------------
  87. #===============================================================================
  88.  
  89. class Game_Interpreter
  90. include PowerPackVX_General_Configs
  91.  
  92.   #--------------------------------------------------------------------------
  93.   #
  94.   #--------------------------------------------------------------------------
  95.   def party_full?
  96.     return $game_party.full?
  97.   end
  98.  
  99.   #--------------------------------------------------------------------------
  100.   #
  101.   #--------------------------------------------------------------------------
  102.   def party_state?
  103.     return $game_party.state?
  104.   end
  105.  
  106.   #--------------------------------------------------------------------------
  107.   #
  108.   #--------------------------------------------------------------------------
  109.   def party_skill_learn?
  110.     return $game_party.skill_learn?
  111.   end
  112.  
  113.   #--------------------------------------------------------------------------
  114.   #
  115.   #--------------------------------------------------------------------------
  116.   def remove_all_equip(id)
  117.     actor = $game_actors[id]
  118.     if actor != nil
  119.       for i in 0..4
  120.         actor.equip(i, 0)
  121.       end
  122.     end
  123.     return true
  124.   end
  125.  
  126.   #--------------------------------------------------------------------------
  127.   #
  128.   #--------------------------------------------------------------------------
  129.   def decrease_steps(value = 1)
  130.     $game_party.decreate_steps(value)
  131.     return true
  132.   end
  133.  
  134.   #--------------------------------------------------------------------------
  135.   #
  136.   #--------------------------------------------------------------------------
  137.   def reset_steps
  138.     $game_party.reset_steps
  139.     return true
  140.   end
  141.  
  142.   #--------------------------------------------------------------------------
  143.   #
  144.   #--------------------------------------------------------------------------  
  145.   def get_all_items
  146.     items = []
  147.     items += $data_items
  148.     items += $data_weapons
  149.     items += $data_armors
  150.     for item in items.compact
  151.       next if item.name == ""
  152.       $game_party.gain_item(item, 99)
  153.     end
  154.   end
  155.  
  156.   #--------------------------------------------------------------------------
  157.   #
  158.   #--------------------------------------------------------------------------
  159.   def start_event_id(id)
  160.     event = $game_map.events[id]
  161.     @child_interpreter = Game_Interpreter.new(@depth + 1)
  162.     @child_interpreter.setup(event.list, @event_id)
  163.   end
  164.  
  165.   #--------------------------------------------------------------------------
  166.   #
  167.   #--------------------------------------------------------------------------
  168.   def get_event_id(x, y)
  169.     event_id = 0
  170.     events   = $game_map.events.values.find_all { |e| e.x == x && e.y == y }
  171.     event_id = (events.max { |a, b| a.id <=> b.id }).id unless events.empty?
  172.     return event_id
  173.   end
  174.  
  175.   #--------------------------------------------------------------------------
  176.   #
  177.   #--------------------------------------------------------------------------
  178.   def start_event_xy(x, y)
  179.     for event in $game_map.events_xy(x, y)
  180.       event.start
  181.     end
  182.   end
  183.  
  184.   #--------------------------------------------------------------------------
  185.   #
  186.   #--------------------------------------------------------------------------
  187.   def set_custom_speed(speed = 4, target = -1)
  188.     character = get_character(target)
  189.     character.set_move_speed(speed)
  190.     return true
  191.   end
  192.  
  193.   #--------------------------------------------------------------------------
  194.   #
  195.   #--------------------------------------------------------------------------
  196.   def move_route_wait(id = 0)
  197.     unless $game_temp.in_battle
  198.       @moving_character = get_character(id)
  199.     end
  200.     return true
  201.   end
  202.  
  203.   #--------------------------------------------------------------------------
  204.   #
  205.   #--------------------------------------------------------------------------
  206.   def disable_scroll
  207.     $game_system.scroll_disabled = true
  208.   end
  209.  
  210.   #--------------------------------------------------------------------------
  211.   #
  212.   #--------------------------------------------------------------------------
  213.   def enable_scroll
  214.     $game_system.scroll_disabled = false
  215.   end
  216.  
  217.   #--------------------------------------------------------------------------
  218.   #
  219.   #--------------------------------------------------------------------------
  220.   def save_bgm
  221.     $game_system.saved_bgm = RPG::BGM.last
  222.   end
  223.  
  224.   #--------------------------------------------------------------------------
  225.   #
  226.   #--------------------------------------------------------------------------
  227.   def play_saved_bgm
  228.     if $game_system.saved_bgm != nil
  229.       $game_system.saved_bgm.play
  230.     end
  231.   end
  232.  
  233.   #--------------------------------------------------------------------------
  234.   #
  235.   #--------------------------------------------------------------------------
  236.   def increase_timer(value)
  237.     $game_system.timer += value * Graphics.frame_rate
  238.   end
  239.  
  240.   #--------------------------------------------------------------------------
  241.   #
  242.   #--------------------------------------------------------------------------
  243.   def decrease_timer(value)
  244.     $game_system.timer -= value * Graphics.frame_rate
  245.   end
  246.  
  247.   #--------------------------------------------------------------------------
  248.   #
  249.   #--------------------------------------------------------------------------
  250.   def scroll_lower_left(distance, speed = 4)
  251.     $game_map.start_scroll(1, distance, speed)
  252.   end
  253.  
  254.   #--------------------------------------------------------------------------
  255.   #
  256.   #--------------------------------------------------------------------------
  257.   def scroll_lower_right(distance, speed = 4)
  258.     $game_map.start_scroll(3, distance, speed)
  259.   end
  260.  
  261.   #--------------------------------------------------------------------------
  262.   #
  263.   #--------------------------------------------------------------------------
  264.   def scroll_upper_left(distance, speed = 4)
  265.     $game_map.start_scroll(7, distance, speed)
  266.   end
  267.  
  268.   #--------------------------------------------------------------------------
  269.   #
  270.   #--------------------------------------------------------------------------
  271.   def scroll_upper_right(distance, speed = 4)
  272.     $game_map.start_scroll(9, distance, speed)
  273.   end  
  274.  
  275.   #--------------------------------------------------------------------------
  276.   #
  277.   #--------------------------------------------------------------------------  
  278.   def stop_all_movement
  279.     $game_map.stop_all_movement = true
  280.   end
  281.  
  282.   #--------------------------------------------------------------------------
  283.   #
  284.   #--------------------------------------------------------------------------  
  285.   def move_all
  286.     $game_map.stop_all_movement = false
  287.   end  
  288.  
  289.   #--------------------------------------------------------------------------
  290.   #
  291.   #--------------------------------------------------------------------------
  292.   def mirror_character(target = -1)
  293.     character = get_character(target)
  294.     character.mirror = true
  295.     return true
  296.   end  
  297.  
  298.   #--------------------------------------------------------------------------
  299.   #
  300.   #--------------------------------------------------------------------------
  301.   def unmirror_character(target = -1)
  302.     character = get_character(target)
  303.     character.mirror = false
  304.     return true
  305.   end
  306.  
  307.   #--------------------------------------------------------------------------
  308.   #
  309.   #--------------------------------------------------------------------------
  310.   def reset_all_switches    
  311.     $game_switches = Game_Switches.new
  312.     $game_map.refresh
  313.   end
  314.  
  315.   #--------------------------------------------------------------------------
  316.   #
  317.   #--------------------------------------------------------------------------
  318.   def reset_all_variables
  319.     $game_variables = Game_Variables.new
  320.     $game_map.refresh
  321.   end
  322.  
  323.   #--------------------------------------------------------------------------
  324.   #
  325.   #--------------------------------------------------------------------------
  326.   def reset_all_self_switches
  327.     $game_self_switches = Game_SelfSwitches.new
  328.     $game_map.refresh
  329.   end
  330.  
  331.   #--------------------------------------------------------------------------
  332.   #
  333.   #--------------------------------------------------------------------------
  334.   def batch_self_switch(map_id, key, state, name)
  335.     map = load_data(sprintf("Data/Map%03d.rvdata", map_id))
  336.     events = []
  337.     for i in map.events.keys
  338.       events[i] = Game_Event.new(map_id, map.events[i])
  339.     end
  340.     for event in events
  341.       next if event == nil
  342.       id = event.id
  343.       if event.name.include?(name)
  344.         $game_self_switches[[map_id, id, key]] = state
  345.       end
  346.     end
  347.     $game_map.refresh if map_id == $game_map.map_id
  348.   end
  349.  
  350.   #--------------------------------------------------------------------------
  351.   #
  352.   #--------------------------------------------------------------------------
  353.   def delete_pictures(start = 1, finish = 20)
  354.     for i in start..finish
  355.       $game_screen.pictures[i].erase
  356.     end
  357.   end  
  358.  
  359.   #--------------------------------------------------------------------------
  360.   #
  361.   #--------------------------------------------------------------------------
  362.   def mirror_picture(id = 1)
  363.     screen.pictures[id].mirror = true
  364.     return true
  365.   end
  366.  
  367.   #--------------------------------------------------------------------------
  368.   #
  369.   #--------------------------------------------------------------------------
  370.   def unmirror_picture(id = 1)
  371.     screen.pictures[id].mirror = false
  372.     return true
  373.   end
  374.  
  375.   #--------------------------------------------------------------------------
  376.   #
  377.   #--------------------------------------------------------------------------
  378.   def shake_picture(id = 1, power = 1, duration = 1)
  379.     screen.pictures[id].shake(power, duration)
  380.     return true
  381.   end  
  382.  
  383.   #--------------------------------------------------------------------------
  384.   #
  385.   #--------------------------------------------------------------------------
  386.   def jump_picture(id = 1, height = 20, duration = 8)
  387.     screen.pictures[id].jump(height, duration)
  388.     return true
  389.   end
  390.  
  391.   #--------------------------------------------------------------------------
  392.   #
  393.   #--------------------------------------------------------------------------
  394.   def set_windowskin(filename = nil)
  395.     $game_system.windowskin = filename
  396.   end
  397.  
  398.   #--------------------------------------------------------------------------
  399.   #
  400.   #--------------------------------------------------------------------------
  401.   def set_message_back(filename = nil)
  402.     $game_system.message_back = filename
  403.   end
  404.  
  405.   #--------------------------------------------------------------------------
  406.   #
  407.   #--------------------------------------------------------------------------
  408.   def set_balloon_icon(filename = nil)
  409.     $game_system.balloon_icon = filename
  410.   end
  411.   #--------------------------------------------------------------------------
  412.   #
  413.   #--------------------------------------------------------------------------
  414.   def set_vehicle_shadow(filename = nil)
  415.     $game_system.vehicle_shadow = filename
  416.   end  
  417.  
  418.   #--------------------------------------------------------------------------
  419.   #
  420.   #--------------------------------------------------------------------------
  421.   def set_gameover_graphic(filename = nil)
  422.     $game_system.gameover_graphic = filename
  423.   end
  424.  
  425.   #--------------------------------------------------------------------------
  426.   #
  427.   #--------------------------------------------------------------------------
  428.   def set_title_graphic(filename = nil)
  429.     $game_system.title_graphic = filename
  430.   end
  431.  
  432.   #--------------------------------------------------------------------------
  433.   #
  434.   #--------------------------------------------------------------------------
  435.   def open_browser(url = "http://www.condadobraveheart.com")
  436.     browser = Win32API.new("shell32", "ShellExecuteA", %w(p p p p p i), "i")
  437.     browser.call(0, "open", url, 0, 0, 1)
  438.   end
  439.  
  440. end
  441.  
  442. #===============================================================================
  443. #                        VX POWER COMMANDS FUNCTIONS
  444. #-------------------------------------------------------------------------------
  445. #===============================================================================
  446.  
  447. #===============================================================================
  448. # Game_Map
  449. #===============================================================================
  450. class Game_Map
  451.   attr_accessor :stop_all_movement
  452.  
  453.   alias sol_maker_initialize initialize unless $@
  454.   def initialize
  455.     sol_maker_initialize
  456.     @stop_all_movement = nil
  457.   end
  458.  
  459.   def update_scroll
  460.     if @scroll_rest > 0
  461.       distance = 2 ** @scroll_speed
  462.       case @scroll_direction
  463.       when 1  
  464.         scroll_down(distance)
  465.         scroll_left(distance)
  466.       when 2  
  467.         scroll_down(distance)
  468.       when 3  
  469.         scroll_down(distance)
  470.         scroll_right(distance)
  471.       when 4  
  472.         scroll_left(distance)
  473.       when 6  
  474.         scroll_right(distance)
  475.       when 7  
  476.         scroll_up(distance)
  477.         scroll_left(distance)
  478.       when 8
  479.         scroll_up(distance)
  480.       when 9  
  481.         scroll_up(distance)
  482.         scroll_right(distance)
  483.       end
  484.       @scroll_rest -= distance
  485.     end
  486.   end
  487.  
  488. end
  489.  
  490. #===============================================================================
  491. # Game_System
  492. #===============================================================================
  493. class Game_System
  494.   attr_accessor :saved_bgm
  495.   attr_accessor :windowskin
  496.   attr_accessor :message_back
  497.   attr_accessor :balloon_icon            
  498.   attr_accessor :vehicle_shadow
  499.   attr_accessor :gameover_graphic
  500.   attr_accessor :scroll_disabled          
  501.  
  502.   alias sol_maker_initialize initialize unless $@
  503.   def initialize
  504.     sol_maker_initialize
  505.     @saved_bgm          = nil
  506.     @windowskin         = nil
  507.     @message_back       = nil
  508.     @balloon_icon      = nil
  509.     @vehicle_shadow    = nil
  510.     @gameover_graphic  = nil
  511.     @scroll_disabled    = false  
  512.   end
  513.  
  514.   def save_bgm
  515.     @saved_bgm = RPG::BGM.last
  516.   end
  517.  
  518.   def play_saved_bgm
  519.     if @saved_bgm != nil
  520.       @saved_bgm.play
  521.     end
  522.   end
  523.  
  524. end
  525.  
  526. #===============================================================================
  527. # Game_Character
  528. #===============================================================================
  529. class Game_Character
  530.   attr_accessor :mirror
  531.  
  532.   alias sol_maker_initialize initialize unless $@
  533.   def initialize
  534.     sol_maker_initialize
  535.     @mirror = false
  536.   end
  537.  
  538.   alias sol_maker_update_self_movement update_self_movement unless $@
  539.   def update_self_movement
  540.     return if $game_map.stop_all_movement
  541.     sol_maker_update_self_movement
  542.   end
  543.  
  544. end
  545.  
  546. #===============================================================================
  547. # Game_Player
  548. #===============================================================================
  549. class Game_Player < Game_Character  
  550.  
  551.   def update
  552.     last_real_x = @real_x
  553.     last_real_y = @real_y
  554.     last_moving = moving?
  555.     move_by_input
  556.     super
  557.     update_scroll(last_real_x, last_real_y) unless $game_system.scroll_disabled
  558.     update_vehicle
  559.     update_nonmoving(last_moving)
  560.   end
  561.  
  562. end
  563.  
  564. #===============================================================================
  565. # Game_Picture
  566. #===============================================================================
  567. class Game_Picture
  568.   attr_accessor :mirror
  569.  
  570.   alias sol_maker_initialize initialize unless $@
  571.   def initialize(number)  
  572.   sol_maker_initialize(number)
  573.     @shake_x        = @x
  574.     @shake_y        = @y
  575.     @shake_duration = 0
  576.     @shake_power    = 1
  577.     @shake_flag     = 1
  578.     @jump_down      = @y
  579.     @jump_up        = @y - 20.0
  580.     @jump_duration  = 0
  581.     @mirror = false
  582.   end
  583.  
  584.   alias sol_maker_update update unless $@
  585.   def update
  586.   sol_maker_update
  587.     if @shake_duration >= 1
  588.       @shake_flag *= -1
  589.       f = @shake_flag
  590.       @x = @shake_x + ((@x - @shake_x) + rand(@shake_power) * (f * -1)) * f
  591.       @y = @shake_y + ((@y - @shake_y) + rand(@shake_power) * (f * -1)) * f
  592.       @shake_duration -= 1
  593.       if @shake_duration <= 0
  594.         @x = @shake_x
  595.         @y = @shake_y
  596.       end
  597.     end
  598.     if @jump_duration >= 1
  599.       d = @jump_duration
  600.       if d >= 5
  601.         d -= 4
  602.         @y = (@y * (d - 1) + @jump_up) / d
  603.       else
  604.         @y = (@y * (d - 1) + @jump_down) / d
  605.       end
  606.       @jump_duration -= 1
  607.     end
  608.   end
  609.  
  610.   def shake(power, duration)
  611.     @shake_power = power
  612.     @shake_duration = duration
  613.     @shake_x = @x
  614.     @shake_y = @y
  615.   end
  616.  
  617.   def jump(height = 20, duration = 8)
  618.     @jump_duration = duration
  619.     @jump_up = @y - height.to_f
  620.     @jump_down = @y
  621.   end
  622.  
  623. end
  624.  
  625. #===============================================================================
  626. # Game_Party
  627. #===============================================================================
  628. class Game_Party < Game_Unit  
  629.  
  630.   def full?
  631.     return (@actors.size >= MAX_MEMBERS)
  632.   end
  633.  
  634.   def reset_steps
  635.     @steps = 0
  636.   end
  637.  
  638.   def decrease_steps(value)
  639.     @steps -= value
  640.     @steps = 0 if @steps < 0
  641.   end
  642.  
  643.   def skill_learn?(skill_id)
  644.     for actor in members
  645.       return true if actor.skill_learn?($data_skills[skill_id])
  646.     end
  647.     return false
  648.   end
  649.  
  650.   def state?(state_id)
  651.     for actor in members
  652.      return true if actor.state?(state_id)
  653.     end
  654.     return false
  655.   end
  656.  
  657. end
  658.  
  659. #===============================================================================
  660. # Sprite_Picture
  661. #===============================================================================
  662. class Sprite_Picture < Sprite
  663.  
  664.   alias update_sprite_picture_rf update unless $@
  665.   def update
  666.     if @picture == nil
  667.       $game_map.screen.clear
  668.       return
  669.     end
  670.     update_sprite_picture_rf
  671.     self.mirror = @picture.mirror
  672.   end
  673.  
  674. end
  675.  
  676. #===============================================================================
  677. # Sprite_Picture
  678. #===============================================================================
  679. class Sprite_Character < Sprite_Base
  680.   attr_accessor :balloon_name
  681.  
  682.   def start_balloon
  683.     dispose_balloon
  684.     @balloon_duration = 8 * 8 + BALLOON_WAIT
  685.     @balloon_sprite = ::Sprite.new(viewport)
  686.     @balloon_sprite.bitmap = Cache.system($game_system.balloon_icon) rescue Cache.system("Balloon")
  687.     @balloon_sprite.ox = 16
  688.     @balloon_sprite.oy = 32
  689.     update_balloon
  690.   end
  691.  
  692.   alias sol_maker_update update unless $@
  693.   def update
  694.     sol_maker_update
  695.     self.mirror = @character.mirror
  696.   end
  697. end
  698.  
  699. #===============================================================================
  700. # Spriteset_Map
  701. #===============================================================================
  702. class Spriteset_Map
  703.   attr_accessor :vehicle_shadow_name  
  704.  
  705.   alias sol_maker_create_shadow create_shadow unless $@
  706.   def create_shadow
  707.     sol_maker_create_shadow
  708.     set_vehicle_shadow
  709.   end
  710.  
  711.   alias sol_maker_update_shadow update_shadow unless $@
  712.   def update_shadow
  713.     set_vehicle_shadow
  714.     sol_maker_update_shadow
  715.   end
  716.  
  717.   def set_vehicle_shadow
  718.     if @vehicle_shadow_name != $game_system.vehicle_shadow
  719.       @vehicle_shadow_name = $game_system.vehicle_shadow
  720.       @shadow_sprite.bitmap = Cache.system(@vehicle_shadow_name) rescue Cache.system("Shadow")
  721.     end
  722.   end
  723.  
  724. end
  725.  
  726. #===============================================================================
  727. # Spriteset_Map
  728. #===============================================================================
  729. class Window_Base < Window
  730.   attr_accessor :windowskin_name
  731.  
  732.   alias sol_maker_initialize initialize unless $@
  733.   def initialize(x, y, width, height)
  734.     sol_maker_initialize(x, y, width, height)
  735.     set_windowskin
  736.   end
  737.  
  738.   alias sol_maker_update update unless $@
  739.   def update
  740.   sol_maker_update
  741.   @windowskin_name  = nil  
  742.     set_windowskin
  743.   end
  744.  
  745.   def set_windowskin
  746.     if @windowskin_name != $game_system.windowskin
  747.       @windowskin_name = $game_system.windowskin      
  748.       self.windowskin = Cache.system($game_system.windowskin) rescue Cache.system("Window")
  749.     end
  750.   end
  751.  
  752. end
  753.  
  754. #===============================================================================
  755. # Window_Message
  756. #===============================================================================
  757. class Window_Message < Window_Selectable
  758.   attr_accessor :messageback_name
  759.  
  760.   alias sol_maker_create_back_sprite create_back_sprite unless $@
  761.   def create_back_sprite
  762.     sol_maker_create_back_sprite  
  763.     set_message_back
  764.   end
  765.  
  766.   alias sol_maker_update_back_sprite update_back_sprite unless $@
  767.   def update_back_sprite
  768.     sol_maker_update_back_sprite
  769.     set_message_back
  770.   end
  771.  
  772.   def set_message_back
  773.     if @messageback_name != $game_system.message_back
  774.       @messageback_name = $game_system.message_back      
  775.       @back_sprite.bitmap = Cache.system($game_system.message_back) rescue Cache.system("MessageBack")
  776.     end
  777.   end
  778.  
  779. end
  780.  
  781. #===============================================================================
  782. # Scene_Title
  783. #===============================================================================
  784. class Scene_Title < Scene_Base
  785.  
  786.   alias sol_maker_create_title_graphic create_title_graphic unless $@
  787.   def create_title_graphic
  788.     @sprite = Sprite.new
  789.     @sprite.bitmap = Cache.system($temp_title_graphic) rescue Cache.system("Title")
  790.   end
  791.  
  792. end
  793.  
  794. #===============================================================================
  795. # Scene_Gameover
  796. #===============================================================================
  797. class Scene_Gameover < Scene_Base
  798.  
  799.   alias sol_maker_create_gameover_graphic create_gameover_graphic unless $@
  800.   def create_gameover_graphic
  801.     sol_maker_create_gameover_graphic
  802.     @sprite.bitmap = Cache.system($game_system.gameover_graphic) rescue Cache.system("GameOver")
  803.   end
  804.  
  805. end
  806.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement