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

[转载发布] DP3's VXA Code Snippets

[复制链接]
累计送礼:
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-7-31 11:35:25 | 显示全部楼层 |阅读模式
    DP3's VXA Code Snippets


    Version: ???


    Author: DiamondandPlatinum3


    Date: ???


    Planned Future Versions


    • It's pretty much guaranteed
    Description
    These are code snippets I have made over the course of a few months. Figure they may be of use to other people; posting them before I lose track of them in post counts. I know there are a couple I already have.  



    Instructions


    • All Snippets are to be placed in a script slot between Materials and Main
    Scripts
    Always Deal at Least 1HP Damage:

    SpoilerThis script simply makes it so that damage is always at least 1.
    No longer will enemies and yourself deal no damage.



    Battle Menu At Top of Screen:

    SpoilerThis script puts the battle menu at the top of the screen rather than at the bottom where it normally is. It also moves the skill and items box below the battle menu, looks nicer in my opinion.






    Battler Breathing Effect:

    SpoilerThis script adds a breathing effect to battlers.
    This means that enemies will change size when battling in accordance to their breathing.








    Battler Death Hue Transition:

    SpoilerThis script grants enemy battlers with a Target Hue to reach upon death. What this means is that the more you attack and hurt the Battler, the closer their hue colour effect gets to the target.






    Block Areas From View:

    SpoilerThis script simply allows you to input stop points for the camera on maps. ie. if you don’t want to have the map scroll to a certain area on the map because that’s a blank space filled with events or if you just purely don’t wish the player to know that area is there yet, you can use this script to stop the player from seeing it.
    This script only affects the camera, if you don’t want the player to travel into the unseen area, you’ll need to block it off somehow with other things.



    Check if an Actor has Nothing Equipped:

    SpoilerThis script allows you to check if any actor currently has nothing equipped or if any actor currently has no weapons equipped






    Collision Sound:

    SpoilerThis script plays a collision sound when you try walking on to an non-passable space. This is not used if you have ‘through’ checked on your player on the other hand. Collision sound only works for the Player, it does not play for other events if they try to walk into something they shouldn’t.



    Common Event Menu Option:

    SpoilerThis script will allow you to put an option in the menu that will run a common event if selected, it also has the option of being disabled with an event switch.






    Control Escape Ratio:

    SpoilerThis script will allow you to set a constant rate at which you can escape from battle, as well as setting an item that will guarantee you can escape.



    Delay Time Transitions:

    SpoilerThis script will allow you to delay when the title screen and battle scene will enter their phase. Its only usefulness is for sound purposes



    Determine if "in-battle":

    SpoilerThis script will allow you to set an event switch that will turn on if you are in battle, and turn off if you are not.
    It’s useful for changing what an item does if battling compared to if not battling.



    Don't Play Battle BGM on Battle Test:

    SpoilerThis script simply stops Battle BGM from playing when you are battle testing



    Give NPCs Random Positions When Entering a Map:

    SpoilerThis script allows you to set certain NPCs to have random positions when the game is setting up a map, this allows your NPCs to look somewhat less robot like. Whilst this can be done via events, this script also checks tile passability, so your NPCs won’t end up on a roof if they’re not supposed to.
    Included is an event switch that turns off this feature, the purpose of turning off this feature is for cutscenes, wouldn’t want a random NPC to be in your way now would we?


    You may also use Regions to give your NPCs specific tiles they can randomise to.



    Map does not scroll with Player:

    SpoilerThis script stops the map from scrolling with the player. Its only use is to mimic old Zelda style games where the map would scroll when you would change rooms, otherwise staying still.
    To scroll a map you will have to use the Scroll Map event.



    Metronome Skill in Battle:

    SpoilerThis script puts in a skill similar to pokemon’s metronome, in the sense that skills will be chosen at random to be used if this skill is used.






    Outside Event Self-Switch Control:

    SpoilerThis script allows you modify one event’s self-switch from another event. This can save you lots of event switches from being used if done correctly.



    Play BGM on Load Menu:

    SpoilerThis script allows you to play BGM on the Loading menu. When you select ‘Continue’ from the title screen and are taken to the file selection screen, new BGM will play instead of the same title screen music.
    Similar to the original Pokemon Gold, Silver & Crystal.



    Play SE on Critical Hit:

    SpoilerThis script will allow you to play a Sound Effect when any active battler scores a critical hit.



    Remove Vehicle Auto-Change BGM:

    SpoilerThis script will allow you to stop vehicles from changing the bgm that is currently playing via the use of an event switch.



    Run Common Event On Continue:

    SpoilerThis script allows you to run a common event when the player loads a save game.



    Show Damage State Messages:

    SpoilerThis script show messages in battle when you have been dealt damage as a result of a state: such as poison or burn.






    Credit


    • DiamondandPlatinum3
    Thanks
    Author's Notes
    I will be posting more here as I finish them.


    Terms of Use


    You may find my Terms of Use Here


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

    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?立即注册

    x
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-8-17 17:07 , Processed in 0.118656 second(s), 56 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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