class Window_ShopNumber < Window_Base
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
y = 64
self.contents.clear
draw_item_name(@item, 0, y)
self.contents.font.color = normal_color
self.contents.draw_text(212, y, 20, WLH, "×")
self.contents.draw_text(248, y, 20, WLH, @number, 2)
self.cursor_rect.set(244, y, 28, WLH)
draw_currency_value(@price * @number, 4, y + WLH * 2, 264)
end
end
class Window_ShopStatus < Window_Base
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
self.contents.clear
if @item != nil
number = $game_party.item_number(@item)
self.contents.font.color = system_color
self.contents.draw_text(4, 0, 200, WLH, Vocab::Possession)
self.contents.font.color = normal_color
self.contents.draw_text(4, 0, 200, WLH, number, 2)
for actor in $game_party.members
x = 4
y = WLH * (2 + actor.index)
draw_actor_parameter_change(actor, x, y)
end
end
end
#--------------------------------------------------------------------------
# * Draw Actor's Current Equipment and Parameters
#--------------------------------------------------------------------------
def draw_actor_parameter_change(actor, x, y)
return if @item.is_a?(RPG::Item)
enabled = actor.equippable?(@item)
self.contents.font.color = normal_color
self.contents.font.color.alpha = enabled ? 255 : 128
self.contents.draw_text(x, y, 200, WLH, actor.name)
if @item.is_a?(RPG::Weapon)
item1 = weaker_weapon(actor)
elsif actor.two_swords_style and @item.kind == 0
item1 = nil
else
item1 = actor.equips[1 + @item.kind]
end
if enabled
if @item.is_a?(RPG::Weapon)
atk1 = item1 == nil ? 0 : item1.atk
atk2 = @item == nil ? 0 : @item.atk
change = atk2 - atk1
else
def1 = item1 == nil ? 0 : item1.def
def2 = @item == nil ? 0 : @item.def
change = def2 - def1
end
if change > 0 # If increase status
elsif change < 0 # If decrease status
self.contents.font.color.alpha = 128
else # if not change status
self.contents.font.color.alpha = 128
end
self.contents.draw_text(x, y, 200, WLH, sprintf("%+d", change), 2)
end
end
end
krychu18 - Wto 25 Maj, 2010 07:51 Bardzo przydatny skrypt do gier gdzie dużo się dzieje XD
właśnie czegoś takiego szukałem.
DziękiAmelanduil - Wto 25 Maj, 2010 12:49 Autora byś podał! -_- Nauczcie się w końcu...
Autor: KGC, tak się składa, że mam ten skrypt ze "KGC Script Library". Jak chcecie to prześlę :PAyene - Sro 26 Maj, 2010 10:32 LostSoul, ten jest akurat Woratany. A autor podany jest w treści skryptu, więc wszystko jest w porządku.Amelanduil - Sro 26 Maj, 2010 11:36 pomyłka, pomyłka, gubię się już w tych skryptach xO
sorry...Valdali - Sro 26 Maj, 2010 19:15 dzięki skrypt mi się przydał