Main Menu
  • Welcome to The RPG Maker Resource Kit.

Item & Skills Catalogue

Started by modern algebra, August 16, 2009, 10:42:13 PM

0 Members and 3 Guests are viewing this topic.

modern algebra

Add this into its own slot somewhere below the Catalogue_Base script:


class Scene_Catalogue
  def return_scene
    $scene = Scene_Menu.new
  end
end

Troile


Infinate X

So.... Is this like a database?

evstellar

Hey Algebra, I know it might be a lot to ask in such short time, but could you add a patch to display the stats added in YEM: New Battle Stats? This would be greatly appreciated, thanks in advance!

modern algebra

Umm, try pasting the following into its own slot below the Item & Skills Catalogue script (untested):


#==============================================================================
# ** Window ItemCard
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Summary of Changes:
#    aliased method - get_item_stats
#==============================================================================

class Window_ItemCard
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Get Item Stats
  #    item : the item to check
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  alias maisc_gtitmstats_3fr5 get_item_stats
  def get_item_stats(*args)
    item_stats, stat_names = maisc_gtitmstats_3fr5(*args)
    unless @object.is_a?(RPG::UsableItem)
      # Dex
      if $imported["DEX Stat"]
        item_stats.push (@object.dex)
        stat_names.push (YEM::STATS::DEX::VOCAB)
      end
      # Res
      if $imported["RES Stat"]
        item_stats.push (@object.res)
        stat_names.push (YEM::STATS::RES::VOCAB)
      end
    end
    return item_stats, stat_names
  end
end

Tetosan

Hey,
I ran into a problem and am not sure if this is a compability issue with other scripts or whatever.

I installed the script and decided to test it. Now whenever i hover over a certain skill in the Skill List i get this Error:
QuoteScript 'Window_Base' line 158: NoMethodError occured.

undefined method `' for nil:NilClass

It seems to only occur when i hover over this skill in the Skill Catalog, neither occures in the Skill tab of the menu or in a Fight ^^''

i do not use the Bitmap Addon as this gives me a menu when i open the Menu (suspect issue with another script)

modern algebra

Could you possibly recreate the error in a new project and upload it so I can take a look?

Tetosan

currently trying to reproduce the error in a new project.... seems to be a compability issue with another script tho as it works smoothly now... trying to identify scripts that could somehow inflict with it :/

modern algebra


Tetosan

#34
Currently i'm oblivious to what file exactly is causing this...

i thought it was something with the amouth of items i have as the exchange of the items.rvdata did not make the error pop up

however when i changed back to Verify that thesis the problem did not occur, then when exchanging everything -> error pops up again

However can say it's not a script issue tho. must be something in the data folders :/

EDIT: It seems to be a problem because the Script cannot call the skills element ^^'' as they're not Basis Elements :X

EDIT2:
For everyone out there with Custom added Elements
If you run into this problem too add more numbers to this line

CI_ITEM_ELEMENT_ICONS = [132, 2, 4, 14, 16, 12, 138, 137, 104, 105, 106, 107,
                           109, 110, 111, 112, 112, 122]

As you can see ^ has 3x 112 (as i have a total of 18 used elements (Added Twilight and Blood as an Element)

Thanks to modern algebra for the help tho if you didn't ask me to send you a new project where you can take a look at i'd never found out that it wasn't a compability error but my own stupidity for not carefully reading what the script said ^^''