How can I make an enemy which uses a skill that prepares for another attack on the following turn?

TakumaGao

Veteran
Veteran
Joined
May 22, 2019
Messages
82
Reaction score
21
First Language
English
Primarily Uses
RMVXA
An example:

Dragon uses Breathe Deep. (This does nothing but set up to allow Dragon to use Fire Breath on the next turn, and to warn the player to prepare for an incoming powerful attack.)

Player attacks!

Dragon uses Fire Breath! (The powerful attack in question.)

Basically, I want to be able to lock a move behind the enemy using a different move. One move to prepare, and then the strong attack will be used on the following turn 100% of the time. An example of this would be Pokemon's Solar Beam, and other similar moves.

How do I achieve this?
 

Maliki79

Veteran
Veteran
Joined
Mar 13, 2012
Messages
850
Reaction score
381
First Language
English
Primarily Uses
N/A
Hmmmm....

First, you will want to make a state.
Call it BreathReady or something.
You can put an icon on it if you want.
Second, make the Breathe Deep skill put the state on the user, which would be the dragon.
Last, make the Fire breath skill have a conditional which checks for the BreathReady state AND has a 10 rating.
(It would help if all other attacks have a rating of 7 or lower.)
And the Fire Breath should remove the BreathReady state if it doesn't remove itself after 1 or so turns.
 

TakumaGao

Veteran
Veteran
Joined
May 22, 2019
Messages
82
Reaction score
21
First Language
English
Primarily Uses
RMVXA
Hmmmm....

First, you will want to make a state.
Call it BreathReady or something.
You can put an icon on it if you want.
Second, make the Breathe Deep skill put the state on the user, which would be the dragon.
Last, make the Fire breath skill have a conditional which checks for the BreathReady state AND has a 10 rating.
(It would help if all other attacks have a rating of 7 or lower.)
And the Fire Breath should remove the BreathReady state if it doesn't remove itself after 1 or so turns.

Would that guarantee that the follow-up skill would trigger 100% of the time when the state is enabled?
 

Dobberman

The dog.
Member
Joined
Nov 29, 2017
Messages
13
Reaction score
33
First Language
Portuguese
Primarily Uses
RMMV
Would that guarantee that the follow-up skill would trigger 100% of the time when the state is enabled?

Yep. That part:

Last, make the Fire breath skill have a conditional which checks for the BreathReady state AND has a 10 rating. (It would help if all other attacks have a rating of 7 or lower.)

The enemy won't use a attack with priority lower than 3 from the highest priority attack available.

Amongst the actions set in [Action Patterns], the actions which will be performed during battle will be decided according to the following rules.
  • Those actions which fulfill the conditions will be picked out from the configured actions. No action will occur if there is no action that meets the required condition.
  • Within those actions that meet the conditions, the action with the highest rating and the action with a rating that is within two points of the highest rating will be treated as possible choices.
  • Amongst those possible choices, those actions which have a rating difference of 1 and 2 from the highest rating will have their chance of being chosen being 2/3 and 1/3 of the highest rating. The chance of being chosen will be the same for multiple actions which have the same rating.
Example 1: The action rating is [5] and [5]. The chance for each becomes 50%.
Example 2: The action rating is [6],[5],[4],[3]; [6] will be 50%, [5] will be 33.3% (2/3 of 50%), [4] will be 16.6% (1/3 of 50%). [3] will not be a choice.
Example 3: The action rating is [5],[3] and [3]; [5] is 60%, each [3] is 20% (1/3 of 60%).
  • The action used will be determined using random numbers based on the usage probability of those actions which are candidates.

Soo, if the highest priority attack available was [10], the boss only will use skills with priority [9] and [8]. If there's not any skill with priority [10], [9] and [8] available, he will use the Dragon Breath one.
 

TakumaGao

Veteran
Veteran
Joined
May 22, 2019
Messages
82
Reaction score
21
First Language
English
Primarily Uses
RMVXA
Yep. That part:



The enemy won't use a attack with priority lower than 3 from the highest priority attack available.



Soo, if the highest priority attack available was [10], the boss only will use skills with priority [9] and [8]. If there's not any skill with priority [10], [9] and [8] available, he will use the Dragon Breath one.
Alright, thanks! :)
 

Latest Threads

Latest Profile Posts

What the writer wrote: "The curtain is blue."
The readers: "There must be a hidden meaning behind this, perhaps to convey the character emotions ...".
What the writer has in mind: "The curtain is frickin' blue".
Time to share something!
hmZFwQe.png

I made these a while ago for my game. I took reference from various huts in Africa.
Have a great night! :D
I really need to buy a new mouse. Mine's keeps double-clicking and makes me waste A LOT of time eventing
How come there's no spooktober game jam? I thought horror maker games were some of the most popular genre out there...
"I didn't know X song was about that!" Uh... why? Do you not listen to the lyrics? I mean, I guess that makes sense. We live in a world where nobody listens, but everyone wants to be heard.

Forum statistics

Threads
115,843
Messages
1,093,358
Members
151,031
Latest member
Florian973
Top