05-02-2012, 05:30 PM
Hey, Erechel. We have a problem with both scripts. They are both incomplete, or at least what you posted was incomplete.
The Alchemy script has the "Scene_Alquimia" class along with various WINDOW classes from "Window_Info" to "Window_Items". Unfortunately, that is where the script you posted was cut. So if there was supposed to be any additional code... it's not there.
And the Quest script you posted was likewise incomplete, though I had to do a little cleaning up of the code to realize it. Like the Alchemy script, the incomplete section is at the bottom of the code. I placed notes such as 'what class' or 'what Method/Def' to show where the missing code belonged. Or at least where part of the missing code belonged. I cannot say how much is missing. But it was code that belonged below "Scene_Load" in the script.
Mind you, I'm using a quest script by Jaberwocky (or Jaber or Jaberwoky... he goes by various spellings here and there), and PrexCraft, a crafting script by Prexus. Though I do intend to make my own crafting script later (likely modeled after his), both Prexctaft and Jaberwocky's Quest scripts work fine with the ABS.
Of course, finding or posting complete versions of these scripts you are using would work too.
The Alchemy script has the "Scene_Alquimia" class along with various WINDOW classes from "Window_Info" to "Window_Items". Unfortunately, that is where the script you posted was cut. So if there was supposed to be any additional code... it's not there.
Code:
#==============================================================================
# â– Window_Item
#------------------------------------------------------------------------------
class Window_Items < Window_Selectable
#--------------------------------------------------------------------------
def initialize
super(0, 0, 320, 416)
self.contents = Bitmap.new(width - 32, height - 32)
self.contents.font.name = $fontface
self.contents.font.size = $fontsize
@column_max = 1
refresh
self.index = 0
end
#--------------------------------------------------------------------------
def refresh
self.contents.clear
@data = []
for i in 1...$data_items.size
And the Quest script you posted was likewise incomplete, though I had to do a little cleaning up of the code to realize it. Like the Alchemy script, the incomplete section is at the bottom of the code. I placed notes such as 'what class' or 'what Method/Def' to show where the missing code belonged. Or at least where part of the missing code belonged. I cannot say how much is missing. But it was code that belonged below "Scene_Load" in the script.
Code:
class Scene_Load
alias falcao_read_mision read_save_data
def read_save_data(file)
falcao_read_mision(file)
$falcao_mision = Marshal.load(file)
$falcao_completed = Marshal.load(file)
$mision_data = Marshal.load(file)
end
end
# -----what class
# What Method/def ????
#-something
if $game_party.item_number(i) > 0 and
$data_items[i].element_set.include? ($atr_ingrediente)
@data.push($data_items[i])
end
end
@item_max = @data.size
if @item_max > 0
for i in 0...@data.size
draw_item(@data[i], i) if not @data[i].nil?
end
end
end
# ------What Class was this from????
#--------------------------------------------------------------------------
def draw_item(data, pos)
item = data
number = $game_party.item_number(item.id)
x = 0
y = 32 * pos
bitmap = RPG::Cache.icon(item.icon_name)
self.contents.blt(x, y + 4, bitmap, Rect.new(0, 0, 24, 24))
self.contents.draw_text(x + 28, y, 212, 32, item.name, 0)
self.contents.draw_text(x + 240, y, 16, 32, ":", 1)
self.contents.draw_text(x + 256, y, 24, 32, number.to_s, 2)
end
#--------------------------------------------------------------------------
def item
return @data[self.index]
end
#--------------------------------------------------------------------------
end
Mind you, I'm using a quest script by Jaberwocky (or Jaber or Jaberwoky... he goes by various spellings here and there), and PrexCraft, a crafting script by Prexus. Though I do intend to make my own crafting script later (likely modeled after his), both Prexctaft and Jaberwocky's Quest scripts work fine with the ABS.
Of course, finding or posting complete versions of these scripts you are using would work too.