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

[转载发布] HP Barrier Script, Version 1.1 (Updated 10/23/2014)

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

    连续签到: 2 天

    [LV.7]常住居民III

    9068

    主题

    864

    回帖

    6万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 3 天前 | 显示全部楼层 |阅读模式
    Barrier Script, Version 1.1
        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 barrier.


        -If you have any battle engines, you may wish to add this below the battle engine script. The script currently works with the default battle engine and Yanfly's, use with other battle engines at your own risk.

        -To add a barrier, first add a skill which creates a barrier. Then, in the damage field, set it to HP Restore, and enter in the formula to create the barrier. 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.


        If you wish the barrier to only last x turns or until the end of battle, you can link the barrier to a state which when the state leaves, the barrier is removed. Directions for that are in the script header.


        You can heal your barriers with skills or items too! 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.


        Do not ever use <HP Barrier: Restore> and <HP Barrier: Create> in the same note box. I have no idea what will happen if you do that, as the script is not meant to handle that.


        Also, you can 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 cast by that person, etc).


    Demo
        None yet, soon.

    Script


        Version 1.1, released 10.23.2014:


    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 an equip tag and now they are casting really huge barriers!


        A: I have the script set up to where you post the number that is being multiplied, not the percent. So if you want that new sword to make it so that barriers cast by them are 2.5 times as strong as before, enter in 2.5, not 250.


        Q: Why do I keep hearing the canceling sound effect when the barrier is hit? I set it up to use sound effect x instead!


        A: I put in a rescue command to call the cancel effect if your sound effect is not found or loaded properly, which will load Cancel2 from the RTP if your file fails to load (this is to avoid it crashing and killing the game if your file ever gets corrupted). Check and make sure you entered in your file name correctly and that the sound effect is in the proper format.


        Q: Will you convert this to MV?


        A: No. Yanfly beat me to the punch with their excellent absorption barrier script, which has the added advantage of being compatible with all Yanfly scripts. So for that reason I have put the MV conversion of this script on hold, and recommend any MV users use Yanfly's absorption barrier script instead.


    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 the board under Scripts under Development, and anyone else who tested it and didn't post suggestions.


        Edit: Version 1.1 is out now. This adds the ability to have the barrier only block part of the damage taken, and also adds the ability to play an animation when the barrier falls. The animation will attempt to play while the battle still goes on, so it works best with ATB systems.


    Terms of Use


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



    Known Bugs:


        In Yanfly's engine the bar for the HP of the shield is in an odd place after battles. This is due to how Yanfly rearranged the HP/MP bars. At the moment unsure how to fix and make it still work with the default engine too, so if you use Yanfly you may want to purge all barriers after battles end by linking them to a state which is removed at battle end.


        Version 1.1 requires starting a new game, else the game will crash the first time anyone takes damage in a battle.


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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-8-8 12:26 , Processed in 0.082245 second(s), 52 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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