RMXP SDK Visual Equipment Script.

What I'm aking for is a SDK-Compatable Script that shows another Charset of equipment over the player's character, based upon equiped armor.
I have seen several, but none are compatable with the SDK, and the one that I found that was had a broken link to the demo, and no script was posted.
If I could script, I would try my hand at it myself, but alas, I lack even basic scripting ability.
I am making my own Charactersets for my game, so whatever style is used for the script is of no difference.
Thank you for reading, and please inform me of any mistakes I may have done.
I have Me(tm)'s Visual Equipment
which is SDK compatible and works with both Guiliame777's and Trickster's Multi-Equip
  1.  
  2. #==============================================================================
  3. # ■ Visual Equipment
  4. #------------------------------------------------------------------------------
  5. # Author  | Me™ / [email hidden]
  6. # Version | 2.2.32
  7. # Date    | 13 / 02 / 07 (DDMMYY)
  8. # Credit  | Raitaime - Geso Chiku
  9. #==============================================================================
  10. #   ▼ New in version 2.2.X
  11. #   - guill_trick_*: Compatible with tricks multi-equip
  12. #
  13. #   ▼ New in version 2.1.X
  14. #   - Can now return false and [false]
  15. #   - Fixed: Not updating
  16. #
  17. #   ▼ New in version 2.0.X
  18. #   - Now Compatible with N+
  19. #
  20. #   ▼ New in version 1.2.X
  21. #   - Now possible to use other maps then Visual Equipment
  22. #   - Fixed: Unable to load bug
  23. #   - Fixed: Guillaume update bug
  24. #   - Fixed: Guillaume Weapon not showing bug
  25. #
  26. #   ▼ New in version 1.1.X
  27. #   - Equipment visible in windows (using draw_actor_graphic)
  28. #   - Compatible with Guillaume777's Multi-Slot script version 6.2.1
  29. #
  30. #==============================================================================
  31. #
  32. #   ▼ Instructions (updated: version 1.0.0)
  33. #
  34. #   Hello dear reader. Thank you for choosing my Visual Equipment
  35. #   script, based on the originals by Raitaime and Geso Chiku.
  36. #   This script contains new elements, and rewritten  code, and copied
  37. #   code from the old scripts.
  38. #
  39. #------------------------------------------------------------------------------
  40. #
  41. #   ▼ What does this script:
  42. #   - Shows the players equipment on map
  43. #   - Initial body value possible (skin, eyes and hair)
  44. #   - Up to 5 types of equipment. From weapons to accesoiry's
  45. #   - Shows NPC equipment on the map events if set
  46. #   - Compatible with Caterpillar and Squad Based Action Battle System
  47. #   - Compatible with Half Kaizer- and other different size-sprites
  48. #
  49. #------------------------------------------------------------------------------
  50. #
  51. #   ▼ How to add your own graphics:
  52. #   - Make or locate the Visual Equipment - folder which should be in Graphics
  53. #   - You can choose to place your files here, or make submaps
  54. #   - Scroll down for the Get_file method in module Visual Equipement
  55. #   - Add a line like this: return ["FILENAME, HUE] if item_id = ID
  56. #         where Filename is the filename between quotes without extension
  57. #         Hue is the hue which the sprite should take (usually 0)
  58. #         ID is the ID number of the weapon/armor
  59. #   ● NOTE: Make sure you add weapons above the else, and the rest after it!
  60. #   ● NOTE: The equipment on a frog should match the frogs size, the equipent
  61. #           on a standard event should thus be 128x192.
  62. #
  63. #------------------------------------------------------------------------------
  64. #
  65. #   ▼ How to give my character default skin, eyes and hair:
  66. #   - Add somewhere after you initialized $game_party the following lines:
  67. #       $game_party.actors[0].set_body(0, "FILENAME")
  68. #       $game_party.actors[0].set_body(1, "FILENAME")
  69. #       $game_party.actors[0].set_body(2, "FILENAME")
  70. #   - Change the line according to your needs, just replace the '' with the
  71. #     Filename. 0 is for skin, 1 for eyes and 2 for hair. If this is left
  72. #     empty (like what it is now) the body[0] will be replaced by the graphic
  73. #     set in the database. (So, no skin is set ;))
  74. #
  75. #------------------------------------------------------------------------------
  76. #
  77. #   ▼ How to add Equipment to the characters as in Events:
  78. #   - Add comments in this format:
  79. #       Comment: Visual Equipment
  80. #       Comment: Body | [charset] | [hue]
  81. #       Comment: Armor | [charset] | [hue]
  82. #       Comment: Helmet | [charset] | [hue]
  83. #       Comment: Weapon | [charset] | [hue]
  84. #       Comment: Accessory | [charset] | [hue]
  85. #       Comment: Shield | [charset] | [hue]
  86. #   - Replace [charset] by the filename without extension
  87. #   - Replace [hue] by the hue, default 0
  88. #   ● NOTE: please use:  |  (with spaces) instead of | (without spaces)
  89. #   ● NOTE: when no hue was found, the hue will be set to 0 (default)
  90. #   ● NOTE: when not entering the hue, remove the last collon. (ex. Body | [charset])
  91. #   ● NOTE: more/less maximum event equipments can be set at Visual_Equipment
  92. #   ● NOTE: Body/Armor/Helmet etc. can be replaced by ex. 1, 2, 3, 4
  93. #
  94. #------------------------------------------------------------------------------
  95. #
  96. #   ▼ Additional Information...
  97. #   - You probably need to alter the script yourself a bit when usong 8 frames
  98. #     etc. I already did a little thing by adding the options frames and
  99. #     directions in the visual equipment module. Make sure any directions script
  100. #     is ABOVE this script, and copy the edits from Sprite_Character to this
  101. #     script or it won't work anyway.
  102. #
  103. #------------------------------------------------------------------------------
  104. #
  105. #   ▼ Known compatibility issues
  106. #   - With extra equipments scripts, does not shows things in the extra slots
  107. #   - With Raitaimes shadow script, only shows character sprite, not equipments
  108. #   - With Only scripts like Netplay and Netplay+, only shows head/does not work
  109. #   - Only works with SDK version of Caterpillar
  110. #
  111. #------------------------------------------------------------------------------
  112. #
  113. #   ● NOTE: Merges can always be requested on the topic on rmxp.org
  114. #           http://www.hbgames.org/forums/showthread.php?t=9112
  115. #
  116. #   Have fun and Take care,
  117. #   Me™
  118. #==============================================================================
  119. #
  120. #   ▼ This script aliases:
  121. #   - Game_Actor > setup
  122. #   - Sprite_Character > initialize
  123. #
  124. #   ▼ This script rewrites:
  125. #   - Sprite_Character > update
  126. #   - Window_Base > draw_actor_graphic
  127. #
  128. #==============================================================================
  129.  
  130. #------------------------------------------------------------------------------
  131. # * SDK Log Script and Begin SDK Enable Test
  132. #------------------------------------------------------------------------------
  133. SDK.log('Visual Equipment', 'Me™', 1, '12.09.06')
  134. if SDK.state('Visual Equipment') == true
  135.  
  136. #==============================================================================
  137. # *** module Visual Equipment
  138. #------------------------------------------------------------------------------
  139. #  This module handles the image name and equipment draw order processing
  140. #==============================================================================
  141. module Visual_Equipment
  142.   module_function
  143.  
  144.   #--------------------------------------------------------------------------
  145.   # * Configuration
  146.   #--------------------------------------------------------------------------
  147.   #    Width            : The default file width.
  148.   #    Heigth           : The default file heigth.
  149.   #    Event_equipments : How many comments will be used after Visual Equipment
  150.   #    Frames           : How many frames do the sprites contain (left right)
  151.   #    Directions       : How many directions do the sprites contain (up down)
  152.   #    Guillaume777     : Set to true if you are using Guillaume777's script
  153.   #    Trickster        : Set to true if you are using Tricksters Multi Equip
  154.   #--------------------------------------------------------------------------
  155.   Width                 = 128
  156.   Height                = 192
  157.   Event_equipments      = 5
  158.   Frames                = 4
  159.   Directions            = 4
  160.   Guillaume777          = false
  161.   Trickster             = false
  162.  
  163.   #--------------------------------------------------------------------------
  164.   # * Gives the file name which corresponds to the item ^^
  165.   #--------------------------------------------------------------------------
  166.   def get_file(type, item_id)
  167.     case type
  168.      when 5
  169.       #---------------------------------------------------------
  170.       # Weapons should have type 5
  171.       #---------------------------------------------------------
  172.       return ['#Characters/002-Fighter02',0] if item_id == 1
  173.     else
  174.       #---------------------------------------------------------
  175.       # Body Armors should have type 1
  176.       #---------------------------------------------------------
  177.       return [false,0] if item_id == 2
  178.       #---------------------------------------------------------
  179.       # Helmets should have type 2
  180.       #---------------------------------------------------------
  181.       return [false,0] if item_id == 5
  182.       #---------------------------------------------------------
  183.       # Assesoiry's should have type 3
  184.       #---------------------------------------------------------
  185.       return ['#Characters/003-Fighter03',0] if item_id == 33
  186.       #---------------------------------------------------------
  187.       # Shields should have type 4
  188.       #---------------------------------------------------------
  189.       return ['#Characters/004-Fighter04',0] if item_id == 1
  190.     end
  191.     # When not found, return nothing
  192.     return [false,0]
  193.   end  
  194.   #--------------------------------------------------------------------------
  195.   # * Set the order or drawing the equipments / returns the id of the item
  196.   #--------------------------------------------------------------------------
  197.   def get_itemid(order_i,actor)
  198.     return -1 if Guillaume777 == true or Trickster != true
  199.     return -1 if actor == nil
  200.     case order_i
  201.      when 0 # Body (Skin/Eyes/Hair)
  202.       return actor.body
  203.      when 1 # Body Armor / Trousers
  204.       return actor.armor3_id
  205.      when 2 # Helmet / Top
  206.       return actor.armor2_id
  207.      when 3 # Assesoiry / Extra
  208.       return actor.armor4_id
  209.      when 4 # Shield
  210.       return actor.armor1_id
  211.      when 5 # Weapon
  212.       return actor.weapon_id
  213.     end
  214.   end
  215.   #--------------------------------------------------------------------------
  216.   # * Set the order or drawing the equipments / returns the ids of the items
  217.   #--------------------------------------------------------------------------
  218.   def guill_trick_itemid(type, actor)
  219.     return [] if Guillaume777 != true and Trickster != true
  220.     return [] if actor == nil
  221.     case type
  222.      when 0
  223.       return actor.body
  224.      when 1...4 # Includes originial armors (armor1_id ... armor4_id)
  225.       return actor.armor_ids
  226.      when 5 # Includes weapon 1
  227.       return actor.weapon_ids
  228.     end
  229.   end
  230. end
  231.  
  232. class Game_NetPlayer < Game_Actor
  233. end
  234. #==============================================================================
  235. # ** Game_Actor
  236. #------------------------------------------------------------------------------
  237. #  This class handles the actor. It's used within the Game_Actors class
  238. #  ($game_actors) and refers to the Game_Party class ($game_party).
  239. #==============================================================================
  240. class Game_Actor < Game_Battler
  241.   #--------------------------------------------------------------------------
  242.   # * Aliases
  243.   #--------------------------------------------------------------------------
  244.   alias tm_visualequipment_gameactor_setup setup
  245.   #--------------------------------------------------------------------------
  246.   # * Public instance variables
  247.   #--------------------------------------------------------------------------
  248.   attr_accessor :body
  249.   #--------------------------------------------------------------------------
  250.   # * Setup
  251.   #     actor_id : actor ID
  252.   #--------------------------------------------------------------------------
  253.   def setup(actor_id)
  254.     @body = []
  255.     tm_visualequipment_gameactor_setup(actor_id)
  256.   end
  257.   #--------------------------------------------------------------------------
  258.   # * Set's a actors body
  259.   #     thing: 0 should be Template (Skin)
  260.   #            1 should be Eyes
  261.   #            2 should be Hair
  262.   #--------------------------------------------------------------------------
  263.   def set_body(thing, value)
  264.     # If value is not the 'remove' code.
  265.     if value != nil and value != ''
  266.       # Put the filename into the body array.
  267.       @body[thing] = value
  268.     else
  269.       # Clear the filename in the body array.
  270.       @body[thing] = nil
  271.     end
  272.   end
  273.   #--------------------------------------------------------------------------
  274.   # * Get's the needed equipments / Also determines ordeR!
  275.   #--------------------------------------------------------------------------
  276.   def get_equipments
  277.     return [] if Visual_Equipment::Guillaume777 == true or
  278.                  Visual_Equipment::Trickster == true
  279.     # Empty's equipments array for use
  280.     equipments = []
  281.     # Add the skin/default char and eyes to the array
  282.     equipments.push([@body[0][0],@body[0][1]])        if @body[0] != nil
  283.     equipments.push(["#Characters/#{@character_name}", @character_hue]) if equipments.size != 1
  284.     equipments.push([@body[1][0], @body[1][1]])        if @body[1] != nil
  285.     # Add the hair to the array, if any is set
  286.     equipments.push([@body[2][0], @body[2][1]]) if @body[2] != nil
  287.     # Add the equipments, if there is a file for the equipments
  288.     for equipnumber in 1...5
  289.       # First, get the item_id of the equipment
  290.       item_id = Visual_Equipment.get_itemid(equipnumber, self)
  291.       # Second, get the filename and hue of the file attached to the id
  292.       item = Visual_Equipment.get_file(equipnumber, item_id)
  293.       # Put the item into the array if a file name was found
  294.       equipments.push(item) unless item == false or item == nil
  295.     end
  296.    
  297.     # Return all the equipments
  298.     return equipments
  299.   end
  300.   #--------------------------------------------------------------------------
  301.   # * Get's the needed equipments / Also determines ordeR!
  302.   #--------------------------------------------------------------------------
  303.   def guill_trick_equipments
  304.     return [] unless Visual_Equipment::Guillaume777 == true or
  305.               Visual_Equipment::Trickster == true
  306.     # Empty's equipments array for use
  307.     equipments = []
  308.     # Add the skin/default char and eyes to the array
  309.     equipments.push([@body[0], @character_hue])        if @body[0] != nil
  310.     equipments.push(["#Characters/#{@character_name}", @character_hue]) if equipments.size != 1
  311.     equipments.push([@body[1], @character_hue])        if @body[1] != nil
  312.     # Gets wepaons and armors
  313.     weapons    = Visual_Equipment.guill_trick_itemid(5, self)
  314.     armors     = Visual_Equipment.guill_trick_itemid(2, self)
  315.     # Add the hair to the array, if any is set
  316.     equipments.push([@body[2], @character_hue]) if @body[2] != nil
  317.     # Add the equipments, if there is a file for the equipments
  318.     for armor_id in armors
  319.       # Get the filename and hue of the file attached to the id
  320.       item = Visual_Equipment.get_file(1, armor_id)
  321.       # Put the item into the array if a file name was found
  322.       equipments.push(item) unless item == false or item == nil
  323.     end
  324.      # Add the equipments, if there is a file for the equipments
  325.     for weapon in weapons
  326.       # Get the filename and hue of the file attached to the id
  327.       item = Visual_Equipment.get_file(5, weapon)
  328.       # Put the item into the array if a file name was found
  329.       equipments.push(item) unless item == false or item == nil
  330.     end
  331.     return equipments
  332.   end
  333. end
  334.  
  335. #==============================================================================
  336. # ** Sprite_Character
  337. #------------------------------------------------------------------------------
  338. #  This sprite is used to display the character.It observes the Game_Character
  339. #  class and automatically changes sprite conditions.
  340. #==============================================================================
  341. class Sprite_Character < RPG::Sprite
  342.   #--------------------------------------------------------------------------
  343.   # * Aliases
  344.   #--------------------------------------------------------------------------
  345.   alias tm_visualequipment_spritecharacter_initialize initialize
  346.   #--------------------------------------------------------------------------
  347.   # * Object Initialization
  348.   #     viewport  : viewport
  349.   #     character : character (Game_Character)
  350.   #--------------------------------------------------------------------------
  351.   def initialize(viewport, character = nil)
  352.     # Make an body array
  353.     @body_id = Array.new(3,nil)
  354.     # How many id's are there?
  355.     number = 0
  356.     if Visual_Equipment::Guillaume777 == true
  357.       number += G7_MS_MOD::WEAPON_KINDS.size + G7_MS_MOD::ARMOR_KINDS.size
  358.     end
  359.     if Visual_Equipment::Trickster == true
  360.       number += Multi_Equip::Weapon_Slots.size + Multi_Equip::Armor_Slots.size
  361.     end
  362.     if Visual_Equipment::Guillaume777 != true and Visual_Equipment::Trickster != true
  363.       number = 5
  364.     end
  365.     # Make the equipment array
  366.     @equips_id = Array.new(number,0)
  367.     # What kind is the character?
  368.     if character.is_a?(Game_Player)
  369.       @actor = $game_party.actors[0]
  370.     elsif SDK.state('SBABS') == true and character.is_a?(Game_Ally)
  371.       @actor = $game_party.actors[character.actor_id]
  372.     elsif SDK.state('Caterpillar') == true and character.is_a?(Game_Party_Actor)
  373.       @actor = character.actor
  374.     elsif character.is_a?(Game_NetPlayer)
  375.       @actor = character
  376.     elsif character.is_a?(Game_Event)
  377.       @actor = 'event'
  378.     else
  379.       @actor = nil
  380.     end
  381.     tm_visualequipment_spritecharacter_initialize(viewport, character)
  382.   end
  383.   #--------------------------------------------------------------------------
  384.   # * Did the equipment changed?
  385.   #--------------------------------------------------------------------------
  386.   def changed_equipment?
  387.     return false if Visual_Equipment::Guillaume777 == true or
  388.                     Visual_Equipment::Trickster == true
  389.     # According to the kind of the actor, the check is made...
  390.     if character.is_a?(Game_Player) or character.is_a?(Game_NetPlayer)
  391.       for equipment_id in 1...5
  392.         item_id = Visual_Equipment.get_itemid(equipment_id, @actor)
  393.         if @equips_id[equipment_id] != item_id
  394.           return true
  395.         end
  396.       end
  397.       body = Visual_Equipment.get_itemid(0, @actor)
  398.       for i in 0..3
  399.         if @body_id[i] != body[i]
  400.           return true
  401.         end
  402.       end    
  403.     elsif SDK.state('Caterpillar') == true and @character.is_a?(Game_Party_Actor)
  404.       return (@actor != @character.actor ? true : false)
  405.     elsif SDK.state('SBABS') == true and @character.is_a?(Game_Ally)
  406.       return (@actor != $game_party.actors[@character.actor_id] ? true : false)
  407.     elsif @character.is_a?(Game_Event)
  408.       return (@page != @character.page ? true : false)
  409.     else
  410.       return false
  411.     end
  412.     return false
  413.   end
  414.   #--------------------------------------------------------------------------
  415.   # * Did the equipment changed?
  416.   #--------------------------------------------------------------------------
  417.   def guill_trick_changed_equipment?
  418.     return false if Visual_Equipment::Guillaume777 != true and
  419.                     Visual_Equipment::Trickster != true
  420.     # According to the kind of the actor, the check is made...
  421.     if character.is_a?(Game_Player) or character.is_a?(Game_NetPlayer)
  422.       weapons  = Visual_Equipment.guill_trick_itemid(5, @actor)
  423.       armors   = Visual_Equipment.guill_trick_itemid(2, @actor)
  424.       for id in 0..armors.size
  425.         return true if @equips_id[id] != armors[id]
  426.       end
  427.       for id in armors.size..weapons.size
  428.         return true if @equips_id[id] != weapons[id]
  429.       end
  430.       body = Visual_Equipment.guill_trick_itemid(0, @actor)
  431.       for i in 0..3
  432.         return true if @body_id[i] != body[i]
  433.       end
  434.       return false
  435.     elsif SDK.state('Caterpillar') == true and @character.is_a?(Game_Party_Actor)
  436.       return (@actor != @character.actor ? true : false)
  437.     elsif SDK.state('SBABS') == true and @character.is_a?(Game_Ally)
  438.       return (@actor != $game_party.actors[@character.actor_id] ? true : false)
  439.     elsif @character.is_a?(Game_Event)
  440.       return (@page != @character.page ? true : false)
  441.     else
  442.       return false
  443.     end
  444.   end
  445.   #--------------------------------------------------------------------------
  446.   # * Update known equipment
  447.   #--------------------------------------------------------------------------
  448.   def update_equipment
  449.     return false if Visual_Equipment::Guillaume777 == true or
  450.                     Visual_Equipment::Trickster == true
  451.     # Remember tile ID, file name and hue
  452.     @tile_id = @character.tile_id
  453.     @character_name = @character.character_name
  454.     @character_hue = @character.character_hue
  455.     # If the actor isent supported, return immideatly
  456.     return if @actor == nil
  457.      # According to the kind of the actor, the update is made...
  458.     if character.is_a?(Game_Player) or character.is_a?(Game_NetPlayer)
  459.       for equipment in 1...5
  460.         @equips_id[equipment] = Visual_Equipment.get_itemid(equipment, @actor)
  461.       end
  462.       body = Visual_Equipment.guill_trick_itemid(0, @actor)
  463.       for bodypart in 0..3
  464.         @body_id[bodypart] = body[bodypart]
  465.       end
  466.     elsif SDK.state('Caterpillar') == true and @character.is_a?(Game_Party_Actor)
  467.       @actor = @character.actor
  468.     elsif SDK.state('SBABS') == true and @character.is_a?(Game_Ally)
  469.       @actor = $game_party.actors[@character.actor_id]
  470.     elsif @character.is_a?(Game_Event)
  471.       @page = @character.page
  472.     end
  473.   end
  474.   #--------------------------------------------------------------------------
  475.   # * Update known equipment
  476.   #--------------------------------------------------------------------------
  477.   def guill_trick_update_equipment
  478.     return false if Visual_Equipment::Guillaume777 != true and
  479.                     Visual_Equipment::Trickster != true
  480.     # Remember tile ID, file name and hue
  481.     @tile_id = @character.tile_id
  482.     @character_name = @character.character_name
  483.     @character_hue = @character.character_hue
  484.     # If the actor isent supported, return immideatly
  485.     return if @actor == nil
  486.      # According to the kind of the actor, the update is made...
  487.     if character.is_a?(Game_Player) or character.is_a?(Game_NetPlayer)
  488.       weapons  = Visual_Equipment.guill_trick_itemid(1, @actor)
  489.       armors   = Visual_Equipment.guill_trick_itemid(2, @actor)
  490.       for id in 0..armors.size
  491.         start = id
  492.         @equips_id[id] = armors[id]
  493.       end
  494.       for id in (start+1)..weapons.size
  495.         @equips_id[id] = weapons[id]
  496.       end
  497.       body = Visual_Equipment.guill_trick_itemid(0, @actor)
  498.       for i in 0..3
  499.         @body_id[i] = body[i]
  500.       end
  501.     elsif SDK.state('Caterpillar') == true and @character.is_a?(Game_Party_Actor)
  502.       @actor = @character.actor
  503.     elsif SDK.state('SBABS') == true and @character.is_a?(Game_Ally)
  504.       @actor = $game_party.actors[@character.actor_id]
  505.     elsif @character.is_a?(Game_Event)
  506.       @page = @character.page
  507.     end
  508.   end
  509.   #--------------------------------------------------------------------------
  510.   # * Update
  511.   #--------------------------------------------------------------------------
  512.   def update
  513.     super()
  514.     # If something changed...
  515.     if @tile_id != @character.tile_id or
  516.       @character_name != @character.character_name or
  517.       @character_hue != @character.character_hue or
  518.       changed_equipment? or guill_trick_changed_equipment?
  519.      
  520.       # First, update the information known
  521.       if Visual_Equipment::Guillaume777 != true and
  522.          Visual_Equipment::Trickster != true
  523.         update_equipment
  524.       elsif Visual_Equipment::Guillaume777 == true or
  525.             Visual_Equipment::Trickster == true
  526.         guill_trick_update_equipment
  527.       end
  528.       # Then update the graphics
  529.       update_tile
  530.     end
  531.     # Set visible situation
  532.     self.visible = (not @character.transparent)
  533.     # If graphic is character
  534.     if @tile_id == 0
  535.       # Set rectangular transfer
  536.       sx = @character.pattern * @cw
  537.       sy = (@character.direction - 2) / 2 * @ch
  538.       self.src_rect.set(sx, sy, @cw, @ch)
  539.     end
  540.     # Set sprite coordinates
  541.     self.x = @character.screen_x
  542.     self.y = @character.screen_y
  543.     self.z = @character.screen_z(@ch)
  544.     # Set opacity level, blend method, and bush depth
  545.     self.opacity = @character.opacity
  546.     self.blend_type = @character.blend_type
  547.     self.bush_depth = @character.bush_depth
  548.     # Animation
  549.     if @character.animation_id != 0
  550.       animation = $data_animations[@character.animation_id]
  551.       animation(animation, true)
  552.       @character.animation_id = 0
  553.     end
  554.   end
  555.   #--------------------------------------------------------------------------
  556.   # * Update Tile
  557.   #--------------------------------------------------------------------------
  558.   def update_tile
  559.     # If tile ID value is valid
  560.     if @tile_id >= 384
  561.       self.bitmap = RPG::Cache.tile($game_map.tileset_name,
  562.       @tile_id, @character.character_hue)
  563.       self.src_rect.set(0, 0, 32, 32)
  564.       self.ox = 16
  565.       self.oy = 32
  566.       # If tile ID value is invalid (and thus a character is in that place ::))
  567.     else
  568.       # Create an Equpment awway
  569.       equips = []
  570.       # If handling a event
  571.       if @character.is_a?(Game_Event) == true and @actor == 'event'
  572.         # Check for comment input
  573.         parameters = SDK.event_comment_input(@character, Visual_Equipment::Event_equipments, 'Visual Equipment')
  574.         if parameters.nil?
  575.           # Just draw the graphic
  576.           equips.push(["#Characters/#{@character_name}", @character_hue])
  577.         else
  578.           # Catch the equipments
  579.           for possible_item in 0..Visual_Equipment::Event_equipments-1
  580.             item = parameters[possible_item].split(" | ") rescue ['none']
  581.             hue = item.size > 2 ? item[2] : 0
  582.             equips.push([item[1], hue]) if item[1] != 'none'
  583.             equips.push(["#Characters/#{@character_name}", @character_hue]) if possible_item == 1
  584.           end
  585.         end
  586.       # If handling the player
  587.       elsif @actor != nil and @actor != 'event'
  588.         if Visual_Equipment::Guillaume777 != true and
  589.            Visual_Equipment::Trickster != true
  590.           equips = @actor.get_equipments
  591.         elsif Visual_Equipment::Guillaume777 == true or
  592.               Visual_Equipment::Trickster == true
  593.           equips = @actor.guill_trick_equipments
  594.          
  595.         end
  596.       end
  597.       # Dispose old bitmap
  598.       self.bitmap.dispose unless self.bitmap == nil
  599.       # Draws the character bitmap
  600.       bmp = RPG::Cache.character(@character_name, @character_hue)
  601.       self.bitmap = Bitmap.new(bmp.width, bmp.height)
  602.       src_rect = Rect.new(0, 0, bmp.width, bmp.height)
  603.       # If character fits the size
  604.       if equips.size > 0 and bmp.width == Visual_Equipment::Width and bmp.height == Visual_Equipment::Height
  605.         for graphic in equips
  606.           next if graphic[0] == nil or graphic[0] == false or graphic[0] == "false"
  607.           if graphic[0].include?("#Characters/")
  608.             graphic_equipment = RPG::Cache.graphic("#{graphic[0]}", graphic[1].to_i)
  609.           else
  610.             graphic_equipment = RPG::Cache.equipment("#{graphic[0]}", graphic[1].to_i)
  611.           end
  612.           self.bitmap.blt(0, 0, graphic_equipment, src_rect, 255)
  613.         end
  614.       elsif equips.size > 0
  615.         for graphic in equips
  616.           next if graphic[0] == nil or graphic[0] == false or graphic[0] == "false"
  617.           if graphic[0].include?("#Characters/")
  618.             graphic_equipment = RPG::Cache.graphic("#{graphic[0]}", graphic[1].to_i)
  619.           else
  620.             graphic_equipment = RPG::Cache.equipment("#{graphic[0]}", graphic[1].to_i)
  621.           end
  622.           src_rect = Rect.new(0, 0, bmp.width, bmp.height)
  623.           self.bitmap.blt(0, 0, graphic_equipment, src_rect, 255)
  624.         end
  625.       else
  626.         src_rect = Rect.new(0, 0, bmp.width, bmp.height)
  627.         self.bitmap.blt(0, 0, bmp, src_rect, 255)
  628.       end
  629.       # Divide the drawings into pieces ^^
  630.       @cw = bitmap.width / Visual_Equipment::Frames
  631.       @ch = bitmap.height / Visual_Equipment::Directions
  632.       self.ox = @cw / 2
  633.       self.oy = @ch
  634.     end
  635.   end
  636. end
  637.  
  638. #==============================================================================
  639. # ** Window_Base
  640. #------------------------------------------------------------------------------
  641. #  This class is for all in-game windows.
  642. #==============================================================================
  643. class Window_Base < Window
  644.   #--------------------------------------------------------------------------
  645.   # * Draw Graphic
  646.   #     actor : actor
  647.   #     x     : draw spot x-coordinate
  648.   #     y     : draw spot y-coordinate
  649.   #--------------------------------------------------------------------------
  650.   def draw_actor_graphic(actor, x, y)
  651.     return if actor == nil
  652.     # Get the equipments
  653.     if Visual_Equipment::Guillaume777 != true and
  654.        Visual_Equipment::Trickster != true
  655.       equips = actor.get_equipments
  656.     elsif Visual_Equipment::Guillaume777 == true or
  657.           Visual_Equipment::Trickster == true
  658.       equips = actor.guill_trick_equipments
  659.     end
  660.     # Set the basement
  661.     bmp = RPG::Cache.character(actor.character_name, actor.character_hue)
  662.     cw = bmp.width / 4
  663.     ch = bmp.height / 4
  664.     src_rect = Rect.new(0, 0, cw, ch)
  665.     # Draw the equipments
  666.     if equips.size > 0 and bmp.width == Visual_Equipment::Width and bmp.height == Visual_Equipment::Height
  667.       for graphic in equips
  668.         next if graphic[0] == nil or graphic[0] == false or graphic[0] == "false"
  669.         if graphic[0].include?("#Characters/")
  670.           graphic_equipment = RPG::Cache.graphic("#{graphic[0]}", graphic[1].to_i)
  671.         else
  672.           graphic_equipment = RPG::Cache.equipment("#{graphic[0]}", graphic[1].to_i)
  673.         end
  674.         self.contents.blt(x - cw / 2, y - ch, graphic_equipment, src_rect, 255)
  675.       end
  676.     elsif equips.size > 0
  677.       for graphic in equips
  678.         next if graphic[0] == nil or graphic[0] == false or graphic[0] == "false"
  679.         if graphic[0].include?("#Characters/")
  680.           graphic_equipment = RPG::Cache.graphic("#{graphic[0]}", graphic[1].to_i)
  681.         else
  682.           graphic_equipment = RPG::Cache.equipment("#{graphic[0]}", graphic[1].to_i)
  683.         end
  684.         self.contents.blt(x - cw / 2, y - ch, graphic_equipment, src_rect, 255)
  685.       end
  686.     else
  687.       src_rect = Rect.new(0, 0, bmp.width, bmp.height)
  688.       self.contents.blt(0, 0, bmp, src_rect, 255)
  689.     end
  690.   end
  691. end
  692.  
  693. #==============================================================================
  694. # *** module RPG
  695. #==============================================================================
  696. module RPG
  697.   #============================================================================
  698.   # *** moduel Cache
  699.   #============================================================================
  700.   module Cache
  701.     #--------------------------------------------------------------------------
  702.     # * Load equipment
  703.     #--------------------------------------------------------------------------
  704.     def self.equipment(filename, hue)
  705.       self.load_bitmap("Graphics/Visual Equipment/", filename, hue)
  706.     end
  707.     #--------------------------------------------------------------------------
  708.     # * Load graphic
  709.     #--------------------------------------------------------------------------
  710.     def self.graphic(filename, hue)
  711.       filename.slice!("#")
  712.       self.load_bitmap("Graphics/", filename, hue)
  713.     end
  714.     #--------------------------------------------------------------------------
  715.     # * Load GUI
  716.     #--------------------------------------------------------------------------
  717.     def self.gui(filename,hue=0)
  718.       self.load_bitmap("Graphics/GUI/",filename,hue)
  719.     end
  720.   end
  721. end
  722.  
  723. #==============================================================================
  724. # ** Game_Event
  725. #------------------------------------------------------------------------------
  726. #  This class deals with events. It handles functions including event page
  727. #  switching via condition determinants, and running parallel process events.
  728. #  It's used within the Game_Map class.
  729. #==============================================================================
  730. class Game_Event < Game_Character
  731.   #--------------------------------------------------------------------------
  732.   # * Public instance variables
  733.   #--------------------------------------------------------------------------
  734.   attr_reader :page
  735. end
  736.  
  737. #------------------------------------------------------------------------------
  738. # * End SDK Enable Test
  739. #------------------------------------------------------------------------------
  740. end
  741.  
Expand to see the code.

I apologize but when I obtained it the demo was dead so all I have is the script
Thank you very much.
I'll go try it right away!
I can't work it... Please Demo ...

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