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

[转载发布] Erosion System

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

    连续签到: 2 天

    [LV.7]常住居民III

    7977

    主题

    864

    回帖

    3万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 4 天前 | 显示全部楼层 |阅读模式
    Erosion System
    Version  1.3
    By Magnus0808 || Magnus Rubin Peterson


    Introduction
    This plugin was originally made because of the request by @Misappi to make an erosion system inspired by the erosion system used in Dofus.
    Request thread: (https://forums.rpgmakerweb.com/index.php?threads/erosion-system-like-dofus.104267/)

    Features

    • Lose of Max HP during battles from damage (Erosion Damage)
    • Posibility to regen of HP so you keep the same % of HP compared to Max HP actors had at the end of a battle.
    How to use
    The plugin featues 7 plugin parameters:

    • Natural Erosion Rate

      • This is the base for how much erosion damage a target takes from damage

    • Max Erosion Rate

      • The maximum rate of erosion damage a target can take from damage

    • Min Erosion Rate

      • The minimum rate of erosion damage a target can take from damage

    • Negative HP Regen Erosion

      • Enables the posibility to take erosion damage from negative HP regeneration

    • Can Die From Erosion

      • Enables the posibility of dying from Erosion

    • Stable Health Procent

      • Enable regen of HP so you keep the same % of HP compared to Max HP actors had at the end of a battle.



    • Remove Erosion After Battle

      • If true then erosion will be removed after battles.

    It is also posible to change the natural erosion rate for the individual actor or enemy with the note tag:
                    Code:       
    1. <baseErosion:NEW EROSION RATE>
    2. E.g. <baseErosion:0.3>
    复制代码


    Furthermore it is also posible to change the erosion rate depending on the equipment worn with the following note tag this note tag also works on Actor and Enemy:
                    Code:       
    1. <procentErosion:EROSION RATE CHANGE>
    2. E.g. <procentErosion:0.1> // This will add 0.1 to the Erosion Rate
    3.      <procentErosion:-0.1> // This will minus 0.1 from the Erosion Rate
    复制代码


    You can also use the following note tag on equipment to add permanent erosion while the equipment is worn:
                    Code:       
    1. <flatErosion:PERMANENT EROSION>
    2. E.g. <flatErosion:100> // This will add 100 permanent erosion while the equipment is worn.
    复制代码


    You can also make a skill affect the erosion rate or deal direct erosion damage with the following note tags:
                    Code:       
    1. <procentErosion:EROSION RATE CHANGE>
    2. <flatErosion:EROSION DAMAGE>
    3. E.g. <flatErosion:100> // This will deal 100 erosion damage, decreasing the targets max hp with 100
    复制代码


    It should also be noted that the direct erosion damage is not affected by the min or max erosion rate. Making it posible to deal more erosion damage than normal damage.

    You can also change the erosion rate and the natural erosion rate of specific classe by adding the following note tags:
                    Code:       
    1. <procentErosion:EROSION RATE CHANGE>
    2. <baseErosion:EROSION RATE>
    3. E.g. <procentErosion:0.1> // This will add 0.1 til the erosion rate
    4.       <baseErosion:0.4>     // This will set the natural erosion rate to 40%
    复制代码

    The <baseErosion:x.xxx> tag of the Class have priority over the <baseErosion:x.xxx> of the Actor. This means if both have the tag then only one on the Class will be used.

    Plugin Commands
    The following plugin commands are available:

    • RemoveErosion PARTY_INDEX AMOUNT
    • RemoveErosion all AMOUNT
    • RemoveErosion all (This is the same as when you normally end a battle)


    • ApplyErosion PARTY_INDEX AMOUNT
    • ApplyErosion all AMOUNT
    The PARTY_INDEX represent the position the actor have in the party.
    The AMOUNT represent how much erosion you want to remove/apply. However for
    RemoveErosion you can leave it blank and it will remove all erosion!

    Download
    You can download this plugin from my GitHub:
    https://github.com/magnusrp0808/plugins/blob/master/MRP_ErosionSystem.js

    Terms of use
    TERMS OF USE Copyright (c) 2019 Magnus0808 || Magnus Rubin Peterson || Magnusrp0808

    • You are free to use it in commercial or non commercial RPG Maker MV projects if you credit me unless other is stated.
    • Please do not change the header of the plugin

      • Other than that you are allowed to make edits to the plugin

    • You are NOT allowed to sell the plugin itself even if you edited it.
    Change log
    Version 1.3:

    + Added a parameter for if erosion should be removed after battle.
    + Added a couple of plugin commands.​
    Spoiler: Old entries
    Version 1.2.2:
    + Bug fix (Healing should now no longer remove erosion)​
    Version 1.2.1:
    + Compatibility Fixes (Hopefully removed most potentional compatibility issues)​
    Version 1.2:
    + Made the <flatErosion:xxx> notetag work for Equipment. It adds permanent erosion while the equipment is worn.
    + Made the <baseErosion::x.xxx> and <procentErosion:x.xxx> work for Classes. Classes has priority over Actors this means that if an Actor and its Class both have the <baseErosion:x.xxx> tag the then  the one of the Class  will take effect and not the one of the Actor.​
    Version 1.1:
    + Made a parameter for if you regen health after battle.​
    Version 1.0:
    + First Release​

    Author Notes

    If you have any questions regarding this plugin then feel free to throw me a message.


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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

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

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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