じ☆ve冰风 发表于 2026-7-26 09:09:13

SEK_AttackCountAndFormula - v 3.3

SEK_AttackCountAndFormula - v 3.3
        By SEK

Introduction
        Counts uses of skills and attacks and adds a bonus damage formula.


        You can also learn skills after using x times a skill or a weapon.

Features
        - You can see how many times an actor uses a skill, save the counter to a variable and change it through plugin command.
        - Skill uses will be saved even if you save you game, close it and open it again (it's not a temporary counter!)
        -You can set a formula to add more damage to a skill!
        It can be based on its Attack Counter, on Actor level and on General Formula!
        -You can set a limit to the Attack Counter considered during the calculation of bonus damage
        -You can set a General Formula for new unlocked skills without a specific formula!

        v 3.0 - Weapon counter and formula for simple attacks implemented!
        v 3.1 - Shows next to a skill name its counter.


        v 3.2 - Modify skill counter text, size & color


                 - fixed issues with YEP_SkillCore


        v 3.3 - You can learn new skills after x uses of a skill or a weapon.


Parameters:


        Skill General Formula


        -General formula for new skill's bonus damage. If 0, no bonus will be added. Default is "ac*lv".


        Weapon General Formula


        -General formula for new weapon's bonus damage. If 0, no bonus will be added. Default is "ac*lv".


        Draw Skill Counter in menu


        -Set this true to draw Skill Counter in menu. Default is true.


        Menu Counter Color


        -Counter's color. Use message colors. Default is 6.


        Skill Counter Menu Text


        -Skill Counter's Text in menu. Write "null" to hide it. Default is  "Counter:".


        Font Size


        -Skill Counter's Font Size in menu. Default is 20.



        Show Message when a skill is learned
        -Default is true.


Formula Writing Notes:
        ac = Attack Counter: the number of times the skill/Weapon has been used by the actor.
        lv = The actor's level.
        gf = The General Formula used by new skills/Weapons.
        don't leave spaces when writing the formula!

Plugin Commands:


        AttackCount showsc


        If Draw Skill Counter in menu is true, sets it false, otherwise sets it true. 


        AttackCount set x y z
        Sets the counter of a skill from an actor to a specific number.
        x = actorId
        y = skillId
        z = number of uses

        AttackCount get x y z
        Puts the counter of a skill from an actor into a Variable.
        x = actorId
        y = skillId
        z = variableId 

        AttackCount add x y z
        Adds a specific number of uses to the counter of a skill from an actor.
        x = actorId
        y = skillId
        z = number of uses to add

        AttackCount GFset x
        Changes the base damage bonus formula used for all new skills.
        x = formula, written with no spaces, 
        where 
        -ac = y's attack counter; 
        -lv = x's level
        -gf = General Formula

        AttackCount bonus x y z
        Adds a bonus damage/heal to the basic damage/heal
        based on a formula that must be written with no spaces.
        x = actorId
        y = skill to apply the formula to
        z = formula, written with no spaces, 
        where 
        -ac = y's attack counter; 
        -lv = x's level
        -gf = General Formula

        Example: AttackCount bonus 1 10 25*ac+2*lv
        if actor one is level 10 and has used skill 10 five times,
        bonus damage will be 25*5+2*10 = 145.

        AttackCount limit x y z
        Adds a limit to an actor's attack's counter.
        Note: Attack Counter will still increase, but if it goes over
        this limit, it will be considered lowered to the limit
        during bonus damage calculation. 
        Set it to -1 to remove the limit!
        x = actorId
        y = skillId
        z = Attack Counter Limit


        AttackCount learn actorId skillToUse x skillToLearn forgetPreviousSkill


         You'll learn a new skill after x uses of a skill. 


         If the last parameter is >0, You'll forget the previous skill.


        AttackCount wlearn actorId weaponToUse x skillToLearn


         You'll learn a new skill after x uses of a weapon.


PLUGIN COMMANDS NOTE:
        Plugin Commands are the same for weapons: just add "w" before the command.
        Example: AttackCount wlimit x y z


Screenshots/Video


        Formula part for weapons (skills work just the same, without w at the beginning of the command):



        Skill learn
Demo
        Not needed

Plugin
Right click here to save the plugin

Credit and Thanks
        - SEK
        - Silver Element -for suggesting the weapon part: great idea!


        - Fitcher -for suggesting the possibility to show how many times a skill has been used!

Author's Notes
        Even if I try my best, I might not be able to help with issues.
        You are free to use this plugin. If you do use it, I'd like to have my name and my plugin's name included in credits.


本贴来自国际rpgmaker官方论坛作者:SEK处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/sek_attackcountandformula-v-3-3.60217/
页: [1]
查看完整版本: SEK_AttackCountAndFormula - v 3.3