设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
搜索附件  
同能RPG制作大师 › 附件中心 › 同能RM技术讨论区 › RPG Maker MV 讨论区 › Damage Core v1.1: APHO_DamageCore.js

Damage Core v1.1: APHO_DamageCore.js

 

Damage Core v1.1:
Introduction
Allows for more control over damage and stuff.

Features

  • Play a sound effect when dealing 0 damage, or healing for 0 hp. Pitch variances may also be set for the sounds.
  • Introduces adaptive & piercing damage, as well as countermeasures to them.
  • Allows attacks to ignore guarding.
  • Allows for forcing min/max variance, or no variance.
How to use
Sound effects are defined in the plugin parameters.
The following notetags are available:
Skills, Items, Actors, Classes, Enemies, & States notetags:Calculates damage using higher of target's physical or magical damage rate.
For Actors, Classes, Enemies, or States, causes all of user's attacks and skills to become adaptive.
Evaluates code to determine if the attack should be adaptive.
Must return either true (adaptive) or false (not adaptive).
You may use 'a' for the attacker, 'b' for the defender, and 'item' for the skill/item Object.
,,Ignores a percentage of target's damage reduction. x must be a value between 0 and 1.
'piercing' applies to both PDR and MDR, while 'ppiercing' and 'mpiercing' apply only to PDR and MDR respectively.
For Actors, Classes, Enemies, or States, causes all of user's attacks and skills to have x piercing, overriding any skill or item notetags.
Notetag priority from highest to lowest is as follows:
States, Classes (for actors), Enemies/Actors

EXAMPLEIf a physical skill with this notetag is used against a target with 80% Physical Damage Rate, the calculation is as follows:
Original damage reduction = 100% - 80% = 20%
0.4 / 40% of the damage reduction is ignored.
Target still has 20% * (1 - 0.4) = 12% damage reduction.
Final Physical Damage Rate = 100% - 12% = 88%
Evaluates code to determine piercing. Must return a value between 0 and 1.
You may also usefor physical piercing, orfor magical piercing.
You may use 'a' for the attacker, 'b' for the defender, and 'item' for the skill/item Object.
Values below 0 are treated as 0.

EXAMPLEThis would give 1% magical piercing per AGI the user has more than the target.
If the target has more AGI, piercing will be 0.
Bypasses guard. Damage will be calculated as though target was not guarding.
For Actors, Classes, Enemies, or States, causes all of user's attacks and skills to bypass guard.

Actors, Classes, Enemies, & States notetags:,,Adds x bonus piercing amount to all of the user's attacks and skills.
,,Multiplies user's piercing effects by x.
This is calculated after piercingplus.
No effect if piercing is 0.
Protects the user from adaptive effects.
Damage will be calculated based on attacker's skill's default Hit Type.
,,Protects the user from piercing effects.
Damage will be calculated as though attacker had no piercing.
,The user will always roll the min/max value for skills and items that have variance. If both these notetags are present, the ruling defined in the plugin parameters is applied.
The user will not have any variance for all their skills and items.
If the user has 'forceminvariance' and/or 'forcemaxvariance', the ruling defined in the plugin parameters is applied.

Script
Spoiler: code
                JavaScript:       


Note
This plugin, for the most part, works by overriding default functions when conditions are met. As such, I cannot guarantee full compatibility with plugins that also override the same default functions. In particular, this has limited compatibility with YEP_DamageCore, due to YEP_DamageCore overriding the makeDamgeValue function which this plugin is reliant on.

If you wish to use the adaptive, piercing, and nullguard features of this plugin together with YEP_DamageCore, you can place this plugin below it. This plugin contains checks to attempt to replicate YEP_DamageCore's default damage flow if you have it loaded; however, it may not work as intended if you have changed YEP_DamageCore's default damage steps.

Terms of use

  • Free for commercial and non-commercial use, as long as I get a free copy of the game.
  • Edits allowed for personal use.
  • Do not repost or claim as your own, even if edited.
  • Do not use for training AI models. This includes, but is not limited to, inputting the plugin contents or part thereof into AI models that train on user input.
Version history
v1.1 - 2023/7/20 - Added adaptive eval and piercing eval notetags.
v1.0 - 2023/7/13 - Initial release.

Download link
GitHub


本贴来自国际rpgmaker官方论坛作者:AphoticAmaranth处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/damage-core-v1-1.159283/
简体中文
繁體中文
English(英语)
日本語(日语)
Deutsch(德语)
Русский язык(俄语)
بالعربية(阿拉伯语)
Türkçe(土耳其语)
Português(葡萄牙语)
ภาษาไทย(泰国语)
한어(朝鲜语/韩语)
Français(法语)
关闭

幸运抽奖

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

立即查看

Loading...

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

GMT+8, 2026-10-3 11:34 , Processed in 0.059730 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

返回顶部