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

[转载发布] RTBS - Real Time Battle System

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

    连续签到: 2 天

    [LV.7]常住居民III

    7959

    主题

    864

    回帖

    3万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 4 天前 | 显示全部楼层 |阅读模式
    I've been working on a game for the last few weeks and wanted a realtime battle system. The Chrono engine didn't provide what I wanted and it wasn't exactly easy to set up.

    So I figured why not make my own?

    Features
    - Attack animations
    - Weapons can deal more damage
    - Ranged weapons (they are armors though, so you can't use armor with this plugin)
    - Ammo for ranged weapons and durability for weapons
    - Enemies
    - NPCs that can battle enemies
    - Enemy pathfinding using flow maps
    - Some more I'm probably forgetting right now


    Setting up the plugin(s)
    This is the first time I'm writing this down, so forgive me if I forget anything.

    Download the plugins and arrange them in the right order.
    You can download the plugins here (press the green code button > download zip).

    Then add them to your project in this order:
    - JOMY_Core
    - JOMY_PathfindCore
    - SHAZ_SmartPathfinding (this requirement will be removed in the future)
    - JOMY_Stamina (optional; adds dashing stamina)
    - JOMY_eventDetection
    - JOMY_inputManager
    - JOMY_keyboard
    - JOMY_renderCore
    - JOMY_RTBS_Core
    - JOMY_RTBS_animation
    - JOMY_RTBS_bulletAttack
    - JOMY_RTBS_weapons
    - JOMY_RTBS_enemyPathfind
    - JOMY_RTBS_NPCFighters
    - JOMY_RTBS_HealthBar
    - JOMY_RTBS_ActorHud (optional; display actor hud with stamina, health, equipped weapons)

    Setting up a map
    Add a new event somewhere, don't forget to enable "through" in the options of the event. Add a note with <RTBS-setup>. You can use this event for setting up other things as well, the RTBS plugin just requires it to be present.

    Adding an enemy
    - Add a new event
    - In the note of this event, add <RTBS-enemy>.
    - Now you can customize it by adding comments!
    Example event:


    Everything below the == Sound == comment isn't important for RTBS.

    Let's go over the comments:
    - Attack and Health are pretty self-explanatory.
    - Speed is how long an enemy waits before attacking again (in milliseconds)
    - AttackAnimationId is the animation id that will be played when an enemy attacks (you might want to scale down the default animations if you'll be using that)
    - PathfindRadius is the radius in which an enemy will check for a player or a battler
    - WanderRadius is the radius in which an enemy will wander from its current position. The enemy will stay stationary (except when it spots a player) if this is not set. This is here because the default RMMV "random" movement is not compatible with pathfinding
    - WanderTime is the time between choosing a different spot to wander to
    - HPBar set this to shown if you want a health bar to appear above an enemy when it is attacked

    Now, add a new event page with self-switch A. This is event page will be called when the enemy dies. So for example, you could fade out the enemy's body:



    (ofcourse you'd want to use another self switch to go out of this event page once the fading is done.)

    Adding an NPC Battler
    You can have events that will attack enemies.
    Add <RTBS-battler> to the event's note.


    Note explanation is the same as for an enemy.

    Adding weapons
    Add a new weapon in the database.
    Change its attack. This will be the weapon's attack.

    For the animation, choose an animation. If you chose for example animation 1, this will be the animation when looking up, animation id 2 will be used for attacks looking down, 3 is left and 4 is right.
    Add RTBS-durability: <number> and RTBS-speed: <number> to change the attack speed and durability of this melee weapon.

    To add a ranged weapon, rename the second equipment type to Ranged Weapon and in the terms, change armor to Ranged Weapon.
    Now, in armor, create a new ranged weapon. Change its attack. And you can add any of the following notes:
    - <RTBS-ranged-alerts>: if this is present, the ranged weapon will alert nearby enemies
    - RTBS-ranged-ammo: <number>: the item id of the ranged weapon's ammo. This means that the weapon will require the item to be present to shoot and will use up ammo when shooting
    - RTBS-ranged-cooldown: <number>: the amount of time before the player can shoot again after firing a shot.


    And I think that covers all of it.
    Feels great to finally write down a reference for other people that are interested.

    If you want a companion for the player, check out my companion plugin.


    If there is anything that's unclear, feel free to leave a comment, I'll be glad to assist you.

    I'll probably make a downloadable demo one day and upload a demo video.

    Do note that the plugins are still under development, but most of the plugin is already quite solid. So new features might be added in the future, so keep an eye out.

    License: use if for whatever you want, just give credit. You are allowed to edit the files, as long as you state this.


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

    本帖子中包含更多资源

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

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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-8-1 06:36 , Processed in 0.117997 second(s), 57 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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