@itemname_window = Window_Help.new
@itemname_window.y = 100 #อันนี้ก็ไปแก้ค่า x y เอา
@itemname_window.x = 0
@itemname_window.opacity = 160
@help_window = Window_Help.new
@item_window.name_window = @itemname_window
@item_window.help_window = @help_window
@itemname_window.dispose
Graphics.freeze
@itemname_window.update
def update
def update_name
@itemname_window.set_text(self.item == nil ? "" : self.item.name)
end
end #ตัวสุดถ้ายของ สคริป
@item_window.name_window = @itemname_window
if $game_party.actors[0].weapon_id >= 1 && $game_party.actors[0].weapon_id <= 5
tw = 1
elsif $game_party.actors[0].weapon_id >= 6 && $game_party.actors[0].weapon_id <= 10
tw = 2
elsif $game_party.actors[0].weapon_id >= 11 && $game_party.actors[0].weapon_id <= 15
tw = 3
elsif $game_party.actors[0].weapon_id >= 16 && $game_party.actors[0].weapon_id <= 20
tw = 4
elsif $game_party.actors[0].weapon_id >= 21 && $game_party.actors[0].weapon_id <= 25
tw = 5
elsif $game_party.actors[0].weapon_id >= 26 && $game_party.actors[0].weapon_id <= 30
tw = 6
elsif $game_party.actors[0].weapon_id >= 31 && $game_party.actors[0].weapon_id <= 35
tw = 7
elsif $game_party.actors[0].weapon_id >= 36 && $game_party.actors[0].weapon_id <= 40
tw = 8
elsif $game_party.actors[0].weapon_id >= 41 && $game_party.actors[0].weapon_id <= 45
tw = 9
elsif $game_party.actors[0].weapon_id >= 46 && $game_party.actors[0].weapon_id <= 50
tw = 10
end