11-18-2009, 08:08 PM
thank you for your patience Charlie, and sorry i didn't succeed.
i think i have to change things here :
or in the attached part that is too big for the post.
but i fail to find how to type it. can you advise anything please,
it is really important for me
sorry for inconveniences and thank you
i think i have to change things here :
Code:
def refresh
if self.contents != nil
self.contents.dispose
self.contents = nil
end
@data = []
# Add equippable weapons
if @equip_type == 0 or (@equip_type == 1 and @actor.two_swords_style)
weapon_set = $data_classes[@actor.class_id].weapon_set
for i in 1...$data_weapons.size
next if Two_Hands_Weapons.include?(i) and @equip_type == 1
next if Right_Hand_Weapons.include?(i) and @equip_type == 1
next if Left_Hand_Weapons.include?(i) and @equip_type == 0
if $game_party.weapon_number(i) > 0 and weapon_set.include?(i)
@data.push($data_weapons[i])
end
# CHARLIE: add new weapons which cannot be part of the weapon set
if i > $game_party.max_database_weapon_id
if $game_party.weapon_number(i) > 0 and weapon_set.include?($data_weapons[i].ref_id)
@data.push($data_weapons[i])
end
end
end
end
# Add equippable armor
if @equip_type > 1 or (@equip_type == 1 and not @actor.two_swords_style)
armor_set = $data_classes[@actor.class_id].armor_set
for i in 1...$data_armors.size
if $game_party.armor_number(i) > 0 and armor_set.include?(i)
if $data_armors[i].type_id == @equip_type
@data.push($data_armors[i])
end
end
# CHARLIE: add new armors which cannot be part of the armor set
if i > $game_party.max_database_armor_id
if $game_party.armor_number(i) > 0 and armor_set.include?($data_armors[i].ref_id)
if $data_armors[i].kind == @equip_type-1
@data.push($data_armors[i])
end
end
end
end
end
# Add blank page
@data.push(nil)unless @actor.lock_equip(@equip_type)
@item_max = @data.size
self.contents = Bitmap.new(width - 32, [row_max, 1].max * 32)
self.opacity = Equip_Window_Opacity
for i in 0...(@actor.lock_equip(@equip_type) ? @item_max : @item_max - 1)
draw_item(i)
end
or in the attached part that is too big for the post.
but i fail to find how to type it. can you advise anything please,
it is really important for me
sorry for inconveniences and thank you