Predicting enemy actions

So I had an idea recently. In most RPGs you'd see around here, enemies will usually execute attacks randomly without the player having any way to know what attack it will be beforehand.

So what if you could find a way for the player to discover what attack, or just what sort of attack (single target, multi-target, etc) the enemy will do, through mind reading, future seeing, or whatever?

that way the the player can prepare for the attack, and follow up accordingly.

I was thinking of giving one of my characters this ability, but I'm afraid that it will make the best option to just spam the ability and not use her for anything else.

So I think that if it is implemented it needs to have some sort of limitation, such as a cooldown, or a resource of some kind.

What do you think? Should the player be able to know the enemy's next attack? How frequently should they be able to do that? what limitations should it have?
Youll need a script that will determine an attack/type of attack a turn ahead of time, and another one that finds a way to brodcast it

No such scripts exist that i know of, and this would take some serious balancing to get right. And mighr even make your game boring because the player coupd easily coast through the game avoiding every skill, and taking away the sense of peril and make strategizing repetitive and predictable
Youll need a script that will determine an attack/type of attack a turn ahead of time, and another one that finds a way to brodcast it
I could also make it so that the attack is determined once the spell is cast, but I don't think it would make much of a difference.

Though I'm not looking for the script for this, at least not yet.

No such scripts exist that i know of, and this would take some serious balancing to get right. And mighr even make your game boring because the player coupd easily coast through the game avoiding every skill, and taking away the sense of peril and make strategizing repetitive and predictable
Yes, that's the reason I wanted to discuss this. At first I felt like this mechanic would be a good idea,but after thinking about it some more, I realized it has a lot of problems.

If you could do it all the time then, then just like you said, it would ruin the suspense and make the combat boring. But if I make it so that you can only do it occasionally, it just feels pointless.

So I'm not sure what to do with this mechanic. I think there might be a good way to use it, but I'm not sure how.

Maybe someone else could figure it out.
Look into Xenoblade chronicals. It has some good examples of how it can be executed. Chuggaaconroy does a lets play of that game
That's what I'm doing in my current battle system, there is an order gauge which also shows what actions will each battler do on their next "turn" so that you can somehow plan accordingly to some extent. It really depends on what you want to achieve by doing that. For me, it's really to make things a bit easier for the player since my battle flow is altered turn based.


Depending on how it's executed it can really make things boring or it can also actually be good for the player... Personally I do think if executed correctly it adds another layer of considerations for the planning of actions for your players. Without it, most players would be like, "always use the most damaging actions!!!", with it there will be times where players be like, "should I use my best attack and risk dying if I don't kill it or heal for now?"


I think what you just need to avoid is that making it in a way that the players can never lose because of that even if they are underleveled or something.
I had a thought about a system centered mostly around big boss fights, where the player's characters could interact with the abilities of others as if they were visible, tangible things, and this would grow through several stages. At first you would just see a cloud of things the enemy could do next floating around them, perhaps with gauges indicating the likelihood of each choice and lines indicating the likely targets among the party (or, more dangerously, the gauges are timers that count down in parallel, and when they hit zero the action goes off; in which case, the enemy would make choices as to actions by allocating points towards the refresh rates of each ability)

The next stage would be, you could see how your proposed action would change the enemy's priorities before committing to it, so you could try to manipulate the enemy into acting the way you wanted. Maybe you could even see into the future to directly see the consequences of things as they are presently progressing - such and such party members survive the next attack, but others get taken out, etc.

The final stage would be that you could actually directly attack the enemy's abilities to seal them temporarily. So you'd have to choose which abilities to seal and which ones to leave open, keeping in mind that any refresh points in the sealed abilities would be re-allocated towards the unsealed ones so the overall attack rate remains constant.
There's multiple viable ways it could be handled. 

Oddball mentioned Xenoblade Chronicles. That game has a "Vision" system where if an enemy is about to use an attack that will kill, heavily injure, or incapacitate a party member, a short scene displaying what will happen ahead of time will automatically trigger, giving you a chance to prevent it.

In Grandia II you can see exactly what action and target each enemy has currently selected whenever you're choosing a target for your own attacks. It's fun and strategic rather than boring, because the game has a spatial-timing element and you're always choosing from multiple possible responses to your situation. A video of what it looks like. (It's a rather easy game, though, for other reasons.) If you're working within a system without that spatial-timing element, you could preserve some of that strategic element by making it so that there's not like a single perfect, obvious response to each enemy action, but rather multiple possible responses and the player is free to choose what they think is the best one. For example, let's say two different enemies are about to use particularly strong attacks two different party members, and the player has to choose whether to defend with those characters and take part of the damage, or to try to kill/incapacitate the enemies before they can do their attacks (and with what characters), or to try to bodyguard some of the damage with a tougher character, etc. 

Other games have order gauges that function like quasi-future sight. The Legend of Heroes: Trails in the Sky has an order gauge and most enemy special move have a charge time that plots on the order gauge, and the move's target(s) or area of effect plot on the map, giving you some time to respond accordingly. So once it's charging you can pretty much guess what special move or kind of special move will come out and when, and you also know that if an enemy is not charging they will either do a regular attack, move on the map, or start charging a special move.

Honestly, it would probably be easier to make the mind-reading/future-reading automatic, something that's always on or turns on automatically when certain conditions are met (e.g., enemy is about to use a super attack, or an attack that hits everyone, etc.), rather than a a selectable command. Because you're right, a player would probably just spam that character's ability--or rarely use it at all. If using the ability resulted in the player finding out 80% of the time that an enemy is going to use a run-of-the-mill attack against some random party member, then the ability isn't particularly useful, yet you'd have to constantly use it to catch any dangerous future actions. In such a situation, you'd almost need the the ability to read minds or see the future multiple turns in advance just to tell whether using it to see one turn in advance would really be worth it. Automating the process would prevent the player from wasting turns.

However, I'd make the mind-reading/future sight a selectable command if you otherwise finely craft your system so that there's specific reasons, enemies, or situations for which the command is particularly useful. How to do so will probably depend a lot on how turns and turn order is handled in your game. If you were using a default turn-based battle engine, obviously the enemy actions would come out on the very turn that you use the mind-reading/future sight command, making the ability practically useless with a simple implementation.

But the command could be made useful even in a default turn-based engine if: 

1) the command somehow allowed you to see multiple turns in advance

2) enemies often use powerful skills that charge for 1+ turns, and using the command while such skills are charging lets you know the skill and/or target(s)

3) enemies have a state or states that persist turn after turn that let you predict how they'll act,and the command lets you read them. E.g., "desperate" state = uses strongest attacks, regardless of costs; "focused" state = focuses on same target each turn; "blitz" state = uses attacks that attack multiple targets; "worried" state = uses defensive skills, etc.. 

NichG's idea also sounds pretty cool. I think it's well worth exploring mechanics where a character doesn't just read but interactively influences enemy actions to perform the best/least worst action among a set of possible outcomes.
I've debated something like this in one of the projects I have on paper, actually. How to implement it is another question entirely, but...I have multiple classes designed around being able to reinforce a party's defense heavily for a single turn, or able to step in and take a  hit meant for another party member. Such abilities would require at least some form of foresight to really be useful, but at the same time I think being able to know every action an enemy intends to take would make things too easy.

That said, I hope this topic keeps going. There's some good discussion here about an often overlooked idea.
I've actually done this before without scripts, but it ended up making combat a bit slow since you'd have the prepare phase and then the attack phase.

That kind of system honestly works better for active battle systems where you can change your skill choice or delay your skill choice.

There is also the old "Boss's eye is now glowing red!" type alerts.

The Sacred Tears TRUE did this by having a prepare phase where it shows you what the enemy is PROBABLY planning (different stats made this more accurate) with a few very powerful attacks being made clear.

The main difference between The Sacred Tears TRUE and what I did was that in my case, a few skills didn't have a prepare phase (a few skills took several turns to prepare) so depending on the actions, you could be on attack phase and enemy could be on prepare phase. This was made more prominent because you could prepare a different skill, guard, or use an item instead of attacking (you'd give up the preparation).
I don't have a ton to add here but just wanted to give a general thumbs-up for the cool ideas everyone's bringing to the table here on such an interesting and poorly-explored topic.

It's not something I've played around with much in the past due to the mechanical complexity of trying to implement it in RPG Maker, but I do have some skills that enable other skills to be used for a few turns, which at least gives the player an idea that a certain strong attack might be coming soon.

One other thing that came to mind - if you use a battle system where characters execute their commands immediately once given (rather than giving a whole party's worth of commands then watching them play out alongside the enemy's), the amount of time you'd need to "look forward" for an enemy would be drastically reduced.  Finding out what an enemy's next action would be in such a system would still be very useful and - depending on the amount of counterplay the game allows for - possibly worth a character's turn.

Original thread: https://forums.rpgmakerweb.com/threads/predicting-enemy-actions.46017/