设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
扫描二维码关注官方公众号
返回列表
+ 发新帖
查看: 72|回复: 0

[转载发布] DoubleX RMMV Popularized ATB Countdown

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    2026-7-12 04:10
  • 签到天数: 209 天

    连续签到: 2 天

    [LV.7]常住居民III

    5778

    主题

    864

    回帖

    3万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    VIP
    7
    卡币
    25563
    OK点
    16
    推广点
    0
    同能卷
    50
    积分
    32235

    灌水之王

    发表于 昨天 17:38 | 显示全部楼层 |阅读模式
    Note


            This plugin's available for commercial use


    Purpose


            Lets users set some states updating turns per specified seconds


    Games using this plugin


            None so far


    Notetags

    Spoiler*    # State Notetags:                                                      
    *      1. <patb countdown: sec>                                             
    *         - Sets the state to have its turn updated every sec seconds        
    *         - Every second in sec only consists of frames with atb updates






    Plugin Calls

    Spoiler*    # Data State manipulations                                             
    *      1. meta.patb_countdown                                                
    *         - Returns the number of seconds per state turn update              
    *         - Those seconds only consist of frames with atb updates            
    *      2. meta.patb_countdown = sec                                          
    *         - Sets the number of seconds per state turn update as sec         
    *         - Every second in sec only consists of frames with atb updates     
    *         - All meta.patb_countdown changes can be saved if                  
    *           DoubleX RMMV Dynamic Data is used                                
    *    # Battler manipulations                                                
    *      1. patb_countdown_clock[stateId]                                      
    *         - Returns the countdown clock, measured in frames, of state with id
    *           stateId                                                         
    *         - The number of frames per second is hardcoded as 60 by default   
    *      2. patb_countdown_clock[stateId] = frames                             
    *         - Sets the countdown clock, measured in frames, of state with id   
    *           stateId, as frames frame                                         
    *         - The number of frames per second is hardcoded as 60 by default   
    *      3. patb_countdown_freeze[stateId]                                    
    *         - Returns whether the countdown of a state with id stateId's frozen
    *      4. patb_countdown_freeze[stateId] = boolean                           
    *         - Sets the countdown of state with id stateId to be frozen if      
    *           boolean is true






    Configuration

    SpoilerDoubleX_RMMV.PATB_Countdown = {

        /* Sets something to happen when the turn of the countdown state state
         * owned by the battler calling on_countdown_update decreases
         * on_countdown_update will be bound to the battler upon use
         */
        on_countdown_update: function(state) {
            // Uses DoubleX RMMV State Triggers to trigger countdown update effects
            //var GBB = DoubleX_RMMV.State_Triggers.Game_BattlerBase;
            //GBB.execStateTriggers.call(this, state.id, "turn");
            //

            // Applies 10 hp damage to the state owner per countdown update
            this._result.clear();
            this._result.success = true;
            this.gainHp(-10);
            this.onDamage(10);
            this.startDamagePopup();
            if (this._hp <= 0) { this.performCollapse(); }
        } // on_countdown_update

    }; // DoubleX_RMMV.PATB_Countdown






    Video








            Note that this plugin doesn't show the state turn counter, which is shown by Yanfly Engine Plugins - Buffs & States Core in this video


    Prerequisites


            Plugins:


            1. DoubleX RMMV Popularized ATB Core


            Abilities:


            1. Decent Javascript coding proficiency to fully utilize this plugin


    Terms Of Use


            You shall keep this plugin's Plugin Info part's contents intact


            You shalln't claim that this plugin's written by anyone other than DoubleX or his aliases


            None of the above applies to DoubleX or his/her aliases


    Changelog

    Spoiler*      v1.00c(GMT 0700 20-8-2016):                                          
    *      1. In sync with the latest DoubleX RMMV Popularized ATB Core version  
    *      v1.00b(GMT 0400 16-7-2016):                                          
    *      1. Changed auto removing timing of countdown state to "patb_countdown"
    *      2. Increased this plugin's compatibility and robustness               
    *      v1.00a(GMT 0600 6-2-2016):                                            
    *      1. 1st testing version of this plugin finished






    DoubleX RMMV Popularized ATB Countdown


    View attachment DoubleX RMMV Popularized ATB Countdown v100c.rar


    本贴来自国际rpgmaker官方论坛作者:DoubleX处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/doublex-rmmv-popularized-atb-countdown.56353/
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

    文明发言,和谐互动
    文明发言,和谐互动
    高级模式
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    简体中文
    繁體中文
    English(英语)
    日本語(日语)
    Deutsch(德语)
    Русский язык(俄语)
    بالعربية(阿拉伯语)
    Türkçe(土耳其语)
    Português(葡萄牙语)
    ภาษาไทย(泰国语)
    한어(朝鲜语/韩语)
    Français(法语)
    关闭

    幸运抽奖

    社区每日抽奖来袭,快来试试你是欧皇还是非酋~

    立即查看

    聊天机器人
    Loading...

    QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

    GMT+8, 2026-7-26 03:54 , Processed in 0.062543 second(s), 52 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回复 返回顶部 返回列表