casper667

Casper Gaming
Veteran
Joined
Mar 15, 2012
Messages
397
Reaction score
512
First Language
English
Primarily Uses
RMMZ
CSCA Encyclopedia & Bestiary
By: Casper Gaming
Last Update: 3/7/2013
Latest Version: 3.0.3


Introduction
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.

Features
  • Add encyclopedia for items, weapons, armors, skills, and states
  • Add bestiary for enemies
  • Create your own custom categories
How to Use
Setup instructions in script.

Script
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/

Credit & Terms
https://www.caspergaming.com/terms-of-use/

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)
 

gsuk

Veteran
Veteran
Joined
Jun 24, 2013
Messages
158
Reaction score
12
First Language
English
Primarily Uses
RMVXA
Will this script work with Falcao's ABS system, or is it solely for the default random battle system?
 

Ebanyle

what
Veteran
Joined
Sep 2, 2016
Messages
371
Reaction score
229
First Language
Portuguese
Primarily Uses
RMVXA
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
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
4,381
Reaction score
1,212
First Language
English
Primarily Uses
RMVXA
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
 
Last edited:

gsuk

Veteran
Veteran
Joined
Jun 24, 2013
Messages
158
Reaction score
12
First Language
English
Primarily Uses
RMVXA
Thanks. Tried it but nothing happens. I just add this as a separate script?
 

gsuk

Veteran
Veteran
Joined
Jun 24, 2013
Messages
158
Reaction score
12
First Language
English
Primarily Uses
RMVXA
Thanks! Works now! Needed to move it down my script list.
 

Latest Threads

Latest Posts

Latest Profile Posts

ScreenShot_9_29_2022_3_10_17.png
Welcome to century waterway... I'm thinking of changing the parallax tho to a straight up bridge to make the traveling here make more sense.
I actually did work on my game today. This is momentous enough to warrant a status post.
Working on a character poses plugin!
Aerosys wrote on OcRam's profile.
Just saw your video about Map Generation. What a pity it's gone! It looked really well-made and like an excellent competitor to mine.

Forum statistics

Threads
125,663
Messages
1,172,626
Members
164,789
Latest member
musicmage
Top