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

[转载发布] Variable Rates (Have Game Variables changed by a certain rate in the background

[复制链接]
累计送礼:
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

    灌水之王

    发表于 昨天 12:28 | 显示全部楼层 |阅读模式
    Variable Rates


    Version 1.00


    by SumRndmDde












    What This Plugin Does:


            In the simplest terms possible, it allows you to increase or decrease one or more Variables by a certain value every certain amount of frames.


            This Plugin groups everything into "Rates".


            Each Rate has a different speed, condition, and Variable(s) it affects.


            For example, I could create a Rate:


            Variable 1, 2


            Speed: 2 per 60 frames


            Condition: Switch 2 is ON


            And in the background of your game, Variables 1 and 2 will be incremented by 2 every 60 frames when Switch 2 is ON.


    How to Use It:


            First, install the Plugin.


            I would recommend watching the video above to visually get an idea of what is required to set everything up, but here is a simple text explanation:


            When you go into the Parameters of the Plugin, you'll find groups of Parameters separated by "Rate #".


            This represents the different Rates you can customize.


            Here is an example of a list of Parameters:


    === Rate 1 ===
    Rate 1 Variables
    Rate 1 Speed
    Rate 1 Condition
    Rate 1 Enabled?




    Rate # Variables


            Insert a list of Variable IDs separated by commas.


            These will be the Variables affected by this Rate.


            Example:


            4, 6, 7


    Rate # Speed


            Insert a Speed using the format:


    X per Y frames


            This will set the speed of the rate.


            X = the value that is added to the Variables


            Y = the frequency (in frames) that X will be added to the Variables


            Example:


            -3 per 3600 frames


    Rate # Condition


            Insert a JavaScript condition or leave blank to use default.


            If the JavaScript condition is true, then the Rate will be active.


            Example:


            $gamePlayer.isDashing()


    Rate # Enabled?


            Set this to 'true' or 'false'.


            This determines whether the game will start off with this Rate enabled.


            If set to 'false', the Rate can be enabled later using the Plugin Command:


    VariableRate # Enable


    (and of course, replace # with the Rate number)


    A Rate will not be active unless it is enabled and its JavaScript condition is true!


    Final Example:


    === Rate 1 ===
    Rate 1 Variables   4, 6, 7
    Rate 1 Speed       -3 per 3600 frames
    Rate 1 Condition   $gamePlayer.isDashing()
    Rate 1 Enabled     true


            This would create a Rate that makes it so Variables 4, 6, and 7 are decreases by 3 every 3600 frames (1 minute) only when the Player is dashing.


            There is much more in this Plugin that can be done, but I would recommend watching the video or reading the Help file to find complete details.


    Download:


    You can download it from here:


    http://sumrndm.site/variable-rates/


    Terms of Use:


    - This Plugin may be used in free or commercial games.


    - You are allowed to edit.


    - If used in any publicly released game, then "SumRndmDde" must be given credited.


    - Would be awesome if you link my YouTube also.


    Questions and Answers:


            All questions that are asked and answered will be placed in here.


            No one has asked any thing yet though. T-T


    Changelog:


    Version 1.00


             - Took a whole bunch of bytes, mashed them together and created this Plugin.


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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-7-26 03:55 , Processed in 0.063433 second(s), 57 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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