=begin ================================================================================ xXx Kuro Show Equipment xXx V.1.0 by Kuro Creator ================================================================================ * Introduce : A simple script that will show "actor 1" equipped equipment ================================================================================ * How to use : Insert this script below ? Materials, but above ? Main Edit the module below ================================================================================ * Changelog : V.1.0 (03-10-2010) * Finish the script. ================================================================================ * Terms of Use This is just a simple script. No credit is okay, But if you want to.... credit : Kuro Creator ================================================================================ =end #=============================================================================== # CUSTOMIZATION START #=============================================================================== module Kuro module Show_Equipment
# True to show the weapon icon SHOW_WEAPON = true # True to show the shield icon SHOW_SHIELD = true # True to show the helmet icon SHOW_HELMET = true # True to show the armor icon SHOW_ARMOR = true # True to show the acessories icon SHOW_ACCESSORIES = true # Opacity of Windows that will show the icons of Equipment OPACITY = 240 # Set starting X and Y position X_DISPLAY = 0 Y_DISPLAY = 0 # true for horizontal style, and false for vertical style VERHOR = false # switch used to toggle the visibility EQUIP_SWITCH = 1 end end
#=============================================================================== # CUSTOMIZATION END #===============================================================================
class Kuro_Equipment_Window < Window_Base def initialize(x,y,n) @x = x @y = y @n = n super(x,y,56,56) refresh end end def refresh self.contents.clear @actor = $game_party.members[0] draw_item_name(@actor.equips[@n], 0, 0) end class Scene_Map include Kuro::Show_Equipment alias kuro_start start def start kuro_start @x_display = X_DISPLAY @y_display = Y_DISPLAY @Window_Equipment = Kuro_Equipment_Window.new(@x_display,@y_display,0) if VERHOR @x_display = @x_display - 56 if !SHOW_WEAPON @Window_Equipment2 = Kuro_Equipment_Window.new(@x_display+56,@y_display,1) @x_display = @x_display - 56 if !SHOW_SHIELD @Window_Equipment3 = Kuro_Equipment_Window.new(@x_display+(56*2),@y_display,2) @x_display = @x_display - 56 if !SHOW_HELMET @Window_Equipment4 = Kuro_Equipment_Window.new(@x_display+(56*3),@y_display,3) @x_display = @x_display - 56 if !SHOW_ARMOR @Window_Equipment5 = Kuro_Equipment_Window.new(@x_display+(56*4),@y_display,4) else @y_display = @y_display - 56 if !SHOW_WEAPON @Window_Equipment2 = Kuro_Equipment_Window.new(@x_display,@y_display+56,1) @y_display = @y_display - 56 if !SHOW_SHIELD @Window_Equipment3 = Kuro_Equipment_Window.new(@x_display,@y_display+(56*2),2) @y_display = @y_display - 56 if !SHOW_HELMET @Window_Equipment4 = Kuro_Equipment_Window.new(@x_display,@y_display+(56*3),3) @y_display = @y_display - 56 if !SHOW_ARMOR @Window_Equipment5 = Kuro_Equipment_Window.new(@x_display,@y_display+(56*4),4) end @Window_Equipment.opacity = OPACITY @Window_Equipment2.opacity = OPACITY @Window_Equipment3.opacity = OPACITY @Window_Equipment4.opacity = OPACITY @Window_Equipment5.opacity = OPACITY @Window_Equipment.visible = ($game_switches[EQUIP_SWITCH] and SHOW_WEAPON) @Window_Equipment2.visible = ($game_switches[EQUIP_SWITCH] and SHOW_SHIELD) @Window_Equipment3.visible = ($game_switches[EQUIP_SWITCH] and SHOW_HELMET) @Window_Equipment4.visible = ($game_switches[EQUIP_SWITCH] and SHOW_ARMOR) @Window_Equipment5.visible = ($game_switches[EQUIP_SWITCH] and SHOW_ACCESSORIES) end end #=============================================================================== # END OF SCRIPTS #===============================================================================
|