Sets the requirements for unlocking that particular class. The unlocking of the class will require classes x to be at level y. Insert multiple of the strings in between the two opening and closing notetags to require all of the class levels to be met.

#==============================================================================# ▼ Updates# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# 2011.12.20 - Started Script and Finished.# #==============================================================================# ▼ Introduction# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# This script allows for classes to be unlocked after a class reaches a certain# level. Note that this script is made for the Class System script and not# using the MAINTAIN_LEVELS feature. Requirements for unlocking a class can be# multiple level requirements as well.# #==============================================================================# ▼ Instructions# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# To install this script, open up your script editor and copy/paste this script# to an open slot below ▼ Materials/素材 but above ▼ Main. Remember to save.# # -----------------------------------------------------------------------------# Class Notetags - These notetags go in the class notebox in the database.# -----------------------------------------------------------------------------# # class x: level y# class x: level y# # Sets the requirements for unlocking that particular class. The unlocking of# the class will require classes x to be at level y. Insert multiple of the# strings in between the two opening and closing notetags to require all of the# class levels to be met.# #==============================================================================# ▼ Compatibility# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# This script is made strictly for RPG Maker VX Ace. It is highly unlikely that# it will run with RPG Maker VX without adjusting.# # This script requires Yanfly Engine Ace - Class System v1.01+.# #==============================================================================# ▼ Editting anything past this point may potentially result in causing# computer damage, incontinence, explosion of user's head, coma, death, and/or# halitosis so edit at your own risk.#==============================================================================

#-------------------------------------------------------------------------- # new method: load_notetags_cul #-------------------------------------------------------------------------- def self.load_notetags_cul for obj in $data_classes next if obj.nil? obj.load_notetags_cul end end

#-------------------------------------------------------------------------- # check_level_unlocked_classes #-------------------------------------------------------------------------- def check_level_unlocked_classes for item in $data_classes next if item.nil? next if unlocked_classes.include?(item.id) next if item.level_unlock == {} next unless class_unlock_level_requirements_met?(item) unlock_class(item.id) end end