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

[转载发布] CP's Battle Engine

[复制链接]
累计送礼:
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-3 12:57:59 | 显示全部楼层 |阅读模式
    CP's Battle Engine v1.2b

    Created by Neon Black


    What is it?
    This is my own custom battle engine. I wanted to change how battles looked and one thing led to another and the next thing I knew I had an entire battle system. This battle system has 5 different view modes (which you can actually switch in game!) as well as several little tweaks and bugfixes (and by this I mean a few pretty major tweaks). I'm also going to be creating add-ons for this which hopefully will make it fairly simple to use.

    As mentioned, this script has 5 different view types that change how battle are displayed. Here is a list of several of the other changes in no particular order:

    Spoiler

    • Bugfix where monster turns were not calculated correctly. Turn order now works properly.
    • Bugfix where monsters would not target each other properly. They now target with a certain degree of AI.
    • Bugfix where animations set to "screen" would be played several overlayed at once. Now only one will display, but it will affect all monsters.
    • Tweak adding an animation array all animations will display as soon as they are called and complete regardless of other animations playing.
    • Tweak to substitution where party members (actors and enemies) will not cover for attacks from their own party, including heals.
    • Tweak to counter attacks where the affected character will use their default attack skill to counter. If the skill affects a party member, it will always target the user (ie, a heal or buff skill). If the skill targets random enemies, every attack will strike the attacker. If the skill hits the entire enemy party it will only affect the attacker.
    • Some window sizes and locations were changed in certain modes.
    • Added auto-battle, rush, and defend options to the party menu. Auto battle allows each member to select their skills automatically, rush causes all members to use their normal attack on the first enemy (random target and all target skills work normally), and defend just causes all party members to defend.
    • Added party command to the party menu which allows the player to switch an active party member for a reserve party member.
    • Added a system to allow each party member or class to have unique commands. See the next section to learn how to set these up.
    • Added casting animations for items and skills.
    • Changed the help window to allow it to be open during the entire selection sequence. Subsequently added a hash that allows you to set the help text for submenus.
    • Numerous other bugfixes and tweaks.




    How can I use it?
    Place this script above main and below materials. This script has a whole slew of settings to change it's appearance and it's use and to modify quite a few different aspects of battle. Here I will just go over the notebox tags that can be used and will leave the config options to the header.

    Monster Tags

    Spoiler

    • attack[x] - Sets the monster's normal attack animation to animation "x" in the database. If a skill is set to "normal attack" for it's animation, this battle animation is used.
    • attack skill[x] - Sets the monster's default attack skill to skill "x". This is in case the monster gets confused or berserked, etc.
    • defend skill[x] - Sets the monster's default defend skill to skill "x". This is technically useless.




    Actor/Class Tags - Note that actor tags take priority when both are present on an actor

    Spoiler

    • battler[name] - Sets the actor's battler image to file "name" from the Graphics/Battlers folder. This only takes effect in mode 3.
    • attack skill[x] - Sets the actor's attack skill to skill "x". Used when the player selects the attack command, when the character is berserk/confused, or when the player selects the "rush" command.
    • defend skill[x] - Pretty much the same as attack, only with the defend skill.
    • hide mp -and/or- hide tp - Allow the amount of MP or TP a character has to be hidden in battle.




    Monster and Actor/Class Tags

    Spoiler

    • <flying> - Causes the tagged entity's sprite to bob up and down similar to how checking the "flying" option on monsters in RPG Maker 2k3 works.
    • <transparent> - Causes the tagged entity's sprite to become partially transparent similar to how checking the "transparent" option on monster in RPG Maker 2k and 2k3 works.
    • <mirror> - Flips the tagged entity's sprite horizontally.




    Skill Tags

    Spoiler

    • cast anim[x] - Sets the skills casting animation to animation "x". Takes priority over skill set casting animations.




    Weapon Tags

    Spoiler

    • attack skill[x] - Sets the basic attack skill of the actor equipped with the weapon to the skill with ID "x". This takes priority over Class and Actor tags.




    Actor/Class Command Tags:

    SpoilerThese can be set up in the notebox and allow you to modify what command an actor has. You do NOT NEED to set these up in order for actors to have commands as there is a portion of the script where you can set the default commands. This system allows you to set skills as commands that can be used instantly rather than needing to select them from a submenu. To do so, set up the notebox with something like the following pattern:
    <commands>:attack:defend:skillName => 10:item
    arty</commands>

    • <commands>, </commands> - These tags specify the beginning and end points of the complete command list. They are required for custom commands to work on a character or class.
    • :attack - The default attack skill. Will use whatever skill is set to the character's main attack.
    • :defend - The default defend skill. Same as above.
    • :skill - The character's skill submenus. They all get added here in their normal order.
    • Name => 10 - A command skill. You can set up as many of these as you like as long as they follow a similar format. "Name" can be changed to the name you want the command to display. "10" can be changed to the ID of any skill in the database.
    • :item - The item submenu.

    • arty
      - Adds a command that allows the actor to be switched with a reserve member in battle.




    What does it look like?

    SpoilerMode 1 is made to just look like the default battle system.




    Mode 2 displays faces in a window at the bottom of the screen. This uses many of the default windows.




    Mode 3 is the reason I made this battle system. It displays battlers for the characters. This image also shows how the party command menu is moved.




    Mode 4 is like mode 3 but uses the actor faces instead of battlers.




    The actor command window displays over the currently selected actor in modes 3 and 4. It also has a partially transparent menu back. The opacity can be changed in the config.




    The size of the enemy selection is also changed in this mode. It displays up to 3 enemies across and will get taller if there are more enemies.




    The actor selection dialogue, however, goes as high up as it can without covering other windows. Also notice how the the battlers are highlighted in this and the last picture.




    And as seen in this and the last picture, the size of the item and skill selection windows will change based on the number of items. In modes 3 and 4 it will stop at 8, but in modes 1 and 2 it will fill the screen like normally if possible.




    As of version 1.1, view mode 5 has been added. This new view mode replicates the battle system of RPG Makers 2000 and VX. This includes such things as using the bottom window to display battle info and opening skill and item windows in the bottom window.



    A demonstration of quite a few different things.  This shows how the built in simple sideview mode works as well as showing transparent and mirrored sprites.  It also shows how hidden pools (mp/tp) are handled in respect to the default windows.







    What does it work with?
    Well obviously this will not work with other battle systems. I can't say for sure it will or won't work with certain add-ons, though it's most likely it won't work with VISUAL add-ons. Other add-ons should work fine. I do plan to make add-ons for this to support different battle styles and I welcome any compatible add-ons.

    This script is NOT compatible with Tankentai, nor do I plan to make it compatible.

    Current house set compatible scripts:
    SpoilerBattle Pop-ups
    Grade Victory Screen
    Passive Skills
    Scan Enemy
    Scrolling States
    Skill Costs and Requirements



    Other known compatible scripts:
    -None submitted yet!-

    How can I get the script?
    Version 1.2b (base script, 1.14.2013) is available from my pastebin account here.

    I would like to use this code.

    This work is licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported License.
    Permissions beyond the scope of this license may be available at http://cphouseset.wo...d-terms-of-use/.

    Author's Disclaimer:
    I made this script originally because I had liked how battles were displayed in RPG Maker XP and wanted a similar system for Ace. In the end I decided to add a few different visual styles to give the user some customization options. I kept adding things to give more customization as well as upgrading things I felt like Ace could have done better. I think the end result is pretty nicely put together and gives the user a lot more useful options to choose from.

    As mentioned I will be creating add-ons for this script (I plan to add animated battlers, sideview, ATB, and charge turn add-ons at least). If you have any battle add-ons that are compatible that you would like me to mention above, feel free to ask. Credits go to Archeia and Penta for the battlers in the mode 3 screenshots. As always, enjoy.


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

    本帖子中包含更多资源

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

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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-8-17 06:15 , Processed in 0.142350 second(s), 56 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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