#============================================================================== # # ▼ Yanfly Engine Ace - Weapon Attack Replace v1.01 # -- Last Updated: 2011.12.19 # -- Level: Normal # -- Requires: n/a # #============================================================================== $imported = {} if $imported.nil? $imported["YEA-WeaponAttackReplace"] = true #============================================================================== # ▼ Updates # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= # 2011.12.19 - Added notetags for Actors, and Classes. # 2011.12.17 - Started Script and Finished. # #============================================================================== # ▼ Introduction # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= # By default, RPG Maker VX Ace sets all normal attacks to call upon Skill #1 # to do all of the basic attack functions. While this is a great idea, it also # meant that all weapons would share the same basic attack damage formula and # effects. With this script, you can set different weapon types to use any # skill for its basic attack. # #============================================================================== # ▼ 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. # # ----------------------------------------------------------------------------- # Actor Notetags - These notetags go in the actors notebox in the database. # ----------------------------------------------------------------------------- # # This sets the actor's default attack (if no weapon is equipped) to be x. The # actor's custom attack skill will take priority over a class's custom attack # skill, which will take priority over the default attack skill (skill #1). # # ----------------------------------------------------------------------------- # Class Notetags - These notetags go in the class notebox in the database. # ----------------------------------------------------------------------------- # # This sets the class's default attack (if no weapon is equipped) to be x. An # actor's custom attack skill will take priority over the class's custom attack # skill, which will take priority over the default attack skill (skill #1). # # ----------------------------------------------------------------------------- # Weapon Notetags - These notetags go in the weapons notebox in the database. # ----------------------------------------------------------------------------- # # This sets the worn weapon's attack skill to x. Note that if an actor is dual # wielding, the attack skill of the first weapon will take priority over the # second weapon. # #============================================================================== # ▼ 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. # # For maximum compatibility with YEA - Ace Battle Engine, place this script # below Ace Battle Engine in the script listing. # #============================================================================== module YEA module WEAPON_ATTACK_REPLACE #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- # - Basic Settings - #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- # If for whatever reason, you wish to change the default attack skill to # something other than one, change the constant below. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- DEFAULT_ATTACK_SKILL_ID = 1 end # WEAPON_ATTACK_REPLACE end # YEA #============================================================================== # ▼ 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. #============================================================================== module YEA module REGEXP module BASEITEM ATTACK_SKILL = /<(?:ATTACK_SKILL|attack skill):[ ](\d+)>/i end # BASEITEM module WEAPON ATTACK_SKILL = /<(?:ATTACK_SKILL|attack skill):[ ](\d+)>/i end # WEAPON end # REGEXP end # YEA #============================================================================== # ■ DataManager #============================================================================== module DataManager #-------------------------------------------------------------------------- # alias method: load_database #-------------------------------------------------------------------------- class <