じ☆ve冰风 发表于 2026-8-2 08:52:10

Mana Shield

~ Mana Shield  ~​
by Alistair​
 ​
For the latest updates please visit my blog. I won't update this thread anymore.​
Hi again!

I know there are several scripts covering this, but I'm all for diversity.
data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7

The script will allow your weapons, armours and states to have mana shield capability.

New in V1.1:

I removed the shield types and replaced their functions with several notetags. You can now have a mana shield with 20% split, 30% absorb and 50% replenish if you want.

This enables you to have more flexible mana shields and it enables me to add new tags easier.

You may use these notetags:

Spoiler<absorb_damage: x%> or optional <absorb_damage_x: y%>

Will reduce incoming damage by x%.

The optional version will allow you to reduce x (= HP or MP) damage only.

<reduce_damage: x> or optional <reduce_damage_x: y>
Will reduce incoming damage by x.
The optional version will allow you to reduce x (= HP or MP) damage only.

<split_damage: x%>
Will split incoming damage by x% between HP and MP.

<replenish_x: y%>
Will replenish x by y% of the damage.
Replace x with either HP or MP.

<ignore_damage: y%> or optional <ignore_damage_x: y%>

Will ignore (nullify) all the damage with a probability of y%
The optional version will allow you to nullify x (= HP or MP) damage only.



Instructions:

Place this script below most of your other scripts. I mostly only use Yanfly Scripts so there MAY be compatibility issues with other scripts which modify the same methods.

Screenshot:

This shield will absorb 40% of HP damage, split the damage between HP and MP and has a 10% chance of ignoring the damage altogether.





Script:

Get it at my Dropbox.

Changelog:

SpoilerV 1.1

- Completely changed the way mana shields work. You may now use several note tags to grant a shield various effects.

- Transformed Split, Absorb and Replenish into note tags.

- Added two new types: Ignore and Reduce

V 1.0

- First release



Future Versions:

Tell me your ideas and I'll see if I find some time.

Thanks to:

- Yanfly for his scripts from which I've learnt a lot about scripting

Terms of Use:

Direct link to my Terms of Use document: CLICK


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