COMPATIBILITYNote: If you are using a version of any CSCA script that adds itself to the menu,you'll need to turn that option off to be compatible with this script.

Should be compatible with almost any script. Compatible only for VXAce.IMPORTANT: ALL CSCA Scripts should be compatible with each other unlessotherwise noted.

FFEATURESThis script will allow you to easily add any CSCA Scripts to your main menu. Italso allows you to change the default commands easily, as well as add an optionto open the debug menu from the main menu during playtest mode.

SETUPSetup options below.

CREDIT:Free to use in noncommercial games if credit is given to:Casper Gaming (http://www.caspergaming.com/)

To use in a commercial game, please purchase a license here:http://www.caspergaming.com/licenses.html

# Leaving these as true may increase compatibility with custom menu scripts. # These only have an effect if MAIN_COMMANDS above is set to true. ITEM_ENABLED = true # Add Item to the menu? SKILL_ENABLED = true # Add Skill to the menu? EQUIP_ENABLED = true # Add Equip to the menu? STATUS_ENABLED = true # Add Status to the menu?

DEBUG = true # Add debug option to menu in playtest mode?

#Setting this to 0 may increase compatibility with custom menu scripts. LINES = 10 #Amount of commands to show before scrolling to show. #If set to 0, the window will show all commands without scrolling.

# NOTE: # # This script will be updated consistently to include future CSCA scripts # that can go in the menu, however support for all custom scripts is not # planned. Yanfly already has a script for that, if that's what you want: # http://yanflychannel.wordpress.com/rmvxa/menu-scripts/ace-menu-engine/ # # This script is just meant for those who just want to easily add CSCA # Scripts to the menu without all of the other features.

INITIATING A SKILL SHOP FROM AN EVENT:To create a skill shop, you'll need to make a few script calls.Step 1. Under the event commands, choose tab 3, then under advanced choose Script.Step 2. In the script window, you'll need to enter 3 lines:

The first line you can change the numbers. The numbers correspond to skill ID's.In this example, skills #1, #2, #3, and #4 will be sold.The last 2 lines will always be the same.

HOW TO SET SKILL PRICESThe skill's price is set through notetags. In the skill notetag box, enter thisnotetag:

Where x will be the price of the skill. For example,will make the skill cost 100 gold. Do not put commas in this number.

HOW TO SET WHICH SKILLS AN ACTOR CAN LEARNBy default, actors cannot learn any skills through the shop. This needs to beset through notetags in the actor's notebox. To do this, enter a notetag likethis:

Where x will be the skill ID the actor can learn. You can enter many skill ID'sby separating them with commas such as

Where x will be a skill ID, y will be another skill ID, z will be another skillID and so on. For example,will allow the actor to learn skills #1, #2, and #3.

Actors will never be able to learn skills which they already know.

============================= END INSTRUCTIONS==================================end

def enable?(actor) for i in 0...actor.skills.size if actor.skills[i] == @skill return false end end for i in 0...actor.csca_learnable_skills.size unless @skill.nil? if actor.csca_learnable_skills[i] == @skill.id return true end end end return false end