Mephistos house system- undefined method disable_player_trig

Ok, i'm attempting to get Blizzabs to work with Mephistos house system and i keep getting some errors when placing furniture. Whenever i place furniture, i get this error:
Image

Here is my line 501:
  1.    gp.disable_player_trigger = true, true
Expand to see the code.


If anyone has any idea on how to fix this problem, i would greatly appreciate your help.
Getting Blizz-abs to work with this system is very important for me. It's probably the closest I'll get to what i'm expecting for my final product. Unless there is an RTS battle system, then I'll change my mind.

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

Well, it uses multiple scripts. SDK 2.4, Method and class library, Sephiroths event spawner, icon_commands, and the house module. I'll get to posting the one script it has issues on though.
Mmmm... Did you copy all the scripts from the demo to your proyect. That method (disable_player...) is in the MACL if i remember.

Maybe you should to verify again these scripts, and also, please tell us what other scripts are you using in your proyect.

Thanks. :grin:
mephisto wrote:
Mmmm... Did you copy all the scripts from the demo to your proyect. That method (disable_player...) is in the MACL if i remember.
To verify your assumption, this is not a method, but a public instance variable set as an accessor. It's a boolean value.

I tried using this in a fresh project with only MACL installed and it worked fine. Try installing a fresh copy of the MACL in your project. Make sure to place it below the default scripts.

If you still get the error, also make sure that the call is never called before the engine has located the MACL update of the Game_Player class.

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