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

[转载发布] Bobstah's Custom Stats 1.3.2

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

    连续签到: 2 天

    [LV.7]常住居民III

    7959

    主题

    864

    回帖

    3万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 3 天前 | 显示全部楼层 |阅读模式
    Updated 11/04/2015 12:41 PM ET

    Introduction

    Allows you to set custom number or percentage stats at the Actor, Class, and Enemy level. These stats can be increased and decreased by weapons, armor, states, and items by using the appropriate notetags. They can be accessed inside of damage formulas.

     

    If you use the default status window, these custom stats will not show up. If you desire this behavior, I recommend using JawsUF's StatusMenuCore plugin.

     

    The ability to increase and decrease custom stats automatically upon level up/down will be made available in a future update of my Level Up Bonuses plugin.

     

    Features


    • Set a stat to an actor, class, or enemy, and use that stat in damage formulas just like the standard stats!
    • If a class has a stat and an actor is a member of that class, the actor uses the class' value unless they have one of their own!
    • If a stat hasn't been set on a specific actor/class/enemy, it will default to 0 or if using a percentage stat, 100%.
    • Increase and decrease custom stats by equipping weapons and armor, applying states, and consuming items!
    • Use the Eval feature to make these stats even more dynamic!

    How to Use
    Add the plugin in your game and view the help information. It describes the notetags and all the crazy modifiers you can use. See the examples and neat examples section for more information.

    Notetags

    Actor/Enemy/Class

    <CustomStat: statName=statValue>

    statName - The name you want to reference this stat with.

    statValue - The default value of your stat. Must be a number.

    Options - You can append a percent sign (%) to the end of statValue to have it calculated as a percentage (statValue * 0.01)

     

    Weapon/Armor/State/Item

    <CustomStat: statName+statValue>

    <CustomStat: statName-statValue>

     

    You can also eval the statValue by surrounding your code with $():

    <CustomStat: statName=$(yourCode()  


    <CustomStat: statName+$(yourCode()  


    <CustomStat: statName-$(yourCode()  


     

    You can combine percentage stats and eval, too:

    <CustomStat: statName+$(a.level
    %>

     

    For more information on eval, check the plugin's help documentation.

    Examples

    After setting a custom stat to an actor/enemy, you reference it in damage formulas or other code just like any other stat. Below is a sample damage formula for the a stat named 'sanity':

    100 + a.sanity

     

    Let's say you gave the enemy a stat named 'insanity':

    (100 + a.sanity) - b.insanity

     

    If that stat were a percentage instead of a normal number, you would use it like this:

    (100 * a.sanity) - b.insanity

     

    To have a shield give +10 sanity, use the following notetag on the sword:

    <CustomStat: sanity+10>

     

    To have a state remove 6 sanity, use the following notetag on the state:

    <CustomStat: sanity-6>

     

    To have an item give a permanent boost of 6 to sanity, use this notetag:

    <CustomStat: sanity+6>


    Plugin
    Get it here - File name is CASE SENSITIVE: BOB_CustomStats.js

    Dependencies
    None

    FAQ

    1. How do I use this plugin?

    Read the plugin help and ask any questions here.

    Changelog

    1.3.2 (11/04/2015) - Fixed a major bug that could cause issues when attempting to load a saved game.

    1.3.1 (11/02/2015) - Fixed a major bug that was causing actor-based custom stats to not be evaluated properly upon actor initialization.

    1.3 (11/02/2015) - Added percentage-based stats and the ability to eval a statValue. Read the plugin help for more information.

    1.2.3 (11/02/2015) - Fixed a bug where the built-in help documentation wasn't showing up properly in the plugin manager.

    1.2.2 (11/02/2015) - Fixed a crash bug that was caused by the main custom stat list being undefined. This does not fix the issue of it being undefined under certain circumstances. It will log a warning to the console if encountered.

    1.2.1 (10/31/2015) - Fixed a bug where a custom stat could return garbage (NaN) if the actor had a class that did not have the stat defined.

    1.2 (10/31/2015) - Added addition and subtraction notetags to weapons, armor, and states.

    1.1.2 (10/30/2015) - Fixed a bug where enemy stats wouldn't factor into damage formulas properly.

    1.1.1 (10/30/2015) - Fixed a bug where stats wouldn't save with a save game.

    1.0 (10/30/2015) - Initial release.

    Legal

    Free to use in commercial and non-commercial projects with credit. A free copy of the finished game would be nice, but is not required.

    Credit and Thanks
    - Bobstah 


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

    本帖子中包含更多资源

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

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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-8-1 01:34 , Processed in 0.115593 second(s), 53 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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