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

[转载发布] [MV] Change Max TP value plugin release

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

    连续签到: 2 天

    [LV.7]常住居民III

    8005

    主题

    864

    回帖

    3万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 4 天前 | 显示全部楼层 |阅读模式
    LJP_maxTP.js
    Landazar's Java (script) plugin Max TP
    version 1.0.0.2 (Landazar's first plugin ever!!)

    Introduction:
    This simple plugin changes actor's max TP value from constant value 100 to something more

    Terms of Use:
    This plugin is free both in commercial and non-commercial products, no fees, no credits, nothing, it's public, free and open.
    You can:
    - modify it
    - share it
    - use it
    - play with it
    - anything you wish.


    Features:
    - Change actor's max TP from constat 100 to custom variable with extra parameters
    - Increase max TP when actor level's up or in any other key moment in you game

    Screenshot(s):
    Spoiler






    Demo & How to use it:
    Spoiler
    https://www.youtube.com/embed/lnxO33zt3bA





    Script & Download:
    Spoiler                Code:       
    1. /*:
    2. *
    3. * @plugindesc This is the simpliest way to change max TP value for actor
    4. * @author Landazar
    5. *
    6. * @param TP Base Value
    7. * @desc Base value of TP (default 25) you can put any other value
    8. * Negative values are forbidden!
    9. * @default 25
    10. * default: 25
    11. *
    12. * @param ID of parameter variable
    13. * @desc Variable is included to alter max TP
    14. * Negative values are forbidden!
    15. * @default 1
    16. * default: 1
    17. *
    18. * @param Multiplicator value
    19. * @desc Use this to multiply final TP result
    20. * Negative values are forbidden!
    21. * @default 2
    22. * default: 2
    23. *
    24. * @param Reductor value
    25. * @desc Use this to lower TP if you think you get to high value
    26. * Negative values are forbidden! Allowed values: from 1 to 10
    27. * @default 4
    28. * default: 4
    29. * @help This plugin can alter maxTP value of your actor to any desired value.
    30. * To alter max TP value by game progression you must define a variable
    31. * wich will alter TP, then in parameters put it ID to get formula working
    32. * e.g your var you want use is: '#0005: MaxTPalter', so in parameter you type 5
    33. * rest numbers is you desire, however
    34. * I wouldn't recommend huge numbers ( > 10000 )
    35. * view how to use it --> https://youtu.be/lnxO33zt3bA
    36. *
    37. * WARNING! Any attempt to use negative values will result
    38. * automaticly converting them to positive values!
    39. *
    40. * WARNING!! Any attempt to use strings in plugin parameters
    41. * will result setting default parameters inside funtion's code!
    42. */
    43. (function() {
    44.     Game_BattlerBase.prototype.maxTp = function() {
    45.    
    46.         /* Build Variables and setup const values */
    47.       
    48.             const DEFAULT_BASE             = 25;
    49.             const DEFAULT_MULTIPLY         = 2;
    50.             const PI                     = 3.14;
    51.       
    52.             /* Math.abs will convert negative values to positive values */
    53.       
    54.             var params                    = PluginManager.parameters('LJP_maxTP');
    55.             var BaseVal                    = Number(Math.abs(params['TP Base Value']));
    56.             var Multiplier                = Number(Math.abs(params['Multiplicator value']));
    57.             var Reductor                = Number(Math.abs(params['Reductor value']));
    58.             var vLvID                    = Number(Math.abs(params['ID of parameter variable']));
    59.             var exVar                    = $gameVariables.value(vLvID);
    60.       
    61.         /* End of Vars */
    62.    
    63.         /* Protect formula from string values (if any string found, set default number value */
    64.    
    65.         if ( isNaN(BaseVal) )                                                { BaseVal = DEFAULT_BASE; }
    66.         if ( isNaN( Multiplier ) )                                            { Multiplier = DEFAULT_MULTIPLY; }
    67.         if ( isNaN( Reductor ) || (Reductor <= 0) || (Reductor > 10) )        { Reductor = DEFAULT_MULTIPLY * 2; }
    68.    
    69.    
    70.     return Math.ceil( (BaseVal + ( exVar * Multiplier ) + ( ( BaseVal / 2) * (exVar * PI) ) * PI) / Reductor );
    71.     };
    72. })();
    复制代码






    Direct download (pastebin) (after download rename file to LJP_maxTP.js)

    F.A.Q:
    - So far none.

    Thanks:
    - @caethyril
    - @Aloe Guvner

    Author notes:
    - This is first plugin ever wrote by me
    - Updates? Maybe.

    Changelog:
    1.0.0.2
    - Bugfix to string parameters (strings are no longer allowed)
    - Bugfix to negative numbers (values below 0 are automaticly converted to positive values)
    - Bugfix to zero values will be set to their defaults.
    - Added new parameter - reductor - reduce MaxTP if you think it is too big
    - Added link to Youtube video

    1.0.0.1 - First Release



    本贴来自国际rpgmaker官方论坛作者:Landazar处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/mv-change-max-tp-value-plugin-release.95497/

    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?立即注册

    x
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-8-1 09:35 , Processed in 0.111778 second(s), 53 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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