I just got a kick ass HUD from Axerax,
and i've plotted, or i'm going to, everything else,
but i've just got a problem with the slots because they seem to be joined together, even though they take can different pictures.
as you can see it only give you one movement path, or at least i think ( i can't script at all) so and someone split it up for me ? or show me how?
and i've plotted, or i'm going to, everything else,
but i've just got a problem with the slots because they seem to be joined together, even though they take can different pictures.
def draw_slots
x = 70
y = 12
@slots = $game_player.equiped_teclas.dup
for i in 0..2
if @slots.type == 2
if $game_party.item_number(@slots.id) <= 0
@slots.clear
else
@slots.number = $game_party.item_number(@slots.id)
end
end
if @slots.type == 3
if $game_party.armor_number(@slots.id) <= 0
@slots.clear
else
@slots.number = $game_party.armor_number(@slots.id)
end
end
if @slots.type == 4
if $game_party.weapon_number(@slots.id) <= 0
@slots.clear
else
@slots.number = $game_party.weapon_number(@slots.id)
end
end
self.bitmap.blt(x + i * 38, y, @slot, Rect.new(0, 0, 28, 28))
icon = RPG::Cache.icon(@slots.icon_name)
self.bitmap.blt(x + 2 + i * 38, y + 2, icon, Rect.new(0, 0, 24, 24))
if @slots.type >= 2
size = self.bitmap.text_size(@slots.number.to_s)
self.bitmap.draw_text(x + i * 38 + 28 - size.width, y + 2 + 28 - size.height, size.width, size.height, @slots.number.to_s, 2)
end
end
end
x = 70
y = 12
@slots = $game_player.equiped_teclas.dup
for i in 0..2
if @slots.type == 2
if $game_party.item_number(@slots.id) <= 0
@slots.clear
else
@slots.number = $game_party.item_number(@slots.id)
end
end
if @slots.type == 3
if $game_party.armor_number(@slots.id) <= 0
@slots.clear
else
@slots.number = $game_party.armor_number(@slots.id)
end
end
if @slots.type == 4
if $game_party.weapon_number(@slots.id) <= 0
@slots.clear
else
@slots.number = $game_party.weapon_number(@slots.id)
end
end
self.bitmap.blt(x + i * 38, y, @slot, Rect.new(0, 0, 28, 28))
icon = RPG::Cache.icon(@slots.icon_name)
self.bitmap.blt(x + 2 + i * 38, y + 2, icon, Rect.new(0, 0, 24, 24))
if @slots.type >= 2
size = self.bitmap.text_size(@slots.number.to_s)
self.bitmap.draw_text(x + i * 38 + 28 - size.width, y + 2 + 28 - size.height, size.width, size.height, @slots.number.to_s, 2)
end
end
end
as you can see it only give you one movement path, or at least i think ( i can't script at all) so and someone split it up for me ? or show me how?