I don't mean literally but I'd like to have something like this:
You can choose a strong attack. a quick attack. a parry, a spell or a guard. The enemy also chooses from one of those. Then the game compares and does something like:
Strong attack beats quick attack
quick attack beats parry
parry beats strong attack
Guard lowers damage as usual
Spells work as normal.
If you both either a strong or a quick attack they cancel each other out.
So, I figure the easiest way to do this would be something like having the attack command call a common event. I'm using Yanfly's battle engine core so I think that'll help with this.
From there I think it'd be simple to set up a choice menu. But this is as far as I've gotten.
1) How do I have the enemy's choice reflected in the common event? I figure the enemy has to choose their attack then it'd be some conditionals that check that against the player's attack. I could do a random number then set the enemies attack based on that but I don't want their attacks to be totally random. I want to have priorities so, for example, maybe a bandit uses Quick Attack more than other stuff so the player has a chance to use strategy against the enemy. So how do I check what action the enemy has chosen and use it in a conditional? I figure there must be a script for it but I don't know what it is.
2) How do I "set" the player's attack based on the conditional choice? If they choose "strong attack" how do I translate that into "the player is using the strong attack skill." There is the force action skill so I'm thinking maybe I use that and set it to last target?
This is my first game so I apologize if I'm missing something simple.
You can choose a strong attack. a quick attack. a parry, a spell or a guard. The enemy also chooses from one of those. Then the game compares and does something like:
Strong attack beats quick attack
quick attack beats parry
parry beats strong attack
Guard lowers damage as usual
Spells work as normal.
If you both either a strong or a quick attack they cancel each other out.
So, I figure the easiest way to do this would be something like having the attack command call a common event. I'm using Yanfly's battle engine core so I think that'll help with this.
From there I think it'd be simple to set up a choice menu. But this is as far as I've gotten.
1) How do I have the enemy's choice reflected in the common event? I figure the enemy has to choose their attack then it'd be some conditionals that check that against the player's attack. I could do a random number then set the enemies attack based on that but I don't want their attacks to be totally random. I want to have priorities so, for example, maybe a bandit uses Quick Attack more than other stuff so the player has a chance to use strategy against the enemy. So how do I check what action the enemy has chosen and use it in a conditional? I figure there must be a script for it but I don't know what it is.
2) How do I "set" the player's attack based on the conditional choice? If they choose "strong attack" how do I translate that into "the player is using the strong attack skill." There is the force action skill so I'm thinking maybe I use that and set it to last target?
This is my first game so I apologize if I'm missing something simple.