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

[转载发布] DoubleX_RMMZ_TPBS_Countdown_States

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    4 天前
  • 签到天数: 209 天

    连续签到: 2 天

    [LV.7]常住居民III

    4594

    主题

    864

    回帖

    2万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 3 天前 | 显示全部楼层 |阅读模式
    Purpose
    Lets you set some states to update its turn after some seconds in TPBS

    Introduction
                    Code:       
    1. *    1. This plugin lets you set some states to have its turn count updated
    2. *       after a set amount of seconds in TPBS
    复制代码


    Video

    https://www.youtube.com/embed/5fJcE6ZINMs

    Games using this plugin
    None so far

    Spoiler: Notetags
                    Code:       
    1. *    ## Notetag Info
    2. *       1. Among all the same notetag types in the same data, only the 1st
    3. *          can be effective
    4. *       2. Each line can only have at most 1 notetag
    5. *       3. The following is the structure of all notetags in this plugin:
    6. *          - <doublex rmmz countdown states contents>
    7. *          - <countdown states contents>
    8. *          Where contents are in the form of type suffixes: entries
    9. *          Either of the above can be used, but the 1st one reduce the chance
    10. *          of causing other plugins to treat the notetags of this plugin as
    11. *          theirs, while the 2nd one is more user-friendly
    12. *          - type is one of the following:
    13. *            1. interval
    14. *          - suffixes is the list of suffixes in the form of:
    15. *            suffix1 suffix2 suffix3 ... suffixn
    16. *            Where each suffix is either of the following:
    17. *            val(The notetag value will be used as-is)
    18. *            switch(The value of the game switch with id as the notetag value
    19. *                   will be used)
    20. *            var(The value of the game variable with id as the notetag value
    21. *                will be used)
    22. *            (Advanced)script(The value of the game variable with id as the
    23. *                            notetag value will be used as the contents of
    24. *                            the functions to be called upon using the
    25. *                            notetag)
    26. *          - The this pointer of the script suffix is the battler involved
    27. *            (Game_Battler.prototype)
    28. *          - entries is the list of entries in the form of:
    29. *            entry1, entry2, entry3, ..., entryn
    30. *            Where entryi must conform with the suffixi specifications
    31. *----------------------------------------------------------------------------
    32. *    # State Notetags
    33. *      1. interval condSuffix intervalSuffix: condEntry, intervalEntry
    34. *         - Sets the state to be a countdown state having its turn counter
    35. *           updated with interval being the returned value of intervalEntry
    36. *           in TPBS if condEntry returns a truthy result
    37. *         - condSuffix can be val, switch or script
    38. *         - intervalEntry can be val, var or script
    39. *         - The result of condEntry can be anything as only whether it's
    40. *           truthy matters
    41. *         - If the result of condEntry is falsy, this notetag will be
    42. *           discarded upon such use cases
    43. *         - The result of intervalEntry must be a Number
    44. *         - intervalEntry being positive means the state turn counter will be
    45. *           decreased every intervalEntry seconds
    46. *         - intervalEntry being 0 means the state turn counter will be frozen
    47. *         - intervalEntry being negative means the state turn counter will be
    48. *           increased every intervalEntry seconds
    49. *         - E.g.:
    50. *           <countdown states interval switch val: 1, 2> will set the state
    51. *           to be a countdown state having its turn counter decreased every
    52. *           2 seconds if the game switch with id 1 is on
    复制代码


    Spoiler: Author Notes
    DoubleX RMMZ State Triggers can be useful when setting some events to happen upon updating the countdown state turn counters
    Spoiler: Prerequisites
    Plugins:
    1. DoubleX RMMZ Enhanced Codebase
    Abilities:
    1. Nothing special
    Spoiler: Terms Of Use
                    Code:       
    1. *      1. Commercial use's always allowed and crediting me's always optional.
    2. *      2. You shall keep this plugin's Plugin Info part's contents intact.
    3. *      3. You shalln't claim that this plugin's written by anyone other than
    4. *         DoubleX or my aliases. I always reserve the right to deny you from
    5. *         using any of my plugins anymore if you've violated this.
    6. *      4. If you repost this plugin directly(rather than just linking back),
    7. *         you shall inform me of these direct repostings. I always reserve
    8. *         the right to request you to edit those direct repostings.
    9. *      5. CC BY 4.0, except those conflicting with any of the above, applies
    10. *         to this plugin, unless you've my permissions not needing follow so.
    11. *      6. I always reserve the right to deny you from using this plugin
    12. *         anymore if you've violated any of the above.
    复制代码


    Spoiler: Contributors
                    Code:       
    1. *      Authors:
    2. *      1. DoubleX
    3. *      Plugin Development Collaborators:
    4. *      - None So Far
    5. *      Bug Reporters:
    6. *      - None So Far
    7. *      Compatibility Issue Raisers:
    8. *      - None So Far
    9. *      Feature Requesters:
    10. *      - None So Far
    复制代码


    Spoiler: Changelog
                    Code:       
    1. *      { codebase: "1.1.0", plugin: "v1.00b" }(2020 Dec 11 GMT 0400):
    2. *      1. Adding the plugin command and query counterpart of the
    3. *         isTPBSCountdownState battler manipulation
    4. *      2. Documented the isTPBSCountdownState battler manipulation
    5. *      3. Fixed the bug of not removing countdown states nor triggering
    6. *         effects from plugin DoubleX RMMZ State Triggers
    7. *      { codebase: "1.1.0", plugin: "v1.00a" }(2020 Oct 30 GMT 1300):
    8. *      1. 1st version of this plugin finished
    复制代码


    Download Link
    Demo Link


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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-7-16 14:26 , Processed in 0.144149 second(s), 52 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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