[RPG Maker tutorial] Advanced Combat Event system (ACE)

What is the Advanced Combat Event system?
ACE is a system of Common Events that allow you to trigger events at the start of combat, at the end of every turn, at the end of every action, and after battle has ended.

Why the Advanced Combat Event system?
ACE offers a lot of freedom in what you can do within combat, using event commands only.

Why would I use the Advanced Combat Event system when plugins exist that achieve the same thing?
  • ACE does not risk breaking or require updating after an engine update.
  • ACE will likely offer greater customisability over your systems than a plugin with the same base functionality would.
  • Knowledge on how to use ACE can be applied to any version of RPG Maker, past, present and likely future too.
  • Using less plugins lowers the risk of the plugins you are using to cause compatibility issues.
  • Become less reliant on other people to get things done.
  • It's completely free.

How do I learn more about the Advanced Combat Event system?
Check out the link to my Youtube playlist with guides on how to set up the system step by step, as well as videos providing example systems and skills within ACE to show some of the things it can offer. The guides are created in RPG Maker MZ, but can be applied to older versions of RPG Maker too.

Youtube playlist:


Table of contents:
  • Setting up ACE
  • Critical Hits
  • Counting Enemies
  • Custom States
  • Charged Attacks
  • Passive Skill: Odd and Even Turn Effects
  • Passive Skill: Hit by Targeted Attacks
  • Passive Skill: Based on Enemies Inflicted With a State
  • Passive Skill: Health Threshold Effect

I've tried to keep the videos as brief as possible to make them easy to watch. This written tutorial will provide some extra tips and hints, and will assume that you have watched the videos.



SETTING UP ACE
Spoiler: Video

The first video covers setting up the base of the system. This base will allow you to trigger events at the start of combat, at the end of every turn, at the end of every action, and after battle has ended.
Important to note:
  • Every troops page must include the 2 pages that run at the start of battle, and at the end of every turn, with links to their respective Common Events. Troops without these pages will make your eventing not work in those encounters.
  • All skills, both of player and enemy must link either directly or indirectly to the Common Event 'Battle Action'. An indirect link is when you link to 'Battle Action' within another Common Event that is linked with Skill. This is done with Skills that require their own Common Event to trigger specific effects unique to that Skill only. Do not link a Skill to 2 different Common Events in its effects tab.
  • Think about whether your effects should trigger at the end of a turn, or after an action. If it can wait until the end of the turn, without potentially messing up a gameplay effect, then always run it at the end of the turn. Only effects that require constant checks or updates should be placed under the 'Battle Actions' Common Event.
  • 'Battle Start' should cover everything that needs to be set up before any actions are taken in battle, or only need to be set up once.
  • If an effect, setting, switch or variable requires a reset between battles, it is generally best to do so in 'Battle End', rather than 'Battle Start'.
If you've followed the steps as shown in the video correctly, then congrats. You are now ready to use ACE to its full potential. Everything past this point in the tutorial is optional content.



CRITICAL HITS
Spoiler: Video

This video shows how to create your own critical hits, using ACE, allowing for more control over when and how they should occur in combat. The term 'critical hit' should be used lightly here, as the method can be used for any skill with a chance to trigger extra effects on a turn by turn basis.
Important to note:
  • Make sure to reroll the variable that decides whether or not a character will perform a critical hit when applying the system to multiple characters between the conditional branches for each character, otherwise everyone will perform critical hits on the same turn.
  • It is generally advised to switch critical hit versions of skills back to their normal versions at the end of combat.
  • This system allows you to use different animations when a critical hit is performed!



COUNTING ENEMIES
Spoiler: Video

This video shows how to count the number of alive enemies in combat at any given moment, using ACE, and also how to create a skill that deals damage based on that number. While counting enemies on its own might not seem very useful, it can be used as a condition to trigger certain events, skill effects or AI behaviour. Counting enemies should always be done via the 'Battle Action' Common Event.



CUSTOM STATES
Spoiler: Video

This videos shows how to create custom evented states, using ACE, allowing for more control over the effects and duration of states in combat. Going this route will give you a lot more control over states, but it can be fairly time consuming, depending on the total number of custom states you're going to want to work with for your game, as you'll need to create checks for every playable character and all 8 enemies.
For custom DoT states, it can be a good idea to create multiple versions of the same one, especially when working with flat numbers for them (a version for playable characters, one for normal enemies, one for mini-bosses and one for bosses). Manually apply a special state on mini-bosses and bosses to use as an identification tool.
Using custom states also allows you to play an animation for when DoT is triggered!



CHARGED ATTACKS
Spoiler: Video

This video shows how to create a charged attack that requires a turn to charge, and then unlocks a powerful attack on the next turn, using ACE. This is a variation on the custom critical system, but it's triggered by skill use, rather than by chance, making it less of a hassle to create for.
Important to note:
  • If following the example in the guide, make sure to set the MP of the charged attack to 0, otherwise you might soft lock your game if the character does not meet the MP requirement (or alternatively, implement a system that cancels the charged skill and reverts the character's status back to normal, if MP is below your Skill's requirement).
  • If following the example in the guide, you'll want to make sure to seal all of your character's possible to use skills, otherwise they will retain their charged status without needing to use their charged attack (or alternatively, implement a system that cancels the charged skill and reverts the character's status back to normal, if another skill was used instead in the following turn).



PASSIVE SKILL: ODD AND EVEN TURN EFFECTS
Spoiler: Video

This video shows how to create a passive skill that grants a different buff, depending on whether it is an odd or even turn, using ACE. This is a very simple effect that is hard to mess up. If you have more abilities with similar effects, it might be worth using a universal turn Switch, rather than create a new one for each new passive that uses it. In that case, you would place the conditional branch for the Switch on the top, with character passive skill checks and management under it, in the 'Battle Turn' Common Event.



PASSIVE SKILL: HIT BY TARGETED ATTACKS
Spoiler: Video

This video shows how to create a passive skill that heals the user whenever they are struck by a targeted enemy attack, using ACE. Important things to remember are to have every targeted enemy attack inflict the 'Targeted Attack' state, otherwise the effect will just not trigger on those attacks. Also to remove the state at the end of 'Battle Action', otherwise the effect will continue to trigger with every action taken in battle.



PASSIVE SKILL: BASED ON ENEMIES INFLICTED WITH A STATE
Spoiler: Video

This video shows how to create a passive skill that restores the user's MP at the end of each turn, for each enemy inflicted with a specific State, using ACE. Again, a very easy effect to accomplish, at least when sticking to the basics. If wanting to make the effect take multiple different States into account, counts must be made for each individual State for all 8 enemies. It's not exactly difficult, but it might be a tedious process, depending on how many States you want the effect to work for.
Always reset your counter at the start of the count.



PASSIVE SKILL: HEALTH THRESHOLD EFFECT
Spoiler: Video

This video shows how to create a passive skill that raises a character's defences only while their HP is below 50%, using ACE. For linking to the passive's event, it's very important to place the link below any other effects you're running that may change the character's HP (or whatever your passive's effect is being based on).



More video examples of skills and systems to come soon!
May also be willing to take up requests for skill ideas.
Really cool stuff! 👍 I love seeing creativity like this with the engine! I just spent months hacking my way through ruby script to get my battle system working correctly for my specific game and you've managed to recreate a good chunk of what I accomplished with nothing but events! Brings me back to some of my old event systems I created back in the day before I became so reliant on scripts to pull me through.

I haven't had the chance to watch the series in its entirety but I definitely will! Great work on this!
I do have a question about the HP Threshold section. I am using RPG Maker MZ by the way. Anyway, I want to make a passive skill that activates when the user has 75% or more HP.
I do have a question about the HP Threshold section. I am using RPG Maker MZ by the way. Anyway, I want to make a passive skill that activates when the user has 75% or more HP.

So what's the question? The video already shows how to do it, just alter the numbers to suit your effect.
So what's the question? The video already shows how to do it, just alter the numbers to suit your effect.
I adjusted how much it divides (by 4) and it works.
However, when I tried to change the sign to something that isn't "less than" it crashes.
I thought I would flip when the state is applied. So when the HP was below 75% it was supposed to remove it and the state was supposed to apply when the HP was 75% or higher. I took a screenshot of my common event.
I adjusted how much it divides (by 4) and it works.
However, when I tried to change the sign to something that isn't "less than" it crashes.

A crash shouldn't be caused by a simple event. Something else is wrong there, and it's not the event.

The event itself looks fine in the screenshot. So, where does it go wrong?
A crash shouldn't be caused by a simple event. Something else is wrong there, and it's not the event.

The event itself looks fine in the screenshot. So, where does it go wrong?
It's once you get party members that it crashes. I think it is conflicting with Visustella's Skill and State Core. Here's what the code looks like if that will help .
I don't deal with plugins. Disable it and try again to see if it works.
I don't deal with plugins. Disable it and try again to see if it works.
It works once VisuStella's plugin is disabled. I do still need Visustella's plugin so I will ask around on how to accomplish this effect with that plugin.
Anyway, thank you for your help. This ACE system is quite a useful system I may incorporate it in other ways if I can.
NP, and good luck. I've never used that plugin myself, so I can't help you with that one.
OK so, I have been looking at bth ACE and AI styles, s as an update, still a bit undecided between the two. I kinda like the powerful effects of ACE.
OK so, I have been looking at bth ACE and AI styles, s as an update, still a bit undecided between the two. I kinda like the powerful effects of ACE.

Hm, what is AI styles?
a VS plugin which may or may not be incompatible with yours - more testing needed
a VS plugin which may or may not be incompatible with yours - more testing needed

As mine uses events only, it should technically be compatible with it, unless that plugin completely alters the flow of combat in a way that it skips certain phases that my system relies on. Let me know if the two work together as it could be useful information for future users.
awesome i really love this.

Original thread: https://forums.rpgmakerweb.com/threads/rpg-maker-tutorial-advanced-combat-event-system-ace.150311/