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

[转载发布] Barrier Script Version 1.0 (Finished)

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

    连续签到: 2 天

    [LV.7]常住居民III

    9071

    主题

    864

    回帖

    6万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 2026-8-2 10:05:01 | 显示全部楼层 |阅读模式
    Barrier Script, Version 1.0 (Completed)
    by bgillisp

    Introduction
    This script allows you to create a state that will add a barrier to a character. All attacks to the character will hit the barrier instead of their HP, until the barrier falls. Also, barriers can fall due to time running out and will be auto-removed at that point.

    Features
    Adds a barrier which can be used to protect characters until the barrier falls.

    How to Use
    -Add the script in the materials section, but below main

    -Start a new game to use! If you don't, some of the variables will not exist, and it WILL crash when you add the state.

    -If you have any battle engines, you may wish to add this below the battle engine script.
    -To add a barrier, first add the state to the skill that adds the barrier. Then in the notes section of the skill, add a notetag to either make the barrier a static barrier (fixed HP), or based on the caster's MAT.

    Example:

    <HP Barrier: 100> will make a 100 HP barrier

    <HP Barrier MAT: 2.50> will make a barrier that has HP equal to 2.5 * the caster's MAT.

    You can now heal your barriers with skills or items! To do this, set the item or skill to be hp restore, and use the damage formula box to set it up. Then, add the notetag <HP Barrier: Restore> in the notes box to tell it to apply this to a barrier, and not an actor or enemy.

    Also, you can now set a barrier's max HP to block with the notetag: <HP Barrier MAX: x>, where x is the highest HP you ever want that barrier to have.

    Finally, you can make it so that equipment enhances or weakens your barriers, and actors and enemies can have stronger or weaker barriers than the norm. To do this, add the notetag <HP Barrier Modify: x>, where x is the number you want multiplied to the barrier (use 2 to double all barriers, 0.5 to half all barriers, 0 to make no barriers work, etc). Be advised at the moment this only affects barriers cast *on* the wearer, not cast by the wearer. Currently investigating how to fix this.

    If you are using version 0.96b onwards, read the directions in the header of the script, as you now have to use skills/items, and not states. Short version, set up the skill which creates the barrier first, fill in the damage box with the formula which creates the barrier, and set it to HP Restore. Then, add the notetag <HP Barrier: Create>  in the notebox of the skill or item which creates the barrier. Once you do this,

    the barrier will last until it runs out of HP. More details on how to do things like make the barrier last x turns or only until a battle ends are in the script directions.

    Demo
    A short one is available here with the script: https://www.mediafir...vvmgdw426re527a

    Script

    The script without the demo is available here, version 0.96. This version uses states for the barriers http://pastebin.com/03HRqB0Z

    For version 0.96b onwards of this script (it says 0.96a in the pastebin, will change that next upload) using skills/items for the barriers: http://pastebin.com/5T5ZKcSd

    FAQ

    Q: I add the notetag and it didn't work!
    A: Spacing is important. Did you remember the space between the : and the number? Also I think it is case-sensitive, so make sure to use caps for HP.

    Q: I added a barrier and it was ridiculously huge!

    A: I have the script set up to where you post the number that is being multiplied, not the percent. So if you want it to be 250% of MAT, you pass 2.5. Passing 250% will result in a really high number being multiplied and near invincible enemies.
     

    Q: This script does not work with script xxxx.

    A: I can *try* to add a fix. If you wish me to try it, please post a link to a demo with the conflicting script and my script included, and I'll do what I can between my project and work schedules. However, work has gotten really busy and will be until December, so fixes might be a couple weeks to implement.  

    Q: I would like to see feature  yyyy added.

    A: Post said feature below and I'll see what I can do.
     

    Author's Notes
    This is now version 1.0! I would like to thank spaceman5 for the idea (and testing), and Zevia, Supernurse, and Ryidamist for the bug catches and posts on here, and anyone else who tested it and didn't post suggestions.

    Terms of Use

    Free for use in commercial and non-commercial games with credit given.

    Mods, if you want to move this to the completed scripts forum since it is considered completed now, feel free.


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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-8-17 12:43 , Processed in 0.113978 second(s), 52 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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