Need RMXP House System 1.6

Hi, dose anyone have this system, I really need it.
House System
By: MephistoX
Version: 1.6

Thanks
Dose anyone have this I dont need this version any will do, Please :)
I've been trying to find it on the net but I think it's completely lost, I can't even find the author still online. :(
Wow you're useful.
I have no guarantee that it'll work as expected, or that it's close to being the most recent version, but I found this copy of the script in this thread:

  1. #==============================================================================
  2. # ** House System (a.k.a Secret Base System - The Sims House Customizer)
  3. #------------------------------------------------------------------------------
  4. # MephistoX
  5. # Version 1.6
  6. # 25/02/09
  7. # SDK : Version 2.3+
  8. #------------------------------------------------------------------------------
  9. # * Version History :
  10. #
  11. #   Version 0.9---------------------------------------------------- (07/02/09)
  12. #    - Log : First Released Version
  13. #   Version 1 ----------------------------------------------------- (14/02/09)
  14. #    - Log :  First Stable Version (Never Released)
  15. #    Version 1.1 ------------------------------------------------- (15/02/09)
  16. #     - Update : Add 'Move' Furniture Feature
  17. #    Version 1.2 ------------------------------------------------- (16/02/09)
  18. #     - Update : Merge with Meph's Icon Commands
  19. #    Version 1.3 ------------------------------------------------- (17/02/09)
  20. #     - Update : Add Help Texts to each action
  21. #    Version 1.5 --------------------------------------------------(20/02/09)
  22. #     - Log : Final Script Revision, beta tested, code revision
  23. #    Version 1.6 --------------------------------------------------(25/02/09)
  24. #     - Update: Multiple Terrain tags for Furniture Types
  25. #------------------------------------------------------------------------------
  26. # * Requirements :
  27. #
  28. #   Method & Class Library (2.3 +)
  29. #   SephirothSpawns's Event Spawner (2.2+)
  30. #   Meph's Icon Commands(1.0+)
  31. #------------------------------------------------------------------------------
  32. # * Description :
  33. #
  34. #   This Script allow you to decorate, put furnitures, and other types of
  35. #   objects to one Map(eg.House).
  36. #   This Script simulates the 'Pokemon Secret Base System' or 'The Sims'.
  37. #  
  38. #   This Script is a Kind of Remake of NearFantastica's Dynamic Maps, but
  39. #   this one was made from 0, no copy from near script.
  40. #------------------------------------------------------------------------------
  41. # * Instructions :
  42. #
  43. #   Place The Script Below the MACL, SDK & Seph's Event Spawner
  44. #   Refer to Modules to Customize the System
  45. #------------------------------------------------------------------------------
  46. # * Syntax :
  47. #
  48. #   Get Furniture :
  49. #    - Script : $game_party.get_furniture('Furniture Name')
  50. #  
  51. #==============================================================================
  52.  
  53. #------------------------------------------------------------------------------
  54. # * SDK Log Script
  55. #------------------------------------------------------------------------------
  56. SDK.log('House System', 'MephistoX', 1.6, '25/02/09')
  57. SDK.check_requirements(2.4, [], {'Method & Class Library' => 2.2})
  58.  
  59. #------------------------------------------------------------------------------
  60. # * Begin SDK Enable Test
  61. #------------------------------------------------------------------------------
  62. if SDK.enabled?('House System')
  63.  
  64.  
  65. #==============================================================================
  66. # ** Furnitures
  67. #==============================================================================
  68.  
  69. module Furnitures
  70.   #--------------------------------------------------------------------------
  71.   # ► Furnitures
  72.   #
  73.   #  ~ Store the Furniture Information, to create new furnitures use:
  74.   #    Furnitures = {'Name' => [Object_id, description, Type, Icon]}
  75.   #
  76.   #  |Where|:
  77.   #        ~ 'Name'(Key)        => The Furniture Name
  78.   #        ~ 'Object_ID'(0)     => The Furniture Event ID, at Furnitures Map
  79.   #        ~ 'Icon'(1)          => Icon for Command Windows
  80.   #        ~ 'Description'(2)   => The Furniture Description or Help Text
  81.   #        ~ 'Type'(3)          => Decoration Type, see Types in the Module
  82.   #
  83.   #  The 'Name' will be used in the next constants, so be carefull with this.
  84.   #--------------------------------------------------------------------------
  85.   Furnitures = {
  86.     'Picasso'  => [3, 'MP_001-Barril01', "Picasso's Famous Picture",'Wall'],
  87.     'Water Can'=> [1, 'MP_001-Barril01', 'A can for water','Tables'],
  88.     'Bucket'   => [2, 'MP_001-Barril01', 'A Bucket to put Plants','Floor'],
  89.     'Basket'   => [4, 'MP_001-Barril01', 'A Basket to put Items', 'Table&Floor']
  90.   }
  91.   #--------------------------------------------------------------------------
  92.   # ► Furniture Install Type
  93.   #
  94.   #  ~ Store Furniture decoration/furniture 'Installation' Type
  95.   #    Types = { 'Name' => [Terrain Tag 1, Terrain Tag 2]}
  96.   #
  97.   #  This was created to avoid that classic Cliche "Install Picture on the Floor"
  98.   #--------------------------------------------------------------------------
  99.   Types  = {
  100.     'Floor' => [1],
  101.     'Wall' => [2],
  102.     'Tables' => [3],
  103.     'Table&Floor' => [1,3]
  104.   }
  105.   Types.default = 0
  106.   #--------------------------------------------------------------------------
  107.   # ► Houses Maps
  108.   #
  109.   #  ~ Store the Maps Ids when it's possible call Decoration Scene
  110.   #    and the Furniture limit per Map.
  111.   #    Houses_Maps = {map_id, furnitures_limit, ....}
  112.   #--------------------------------------------------------------------------                  
  113.   House_Maps = {3 => 10}
  114.   #--------------------------------------------------------------------------
  115.   # ► Furniture Maps
  116.   #
  117.   #  ~ Store the Map ID, where are stored the furniture events
  118.   #    Map = ID
  119.   #--------------------------------------------------------------------------
  120.   Map  = 4
  121.   #--------------------------------------------------------------------------
  122.   # ► Error Help Message
  123.   #
  124.   #  ~ Store the Message for Prohibitions, used Decoration Scene
  125.   #    Error_Help = { Ocassion => 'Text or Message'}
  126.   #
  127.   #  ~ Ocassion Case ~
  128.   #
  129.   #  'No_Furni'  : When Party has no selected furniture
  130.   #  'Cant_Put'  : When It's Impossible to put the furniture at place
  131.   #  'Cant_Grab' : When It's Impossible to Grab that Furniture (No Furnitures)
  132.   #--------------------------+------------------------------------------------
  133.   Error_Help  = {
  134.     'Putted'      => 'You Put',
  135.     'Grabbed'     => 'You Remove',
  136.     'No_Furni'    => 'No Furniture Selected',
  137.     'Cant_Put'    => 'You can not put that there!!',
  138.     'Cant_Put2'   => 'Already there is an Object there!!',
  139.     'Cant_Grab'   => 'You can not remove this!!',
  140.     'Limit_Reach' => 'You can not put more objects!',
  141.     'Cant_Move'   => 'You can not move this!!',
  142.     'Cant_Move_h' => 'You can not move that to here!!',
  143.     'Set_Place'   => 'Selec a new spot to move the object',
  144.     'Moved'       => 'You moved'
  145.   }
  146.   #--------------------------------------------------------------------------
  147.   # ► Decoration Scene Main Command Parameters
  148.   #
  149.   #  ~ Store the Map ID, where are stored the furniture events
  150.   #    Commands = {command.index => ['Name', 'Icon', 'Help Text']}
  151.   #
  152.   #  |Where|:
  153.   #        ~ 'command.index'(Key)  => Option Index ¡¡DONT TOUCH!!
  154.   #        ~ 'Name'(0)          => Command Name (See Index Case)
  155.   #        ~ 'Icon'(1)          => Icon command
  156.   #        ~ 'Help Text'(2)     => The Command Description or Help Text
  157.   #
  158.   #  |Index Case|:
  159.   #
  160.   #  0  : Put Furniture
  161.   #  1  : Remove/Grab Furniture
  162.   #  2  : Exit from Scene to Map
  163.   #--------------------------------------------------------------------------
  164.   Commands = {
  165.     0 => ['Put', 'MP_001-Hand01', 'Put Furnitures'],
  166.     1 => ['Move', '001-Weapon01', 'Move furnitures'],
  167.     2 => ['Remove','MP_001-Hammer01', 'Remove Furnitures'],
  168.     3 => ['Exit', 'MP_001-Normal01', 'Exit from House MOde']}
  169.   #--------------------------------------------------------------------------
  170.   # ► Call Scene Buton
  171.   #
  172.   #  ~ Store The Button to Call Decoration Scene
  173.   #    Buttons  = {'Action' => Input::Button}
  174.   #--------------------------------------------------------------------------
  175.   Call_Button = Input::Z
  176.   #--------------------------------------------------------------------------
  177.   # ► Cursor Graphic
  178.   #
  179.   #  ~ Store the Cursor Name for House Decoration Scene
  180.   #    Cursor_Graphic = 'Cursor Name' <= Must be Character Graphic
  181.   #--------------------------------------------------------------------------
  182.   Cursor_Graphic = 'Cursor'
  183.   #--------------------------------------------------------------------------
  184.   # ► Furnitures Name Suffix
  185.   #
  186.   #  ~ Store the Furniture Events Name, used in several methods.
  187.   #    Suffix = 'string' => DON'T TOUCH, UNLESS YOU KNOW WHAT YOU WILL DO!!
  188.   #--------------------------------------------------------------------------
  189.   Suffix  = '_Furniture'
  190.   #--------------------------------------------------------------------------
  191.   # * Put
  192.   #--------------------------------------------------------------------------
  193.   def self.put(furni_map, furni_id, x, y, name)
  194.     # Call Event_Spawer.clone_event2 method
  195.     Event_Spawner.clone_event2(furni_map, furni_id, x, y,
  196.     "#{name}#{Suffix}", true, true)
  197.     # Delete the setted object from the furnitures array
  198.     $game_party.furnitures.delete_once(name)
  199.   end
  200.   #--------------------------------------------------------------------------
  201.   # * Pick
  202.   #--------------------------------------------------------------------------
  203.   def self.pick(x, y)  
  204.     # Push the Event Name without '_Furni' string to Party's furniture array
  205.     $game_party.furnitures << $game_map.event_at(x, y).name.chomp("#{Suffix}")
  206.     # Delete the Furniture at [x, y] Position
  207.     $game_map.delete_event_at(x, y)
  208.   end
  209. end
  210.  
  211. #==============================================================================
  212. # ** Event_Spawner
  213. #==============================================================================
  214.  
  215. module Event_Spawner::Events
  216.   #--------------------------------------------------------------------------
  217.   # * Event_Spawner:: Spawn Dummy Event
  218.   #--------------------------------------------------------------------------
  219.   def self.dummy_event(x, y, d, graphic)
  220.     Event_Spawner.create_event(x, y, 'Character Clone')
  221.     Event_Spawner.set_page_graphic({'c_name' => "#{graphic}", 'dir' => d})
  222.     Event_Spawner.end_event
  223.   end
  224. end
  225.  
  226. #==============================================================================
  227. # ** Array
  228. #==============================================================================
  229.  
  230. class Array
  231.   #--------------------------------------------------------------------------
  232.   # * Name      : Delete Once
  233.   #   Info      : Deletes object object in array
  234.   #   Author    : SephirothSpawn
  235.   #   Call Info : One Argument, item in array
  236.   #--------------------------------------------------------------------------
  237.   def delete_once(object)
  238.     # Pass Through self
  239.     each_index do |i|
  240.       if self[i] == object
  241.         delete_at(i)
  242.         return
  243.       end
  244.     end
  245.   end
  246. end
  247.  
  248. #==============================================================================
  249. # ** Game_Temp
  250. #==============================================================================
  251.  
  252. class Game_Temp
  253.   #--------------------------------------------------------------------------
  254.   # * Public Instance Variables
  255.   #--------------------------------------------------------------------------
  256.   attr_accessor :putting_furniture        # Putting Furniture?
  257.   attr_accessor :grabbing_furniture       # Grabbing Furniture?
  258.   attr_accessor :moving_furniture          # Moving FUrniture?
  259.   attr_accessor :moving
  260.   #--------------------------------------------------------------------------
  261.   # * Alias Listing
  262.   #--------------------------------------------------------------------------
  263.   alias_method :meph_furni_gtemp_init, :initialize
  264.   #--------------------------------------------------------------------------
  265.   # * Object Initialization
  266.   #--------------------------------------------------------------------------
  267.   def initialize
  268.     # Original Initialize
  269.     meph_furni_gtemp_init
  270.     @putting_furniture = false
  271.     @grabbing_furniture = false
  272.     @moving_furniture = false
  273.     @moving = false
  274.   end
  275. end
  276.  
  277. #==============================================================================
  278. # ** Game_Party
  279. #==============================================================================
  280.  
  281. class Game_Party
  282.   #--------------------------------------------------------------------------
  283.   # * Public Instance Variables
  284.   #--------------------------------------------------------------------------
  285.   attr_accessor :furnitures             # Party furnitures
  286.   attr_accessor :held_furniture         # Held furniture
  287.   #--------------------------------------------------------------------------
  288.   # * Alias Listing
  289.   #--------------------------------------------------------------------------
  290.   alias_method :meph_furni_gparty_init, :initialize
  291.   #--------------------------------------------------------------------------
  292.   # * Object Initialization
  293.   #--------------------------------------------------------------------------
  294.   def initialize
  295.     # Original Initialize
  296.     meph_furni_gparty_init
  297.     # Set Party Furnitures to Nil
  298.     @furnitures     = []
  299.     # Set held furniture to nil
  300.     @held_furniture = nil
  301.   end
  302.   #--------------------------------------------------------------------------
  303.   # * Get Furniture
  304.   #--------------------------------------------------------------------------
  305.   def get_furniture(name)
  306.     # If Furniture exists
  307.     if Furnitures::Furnitures.has_key?(name)
  308.       # Add Furniture to Party's Furniture Array
  309.       $game_party.furnitures << name
  310.       # Sort Furnitures in list by name
  311.       $game_party.furnitures.sort!
  312.     end
  313.   end
  314. end
  315.  
  316. #==============================================================================
  317. # ** Game_Map
  318. #==============================================================================
  319.  
  320. class Game_Map
  321.   #-------------------------------------------------------------------------
  322.   # * Name      : delete_event_at
  323.   #   Info      : Delete event at [x,y] position
  324.   #   Author    : MephistoX
  325.   #   Call Info : Two Arguments Integer X, Y - Event coordinates to delete
  326.   #-------------------------------------------------------------------------
  327.   def delete_event_at(x, y)
  328.     # If exist an event at [x,y] position, store the event id
  329.     id = event_at(x, y).id if event?(x,y)
  330.     # Delete event with id = id
  331.     delete_event(id)
  332.   end
  333.   #-------------------------------------------------------------------------
  334.   # * Name      : Events names have string?
  335.   #   Info      : If any event on map include string
  336.   #   Author    : MephistoX
  337.   #   Call Info : One Argument, String to check
  338.   #-------------------------------------------------------------------------
  339.   def events_name_has_string?(string)
  340.     # Pass through all Map Events
  341.     @events.each_value do |event|
  342.       # If any map events names include the string
  343.       return true if event.name.include?(string)
  344.     end
  345.     return false
  346.   end
  347. end
  348.  
  349. #==============================================================================
  350. # ** Game_Character
  351. #==============================================================================
  352.  
  353. class Game_Character
  354.   #--------------------------------------------------------------------------
  355.   # * Public Instance Variables
  356.   #--------------------------------------------------------------------------
  357.   attr_accessor :through                  # Through  
  358.   attr_accessor :always_on_top            # Always on Top
  359.   attr_accessor :old_graphic              # Old Character Graphic
  360.   attr_accessor :old_x                    # Old Character X spot
  361.   attr_accessor :old_y                    # Old Character Y spot
  362.   attr_accessor :old_direction            # Old Chaaracter Direction
  363.   #--------------------------------------------------------------------------
  364.   # * Alias Listing
  365.   #--------------------------------------------------------------------------
  366.   alias_method :meph_furni_gmchara_init, :initialize
  367.   #--------------------------------------------------------------------------
  368.   # * Object Initialization
  369.   #--------------------------------------------------------------------------
  370.   def initialize
  371.     # Original Initialize
  372.     meph_furni_gmchara_init
  373.     @old_graphic        = ''
  374.     @old_x              = 0
  375.     @old_y              = 0
  376.     @old_direction      = 2
  377.   end
  378.   #--------------------------------------------------------------------------
  379.   # * Store Coordinates
  380.   #     Store Character [x,y]Coordinates, direction and Graphic
  381.   #--------------------------------------------------------------------------
  382.   def store_coordinates
  383.     @old_graphic = @character_name
  384.     @old_x = @x  
  385.     @old_y = @y
  386.     @old_direction = @direction
  387.   end
  388. end
  389.  
  390. #==============================================================================
  391. # ** Game_Event
  392. #==============================================================================
  393.  
  394. class Game_Event < Game_Character
  395.   #--------------------------------------------------------------------------
  396.   # * Public Instance Variables
  397.   #--------------------------------------------------------------------------
  398.   attr_accessor :name
  399.   #--------------------------------------------------------------------------
  400.   # * Alias Listing
  401.   #--------------------------------------------------------------------------
  402.   alias_method :meph_furni_gvent_init, :initialize
  403.   #--------------------------------------------------------------------------
  404.   # * Object Initialization
  405.   #--------------------------------------------------------------------------
  406.   def initialize(*args)
  407.     # Original Initialize
  408.     meph_furni_gvent_init(*args)
  409.     # Set Event Name
  410.     @name = @event.name
  411.   end
  412. end
  413.  
  414. #==============================================================================
  415. # ** Scene_Map
  416. #==============================================================================
  417.  
  418. class Scene_Map
  419.   #--------------------------------------------------------------------------
  420.   # * Alias Listings
  421.   #--------------------------------------------------------------------------
  422.   alias_method :meph_furni_scnmap_update, :update
  423.   alias_method :meph_furni_scnmp_ucm, :update_call_menu
  424.   alias_method :meph_furni_scnmp_uca, :update_calling
  425.   #--------------------------------------------------------------------------
  426.   # * Frame Update
  427.   #--------------------------------------------------------------------------
  428.   def update
  429.     # Original Update
  430.     meph_furni_scnmap_update
  431.     # If Input Furnitures::Buttons::Call_Scene, unless furniture flag  
  432.     # & actual map ($Game_Map) is included in Furnitures::Houses_ID
  433.     if (Input.trigger?(Furnitures::Call_Button) &&
  434.       $game_temp.putting_furniture == false &&
  435.       $game_temp.grabbing_furniture == false &&
  436.       $game_temp.moving_furniture == false &&
  437.       Furnitures::House_Maps.include?($game_map.map_id))  
  438.       $game_system.se_play($data_system.decision_se)
  439.       # Call Scene for House Decoration : Furniture Select
  440.       $scene = House_Decoration.new
  441.     end
  442.   end
  443.   #--------------------------------------------------------------------------
  444.   # * Frame Update : Menu Calling
  445.   #--------------------------------------------------------------------------
  446.   def update_call_menu
  447.     # Return if Putting or Grabbing
  448.     if ($game_temp.putting_furniture || $game_temp.grabbing_furniture ||
  449.        $game_temp.moving_furniture)
  450.       return
  451.     end
  452.     # Original Menu Calling
  453.     meph_furni_scnmp_ucm
  454.   end
  455.   #--------------------------------------------------------------------------
  456.   # * Frame Update : Calling
  457.   #--------------------------------------------------------------------------
  458.   def update_calling  
  459.     # If Putting Furniture
  460.     if $game_temp.putting_furniture
  461.       # Call Method
  462.       putting_furniture
  463.       return
  464.     end
  465.     # If Moving
  466.     if $game_temp.moving_furniture
  467.       # Call Method
  468.       moving_furniture
  469.       return
  470.     end
  471.     # If Grabbing Furniture
  472.     if $game_temp.grabbing_furniture
  473.       # Call Method
  474.       grabbing_furniture
  475.       return
  476.     end
  477.     # Update Orginal Map
  478.     meph_furni_scnmp_uca
  479.   end
  480.   #--------------------------------------------------------------------------
  481.   # * Begin Decorating House Process
  482.   #--------------------------------------------------------------------------
  483.   def begin_decorating_house
  484.     # Set instance variable
  485.     gp = $game_player
  486.     # Assign Player x,y actual position and store them
  487.     gp.store_coordinates
  488.     # Create local variable for Player's [x,y] position & direction
  489.     x, y, direction = gp.old_x, gp.old_y, gp.old_direction
  490.     # Create local variable for Player's graphic
  491.     graphic = gp.old_graphic
  492.     # Call Event_Spawner Pre-Created Event
  493.     Event_Spawner::Events.dummy_event(x, y, direction, graphic)
  494.     # Move Cursor (Player) to [x,y] coordinates
  495.     gp.moveto(5,5)
  496.     # Change Player's Character Graphic to defined (default is a cursor)
  497.     gp.character_name = Furnitures::Cursor_Graphic
  498.     # Change Player Movement conditions : through, always on top, d_fix
  499.     gp.through, gp.always_on_top, gp.direction_fix  = true, true, true
  500.     gp.disable_player_trigger = true, true
  501.   end
  502.   #--------------------------------------------------------------------------
  503.   # * Set Help Window : Set Help Window with Easy call
  504.   #--------------------------------------------------------------------------
  505.   def set_help_window(text, align = 1)
  506.     # Set Help Window
  507.     @help_window = Window_Help.new
  508.     @help_window.back_opacity = 160
  509.     @help_window.set_text(text, 1)
  510.     # Disable Player movement
  511.     $game_player.disable_player_movement = true
  512.   end
  513.   #--------------------------------------------------------------------------
  514.   # * Dispose Help
  515.   #--------------------------------------------------------------------------
  516.   def dispose_help
  517.     # Dipose Window
  518.     @help_window.dispose
  519.     # Set Window to nil
  520.     @help_window = nil
  521.     # Enable Cursor Movement
  522.     $game_player.disable_player_movement = false
  523.   end
  524.   #--------------------------------------------------------------------------
  525.   # * Frame Update : When Putting Furniture Flag
  526.   #--------------------------------------------------------------------------
  527.   def putting_furniture
  528.     # Set instance variable
  529.     gp = $game_player
  530.     # Set variable for holded furniture
  531.     h_furni = ($game_party.furnitures.include?($game_party.held_furniture) ?
  532.     $game_party.held_furniture  : nil)
  533.     # If B Button is Pressed
  534.     if Input.trigger?(Input::B)
  535.       unless @help_window == nil
  536.         # Play Cancel SE
  537.         $game_system.se_play($data_system.cancel_se)
  538.         # Dispose Help
  539.         dispose_help
  540.         return
  541.       end
  542.       # Play cancel SE
  543.       $game_system.se_play($data_system.cancel_se)
  544.       decorating_house_exit
  545.       return
  546.     end
  547.     # If C Button is Pressed
  548.     if Input.trigger?(Input::C)
  549.       # If Exist Window_Help on scene
  550.       unless @help_window == nil
  551.         # Play Cancel SE
  552.         $game_system.se_play($data_system.cancel_se)
  553.         dispose_help
  554.         return
  555.       end
  556.       if $game_map.events.keys.size >= Furnitures::House_Maps[$game_map.map_id] + 1
  557.         # Play Buzzer SE
  558.         $game_system.se_play($data_system.buzzer_se)
  559.         # Set Window Help & Message
  560.         set_help_window(Furnitures::Error_Help['Limit_Reach'])
  561.         return
  562.       end
  563.       # If hold furniture == nil
  564.       if h_furni == nil
  565.         # Play Buzzer SE
  566.         $game_system.se_play($data_system.buzzer_se)
  567.         # Set Window Help & Message
  568.         set_help_window(Furnitures::Error_Help['No_Furni'])
  569.         return
  570.       end
  571.       # Set variable to module
  572.       furni = Furnitures::Furnitures
  573.       # Store Cursor Actual Position
  574.       cx, cy = gp.x, gp.y
  575.       # If can't put Furniture
  576.       # Unless Tile Terran Tag inlcude terrain Type for furniture & Event
  577.       if $game_map.event?(cx, cy)
  578.         $game_system.se_play($data_system.buzzer_se)
  579.         # Set Window Help & Message
  580.         set_help_window(Furnitures::Error_Help['Cant_Put2'])
  581.         return
  582.       end
  583.       # If Terrain Tag is not Include in the Terran Types
  584.       unless Furnitures::Types[furni[h_furni][3]].include?($game_map.terrain_tag(cx,cy))
  585.         # Play Buzzer SE
  586.         $game_system.se_play($data_system.buzzer_se)
  587.         # Set Window Help & Message
  588.         set_help_window(Furnitures::Error_Help['Cant_Put'])
  589.         return
  590.       end
  591.       # Play Equip SE
  592.       $game_system.se_play($data_system.equip_se)
  593.       # Put furniture in Parameters
  594.       Furnitures.put(Furnitures::Map, furni[h_furni][0], cx, cy, h_furni)
  595.       set_help_window("#{Furnitures::Error_Help['Putted']} #{h_furni}")
  596.       return
  597.     end
  598.   end
  599.   #--------------------------------------------------------------------------
  600.   # * Frame Update : When Moving Furniture Flag
  601.   #--------------------------------------------------------------------------
  602.   def moving_furniture
  603.     # Set instance variable
  604.     gp     = $game_player
  605.     furni  = Furnitures
  606.     # If B Button is Pressed
  607.     if Input.trigger?(Input::B)
  608.       unless @help_window == nil
  609.         # Play Cancel SE
  610.         $game_system.se_play($data_system.cancel_se)
  611.         # Dispose Help
  612.         dispose_help
  613.         return
  614.       end
  615.       unless $game_party.held_furniture == nil
  616.         # Play Equip SE
  617.         $game_system.se_play($data_system.equip_se)
  618.         # Set Moving Flag
  619.         $game_temp.moving = false
  620.         # Set Held furniture to nil
  621.         $game_party.held_furniture = nil
  622.         return
  623.       end
  624.       # Play cancel SE
  625.       $game_system.se_play($data_system.cancel_se)
  626.       decorating_house_exit
  627.       return
  628.     end
  629.     # If C Button is Pressed
  630.     if Input.trigger?(Input::C)
  631.       unless @help_window == nil
  632.         # Play Cancel SE
  633.         $game_system.se_play($data_system.cancel_se)
  634.         # Dispose Help
  635.         dispose_help
  636.         return
  637.       end
  638.       # Unless $game_temp.moving
  639.       if $game_temp.moving == false
  640.         # If cursor 'on' event & include furnitures Suffix
  641.         if ($game_map.event?(gp.x, gp.y) &&
  642.           $game_map.event_at(gp.x, gp.y).name.include?(furni::Suffix))
  643.           # Store Furniture ID to Held Furniture
  644.           $game_party.held_furniture = $game_map.event_at(gp.x, gp.y).id
  645.           # Set Moving Flag
  646.           $game_temp.moving = true
  647.           # Set Help Window for Cant' move here
  648.           set_help_window(furni::Error_Help['Set_Place'])
  649.           return
  650.         end
  651.         # Play Buzzer SE
  652.         $game_system.se_play($data_system.buzzer_se)
  653.         # Set Help for Can't Move
  654.         set_help_window(furni::Error_Help['Cant_Move'])
  655.         return
  656.       end
  657.       # Set variable for Event Name
  658.       name = $game_map.events[$game_party.held_furniture].name.chomp(furni::Suffix)  
  659.       # Set Variable for Funiture Type
  660.       type = furni::Furnitures[name][3]
  661.       # If Furniture Type == Cursor Terrain Tag & no event on x,y
  662.       if (furni::Types[type].include?($game_map.terrain_tag(gp.x,gp.y)) &&
  663.         !$game_map.event?(gp.x, gp.y))
  664.         # Play Equip SE
  665.         $game_system.se_play($data_system.equip_se)
  666.         # Move Furniture to Actual cursor position
  667.         $game_map.events[$game_party.held_furniture].moveto(gp.x, gp.y)
  668.         # Set Help for putted furniture
  669.         set_help_window("#{furni::Error_Help['Moved']} #{name}")
  670.         # Set furniture to Nil
  671.         $game_party.held_furniture = nil
  672.         # Set Moving Flag to false
  673.         $game_temp.moving = false
  674.         return
  675.       end
  676.         # Play Buzzer SE
  677.         $game_system.se_play($data_system.buzzer_se)
  678.         # Set Help for Can't move here
  679.         set_help_window("#{furni::Error_Help['Cant_Move_h']}")
  680.       return
  681.     end
  682.   end
  683.   #--------------------------------------------------------------------------
  684.   # * Frame Update : When Grabbing
  685.   #--------------------------------------------------------------------------
  686.   def grabbing_furniture
  687.     # Set instance variable
  688.     gp = $game_player
  689.     # If B Button is Pressed
  690.     if Input.trigger?(Input::B)
  691.       unless @help_window == nil
  692.         # Play Cancel SE
  693.         $game_system.se_play($data_system.cancel_se)
  694.         # Dispose Help
  695.         dispose_help
  696.         return
  697.       end
  698.       # Play cancel SE
  699.       $game_system.se_play($data_system.cancel_se)
  700.       decorating_house_exit
  701.       return
  702.     end
  703.     # If C Button is Pressed
  704.     if Input.trigger?(Input::C)
  705.        unless @help_window == nil
  706.         # Play Cancel SE
  707.         $game_system.se_play($data_system.cancel_se)
  708.         # Dispose Help
  709.         dispose_help
  710.         return
  711.       end
  712.       cx, cy = gp.x, gp.y
  713.       furni = Furnitures
  714.       unless ($game_map.event?(cx, cy) &&
  715.         $game_map.event_at(cx, cy).name.include?(furni::Suffix))
  716.         # Play Buzzer SE
  717.         $game_system.se_play($data_system.buzzer_se)
  718.         # Set Window Help & Message
  719.         set_help_window(Furnitures::Error_Help['Cant_Grab'])
  720.         return
  721.       end
  722.       h_furni = $game_map.event_at(cx, cy).name.chomp(furni::Suffix)
  723.       # Play Equip SE
  724.       $game_system.se_play($data_system.equip_se)
  725.       # Remove Furniture from map
  726.       Furnitures.pick(cx, cy)
  727.       # Set Help for putted furniture
  728.       set_help_window("#{furni::Error_Help['Grabbed']} #{h_furni}")
  729.       return
  730.     end
  731.   end
  732.   #--------------------------------------------------------------------------
  733.   # * Frame Update : When Press B
  734.   #--------------------------------------------------------------------------
  735.   def decorating_house_exit
  736.     # Set instance variable
  737.     gp = $game_player
  738.     # Call Scene Again
  739.     $scene = House_Decoration.new
  740.     # Delete Player's Clone, at old [x, y] position
  741.     $game_map.delete_event_at($game_player.old_x, $game_player.old_y)
  742.     # Move Player to old [x, y] position
  743.     gp.moveto($game_player.old_x, $game_player.old_y)
  744.     # Return Player's original character graphic
  745.     gp.character_name = $game_player.old_graphic
  746.     # Change Player Movement conditions : through, always on top, d_fix
  747.     gp.through, gp.always_on_top, gp.direction_fix = false, false, false          
  748.     gp.disable_player_trigger = false
  749.     # Set Putting & Grabbing flag to false
  750.     $game_temp.putting_furniture   = false
  751.     $game_temp.grabbing_furniture  = false
  752.     $game_temp.moving_furniture    = false
  753.     $game_party.held_furniture     = nil
  754.   end
  755. end
  756.  
  757. #==============================================================================
  758. # ** House Decoration
  759. #------------------------------------------------------------------------------
  760. #  This class is the main scene for House Decoration Add-On for mod::Furnitures
  761. #==============================================================================
  762.  
  763. class House_Decoration < SDK::Scene_Base
  764.   #--------------------------------------------------------------------------
  765.   # * Object Initialization
  766.   #     actor_index : actor index
  767.   #--------------------------------------------------------------------------
  768.   def initialize
  769.     super()
  770.   end
  771.   #--------------------------------------------------------------------------
  772.   # * Main Sprite_Set
  773.   #--------------------------------------------------------------------------
  774.   def main_spriteset
  775.     # Sets Up Spriteset
  776.     @spriteset = Spriteset_Map.new
  777.   end
  778.   #--------------------------------------------------------------------------
  779.   # * Main Processing : Window Initialization
  780.   #--------------------------------------------------------------------------
  781.   def main_window
  782.     super
  783.     # Create main contents (Main Command Window, and Help Window)
  784.     main_command_window
  785.     help_window
  786.   end
  787.   #--------------------------------------------------------------------------
  788.   # * Main Processing : Main Command Window
  789.   #--------------------------------------------------------------------------
  790.   def main_command_window
  791.     # Create Commands
  792.     commands = [[Furnitures::Commands[0][0], Furnitures::Commands[0][1]],
  793.                 [Furnitures::Commands[1][0], Furnitures::Commands[1][1]],
  794.                 [Furnitures::Commands[2][0], Furnitures::Commands[2][1]],
  795.                 [Furnitures::Commands[3][0], Furnitures::Commands[3][1]]]
  796.     @command_window = Window_IconCommand .new(160, commands)
  797.     @command_window.y = 64
  798.     @command_window.back_opacity = 160
  799.     # Disable Item 'Put' if Party has no Furnitures
  800.     @command_window.disable_item(0) if $game_party.furnitures.size == 0
  801.     # Disable Item 'Get' if map events don't include string for furniture
  802.     has_string = $game_map.events_name_has_string?(Furnitures::Suffix)
  803.     @command_window.disable_item(1) unless has_string
  804.     @command_window.disable_item(2) unless has_string
  805.   end
  806.   #--------------------------------------------------------------------------
  807.   # * Main Processing : Furniture List Command
  808.   #--------------------------------------------------------------------------
  809.   def furniture_list_command
  810.     # Clear Data
  811.     c = []
  812.     # Pass through all furnitures
  813.     $game_party.furnitures.each do |furniture|
  814.       # Push furnitures
  815.       c << [furniture , Furnitures::Furnitures[furniture][1]]
  816.     end
  817.     # Configure Command for Furniture List
  818.     @furniture_list = Window_IconCommand.new(160, c)
  819.     @furniture_list.y = 64
  820.     @furniture_list.height = [[32 * (c.size + 1)].max, 160].min
  821.     @furniture_list.back_opacity = 160
  822.     @furniture_list.active  = true
  823.     @furniture_list.visible = true
  824.   end
  825.   #--------------------------------------------------------------------------
  826.   # * Main Processing : Help_Window
  827.   #--------------------------------------------------------------------------
  828.   def help_window
  829.     # Create Window Help & Set Text
  830.     @help_window = Window_Help.new
  831.     @help_window.back_opacity = 160
  832.     @help_window.set_text(Furnitures::Commands[0][2], 1)
  833.   end
  834.   #--------------------------------------------------------------------------
  835.   # * Frame Update
  836.   #-------------------------------------------------------------------------
  837.   def update
  838.     super
  839.     # Update Help Window
  840.     update_help
  841.     # Upate Main_Command if Main Command is active
  842.     if @command_window.active
  843.       update_main_command
  844.       return
  845.     end
  846.     # Upate Furniture if Furniture List is Active
  847.     if @furniture_list.active
  848.       update_furniture_list
  849.       return
  850.     end
  851.   end
  852.   #--------------------------------------------------------------------------
  853.   # * Frame Update  : Help Window update by Command Index
  854.   #--------------------------------------------------------------------------
  855.   def update_help
  856.     # If Main Command is active
  857.     if @command_window.active
  858.       # Set help text to Command description
  859.       @help_window.set_text(Furnitures::Commands[@command_window.index][2], 1)
  860.       # If Furniture List is active
  861.     elsif @furniture_list.active
  862.       # Set Help text to furniture description
  863.       index = @furniture_list.index
  864.       command = @furniture_list.commands[index][0]
  865.       @help_window.set_text(Furnitures::Furnitures[command][2], 1)
  866.     end
  867.   end
  868.   #--------------------------------------------------------------------------
  869.   # * Frame Update  : When Main command is Active
  870.   #--------------------------------------------------------------------------
  871.   def update_main_command
  872.     # If B button was pressed
  873.     if Input.trigger?(Input::B)
  874.       # Play cancel SE
  875.       $game_system.se_play($data_system.cancel_se)
  876.       # Return to Map
  877.       $scene = Scene_Map.new
  878.       return
  879.     end
  880.     # If C button was pressed
  881.     if Input.trigger?(Input::C)
  882.       # Branch by command window cursor position
  883.       case @command_window.commands[@command_window.index][0]
  884.       # When Command 'Put'
  885.       when Furnitures::Commands[0][0]
  886.         # If party has no furnitures, return
  887.         if $game_party.furnitures.size == 0
  888.           # Play Buzzer SE
  889.           $game_system.se_play($data_system.buzzer_se)
  890.           return
  891.         end
  892.         # Play Decision SE
  893.         $game_system.se_play($data_system.decision_se)
  894.         # Create Furniture List
  895.         furniture_list_command
  896.         # Hide and Inactive Main Command
  897.         @command_window.active = false
  898.         @command_window.visible = false
  899.       # When Command 'Move'
  900.       when Furnitures::Commands[1][0]
  901.         # If Map events not Include string, return
  902.         unless $game_map.events_name_has_string?(Furnitures::Suffix)
  903.           # Play Buzzer SE
  904.           $game_system.se_play($data_system.buzzer_se)
  905.           return
  906.         end
  907.         # Play Decision SE
  908.         $game_system.se_play($data_system.decision_se)
  909.         # Return to Scene_Map
  910.         $scene = Scene_Map.new
  911.         # Call Put_Furniture method for Scene_Map
  912.         $scene.begin_decorating_house if $scene.is_a?(Scene_Map)
  913.         $game_temp.moving_furniture = true
  914.       # When Command 'Get'
  915.       when Furnitures::Commands[2][0]
  916.         # If Map events not Include string, return
  917.         unless $game_map.events_name_has_string?(Furnitures::Suffix)
  918.           # Play Buzzer SE
  919.           $game_system.se_play($data_system.buzzer_se)
  920.           return
  921.         end
  922.         # Play Decision SE
  923.         $game_system.se_play($data_system.decision_se)
  924.         # Return to Scene_Map
  925.         $scene = Scene_Map.new
  926.         # Call Put_Furniture method for Scene_Map
  927.         $scene.begin_decorating_house if $scene.is_a?(Scene_Map)
  928.         $game_temp.grabbing_furniture = true
  929.       # When Command 'Exit'
  930.       when Furnitures::Commands[3][0]
  931.         # Play cancel SE
  932.         $game_system.se_play($data_system.cancel_se)
  933.         # Return to Scene_Map
  934.         $scene = Scene_Map.new
  935.       end
  936.       return
  937.     end
  938.   end
  939.   #--------------------------------------------------------------------------
  940.   # * Frame Update  : When Furniture List is Active
  941.   #--------------------------------------------------------------------------
  942.   def update_furniture_list
  943.     # If B button was pressed
  944.     if Input.trigger?(Input::B)
  945.       # Play cancel SE
  946.       $game_system.se_play($data_system.cancel_se)
  947.       # Re-Active Main Command
  948.       @command_window.visible = true
  949.       @command_window.active = true
  950.       # Dispose and Remove the Furniture List
  951.       @furniture_list.dispose
  952.       @furniture_list = nil
  953.       return
  954.     end
  955.     # If C button was pressed
  956.     if Input.trigger?(Input::C)
  957.       # Create Variable
  958.       c_furni = @furniture_list.commands[@furniture_list.index][0]
  959.       # Branch by command window cursor position
  960.       case c_furni
  961.       when c_furni
  962.         # Play Decision SE
  963.         $game_system.se_play($data_system.decision_se)
  964.         # Set Hold Furniture to command item
  965.         $game_party.held_furniture = c_furni
  966.         # Return to Scene Map
  967.         $scene = Scene_Map.new
  968.         # Call Scene method to Put furnitures
  969.         $scene.begin_decorating_house if $scene.is_a?(Scene_Map)
  970.         # Set putting flag to true
  971.         $game_temp.putting_furniture = true
  972.       end
  973.       return
  974.     end
  975.   end
  976. end
  977.  
  978. #--------------------------------------------------------------------------
  979. # * End SDK Enable Test
  980. #--------------------------------------------------------------------------
  981. end
Expand to see the code.


It appears to require the SDK.

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=78191