How to make this?

I’m making a game. It’s about a Necromancer freeing the undead from another necromancers evil grasp.


Does anyone know hoe I could make an enemy start of with some buffs, and have my hero be capable of casting debuffing spells? I have a system thought out about removing that evil magic, so to spare the enemy and have them join your gang.


But I have NO IDEA how to code this, nor how to not make it to similar to undertale although I've had this idea for like 2 years now.  I have RPG maker VX ACE.


So in short: how do I make an battle into more of a puzzle?


(this is the right place to post this right?, i just made an account to ask it here.)
This is the place for database and event problems that don't require scripts.


And while your problem could be done by scripts, I think you should use the troop events instead.


If you make a troop event that is run on turn zero only, it will have it's effects done before battlestart - and that can include giving states to actors or enemies.


Just define whatevery you want available at battlestart in that troop event.
Like Andar said, you should use the troop events (Base Troop Events is a good script to place over ALL enemies), and give the enemies states on turn 0, then have the rest of the battle check to see if the enemy has all of its buffs. If not, then have the enemy be pacified. You could make a skill that makes an enemy leave the battle if they have a certain state and have that be added whenever the target is ridden of all the start-battle buffs. That way, the player would know that he turned it to his side rather than simply killing it. You could also make battles inescapable (but obviously do away with random battles if that's the case). In order to check if the player spared them or killed them, you could have the troop event check to see if the enemies ever get the Death state and not award them the followers. This is assuming you have a variable dedicated to how many you recruit. For scripted events and boss battles, you could also have that set a switch on that changes the rest of the event.


One thing that could streamline this a little more is to use Yanfly's Battle Commands, which would allow you to make buttons appear in the battle scene that will execute a skill, such as one used for pacifying the target. As for the debuffs, all you have to do is give the player skills that have the effect of Remove State and set it to target some number of foes. On use, any targeted foe that has that state will have it removed. I'm doing this in my RPG for a whole class of spells, one of which removes almost all states from a person except passive ones. That's another useful script: Passive States. I don't know if Yanfly or Hime made it, but I use that.
Please try and use more descriptive thread titles in the future, adding some keywords to give us an idea what you're trying to achieve, before we even open the thread.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-this.57151/