I wasn't able to try it out but it should work.
# ??? XRXSv17-HP1. Help ? Plus ???
#
# publish 2010/ 5/ 4
# update - 12/23
#
#==============================================================================
# ???????
#==============================================================================
HELP_WINDOW_IMAGE_NAME = "help_background" # Should be placed in the system folder
module XRXSV17_RPGBaseItemBase
def mnd
return 0
end
end
#module RPG::BaseItem
class RPG::BaseItem
include XRXSV17_RPGBaseItemBase
end
#==============================================================================
# ???????????
#==============================================================================
module XRXSV_FitWindow
def initialize
@contents_sprite = Sprite_Base.new
@contents_sprite.bitmap = Bitmap.new(1,1)
super
self.contents_opacity = 0
end
def create_contents
self.width += 32
self.height += 32
super
self.width -= 32
self.height -= 32
end
def contents
return @contents_sprite.bitmap
end
def contents=(bitmap)
@contents_sprite.bitmap = bitmap
end
def x=(n)
@contents_sprite.x = n
super
end
def y=(n)
@contents_sprite.y = n
super
end
def z=(n)
@contents_sprite.z = n + 3
super
end
def dispose
@contents_sprite.dispose
super
end
end
module Vocab
def self.mnd
return "???"
end
end
#==============================================================================
# ?????
#==============================================================================
class Window_HelpEX < Window_Help
include XRXSV_FitWindow
#--------------------------------------------------------------------------
# ? ?????????
#--------------------------------------------------------------------------
def initialize
super
self.height += 32
self.z += 5
self.opacity = 0
@background_image = Sprite.new
@background_image.bitmap = Cache.system(HELP_WINDOW_IMAGE_NAME)
@background_image.x = self.x
@background_image.y = self.y
create_contents
@item = nil
end
#--------------------------------------------------------------------------
# ? ??????
#--------------------------------------------------------------------------
def set(item)
if @item != item
self.contents.clear
if item
draw_item_name(item, 12, 8)
set = []
case item
when RPG::Item
when RPG::Skill
if item.atk_f >= 1 and item.spi_f == 0
type_s = "Skill"
elsif item.atk_f == 0 and item.spi_f >= 1
type_s = "Magic"
else
type_s = "Special"
end
set.push([type_s, ""])
if item.base_damage == 0
power_s = "---"
elsif item.base_damage.abs == 1
power_s = (item.atk_f + item.spi_f).to_s + "%"
else
power_s = item.base_damage.abs.to_s + "~"
end
set.push(["Str.", power_s, 32, 72])
set.push(["Acc.", item.hit.to_s, 32])
set.push(["Pen.", ""]) if item.ignore_defense
if item.note[/\\([0-9]+?)hit/]
set.push([$1 + "hit", ""])
end
for state_id in item.plus_state_set
if state_id == 1
name = "Death"
else
name = $data_states[state_id].name
end
set.push([name, "", 56])
end
when RPG::Weapon, RPG::Armor
if item.note[/\\hp\[([+-]*?[0-9]+?)\]/]
set.push([Vocab.hp, $1])
end
if item.note[/\\mp\[([+-]*?[0-9]+?)\]/]
set.push([Vocab.mp, $1])
end
set.push([Vocab.atk, item.atk]) if item.atk >= 1
set.push([Vocab.def, item.def]) if item.def >= 1
set.push([Vocab.spi, item.spi]) if item.spi >= 1
set.push([Vocab.mnd, item.mnd]) if item.mnd >= 1
set.push([Vocab.agi, item.agi]) if item.agi >= 1
end
x = 24
y = WLH + 8
for data in set
self.contents.font.size = 16
self.contents.font.color = system_color
w = (data[2] ? data[2] : 48)
self.contents.draw_text(x, y, w, WLH, data[0])
x += w
self.contents.font.size = 20
self.contents.font.color = normal_color
if data[1].size >= 1
w = (data[3] ? data[3] : 40)
self.contents.draw_text(x, y, w, WLH, data[1])
x += w
end
end
self.contents.font.color = normal_color
self.contents.draw_text(24, 8 + WLH*2, 500, WLH, item.description)
end
@item = item
@text = nil
@align = nil
self.x = self.x
self.y = self.y
end
end
def set_text(text, align = 0)
if text != @text or align != @align
@contents_sprite.x = self.x + 16
@contents_sprite.y = self.y + 32
@item = nil
end
super
end
alias dispose_background_image dispose unless $@
def dispose
dispose_background_image
@background_image.dispose
end
end
Deity