[CSCA] Encyclopedia & Bestiary

CSCA Encyclopedia & Bestiary
By: Casper Gaming
Last Update: 3/7/2013
Latest Version: 3.0.3

dxEPbU0.png

This script creates an encyclopedia, with the option to insert it into the default main menu. The encyclopedia contains a separate list for items, armors, weapons, and monsters(called bestiary). You can also create your own custom categories.
nlUIeRv.png

  • Add encyclopedia for items, weapons, armors, skills, and states
  • Add bestiary for enemies
  • Create your own custom categories
lWNLTGy.png

Setup instructions in script.
3AzjNYV.png

Script (along with all my other scripts) can be found here: https://www.caspergaming.com/scripts/csca/encyclopedia/
Requires CSCA Core: https://www.caspergaming.com/scripts/csca/cscacore/
l8DkDBW.png

https://www.caspergaming.com/terms-of-use/
KbfnB7j.png

Spoiler: Version History
version 1.1(April 14, 2012):
- Added ability to set enemy/item/etc. to discovered through script call.
- Bestiary MaxHP and MaxMP listed at top of parameters now instead of bottom.
- Ability to restrict which items, armors, weapons, and enemies are shown to
the player based on their ID(you can restrict which ID the list goes up to)

version 1.2(April 29, 2012):
- No more max items listed. If you want to leave an item/enemy/etc. unlisted now,
use the notetag <csca enc exclude>.

version 2.0(June 17, 2012):
- Resized the windows to display more info on each item.
- Added skills and states to the encyclopedia.
- All commands(bestiary, items, etc.) are now able to be disabled.
- Changed colors of some text.
- Fixed bug with item occasion of Never.
- Made code more efficient.

version 2.0b(June 17, 2012)
- Removed add to menu option. Use the CSCA Menu Organizer for that instead.

version 2.1(July 12, 2012)
- Added option to use a custom image for skills/items/etc. instead of just using
the blown up icon for said skill/item/etc. Size of image is 72x72.
- Added ability to change x coordinate of stat amounts.
- Added ability to customize order encyclopedia lists are shown.

version 2.2(August 13, 2012)
- Windows now resize properly with different resolutions.

version 2.2b(September 5, 2012)
- Optimized script.
- Added ability to set amount of a certain enemy defeated.

version 2.2c(September 11, 2012)
- Param text now displays at the correct x coordinate automatically.

version 3.0(October 6, 2012)
- Divided the totals window into 2 separate windows, one shows total completion %,
the other shows category completion %.
- Added support for CSCA Achievement System.
- Users can now create their own custom categories.

version 3.0.1(October 14, 2012)
- Added ability to re-order custom categories and default categories.

version 3.0.2(October 21, 2012)
- Added ability to change descriptions of custom entries

version 3.0.3(March 7, 2013)
- Compatibility patch for CSCA Currency System
- Removed some duplicate code (now in Core Script)
Will this script work with Falcao's ABS system, or is it solely for the default random battle system?
Will this script work with Falcao's ABS system, or is it solely for the default random battle system?
There's a command to manually discover an enemy, I suppose you could use that as in this ABS they are evented iirc
Will this script work with Falcao's ABS system
This will make it work for the enemies.
Ruby:
class Game_Event < Game_Character
  def kill_enemy
    @secollapse = nil
    @killed = true
    @priority_type = 0 if @deadposee
    gain_exp
    gain_gold
    etext = 'Exp '  + @enemy.exp.to_s if @enemy.exp > 0
    gtext = 'Gold ' + @enemy.gold.to_s if @enemy.gold > 0
    $game_player.pop_damage("#{etext} #{gtext}") if etext || gtext
    make_drop_items
    run_assigned_commands
    $game_party.csca_set_enemy_true(battler.enemy_id) if @killed
    $game_party.csca_set_discovered(battler) if @killed
    $game_party.csca_set_defeated(battler) if @killed
  end
end

class Game_Party < Game_Unit
  def csca_set_discovered(item, discover = true)
    if item.is_a?(RPG::Item)
      @csca_items[item.id] = discover
    elsif item.is_a?(RPG::Weapon)
      @csca_weapons[item.id] = discover
    elsif item.is_a?(RPG::Armor)
      @csca_armors[item.id] = discover
    elsif item.is_a?(RPG::Enemy)
      @csca_enemies[item.id] = discover
    elsif item.is_a?(RPG::Skill)
      @csca_skills[item.id] = discover
    elsif item.is_a?(RPG::State)
      @csca_states[item.id] = discover
    elsif !item.nil?
      return @csca_custom_enc[item.enemy_id] = discover if item.enemy_id != nil
      @csca_custom_enc[item] = discover
    end
  end
 
  def csca_set_defeated(enemy, number = 1)
    return @csca_defeated_number[enemy.enemy_id] += number if enemy.enemy_id != nil
    @csca_defeated_number[enemy.id] += number
  end
end
Thanks. Tried it but nothing happens. I just add this as a separate script?
I just add this as a separate script?
Yes. Put below Both Scripts. I tested this and it works.
Thanks! Works now! Needed to move it down my script list.
Hi, I don't know if you're still support this script but is there anyhow I can decrease the commands size from 7 to 2? Thank you very much!

Original thread: https://forums.rpgmakerweb.com/threads/csca-encyclopedia-bestiary.128606/