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

[转载发布] Equipment Variables

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

    连续签到: 2 天

    [LV.7]常住居民III

    7976

    主题

    864

    回帖

    3万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 4 天前 | 显示全部楼层 |阅读模式
    Equipment Variables v1.03


    LadyBaskerville



    Introduction
    By default, equipment can change an actor's parameters like MHP, ATK and MDF, and assign a wide range of traits to the actor that has equipped it. However, what equipment cannot do, is to change variables based on which actor - if any - has equipped it. If, for example, you are using Yanfly's Actor Variables plugin to give your actors a set of special "parameters", the only way to make equipment influence these variables is to constantly check the actors' equipment - which comes with another set of problems.

    This plugin simply lets you specify a variable, a value and an actor in the note box of any piece of equipment, and takes care of the rest.

    Features
    - For any piece of equipment, you can specify which variable you want to increase by how much if a certain actor has equipped it. When the actor equips the item, the variable will increase and decrease again when the actor deequips it.

    How to use
    Use a notetag of the format
                    Code:       
    1. <Add to Variable: variableId, value, actorId>
    复制代码

    on the note box of a piece of equipment (weapon or armor).

    variableId: The ID of the variable you want to change
    value: The value you want to add to the variable. Use a negative value if you want to decrease the variable.
    actorId: The ID of the actor that has to equip the item for the change to take place. If it doesn't matter which actor has the item equipped, use 0.

    You can put as many notetags underneath each other as you want.

    Examples
                    Code:       
    1. <Add to Variable: 11, 10, 1>
    2. <Add to Variable: 21, 10, 2>
    3. <Add to Variable: 31, 10, 3>
    4. <Add to Variable: 41, 10, 4>
    复制代码


    If actor #1 has this equipped, increase variable #11 by 10, but if actor #2 / #3 / #4 has this equipped, add 10 to variable #21 / #31 / #41, respectively.

                    Code:       
    1. <Add to Variable: 35, 50, 0>
    复制代码

    If any actor has this equipped, increase variable #35 by 50.

    Plugin
    Download it here: LB_EquipVariables.js

    Demo
    None yet, but if you would like one, let me know  


    Credit
    - LadyBaskerville

    Terms of Use
    - You may use this plugin in both non-commercial and commercial projects.
    - You may edit this plugin and redistribute your edits, but do not claim you wrote the original code.
    - You may redistribute this plugin elsewhere. In that case, please link back to this plugin thread if possible.

    Author's notes
    As far as I tested it, this plugin is compatible with Yanfly's Equip Core. If you want to use both plugins, place this plugin somewhere below Yanfly's in the plugin list.
    The same applies to HIME_EquipSlotsCore: as far as I tested it, it should be compatible (as of version 1.03) as long as it is placed below Hime's plugin.

    If you find any issues with this plugin, please make sure that you have started a new game after installing the plugin and not loaded the game from a savefile. If that doesn't fix the problem, feel free to leave a bug report in this topic.


    Changelog
    Version 1.03
    - Added compatability with HIME_EquipSlotsCore.
    Version 1.02
    - Fixed bugs with Change Class, Change Weapon/Armor and Seal Slot.
    Version 1.01
    - Added support for negative values.
    - Fixed a bug that kept variables from being reset upon deequipping.


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

    本帖子中包含更多资源

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

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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-8-1 08:33 , Processed in 0.083770 second(s), 52 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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